Class DeployRequest.Builder

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

public static final class DeployRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<DeployRequest.Builder> implements DeployRequestOrBuilder
 Request message for
 [ModelGardenService.Deploy][google.cloud.aiplatform.v1.ModelGardenService.Deploy].
 
Protobuf type google.cloud.aiplatform.v1.DeployRequest
  • 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<DeployRequest.Builder>
    • clear

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

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

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

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

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

      public DeployRequest.Builder mergeFrom(DeployRequest other)
    • isInitialized

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

      public DeployRequest.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<DeployRequest.Builder>
      Throws:
      IOException
    • getArtifactsCase

      public DeployRequest.ArtifactsCase getArtifactsCase()
      Specified by:
      getArtifactsCase in interface DeployRequestOrBuilder
    • clearArtifacts

      public DeployRequest.Builder clearArtifacts()
    • hasPublisherModelName

      public boolean hasPublisherModelName()
       The Model Garden model to deploy.
       Format:
       `publishers/{publisher}/models/{publisher_model}@{version_id}`, or
       `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`.
       
      string publisher_model_name = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      hasPublisherModelName in interface DeployRequestOrBuilder
      Returns:
      Whether the publisherModelName field is set.
    • getPublisherModelName

      public String getPublisherModelName()
       The Model Garden model to deploy.
       Format:
       `publishers/{publisher}/models/{publisher_model}@{version_id}`, or
       `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`.
       
      string publisher_model_name = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getPublisherModelName in interface DeployRequestOrBuilder
      Returns:
      The publisherModelName.
    • getPublisherModelNameBytes

      public com.google.protobuf.ByteString getPublisherModelNameBytes()
       The Model Garden model to deploy.
       Format:
       `publishers/{publisher}/models/{publisher_model}@{version_id}`, or
       `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`.
       
      string publisher_model_name = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getPublisherModelNameBytes in interface DeployRequestOrBuilder
      Returns:
      The bytes for publisherModelName.
    • setPublisherModelName

      public DeployRequest.Builder setPublisherModelName(String value)
       The Model Garden model to deploy.
       Format:
       `publishers/{publisher}/models/{publisher_model}@{version_id}`, or
       `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`.
       
      string publisher_model_name = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The publisherModelName to set.
      Returns:
      This builder for chaining.
    • clearPublisherModelName

      public DeployRequest.Builder clearPublisherModelName()
       The Model Garden model to deploy.
       Format:
       `publishers/{publisher}/models/{publisher_model}@{version_id}`, or
       `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`.
       
      string publisher_model_name = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setPublisherModelNameBytes

      public DeployRequest.Builder setPublisherModelNameBytes(com.google.protobuf.ByteString value)
       The Model Garden model to deploy.
       Format:
       `publishers/{publisher}/models/{publisher_model}@{version_id}`, or
       `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`.
       
      string publisher_model_name = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for publisherModelName to set.
      Returns:
      This builder for chaining.
    • hasHuggingFaceModelId

      public boolean hasHuggingFaceModelId()
       The Hugging Face model to deploy.
       Format: Hugging Face model ID like `google/gemma-2-2b-it`.
       
      string hugging_face_model_id = 2;
      Specified by:
      hasHuggingFaceModelId in interface DeployRequestOrBuilder
      Returns:
      Whether the huggingFaceModelId field is set.
    • getHuggingFaceModelId

      public String getHuggingFaceModelId()
       The Hugging Face model to deploy.
       Format: Hugging Face model ID like `google/gemma-2-2b-it`.
       
      string hugging_face_model_id = 2;
      Specified by:
      getHuggingFaceModelId in interface DeployRequestOrBuilder
      Returns:
      The huggingFaceModelId.
    • getHuggingFaceModelIdBytes

      public com.google.protobuf.ByteString getHuggingFaceModelIdBytes()
       The Hugging Face model to deploy.
       Format: Hugging Face model ID like `google/gemma-2-2b-it`.
       
      string hugging_face_model_id = 2;
      Specified by:
      getHuggingFaceModelIdBytes in interface DeployRequestOrBuilder
      Returns:
      The bytes for huggingFaceModelId.
    • setHuggingFaceModelId

      public DeployRequest.Builder setHuggingFaceModelId(String value)
       The Hugging Face model to deploy.
       Format: Hugging Face model ID like `google/gemma-2-2b-it`.
       
      string hugging_face_model_id = 2;
      Parameters:
      value - The huggingFaceModelId to set.
      Returns:
      This builder for chaining.
    • clearHuggingFaceModelId

      public DeployRequest.Builder clearHuggingFaceModelId()
       The Hugging Face model to deploy.
       Format: Hugging Face model ID like `google/gemma-2-2b-it`.
       
      string hugging_face_model_id = 2;
      Returns:
      This builder for chaining.
    • setHuggingFaceModelIdBytes

      public DeployRequest.Builder setHuggingFaceModelIdBytes(com.google.protobuf.ByteString value)
       The Hugging Face model to deploy.
       Format: Hugging Face model ID like `google/gemma-2-2b-it`.
       
      string hugging_face_model_id = 2;
      Parameters:
      value - The bytes for huggingFaceModelId to set.
      Returns:
      This builder for chaining.
    • getDestination

      public String getDestination()
       Required. The resource name of the Location to deploy the model in.
       Format: `projects/{project}/locations/{location}`
       
      string destination = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDestination in interface DeployRequestOrBuilder
      Returns:
      The destination.
    • getDestinationBytes

      public com.google.protobuf.ByteString getDestinationBytes()
       Required. The resource name of the Location to deploy the model in.
       Format: `projects/{project}/locations/{location}`
       
      string destination = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDestinationBytes in interface DeployRequestOrBuilder
      Returns:
      The bytes for destination.
    • setDestination

      public DeployRequest.Builder setDestination(String value)
       Required. The resource name of the Location to deploy the model in.
       Format: `projects/{project}/locations/{location}`
       
      string destination = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The destination to set.
      Returns:
      This builder for chaining.
    • clearDestination

      public DeployRequest.Builder clearDestination()
       Required. The resource name of the Location to deploy the model in.
       Format: `projects/{project}/locations/{location}`
       
      string destination = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setDestinationBytes

      public DeployRequest.Builder setDestinationBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the Location to deploy the model in.
       Format: `projects/{project}/locations/{location}`
       
      string destination = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for destination to set.
      Returns:
      This builder for chaining.
    • hasModelConfig

      public boolean hasModelConfig()
       Optional. The model config to use for the deployment.
       If not specified, the default model config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasModelConfig in interface DeployRequestOrBuilder
      Returns:
      Whether the modelConfig field is set.
    • getModelConfig

      public DeployRequest.ModelConfig getModelConfig()
       Optional. The model config to use for the deployment.
       If not specified, the default model config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModelConfig in interface DeployRequestOrBuilder
      Returns:
      The modelConfig.
    • setModelConfig

      public DeployRequest.Builder setModelConfig(DeployRequest.ModelConfig value)
       Optional. The model config to use for the deployment.
       If not specified, the default model config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setModelConfig

      public DeployRequest.Builder setModelConfig(DeployRequest.ModelConfig.Builder builderForValue)
       Optional. The model config to use for the deployment.
       If not specified, the default model config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeModelConfig

      public DeployRequest.Builder mergeModelConfig(DeployRequest.ModelConfig value)
       Optional. The model config to use for the deployment.
       If not specified, the default model config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearModelConfig

      public DeployRequest.Builder clearModelConfig()
       Optional. The model config to use for the deployment.
       If not specified, the default model config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getModelConfigBuilder

      public DeployRequest.ModelConfig.Builder getModelConfigBuilder()
       Optional. The model config to use for the deployment.
       If not specified, the default model config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getModelConfigOrBuilder

      public DeployRequest.ModelConfigOrBuilder getModelConfigOrBuilder()
       Optional. The model config to use for the deployment.
       If not specified, the default model config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModelConfigOrBuilder in interface DeployRequestOrBuilder
    • hasEndpointConfig

      public boolean hasEndpointConfig()
       Optional. The endpoint config to use for the deployment.
       If not specified, the default endpoint config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasEndpointConfig in interface DeployRequestOrBuilder
      Returns:
      Whether the endpointConfig field is set.
    • getEndpointConfig

      public DeployRequest.EndpointConfig getEndpointConfig()
       Optional. The endpoint config to use for the deployment.
       If not specified, the default endpoint config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEndpointConfig in interface DeployRequestOrBuilder
      Returns:
      The endpointConfig.
    • setEndpointConfig

      public DeployRequest.Builder setEndpointConfig(DeployRequest.EndpointConfig value)
       Optional. The endpoint config to use for the deployment.
       If not specified, the default endpoint config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setEndpointConfig

      public DeployRequest.Builder setEndpointConfig(DeployRequest.EndpointConfig.Builder builderForValue)
       Optional. The endpoint config to use for the deployment.
       If not specified, the default endpoint config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL];
    • mergeEndpointConfig

      public DeployRequest.Builder mergeEndpointConfig(DeployRequest.EndpointConfig value)
       Optional. The endpoint config to use for the deployment.
       If not specified, the default endpoint config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearEndpointConfig

      public DeployRequest.Builder clearEndpointConfig()
       Optional. The endpoint config to use for the deployment.
       If not specified, the default endpoint config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getEndpointConfigBuilder

      public DeployRequest.EndpointConfig.Builder getEndpointConfigBuilder()
       Optional. The endpoint config to use for the deployment.
       If not specified, the default endpoint config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getEndpointConfigOrBuilder

      public DeployRequest.EndpointConfigOrBuilder getEndpointConfigOrBuilder()
       Optional. The endpoint config to use for the deployment.
       If not specified, the default endpoint config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEndpointConfigOrBuilder in interface DeployRequestOrBuilder
    • hasDeployConfig

      public boolean hasDeployConfig()
       Optional. The deploy config to use for the deployment.
       If not specified, the default deploy config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDeployConfig in interface DeployRequestOrBuilder
      Returns:
      Whether the deployConfig field is set.
    • getDeployConfig

      public DeployRequest.DeployConfig getDeployConfig()
       Optional. The deploy config to use for the deployment.
       If not specified, the default deploy config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeployConfig in interface DeployRequestOrBuilder
      Returns:
      The deployConfig.
    • setDeployConfig

      public DeployRequest.Builder setDeployConfig(DeployRequest.DeployConfig value)
       Optional. The deploy config to use for the deployment.
       If not specified, the default deploy config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL];
    • setDeployConfig

      public DeployRequest.Builder setDeployConfig(DeployRequest.DeployConfig.Builder builderForValue)
       Optional. The deploy config to use for the deployment.
       If not specified, the default deploy config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL];
    • mergeDeployConfig

      public DeployRequest.Builder mergeDeployConfig(DeployRequest.DeployConfig value)
       Optional. The deploy config to use for the deployment.
       If not specified, the default deploy config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL];
    • clearDeployConfig

      public DeployRequest.Builder clearDeployConfig()
       Optional. The deploy config to use for the deployment.
       If not specified, the default deploy config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getDeployConfigBuilder

      public DeployRequest.DeployConfig.Builder getDeployConfigBuilder()
       Optional. The deploy config to use for the deployment.
       If not specified, the default deploy config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getDeployConfigOrBuilder

      public DeployRequest.DeployConfigOrBuilder getDeployConfigOrBuilder()
       Optional. The deploy config to use for the deployment.
       If not specified, the default deploy config will be used.
       
      .google.cloud.aiplatform.v1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeployConfigOrBuilder in interface DeployRequestOrBuilder