public static final class UndeployModelRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder> implements UndeployModelRequestOrBuilder
Request message for [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel].Protobuf type
google.cloud.aiplatform.v1.UndeployModelRequest| Modifier and Type | Method and Description |
|---|---|
UndeployModelRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
UndeployModelRequest |
build() |
UndeployModelRequest |
buildPartial() |
UndeployModelRequest.Builder |
clear() |
UndeployModelRequest.Builder |
clearDeployedModelId()
Required.
|
UndeployModelRequest.Builder |
clearEndpoint()
Required.
|
UndeployModelRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
UndeployModelRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
UndeployModelRequest.Builder |
clearTrafficSplit() |
UndeployModelRequest.Builder |
clone() |
boolean |
containsTrafficSplit(String key)
If this field is provided, then the Endpoint's
[traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be
overwritten with it.
|
UndeployModelRequest |
getDefaultInstanceForType() |
String |
getDeployedModelId()
Required.
|
com.google.protobuf.ByteString |
getDeployedModelIdBytes()
Required.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getEndpoint()
Required.
|
com.google.protobuf.ByteString |
getEndpointBytes()
Required.
|
Map<String,Integer> |
getMutableTrafficSplit()
Deprecated.
|
Map<String,Integer> |
getTrafficSplit()
Deprecated.
|
int |
getTrafficSplitCount()
If this field is provided, then the Endpoint's
[traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be
overwritten with it.
|
Map<String,Integer> |
getTrafficSplitMap()
If this field is provided, then the Endpoint's
[traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be
overwritten with it.
|
int |
getTrafficSplitOrDefault(String key,
int defaultValue)
If this field is provided, then the Endpoint's
[traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be
overwritten with it.
|
int |
getTrafficSplitOrThrow(String key)
If this field is provided, then the Endpoint's
[traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be
overwritten with it.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
UndeployModelRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
UndeployModelRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
UndeployModelRequest.Builder |
mergeFrom(UndeployModelRequest other) |
UndeployModelRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
UndeployModelRequest.Builder |
putAllTrafficSplit(Map<String,Integer> values)
If this field is provided, then the Endpoint's
[traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be
overwritten with it.
|
UndeployModelRequest.Builder |
putTrafficSplit(String key,
int value)
If this field is provided, then the Endpoint's
[traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be
overwritten with it.
|
UndeployModelRequest.Builder |
removeTrafficSplit(String key)
If this field is provided, then the Endpoint's
[traffic_split][google.cloud.aiplatform.v1.Endpoint.traffic_split] will be
overwritten with it.
|
UndeployModelRequest.Builder |
setDeployedModelId(String value)
Required.
|
UndeployModelRequest.Builder |
setDeployedModelIdBytes(com.google.protobuf.ByteString value)
Required.
|
UndeployModelRequest.Builder |
setEndpoint(String value)
Required.
|
UndeployModelRequest.Builder |
setEndpointBytes(com.google.protobuf.ByteString value)
Required.
|
UndeployModelRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
UndeployModelRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
UndeployModelRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>public UndeployModelRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>public UndeployModelRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic UndeployModelRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic UndeployModelRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic UndeployModelRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>public UndeployModelRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>public UndeployModelRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>public UndeployModelRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>public UndeployModelRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>public UndeployModelRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>public UndeployModelRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<UndeployModelRequest.Builder>public UndeployModelRequest.Builder mergeFrom(UndeployModelRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>public UndeployModelRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<UndeployModelRequest.Builder>IOExceptionpublic String getEndpoint()
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) = { ... }
getEndpoint in interface UndeployModelRequestOrBuilderpublic com.google.protobuf.ByteString getEndpointBytes()
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) = { ... }
getEndpointBytes in interface UndeployModelRequestOrBuilderpublic UndeployModelRequest.Builder setEndpoint(String value)
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) = { ... }
value - The endpoint to set.public UndeployModelRequest.Builder clearEndpoint()
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) = { ... }
public UndeployModelRequest.Builder setEndpointBytes(com.google.protobuf.ByteString value)
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) = { ... }
value - The bytes for endpoint to set.public String getDeployedModelId()
Required. The ID of the DeployedModel to be undeployed from the Endpoint.
string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED];getDeployedModelId in interface UndeployModelRequestOrBuilderpublic com.google.protobuf.ByteString getDeployedModelIdBytes()
Required. The ID of the DeployedModel to be undeployed from the Endpoint.
string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED];getDeployedModelIdBytes in interface UndeployModelRequestOrBuilderpublic UndeployModelRequest.Builder setDeployedModelId(String value)
Required. The ID of the DeployedModel to be undeployed from the Endpoint.
string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED];value - The deployedModelId to set.public UndeployModelRequest.Builder clearDeployedModelId()
Required. The ID of the DeployedModel to be undeployed from the Endpoint.
string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED];public UndeployModelRequest.Builder setDeployedModelIdBytes(com.google.protobuf.ByteString value)
Required. The ID of the DeployedModel to be undeployed from the Endpoint.
string deployed_model_id = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for deployedModelId to set.public int getTrafficSplitCount()
UndeployModelRequestOrBuilderIf this field is provided, then the Endpoint's [traffic_split][google.cloud.aiplatform.v1.Endpoint.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;getTrafficSplitCount in interface UndeployModelRequestOrBuilderpublic boolean containsTrafficSplit(String key)
If this field is provided, then the Endpoint's [traffic_split][google.cloud.aiplatform.v1.Endpoint.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;containsTrafficSplit in interface UndeployModelRequestOrBuilder@Deprecated public Map<String,Integer> getTrafficSplit()
getTrafficSplitMap() instead.getTrafficSplit in interface UndeployModelRequestOrBuilderpublic Map<String,Integer> getTrafficSplitMap()
If this field is provided, then the Endpoint's [traffic_split][google.cloud.aiplatform.v1.Endpoint.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;getTrafficSplitMap in interface UndeployModelRequestOrBuilderpublic int getTrafficSplitOrDefault(String key, int defaultValue)
If this field is provided, then the Endpoint's [traffic_split][google.cloud.aiplatform.v1.Endpoint.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;getTrafficSplitOrDefault in interface UndeployModelRequestOrBuilderpublic int getTrafficSplitOrThrow(String key)
If this field is provided, then the Endpoint's [traffic_split][google.cloud.aiplatform.v1.Endpoint.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;getTrafficSplitOrThrow in interface UndeployModelRequestOrBuilderpublic UndeployModelRequest.Builder clearTrafficSplit()
public UndeployModelRequest.Builder removeTrafficSplit(String key)
If this field is provided, then the Endpoint's [traffic_split][google.cloud.aiplatform.v1.Endpoint.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;@Deprecated public Map<String,Integer> getMutableTrafficSplit()
public UndeployModelRequest.Builder putTrafficSplit(String key, int value)
If this field is provided, then the Endpoint's [traffic_split][google.cloud.aiplatform.v1.Endpoint.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;public UndeployModelRequest.Builder putAllTrafficSplit(Map<String,Integer> values)
If this field is provided, then the Endpoint's [traffic_split][google.cloud.aiplatform.v1.Endpoint.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;public final UndeployModelRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>public final UndeployModelRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>Copyright © 2025 Google LLC. All rights reserved.