Class PreTunedModel.Builder

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

public static final class PreTunedModel.Builder extends com.google.protobuf.GeneratedMessage.Builder<PreTunedModel.Builder> implements PreTunedModelOrBuilder
 A pre-tuned model for continuous tuning.
 
Protobuf type google.cloud.aiplatform.v1.PreTunedModel
  • 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<PreTunedModel.Builder>
    • clear

      public PreTunedModel.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<PreTunedModel.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<PreTunedModel.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public PreTunedModel.Builder mergeFrom(PreTunedModel other)
    • isInitialized

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

      public PreTunedModel.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<PreTunedModel.Builder>
      Throws:
      IOException
    • getTunedModelName

      public String getTunedModelName()
       The resource name of the Model.
       E.g., a model resource name with a specified version id or alias:
      
       `projects/{project}/locations/{location}/models/{model}@{version_id}`
      
       `projects/{project}/locations/{location}/models/{model}@{alias}`
      
       Or, omit the version id to use the default version:
      
       `projects/{project}/locations/{location}/models/{model}`
       
      string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getTunedModelName in interface PreTunedModelOrBuilder
      Returns:
      The tunedModelName.
    • getTunedModelNameBytes

      public com.google.protobuf.ByteString getTunedModelNameBytes()
       The resource name of the Model.
       E.g., a model resource name with a specified version id or alias:
      
       `projects/{project}/locations/{location}/models/{model}@{version_id}`
      
       `projects/{project}/locations/{location}/models/{model}@{alias}`
      
       Or, omit the version id to use the default version:
      
       `projects/{project}/locations/{location}/models/{model}`
       
      string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getTunedModelNameBytes in interface PreTunedModelOrBuilder
      Returns:
      The bytes for tunedModelName.
    • setTunedModelName

      public PreTunedModel.Builder setTunedModelName(String value)
       The resource name of the Model.
       E.g., a model resource name with a specified version id or alias:
      
       `projects/{project}/locations/{location}/models/{model}@{version_id}`
      
       `projects/{project}/locations/{location}/models/{model}@{alias}`
      
       Or, omit the version id to use the default version:
      
       `projects/{project}/locations/{location}/models/{model}`
       
      string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The tunedModelName to set.
      Returns:
      This builder for chaining.
    • clearTunedModelName

      public PreTunedModel.Builder clearTunedModelName()
       The resource name of the Model.
       E.g., a model resource name with a specified version id or alias:
      
       `projects/{project}/locations/{location}/models/{model}@{version_id}`
      
       `projects/{project}/locations/{location}/models/{model}@{alias}`
      
       Or, omit the version id to use the default version:
      
       `projects/{project}/locations/{location}/models/{model}`
       
      string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setTunedModelNameBytes

      public PreTunedModel.Builder setTunedModelNameBytes(com.google.protobuf.ByteString value)
       The resource name of the Model.
       E.g., a model resource name with a specified version id or alias:
      
       `projects/{project}/locations/{location}/models/{model}@{version_id}`
      
       `projects/{project}/locations/{location}/models/{model}@{alias}`
      
       Or, omit the version id to use the default version:
      
       `projects/{project}/locations/{location}/models/{model}`
       
      string tuned_model_name = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for tunedModelName to set.
      Returns:
      This builder for chaining.
    • getCheckpointId

      public String getCheckpointId()
       Optional. The source checkpoint id. If not specified, the default
       checkpoint will be used.
       
      string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCheckpointId in interface PreTunedModelOrBuilder
      Returns:
      The checkpointId.
    • getCheckpointIdBytes

      public com.google.protobuf.ByteString getCheckpointIdBytes()
       Optional. The source checkpoint id. If not specified, the default
       checkpoint will be used.
       
      string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCheckpointIdBytes in interface PreTunedModelOrBuilder
      Returns:
      The bytes for checkpointId.
    • setCheckpointId

      public PreTunedModel.Builder setCheckpointId(String value)
       Optional. The source checkpoint id. If not specified, the default
       checkpoint will be used.
       
      string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The checkpointId to set.
      Returns:
      This builder for chaining.
    • clearCheckpointId

      public PreTunedModel.Builder clearCheckpointId()
       Optional. The source checkpoint id. If not specified, the default
       checkpoint will be used.
       
      string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setCheckpointIdBytes

      public PreTunedModel.Builder setCheckpointIdBytes(com.google.protobuf.ByteString value)
       Optional. The source checkpoint id. If not specified, the default
       checkpoint will be used.
       
      string checkpoint_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for checkpointId to set.
      Returns:
      This builder for chaining.
    • getBaseModel

      public String getBaseModel()
       Output only. The name of the base model this
       [PreTunedModel][google.cloud.aiplatform.v1.PreTunedModel] was tuned from.
       
      string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBaseModel in interface PreTunedModelOrBuilder
      Returns:
      The baseModel.
    • getBaseModelBytes

      public com.google.protobuf.ByteString getBaseModelBytes()
       Output only. The name of the base model this
       [PreTunedModel][google.cloud.aiplatform.v1.PreTunedModel] was tuned from.
       
      string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBaseModelBytes in interface PreTunedModelOrBuilder
      Returns:
      The bytes for baseModel.
    • setBaseModel

      public PreTunedModel.Builder setBaseModel(String value)
       Output only. The name of the base model this
       [PreTunedModel][google.cloud.aiplatform.v1.PreTunedModel] was tuned from.
       
      string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The baseModel to set.
      Returns:
      This builder for chaining.
    • clearBaseModel

      public PreTunedModel.Builder clearBaseModel()
       Output only. The name of the base model this
       [PreTunedModel][google.cloud.aiplatform.v1.PreTunedModel] was tuned from.
       
      string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setBaseModelBytes

      public PreTunedModel.Builder setBaseModelBytes(com.google.protobuf.ByteString value)
       Output only. The name of the base model this
       [PreTunedModel][google.cloud.aiplatform.v1.PreTunedModel] was tuned from.
       
      string base_model = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for baseModel to set.
      Returns:
      This builder for chaining.