Class DeploymentResourcePool.Builder

  • All Implemented Interfaces:
    DeploymentResourcePoolOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    DeploymentResourcePool

    public static final class DeploymentResourcePool.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<DeploymentResourcePool.Builder>
    implements DeploymentResourcePoolOrBuilder
     A description of resources that can be shared by multiple DeployedModels,
     whose underlying specification consists of a DedicatedResources.
     
    Protobuf type google.cloud.aiplatform.v1beta1.DeploymentResourcePool
    • Method Detail

      • getDescriptor

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

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

        public DeploymentResourcePool.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<DeploymentResourcePool.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<DeploymentResourcePool.Builder>
      • getDefaultInstanceForType

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

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

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

        public DeploymentResourcePool.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<DeploymentResourcePool.Builder>
      • clearField

        public DeploymentResourcePool.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<DeploymentResourcePool.Builder>
      • clearOneof

        public DeploymentResourcePool.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<DeploymentResourcePool.Builder>
      • setRepeatedField

        public DeploymentResourcePool.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<DeploymentResourcePool.Builder>
      • addRepeatedField

        public DeploymentResourcePool.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<DeploymentResourcePool.Builder>
      • isInitialized

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

        public DeploymentResourcePool.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<DeploymentResourcePool.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Immutable. The resource name of the DeploymentResourcePool.
         Format:
         `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getName in interface DeploymentResourcePoolOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Immutable. The resource name of the DeploymentResourcePool.
         Format:
         `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getNameBytes in interface DeploymentResourcePoolOrBuilder
        Returns:
        The bytes for name.
      • setName

        public DeploymentResourcePool.Builder setName​(String value)
         Immutable. The resource name of the DeploymentResourcePool.
         Format:
         `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public DeploymentResourcePool.Builder clearName()
         Immutable. The resource name of the DeploymentResourcePool.
         Format:
         `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • setNameBytes

        public DeploymentResourcePool.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Immutable. The resource name of the DeploymentResourcePool.
         Format:
         `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasDedicatedResources

        public boolean hasDedicatedResources()
         Required. The underlying DedicatedResources that the DeploymentResourcePool
         uses.
         
        .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasDedicatedResources in interface DeploymentResourcePoolOrBuilder
        Returns:
        Whether the dedicatedResources field is set.
      • getDedicatedResources

        public DedicatedResources getDedicatedResources()
         Required. The underlying DedicatedResources that the DeploymentResourcePool
         uses.
         
        .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDedicatedResources in interface DeploymentResourcePoolOrBuilder
        Returns:
        The dedicatedResources.
      • setDedicatedResources

        public DeploymentResourcePool.Builder setDedicatedResources​(DedicatedResources value)
         Required. The underlying DedicatedResources that the DeploymentResourcePool
         uses.
         
        .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED];
      • setDedicatedResources

        public DeploymentResourcePool.Builder setDedicatedResources​(DedicatedResources.Builder builderForValue)
         Required. The underlying DedicatedResources that the DeploymentResourcePool
         uses.
         
        .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeDedicatedResources

        public DeploymentResourcePool.Builder mergeDedicatedResources​(DedicatedResources value)
         Required. The underlying DedicatedResources that the DeploymentResourcePool
         uses.
         
        .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearDedicatedResources

        public DeploymentResourcePool.Builder clearDedicatedResources()
         Required. The underlying DedicatedResources that the DeploymentResourcePool
         uses.
         
        .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED];
      • getDedicatedResourcesBuilder

        public DedicatedResources.Builder getDedicatedResourcesBuilder()
         Required. The underlying DedicatedResources that the DeploymentResourcePool
         uses.
         
        .google.cloud.aiplatform.v1beta1.DedicatedResources dedicated_resources = 2 [(.google.api.field_behavior) = REQUIRED];
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. Timestamp when this DeploymentResourcePool was created.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface DeploymentResourcePoolOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. Timestamp when this DeploymentResourcePool was created.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface DeploymentResourcePoolOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public DeploymentResourcePool.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Timestamp when this DeploymentResourcePool was created.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public DeploymentResourcePool.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Timestamp when this DeploymentResourcePool was created.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public DeploymentResourcePool.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Timestamp when this DeploymentResourcePool was created.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public DeploymentResourcePool.Builder clearCreateTime()
         Output only. Timestamp when this DeploymentResourcePool was created.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. Timestamp when this DeploymentResourcePool was created.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. Timestamp when this DeploymentResourcePool was created.
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface DeploymentResourcePoolOrBuilder
      • setUnknownFields

        public final DeploymentResourcePool.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<DeploymentResourcePool.Builder>
      • mergeUnknownFields

        public final DeploymentResourcePool.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<DeploymentResourcePool.Builder>