Class Cluster.StateInfo.UpdateInfo (0.13.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.v1.Cluster.StateInfo.UpdateInfo

Static Fields

TARGET_REPLICA_COUNT_FIELD_NUMBER

public static final int TARGET_REPLICA_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_SHARD_COUNT_FIELD_NUMBER

public static final int TARGET_SHARD_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Cluster.StateInfo.UpdateInfo getDefaultInstance()
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Cluster.StateInfo.UpdateInfo.Builder newBuilder()
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder

newBuilder(Cluster.StateInfo.UpdateInfo prototype)

public static Cluster.StateInfo.UpdateInfo.Builder newBuilder(Cluster.StateInfo.UpdateInfo prototype)
Parameter
NameDescription
prototypeCluster.StateInfo.UpdateInfo
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder

parseDelimitedFrom(InputStream input)

public static Cluster.StateInfo.UpdateInfo parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Cluster.StateInfo.UpdateInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Cluster.StateInfo.UpdateInfo parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Cluster.StateInfo.UpdateInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Cluster.StateInfo.UpdateInfo parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Cluster.StateInfo.UpdateInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Cluster.StateInfo.UpdateInfo parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Cluster.StateInfo.UpdateInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Cluster.StateInfo.UpdateInfo parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Cluster.StateInfo.UpdateInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Cluster.StateInfo.UpdateInfo parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Cluster.StateInfo.UpdateInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Cluster.StateInfo.UpdateInfo getDefaultInstanceForType()
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTargetReplicaCount()

public int getTargetReplicaCount()

Target number of replica nodes per shard.

optional int32 target_replica_count = 2;

Returns
TypeDescription
int

The targetReplicaCount.

getTargetShardCount()

public int getTargetShardCount()

Target number of shards for redis cluster

optional int32 target_shard_count = 1;

Returns
TypeDescription
int

The targetShardCount.

hasTargetReplicaCount()

public boolean hasTargetReplicaCount()

Target number of replica nodes per shard.

optional int32 target_replica_count = 2;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the targetShardCount field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Cluster.StateInfo.UpdateInfo.Builder newBuilderForType()
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Cluster.StateInfo.UpdateInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Cluster.StateInfo.UpdateInfo.Builder toBuilder()
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException