public static final class UndeployModelRequest.Builder extends GeneratedMessageV3.Builder<UndeployModelRequest.Builder> implements UndeployModelRequestOrBuilder
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()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public UndeployModelRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public UndeployModelRequest build()
buildPartial()
public UndeployModelRequest buildPartial()
clear()
public UndeployModelRequest.Builder clear()
Overrides
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];
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) = { ... }
clearField(Descriptors.FieldDescriptor field)
public UndeployModelRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public UndeployModelRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTrafficSplit()
public UndeployModelRequest.Builder clearTrafficSplit()
clone()
public UndeployModelRequest.Builder clone()
Overrides
containsTrafficSplit(String key)
public boolean containsTrafficSplit(String key)
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
|
getDefaultInstanceForType()
public UndeployModelRequest getDefaultInstanceForType()
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];
Returns |
Type |
Description |
String |
The deployedModelId.
|
getDeployedModelIdBytes()
public ByteString getDeployedModelIdBytes()
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()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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) = { ... }
Returns |
Type |
Description |
String |
The endpoint.
|
getEndpointBytes()
public 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) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for endpoint.
|
getMutableTrafficSplit() (deprecated)
public Map<String,Integer> getMutableTrafficSplit()
Use alternate mutation accessors instead.
getTrafficSplit() (deprecated)
public Map<String,Integer> getTrafficSplit()
getTrafficSplitCount()
public int getTrafficSplitCount()
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()
public Map<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;
getTrafficSplitOrDefault(String key, int defaultValue)
public int getTrafficSplitOrDefault(String key, int defaultValue)
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)
public int getTrafficSplitOrThrow(String key)
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()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(UndeployModelRequest other)
public UndeployModelRequest.Builder mergeFrom(UndeployModelRequest other)
public UndeployModelRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public UndeployModelRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final UndeployModelRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
putAllTrafficSplit(Map<String,Integer> values)
public UndeployModelRequest.Builder putAllTrafficSplit(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;
putTrafficSplit(String key, int value)
public UndeployModelRequest.Builder putTrafficSplit(String key, int value)
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
|
removeTrafficSplit(String key)
public UndeployModelRequest.Builder removeTrafficSplit(String key)
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
|
setDeployedModelId(String value)
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];
Parameter |
Name |
Description |
value |
String
The deployedModelId to set.
|
setDeployedModelIdBytes(ByteString value)
public UndeployModelRequest.Builder setDeployedModelIdBytes(ByteString value)
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.
|
setEndpoint(String value)
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) = { ... }
Parameter |
Name |
Description |
value |
String
The endpoint to set.
|
setEndpointBytes(ByteString value)
public UndeployModelRequest.Builder setEndpointBytes(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) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for endpoint to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public UndeployModelRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public UndeployModelRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final UndeployModelRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides