Class 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 type google.cloud.aiplatform.v1beta1.UndeployModelRequest
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
      • internalGetFieldAccessorTable

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public UndeployModelRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
      • setField

        public UndeployModelRequest.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
      • clearField

        public UndeployModelRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
      • clearOneof

        public UndeployModelRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
      • addRepeatedField

        public UndeployModelRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 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.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 interface UndeployModelRequestOrBuilder
      • 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 interface UndeployModelRequestOrBuilder
      • 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 interface UndeployModelRequestOrBuilder
      • 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 interface UndeployModelRequestOrBuilder
      • 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 interface UndeployModelRequestOrBuilder
      • 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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>
      • mergeUnknownFields

        public final UndeployModelRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UndeployModelRequest.Builder>