public final class ZoneDistributionConfig extends GeneratedMessage implements ZoneDistributionConfigOrBuilder
Zone distribution config for allocation of cluster resources.
Protobuf type google.cloud.redis.cluster.v1.ZoneDistributionConfig
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
ACTIVE_ZONES_FIELD_NUMBER
public static final int ACTIVE_ZONES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MODE_FIELD_NUMBER
public static final int MODE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ZONES_FIELD_NUMBER
public static final int ZONES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ZONE_FIELD_NUMBER
public static final int ZONE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static ZoneDistributionConfig getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ZoneDistributionConfig.Builder newBuilder()
newBuilder(ZoneDistributionConfig prototype)
public static ZoneDistributionConfig.Builder newBuilder(ZoneDistributionConfig prototype)
public static ZoneDistributionConfig parseDelimitedFrom(InputStream input)
public static ZoneDistributionConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ZoneDistributionConfig parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ZoneDistributionConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ZoneDistributionConfig parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ZoneDistributionConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ZoneDistributionConfig parseFrom(CodedInputStream input)
public static ZoneDistributionConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ZoneDistributionConfig parseFrom(InputStream input)
public static ZoneDistributionConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ZoneDistributionConfig parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ZoneDistributionConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ZoneDistributionConfig> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getActiveZones(int index)
public String getActiveZones(int index)
Output only. The exact list of zones where the cluster currently has active
VMs.
repeated string active_zones = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
The 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 cluster currently has active
VMs.
repeated string active_zones = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
The 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 cluster 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 cluster currently has active
VMs.
repeated string active_zones = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public ZoneDistributionConfig getDefaultInstanceForType()
getMode()
public ZoneDistributionConfig.ZoneDistributionMode getMode()
Optional. The mode of zone distribution. Defaults to MULTI_ZONE, when not
specified.
.google.cloud.redis.cluster.v1.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.v1.ZoneDistributionConfig.ZoneDistributionMode mode = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for mode.
|
getParserForType()
public Parser<ZoneDistributionConfig> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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.
|
getZones(int index)
public String getZones(int index)
Optional. Specify the zones of a multi-zone cluster where Redis Cluster
allocates resources. This flag isn't applicable for single-zone clusters.
repeated string zones = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
The 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 cluster where Redis Cluster
allocates resources. This flag isn't applicable for single-zone clusters.
repeated string zones = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
The 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 cluster where Redis Cluster
allocates resources. This flag isn't applicable for single-zone clusters.
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 cluster where Redis Cluster
allocates resources. This flag isn't applicable for single-zone clusters.
repeated string zones = 3 [(.google.api.field_behavior) = OPTIONAL];
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ZoneDistributionConfig.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ZoneDistributionConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public ZoneDistributionConfig.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides