Class ScalingConfig.Builder (2.31.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.v1beta.ScalingConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ScalingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ScalingConfig.Builder
Overrides

build()

public ScalingConfig build()
Returns
TypeDescription
ScalingConfig

buildPartial()

public ScalingConfig buildPartial()
Returns
TypeDescription
ScalingConfig

clear()

public ScalingConfig.Builder clear()
Returns
TypeDescription
ScalingConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ScalingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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.v1beta.ScalingConfig.InstanceSize instance_size = 1;

Returns
TypeDescription
ScalingConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ScalingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ScalingConfig.Builder

This builder for chaining.

clearScalingModel()

public ScalingConfig.Builder clearScalingModel()
Returns
TypeDescription
ScalingConfig.Builder

clone()

public ScalingConfig.Builder clone()
Returns
TypeDescription
ScalingConfig.Builder
Overrides

getDefaultInstanceForType()

public ScalingConfig getDefaultInstanceForType()
Returns
TypeDescription
ScalingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v1beta.ScalingConfig.InstanceSize instance_size = 1;

Returns
TypeDescription
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.v1beta.ScalingConfig.InstanceSize instance_size = 1;

Returns
TypeDescription
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
TypeDescription
float

The scalingFactor.

getScalingModelCase()

public ScalingConfig.ScalingModelCase getScalingModelCase()
Returns
TypeDescription
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.v1beta.ScalingConfig.InstanceSize instance_size = 1;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the scalingFactor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ScalingConfig other)

public ScalingConfig.Builder mergeFrom(ScalingConfig other)
Parameter
NameDescription
otherScalingConfig
Returns
TypeDescription
ScalingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ScalingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ScalingConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ScalingConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ScalingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ScalingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ScalingConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ScalingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1beta.ScalingConfig.InstanceSize instance_size = 1;

Parameter
NameDescription
valueScalingConfig.InstanceSize

The instanceSize to set.

Returns
TypeDescription
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.v1beta.ScalingConfig.InstanceSize instance_size = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuefloat

The scalingFactor to set.

Returns
TypeDescription
ScalingConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ScalingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ScalingConfig.Builder
Overrides