Class RebaseTunedModelRequest.Builder

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

public static final class RebaseTunedModelRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<RebaseTunedModelRequest.Builder> implements RebaseTunedModelRequestOrBuilder
 Request message for
 [GenAiTuningService.RebaseTunedModel][google.cloud.aiplatform.v1.GenAiTuningService.RebaseTunedModel].
 
Protobuf type google.cloud.aiplatform.v1.RebaseTunedModelRequest
  • 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<RebaseTunedModelRequest.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<RebaseTunedModelRequest.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<RebaseTunedModelRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public RebaseTunedModelRequest.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<RebaseTunedModelRequest.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<RebaseTunedModelRequest.Builder>
    • mergeFrom

      public RebaseTunedModelRequest.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<RebaseTunedModelRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The resource name of the Location into which to rebase the Model.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface RebaseTunedModelRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The resource name of the Location into which to rebase the Model.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface RebaseTunedModelRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public RebaseTunedModelRequest.Builder setParent(String value)
       Required. The resource name of the Location into which to rebase the Model.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public RebaseTunedModelRequest.Builder clearParent()
       Required. The resource name of the Location into which to rebase the Model.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public RebaseTunedModelRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the Location into which to rebase the Model.
       Format: `projects/{project}/locations/{location}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasTunedModelRef

      public boolean hasTunedModelRef()
       Required. TunedModel reference to retrieve the legacy model information.
       
      .google.cloud.aiplatform.v1.TunedModelRef tuned_model_ref = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasTunedModelRef in interface RebaseTunedModelRequestOrBuilder
      Returns:
      Whether the tunedModelRef field is set.
    • getTunedModelRef

      public TunedModelRef getTunedModelRef()
       Required. TunedModel reference to retrieve the legacy model information.
       
      .google.cloud.aiplatform.v1.TunedModelRef tuned_model_ref = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTunedModelRef in interface RebaseTunedModelRequestOrBuilder
      Returns:
      The tunedModelRef.
    • setTunedModelRef

      public RebaseTunedModelRequest.Builder setTunedModelRef(TunedModelRef value)
       Required. TunedModel reference to retrieve the legacy model information.
       
      .google.cloud.aiplatform.v1.TunedModelRef tuned_model_ref = 2 [(.google.api.field_behavior) = REQUIRED];
    • setTunedModelRef

      public RebaseTunedModelRequest.Builder setTunedModelRef(TunedModelRef.Builder builderForValue)
       Required. TunedModel reference to retrieve the legacy model information.
       
      .google.cloud.aiplatform.v1.TunedModelRef tuned_model_ref = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeTunedModelRef

      public RebaseTunedModelRequest.Builder mergeTunedModelRef(TunedModelRef value)
       Required. TunedModel reference to retrieve the legacy model information.
       
      .google.cloud.aiplatform.v1.TunedModelRef tuned_model_ref = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearTunedModelRef

      public RebaseTunedModelRequest.Builder clearTunedModelRef()
       Required. TunedModel reference to retrieve the legacy model information.
       
      .google.cloud.aiplatform.v1.TunedModelRef tuned_model_ref = 2 [(.google.api.field_behavior) = REQUIRED];
    • getTunedModelRefBuilder

      public TunedModelRef.Builder getTunedModelRefBuilder()
       Required. TunedModel reference to retrieve the legacy model information.
       
      .google.cloud.aiplatform.v1.TunedModelRef tuned_model_ref = 2 [(.google.api.field_behavior) = REQUIRED];
    • getTunedModelRefOrBuilder

      public TunedModelRefOrBuilder getTunedModelRefOrBuilder()
       Required. TunedModel reference to retrieve the legacy model information.
       
      .google.cloud.aiplatform.v1.TunedModelRef tuned_model_ref = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTunedModelRefOrBuilder in interface RebaseTunedModelRequestOrBuilder
    • hasTuningJob

      public boolean hasTuningJob()
       Optional. The TuningJob to be updated. Users can use this TuningJob field
       to overwrite tuning configs.
       
      .google.cloud.aiplatform.v1.TuningJob tuning_job = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTuningJob in interface RebaseTunedModelRequestOrBuilder
      Returns:
      Whether the tuningJob field is set.
    • getTuningJob

      public TuningJob getTuningJob()
       Optional. The TuningJob to be updated. Users can use this TuningJob field
       to overwrite tuning configs.
       
      .google.cloud.aiplatform.v1.TuningJob tuning_job = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTuningJob in interface RebaseTunedModelRequestOrBuilder
      Returns:
      The tuningJob.
    • setTuningJob

      public RebaseTunedModelRequest.Builder setTuningJob(TuningJob value)
       Optional. The TuningJob to be updated. Users can use this TuningJob field
       to overwrite tuning configs.
       
      .google.cloud.aiplatform.v1.TuningJob tuning_job = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setTuningJob

      public RebaseTunedModelRequest.Builder setTuningJob(TuningJob.Builder builderForValue)
       Optional. The TuningJob to be updated. Users can use this TuningJob field
       to overwrite tuning configs.
       
      .google.cloud.aiplatform.v1.TuningJob tuning_job = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeTuningJob

      public RebaseTunedModelRequest.Builder mergeTuningJob(TuningJob value)
       Optional. The TuningJob to be updated. Users can use this TuningJob field
       to overwrite tuning configs.
       
      .google.cloud.aiplatform.v1.TuningJob tuning_job = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearTuningJob

      public RebaseTunedModelRequest.Builder clearTuningJob()
       Optional. The TuningJob to be updated. Users can use this TuningJob field
       to overwrite tuning configs.
       
      .google.cloud.aiplatform.v1.TuningJob tuning_job = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getTuningJobBuilder

      public TuningJob.Builder getTuningJobBuilder()
       Optional. The TuningJob to be updated. Users can use this TuningJob field
       to overwrite tuning configs.
       
      .google.cloud.aiplatform.v1.TuningJob tuning_job = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getTuningJobOrBuilder

      public TuningJobOrBuilder getTuningJobOrBuilder()
       Optional. The TuningJob to be updated. Users can use this TuningJob field
       to overwrite tuning configs.
       
      .google.cloud.aiplatform.v1.TuningJob tuning_job = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTuningJobOrBuilder in interface RebaseTunedModelRequestOrBuilder
    • hasArtifactDestination

      public boolean hasArtifactDestination()
       Optional. The Google Cloud Storage location to write the artifacts.
       
      .google.cloud.aiplatform.v1.GcsDestination artifact_destination = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasArtifactDestination in interface RebaseTunedModelRequestOrBuilder
      Returns:
      Whether the artifactDestination field is set.
    • getArtifactDestination

      public GcsDestination getArtifactDestination()
       Optional. The Google Cloud Storage location to write the artifacts.
       
      .google.cloud.aiplatform.v1.GcsDestination artifact_destination = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getArtifactDestination in interface RebaseTunedModelRequestOrBuilder
      Returns:
      The artifactDestination.
    • setArtifactDestination

      public RebaseTunedModelRequest.Builder setArtifactDestination(GcsDestination value)
       Optional. The Google Cloud Storage location to write the artifacts.
       
      .google.cloud.aiplatform.v1.GcsDestination artifact_destination = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setArtifactDestination

      public RebaseTunedModelRequest.Builder setArtifactDestination(GcsDestination.Builder builderForValue)
       Optional. The Google Cloud Storage location to write the artifacts.
       
      .google.cloud.aiplatform.v1.GcsDestination artifact_destination = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeArtifactDestination

      public RebaseTunedModelRequest.Builder mergeArtifactDestination(GcsDestination value)
       Optional. The Google Cloud Storage location to write the artifacts.
       
      .google.cloud.aiplatform.v1.GcsDestination artifact_destination = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearArtifactDestination

      public RebaseTunedModelRequest.Builder clearArtifactDestination()
       Optional. The Google Cloud Storage location to write the artifacts.
       
      .google.cloud.aiplatform.v1.GcsDestination artifact_destination = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getArtifactDestinationBuilder

      public GcsDestination.Builder getArtifactDestinationBuilder()
       Optional. The Google Cloud Storage location to write the artifacts.
       
      .google.cloud.aiplatform.v1.GcsDestination artifact_destination = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getArtifactDestinationOrBuilder

      public GcsDestinationOrBuilder getArtifactDestinationOrBuilder()
       Optional. The Google Cloud Storage location to write the artifacts.
       
      .google.cloud.aiplatform.v1.GcsDestination artifact_destination = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getArtifactDestinationOrBuilder in interface RebaseTunedModelRequestOrBuilder
    • getDeployToSameEndpoint

      public boolean getDeployToSameEndpoint()
       Optional. By default, bison to gemini migration will always create new
       model/endpoint, but for gemini-1.0 to gemini-1.5 migration, we default
       deploy to the same endpoint. See details in this Section.
       
      bool deploy_to_same_endpoint = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeployToSameEndpoint in interface RebaseTunedModelRequestOrBuilder
      Returns:
      The deployToSameEndpoint.
    • setDeployToSameEndpoint

      public RebaseTunedModelRequest.Builder setDeployToSameEndpoint(boolean value)
       Optional. By default, bison to gemini migration will always create new
       model/endpoint, but for gemini-1.0 to gemini-1.5 migration, we default
       deploy to the same endpoint. See details in this Section.
       
      bool deploy_to_same_endpoint = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The deployToSameEndpoint to set.
      Returns:
      This builder for chaining.
    • clearDeployToSameEndpoint

      public RebaseTunedModelRequest.Builder clearDeployToSameEndpoint()
       Optional. By default, bison to gemini migration will always create new
       model/endpoint, but for gemini-1.0 to gemini-1.5 migration, we default
       deploy to the same endpoint. See details in this Section.
       
      bool deploy_to_same_endpoint = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.