public static final class ReplicaInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReplicaInfo.Builder> implements ReplicaInfoOrBuilder
google.spanner.admin.instance.v1.ReplicaInfo| Modifier and Type | Method and Description |
|---|---|
ReplicaInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ReplicaInfo |
build() |
ReplicaInfo |
buildPartial() |
ReplicaInfo.Builder |
clear() |
ReplicaInfo.Builder |
clearDefaultLeaderLocation()
If true, this location is designated as the default leader location where
leader replicas are placed.
|
ReplicaInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ReplicaInfo.Builder |
clearLocation()
The location of the serving resources, e.g.
|
ReplicaInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ReplicaInfo.Builder |
clearType()
The type of replica.
|
ReplicaInfo.Builder |
clone() |
ReplicaInfo |
getDefaultInstanceForType() |
boolean |
getDefaultLeaderLocation()
If true, this location is designated as the default leader location where
leader replicas are placed.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getLocation()
The location of the serving resources, e.g.
|
com.google.protobuf.ByteString |
getLocationBytes()
The location of the serving resources, e.g.
|
ReplicaInfo.ReplicaType |
getType()
The type of replica.
|
int |
getTypeValue()
The type of replica.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ReplicaInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ReplicaInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
ReplicaInfo.Builder |
mergeFrom(ReplicaInfo other) |
ReplicaInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ReplicaInfo.Builder |
setDefaultLeaderLocation(boolean value)
If true, this location is designated as the default leader location where
leader replicas are placed.
|
ReplicaInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ReplicaInfo.Builder |
setLocation(String value)
The location of the serving resources, e.g.
|
ReplicaInfo.Builder |
setLocationBytes(com.google.protobuf.ByteString value)
The location of the serving resources, e.g.
|
ReplicaInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ReplicaInfo.Builder |
setType(ReplicaInfo.ReplicaType value)
The type of replica.
|
ReplicaInfo.Builder |
setTypeValue(int value)
The type of replica.
|
ReplicaInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicaInfo.Builder>public ReplicaInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicaInfo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicaInfo.Builder>public ReplicaInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ReplicaInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ReplicaInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ReplicaInfo.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicaInfo.Builder>public ReplicaInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicaInfo.Builder>public ReplicaInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicaInfo.Builder>public ReplicaInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicaInfo.Builder>public ReplicaInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicaInfo.Builder>public ReplicaInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicaInfo.Builder>public ReplicaInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReplicaInfo.Builder>public ReplicaInfo.Builder mergeFrom(ReplicaInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicaInfo.Builder>public ReplicaInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReplicaInfo.Builder>IOExceptionpublic String getLocation()
The location of the serving resources, e.g. "us-central1".
string location = 1;getLocation in interface ReplicaInfoOrBuilderpublic com.google.protobuf.ByteString getLocationBytes()
The location of the serving resources, e.g. "us-central1".
string location = 1;getLocationBytes in interface ReplicaInfoOrBuilderpublic ReplicaInfo.Builder setLocation(String value)
The location of the serving resources, e.g. "us-central1".
string location = 1;value - The location to set.public ReplicaInfo.Builder clearLocation()
The location of the serving resources, e.g. "us-central1".
string location = 1;public ReplicaInfo.Builder setLocationBytes(com.google.protobuf.ByteString value)
The location of the serving resources, e.g. "us-central1".
string location = 1;value - The bytes for location to set.public int getTypeValue()
The type of replica.
.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;getTypeValue in interface ReplicaInfoOrBuilderpublic ReplicaInfo.Builder setTypeValue(int value)
The type of replica.
.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;value - The enum numeric value on the wire for type to set.public ReplicaInfo.ReplicaType getType()
The type of replica.
.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;getType in interface ReplicaInfoOrBuilderpublic ReplicaInfo.Builder setType(ReplicaInfo.ReplicaType value)
The type of replica.
.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;value - The type to set.public ReplicaInfo.Builder clearType()
The type of replica.
.google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;public boolean getDefaultLeaderLocation()
If true, this location is designated as the default leader location where leader replicas are placed. See the [region types documentation](https://cloud.google.com/spanner/docs/instances#region_types) for more details.
bool default_leader_location = 3;getDefaultLeaderLocation in interface ReplicaInfoOrBuilderpublic 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](https://cloud.google.com/spanner/docs/instances#region_types) for more details.
bool default_leader_location = 3;value - The defaultLeaderLocation to set.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](https://cloud.google.com/spanner/docs/instances#region_types) for more details.
bool default_leader_location = 3;public final ReplicaInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicaInfo.Builder>public final ReplicaInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReplicaInfo.Builder>Copyright © 2020 Google LLC. All rights reserved.