Class PublisherModel.CallToAction.Deploy.Builder (3.23.0)

public static final class PublisherModel.CallToAction.Deploy.Builder extends GeneratedMessageV3.Builder<PublisherModel.CallToAction.Deploy.Builder> implements PublisherModel.CallToAction.DeployOrBuilder

Model metadata that is needed for UploadModel or DeployModel/CreateEndpoint requests.

Protobuf type google.cloud.aiplatform.v1.PublisherModel.CallToAction.Deploy

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PublisherModel.CallToAction.Deploy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Overrides

build()

public PublisherModel.CallToAction.Deploy build()

buildPartial()

public PublisherModel.CallToAction.Deploy buildPartial()

clear()

public PublisherModel.CallToAction.Deploy.Builder clear()
Overrides

clearArtifactUri()

public PublisherModel.CallToAction.Deploy.Builder clearArtifactUri()

Optional. The path to the directory containing the Model artifact and any of its supporting files.

string artifact_uri = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PublisherModel.CallToAction.Deploy.Builder

This builder for chaining.

clearAutomaticResources()

public PublisherModel.CallToAction.Deploy.Builder clearAutomaticResources()

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

.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 6;

clearContainerSpec()

public PublisherModel.CallToAction.Deploy.Builder clearContainerSpec()

Optional. The specification of the container that is to be used when deploying this Model in Vertex AI. Not present for Large Models.

.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 3 [(.google.api.field_behavior) = OPTIONAL];

clearDedicatedResources()

public PublisherModel.CallToAction.Deploy.Builder clearDedicatedResources()

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

.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 5;

clearField(Descriptors.FieldDescriptor field)

public PublisherModel.CallToAction.Deploy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Overrides

clearLargeModelReference()

public PublisherModel.CallToAction.Deploy.Builder clearLargeModelReference()

Optional. Large model reference. When this is set, model_artifact_spec is not needed.

.google.cloud.aiplatform.v1.LargeModelReference large_model_reference = 2 [(.google.api.field_behavior) = OPTIONAL];

clearModelDisplayName()

public PublisherModel.CallToAction.Deploy.Builder clearModelDisplayName()

Optional. Default model display name.

string model_display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PublisherModel.CallToAction.Deploy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PublisherModel.CallToAction.Deploy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Overrides

clearPredictionResources()

public PublisherModel.CallToAction.Deploy.Builder clearPredictionResources()

clearSharedResources()

public PublisherModel.CallToAction.Deploy.Builder clearSharedResources()

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

string shared_resources = 7;

Returns
TypeDescription
PublisherModel.CallToAction.Deploy.Builder

This builder for chaining.

clearTitle()

public PublisherModel.CallToAction.Deploy.Builder clearTitle()

Required. The title of the regional resource reference.

string title = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PublisherModel.CallToAction.Deploy.Builder

This builder for chaining.

clone()

public PublisherModel.CallToAction.Deploy.Builder clone()
Overrides

getArtifactUri()

public String getArtifactUri()

Optional. The path to the directory containing the Model artifact and any of its supporting files.

string artifact_uri = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The artifactUri.

getArtifactUriBytes()

public ByteString getArtifactUriBytes()

Optional. The path to the directory containing the Model artifact and any of its supporting files.

string artifact_uri = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for artifactUri.

getAutomaticResources()

public AutomaticResources getAutomaticResources()

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

.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 6;

Returns
TypeDescription
AutomaticResources

The automaticResources.

getAutomaticResourcesBuilder()

public AutomaticResources.Builder getAutomaticResourcesBuilder()

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

.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 6;

Returns
TypeDescription
AutomaticResources.Builder

getAutomaticResourcesOrBuilder()

public AutomaticResourcesOrBuilder getAutomaticResourcesOrBuilder()

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

.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 6;

Returns
TypeDescription
AutomaticResourcesOrBuilder

getContainerSpec()

public ModelContainerSpec getContainerSpec()

Optional. The specification of the container that is to be used when deploying this Model in Vertex AI. Not present for Large Models.

.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ModelContainerSpec

The containerSpec.

getContainerSpecBuilder()

public ModelContainerSpec.Builder getContainerSpecBuilder()

Optional. The specification of the container that is to be used when deploying this Model in Vertex AI. Not present for Large Models.

.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ModelContainerSpec.Builder

getContainerSpecOrBuilder()

public ModelContainerSpecOrBuilder getContainerSpecOrBuilder()

Optional. The specification of the container that is to be used when deploying this Model in Vertex AI. Not present for Large Models.

.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ModelContainerSpecOrBuilder

getDedicatedResources()

public DedicatedResources getDedicatedResources()

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

.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 5;

Returns
TypeDescription
DedicatedResources

The dedicatedResources.

getDedicatedResourcesBuilder()

public DedicatedResources.Builder getDedicatedResourcesBuilder()

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

.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 5;

Returns
TypeDescription
DedicatedResources.Builder

getDedicatedResourcesOrBuilder()

public DedicatedResourcesOrBuilder getDedicatedResourcesOrBuilder()

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

.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 5;

Returns
TypeDescription
DedicatedResourcesOrBuilder

getDefaultInstanceForType()

public PublisherModel.CallToAction.Deploy getDefaultInstanceForType()

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLargeModelReference()

public LargeModelReference getLargeModelReference()

Optional. Large model reference. When this is set, model_artifact_spec is not needed.

.google.cloud.aiplatform.v1.LargeModelReference large_model_reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
LargeModelReference

The largeModelReference.

getLargeModelReferenceBuilder()

public LargeModelReference.Builder getLargeModelReferenceBuilder()

Optional. Large model reference. When this is set, model_artifact_spec is not needed.

.google.cloud.aiplatform.v1.LargeModelReference large_model_reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
LargeModelReference.Builder

getLargeModelReferenceOrBuilder()

public LargeModelReferenceOrBuilder getLargeModelReferenceOrBuilder()

Optional. Large model reference. When this is set, model_artifact_spec is not needed.

.google.cloud.aiplatform.v1.LargeModelReference large_model_reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
LargeModelReferenceOrBuilder

getModelDisplayName()

public String getModelDisplayName()

Optional. Default model display name.

string model_display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The modelDisplayName.

getModelDisplayNameBytes()

public ByteString getModelDisplayNameBytes()

Optional. Default model display name.

string model_display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for modelDisplayName.

getPredictionResourcesCase()

public PublisherModel.CallToAction.Deploy.PredictionResourcesCase getPredictionResourcesCase()

getSharedResources()

public String getSharedResources()

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

string shared_resources = 7;

Returns
TypeDescription
String

The sharedResources.

getSharedResourcesBytes()

public ByteString getSharedResourcesBytes()

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

string shared_resources = 7;

Returns
TypeDescription
ByteString

The bytes for sharedResources.

getTitle()

public String getTitle()

Required. The title of the regional resource reference.

string title = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Required. The title of the regional resource reference.

string title = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for title.

hasAutomaticResources()

public boolean hasAutomaticResources()

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

.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 6;

Returns
TypeDescription
boolean

Whether the automaticResources field is set.

hasContainerSpec()

public boolean hasContainerSpec()

Optional. The specification of the container that is to be used when deploying this Model in Vertex AI. Not present for Large Models.

.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the containerSpec field is set.

hasDedicatedResources()

public boolean hasDedicatedResources()

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

.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 5;

Returns
TypeDescription
boolean

Whether the dedicatedResources field is set.

hasLargeModelReference()

public boolean hasLargeModelReference()

Optional. Large model reference. When this is set, model_artifact_spec is not needed.

.google.cloud.aiplatform.v1.LargeModelReference large_model_reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the largeModelReference field is set.

hasSharedResources()

public boolean hasSharedResources()

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

string shared_resources = 7;

Returns
TypeDescription
boolean

Whether the sharedResources field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAutomaticResources(AutomaticResources value)

public PublisherModel.CallToAction.Deploy.Builder mergeAutomaticResources(AutomaticResources value)

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

.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 6;

Parameter
NameDescription
valueAutomaticResources

mergeContainerSpec(ModelContainerSpec value)

public PublisherModel.CallToAction.Deploy.Builder mergeContainerSpec(ModelContainerSpec value)

Optional. The specification of the container that is to be used when deploying this Model in Vertex AI. Not present for Large Models.

.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueModelContainerSpec

mergeDedicatedResources(DedicatedResources value)

public PublisherModel.CallToAction.Deploy.Builder mergeDedicatedResources(DedicatedResources value)

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

.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 5;

Parameter
NameDescription
valueDedicatedResources

mergeFrom(PublisherModel.CallToAction.Deploy other)

public PublisherModel.CallToAction.Deploy.Builder mergeFrom(PublisherModel.CallToAction.Deploy other)
Parameter
NameDescription
otherPublisherModel.CallToAction.Deploy

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PublisherModel.CallToAction.Deploy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PublisherModel.CallToAction.Deploy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Overrides

mergeLargeModelReference(LargeModelReference value)

public PublisherModel.CallToAction.Deploy.Builder mergeLargeModelReference(LargeModelReference value)

Optional. Large model reference. When this is set, model_artifact_spec is not needed.

.google.cloud.aiplatform.v1.LargeModelReference large_model_reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueLargeModelReference

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PublisherModel.CallToAction.Deploy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Overrides

setArtifactUri(String value)

public PublisherModel.CallToAction.Deploy.Builder setArtifactUri(String value)

Optional. The path to the directory containing the Model artifact and any of its supporting files.

string artifact_uri = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The artifactUri to set.

Returns
TypeDescription
PublisherModel.CallToAction.Deploy.Builder

This builder for chaining.

setArtifactUriBytes(ByteString value)

public PublisherModel.CallToAction.Deploy.Builder setArtifactUriBytes(ByteString value)

Optional. The path to the directory containing the Model artifact and any of its supporting files.

string artifact_uri = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for artifactUri to set.

Returns
TypeDescription
PublisherModel.CallToAction.Deploy.Builder

This builder for chaining.

setAutomaticResources(AutomaticResources value)

public PublisherModel.CallToAction.Deploy.Builder setAutomaticResources(AutomaticResources value)

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

.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 6;

Parameter
NameDescription
valueAutomaticResources

setAutomaticResources(AutomaticResources.Builder builderForValue)

public PublisherModel.CallToAction.Deploy.Builder setAutomaticResources(AutomaticResources.Builder builderForValue)

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

.google.cloud.aiplatform.v1.AutomaticResources automatic_resources = 6;

Parameter
NameDescription
builderForValueAutomaticResources.Builder

setContainerSpec(ModelContainerSpec value)

public PublisherModel.CallToAction.Deploy.Builder setContainerSpec(ModelContainerSpec value)

Optional. The specification of the container that is to be used when deploying this Model in Vertex AI. Not present for Large Models.

.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueModelContainerSpec

setContainerSpec(ModelContainerSpec.Builder builderForValue)

public PublisherModel.CallToAction.Deploy.Builder setContainerSpec(ModelContainerSpec.Builder builderForValue)

Optional. The specification of the container that is to be used when deploying this Model in Vertex AI. Not present for Large Models.

.google.cloud.aiplatform.v1.ModelContainerSpec container_spec = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueModelContainerSpec.Builder

setDedicatedResources(DedicatedResources value)

public PublisherModel.CallToAction.Deploy.Builder setDedicatedResources(DedicatedResources value)

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

.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 5;

Parameter
NameDescription
valueDedicatedResources

setDedicatedResources(DedicatedResources.Builder builderForValue)

public PublisherModel.CallToAction.Deploy.Builder setDedicatedResources(DedicatedResources.Builder builderForValue)

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

.google.cloud.aiplatform.v1.DedicatedResources dedicated_resources = 5;

Parameter
NameDescription
builderForValueDedicatedResources.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PublisherModel.CallToAction.Deploy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Overrides

setLargeModelReference(LargeModelReference value)

public PublisherModel.CallToAction.Deploy.Builder setLargeModelReference(LargeModelReference value)

Optional. Large model reference. When this is set, model_artifact_spec is not needed.

.google.cloud.aiplatform.v1.LargeModelReference large_model_reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueLargeModelReference

setLargeModelReference(LargeModelReference.Builder builderForValue)

public PublisherModel.CallToAction.Deploy.Builder setLargeModelReference(LargeModelReference.Builder builderForValue)

Optional. Large model reference. When this is set, model_artifact_spec is not needed.

.google.cloud.aiplatform.v1.LargeModelReference large_model_reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueLargeModelReference.Builder

setModelDisplayName(String value)

public PublisherModel.CallToAction.Deploy.Builder setModelDisplayName(String value)

Optional. Default model display name.

string model_display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The modelDisplayName to set.

Returns
TypeDescription
PublisherModel.CallToAction.Deploy.Builder

This builder for chaining.

setModelDisplayNameBytes(ByteString value)

public PublisherModel.CallToAction.Deploy.Builder setModelDisplayNameBytes(ByteString value)

Optional. Default model display name.

string model_display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for modelDisplayName to set.

Returns
TypeDescription
PublisherModel.CallToAction.Deploy.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PublisherModel.CallToAction.Deploy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Overrides

setSharedResources(String value)

public PublisherModel.CallToAction.Deploy.Builder setSharedResources(String value)

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

string shared_resources = 7;

Parameter
NameDescription
valueString

The sharedResources to set.

Returns
TypeDescription
PublisherModel.CallToAction.Deploy.Builder

This builder for chaining.

setSharedResourcesBytes(ByteString value)

public PublisherModel.CallToAction.Deploy.Builder setSharedResourcesBytes(ByteString value)

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

string shared_resources = 7;

Parameter
NameDescription
valueByteString

The bytes for sharedResources to set.

Returns
TypeDescription
PublisherModel.CallToAction.Deploy.Builder

This builder for chaining.

setTitle(String value)

public PublisherModel.CallToAction.Deploy.Builder setTitle(String value)

Required. The title of the regional resource reference.

string title = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The title to set.

Returns
TypeDescription
PublisherModel.CallToAction.Deploy.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public PublisherModel.CallToAction.Deploy.Builder setTitleBytes(ByteString value)

Required. The title of the regional resource reference.

string title = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
PublisherModel.CallToAction.Deploy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PublisherModel.CallToAction.Deploy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Overrides