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
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 ScalingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ScalingConfig build()
public ScalingConfig buildPartial()
public ScalingConfig.Builder clear()
Overrides
public ScalingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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;
public ScalingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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;
public ScalingConfig.Builder clearScalingModel()
public ScalingConfig.Builder clone()
Overrides
public ScalingConfig getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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;
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.
|
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.
|
public ScalingConfig.ScalingModelCase getScalingModelCase()
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ScalingConfig.Builder mergeFrom(ScalingConfig other)
public ScalingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ScalingConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final ScalingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ScalingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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;
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.
|
public ScalingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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.
|
public final ScalingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides