Class ScalingConfig.Builder (2.50.0)

public static final class ScalingConfig.Builder extends GeneratedMessageV3.Builder<ScalingConfig.Builder> implements ScalingConfigOrBuilder

Represents the scaling configuration of a metastore service.

Protobuf type google.cloud.metastore.v1alpha.ScalingConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ScalingConfig build()
Returns
Type Description
ScalingConfig

buildPartial()

public ScalingConfig buildPartial()
Returns
Type Description
ScalingConfig

clear()

public ScalingConfig.Builder clear()
Returns
Type Description
ScalingConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ScalingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ScalingConfig.Builder
Overrides

clearInstanceSize()

public ScalingConfig.Builder clearInstanceSize()

An enum of readable instance sizes, with each instance size mapping to a float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))

.google.cloud.metastore.v1alpha.ScalingConfig.InstanceSize instance_size = 1;

Returns
Type Description
ScalingConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ScalingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ScalingConfig.Builder
Overrides

clearScalingFactor()

public ScalingConfig.Builder clearScalingFactor()

Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.

float scaling_factor = 2;

Returns
Type Description
ScalingConfig.Builder

This builder for chaining.

clearScalingModel()

public ScalingConfig.Builder clearScalingModel()
Returns
Type Description
ScalingConfig.Builder

clone()

public ScalingConfig.Builder clone()
Returns
Type Description
ScalingConfig.Builder
Overrides

getDefaultInstanceForType()

public ScalingConfig getDefaultInstanceForType()
Returns
Type Description
ScalingConfig

getDescriptorForType()

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

getInstanceSize()

public ScalingConfig.InstanceSize getInstanceSize()

An enum of readable instance sizes, with each instance size mapping to a float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))

.google.cloud.metastore.v1alpha.ScalingConfig.InstanceSize instance_size = 1;

Returns
Type Description
ScalingConfig.InstanceSize

The instanceSize.

getInstanceSizeValue()

public int getInstanceSizeValue()

An enum of readable instance sizes, with each instance size mapping to a float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))

.google.cloud.metastore.v1alpha.ScalingConfig.InstanceSize instance_size = 1;

Returns
Type Description
int

The enum numeric value on the wire for instanceSize.

getScalingFactor()

public float getScalingFactor()

Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.

float scaling_factor = 2;

Returns
Type Description
float

The scalingFactor.

getScalingModelCase()

public ScalingConfig.ScalingModelCase getScalingModelCase()
Returns
Type Description
ScalingConfig.ScalingModelCase

hasInstanceSize()

public boolean hasInstanceSize()

An enum of readable instance sizes, with each instance size mapping to a float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))

.google.cloud.metastore.v1alpha.ScalingConfig.InstanceSize instance_size = 1;

Returns
Type Description
boolean

Whether the instanceSize field is set.

hasScalingFactor()

public boolean hasScalingFactor()

Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.

float scaling_factor = 2;

Returns
Type Description
boolean

Whether the scalingFactor field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ScalingConfig other)

public ScalingConfig.Builder mergeFrom(ScalingConfig other)
Parameter
Name Description
other ScalingConfig
Returns
Type Description
ScalingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ScalingConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ScalingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ScalingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ScalingConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstanceSize(ScalingConfig.InstanceSize value)

public ScalingConfig.Builder setInstanceSize(ScalingConfig.InstanceSize value)

An enum of readable instance sizes, with each instance size mapping to a float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))

.google.cloud.metastore.v1alpha.ScalingConfig.InstanceSize instance_size = 1;

Parameter
Name Description
value ScalingConfig.InstanceSize

The instanceSize to set.

Returns
Type Description
ScalingConfig.Builder

This builder for chaining.

setInstanceSizeValue(int value)

public ScalingConfig.Builder setInstanceSizeValue(int value)

An enum of readable instance sizes, with each instance size mapping to a float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1))

.google.cloud.metastore.v1alpha.ScalingConfig.InstanceSize instance_size = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for instanceSize to set.

Returns
Type Description
ScalingConfig.Builder

This builder for chaining.

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

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

setScalingFactor(float value)

public ScalingConfig.Builder setScalingFactor(float value)

Scaling factor, increments of 0.1 for values less than 1.0, and increments of 1.0 for values greater than 1.0.

float scaling_factor = 2;

Parameter
Name Description
value float

The scalingFactor to set.

Returns
Type Description
ScalingConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ScalingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ScalingConfig.Builder
Overrides