public static final class UndeployModelRequest.Builder extends GeneratedMessageV3.Builder<UndeployModelRequest.Builder> implements UndeployModelRequestOrBuilder
Request message for EndpointService.UndeployModel.
Protobuf type google.cloud.aiplatform.v1beta1.UndeployModelRequest
Methods
public UndeployModelRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public UndeployModelRequest build()
Returns
public UndeployModelRequest buildPartial()
Returns
public UndeployModelRequest.Builder clear()
Returns
Overrides
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
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
public UndeployModelRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public UndeployModelRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public UndeployModelRequest.Builder clearTrafficSplit()
Returns
public UndeployModelRequest.Builder clone()
Returns
Overrides
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
Returns
public UndeployModelRequest getDefaultInstanceForType()
Returns
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.
|
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.
|
public static final Descriptors.Descriptor getDescriptor()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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.
|
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
public Map<String,Integer> getMutableTrafficSplit()
Use alternate mutation accessors instead.
Returns
public Map<String,Integer> getTrafficSplit()
Returns
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
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;
Returns
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
Returns
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
Returns
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public UndeployModelRequest.Builder mergeFrom(UndeployModelRequest other)
Parameter
Returns
public UndeployModelRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public UndeployModelRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final UndeployModelRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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;
Parameter
Returns
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
Returns
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
Returns
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.
|
Returns
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.
|
Returns
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.
|
Returns
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.
|
Returns
public UndeployModelRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public UndeployModelRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final UndeployModelRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides