Class ReplicaInfo.Builder (6.52.1)

public static final class ReplicaInfo.Builder extends GeneratedMessageV3.Builder<ReplicaInfo.Builder> implements ReplicaInfoOrBuilder

Protobuf type google.spanner.admin.instance.v1.ReplicaInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ReplicaInfo build()
Returns
TypeDescription
ReplicaInfo

buildPartial()

public ReplicaInfo buildPartial()
Returns
TypeDescription
ReplicaInfo

clear()

public ReplicaInfo.Builder clear()
Returns
TypeDescription
ReplicaInfo.Builder
Overrides

clearDefaultLeaderLocation()

public ReplicaInfo.Builder clearDefaultLeaderLocation()

If true, this location is designated as the default leader location where leader replicas are placed. See the region types documentation for more details.

bool default_leader_location = 3;

Returns
TypeDescription
ReplicaInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ReplicaInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ReplicaInfo.Builder
Overrides

clearLocation()

public ReplicaInfo.Builder clearLocation()

The location of the serving resources, e.g. "us-central1".

string location = 1;

Returns
TypeDescription
ReplicaInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ReplicaInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ReplicaInfo.Builder
Overrides

clearType()

public ReplicaInfo.Builder clearType()

The type of replica.

.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;

Returns
TypeDescription
ReplicaInfo.Builder

This builder for chaining.

clone()

public ReplicaInfo.Builder clone()
Returns
TypeDescription
ReplicaInfo.Builder
Overrides

getDefaultInstanceForType()

public ReplicaInfo getDefaultInstanceForType()
Returns
TypeDescription
ReplicaInfo

getDefaultLeaderLocation()

public boolean getDefaultLeaderLocation()

If true, this location is designated as the default leader location where leader replicas are placed. See the region types documentation for more details.

bool default_leader_location = 3;

Returns
TypeDescription
boolean

The defaultLeaderLocation.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLocation()

public String getLocation()

The location of the serving resources, e.g. "us-central1".

string location = 1;

Returns
TypeDescription
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

The location of the serving resources, e.g. "us-central1".

string location = 1;

Returns
TypeDescription
ByteString

The bytes for location.

getType()

public ReplicaInfo.ReplicaType getType()

The type of replica.

.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;

Returns
TypeDescription
ReplicaInfo.ReplicaType

The type.

getTypeValue()

public int getTypeValue()

The type of replica.

.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ReplicaInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ReplicaInfo.Builder
Overrides

mergeFrom(ReplicaInfo other)

public ReplicaInfo.Builder mergeFrom(ReplicaInfo other)
Parameter
NameDescription
otherReplicaInfo
Returns
TypeDescription
ReplicaInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReplicaInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReplicaInfo.Builder
Overrides

setDefaultLeaderLocation(boolean value)

public ReplicaInfo.Builder setDefaultLeaderLocation(boolean value)

If true, this location is designated as the default leader location where leader replicas are placed. See the region types documentation for more details.

bool default_leader_location = 3;

Parameter
NameDescription
valueboolean

The defaultLeaderLocation to set.

Returns
TypeDescription
ReplicaInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLocation(String value)

public ReplicaInfo.Builder setLocation(String value)

The location of the serving resources, e.g. "us-central1".

string location = 1;

Parameter
NameDescription
valueString

The location to set.

Returns
TypeDescription
ReplicaInfo.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public ReplicaInfo.Builder setLocationBytes(ByteString value)

The location of the serving resources, e.g. "us-central1".

string location = 1;

Parameter
NameDescription
valueByteString

The bytes for location to set.

Returns
TypeDescription
ReplicaInfo.Builder

This builder for chaining.

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

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

setType(ReplicaInfo.ReplicaType value)

public ReplicaInfo.Builder setType(ReplicaInfo.ReplicaType value)

The type of replica.

.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;

Parameter
NameDescription
valueReplicaInfo.ReplicaType

The type to set.

Returns
TypeDescription
ReplicaInfo.Builder

This builder for chaining.

setTypeValue(int value)

public ReplicaInfo.Builder setTypeValue(int value)

The type of replica.

.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;

Parameter
NameDescription
valueint

The enum numeric value on the wire for type to set.

Returns
TypeDescription
ReplicaInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ReplicaInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReplicaInfo.Builder
Overrides