Class InstanceConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
- com.google.spanner.admin.instance.v1.InstanceConfig.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,InstanceConfigOrBuilder,Cloneable
- Enclosing class:
- InstanceConfig
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 typegoogle.spanner.admin.instance.v1.InstanceConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InstanceConfig.BuilderaddAllLeaderOptions(Iterable<String> values)Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.InstanceConfig.BuilderaddAllOptionalReplicas(Iterable<? extends ReplicaInfo> values)Output only.InstanceConfig.BuilderaddAllReplicas(Iterable<? extends ReplicaInfo> values)The geographic placement of nodes in this instance configuration and their replication properties.InstanceConfig.BuilderaddLeaderOptions(String value)Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.InstanceConfig.BuilderaddLeaderOptionsBytes(com.google.protobuf.ByteString value)Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.InstanceConfig.BuilderaddOptionalReplicas(int index, ReplicaInfo value)Output only.InstanceConfig.BuilderaddOptionalReplicas(int index, ReplicaInfo.Builder builderForValue)Output only.InstanceConfig.BuilderaddOptionalReplicas(ReplicaInfo value)Output only.InstanceConfig.BuilderaddOptionalReplicas(ReplicaInfo.Builder builderForValue)Output only.ReplicaInfo.BuilderaddOptionalReplicasBuilder()Output only.ReplicaInfo.BuilderaddOptionalReplicasBuilder(int index)Output only.InstanceConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)InstanceConfig.BuilderaddReplicas(int index, ReplicaInfo value)The geographic placement of nodes in this instance configuration and their replication properties.InstanceConfig.BuilderaddReplicas(int index, ReplicaInfo.Builder builderForValue)The geographic placement of nodes in this instance configuration and their replication properties.InstanceConfig.BuilderaddReplicas(ReplicaInfo value)The geographic placement of nodes in this instance configuration and their replication properties.InstanceConfig.BuilderaddReplicas(ReplicaInfo.Builder builderForValue)The geographic placement of nodes in this instance configuration and their replication properties.ReplicaInfo.BuilderaddReplicasBuilder()The geographic placement of nodes in this instance configuration and their replication properties.ReplicaInfo.BuilderaddReplicasBuilder(int index)The geographic placement of nodes in this instance configuration and their replication properties.InstanceConfigbuild()InstanceConfigbuildPartial()InstanceConfig.Builderclear()InstanceConfig.BuilderclearBaseConfig()Base configuration name, e.g.InstanceConfig.BuilderclearConfigType()Output only.InstanceConfig.BuilderclearDisplayName()The name of this instance configuration as it appears in UIs.InstanceConfig.BuilderclearEtag()etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a instance config from overwriting each other.InstanceConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)InstanceConfig.BuilderclearLabels()InstanceConfig.BuilderclearLeaderOptions()Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.InstanceConfig.BuilderclearName()A unique identifier for the instance configuration.InstanceConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)InstanceConfig.BuilderclearOptionalReplicas()Output only.InstanceConfig.BuilderclearReconciling()Output only.InstanceConfig.BuilderclearReplicas()The geographic placement of nodes in this instance configuration and their replication properties.InstanceConfig.BuilderclearState()Output only.InstanceConfig.Builderclone()booleancontainsLabels(String key)Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies.StringgetBaseConfig()Base configuration name, e.g.com.google.protobuf.ByteStringgetBaseConfigBytes()Base configuration name, e.g.InstanceConfig.TypegetConfigType()Output only.intgetConfigTypeValue()Output only.InstanceConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()The name of this instance configuration as it appears in UIs.com.google.protobuf.ByteStringgetDisplayNameBytes()The name of this instance configuration as it appears in UIs.StringgetEtag()etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a instance config from overwriting each other.com.google.protobuf.ByteStringgetEtagBytes()etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a instance config from overwriting each other.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies.Map<String,String>getLabelsMap()Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies.StringgetLabelsOrDefault(String key, String defaultValue)Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies.StringgetLabelsOrThrow(String key)Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies.StringgetLeaderOptions(int index)Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.com.google.protobuf.ByteStringgetLeaderOptionsBytes(int index)Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.intgetLeaderOptionsCount()Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.com.google.protobuf.ProtocolStringListgetLeaderOptionsList()Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.Map<String,String>getMutableLabels()Deprecated.StringgetName()A unique identifier for the instance configuration.com.google.protobuf.ByteStringgetNameBytes()A unique identifier for the instance configuration.ReplicaInfogetOptionalReplicas(int index)Output only.ReplicaInfo.BuildergetOptionalReplicasBuilder(int index)Output only.List<ReplicaInfo.Builder>getOptionalReplicasBuilderList()Output only.intgetOptionalReplicasCount()Output only.List<ReplicaInfo>getOptionalReplicasList()Output only.ReplicaInfoOrBuildergetOptionalReplicasOrBuilder(int index)Output only.List<? extends ReplicaInfoOrBuilder>getOptionalReplicasOrBuilderList()Output only.booleangetReconciling()Output only.ReplicaInfogetReplicas(int index)The geographic placement of nodes in this instance configuration and their replication properties.ReplicaInfo.BuildergetReplicasBuilder(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.intgetReplicasCount()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.ReplicaInfoOrBuildergetReplicasOrBuilder(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.InstanceConfig.StategetState()Output only.intgetStateValue()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()InstanceConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)InstanceConfig.BuildermergeFrom(com.google.protobuf.Message other)InstanceConfig.BuildermergeFrom(InstanceConfig other)InstanceConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)InstanceConfig.BuilderputAllLabels(Map<String,String> values)Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies.InstanceConfig.BuilderputLabels(String key, String value)Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies.InstanceConfig.BuilderremoveLabels(String key)Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies.InstanceConfig.BuilderremoveOptionalReplicas(int index)Output only.InstanceConfig.BuilderremoveReplicas(int index)The geographic placement of nodes in this instance configuration and their replication properties.InstanceConfig.BuildersetBaseConfig(String value)Base configuration name, e.g.InstanceConfig.BuildersetBaseConfigBytes(com.google.protobuf.ByteString value)Base configuration name, e.g.InstanceConfig.BuildersetConfigType(InstanceConfig.Type value)Output only.InstanceConfig.BuildersetConfigTypeValue(int value)Output only.InstanceConfig.BuildersetDisplayName(String value)The name of this instance configuration as it appears in UIs.InstanceConfig.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)The name of this instance configuration as it appears in UIs.InstanceConfig.BuildersetEtag(String value)etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a instance config from overwriting each other.InstanceConfig.BuildersetEtagBytes(com.google.protobuf.ByteString value)etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a instance config from overwriting each other.InstanceConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)InstanceConfig.BuildersetLeaderOptions(int index, String value)Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.InstanceConfig.BuildersetName(String value)A unique identifier for the instance configuration.InstanceConfig.BuildersetNameBytes(com.google.protobuf.ByteString value)A unique identifier for the instance configuration.InstanceConfig.BuildersetOptionalReplicas(int index, ReplicaInfo value)Output only.InstanceConfig.BuildersetOptionalReplicas(int index, ReplicaInfo.Builder builderForValue)Output only.InstanceConfig.BuildersetReconciling(boolean value)Output only.InstanceConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)InstanceConfig.BuildersetReplicas(int index, ReplicaInfo value)The geographic placement of nodes in this instance configuration and their replication properties.InstanceConfig.BuildersetReplicas(int index, ReplicaInfo.Builder builderForValue)The geographic placement of nodes in this instance configuration and their replication properties.InstanceConfig.BuildersetState(InstanceConfig.State value)Output only.InstanceConfig.BuildersetStateValue(int value)Output only.InstanceConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
clear
public InstanceConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
getDefaultInstanceForType
public InstanceConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public InstanceConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InstanceConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InstanceConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
setField
public InstanceConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
clearField
public InstanceConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
clearOneof
public InstanceConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
setRepeatedField
public InstanceConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
addRepeatedField
public InstanceConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
mergeFrom
public InstanceConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceConfig.Builder>
-
mergeFrom
public InstanceConfig.Builder mergeFrom(InstanceConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
mergeFrom
public InstanceConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InstanceConfig.Builder>- Throws:
IOException
-
getName
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;- Specified by:
getNamein interfaceInstanceConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfaceInstanceConfigOrBuilder- Returns:
- The bytes for name.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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;- Returns:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
public String getDisplayName()
The name of this instance configuration as it appears in UIs.
string display_name = 2;- Specified by:
getDisplayNamein interfaceInstanceConfigOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
The name of this instance configuration as it appears in UIs.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceInstanceConfigOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public InstanceConfig.Builder setDisplayName(String value)
The name of this instance configuration as it appears in UIs.
string display_name = 2;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public InstanceConfig.Builder clearDisplayName()
The name of this instance configuration as it appears in UIs.
string display_name = 2;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public InstanceConfig.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
The name of this instance configuration as it appears in UIs.
string display_name = 2;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getConfigTypeValue
public int getConfigTypeValue()
Output only. Whether this instance config is a Google or User Managed Configuration.
.google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConfigTypeValuein interfaceInstanceConfigOrBuilder- Returns:
- The enum numeric value on the wire for configType.
-
setConfigTypeValue
public InstanceConfig.Builder setConfigTypeValue(int value)
Output only. Whether this instance config is a Google or User Managed Configuration.
.google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for configType to set.- Returns:
- This builder for chaining.
-
getConfigType
public InstanceConfig.Type getConfigType()
Output only. Whether this instance config is a Google or User Managed Configuration.
.google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConfigTypein interfaceInstanceConfigOrBuilder- Returns:
- The configType.
-
setConfigType
public InstanceConfig.Builder setConfigType(InstanceConfig.Type value)
Output only. Whether this instance config is a Google or User Managed Configuration.
.google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The configType to set.- Returns:
- This builder for chaining.
-
clearConfigType
public InstanceConfig.Builder clearConfigType()
Output only. Whether this instance config is a Google or User Managed Configuration.
.google.spanner.admin.instance.v1.InstanceConfig.Type config_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getReplicasList
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;- Specified by:
getReplicasListin interfaceInstanceConfigOrBuilder
-
getReplicasCount
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;- Specified by:
getReplicasCountin interfaceInstanceConfigOrBuilder
-
getReplicas
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;- Specified by:
getReplicasin interfaceInstanceConfigOrBuilder
-
setReplicas
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;
-
setReplicas
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;
-
addReplicas
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;
-
addReplicas
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;
-
addReplicas
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;
-
addReplicas
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;
-
addAllReplicas
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;
-
clearReplicas
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;
-
removeReplicas
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;
-
getReplicasBuilder
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;
-
getReplicasOrBuilder
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;- Specified by:
getReplicasOrBuilderin interfaceInstanceConfigOrBuilder
-
getReplicasOrBuilderList
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;- Specified by:
getReplicasOrBuilderListin interfaceInstanceConfigOrBuilder
-
addReplicasBuilder
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;
-
addReplicasBuilder
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;
-
getReplicasBuilderList
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;
-
getOptionalReplicasList
public List<ReplicaInfo> getOptionalReplicasList()
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOptionalReplicasListin interfaceInstanceConfigOrBuilder
-
getOptionalReplicasCount
public int getOptionalReplicasCount()
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOptionalReplicasCountin interfaceInstanceConfigOrBuilder
-
getOptionalReplicas
public ReplicaInfo getOptionalReplicas(int index)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOptionalReplicasin interfaceInstanceConfigOrBuilder
-
setOptionalReplicas
public InstanceConfig.Builder setOptionalReplicas(int index, ReplicaInfo value)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setOptionalReplicas
public InstanceConfig.Builder setOptionalReplicas(int index, ReplicaInfo.Builder builderForValue)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addOptionalReplicas
public InstanceConfig.Builder addOptionalReplicas(ReplicaInfo value)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addOptionalReplicas
public InstanceConfig.Builder addOptionalReplicas(int index, ReplicaInfo value)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addOptionalReplicas
public InstanceConfig.Builder addOptionalReplicas(ReplicaInfo.Builder builderForValue)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addOptionalReplicas
public InstanceConfig.Builder addOptionalReplicas(int index, ReplicaInfo.Builder builderForValue)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addAllOptionalReplicas
public InstanceConfig.Builder addAllOptionalReplicas(Iterable<? extends ReplicaInfo> values)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearOptionalReplicas
public InstanceConfig.Builder clearOptionalReplicas()
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
removeOptionalReplicas
public InstanceConfig.Builder removeOptionalReplicas(int index)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getOptionalReplicasBuilder
public ReplicaInfo.Builder getOptionalReplicasBuilder(int index)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getOptionalReplicasOrBuilder
public ReplicaInfoOrBuilder getOptionalReplicasOrBuilder(int index)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOptionalReplicasOrBuilderin interfaceInstanceConfigOrBuilder
-
getOptionalReplicasOrBuilderList
public List<? extends ReplicaInfoOrBuilder> getOptionalReplicasOrBuilderList()
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getOptionalReplicasOrBuilderListin interfaceInstanceConfigOrBuilder
-
addOptionalReplicasBuilder
public ReplicaInfo.Builder addOptionalReplicasBuilder()
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
addOptionalReplicasBuilder
public ReplicaInfo.Builder addOptionalReplicasBuilder(int index)
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getOptionalReplicasBuilderList
public List<ReplicaInfo.Builder> getOptionalReplicasBuilderList()
Output only. The available optional replicas to choose from for user managed configurations. Populated for Google managed configurations.
repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getBaseConfig
public String getBaseConfig()
Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3, based on which this configuration is created. Only set for user managed configurations. `base_config` must refer to a configuration of type GOOGLE_MANAGED in the same project as this configuration.
string base_config = 7 [(.google.api.resource_reference) = { ... }- Specified by:
getBaseConfigin interfaceInstanceConfigOrBuilder- Returns:
- The baseConfig.
-
getBaseConfigBytes
public com.google.protobuf.ByteString getBaseConfigBytes()
Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3, based on which this configuration is created. Only set for user managed configurations. `base_config` must refer to a configuration of type GOOGLE_MANAGED in the same project as this configuration.
string base_config = 7 [(.google.api.resource_reference) = { ... }- Specified by:
getBaseConfigBytesin interfaceInstanceConfigOrBuilder- Returns:
- The bytes for baseConfig.
-
setBaseConfig
public InstanceConfig.Builder setBaseConfig(String value)
Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3, based on which this configuration is created. Only set for user managed configurations. `base_config` must refer to a configuration of type GOOGLE_MANAGED in the same project as this configuration.
string base_config = 7 [(.google.api.resource_reference) = { ... }- Parameters:
value- The baseConfig to set.- Returns:
- This builder for chaining.
-
clearBaseConfig
public InstanceConfig.Builder clearBaseConfig()
Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3, based on which this configuration is created. Only set for user managed configurations. `base_config` must refer to a configuration of type GOOGLE_MANAGED in the same project as this configuration.
string base_config = 7 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setBaseConfigBytes
public InstanceConfig.Builder setBaseConfigBytes(com.google.protobuf.ByteString value)
Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3, based on which this configuration is created. Only set for user managed configurations. `base_config` must refer to a configuration of type GOOGLE_MANAGED in the same project as this configuration.
string base_config = 7 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for baseConfig to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:InstanceConfigOrBuilderCloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. Cloud Labels can be used to filter collections of resources. They can be used to control how resource metrics are aggregated. And they can be used as arguments to policy management rules (e.g. route, firewall, load balancing, etc.). * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z][a-z0-9_-]{0,62}`. * Label values must be between 0 and 63 characters long and must conform to the regular expression `[a-z0-9_-]{0,63}`. * No more than 64 labels can be associated with a given resource. See https://goo.gl/xmQnxf for more information on and examples of labels. If you plan to use labels in your own code, please note that additional characters may be allowed in the future. Therefore, you are advised to use an internal label representation, such as JSON, which doesn't rely upon specific characters being disallowed. For example, representing labels as the string: name + "_" + value would prove problematic if we were to allow "_" in a future release.map<string, string> labels = 8;- Specified by:
getLabelsCountin interfaceInstanceConfigOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. Cloud Labels can be used to filter collections of resources. They can be used to control how resource metrics are aggregated. And they can be used as arguments to policy management rules (e.g. route, firewall, load balancing, etc.). * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z][a-z0-9_-]{0,62}`. * Label values must be between 0 and 63 characters long and must conform to the regular expression `[a-z0-9_-]{0,63}`. * No more than 64 labels can be associated with a given resource. See https://goo.gl/xmQnxf for more information on and examples of labels. If you plan to use labels in your own code, please note that additional characters may be allowed in the future. Therefore, you are advised to use an internal label representation, such as JSON, which doesn't rely upon specific characters being disallowed. For example, representing labels as the string: name + "_" + value would prove problematic if we were to allow "_" in a future release.map<string, string> labels = 8;- Specified by:
containsLabelsin interfaceInstanceConfigOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceInstanceConfigOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. Cloud Labels can be used to filter collections of resources. They can be used to control how resource metrics are aggregated. And they can be used as arguments to policy management rules (e.g. route, firewall, load balancing, etc.). * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z][a-z0-9_-]{0,62}`. * Label values must be between 0 and 63 characters long and must conform to the regular expression `[a-z0-9_-]{0,63}`. * No more than 64 labels can be associated with a given resource. See https://goo.gl/xmQnxf for more information on and examples of labels. If you plan to use labels in your own code, please note that additional characters may be allowed in the future. Therefore, you are advised to use an internal label representation, such as JSON, which doesn't rely upon specific characters being disallowed. For example, representing labels as the string: name + "_" + value would prove problematic if we were to allow "_" in a future release.map<string, string> labels = 8;- Specified by:
getLabelsMapin interfaceInstanceConfigOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. Cloud Labels can be used to filter collections of resources. They can be used to control how resource metrics are aggregated. And they can be used as arguments to policy management rules (e.g. route, firewall, load balancing, etc.). * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z][a-z0-9_-]{0,62}`. * Label values must be between 0 and 63 characters long and must conform to the regular expression `[a-z0-9_-]{0,63}`. * No more than 64 labels can be associated with a given resource. See https://goo.gl/xmQnxf for more information on and examples of labels. If you plan to use labels in your own code, please note that additional characters may be allowed in the future. Therefore, you are advised to use an internal label representation, such as JSON, which doesn't rely upon specific characters being disallowed. For example, representing labels as the string: name + "_" + value would prove problematic if we were to allow "_" in a future release.map<string, string> labels = 8;- Specified by:
getLabelsOrDefaultin interfaceInstanceConfigOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. Cloud Labels can be used to filter collections of resources. They can be used to control how resource metrics are aggregated. And they can be used as arguments to policy management rules (e.g. route, firewall, load balancing, etc.). * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z][a-z0-9_-]{0,62}`. * Label values must be between 0 and 63 characters long and must conform to the regular expression `[a-z0-9_-]{0,63}`. * No more than 64 labels can be associated with a given resource. See https://goo.gl/xmQnxf for more information on and examples of labels. If you plan to use labels in your own code, please note that additional characters may be allowed in the future. Therefore, you are advised to use an internal label representation, such as JSON, which doesn't rely upon specific characters being disallowed. For example, representing labels as the string: name + "_" + value would prove problematic if we were to allow "_" in a future release.map<string, string> labels = 8;- Specified by:
getLabelsOrThrowin interfaceInstanceConfigOrBuilder
-
clearLabels
public InstanceConfig.Builder clearLabels()
-
removeLabels
public InstanceConfig.Builder removeLabels(String key)
Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. Cloud Labels can be used to filter collections of resources. They can be used to control how resource metrics are aggregated. And they can be used as arguments to policy management rules (e.g. route, firewall, load balancing, etc.). * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z][a-z0-9_-]{0,62}`. * Label values must be between 0 and 63 characters long and must conform to the regular expression `[a-z0-9_-]{0,63}`. * No more than 64 labels can be associated with a given resource. See https://goo.gl/xmQnxf for more information on and examples of labels. If you plan to use labels in your own code, please note that additional characters may be allowed in the future. Therefore, you are advised to use an internal label representation, such as JSON, which doesn't rely upon specific characters being disallowed. For example, representing labels as the string: name + "_" + value would prove problematic if we were to allow "_" in a future release.map<string, string> labels = 8;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public InstanceConfig.Builder putLabels(String key, String value)
Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. Cloud Labels can be used to filter collections of resources. They can be used to control how resource metrics are aggregated. And they can be used as arguments to policy management rules (e.g. route, firewall, load balancing, etc.). * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z][a-z0-9_-]{0,62}`. * Label values must be between 0 and 63 characters long and must conform to the regular expression `[a-z0-9_-]{0,63}`. * No more than 64 labels can be associated with a given resource. See https://goo.gl/xmQnxf for more information on and examples of labels. If you plan to use labels in your own code, please note that additional characters may be allowed in the future. Therefore, you are advised to use an internal label representation, such as JSON, which doesn't rely upon specific characters being disallowed. For example, representing labels as the string: name + "_" + value would prove problematic if we were to allow "_" in a future release.map<string, string> labels = 8;
-
putAllLabels
public InstanceConfig.Builder putAllLabels(Map<String,String> values)
Cloud Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. Cloud Labels can be used to filter collections of resources. They can be used to control how resource metrics are aggregated. And they can be used as arguments to policy management rules (e.g. route, firewall, load balancing, etc.). * Label keys must be between 1 and 63 characters long and must conform to the following regular expression: `[a-z][a-z0-9_-]{0,62}`. * Label values must be between 0 and 63 characters long and must conform to the regular expression `[a-z0-9_-]{0,63}`. * No more than 64 labels can be associated with a given resource. See https://goo.gl/xmQnxf for more information on and examples of labels. If you plan to use labels in your own code, please note that additional characters may be allowed in the future. Therefore, you are advised to use an internal label representation, such as JSON, which doesn't rely upon specific characters being disallowed. For example, representing labels as the string: name + "_" + value would prove problematic if we were to allow "_" in a future release.map<string, string> labels = 8;
-
getEtag
public String getEtag()
etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a instance config from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform instance config updates in order to avoid race conditions: An etag is returned in the response which contains instance configs, and systems are expected to put that etag in the request to update instance config to ensure that their change will be applied to the same version of the instance config. If no etag is provided in the call to update instance config, then the existing instance config is overwritten blindly.
string etag = 9;- Specified by:
getEtagin interfaceInstanceConfigOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()
etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a instance config from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform instance config updates in order to avoid race conditions: An etag is returned in the response which contains instance configs, and systems are expected to put that etag in the request to update instance config to ensure that their change will be applied to the same version of the instance config. If no etag is provided in the call to update instance config, then the existing instance config is overwritten blindly.
string etag = 9;- Specified by:
getEtagBytesin interfaceInstanceConfigOrBuilder- Returns:
- The bytes for etag.
-
setEtag
public InstanceConfig.Builder setEtag(String value)
etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a instance config from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform instance config updates in order to avoid race conditions: An etag is returned in the response which contains instance configs, and systems are expected to put that etag in the request to update instance config to ensure that their change will be applied to the same version of the instance config. If no etag is provided in the call to update instance config, then the existing instance config is overwritten blindly.
string etag = 9;- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
public InstanceConfig.Builder clearEtag()
etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a instance config from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform instance config updates in order to avoid race conditions: An etag is returned in the response which contains instance configs, and systems are expected to put that etag in the request to update instance config to ensure that their change will be applied to the same version of the instance config. If no etag is provided in the call to update instance config, then the existing instance config is overwritten blindly.
string etag = 9;- Returns:
- This builder for chaining.
-
setEtagBytes
public InstanceConfig.Builder setEtagBytes(com.google.protobuf.ByteString value)
etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a instance config from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform instance config updates in order to avoid race conditions: An etag is returned in the response which contains instance configs, and systems are expected to put that etag in the request to update instance config to ensure that their change will be applied to the same version of the instance config. If no etag is provided in the call to update instance config, then the existing instance config is overwritten blindly.
string etag = 9;- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-
getLeaderOptionsList
public com.google.protobuf.ProtocolStringList getLeaderOptionsList()
Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;- Specified by:
getLeaderOptionsListin interfaceInstanceConfigOrBuilder- Returns:
- A list containing the leaderOptions.
-
getLeaderOptionsCount
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;- Specified by:
getLeaderOptionsCountin interfaceInstanceConfigOrBuilder- Returns:
- The count of leaderOptions.
-
getLeaderOptions
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;- Specified by:
getLeaderOptionsin interfaceInstanceConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The leaderOptions at the given index.
-
getLeaderOptionsBytes
public com.google.protobuf.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;- Specified by:
getLeaderOptionsBytesin interfaceInstanceConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the leaderOptions at the given index.
-
setLeaderOptions
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;- Parameters:
index- The index to set the value at.value- The leaderOptions to set.- Returns:
- This builder for chaining.
-
addLeaderOptions
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;- Parameters:
value- The leaderOptions to add.- Returns:
- This builder for chaining.
-
addAllLeaderOptions
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;- Parameters:
values- The leaderOptions to add.- Returns:
- This builder for chaining.
-
clearLeaderOptions
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;- Returns:
- This builder for chaining.
-
addLeaderOptionsBytes
public InstanceConfig.Builder addLeaderOptionsBytes(com.google.protobuf.ByteString value)
Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;- Parameters:
value- The bytes of the leaderOptions to add.- Returns:
- This builder for chaining.
-
getReconciling
public boolean getReconciling()
Output only. If true, the instance config is being created or updated. If false, there are no ongoing operations for the instance config.
bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getReconcilingin interfaceInstanceConfigOrBuilder- Returns:
- The reconciling.
-
setReconciling
public InstanceConfig.Builder setReconciling(boolean value)
Output only. If true, the instance config is being created or updated. If false, there are no ongoing operations for the instance config.
bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The reconciling to set.- Returns:
- This builder for chaining.
-
clearReconciling
public InstanceConfig.Builder clearReconciling()
Output only. If true, the instance config is being created or updated. If false, there are no ongoing operations for the instance config.
bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()
Output only. The current instance config state.
.google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceInstanceConfigOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public InstanceConfig.Builder setStateValue(int value)
Output only. The current instance config state.
.google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public InstanceConfig.State getState()
Output only. The current instance config state.
.google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceInstanceConfigOrBuilder- Returns:
- The state.
-
setState
public InstanceConfig.Builder setState(InstanceConfig.State value)
Output only. The current instance config state.
.google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
public InstanceConfig.Builder clearState()
Output only. The current instance config state.
.google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUnknownFields
public final InstanceConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
mergeUnknownFields
public final InstanceConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
-