Class UndeployModelRequest.Builder (0.4.0)

publicstaticfinalclass UndeployModelRequest.BuilderextendsGeneratedMessageV3.Builder<UndeployModelRequest.Builder>implementsUndeployModelRequestOrBuilder

Request message for EndpointService.UndeployModel.

Protobuf type google.cloud.vertexai.v1.UndeployModelRequest

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)

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

build()

publicUndeployModelRequestbuild()
Returns
Type Description
UndeployModelRequest

buildPartial()

publicUndeployModelRequestbuildPartial()
Returns
Type Description
UndeployModelRequest

clear()

publicUndeployModelRequest.Builderclear()
Returns
Type Description
UndeployModelRequest.Builder
Overrides

clearDeployedModelId()

publicUndeployModelRequest.BuilderclearDeployedModelId()

Required. The ID of the DeployedModel to be undeployed from the Endpoint.

string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UndeployModelRequest.Builder

This builder for chaining.

clearEndpoint()

publicUndeployModelRequest.BuilderclearEndpoint()

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

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

Returns
Type Description
UndeployModelRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicUndeployModelRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UndeployModelRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicUndeployModelRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UndeployModelRequest.Builder
Overrides

clearTrafficSplit()

publicUndeployModelRequest.BuilderclearTrafficSplit()
Returns
Type Description
UndeployModelRequest.Builder

clone()

publicUndeployModelRequest.Builderclone()
Returns
Type Description
UndeployModelRequest.Builder
Overrides

containsTrafficSplit(String key)

publicbooleancontainsTrafficSplit(Stringkey)

If this field is provided, then the Endpoint's traffic_split will be overwritten with it. If last DeployedModel is being undeployed from the Endpoint, the [Endpoint.traffic_split] will always end up empty when this call returns. A DeployedModel will be successfully undeployed only if it doesn't have any traffic assigned to it when this method executes, or if this field unassigns any traffic to it.

map<string, int32> traffic_split = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

publicUndeployModelRequestgetDefaultInstanceForType()
Returns
Type Description
UndeployModelRequest

getDeployedModelId()

publicStringgetDeployedModelId()

Required. The ID of the DeployedModel to be undeployed from the Endpoint.

string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The deployedModelId.

getDeployedModelIdBytes()

publicByteStringgetDeployedModelIdBytes()

Required. The ID of the DeployedModel to be undeployed from the Endpoint.

string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for deployedModelId.

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndpoint()

publicStringgetEndpoint()

Required. The name of the Endpoint resource from which to undeploy 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 from which to undeploy 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()

If this field is provided, then the Endpoint's traffic_split will be overwritten with it. If last DeployedModel is being undeployed from the Endpoint, the [Endpoint.traffic_split] will always end up empty when this call returns. A DeployedModel will be successfully undeployed only if it doesn't have any traffic assigned to it when this method executes, or if this field unassigns any traffic to it.

map<string, int32> traffic_split = 3;

Returns
Type Description
int

getTrafficSplitMap()

publicMap<String,Integer>getTrafficSplitMap()

If this field is provided, then the Endpoint's traffic_split will be overwritten with it. If last DeployedModel is being undeployed from the Endpoint, the [Endpoint.traffic_split] will always end up empty when this call returns. A DeployedModel will be successfully undeployed only if it doesn't have any traffic assigned to it when this method executes, or if this field unassigns any traffic to it.

map<string, int32> traffic_split = 3;

Returns
Type Description
Map<String,Integer>

getTrafficSplitOrDefault(String key, int defaultValue)

publicintgetTrafficSplitOrDefault(Stringkey,intdefaultValue)

If this field is provided, then the Endpoint's traffic_split will be overwritten with it. If last DeployedModel is being undeployed from the Endpoint, the [Endpoint.traffic_split] will always end up empty when this call returns. A DeployedModel will be successfully undeployed only if it doesn't have any traffic assigned to it when this method executes, or if this field unassigns any traffic to it.

map<string, int32> traffic_split = 3;

Parameters
Name Description
key String
defaultValue int
Returns
Type Description
int

getTrafficSplitOrThrow(String key)

publicintgetTrafficSplitOrThrow(Stringkey)

If this field is provided, then the Endpoint's traffic_split will be overwritten with it. If last DeployedModel is being undeployed from the Endpoint, the [Endpoint.traffic_split] will always end up empty when this call returns. A DeployedModel will be successfully undeployed only if it doesn't have any traffic assigned to it when this method executes, or if this field unassigns any traffic to it.

map<string, int32> traffic_split = 3;

Parameter
Name Description
key String
Returns
Type Description
int

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

mergeFrom(UndeployModelRequest other)

publicUndeployModelRequest.BuildermergeFrom(UndeployModelRequestother)
Parameter
Name Description
other UndeployModelRequest
Returns
Type Description
UndeployModelRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

publicUndeployModelRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
UndeployModelRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalUndeployModelRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UndeployModelRequest.Builder
Overrides

putAllTrafficSplit(Map<String,Integer> values)

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

If this field is provided, then the Endpoint's traffic_split will be overwritten with it. If last DeployedModel is being undeployed from the Endpoint, the [Endpoint.traffic_split] will always end up empty when this call returns. A DeployedModel will be successfully undeployed only if it doesn't have any traffic assigned to it when this method executes, or if this field unassigns any traffic to it.

map<string, int32> traffic_split = 3;

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

putTrafficSplit(String key, int value)

publicUndeployModelRequest.BuilderputTrafficSplit(Stringkey,intvalue)

If this field is provided, then the Endpoint's traffic_split will be overwritten with it. If last DeployedModel is being undeployed from the Endpoint, the [Endpoint.traffic_split] will always end up empty when this call returns. A DeployedModel will be successfully undeployed only if it doesn't have any traffic assigned to it when this method executes, or if this field unassigns any traffic to it.

map<string, int32> traffic_split = 3;

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

removeTrafficSplit(String key)

publicUndeployModelRequest.BuilderremoveTrafficSplit(Stringkey)

If this field is provided, then the Endpoint's traffic_split will be overwritten with it. If last DeployedModel is being undeployed from the Endpoint, the [Endpoint.traffic_split] will always end up empty when this call returns. A DeployedModel will be successfully undeployed only if it doesn't have any traffic assigned to it when this method executes, or if this field unassigns any traffic to it.

map<string, int32> traffic_split = 3;

Parameter
Name Description
key String
Returns
Type Description
UndeployModelRequest.Builder

setDeployedModelId(String value)

publicUndeployModelRequest.BuildersetDeployedModelId(Stringvalue)

Required. The ID of the DeployedModel to be undeployed from the Endpoint.

string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The deployedModelId to set.

Returns
Type Description
UndeployModelRequest.Builder

This builder for chaining.

setDeployedModelIdBytes(ByteString value)

publicUndeployModelRequest.BuildersetDeployedModelIdBytes(ByteStringvalue)

Required. The ID of the DeployedModel to be undeployed from the Endpoint.

string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for deployedModelId to set.

Returns
Type Description
UndeployModelRequest.Builder

This builder for chaining.

setEndpoint(String value)

publicUndeployModelRequest.BuildersetEndpoint(Stringvalue)

Required. The name of the Endpoint resource from which to undeploy 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
UndeployModelRequest.Builder

This builder for chaining.

setEndpointBytes(ByteString value)

publicUndeployModelRequest.BuildersetEndpointBytes(ByteStringvalue)

Required. The name of the Endpoint resource from which to undeploy 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
UndeployModelRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalUndeployModelRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UndeployModelRequest.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.