Class ZoneDistributionConfig.Builder (0.6.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 0.6.0keyboard_arrow_down
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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-30 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-30 UTC."],[],[],null,[]]