Class AutomaticResources.Builder

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

    public static final class AutomaticResources.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AutomaticResources.Builder>
    implements AutomaticResourcesOrBuilder
     A description of resources that to large degree are decided by Vertex AI,
     and require only a modest additional configuration.
     Each Model supporting these resources documents its specific guidelines.
     
    Protobuf type google.cloud.aiplatform.v1beta1.AutomaticResources
    • 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<AutomaticResources.Builder>
      • clear

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

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

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

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

        public AutomaticResources.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<AutomaticResources.Builder>
      • setField

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

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

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

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

        public AutomaticResources.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<AutomaticResources.Builder>
      • mergeFrom

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

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

        public AutomaticResources.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<AutomaticResources.Builder>
        Throws:
        IOException
      • getMinReplicaCount

        public int getMinReplicaCount()
         Immutable. The minimum number of replicas this DeployedModel will be always
         deployed on. If traffic against it increases, it may dynamically be
         deployed onto more replicas up to
         [max_replica_count][google.cloud.aiplatform.v1beta1.AutomaticResources.max_replica_count],
         and as traffic decreases, some of these extra replicas may be freed. If the
         requested value is too large, the deployment will error.
         
        int32 min_replica_count = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getMinReplicaCount in interface AutomaticResourcesOrBuilder
        Returns:
        The minReplicaCount.
      • setMinReplicaCount

        public AutomaticResources.Builder setMinReplicaCount​(int value)
         Immutable. The minimum number of replicas this DeployedModel will be always
         deployed on. If traffic against it increases, it may dynamically be
         deployed onto more replicas up to
         [max_replica_count][google.cloud.aiplatform.v1beta1.AutomaticResources.max_replica_count],
         and as traffic decreases, some of these extra replicas may be freed. If the
         requested value is too large, the deployment will error.
         
        int32 min_replica_count = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The minReplicaCount to set.
        Returns:
        This builder for chaining.
      • clearMinReplicaCount

        public AutomaticResources.Builder clearMinReplicaCount()
         Immutable. The minimum number of replicas this DeployedModel will be always
         deployed on. If traffic against it increases, it may dynamically be
         deployed onto more replicas up to
         [max_replica_count][google.cloud.aiplatform.v1beta1.AutomaticResources.max_replica_count],
         and as traffic decreases, some of these extra replicas may be freed. If the
         requested value is too large, the deployment will error.
         
        int32 min_replica_count = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • getMaxReplicaCount

        public int getMaxReplicaCount()
         Immutable. The maximum number of replicas this DeployedModel may be
         deployed on when the traffic against it increases. If the requested value
         is too large, the deployment will error, but if deployment succeeds then
         the ability to scale the model to that many replicas is guaranteed (barring
         service outages). If traffic against the DeployedModel increases beyond
         what its replicas at maximum may handle, a portion of the traffic will be
         dropped. If this value is not provided, a no upper bound for scaling under
         heavy traffic will be assume, though Vertex AI may be unable to scale
         beyond certain replica number.
         
        int32 max_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getMaxReplicaCount in interface AutomaticResourcesOrBuilder
        Returns:
        The maxReplicaCount.
      • setMaxReplicaCount

        public AutomaticResources.Builder setMaxReplicaCount​(int value)
         Immutable. The maximum number of replicas this DeployedModel may be
         deployed on when the traffic against it increases. If the requested value
         is too large, the deployment will error, but if deployment succeeds then
         the ability to scale the model to that many replicas is guaranteed (barring
         service outages). If traffic against the DeployedModel increases beyond
         what its replicas at maximum may handle, a portion of the traffic will be
         dropped. If this value is not provided, a no upper bound for scaling under
         heavy traffic will be assume, though Vertex AI may be unable to scale
         beyond certain replica number.
         
        int32 max_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The maxReplicaCount to set.
        Returns:
        This builder for chaining.
      • clearMaxReplicaCount

        public AutomaticResources.Builder clearMaxReplicaCount()
         Immutable. The maximum number of replicas this DeployedModel may be
         deployed on when the traffic against it increases. If the requested value
         is too large, the deployment will error, but if deployment succeeds then
         the ability to scale the model to that many replicas is guaranteed (barring
         service outages). If traffic against the DeployedModel increases beyond
         what its replicas at maximum may handle, a portion of the traffic will be
         dropped. If this value is not provided, a no upper bound for scaling under
         heavy traffic will be assume, though Vertex AI may be unable to scale
         beyond certain replica number.
         
        int32 max_replica_count = 2 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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