Class DeployedModel (1.16.0)

publicfinalclass DeployedModelextendsGeneratedMessageV3implementsDeployedModelOrBuilder

A deployment of a Model. Endpoints contain one or more DeployedModels.

Protobuf type google.cloud.vertexai.v1.DeployedModel

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

AUTOMATIC_RESOURCES_FIELD_NUMBER

publicstaticfinalintAUTOMATIC_RESOURCES_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

publicstaticfinalintCREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DEDICATED_RESOURCES_FIELD_NUMBER

publicstaticfinalintDEDICATED_RESOURCES_FIELD_NUMBER
Field Value
Type Description
int

DISABLE_CONTAINER_LOGGING_FIELD_NUMBER

publicstaticfinalintDISABLE_CONTAINER_LOGGING_FIELD_NUMBER
Field Value
Type Description
int

DISABLE_EXPLANATIONS_FIELD_NUMBER

publicstaticfinalintDISABLE_EXPLANATIONS_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

publicstaticfinalintDISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_ACCESS_LOGGING_FIELD_NUMBER

publicstaticfinalintENABLE_ACCESS_LOGGING_FIELD_NUMBER
Field Value
Type Description
int

EXPLANATION_SPEC_FIELD_NUMBER

publicstaticfinalintEXPLANATION_SPEC_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

publicstaticfinalintID_FIELD_NUMBER
Field Value
Type Description
int

MODEL_FIELD_NUMBER

publicstaticfinalintMODEL_FIELD_NUMBER
Field Value
Type Description
int

MODEL_VERSION_ID_FIELD_NUMBER

publicstaticfinalintMODEL_VERSION_ID_FIELD_NUMBER
Field Value
Type Description
int

PRIVATE_ENDPOINTS_FIELD_NUMBER

publicstaticfinalintPRIVATE_ENDPOINTS_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_ACCOUNT_FIELD_NUMBER

publicstaticfinalintSERVICE_ACCOUNT_FIELD_NUMBER
Field Value
Type Description
int

SHARED_RESOURCES_FIELD_NUMBER

publicstaticfinalintSHARED_RESOURCES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticDeployedModelgetDefaultInstance()
Returns
Type Description
DeployedModel

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticDeployedModel.BuildernewBuilder()
Returns
Type Description
DeployedModel.Builder

newBuilder(DeployedModel prototype)

publicstaticDeployedModel.BuildernewBuilder(DeployedModelprototype)
Parameter
Name Description
prototype DeployedModel
Returns
Type Description
DeployedModel.Builder

parseDelimitedFrom(InputStream input)

publicstaticDeployedModelparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
DeployedModel
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDeployedModelparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeployedModel
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticDeployedModelparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
DeployedModel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticDeployedModelparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeployedModel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticDeployedModelparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
DeployedModel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticDeployedModelparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeployedModel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticDeployedModelparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DeployedModel
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDeployedModelparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeployedModel
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticDeployedModelparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
DeployedModel
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticDeployedModelparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeployedModel
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticDeployedModelparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DeployedModel
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticDeployedModelparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeployedModel
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<DeployedModel>parser()
Returns
Type Description
Parser<DeployedModel>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAutomaticResources()

publicAutomaticResourcesgetAutomaticResources()

A description of resources that to large degree are decided by Vertex AI, and require only a modest additional configuration.

.google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;

Returns
Type Description
AutomaticResources

The automaticResources.

getAutomaticResourcesOrBuilder()

publicAutomaticResourcesOrBuildergetAutomaticResourcesOrBuilder()

A description of resources that to large degree are decided by Vertex AI, and require only a modest additional configuration.

.google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;

Returns
Type Description
AutomaticResourcesOrBuilder

getCreateTime()

publicTimestampgetCreateTime()

Output only. Timestamp when the DeployedModel was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

Output only. Timestamp when the DeployedModel was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDedicatedResources()

publicDedicatedResourcesgetDedicatedResources()

A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.

.google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;

Returns
Type Description
DedicatedResources

The dedicatedResources.

getDedicatedResourcesOrBuilder()

publicDedicatedResourcesOrBuildergetDedicatedResourcesOrBuilder()

A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.

.google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;

Returns
Type Description
DedicatedResourcesOrBuilder

getDefaultInstanceForType()

publicDeployedModelgetDefaultInstanceForType()
Returns
Type Description
DeployedModel

getDisableContainerLogging()

publicbooleangetDisableContainerLogging()

For custom-trained Models and AutoML Tabular Models, the container of the DeployedModel instances will send stderr and stdout streams to Cloud Logging by default. Please note that the logs incur cost, which are subject to Cloud Logging pricing.

User can disable container logging by setting this flag to true.

bool disable_container_logging = 15;

Returns
Type Description
boolean

The disableContainerLogging.

getDisableExplanations()

publicbooleangetDisableExplanations()

If true, deploy the model without explainable feature, regardless the existence of Model.explanation_spec or explanation_spec.

bool disable_explanations = 19;

Returns
Type Description
boolean

The disableExplanations.

getDisplayName()

publicStringgetDisplayName()

The display name of the DeployedModel. If not provided upon creation, the Model's display_name is used.

string display_name = 3;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

publicByteStringgetDisplayNameBytes()

The display name of the DeployedModel. If not provided upon creation, the Model's display_name is used.

string display_name = 3;

Returns
Type Description
ByteString

The bytes for displayName.

getEnableAccessLogging()

publicbooleangetEnableAccessLogging()

If true, online prediction access logs are sent to Cloud Logging. These logs are like standard server access logs, containing information like timestamp and latency for each prediction request.

Note that logs may incur a cost, especially if your project receives prediction requests at a high queries per second rate (QPS). Estimate your costs before enabling this option.

bool enable_access_logging = 13;

Returns
Type Description
boolean

The enableAccessLogging.

getExplanationSpec()

publicExplanationSpecgetExplanationSpec()

Explanation configuration for this DeployedModel.

When deploying a Model using EndpointService.DeployModel, this value overrides the value of Model.explanation_spec. All fields of explanation_spec are optional in the request. If a field of explanation_spec is not populated, the value of the same field of Model.explanation_spec is inherited. If the corresponding Model.explanation_spec is not populated, all fields of the explanation_spec will be used for the explanation configuration.

.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;

Returns
Type Description
ExplanationSpec

The explanationSpec.

getExplanationSpecOrBuilder()

publicExplanationSpecOrBuildergetExplanationSpecOrBuilder()

Explanation configuration for this DeployedModel.

When deploying a Model using EndpointService.DeployModel, this value overrides the value of Model.explanation_spec. All fields of explanation_spec are optional in the request. If a field of explanation_spec is not populated, the value of the same field of Model.explanation_spec is inherited. If the corresponding Model.explanation_spec is not populated, all fields of the explanation_spec will be used for the explanation configuration.

.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;

Returns
Type Description
ExplanationSpecOrBuilder

getId()

publicStringgetId()

Immutable. The ID of the DeployedModel. If not provided upon deployment, Vertex AI will generate a value for this ID.

This value should be 1-10 characters, and valid characters are /[0-9]/.

string id = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The id.

getIdBytes()

publicByteStringgetIdBytes()

Immutable. The ID of the DeployedModel. If not provided upon deployment, Vertex AI will generate a value for this ID.

This value should be 1-10 characters, and valid characters are /[0-9]/.

string id = 1 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for id.

getModel()

publicStringgetModel()

Required. The resource name of the Model that this is the deployment of. Note that the Model may be in a different location than the DeployedModel's Endpoint.

The resource name may contain version id or version alias to specify the version. Example: projects/{project}/locations/{location}/models/{model}@2 or projects/{project}/locations/{location}/models/{model}@golden if no version is specified, the default version will be deployed.

string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The model.

getModelBytes()

publicByteStringgetModelBytes()

Required. The resource name of the Model that this is the deployment of. Note that the Model may be in a different location than the DeployedModel's Endpoint.

The resource name may contain version id or version alias to specify the version. Example: projects/{project}/locations/{location}/models/{model}@2 or projects/{project}/locations/{location}/models/{model}@golden if no version is specified, the default version will be deployed.

string model = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for model.

getModelVersionId()

publicStringgetModelVersionId()

Output only. The version ID of the model that is deployed.

string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The modelVersionId.

getModelVersionIdBytes()

publicByteStringgetModelVersionIdBytes()

Output only. The version ID of the model that is deployed.

string model_version_id = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for modelVersionId.

getParserForType()

publicParser<DeployedModel>getParserForType()
Returns
Type Description
Parser<DeployedModel>
Overrides

getPredictionResourcesCase()

publicDeployedModel.PredictionResourcesCasegetPredictionResourcesCase()
Returns
Type Description
DeployedModel.PredictionResourcesCase

getPrivateEndpoints()

publicPrivateEndpointsgetPrivateEndpoints()

Output only. Provide paths for users to send predict/explain/health requests directly to the deployed model services running on Cloud via private services access. This field is populated if network is configured.

.google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PrivateEndpoints

The privateEndpoints.

getPrivateEndpointsOrBuilder()

publicPrivateEndpointsOrBuildergetPrivateEndpointsOrBuilder()

Output only. Provide paths for users to send predict/explain/health requests directly to the deployed model services running on Cloud via private services access. This field is populated if network is configured.

.google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PrivateEndpointsOrBuilder

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getServiceAccount()

publicStringgetServiceAccount()

The service account that the DeployedModel's container runs as. Specify the email address of the service account. If this service account is not specified, the container runs as a service account that doesn't have access to the resource project.

Users deploying the Model must have the iam.serviceAccounts.actAs permission on this service account.

string service_account = 11;

Returns
Type Description
String

The serviceAccount.

getServiceAccountBytes()

publicByteStringgetServiceAccountBytes()

The service account that the DeployedModel's container runs as. Specify the email address of the service account. If this service account is not specified, the container runs as a service account that doesn't have access to the resource project.

Users deploying the Model must have the iam.serviceAccounts.actAs permission on this service account.

string service_account = 11;

Returns
Type Description
ByteString

The bytes for serviceAccount.

getSharedResources()

publicStringgetSharedResources()

The resource name of the shared DeploymentResourcePool to deploy on. Format: projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}

string shared_resources = 17 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The sharedResources.

getSharedResourcesBytes()

publicByteStringgetSharedResourcesBytes()

The resource name of the shared DeploymentResourcePool to deploy on. Format: projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}

string shared_resources = 17 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for sharedResources.

hasAutomaticResources()

publicbooleanhasAutomaticResources()

A description of resources that to large degree are decided by Vertex AI, and require only a modest additional configuration.

.google.cloud.vertexai.v1.AutomaticResources automatic_resources = 8;

Returns
Type Description
boolean

Whether the automaticResources field is set.

hasCreateTime()

publicbooleanhasCreateTime()

Output only. Timestamp when the DeployedModel was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDedicatedResources()

publicbooleanhasDedicatedResources()

A description of resources that are dedicated to the DeployedModel, and that need a higher degree of manual configuration.

.google.cloud.vertexai.v1.DedicatedResources dedicated_resources = 7;

Returns
Type Description
boolean

Whether the dedicatedResources field is set.

hasExplanationSpec()

publicbooleanhasExplanationSpec()

Explanation configuration for this DeployedModel.

When deploying a Model using EndpointService.DeployModel, this value overrides the value of Model.explanation_spec. All fields of explanation_spec are optional in the request. If a field of explanation_spec is not populated, the value of the same field of Model.explanation_spec is inherited. If the corresponding Model.explanation_spec is not populated, all fields of the explanation_spec will be used for the explanation configuration.

.google.cloud.vertexai.v1.ExplanationSpec explanation_spec = 9;

Returns
Type Description
boolean

Whether the explanationSpec field is set.

hasPrivateEndpoints()

publicbooleanhasPrivateEndpoints()

Output only. Provide paths for users to send predict/explain/health requests directly to the deployed model services running on Cloud via private services access. This field is populated if network is configured.

.google.cloud.vertexai.v1.PrivateEndpoints private_endpoints = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the privateEndpoints field is set.

hasSharedResources()

publicbooleanhasSharedResources()

The resource name of the shared DeploymentResourcePool to deploy on. Format: projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}

string shared_resources = 17 [(.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the sharedResources field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicDeployedModel.BuildernewBuilderForType()
Returns
Type Description
DeployedModel.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedDeployedModel.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DeployedModel.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicDeployedModel.BuildertoBuilder()
Returns
Type Description
DeployedModel.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.