Class Featurestore.OnlineServingConfig.Scaling.Builder (3.52.0)

public static final class Featurestore.OnlineServingConfig.Scaling.Builder extends GeneratedMessageV3.Builder<Featurestore.OnlineServingConfig.Scaling.Builder> implements Featurestore.OnlineServingConfig.ScalingOrBuilder

Online serving scaling configuration. If min_node_count and max_node_count are set to the same value, the cluster will be configured with the fixed number of node (no auto-scaling).

Protobuf type google.cloud.aiplatform.v1.Featurestore.OnlineServingConfig.Scaling

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Featurestore.OnlineServingConfig.Scaling.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder
Overrides

build()

public Featurestore.OnlineServingConfig.Scaling build()
Returns
Type Description
Featurestore.OnlineServingConfig.Scaling

buildPartial()

public Featurestore.OnlineServingConfig.Scaling buildPartial()
Returns
Type Description
Featurestore.OnlineServingConfig.Scaling

clear()

public Featurestore.OnlineServingConfig.Scaling.Builder clear()
Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder
Overrides

clearCpuUtilizationTarget()

public Featurestore.OnlineServingConfig.Scaling.Builder clearCpuUtilizationTarget()

Optional. The cpu utilization that the Autoscaler should be trying to achieve. This number is on a scale from 0 (no utilization) to 100 (total utilization), and is limited between 10 and 80. When a cluster's CPU utilization exceeds the target that you have set, Bigtable immediately adds nodes to the cluster. When CPU utilization is substantially lower than the target, Bigtable removes nodes. If not set or set to 0, default to 50.

int32 cpu_utilization_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Featurestore.OnlineServingConfig.Scaling.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder
Overrides

clearMaxNodeCount()

public Featurestore.OnlineServingConfig.Scaling.Builder clearMaxNodeCount()

The maximum number of nodes to scale up to. Must be greater than min_node_count, and less than or equal to 10 times of 'min_node_count'.

int32 max_node_count = 2;

Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder

This builder for chaining.

clearMinNodeCount()

public Featurestore.OnlineServingConfig.Scaling.Builder clearMinNodeCount()

Required. The minimum number of nodes to scale down to. Must be greater than or equal to 1.

int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Featurestore.OnlineServingConfig.Scaling.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder
Overrides

clone()

public Featurestore.OnlineServingConfig.Scaling.Builder clone()
Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder
Overrides

getCpuUtilizationTarget()

public int getCpuUtilizationTarget()

Optional. The cpu utilization that the Autoscaler should be trying to achieve. This number is on a scale from 0 (no utilization) to 100 (total utilization), and is limited between 10 and 80. When a cluster's CPU utilization exceeds the target that you have set, Bigtable immediately adds nodes to the cluster. When CPU utilization is substantially lower than the target, Bigtable removes nodes. If not set or set to 0, default to 50.

int32 cpu_utilization_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The cpuUtilizationTarget.

getDefaultInstanceForType()

public Featurestore.OnlineServingConfig.Scaling getDefaultInstanceForType()
Returns
Type Description
Featurestore.OnlineServingConfig.Scaling

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMaxNodeCount()

public int getMaxNodeCount()

The maximum number of nodes to scale up to. Must be greater than min_node_count, and less than or equal to 10 times of 'min_node_count'.

int32 max_node_count = 2;

Returns
Type Description
int

The maxNodeCount.

getMinNodeCount()

public int getMinNodeCount()

Required. The minimum number of nodes to scale down to. Must be greater than or equal to 1.

int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The minNodeCount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Featurestore.OnlineServingConfig.Scaling other)

public Featurestore.OnlineServingConfig.Scaling.Builder mergeFrom(Featurestore.OnlineServingConfig.Scaling other)
Parameter
Name Description
other Featurestore.OnlineServingConfig.Scaling
Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Featurestore.OnlineServingConfig.Scaling.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Featurestore.OnlineServingConfig.Scaling.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Featurestore.OnlineServingConfig.Scaling.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder
Overrides

setCpuUtilizationTarget(int value)

public Featurestore.OnlineServingConfig.Scaling.Builder setCpuUtilizationTarget(int value)

Optional. The cpu utilization that the Autoscaler should be trying to achieve. This number is on a scale from 0 (no utilization) to 100 (total utilization), and is limited between 10 and 80. When a cluster's CPU utilization exceeds the target that you have set, Bigtable immediately adds nodes to the cluster. When CPU utilization is substantially lower than the target, Bigtable removes nodes. If not set or set to 0, default to 50.

int32 cpu_utilization_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The cpuUtilizationTarget to set.

Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Featurestore.OnlineServingConfig.Scaling.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder
Overrides

setMaxNodeCount(int value)

public Featurestore.OnlineServingConfig.Scaling.Builder setMaxNodeCount(int value)

The maximum number of nodes to scale up to. Must be greater than min_node_count, and less than or equal to 10 times of 'min_node_count'.

int32 max_node_count = 2;

Parameter
Name Description
value int

The maxNodeCount to set.

Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder

This builder for chaining.

setMinNodeCount(int value)

public Featurestore.OnlineServingConfig.Scaling.Builder setMinNodeCount(int value)

Required. The minimum number of nodes to scale down to. Must be greater than or equal to 1.

int32 min_node_count = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The minNodeCount to set.

Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Featurestore.OnlineServingConfig.Scaling.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Featurestore.OnlineServingConfig.Scaling.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Featurestore.OnlineServingConfig.Scaling.Builder
Overrides