Class InstanceConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.spanner.admin.instance.v1.InstanceConfig
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,InstanceConfigOrBuilder
,Serializable
public final class InstanceConfig extends com.google.protobuf.GeneratedMessageV3 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
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InstanceConfig.Builder
A possible configuration for a Cloud Spanner instance.static class
InstanceConfig.State
Indicates the current state of the instance config.static class
InstanceConfig.Type
The type of this configuration.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
BASE_CONFIG_FIELD_NUMBER
static int
CONFIG_TYPE_FIELD_NUMBER
static int
DISPLAY_NAME_FIELD_NUMBER
static int
ETAG_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
LEADER_OPTIONS_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
OPTIONAL_REPLICAS_FIELD_NUMBER
static int
RECONCILING_FIELD_NUMBER
static int
REPLICAS_FIELD_NUMBER
static int
STATE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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.boolean
equals(Object obj)
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.static InstanceConfig
getDefaultInstance()
InstanceConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
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.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.int
getOptionalReplicasCount()
Output only.List<ReplicaInfo>
getOptionalReplicasList()
Output only.ReplicaInfoOrBuilder
getOptionalReplicasOrBuilder(int index)
Output only.List<? extends ReplicaInfoOrBuilder>
getOptionalReplicasOrBuilderList()
Output only.com.google.protobuf.Parser<InstanceConfig>
getParserForType()
boolean
getReconciling()
Output only.ReplicaInfo
getReplicas(int index)
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.int
getSerializedSize()
InstanceConfig.State
getState()
Output only.int
getStateValue()
Output only.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static InstanceConfig.Builder
newBuilder()
static InstanceConfig.Builder
newBuilder(InstanceConfig prototype)
InstanceConfig.Builder
newBuilderForType()
protected InstanceConfig.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static InstanceConfig
parseDelimitedFrom(InputStream input)
static InstanceConfig
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static InstanceConfig
parseFrom(byte[] data)
static InstanceConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static InstanceConfig
parseFrom(com.google.protobuf.ByteString data)
static InstanceConfig
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static InstanceConfig
parseFrom(com.google.protobuf.CodedInputStream input)
static InstanceConfig
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static InstanceConfig
parseFrom(InputStream input)
static InstanceConfig
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static InstanceConfig
parseFrom(ByteBuffer data)
static InstanceConfig
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<InstanceConfig>
parser()
InstanceConfig.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONFIG_TYPE_FIELD_NUMBER
public static final int CONFIG_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REPLICAS_FIELD_NUMBER
public static final int REPLICAS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPTIONAL_REPLICAS_FIELD_NUMBER
public static final int OPTIONAL_REPLICAS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BASE_CONFIG_FIELD_NUMBER
public static final int BASE_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LEADER_OPTIONS_FIELD_NUMBER
public static final int LEADER_OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RECONCILING_FIELD_NUMBER
public static final int RECONCILING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
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.
-
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.
-
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.
-
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.
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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.
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static InstanceConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static InstanceConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static InstanceConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static InstanceConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static InstanceConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static InstanceConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public InstanceConfig.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static InstanceConfig.Builder newBuilder()
-
newBuilder
public static InstanceConfig.Builder newBuilder(InstanceConfig prototype)
-
toBuilder
public InstanceConfig.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected InstanceConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static InstanceConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<InstanceConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<InstanceConfig> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public InstanceConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-