public final class InstanceConfig extends GeneratedMessageV3 implements InstanceConfigOrBuilder
A possible configuration for a Cloud Spanner instance. Configurations define the geographic placement of nodes and their replication.Protobuf type
google.spanner.admin.instance.v1.InstanceConfig
Modifier and Type | Class and Description |
---|---|
static class |
InstanceConfig.Builder
A possible configuration for a Cloud Spanner instance.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
LEADER_OPTIONS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
REPLICAS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static InstanceConfig |
getDefaultInstance() |
InstanceConfig |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
String |
getDisplayName()
The name of this instance configuration as it appears in UIs.
|
ByteString |
getDisplayNameBytes()
The name of this instance configuration as it appears in UIs.
|
String |
getLeaderOptions(int index)
Allowed values of the “default_leader” schema option for databases in
instances that use this instance configuration.
|
ByteString |
getLeaderOptionsBytes(int index)
Allowed values of the “default_leader” schema option for databases in
instances that use this instance configuration.
|
int |
getLeaderOptionsCount()
Allowed values of the “default_leader” schema option for databases in
instances that use this instance configuration.
|
ProtocolStringList |
getLeaderOptionsList()
Allowed values of the “default_leader” schema option for databases in
instances that use this instance configuration.
|
String |
getName()
A unique identifier for the instance configuration.
|
ByteString |
getNameBytes()
A unique identifier for the instance configuration.
|
Parser<InstanceConfig> |
getParserForType() |
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() |
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static InstanceConfig.Builder |
newBuilder() |
static InstanceConfig.Builder |
newBuilder(InstanceConfig prototype) |
InstanceConfig.Builder |
newBuilderForType() |
protected InstanceConfig.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static InstanceConfig |
parseDelimitedFrom(InputStream input) |
static InstanceConfig |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static InstanceConfig |
parseFrom(byte[] data) |
static InstanceConfig |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static InstanceConfig |
parseFrom(ByteBuffer data) |
static InstanceConfig |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static InstanceConfig |
parseFrom(ByteString data) |
static InstanceConfig |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static InstanceConfig |
parseFrom(CodedInputStream input) |
static InstanceConfig |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static InstanceConfig |
parseFrom(InputStream input) |
static InstanceConfig |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<InstanceConfig> |
parser() |
InstanceConfig.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int REPLICAS_FIELD_NUMBER
public static final int LEADER_OPTIONS_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public String getName()
A unique identifier for the instance configuration. Values are of the form `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`
string name = 1;
getName
in interface InstanceConfigOrBuilder
public ByteString getNameBytes()
A unique identifier for the instance configuration. Values are of the form `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`
string name = 1;
getNameBytes
in interface InstanceConfigOrBuilder
public String getDisplayName()
The name of this instance configuration as it appears in UIs.
string display_name = 2;
getDisplayName
in interface InstanceConfigOrBuilder
public ByteString getDisplayNameBytes()
The name of this instance configuration as it appears in UIs.
string display_name = 2;
getDisplayNameBytes
in interface InstanceConfigOrBuilder
public List<ReplicaInfo> getReplicasList()
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
getReplicasList
in interface InstanceConfigOrBuilder
public List<? extends ReplicaInfoOrBuilder> getReplicasOrBuilderList()
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
getReplicasOrBuilderList
in interface InstanceConfigOrBuilder
public int getReplicasCount()
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
getReplicasCount
in interface InstanceConfigOrBuilder
public ReplicaInfo getReplicas(int index)
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
getReplicas
in interface InstanceConfigOrBuilder
public ReplicaInfoOrBuilder getReplicasOrBuilder(int index)
The geographic placement of nodes in this instance configuration and their replication properties.
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
getReplicasOrBuilder
in interface InstanceConfigOrBuilder
public ProtocolStringList getLeaderOptionsList()
Allowed values of the “default_leader” schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;
getLeaderOptionsList
in interface InstanceConfigOrBuilder
public int getLeaderOptionsCount()
Allowed values of the “default_leader” schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;
getLeaderOptionsCount
in interface InstanceConfigOrBuilder
public String getLeaderOptions(int index)
Allowed values of the “default_leader” schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;
getLeaderOptions
in interface InstanceConfigOrBuilder
index
- The index of the element to return.public ByteString getLeaderOptionsBytes(int index)
Allowed values of the “default_leader” schema option for databases in instances that use this instance configuration.
repeated string leader_options = 4;
getLeaderOptionsBytes
in interface InstanceConfigOrBuilder
index
- The index of the value to return.public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static InstanceConfig parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InstanceConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InstanceConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InstanceConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InstanceConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InstanceConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static InstanceConfig parseFrom(InputStream input) throws IOException
IOException
public static InstanceConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static InstanceConfig parseDelimitedFrom(InputStream input) throws IOException
IOException
public static InstanceConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static InstanceConfig parseFrom(CodedInputStream input) throws IOException
IOException
public static InstanceConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public InstanceConfig.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static InstanceConfig.Builder newBuilder()
public static InstanceConfig.Builder newBuilder(InstanceConfig prototype)
public InstanceConfig.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected InstanceConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static InstanceConfig getDefaultInstance()
public static Parser<InstanceConfig> parser()
public Parser<InstanceConfig> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public InstanceConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.