public static final class ZoneDistributionConfig.Builder extends GeneratedMessageV3.Builder<ZoneDistributionConfig.Builder> implements ZoneDistributionConfigOrBuilder
Zone distribution configuration for allocation of instance resources.
Protobuf type google.cloud.memorystore.v1.ZoneDistributionConfig
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ZoneDistributionConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ZoneDistributionConfig build()
buildPartial()
public ZoneDistributionConfig buildPartial()
clear()
public ZoneDistributionConfig.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ZoneDistributionConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public ZoneDistributionConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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];
clone()
public ZoneDistributionConfig.Builder clone()
Overrides
getDefaultInstanceForType()
public ZoneDistributionConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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];
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()
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ZoneDistributionConfig other)
public ZoneDistributionConfig.Builder mergeFrom(ZoneDistributionConfig other)
public ZoneDistributionConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ZoneDistributionConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ZoneDistributionConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ZoneDistributionConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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];
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 |
int
The enum numeric value on the wire for mode to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ZoneDistributionConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ZoneDistributionConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
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 |
String
The zone to set.
|
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 |
ByteString
The bytes for zone to set.
|