public static final class InstanceConfig.Builder extends 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 |
addAllLeaderOptions(Iterable<String> values)
Allowed values of the “default_leader” schema option for databases in
instances that use this instance configuration.
|
InstanceConfig.Builder |
addAllReplicas(Iterable<? extends ReplicaInfo> values)
The geographic placement of nodes in this instance configuration and their
replication properties.
|
InstanceConfig.Builder |
addLeaderOptions(String value)
Allowed values of the “default_leader” schema option for databases in
instances that use this instance configuration.
|
InstanceConfig.Builder |
addLeaderOptionsBytes(ByteString value)
Allowed values of the “default_leader” schema option for databases in
instances that use this instance configuration.
|
InstanceConfig.Builder |
addRepeatedField(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(Descriptors.FieldDescriptor field) |
InstanceConfig.Builder |
clearLeaderOptions()
Allowed values of the “default_leader” schema option for databases in
instances that use this instance configuration.
|
InstanceConfig.Builder |
clearName()
A unique identifier for the instance configuration.
|
InstanceConfig.Builder |
clearOneof(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 Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
String |
getDisplayName()
The name of this instance configuration as it appears in UIs.
|
ByteString |
getDisplayNameBytes()
The name of this instance configuration as it appears in UIs.
|
String |
getLeaderOptions(int index)
Allowed values of the “default_leader” schema option for databases in
instances that use this instance configuration.
|
ByteString |
getLeaderOptionsBytes(int index)
Allowed values of the “default_leader” schema option for databases in
instances that use this instance configuration.
|
int |
getLeaderOptionsCount()
Allowed values of the “default_leader” schema option for databases in
instances that use this instance configuration.
|
ProtocolStringList |
getLeaderOptionsList()
Allowed values of the “default_leader” schema option for databases in
instances that use this instance configuration.
|
String |
getName()
A unique identifier for the instance configuration.
|
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
InstanceConfig.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
InstanceConfig.Builder |
mergeFrom(InstanceConfig other) |
InstanceConfig.Builder |
mergeFrom(Message other) |
InstanceConfig.Builder |
mergeUnknownFields(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(ByteString value)
The name of this instance configuration as it appears in UIs.
|
InstanceConfig.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
InstanceConfig.Builder |
setLeaderOptions(int index,
String value)
Allowed values of the “default_leader” schema option for databases in
instances that use this instance configuration.
|
InstanceConfig.Builder |
setName(String value)
A unique identifier for the instance configuration.
|
InstanceConfig.Builder |
setNameBytes(ByteString value)
A unique identifier for the instance configuration.
|
InstanceConfig.Builder |
setRepeatedField(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(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<InstanceConfig.Builder>
public InstanceConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<InstanceConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<InstanceConfig.Builder>
public InstanceConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public InstanceConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public InstanceConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public InstanceConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<InstanceConfig.Builder>
public InstanceConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<InstanceConfig.Builder>
public InstanceConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<InstanceConfig.Builder>
public InstanceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<InstanceConfig.Builder>
public InstanceConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<InstanceConfig.Builder>
public InstanceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<InstanceConfig.Builder>
public InstanceConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<InstanceConfig.Builder>
public InstanceConfig.Builder mergeFrom(InstanceConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<InstanceConfig.Builder>
public InstanceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<InstanceConfig.Builder>
IOException
public 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 InstanceConfigOrBuilder
public 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 InstanceConfigOrBuilder
public 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(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 InstanceConfigOrBuilder
public ByteString getDisplayNameBytes()
The name of this instance configuration as it appears in UIs.
string display_name = 2;
getDisplayNameBytes
in interface InstanceConfigOrBuilder
public 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(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 InstanceConfigOrBuilder
public 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 InstanceConfigOrBuilder
public 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 InstanceConfigOrBuilder
public 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 InstanceConfigOrBuilder
public 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 InstanceConfigOrBuilder
public 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 ProtocolStringList getLeaderOptionsList()
Allowed values of the “default_leader” schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;
getLeaderOptionsList
in interface InstanceConfigOrBuilder
public int getLeaderOptionsCount()
Allowed values of the “default_leader” schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;
getLeaderOptionsCount
in interface InstanceConfigOrBuilder
public String getLeaderOptions(int index)
Allowed values of the “default_leader” schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;
getLeaderOptions
in interface InstanceConfigOrBuilder
index
- The index of the element to return.public ByteString getLeaderOptionsBytes(int index)
Allowed values of the “default_leader” schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;
getLeaderOptionsBytes
in interface InstanceConfigOrBuilder
index
- The index of the value to return.public InstanceConfig.Builder setLeaderOptions(int index, String value)
Allowed values of the “default_leader” schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;
index
- The index to set the value at.value
- The leaderOptions to set.public InstanceConfig.Builder addLeaderOptions(String value)
Allowed values of the “default_leader” schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;
value
- The leaderOptions to add.public InstanceConfig.Builder addAllLeaderOptions(Iterable<String> values)
Allowed values of the “default_leader” schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;
values
- The leaderOptions to add.public InstanceConfig.Builder clearLeaderOptions()
Allowed values of the “default_leader” schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;
public InstanceConfig.Builder addLeaderOptionsBytes(ByteString value)
Allowed values of the “default_leader” schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;
value
- The bytes of the leaderOptions to add.public final InstanceConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<InstanceConfig.Builder>
public final InstanceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<InstanceConfig.Builder>
Copyright © 2022 Google LLC. All rights reserved.