Class UndeployModelRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<UndeployModelRequest.Builder> implements UndeployModelRequestOrBuilder
 Request message for
 [EndpointService.UndeployModel][google.cloud.aiplatform.v1.EndpointService.UndeployModel].
 
Protobuf type google.cloud.aiplatform.v1.UndeployModelRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<UndeployModelRequest.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<UndeployModelRequest.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UndeployModelRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<UndeployModelRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<UndeployModelRequest.Builder>
    • getDefaultInstanceForType

      public UndeployModelRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public UndeployModelRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UndeployModelRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public UndeployModelRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UndeployModelRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<UndeployModelRequest.Builder>
    • mergeFrom

      public UndeployModelRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface UndeployModelRequestOrBuilder
      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 interface UndeployModelRequestOrBuilder
      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 interface UndeployModelRequestOrBuilder
      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 interface UndeployModelRequestOrBuilder
      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.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:
      getTrafficSplitCount in interface UndeployModelRequestOrBuilder
    • 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:
      containsTrafficSplit in interface UndeployModelRequestOrBuilder
    • getTrafficSplit

      @Deprecated public Map<String,Integer> getTrafficSplit()
      Deprecated.
      Specified by:
      getTrafficSplit in interface UndeployModelRequestOrBuilder
    • 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:
      getTrafficSplitMap in interface UndeployModelRequestOrBuilder
    • 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:
      getTrafficSplitOrDefault in interface UndeployModelRequestOrBuilder
    • 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:
      getTrafficSplitOrThrow in interface UndeployModelRequestOrBuilder
    • 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;