public static final class ResourcePool.AutoscalingSpec.Builder extends GeneratedMessageV3.Builder<ResourcePool.AutoscalingSpec.Builder> implements ResourcePool.AutoscalingSpecOrBuilder
The min/max number of replicas allowed if enabling autoscaling
Protobuf type google.cloud.aiplatform.v1beta1.ResourcePool.AutoscalingSpec
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public ResourcePool.AutoscalingSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ResourcePool.AutoscalingSpec build()
public ResourcePool.AutoscalingSpec buildPartial()
public ResourcePool.AutoscalingSpec.Builder clear()
Overrides
public ResourcePool.AutoscalingSpec.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public ResourcePool.AutoscalingSpec.Builder clearMaxReplicaCount()
Optional. max replicas in the node pool,
must be ≥ replica_count and > min_replica_count or will throw error
optional int64 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];
public ResourcePool.AutoscalingSpec.Builder clearMinReplicaCount()
Optional. min replicas in the node pool,
must be ≤ replica_count and < max_replica_count or will throw error
optional int64 min_replica_count = 1 [(.google.api.field_behavior) = OPTIONAL];
public ResourcePool.AutoscalingSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ResourcePool.AutoscalingSpec.Builder clone()
Overrides
public ResourcePool.AutoscalingSpec getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public long getMaxReplicaCount()
Optional. max replicas in the node pool,
must be ≥ replica_count and > min_replica_count or will throw error
optional int64 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
long |
The maxReplicaCount.
|
public long getMinReplicaCount()
Optional. min replicas in the node pool,
must be ≤ replica_count and < max_replica_count or will throw error
optional int64 min_replica_count = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
long |
The minReplicaCount.
|
public boolean hasMaxReplicaCount()
Optional. max replicas in the node pool,
must be ≥ replica_count and > min_replica_count or will throw error
optional int64 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the maxReplicaCount field is set.
|
public boolean hasMinReplicaCount()
Optional. min replicas in the node pool,
must be ≤ replica_count and < max_replica_count or will throw error
optional int64 min_replica_count = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the minReplicaCount field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ResourcePool.AutoscalingSpec.Builder mergeFrom(ResourcePool.AutoscalingSpec other)
public ResourcePool.AutoscalingSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ResourcePool.AutoscalingSpec.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final ResourcePool.AutoscalingSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ResourcePool.AutoscalingSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ResourcePool.AutoscalingSpec.Builder setMaxReplicaCount(long value)
Optional. max replicas in the node pool,
must be ≥ replica_count and > min_replica_count or will throw error
optional int64 max_replica_count = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
long
The maxReplicaCount to set.
|
public ResourcePool.AutoscalingSpec.Builder setMinReplicaCount(long value)
Optional. min replicas in the node pool,
must be ≤ replica_count and < max_replica_count or will throw error
optional int64 min_replica_count = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
long
The minReplicaCount to set.
|
public ResourcePool.AutoscalingSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final ResourcePool.AutoscalingSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides