Send feedback
Class ZoneDistributionConfig.Builder (0.24.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.24.0 keyboard_arrow_down
public static final class ZoneDistributionConfig . Builder extends GeneratedMessageV3 . Builder<ZoneDistributionConfig . Builder > implements ZoneDistributionConfigOrBuilder
Zone distribution config for allocation of cluster resources.
Protobuf type google.cloud.redis.cluster.v1beta1.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. 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];
clearOneof(Descriptors.OneofDescriptor oneof)
public ZoneDistributionConfig . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
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];
clone()
public ZoneDistributionConfig . Builder clone ()
Overrides
getDefaultInstanceForType()
public ZoneDistributionConfig getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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];
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()
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.
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. 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];
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.
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. 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.
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.
Send feedback
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-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]