public final class DeployRequest extends GeneratedMessageV3 implements DeployRequestOrBuilder
Request message for
ModelGardenService.Deploy.
Protobuf type google.cloud.aiplatform.v1beta1.DeployRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int DEPLOY_CONFIG_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int DESTINATION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ENDPOINT_CONFIG_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int HUGGING_FACE_MODEL_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int MODEL_CONFIG_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PUBLISHER_MODEL_NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static DeployRequest getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static DeployRequest.Builder newBuilder()
public static DeployRequest.Builder newBuilder(DeployRequest prototype)
public static DeployRequest parseDelimitedFrom(InputStream input)
public static DeployRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DeployRequest parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static DeployRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DeployRequest parseFrom(ByteString data)
public static DeployRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DeployRequest parseFrom(CodedInputStream input)
public static DeployRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DeployRequest parseFrom(InputStream input)
public static DeployRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DeployRequest parseFrom(ByteBuffer data)
public static DeployRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<DeployRequest> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public DeployRequest.ArtifactsCase getArtifactsCase()
public DeployRequest getDefaultInstanceForType()
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.v1beta1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL];
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) = { ... }
Returns |
Type |
Description |
String |
The destination.
|
public 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) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for destination.
|
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.v1beta1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL];
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;
Returns |
Type |
Description |
String |
The huggingFaceModelId.
|
public 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;
Returns |
Type |
Description |
ByteString |
The bytes for huggingFaceModelId.
|
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.v1beta1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL];
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.v1beta1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL];
public Parser<DeployRequest> getParserForType()
Overrides
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) = { ... }
Returns |
Type |
Description |
String |
The publisherModelName.
|
public 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) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for publisherModelName.
|
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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.v1beta1.DeployRequest.DeployConfig deploy_config = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the deployConfig field is set.
|
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.v1beta1.DeployRequest.EndpointConfig endpoint_config = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the endpointConfig field is set.
|
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;
Returns |
Type |
Description |
boolean |
Whether the huggingFaceModelId field is set.
|
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.v1beta1.DeployRequest.ModelConfig model_config = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the modelConfig field is set.
|
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) = { ... }
Returns |
Type |
Description |
boolean |
Whether the publisherModelName field is set.
|
Returns |
Type |
Description |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public DeployRequest.Builder newBuilderForType()
protected DeployRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public DeployRequest.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides