public static final class ReplicaInfo.Builder extends GeneratedMessageV3.Builder<ReplicaInfo.Builder> implements ReplicaInfoOrBuilder
Protobuf type google.spanner.admin.instance.v1.ReplicaInfo
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ReplicaInfo.BuilderImplements
ReplicaInfoOrBuilderMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ReplicaInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ReplicaInfo.Builder |
build()
public ReplicaInfo build()
Type | Description |
ReplicaInfo |
buildPartial()
public ReplicaInfo buildPartial()
Type | Description |
ReplicaInfo |
clear()
public ReplicaInfo.Builder clear()
Type | Description |
ReplicaInfo.Builder |
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;
Type | Description |
ReplicaInfo.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ReplicaInfo.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ReplicaInfo.Builder |
clearLocation()
public ReplicaInfo.Builder clearLocation()
The location of the serving resources, e.g. "us-central1".
string location = 1;
Type | Description |
ReplicaInfo.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ReplicaInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ReplicaInfo.Builder |
clearType()
public ReplicaInfo.Builder clearType()
The type of replica.
.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;
Type | Description |
ReplicaInfo.Builder | This builder for chaining. |
clone()
public ReplicaInfo.Builder clone()
Type | Description |
ReplicaInfo.Builder |
getDefaultInstanceForType()
public ReplicaInfo getDefaultInstanceForType()
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;
Type | Description |
boolean | The defaultLeaderLocation. |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getLocation()
public String getLocation()
The location of the serving resources, e.g. "us-central1".
string location = 1;
Type | Description |
String | The location. |
getLocationBytes()
public ByteString getLocationBytes()
The location of the serving resources, e.g. "us-central1".
string location = 1;
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;
Type | Description |
ReplicaInfo.ReplicaType | The type. |
getTypeValue()
public int getTypeValue()
The type of replica.
.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;
Type | Description |
int | The enum numeric value on the wire for type. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ReplicaInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ReplicaInfo.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ReplicaInfo.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ReplicaInfo.Builder |
mergeFrom(ReplicaInfo other)
public ReplicaInfo.Builder mergeFrom(ReplicaInfo other)
Name | Description |
other | ReplicaInfo |
Type | Description |
ReplicaInfo.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ReplicaInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ReplicaInfo.Builder |
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;
Name | Description |
value | boolean The defaultLeaderLocation to set. |
Type | Description |
ReplicaInfo.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ReplicaInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ReplicaInfo.Builder |
setLocation(String value)
public ReplicaInfo.Builder setLocation(String value)
The location of the serving resources, e.g. "us-central1".
string location = 1;
Name | Description |
value | String The location to set. |
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;
Name | Description |
value | ByteString The bytes for location to set. |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ReplicaInfo.Builder |
setType(ReplicaInfo.ReplicaType value)
public ReplicaInfo.Builder setType(ReplicaInfo.ReplicaType value)
The type of replica.
.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;
Name | Description |
value | ReplicaInfo.ReplicaType The type to set. |
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;
Name | Description |
value | int The enum numeric value on the wire for type to set. |
Type | Description |
ReplicaInfo.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ReplicaInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ReplicaInfo.Builder |