Class ZoneDistributionConfig.Builder (0.25.0)

public static final class ZoneDistributionConfig.Builder extends GeneratedMessageV3.Builder<ZoneDistributionConfig.Builder> implements ZoneDistributionConfigOrBuilder

Zone distribution config for allocation of cluster resources.

Protobuf type google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ZoneDistributionConfig build()
Returns
Type Description
ZoneDistributionConfig

buildPartial()

public ZoneDistributionConfig buildPartial()
Returns
Type Description
ZoneDistributionConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMode()

public ZoneDistributionConfig.Builder clearMode()

Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.

.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ZoneDistributionConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearZone()

public ZoneDistributionConfig.Builder clearZone()

Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.

string zone = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ZoneDistributionConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ZoneDistributionConfig getDefaultInstanceForType()
Returns
Type Description
ZoneDistributionConfig

getDescriptorForType()

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

getMode()

public ZoneDistributionConfig.ZoneDistributionMode getMode()

Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.

.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ZoneDistributionConfig.ZoneDistributionMode

The mode.

getModeValue()

public int getModeValue()

Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.

.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for mode.

getZone()

public String getZone()

Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.

string zone = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.

string zone = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for zone.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ZoneDistributionConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setMode(ZoneDistributionConfig.ZoneDistributionMode value)

public ZoneDistributionConfig.Builder setMode(ZoneDistributionConfig.ZoneDistributionMode value)

Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.

.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ZoneDistributionConfig.ZoneDistributionMode

The mode to set.

Returns
Type Description
ZoneDistributionConfig.Builder

This builder for chaining.

setModeValue(int value)

public ZoneDistributionConfig.Builder setModeValue(int value)

Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not specified.

.google.cloud.redis.cluster.v1beta1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
ZoneDistributionConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setZone(String value)

public ZoneDistributionConfig.Builder setZone(String value)

Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.

string zone = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
ZoneDistributionConfig.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public ZoneDistributionConfig.Builder setZoneBytes(ByteString value)

Optional. When SINGLE ZONE distribution is selected, zone field would be used to allocate all resources in that zone. This is not applicable to MULTI_ZONE, and would be ignored for MULTI_ZONE clusters.

string zone = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
ZoneDistributionConfig.Builder

This builder for chaining.