Class InstanceConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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.Builder
addAllLeaderOptions(Iterable<String> values)
Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.InstanceConfig.Builder
addAllOptionalReplicas(Iterable<? extends ReplicaInfo> values)
Output only.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(com.google.protobuf.ByteString value)
Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.InstanceConfig.Builder
addOptionalReplicas(int index, ReplicaInfo value)
Output only.InstanceConfig.Builder
addOptionalReplicas(int index, ReplicaInfo.Builder builderForValue)
Output only.InstanceConfig.Builder
addOptionalReplicas(ReplicaInfo value)
Output only.InstanceConfig.Builder
addOptionalReplicas(ReplicaInfo.Builder builderForValue)
Output only.ReplicaInfo.Builder
addOptionalReplicasBuilder()
Output only.ReplicaInfo.Builder
addOptionalReplicasBuilder(int index)
Output only.InstanceConfig.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
InstanceConfig.Builder
addReplicas(int index, ReplicaInfo value)
The geographic placement of nodes in this instance configuration and their replication properties.InstanceConfig.Builder
addReplicas(int index, 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.InstanceConfig.Builder
addReplicas(ReplicaInfo.Builder builderForValue)
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
clearBaseConfig()
Base configuration name, e.g.InstanceConfig.Builder
clearConfigType()
Output only.InstanceConfig.Builder
clearDisplayName()
The name of this instance configuration as it appears in UIs.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.InstanceConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
InstanceConfig.Builder
clearLabels()
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(com.google.protobuf.Descriptors.OneofDescriptor oneof)
InstanceConfig.Builder
clearOptionalReplicas()
Output only.InstanceConfig.Builder
clearReconciling()
Output only.InstanceConfig.Builder
clearReplicas()
The geographic placement of nodes in this instance configuration and their replication properties.InstanceConfig.Builder
clearState()
Output only.InstanceConfig.Builder
clone()
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.String
getBaseConfig()
Base configuration name, e.g.com.google.protobuf.ByteString
getBaseConfigBytes()
Base configuration name, e.g.InstanceConfig.Type
getConfigType()
Output only.int
getConfigTypeValue()
Output only.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
getEtag()
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.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.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
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.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.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.String
getLeaderOptions(int index)
Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.com.google.protobuf.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.com.google.protobuf.ProtocolStringList
getLeaderOptionsList()
Allowed values of the "default_leader" schema option for databases in instances that use this instance configuration.Map<String,String>
getMutableLabels()
Deprecated.String
getName()
A unique identifier for the instance configuration.com.google.protobuf.ByteString
getNameBytes()
A unique identifier for the instance configuration.ReplicaInfo
getOptionalReplicas(int index)
Output only.ReplicaInfo.Builder
getOptionalReplicasBuilder(int index)
Output only.List<ReplicaInfo.Builder>
getOptionalReplicasBuilderList()
Output only.int
getOptionalReplicasCount()
Output only.List<ReplicaInfo>
getOptionalReplicasList()
Output only.ReplicaInfoOrBuilder
getOptionalReplicasOrBuilder(int index)
Output only.List<? extends ReplicaInfoOrBuilder>
getOptionalReplicasOrBuilderList()
Output only.boolean
getReconciling()
Output only.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.InstanceConfig.State
getState()
Output only.int
getStateValue()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
InstanceConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
InstanceConfig.Builder
mergeFrom(com.google.protobuf.Message other)
InstanceConfig.Builder
mergeFrom(InstanceConfig other)
InstanceConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
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.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.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.InstanceConfig.Builder
removeOptionalReplicas(int index)
Output only.InstanceConfig.Builder
removeReplicas(int index)
The geographic placement of nodes in this instance configuration and their replication properties.InstanceConfig.Builder
setBaseConfig(String value)
Base configuration name, e.g.InstanceConfig.Builder
setBaseConfigBytes(com.google.protobuf.ByteString value)
Base configuration name, e.g.InstanceConfig.Builder
setConfigType(InstanceConfig.Type value)
Output only.InstanceConfig.Builder
setConfigTypeValue(int value)
Output only.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
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.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.InstanceConfig.Builder
setField(com.google.protobuf.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(com.google.protobuf.ByteString value)
A unique identifier for the instance configuration.InstanceConfig.Builder
setOptionalReplicas(int index, ReplicaInfo value)
Output only.InstanceConfig.Builder
setOptionalReplicas(int index, ReplicaInfo.Builder builderForValue)
Output only.InstanceConfig.Builder
setReconciling(boolean value)
Output only.InstanceConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
InstanceConfig.Builder
setReplicas(int index, ReplicaInfo value)
The geographic placement of nodes in this instance configuration and their replication properties.InstanceConfig.Builder
setReplicas(int index, ReplicaInfo.Builder builderForValue)
The geographic placement of nodes in this instance configuration and their replication properties.InstanceConfig.Builder
setState(InstanceConfig.State value)
Output only.InstanceConfig.Builder
setStateValue(int value)
Output only.InstanceConfig.Builder
setUnknownFields(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
clear
public InstanceConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
getDefaultInstanceForType
public InstanceConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public InstanceConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InstanceConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InstanceConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
setField
public InstanceConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
clearField
public InstanceConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
clearOneof
public InstanceConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
setRepeatedField
public InstanceConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
addRepeatedField
public InstanceConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
mergeFrom
public InstanceConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<InstanceConfig.Builder>
-
mergeFrom
public InstanceConfig.Builder mergeFrom(InstanceConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
getDisplayName
in 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:
getDisplayNameBytes
in 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:
getConfigTypeValue
in 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:
getConfigType
in 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:
getReplicasList
in 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:
getReplicasCount
in 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:
getReplicas
in 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:
getReplicasOrBuilder
in 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:
getReplicasOrBuilderList
in 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:
getOptionalReplicasList
in 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:
getOptionalReplicasCount
in 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:
getOptionalReplicas
in 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:
getOptionalReplicasOrBuilder
in 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:
getOptionalReplicasOrBuilderList
in 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:
getBaseConfig
in 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:
getBaseConfigBytes
in 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:InstanceConfigOrBuilder
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:
getLabelsCount
in 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:
containsLabels
in interfaceInstanceConfigOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in 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:
getLabelsMap
in 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:
getLabelsOrDefault
in 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:
getLabelsOrThrow
in 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:
getEtag
in 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:
getEtagBytes
in 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:
getLeaderOptionsList
in 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:
getLeaderOptionsCount
in 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:
getLeaderOptions
in 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:
getLeaderOptionsBytes
in 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:
getReconciling
in 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:
getStateValue
in 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:
getState
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
mergeUnknownFields
public final InstanceConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<InstanceConfig.Builder>
-
-