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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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
public static final Descriptors.Descriptor getDescriptor()
Methods
public UndeployModelRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public UndeployModelRequest build()
public UndeployModelRequest buildPartial()
public UndeployModelRequest.Builder clear()
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];
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 clearField(Descriptors.FieldDescriptor field)
Overrides
public UndeployModelRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public UndeployModelRequest.Builder clearTrafficSplit()
public UndeployModelRequest.Builder clone()
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 |
---|
Name | Description |
key | String
|
public UndeployModelRequest getDefaultInstanceForType()
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 Descriptors.Descriptor getDescriptorForType()
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 |
---|
Type | Description |
ByteString | The bytes for endpoint.
|
public Map<String,Integer> getMutableTrafficSplit()
Use alternate mutation accessors instead.
public Map<String,Integer> getTrafficSplit()
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 | |
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;
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 | |
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 | |
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
public final boolean isInitialized()
Overrides
public UndeployModelRequest.Builder mergeFrom(UndeployModelRequest other)
public UndeployModelRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public UndeployModelRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final UndeployModelRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
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
|
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.
|
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.
|
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.
|
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.
|
public UndeployModelRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public UndeployModelRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final UndeployModelRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides