Class UploadModelRequest.Builder

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

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

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

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

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

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

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

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

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

      public UploadModelRequest.Builder setParent(String value)
       Required. The resource name of the Location into which to upload 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 UploadModelRequest.Builder clearParent()
       Required. The resource name of the Location into which to upload 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 UploadModelRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the Location into which to upload 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.
    • getParentModel

      public String getParentModel()
       Optional. The resource name of the model into which to upload the version.
       Only specify this field when uploading a new version.
       
      string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParentModel in interface UploadModelRequestOrBuilder
      Returns:
      The parentModel.
    • getParentModelBytes

      public com.google.protobuf.ByteString getParentModelBytes()
       Optional. The resource name of the model into which to upload the version.
       Only specify this field when uploading a new version.
       
      string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getParentModelBytes in interface UploadModelRequestOrBuilder
      Returns:
      The bytes for parentModel.
    • setParentModel

      public UploadModelRequest.Builder setParentModel(String value)
       Optional. The resource name of the model into which to upload the version.
       Only specify this field when uploading a new version.
       
      string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The parentModel to set.
      Returns:
      This builder for chaining.
    • clearParentModel

      public UploadModelRequest.Builder clearParentModel()
       Optional. The resource name of the model into which to upload the version.
       Only specify this field when uploading a new version.
       
      string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setParentModelBytes

      public UploadModelRequest.Builder setParentModelBytes(com.google.protobuf.ByteString value)
       Optional. The resource name of the model into which to upload the version.
       Only specify this field when uploading a new version.
       
      string parent_model = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for parentModel to set.
      Returns:
      This builder for chaining.
    • getModelId

      public String getModelId()
       Optional. The ID to use for the uploaded Model, which will become the final
       component of the model resource name.
      
       This value may be up to 63 characters, and valid characters are
       `[a-z0-9_-]`. The first character cannot be a number or hyphen.
       
      string model_id = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModelId in interface UploadModelRequestOrBuilder
      Returns:
      The modelId.
    • getModelIdBytes

      public com.google.protobuf.ByteString getModelIdBytes()
       Optional. The ID to use for the uploaded Model, which will become the final
       component of the model resource name.
      
       This value may be up to 63 characters, and valid characters are
       `[a-z0-9_-]`. The first character cannot be a number or hyphen.
       
      string model_id = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModelIdBytes in interface UploadModelRequestOrBuilder
      Returns:
      The bytes for modelId.
    • setModelId

      public UploadModelRequest.Builder setModelId(String value)
       Optional. The ID to use for the uploaded Model, which will become the final
       component of the model resource name.
      
       This value may be up to 63 characters, and valid characters are
       `[a-z0-9_-]`. The first character cannot be a number or hyphen.
       
      string model_id = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The modelId to set.
      Returns:
      This builder for chaining.
    • clearModelId

      public UploadModelRequest.Builder clearModelId()
       Optional. The ID to use for the uploaded Model, which will become the final
       component of the model resource name.
      
       This value may be up to 63 characters, and valid characters are
       `[a-z0-9_-]`. The first character cannot be a number or hyphen.
       
      string model_id = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setModelIdBytes

      public UploadModelRequest.Builder setModelIdBytes(com.google.protobuf.ByteString value)
       Optional. The ID to use for the uploaded Model, which will become the final
       component of the model resource name.
      
       This value may be up to 63 characters, and valid characters are
       `[a-z0-9_-]`. The first character cannot be a number or hyphen.
       
      string model_id = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for modelId to set.
      Returns:
      This builder for chaining.
    • hasModel

      public boolean hasModel()
       Required. The Model to create.
       
      .google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasModel in interface UploadModelRequestOrBuilder
      Returns:
      Whether the model field is set.
    • getModel

      public Model getModel()
       Required. The Model to create.
       
      .google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getModel in interface UploadModelRequestOrBuilder
      Returns:
      The model.
    • setModel

      public UploadModelRequest.Builder setModel(Model value)
       Required. The Model to create.
       
      .google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];
    • setModel

      public UploadModelRequest.Builder setModel(Model.Builder builderForValue)
       Required. The Model to create.
       
      .google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeModel

      public UploadModelRequest.Builder mergeModel(Model value)
       Required. The Model to create.
       
      .google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearModel

      public UploadModelRequest.Builder clearModel()
       Required. The Model to create.
       
      .google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];
    • getModelBuilder

      public Model.Builder getModelBuilder()
       Required. The Model to create.
       
      .google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];
    • getModelOrBuilder

      public ModelOrBuilder getModelOrBuilder()
       Required. The Model to create.
       
      .google.cloud.aiplatform.v1.Model model = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getModelOrBuilder in interface UploadModelRequestOrBuilder
    • getServiceAccount

      public String getServiceAccount()
       Optional. The user-provided custom service account to use to do the model
       upload. If empty, [Vertex AI Service
       Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
       will be used to access resources needed to upload the model. This account
       must belong to the target project where the model is uploaded to, i.e., the
       project specified in the `parent` field of this request and have necessary
       read permissions (to Google Cloud Storage, Artifact Registry, etc.).
       
      string service_account = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceAccount in interface UploadModelRequestOrBuilder
      Returns:
      The serviceAccount.
    • getServiceAccountBytes

      public com.google.protobuf.ByteString getServiceAccountBytes()
       Optional. The user-provided custom service account to use to do the model
       upload. If empty, [Vertex AI Service
       Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
       will be used to access resources needed to upload the model. This account
       must belong to the target project where the model is uploaded to, i.e., the
       project specified in the `parent` field of this request and have necessary
       read permissions (to Google Cloud Storage, Artifact Registry, etc.).
       
      string service_account = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getServiceAccountBytes in interface UploadModelRequestOrBuilder
      Returns:
      The bytes for serviceAccount.
    • setServiceAccount

      public UploadModelRequest.Builder setServiceAccount(String value)
       Optional. The user-provided custom service account to use to do the model
       upload. If empty, [Vertex AI Service
       Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
       will be used to access resources needed to upload the model. This account
       must belong to the target project where the model is uploaded to, i.e., the
       project specified in the `parent` field of this request and have necessary
       read permissions (to Google Cloud Storage, Artifact Registry, etc.).
       
      string service_account = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The serviceAccount to set.
      Returns:
      This builder for chaining.
    • clearServiceAccount

      public UploadModelRequest.Builder clearServiceAccount()
       Optional. The user-provided custom service account to use to do the model
       upload. If empty, [Vertex AI Service
       Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
       will be used to access resources needed to upload the model. This account
       must belong to the target project where the model is uploaded to, i.e., the
       project specified in the `parent` field of this request and have necessary
       read permissions (to Google Cloud Storage, Artifact Registry, etc.).
       
      string service_account = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setServiceAccountBytes

      public UploadModelRequest.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
       Optional. The user-provided custom service account to use to do the model
       upload. If empty, [Vertex AI Service
       Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
       will be used to access resources needed to upload the model. This account
       must belong to the target project where the model is uploaded to, i.e., the
       project specified in the `parent` field of this request and have necessary
       read permissions (to Google Cloud Storage, Artifact Registry, etc.).
       
      string service_account = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for serviceAccount to set.
      Returns:
      This builder for chaining.