Class DeployRequest

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.DeployRequest
All Implemented Interfaces:
DeployRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class DeployRequest extends com.google.protobuf.GeneratedMessage implements DeployRequestOrBuilder
 Request message for
 [ModelGardenService.Deploy][google.cloud.aiplatform.v1.ModelGardenService.Deploy].
 
Protobuf type google.cloud.aiplatform.v1.DeployRequest
See Also:
  • Field Details

    • PUBLISHER_MODEL_NAME_FIELD_NUMBER

      public static final int PUBLISHER_MODEL_NAME_FIELD_NUMBER
      See Also:
    • HUGGING_FACE_MODEL_ID_FIELD_NUMBER

      public static final int HUGGING_FACE_MODEL_ID_FIELD_NUMBER
      See Also:
    • DESTINATION_FIELD_NUMBER

      public static final int DESTINATION_FIELD_NUMBER
      See Also:
    • MODEL_CONFIG_FIELD_NUMBER

      public static final int MODEL_CONFIG_FIELD_NUMBER
      See Also:
    • ENDPOINT_CONFIG_FIELD_NUMBER

      public static final int ENDPOINT_CONFIG_FIELD_NUMBER
      See Also:
    • DEPLOY_CONFIG_FIELD_NUMBER

      public static final int DEPLOY_CONFIG_FIELD_NUMBER
      See Also:
  • 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
    • getArtifactsCase

      public DeployRequest.ArtifactsCase getArtifactsCase()
      Specified by:
      getArtifactsCase in interface DeployRequestOrBuilder
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static DeployRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeployRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeployRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeployRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeployRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeployRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DeployRequest parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DeployRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DeployRequest parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DeployRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DeployRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DeployRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static DeployRequest.Builder newBuilder()
    • newBuilder

      public static DeployRequest.Builder newBuilder(DeployRequest prototype)
    • toBuilder

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

      protected DeployRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static DeployRequest getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DeployRequest> parser()
    • getParserForType

      public com.google.protobuf.Parser<DeployRequest> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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