Package com.google.cloud.aiplatform.v1
Class UndeployModelRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
- com.google.cloud.aiplatform.v1.UndeployModelRequest.Builder
-
- All Implemented Interfaces:
UndeployModelRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- UndeployModelRequest
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 typegoogle.cloud.aiplatform.v1.UndeployModelRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description UndeployModelRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)UndeployModelRequestbuild()UndeployModelRequestbuildPartial()UndeployModelRequest.Builderclear()UndeployModelRequest.BuilderclearDeployedModelId()Required.UndeployModelRequest.BuilderclearEndpoint()Required.UndeployModelRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)UndeployModelRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)UndeployModelRequest.BuilderclearTrafficSplit()UndeployModelRequest.Builderclone()booleancontainsTrafficSplit(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.UndeployModelRequestgetDefaultInstanceForType()StringgetDeployedModelId()Required.com.google.protobuf.ByteStringgetDeployedModelIdBytes()Required.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetEndpoint()Required.com.google.protobuf.ByteStringgetEndpointBytes()Required.Map<String,Integer>getMutableTrafficSplit()Deprecated.Map<String,Integer>getTrafficSplit()Deprecated.intgetTrafficSplitCount()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.intgetTrafficSplitOrDefault(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.intgetTrafficSplitOrThrow(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.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()UndeployModelRequest.BuildermergeFrom(UndeployModelRequest other)UndeployModelRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)UndeployModelRequest.BuildermergeFrom(com.google.protobuf.Message other)UndeployModelRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)UndeployModelRequest.BuilderputAllTrafficSplit(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.BuilderputTrafficSplit(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.BuilderremoveTrafficSplit(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.BuildersetDeployedModelId(String value)Required.UndeployModelRequest.BuildersetDeployedModelIdBytes(com.google.protobuf.ByteString value)Required.UndeployModelRequest.BuildersetEndpoint(String value)Required.UndeployModelRequest.BuildersetEndpointBytes(com.google.protobuf.ByteString value)Required.UndeployModelRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)UndeployModelRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)UndeployModelRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
clear
public UndeployModelRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
getDefaultInstanceForType
public UndeployModelRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public UndeployModelRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UndeployModelRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UndeployModelRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
setField
public UndeployModelRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
clearField
public UndeployModelRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
clearOneof
public UndeployModelRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
setRepeatedField
public UndeployModelRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
addRepeatedField
public UndeployModelRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
mergeFrom
public UndeployModelRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UndeployModelRequest.Builder>
-
mergeFrom
public UndeployModelRequest.Builder mergeFrom(UndeployModelRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
mergeFrom
public UndeployModelRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UndeployModelRequest.Builder>- Throws:
IOException
-
getEndpoint
public 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) = { ... }- Specified by:
getEndpointin interfaceUndeployModelRequestOrBuilder- Returns:
- The endpoint.
-
getEndpointBytes
public 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) = { ... }- Specified by:
getEndpointBytesin interfaceUndeployModelRequestOrBuilder- Returns:
- The bytes for endpoint.
-
setEndpoint
public 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) = { ... }- Parameters:
value- The endpoint to set.- Returns:
- This builder for chaining.
-
clearEndpoint
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) = { ... }- Returns:
- This builder for chaining.
-
setEndpointBytes
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) = { ... }- Parameters:
value- The bytes for endpoint to set.- Returns:
- This builder for chaining.
-
getDeployedModelId
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];- Specified by:
getDeployedModelIdin interfaceUndeployModelRequestOrBuilder- Returns:
- The deployedModelId.
-
getDeployedModelIdBytes
public 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];- Specified by:
getDeployedModelIdBytesin interfaceUndeployModelRequestOrBuilder- Returns:
- The bytes for deployedModelId.
-
setDeployedModelId
public 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];- Parameters:
value- The deployedModelId to set.- Returns:
- This builder for chaining.
-
clearDeployedModelId
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];- Returns:
- This builder for chaining.
-
setDeployedModelIdBytes
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];- Parameters:
value- The bytes for deployedModelId to set.- Returns:
- This builder for chaining.
-
getTrafficSplitCount
public int getTrafficSplitCount()
Description copied from interface: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;- Specified by:
getTrafficSplitCountin interfaceUndeployModelRequestOrBuilder
-
containsTrafficSplit
public 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;- Specified by:
containsTrafficSplitin interfaceUndeployModelRequestOrBuilder
-
getTrafficSplit
@Deprecated public Map<String,Integer> getTrafficSplit()
Deprecated.UsegetTrafficSplitMap()instead.- Specified by:
getTrafficSplitin interfaceUndeployModelRequestOrBuilder
-
getTrafficSplitMap
public 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;- Specified by:
getTrafficSplitMapin interfaceUndeployModelRequestOrBuilder
-
getTrafficSplitOrDefault
public 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;- Specified by:
getTrafficSplitOrDefaultin interfaceUndeployModelRequestOrBuilder
-
getTrafficSplitOrThrow
public 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;- Specified by:
getTrafficSplitOrThrowin interfaceUndeployModelRequestOrBuilder
-
clearTrafficSplit
public UndeployModelRequest.Builder clearTrafficSplit()
-
removeTrafficSplit
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;
-
getMutableTrafficSplit
@Deprecated public Map<String,Integer> getMutableTrafficSplit()
Deprecated.Use alternate mutation accessors instead.
-
putTrafficSplit
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;
-
putAllTrafficSplit
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;
-
setUnknownFields
public final UndeployModelRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
mergeUnknownFields
public final UndeployModelRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
-