Class DeployModelRequest.Builder (0.2.0)

publicstaticfinalclass DeployModelRequest.BuilderextendsGeneratedMessageV3.Builder<DeployModelRequest.Builder>implementsDeployModelRequestOrBuilder

Request message for EndpointService.DeployModel.

Protobuf type google.cloud.vertexai.v1beta1.DeployModelRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicDeployModelRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeployModelRequest.Builder
Overrides

build()

publicDeployModelRequestbuild()
Returns
Type Description
DeployModelRequest

buildPartial()

publicDeployModelRequestbuildPartial()
Returns
Type Description
DeployModelRequest

clear()

publicDeployModelRequest.Builderclear()
Returns
Type Description
DeployModelRequest.Builder
Overrides

clearDeployedModel()

publicDeployModelRequest.BuilderclearDeployedModel()

Required. The DeployedModel to be created within the Endpoint. Note that Endpoint.traffic_split must be updated for the DeployedModel to start receiving traffic, either as part of this call, or via EndpointService.UpdateEndpoint.

.google.cloud.vertexai.v1beta1.DeployedModel deployed_model = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeployModelRequest.Builder

clearEndpoint()

publicDeployModelRequest.BuilderclearEndpoint()

Required. The name of the Endpoint resource into which to deploy a Model. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
DeployModelRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicDeployModelRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DeployModelRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicDeployModelRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DeployModelRequest.Builder
Overrides

clearTrafficSplit()

publicDeployModelRequest.BuilderclearTrafficSplit()
Returns
Type Description
DeployModelRequest.Builder

clone()

publicDeployModelRequest.Builderclone()
Returns
Type Description
DeployModelRequest.Builder
Overrides

containsTrafficSplit(String key)

publicbooleancontainsTrafficSplit(Stringkey)

A map from a DeployedModel's ID to the percentage of this Endpoint's traffic that should be forwarded to that DeployedModel.

If this field is non-empty, then the Endpoint's traffic_split will be overwritten with it. To refer to the ID of the just being deployed Model, a "0" should be used, and the actual ID of the new DeployedModel will be filled in its place by this method. The traffic percentage values must add up to 100.

If this field is empty, then the Endpoint's traffic_split is not updated.

map<string, int32> traffic_split = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

publicDeployModelRequestgetDefaultInstanceForType()
Returns
Type Description
DeployModelRequest

getDeployedModel()

publicDeployedModelgetDeployedModel()

Required. The DeployedModel to be created within the Endpoint. Note that Endpoint.traffic_split must be updated for the DeployedModel to start receiving traffic, either as part of this call, or via EndpointService.UpdateEndpoint.

.google.cloud.vertexai.v1beta1.DeployedModel deployed_model = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeployedModel

The deployedModel.

getDeployedModelBuilder()

publicDeployedModel.BuildergetDeployedModelBuilder()

Required. The DeployedModel to be created within the Endpoint. Note that Endpoint.traffic_split must be updated for the DeployedModel to start receiving traffic, either as part of this call, or via EndpointService.UpdateEndpoint.

.google.cloud.vertexai.v1beta1.DeployedModel deployed_model = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeployedModel.Builder

getDeployedModelOrBuilder()

publicDeployedModelOrBuildergetDeployedModelOrBuilder()

Required. The DeployedModel to be created within the Endpoint. Note that Endpoint.traffic_split must be updated for the DeployedModel to start receiving traffic, either as part of this call, or via EndpointService.UpdateEndpoint.

.google.cloud.vertexai.v1beta1.DeployedModel deployed_model = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeployedModelOrBuilder

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndpoint()

publicStringgetEndpoint()

Required. The name of the Endpoint resource into which to deploy a Model. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The endpoint.

getEndpointBytes()

publicByteStringgetEndpointBytes()

Required. The name of the Endpoint resource into which to deploy a Model. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for endpoint.

getMutableTrafficSplit() (deprecated)

publicMap<String,Integer>getMutableTrafficSplit()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,Integer>

getTrafficSplit() (deprecated)

publicMap<String,Integer>getTrafficSplit()

Use #getTrafficSplitMap() instead.

Returns
Type Description
Map<String,Integer>

getTrafficSplitCount()

publicintgetTrafficSplitCount()

A map from a DeployedModel's ID to the percentage of this Endpoint's traffic that should be forwarded to that DeployedModel.

If this field is non-empty, then the Endpoint's traffic_split will be overwritten with it. To refer to the ID of the just being deployed Model, a "0" should be used, and the actual ID of the new DeployedModel will be filled in its place by this method. The traffic percentage values must add up to 100.

If this field is empty, then the Endpoint's traffic_split is not updated.

map<string, int32> traffic_split = 3;

Returns
Type Description
int

getTrafficSplitMap()

publicMap<String,Integer>getTrafficSplitMap()

A map from a DeployedModel's ID to the percentage of this Endpoint's traffic that should be forwarded to that DeployedModel.

If this field is non-empty, then the Endpoint's traffic_split will be overwritten with it. To refer to the ID of the just being deployed Model, a "0" should be used, and the actual ID of the new DeployedModel will be filled in its place by this method. The traffic percentage values must add up to 100.

If this field is empty, then the Endpoint's traffic_split is not updated.

map<string, int32> traffic_split = 3;

Returns
Type Description
Map<String,Integer>

getTrafficSplitOrDefault(String key, int defaultValue)

publicintgetTrafficSplitOrDefault(Stringkey,intdefaultValue)

A map from a DeployedModel's ID to the percentage of this Endpoint's traffic that should be forwarded to that DeployedModel.

If this field is non-empty, then the Endpoint's traffic_split will be overwritten with it. To refer to the ID of the just being deployed Model, a "0" should be used, and the actual ID of the new DeployedModel will be filled in its place by this method. The traffic percentage values must add up to 100.

If this field is empty, then the Endpoint's traffic_split is not updated.

map<string, int32> traffic_split = 3;

Parameters
Name Description
key String
defaultValue int
Returns
Type Description
int

getTrafficSplitOrThrow(String key)

publicintgetTrafficSplitOrThrow(Stringkey)

A map from a DeployedModel's ID to the percentage of this Endpoint's traffic that should be forwarded to that DeployedModel.

If this field is non-empty, then the Endpoint's traffic_split will be overwritten with it. To refer to the ID of the just being deployed Model, a "0" should be used, and the actual ID of the new DeployedModel will be filled in its place by this method. The traffic percentage values must add up to 100.

If this field is empty, then the Endpoint's traffic_split is not updated.

map<string, int32> traffic_split = 3;

Parameter
Name Description
key String
Returns
Type Description
int

hasDeployedModel()

publicbooleanhasDeployedModel()

Required. The DeployedModel to be created within the Endpoint. Note that Endpoint.traffic_split must be updated for the DeployedModel to start receiving traffic, either as part of this call, or via EndpointService.UpdateEndpoint.

.google.cloud.vertexai.v1beta1.DeployedModel deployed_model = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the deployedModel field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapField(int number)

protectedMapFieldinternalGetMapField(intnumber)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protectedMapFieldinternalGetMutableMapField(intnumber)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeDeployedModel(DeployedModel value)

publicDeployModelRequest.BuildermergeDeployedModel(DeployedModelvalue)

Required. The DeployedModel to be created within the Endpoint. Note that Endpoint.traffic_split must be updated for the DeployedModel to start receiving traffic, either as part of this call, or via EndpointService.UpdateEndpoint.

.google.cloud.vertexai.v1beta1.DeployedModel deployed_model = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DeployedModel
Returns
Type Description
DeployModelRequest.Builder

mergeFrom(DeployModelRequest other)

publicDeployModelRequest.BuildermergeFrom(DeployModelRequestother)
Parameter
Name Description
other DeployModelRequest
Returns
Type Description
DeployModelRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicDeployModelRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeployModelRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicDeployModelRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
DeployModelRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalDeployModelRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeployModelRequest.Builder
Overrides

putAllTrafficSplit(Map<String,Integer> values)

publicDeployModelRequest.BuilderputAllTrafficSplit(Map<String,Integer>values)

A map from a DeployedModel's ID to the percentage of this Endpoint's traffic that should be forwarded to that DeployedModel.

If this field is non-empty, then the Endpoint's traffic_split will be overwritten with it. To refer to the ID of the just being deployed Model, a "0" should be used, and the actual ID of the new DeployedModel will be filled in its place by this method. The traffic percentage values must add up to 100.

If this field is empty, then the Endpoint's traffic_split is not updated.

map<string, int32> traffic_split = 3;

Parameter
Name Description
values Map<String,Integer>
Returns
Type Description
DeployModelRequest.Builder

putTrafficSplit(String key, int value)

publicDeployModelRequest.BuilderputTrafficSplit(Stringkey,intvalue)

A map from a DeployedModel's ID to the percentage of this Endpoint's traffic that should be forwarded to that DeployedModel.

If this field is non-empty, then the Endpoint's traffic_split will be overwritten with it. To refer to the ID of the just being deployed Model, a "0" should be used, and the actual ID of the new DeployedModel will be filled in its place by this method. The traffic percentage values must add up to 100.

If this field is empty, then the Endpoint's traffic_split is not updated.

map<string, int32> traffic_split = 3;

Parameters
Name Description
key String
value int
Returns
Type Description
DeployModelRequest.Builder

removeTrafficSplit(String key)

publicDeployModelRequest.BuilderremoveTrafficSplit(Stringkey)

A map from a DeployedModel's ID to the percentage of this Endpoint's traffic that should be forwarded to that DeployedModel.

If this field is non-empty, then the Endpoint's traffic_split will be overwritten with it. To refer to the ID of the just being deployed Model, a "0" should be used, and the actual ID of the new DeployedModel will be filled in its place by this method. The traffic percentage values must add up to 100.

If this field is empty, then the Endpoint's traffic_split is not updated.

map<string, int32> traffic_split = 3;

Parameter
Name Description
key String
Returns
Type Description
DeployModelRequest.Builder

setDeployedModel(DeployedModel value)

publicDeployModelRequest.BuildersetDeployedModel(DeployedModelvalue)

Required. The DeployedModel to be created within the Endpoint. Note that Endpoint.traffic_split must be updated for the DeployedModel to start receiving traffic, either as part of this call, or via EndpointService.UpdateEndpoint.

.google.cloud.vertexai.v1beta1.DeployedModel deployed_model = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DeployedModel
Returns
Type Description
DeployModelRequest.Builder

setDeployedModel(DeployedModel.Builder builderForValue)

publicDeployModelRequest.BuildersetDeployedModel(DeployedModel.BuilderbuilderForValue)

Required. The DeployedModel to be created within the Endpoint. Note that Endpoint.traffic_split must be updated for the DeployedModel to start receiving traffic, either as part of this call, or via EndpointService.UpdateEndpoint.

.google.cloud.vertexai.v1beta1.DeployedModel deployed_model = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DeployedModel.Builder
Returns
Type Description
DeployModelRequest.Builder

setEndpoint(String value)

publicDeployModelRequest.BuildersetEndpoint(Stringvalue)

Required. The name of the Endpoint resource into which to deploy a Model. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The endpoint to set.

Returns
Type Description
DeployModelRequest.Builder

This builder for chaining.

setEndpointBytes(ByteString value)

publicDeployModelRequest.BuildersetEndpointBytes(ByteStringvalue)

Required. The name of the Endpoint resource into which to deploy a Model. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

string endpoint = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for endpoint to set.

Returns
Type Description
DeployModelRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicDeployModelRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeployModelRequest.Builder
Overrides

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

publicDeployModelRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DeployModelRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalDeployModelRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeployModelRequest.Builder
Overrides

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.