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.v1beta1.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.v1beta1.EndpointService.UndeployModel].
Protobuf typegoogle.cloud.aiplatform.v1beta1.UndeployModelRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Endpoint.traffic_split] will be overwritten with it.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
UndeployModelRequest.Builder
mergeFrom(UndeployModelRequest other)
UndeployModelRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
UndeployModelRequest.Builder
mergeFrom(com.google.protobuf.Message 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.v1beta1.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.v1beta1.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.v1beta1.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)
-
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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
clear
public UndeployModelRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
getDefaultInstanceForType
public UndeployModelRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public UndeployModelRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UndeployModelRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UndeployModelRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
setField
public UndeployModelRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
clearField
public UndeployModelRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
clearOneof
public UndeployModelRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
setRepeatedField
public UndeployModelRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
addRepeatedField
public UndeployModelRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
mergeFrom
public UndeployModelRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UndeployModelRequest.Builder>
-
mergeFrom
public UndeployModelRequest.Builder mergeFrom(UndeployModelRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getEndpoint
in 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:
getEndpointBytes
in 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:
getDeployedModelId
in 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:
getDeployedModelIdBytes
in 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:UndeployModelRequestOrBuilder
If this field is provided, then the Endpoint's [traffic_split][google.cloud.aiplatform.v1beta1.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:
getTrafficSplitCount
in interfaceUndeployModelRequestOrBuilder
-
containsTrafficSplit
public boolean containsTrafficSplit(String key)
If this field is provided, then the Endpoint's [traffic_split][google.cloud.aiplatform.v1beta1.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:
containsTrafficSplit
in interfaceUndeployModelRequestOrBuilder
-
getTrafficSplit
@Deprecated public Map<String,Integer> getTrafficSplit()
Deprecated.UsegetTrafficSplitMap()
instead.- Specified by:
getTrafficSplit
in interfaceUndeployModelRequestOrBuilder
-
getTrafficSplitMap
public Map<String,Integer> getTrafficSplitMap()
If this field is provided, then the Endpoint's [traffic_split][google.cloud.aiplatform.v1beta1.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:
getTrafficSplitMap
in interfaceUndeployModelRequestOrBuilder
-
getTrafficSplitOrDefault
public int getTrafficSplitOrDefault(String key, int defaultValue)
If this field is provided, then the Endpoint's [traffic_split][google.cloud.aiplatform.v1beta1.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:
getTrafficSplitOrDefault
in interfaceUndeployModelRequestOrBuilder
-
getTrafficSplitOrThrow
public int getTrafficSplitOrThrow(String key)
If this field is provided, then the Endpoint's [traffic_split][google.cloud.aiplatform.v1beta1.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:
getTrafficSplitOrThrow
in 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.v1beta1.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.v1beta1.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.v1beta1.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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
mergeUnknownFields
public final UndeployModelRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
-
-