public static final class ZoneDistributionConfig.Builder extends GeneratedMessage.Builder<ZoneDistributionConfig.Builder> implements ZoneDistributionConfigOrBuilderZone distribution configuration for allocation of instance resources.
Protobuf type google.cloud.memorystore.v1beta.ZoneDistributionConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ZoneDistributionConfig.BuilderImplements
ZoneDistributionConfigOrBuilderStatic 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 instance currently has active VMs.
repeated string active_zones = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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 instance currently has active VMs.
repeated string active_zones = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe 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 instance 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 instance where Memorystore instance allocates resources. This flag isn't applicable for single-zone instances.
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 instance where Memorystore instance allocates resources. This flag isn't applicable for single-zone instances.
repeated string zones = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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 instance where Memorystore instance allocates resources. This flag isn't applicable for single-zone instances.
repeated string zones = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe 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 |
|
clearActiveZones()
public ZoneDistributionConfig.Builder clearActiveZones()Output only. The exact list of zones where the instance 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. Current zone distribution mode. Defaults to MULTI_ZONE.
.google.cloud.memorystore.v1beta.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ZoneDistributionConfig.Builder |
This builder for chaining. |
clearZone()
public ZoneDistributionConfig.Builder clearZone()Optional. Defines zone where all resources will be allocated with SINGLE_ZONE mode. Ignored for MULTI_ZONE mode.
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 instance where Memorystore instance allocates resources. This flag isn't applicable for single-zone instances.
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 instance currently has active VMs.
repeated string active_zones = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe 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 instance currently has active VMs.
repeated string active_zones = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe 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 instance 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 instance 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 |
|
getMode()
public ZoneDistributionConfig.ZoneDistributionMode getMode()Optional. Current zone distribution mode. Defaults to MULTI_ZONE.
.google.cloud.memorystore.v1beta.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ZoneDistributionConfig.ZoneDistributionMode |
The mode. |
getModeValue()
public int getModeValue()Optional. Current zone distribution mode. Defaults to MULTI_ZONE.
.google.cloud.memorystore.v1beta.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. Defines zone where all resources will be allocated with SINGLE_ZONE mode. Ignored for MULTI_ZONE mode.
string zone = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The zone. |
getZoneBytes()
public ByteString getZoneBytes()Optional. Defines zone where all resources will be allocated with SINGLE_ZONE mode. Ignored for MULTI_ZONE mode.
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 instance where Memorystore instance allocates resources. This flag isn't applicable for single-zone instances.
repeated string zones = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe 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 instance where Memorystore instance allocates resources. This flag isn't applicable for single-zone instances.
repeated string zones = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe 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 instance where Memorystore instance allocates resources. This flag isn't applicable for single-zone instances.
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 instance where Memorystore instance allocates resources. This flag isn't applicable for single-zone instances.
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ZoneDistributionConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ZoneDistributionConfig.Builder |
|
setActiveZones(int index, String value)
public ZoneDistributionConfig.Builder setActiveZones(int index, String value)Output only. The exact list of zones where the instance currently has active VMs.
repeated string active_zones = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe activeZones to set. |
| Returns | |
|---|---|
| Type | Description |
ZoneDistributionConfig.Builder |
This builder for chaining. |
setMode(ZoneDistributionConfig.ZoneDistributionMode value)
public ZoneDistributionConfig.Builder setMode(ZoneDistributionConfig.ZoneDistributionMode value)Optional. Current zone distribution mode. Defaults to MULTI_ZONE.
.google.cloud.memorystore.v1beta.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ZoneDistributionConfig.ZoneDistributionModeThe mode to set. |
| Returns | |
|---|---|
| Type | Description |
ZoneDistributionConfig.Builder |
This builder for chaining. |
setModeValue(int value)
public ZoneDistributionConfig.Builder setModeValue(int value)Optional. Current zone distribution mode. Defaults to MULTI_ZONE.
.google.cloud.memorystore.v1beta.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe 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. Defines zone where all resources will be allocated with SINGLE_ZONE mode. Ignored for MULTI_ZONE mode.
string zone = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe zone to set. |
| Returns | |
|---|---|
| Type | Description |
ZoneDistributionConfig.Builder |
This builder for chaining. |
setZoneBytes(ByteString value)
public ZoneDistributionConfig.Builder setZoneBytes(ByteString value)Optional. Defines zone where all resources will be allocated with SINGLE_ZONE mode. Ignored for MULTI_ZONE mode.
string zone = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe 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 instance where Memorystore instance allocates resources. This flag isn't applicable for single-zone instances.
repeated string zones = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe zones to set. |
| Returns | |
|---|---|
| Type | Description |
ZoneDistributionConfig.Builder |
This builder for chaining. |