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.v1.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
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 |
|
clearMode()
public ZoneDistributionConfig.Builder clearMode()Optional. Current zone distribution mode. Defaults to MULTI_ZONE.
.google.cloud.memorystore.v1.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. |
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.v1.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.v1.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. |
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 |
|
setMode(ZoneDistributionConfig.ZoneDistributionMode value)
public ZoneDistributionConfig.Builder setMode(ZoneDistributionConfig.ZoneDistributionMode value)Optional. Current zone distribution mode. Defaults to MULTI_ZONE.
.google.cloud.memorystore.v1.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.v1.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. |