Class ReplicaInfo.Builder (6.74.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReplicaInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReplicaInfo.Builder
Overrides

build()

public ReplicaInfo build()
Returns
Type Description
ReplicaInfo

buildPartial()

public ReplicaInfo buildPartial()
Returns
Type Description
ReplicaInfo

clear()

public ReplicaInfo.Builder clear()
Returns
Type Description
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
Type Description
ReplicaInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ReplicaInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ReplicaInfo.Builder
Overrides

clearLocation()

public ReplicaInfo.Builder clearLocation()

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

string location = 1;

Returns
Type Description
ReplicaInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ReplicaInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ReplicaInfo.Builder
Overrides

clearType()

public ReplicaInfo.Builder clearType()

The type of replica.

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

Returns
Type Description
ReplicaInfo.Builder

This builder for chaining.

clone()

public ReplicaInfo.Builder clone()
Returns
Type Description
ReplicaInfo.Builder
Overrides

getDefaultInstanceForType()

public ReplicaInfo getDefaultInstanceForType()
Returns
Type Description
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
Type Description
boolean

The defaultLeaderLocation.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLocation()

public String getLocation()

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

string location = 1;

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

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

string location = 1;

Returns
Type Description
ByteString

The bytes for location.

getType()

public ReplicaInfo.ReplicaType getType()

The type of replica.

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

Returns
Type Description
ReplicaInfo.ReplicaType

The type.

getTypeValue()

public int getTypeValue()

The type of replica.

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

Returns
Type Description
int

The enum numeric value on the wire for type.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReplicaInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReplicaInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ReplicaInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ReplicaInfo.Builder
Overrides

mergeFrom(ReplicaInfo other)

public ReplicaInfo.Builder mergeFrom(ReplicaInfo other)
Parameter
Name Description
other ReplicaInfo
Returns
Type Description
ReplicaInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReplicaInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value boolean

The defaultLeaderLocation to set.

Returns
Type Description
ReplicaInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ReplicaInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The location to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value ReplicaInfo.ReplicaType

The type to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
ReplicaInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ReplicaInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReplicaInfo.Builder
Overrides