Class CompleteTrialRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CompleteTrialRequest.Builder>
com.google.cloud.aiplatform.v1.CompleteTrialRequest.Builder
All Implemented Interfaces:
CompleteTrialRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CompleteTrialRequest

public static final class CompleteTrialRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CompleteTrialRequest.Builder> implements CompleteTrialRequestOrBuilder
 Request message for
 [VizierService.CompleteTrial][google.cloud.aiplatform.v1.VizierService.CompleteTrial].
 
Protobuf type google.cloud.aiplatform.v1.CompleteTrialRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CompleteTrialRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CompleteTrialRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CompleteTrialRequest.Builder>
    • getDefaultInstanceForType

      public CompleteTrialRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CompleteTrialRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CompleteTrialRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CompleteTrialRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CompleteTrialRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CompleteTrialRequest.Builder>
    • mergeFrom

      public CompleteTrialRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CompleteTrialRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The Trial's name.
       Format:
       `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface CompleteTrialRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The Trial's name.
       Format:
       `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface CompleteTrialRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public CompleteTrialRequest.Builder setName(String value)
       Required. The Trial's name.
       Format:
       `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public CompleteTrialRequest.Builder clearName()
       Required. The Trial's name.
       Format:
       `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public CompleteTrialRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The Trial's name.
       Format:
       `projects/{project}/locations/{location}/studies/{study}/trials/{trial}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasFinalMeasurement

      public boolean hasFinalMeasurement()
       Optional. If provided, it will be used as the completed Trial's
       final_measurement; Otherwise, the service will auto-select a
       previously reported measurement as the final-measurement
       
      .google.cloud.aiplatform.v1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasFinalMeasurement in interface CompleteTrialRequestOrBuilder
      Returns:
      Whether the finalMeasurement field is set.
    • getFinalMeasurement

      public Measurement getFinalMeasurement()
       Optional. If provided, it will be used as the completed Trial's
       final_measurement; Otherwise, the service will auto-select a
       previously reported measurement as the final-measurement
       
      .google.cloud.aiplatform.v1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFinalMeasurement in interface CompleteTrialRequestOrBuilder
      Returns:
      The finalMeasurement.
    • setFinalMeasurement

      public CompleteTrialRequest.Builder setFinalMeasurement(Measurement value)
       Optional. If provided, it will be used as the completed Trial's
       final_measurement; Otherwise, the service will auto-select a
       previously reported measurement as the final-measurement
       
      .google.cloud.aiplatform.v1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setFinalMeasurement

      public CompleteTrialRequest.Builder setFinalMeasurement(Measurement.Builder builderForValue)
       Optional. If provided, it will be used as the completed Trial's
       final_measurement; Otherwise, the service will auto-select a
       previously reported measurement as the final-measurement
       
      .google.cloud.aiplatform.v1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeFinalMeasurement

      public CompleteTrialRequest.Builder mergeFinalMeasurement(Measurement value)
       Optional. If provided, it will be used as the completed Trial's
       final_measurement; Otherwise, the service will auto-select a
       previously reported measurement as the final-measurement
       
      .google.cloud.aiplatform.v1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearFinalMeasurement

      public CompleteTrialRequest.Builder clearFinalMeasurement()
       Optional. If provided, it will be used as the completed Trial's
       final_measurement; Otherwise, the service will auto-select a
       previously reported measurement as the final-measurement
       
      .google.cloud.aiplatform.v1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getFinalMeasurementBuilder

      public Measurement.Builder getFinalMeasurementBuilder()
       Optional. If provided, it will be used as the completed Trial's
       final_measurement; Otherwise, the service will auto-select a
       previously reported measurement as the final-measurement
       
      .google.cloud.aiplatform.v1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getFinalMeasurementOrBuilder

      public MeasurementOrBuilder getFinalMeasurementOrBuilder()
       Optional. If provided, it will be used as the completed Trial's
       final_measurement; Otherwise, the service will auto-select a
       previously reported measurement as the final-measurement
       
      .google.cloud.aiplatform.v1.Measurement final_measurement = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFinalMeasurementOrBuilder in interface CompleteTrialRequestOrBuilder
    • getTrialInfeasible

      public boolean getTrialInfeasible()
       Optional. True if the Trial cannot be run with the given Parameter, and
       final_measurement will be ignored.
       
      bool trial_infeasible = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTrialInfeasible in interface CompleteTrialRequestOrBuilder
      Returns:
      The trialInfeasible.
    • setTrialInfeasible

      public CompleteTrialRequest.Builder setTrialInfeasible(boolean value)
       Optional. True if the Trial cannot be run with the given Parameter, and
       final_measurement will be ignored.
       
      bool trial_infeasible = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The trialInfeasible to set.
      Returns:
      This builder for chaining.
    • clearTrialInfeasible

      public CompleteTrialRequest.Builder clearTrialInfeasible()
       Optional. True if the Trial cannot be run with the given Parameter, and
       final_measurement will be ignored.
       
      bool trial_infeasible = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getInfeasibleReason

      public String getInfeasibleReason()
       Optional. A human readable reason why the trial was infeasible. This should
       only be provided if `trial_infeasible` is true.
       
      string infeasible_reason = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInfeasibleReason in interface CompleteTrialRequestOrBuilder
      Returns:
      The infeasibleReason.
    • getInfeasibleReasonBytes

      public com.google.protobuf.ByteString getInfeasibleReasonBytes()
       Optional. A human readable reason why the trial was infeasible. This should
       only be provided if `trial_infeasible` is true.
       
      string infeasible_reason = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInfeasibleReasonBytes in interface CompleteTrialRequestOrBuilder
      Returns:
      The bytes for infeasibleReason.
    • setInfeasibleReason

      public CompleteTrialRequest.Builder setInfeasibleReason(String value)
       Optional. A human readable reason why the trial was infeasible. This should
       only be provided if `trial_infeasible` is true.
       
      string infeasible_reason = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The infeasibleReason to set.
      Returns:
      This builder for chaining.
    • clearInfeasibleReason

      public CompleteTrialRequest.Builder clearInfeasibleReason()
       Optional. A human readable reason why the trial was infeasible. This should
       only be provided if `trial_infeasible` is true.
       
      string infeasible_reason = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setInfeasibleReasonBytes

      public CompleteTrialRequest.Builder setInfeasibleReasonBytes(com.google.protobuf.ByteString value)
       Optional. A human readable reason why the trial was infeasible. This should
       only be provided if `trial_infeasible` is true.
       
      string infeasible_reason = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for infeasibleReason to set.
      Returns:
      This builder for chaining.