Class ZoneDistributionConfig.Builder (0.75.0)

public static final class ZoneDistributionConfig.Builder extends GeneratedMessage.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

addActiveZones(String value)

public ZoneDistributionConfig.Builder addActiveZones(String value)

Output only. The exact list of zones where the cluster currently has active VMs.

repeated string active_zones = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The activeZones to add.

Returns
Type Description
ZoneDistributionConfig.Builder

This builder for chaining.

addActiveZonesBytes(ByteString value)

public ZoneDistributionConfig.Builder addActiveZonesBytes(ByteString value)

Output only. The exact list of zones where the cluster currently has active VMs.

repeated string active_zones = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the activeZones to add.

Returns
Type Description
ZoneDistributionConfig.Builder

This builder for chaining.

addAllActiveZones(Iterable<String> values)

public ZoneDistributionConfig.Builder addAllActiveZones(Iterable<String> values)

Output only. The exact list of zones where the cluster currently has active VMs.

repeated string active_zones = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The activeZones to add.

Returns
Type Description
ZoneDistributionConfig.Builder

This builder for chaining.

addAllZones(Iterable<String> values)

public ZoneDistributionConfig.Builder addAllZones(Iterable<String> values)

Optional. Specify the zones of a multi-zone cluster where Redis Cluster allocates resources. This flag isn't applicable for single-zone clusters.

repeated string zones = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The zones to add.

Returns
Type Description
ZoneDistributionConfig.Builder

This builder for chaining.

addZones(String value)

public ZoneDistributionConfig.Builder addZones(String value)

Optional. Specify the zones of a multi-zone cluster where Redis Cluster allocates resources. This flag isn't applicable for single-zone clusters.

repeated string zones = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The zones to add.

Returns
Type Description
ZoneDistributionConfig.Builder

This builder for chaining.

addZonesBytes(ByteString value)

public ZoneDistributionConfig.Builder addZonesBytes(ByteString value)

Optional. Specify the zones of a multi-zone cluster where Redis Cluster allocates resources. This flag isn't applicable for single-zone clusters.

repeated string zones = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the zones to add.

Returns
Type Description
ZoneDistributionConfig.Builder

This builder for chaining.

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

clearActiveZones()

public ZoneDistributionConfig.Builder clearActiveZones()

Output only. The exact list of zones where the cluster currently has active VMs.

repeated string active_zones = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ZoneDistributionConfig.Builder

This builder for chaining.

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.

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.

clearZones()

public ZoneDistributionConfig.Builder clearZones()

Optional. Specify the zones of a multi-zone cluster where Redis Cluster allocates resources. This flag isn't applicable for single-zone clusters.

repeated string zones = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ZoneDistributionConfig.Builder

This builder for chaining.

getActiveZones(int index)

public String getActiveZones(int index)

Output only. The exact list of zones where the cluster currently has active VMs.

repeated string active_zones = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The activeZones at the given index.

getActiveZonesBytes(int index)

public ByteString getActiveZonesBytes(int index)

Output only. The exact list of zones where the cluster currently has active VMs.

repeated string active_zones = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the activeZones at the given index.

getActiveZonesCount()

public int getActiveZonesCount()

Output only. The exact list of zones where the cluster currently has active VMs.

repeated string active_zones = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of activeZones.

getActiveZonesList()

public ProtocolStringList getActiveZonesList()

Output only. The exact list of zones where the cluster currently has active VMs.

repeated string active_zones = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the activeZones.

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.

getZones(int index)

public String getZones(int index)

Optional. Specify the zones of a multi-zone cluster where Redis Cluster allocates resources. This flag isn't applicable for single-zone clusters.

repeated string zones = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The zones at the given index.

getZonesBytes(int index)

public ByteString getZonesBytes(int index)

Optional. Specify the zones of a multi-zone cluster where Redis Cluster allocates resources. This flag isn't applicable for single-zone clusters.

repeated string zones = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the zones at the given index.

getZonesCount()

public int getZonesCount()

Optional. Specify the zones of a multi-zone cluster where Redis Cluster allocates resources. This flag isn't applicable for single-zone clusters.

repeated string zones = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of zones.

getZonesList()

public ProtocolStringList getZonesList()

Optional. Specify the zones of a multi-zone cluster where Redis Cluster allocates resources. This flag isn't applicable for single-zone clusters.

repeated string zones = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the zones.

internalGetFieldAccessorTable()

protected GeneratedMessage.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

setActiveZones(int index, String value)

public ZoneDistributionConfig.Builder setActiveZones(int index, String value)

Output only. The exact list of zones where the cluster currently has active VMs.

repeated string active_zones = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The activeZones to set.

Returns
Type Description
ZoneDistributionConfig.Builder

This builder for chaining.

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.

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.

setZones(int index, String value)

public ZoneDistributionConfig.Builder setZones(int index, String value)

Optional. Specify the zones of a multi-zone cluster where Redis Cluster allocates resources. This flag isn't applicable for single-zone clusters.

repeated string zones = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The zones to set.

Returns
Type Description
ZoneDistributionConfig.Builder

This builder for chaining.