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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ReplicaInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ReplicaInfo build()
Returns
buildPartial()
public ReplicaInfo buildPartial()
Returns
clear()
public ReplicaInfo.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public ReplicaInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLocation()
public ReplicaInfo.Builder clearLocation()
The location of the serving resources, e.g. "us-central1".
string location = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ReplicaInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearType()
public ReplicaInfo.Builder clearType()
The type of replica.
.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;
Returns
clone()
public ReplicaInfo.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ReplicaInfo getDefaultInstanceForType()
Returns
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
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
getType()
public ReplicaInfo.ReplicaType getType()
The type of replica.
.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public ReplicaInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ReplicaInfo.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(ReplicaInfo other)
public ReplicaInfo.Builder mergeFrom(ReplicaInfo other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ReplicaInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public ReplicaInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ReplicaInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
setUnknownFields(UnknownFieldSet unknownFields)
public final ReplicaInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides