Class AutomaticResources.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AutomaticResources.Builder>
com.google.cloud.aiplatform.v1.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.GeneratedMessage.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.v1.AutomaticResources
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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 that 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.v1.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 that 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.v1.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 that 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.v1.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 that 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
       to that many replicas is guaranteed (barring service outages). If traffic
       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 that 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
       to that many replicas is guaranteed (barring service outages). If traffic
       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 that 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
       to that many replicas is guaranteed (barring service outages). If traffic
       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.