public static final class ReplicaInfo.Builder extends GeneratedMessageV3.Builder<ReplicaInfo.Builder> implements ReplicaInfoOrBuilder
Protobuf type google.spanner.admin.instance.v1.ReplicaInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ReplicaInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ReplicaInfo build()
buildPartial()
public ReplicaInfo buildPartial()
clear()
public ReplicaInfo.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public ReplicaInfo.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLocation()
public ReplicaInfo.Builder clearLocation()
The location of the serving resources, e.g. "us-central1".
string location = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public ReplicaInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearType()
public ReplicaInfo.Builder clearType()
The type of replica.
.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;
clone()
public ReplicaInfo.Builder clone()
Overrides
getDefaultInstanceForType()
public ReplicaInfo getDefaultInstanceForType()
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()
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;
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public ReplicaInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ReplicaInfo.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeFrom(ReplicaInfo other)
public ReplicaInfo.Builder mergeFrom(ReplicaInfo other)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ReplicaInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public ReplicaInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ReplicaInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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;
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ReplicaInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides