public static final class InstanceConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder> implements InstanceConfigOrBuilder
A possible configuration for a Cloud Spanner instance. Configurations define the geographic placement of nodes and their replication.Protobuf type
google.spanner.admin.instance.v1.InstanceConfig| Modifier and Type | Method and Description |
|---|---|
InstanceConfig.Builder |
addAllReplicas(Iterable<? extends ReplicaInfo> values)
The geographic placement of nodes in this instance configuration and their
replication properties.
|
InstanceConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InstanceConfig.Builder |
addReplicas(int index,
ReplicaInfo.Builder builderForValue)
The geographic placement of nodes in this instance configuration and their
replication properties.
|
InstanceConfig.Builder |
addReplicas(int index,
ReplicaInfo value)
The geographic placement of nodes in this instance configuration and their
replication properties.
|
InstanceConfig.Builder |
addReplicas(ReplicaInfo.Builder builderForValue)
The geographic placement of nodes in this instance configuration and their
replication properties.
|
InstanceConfig.Builder |
addReplicas(ReplicaInfo value)
The geographic placement of nodes in this instance configuration and their
replication properties.
|
ReplicaInfo.Builder |
addReplicasBuilder()
The geographic placement of nodes in this instance configuration and their
replication properties.
|
ReplicaInfo.Builder |
addReplicasBuilder(int index)
The geographic placement of nodes in this instance configuration and their
replication properties.
|
InstanceConfig |
build() |
InstanceConfig |
buildPartial() |
InstanceConfig.Builder |
clear() |
InstanceConfig.Builder |
clearDisplayName()
The name of this instance configuration as it appears in UIs.
|
InstanceConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
InstanceConfig.Builder |
clearName()
A unique identifier for the instance configuration.
|
InstanceConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
InstanceConfig.Builder |
clearReplicas()
The geographic placement of nodes in this instance configuration and their
replication properties.
|
InstanceConfig.Builder |
clone() |
InstanceConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDisplayName()
The name of this instance configuration as it appears in UIs.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
The name of this instance configuration as it appears in UIs.
|
String |
getName()
A unique identifier for the instance configuration.
|
com.google.protobuf.ByteString |
getNameBytes()
A unique identifier for the instance configuration.
|
ReplicaInfo |
getReplicas(int index)
The geographic placement of nodes in this instance configuration and their
replication properties.
|
ReplicaInfo.Builder |
getReplicasBuilder(int index)
The geographic placement of nodes in this instance configuration and their
replication properties.
|
List<ReplicaInfo.Builder> |
getReplicasBuilderList()
The geographic placement of nodes in this instance configuration and their
replication properties.
|
int |
getReplicasCount()
The geographic placement of nodes in this instance configuration and their
replication properties.
|
List<ReplicaInfo> |
getReplicasList()
The geographic placement of nodes in this instance configuration and their
replication properties.
|
ReplicaInfoOrBuilder |
getReplicasOrBuilder(int index)
The geographic placement of nodes in this instance configuration and their
replication properties.
|
List<? extends ReplicaInfoOrBuilder> |
getReplicasOrBuilderList()
The geographic placement of nodes in this instance configuration and their
replication properties.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
InstanceConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
InstanceConfig.Builder |
mergeFrom(InstanceConfig other) |
InstanceConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
InstanceConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
InstanceConfig.Builder |
removeReplicas(int index)
The geographic placement of nodes in this instance configuration and their
replication properties.
|
InstanceConfig.Builder |
setDisplayName(String value)
The name of this instance configuration as it appears in UIs.
|
InstanceConfig.Builder |
setDisplayNameBytes(com.google.protobuf.ByteString value)
The name of this instance configuration as it appears in UIs.
|
InstanceConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
InstanceConfig.Builder |
setName(String value)
A unique identifier for the instance configuration.
|
InstanceConfig.Builder |
setNameBytes(com.google.protobuf.ByteString value)
A unique identifier for the instance configuration.
|
InstanceConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
InstanceConfig.Builder |
setReplicas(int index,
ReplicaInfo.Builder builderForValue)
The geographic placement of nodes in this instance configuration and their
replication properties.
|
InstanceConfig.Builder |
setReplicas(int index,
ReplicaInfo value)
The geographic placement of nodes in this instance configuration and their
replication properties.
|
InstanceConfig.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<InstanceConfig.Builder>public InstanceConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.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<InstanceConfig.Builder>public InstanceConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic InstanceConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic InstanceConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic InstanceConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>public InstanceConfig.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<InstanceConfig.Builder>public InstanceConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>public InstanceConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>public InstanceConfig.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<InstanceConfig.Builder>public InstanceConfig.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<InstanceConfig.Builder>public InstanceConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstanceConfig.Builder>public InstanceConfig.Builder mergeFrom(InstanceConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>public InstanceConfig.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<InstanceConfig.Builder>IOExceptionpublic String getName()
A unique identifier for the instance configuration. Values are of the form `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`
string name = 1;getName in interface InstanceConfigOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
A unique identifier for the instance configuration. Values are of the form `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`
string name = 1;getNameBytes in interface InstanceConfigOrBuilderpublic InstanceConfig.Builder setName(String value)
A unique identifier for the instance configuration. Values are of the form `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`
string name = 1;value - The name to set.public InstanceConfig.Builder clearName()
A unique identifier for the instance configuration. Values are of the form `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`
string name = 1;public InstanceConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
A unique identifier for the instance configuration. Values are of the form `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`
string name = 1;value - The bytes for name to set.public String getDisplayName()
The name of this instance configuration as it appears in UIs.
string display_name = 2;getDisplayName in interface InstanceConfigOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
The name of this instance configuration as it appears in UIs.
string display_name = 2;getDisplayNameBytes in interface InstanceConfigOrBuilderpublic InstanceConfig.Builder setDisplayName(String value)
The name of this instance configuration as it appears in UIs.
string display_name = 2;value - The displayName to set.public InstanceConfig.Builder clearDisplayName()
The name of this instance configuration as it appears in UIs.
string display_name = 2;public InstanceConfig.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
The name of this instance configuration as it appears in UIs.
string display_name = 2;value - The bytes for displayName to set.public List<ReplicaInfo> getReplicasList()
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;getReplicasList in interface InstanceConfigOrBuilderpublic int getReplicasCount()
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;getReplicasCount in interface InstanceConfigOrBuilderpublic ReplicaInfo getReplicas(int index)
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;getReplicas in interface InstanceConfigOrBuilderpublic InstanceConfig.Builder setReplicas(int index, ReplicaInfo value)
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;public InstanceConfig.Builder setReplicas(int index, ReplicaInfo.Builder builderForValue)
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;public InstanceConfig.Builder addReplicas(ReplicaInfo value)
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;public InstanceConfig.Builder addReplicas(int index, ReplicaInfo value)
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;public InstanceConfig.Builder addReplicas(ReplicaInfo.Builder builderForValue)
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;public InstanceConfig.Builder addReplicas(int index, ReplicaInfo.Builder builderForValue)
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;public InstanceConfig.Builder addAllReplicas(Iterable<? extends ReplicaInfo> values)
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;public InstanceConfig.Builder clearReplicas()
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;public InstanceConfig.Builder removeReplicas(int index)
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;public ReplicaInfo.Builder getReplicasBuilder(int index)
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;public ReplicaInfoOrBuilder getReplicasOrBuilder(int index)
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;getReplicasOrBuilder in interface InstanceConfigOrBuilderpublic List<? extends ReplicaInfoOrBuilder> getReplicasOrBuilderList()
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;getReplicasOrBuilderList in interface InstanceConfigOrBuilderpublic ReplicaInfo.Builder addReplicasBuilder()
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;public ReplicaInfo.Builder addReplicasBuilder(int index)
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;public List<ReplicaInfo.Builder> getReplicasBuilderList()
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;public final InstanceConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>public final InstanceConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>Copyright © 2020 Google LLC. All rights reserved.