- 6.108.0 (latest)
- 6.107.0
- 6.103.0
- 6.102.1
- 6.101.1
- 6.100.0
- 6.99.0
- 6.98.1
- 6.97.1
- 6.96.1
- 6.95.1
- 6.94.0
- 6.93.0
- 6.89.0
- 6.88.0
- 6.87.0
- 6.86.0
- 6.85.0
- 6.83.0
- 6.82.0
- 6.80.1
- 6.79.0
- 6.77.0
- 6.74.1
- 6.72.0
- 6.71.0
- 6.69.0
- 6.68.0
- 6.66.0
- 6.65.1
- 6.62.0
- 6.60.0
- 6.58.0
- 6.57.0
- 6.56.0
- 6.55.0
- 6.54.0
- 6.53.0
- 6.52.1
- 6.51.0
- 6.50.1
- 6.49.0
- 6.25.1
- 6.24.0
- 6.23.4
- 6.22.0
- 6.21.2
- 6.20.0
- 6.19.1
- 6.18.0
- 6.17.4
- 6.14.1
public static final class ReplicaInfo.Builder extends GeneratedMessage.Builder<ReplicaInfo.Builder> implements ReplicaInfoOrBuilderProtobuf type google.spanner.admin.instance.v1.ReplicaInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ReplicaInfo.BuilderImplements
ReplicaInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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. |
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. |
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ReplicaInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ReplicaInfo.Builder |
|
mergeFrom(ReplicaInfo other)
public ReplicaInfo.Builder mergeFrom(ReplicaInfo other)| Parameter | |
|---|---|
| Name | Description |
other |
ReplicaInfo |
| Returns | |
|---|---|
| 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;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe defaultLeaderLocation to set. |
| Returns | |
|---|---|
| Type | Description |
ReplicaInfo.Builder |
This builder for chaining. |
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 |
StringThe 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 |
ByteStringThe bytes for location to set. |
| Returns | |
|---|---|
| Type | Description |
ReplicaInfo.Builder |
This builder for chaining. |
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.ReplicaTypeThe 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 |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
ReplicaInfo.Builder |
This builder for chaining. |