Class Cluster.StateInfo.UpdateInfo (0.24.0)

public static final class Cluster.StateInfo.UpdateInfo extends GeneratedMessageV3 implements Cluster.StateInfo.UpdateInfoOrBuilder

Represents information about an updating cluster.

Protobuf type google.cloud.redis.cluster.v1beta1.Cluster.StateInfo.UpdateInfo

Static Fields

TARGET_REPLICA_COUNT_FIELD_NUMBER

public static final int TARGET_REPLICA_COUNT_FIELD_NUMBER
Field Value
Type Description
int

TARGET_SHARD_COUNT_FIELD_NUMBER

public static final int TARGET_SHARD_COUNT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Cluster.StateInfo.UpdateInfo getDefaultInstance()
Returns
Type Description
Cluster.StateInfo.UpdateInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Cluster.StateInfo.UpdateInfo.Builder newBuilder()
Returns
Type Description
Cluster.StateInfo.UpdateInfo.Builder

newBuilder(Cluster.StateInfo.UpdateInfo prototype)

public static Cluster.StateInfo.UpdateInfo.Builder newBuilder(Cluster.StateInfo.UpdateInfo prototype)
Parameter
Name Description
prototype Cluster.StateInfo.UpdateInfo
Returns
Type Description
Cluster.StateInfo.UpdateInfo.Builder

parseDelimitedFrom(InputStream input)

public static Cluster.StateInfo.UpdateInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Cluster.StateInfo.UpdateInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Cluster.StateInfo.UpdateInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Cluster.StateInfo.UpdateInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Cluster.StateInfo.UpdateInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Cluster.StateInfo.UpdateInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Cluster.StateInfo.UpdateInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Cluster.StateInfo.UpdateInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Cluster.StateInfo.UpdateInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Cluster.StateInfo.UpdateInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Cluster.StateInfo.UpdateInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Cluster.StateInfo.UpdateInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Cluster.StateInfo.UpdateInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Cluster.StateInfo.UpdateInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Cluster.StateInfo.UpdateInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Cluster.StateInfo.UpdateInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Cluster.StateInfo.UpdateInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Cluster.StateInfo.UpdateInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Cluster.StateInfo.UpdateInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Cluster.StateInfo.UpdateInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Cluster.StateInfo.UpdateInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Cluster.StateInfo.UpdateInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Cluster.StateInfo.UpdateInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Cluster.StateInfo.UpdateInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Cluster.StateInfo.UpdateInfo> parser()
Returns
Type Description
Parser<UpdateInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Cluster.StateInfo.UpdateInfo getDefaultInstanceForType()
Returns
Type Description
Cluster.StateInfo.UpdateInfo

getParserForType()

public Parser<Cluster.StateInfo.UpdateInfo> getParserForType()
Returns
Type Description
Parser<UpdateInfo>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTargetReplicaCount()

public int getTargetReplicaCount()

Target number of replica nodes per shard.

optional int32 target_replica_count = 2;

Returns
Type Description
int

The targetReplicaCount.

getTargetShardCount()

public int getTargetShardCount()

Target number of shards for redis cluster

optional int32 target_shard_count = 1;

Returns
Type Description
int

The targetShardCount.

hasTargetReplicaCount()

public boolean hasTargetReplicaCount()

Target number of replica nodes per shard.

optional int32 target_replica_count = 2;

Returns
Type Description
boolean

Whether the targetReplicaCount field is set.

hasTargetShardCount()

public boolean hasTargetShardCount()

Target number of shards for redis cluster

optional int32 target_shard_count = 1;

Returns
Type Description
boolean

Whether the targetShardCount field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Cluster.StateInfo.UpdateInfo.Builder newBuilderForType()
Returns
Type Description
Cluster.StateInfo.UpdateInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Cluster.StateInfo.UpdateInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Cluster.StateInfo.UpdateInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Cluster.StateInfo.UpdateInfo.Builder toBuilder()
Returns
Type Description
Cluster.StateInfo.UpdateInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException