Class Cluster.StateInfo.UpdateInfo.Builder (0.11.0)

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

Represents information about an updating cluster.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Cluster.StateInfo.UpdateInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder
Overrides

build()

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

buildPartial()

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

clear()

public Cluster.StateInfo.UpdateInfo.Builder clear()
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Cluster.StateInfo.UpdateInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Cluster.StateInfo.UpdateInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder
Overrides

clearTargetReplicaCount()

public Cluster.StateInfo.UpdateInfo.Builder clearTargetReplicaCount()

Target number of replica nodes per shard.

optional int32 target_replica_count = 2;

Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder

This builder for chaining.

clearTargetShardCount()

public Cluster.StateInfo.UpdateInfo.Builder clearTargetShardCount()

Target number of shards for redis cluster

optional int32 target_shard_count = 1;

Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder

This builder for chaining.

clone()

public Cluster.StateInfo.UpdateInfo.Builder clone()
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Cluster.StateInfo.UpdateInfo other)

public Cluster.StateInfo.UpdateInfo.Builder mergeFrom(Cluster.StateInfo.UpdateInfo other)
Parameter
NameDescription
otherCluster.StateInfo.UpdateInfo
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Cluster.StateInfo.UpdateInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Cluster.StateInfo.UpdateInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Cluster.StateInfo.UpdateInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Cluster.StateInfo.UpdateInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder
Overrides

setTargetReplicaCount(int value)

public Cluster.StateInfo.UpdateInfo.Builder setTargetReplicaCount(int value)

Target number of replica nodes per shard.

optional int32 target_replica_count = 2;

Parameter
NameDescription
valueint

The targetReplicaCount to set.

Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder

This builder for chaining.

setTargetShardCount(int value)

public Cluster.StateInfo.UpdateInfo.Builder setTargetShardCount(int value)

Target number of shards for redis cluster

optional int32 target_shard_count = 1;

Parameter
NameDescription
valueint

The targetShardCount to set.

Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Cluster.StateInfo.UpdateInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Cluster.StateInfo.UpdateInfo.Builder
Overrides