Package com.google.spanner.executor.v1
Class CreateCloudInstanceAction
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.executor.v1.CreateCloudInstanceAction
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CreateCloudInstanceActionOrBuilder,Serializable
public final class CreateCloudInstanceAction
extends com.google.protobuf.GeneratedMessageV3
implements CreateCloudInstanceActionOrBuilder
Action that creates a Cloud Spanner instance.Protobuf type
google.spanner.executor.v1.CreateCloudInstanceAction- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAction that creates a Cloud Spanner instance.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 Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) labels.booleanThe autoscaling config for this instance.The autoscaling config for this instance.static CreateCloudInstanceActionstatic final com.google.protobuf.Descriptors.DescriptorInstance config ID, e.g.com.google.protobuf.ByteStringInstance config ID, e.g.Cloud instance ID (not path), e.g.com.google.protobuf.ByteStringCloud instance ID (not path), e.g.Deprecated.intlabels.labels.getLabelsOrDefault(String key, String defaultValue) labels.getLabelsOrThrow(String key) labels.intNumber of nodes (processing_units should not be set or set to 0 if used).com.google.protobuf.Parser<CreateCloudInstanceAction>intNumber of processing units (node_count should be set to 0 if used).Cloud project ID, e.g.com.google.protobuf.ByteStringCloud project ID, e.g.intbooleanThe autoscaling config for this instance.inthashCode()booleanNumber of nodes (processing_units should not be set or set to 0 if used).booleanNumber of processing units (node_count should be set to 0 if used).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) final booleannewBuilder(CreateCloudInstanceAction prototype) protected CreateCloudInstanceAction.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static CreateCloudInstanceActionparseDelimitedFrom(InputStream input) static CreateCloudInstanceActionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CreateCloudInstanceActionparseFrom(byte[] data) static CreateCloudInstanceActionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CreateCloudInstanceActionparseFrom(com.google.protobuf.ByteString data) static CreateCloudInstanceActionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CreateCloudInstanceActionparseFrom(com.google.protobuf.CodedInputStream input) static CreateCloudInstanceActionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CreateCloudInstanceActionparseFrom(InputStream input) static CreateCloudInstanceActionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CreateCloudInstanceActionparseFrom(ByteBuffer data) static CreateCloudInstanceActionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CreateCloudInstanceAction>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
INSTANCE_ID_FIELD_NUMBER
public static final int INSTANCE_ID_FIELD_NUMBER- See Also:
-
PROJECT_ID_FIELD_NUMBER
public static final int PROJECT_ID_FIELD_NUMBER- See Also:
-
INSTANCE_CONFIG_ID_FIELD_NUMBER
public static final int INSTANCE_CONFIG_ID_FIELD_NUMBER- See Also:
-
NODE_COUNT_FIELD_NUMBER
public static final int NODE_COUNT_FIELD_NUMBER- See Also:
-
PROCESSING_UNITS_FIELD_NUMBER
public static final int PROCESSING_UNITS_FIELD_NUMBER- See Also:
-
AUTOSCALING_CONFIG_FIELD_NUMBER
public static final int AUTOSCALING_CONFIG_FIELD_NUMBER- See Also:
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getInstanceId
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;- Specified by:
getInstanceIdin interfaceCreateCloudInstanceActionOrBuilder- Returns:
- The instanceId.
-
getInstanceIdBytes
public com.google.protobuf.ByteString getInstanceIdBytes()Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;- Specified by:
getInstanceIdBytesin interfaceCreateCloudInstanceActionOrBuilder- Returns:
- The bytes for instanceId.
-
getProjectId
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;- Specified by:
getProjectIdin interfaceCreateCloudInstanceActionOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;- Specified by:
getProjectIdBytesin interfaceCreateCloudInstanceActionOrBuilder- Returns:
- The bytes for projectId.
-
getInstanceConfigId
Instance config ID, e.g. "test-config".
string instance_config_id = 3;- Specified by:
getInstanceConfigIdin interfaceCreateCloudInstanceActionOrBuilder- Returns:
- The instanceConfigId.
-
getInstanceConfigIdBytes
public com.google.protobuf.ByteString getInstanceConfigIdBytes()Instance config ID, e.g. "test-config".
string instance_config_id = 3;- Specified by:
getInstanceConfigIdBytesin interfaceCreateCloudInstanceActionOrBuilder- Returns:
- The bytes for instanceConfigId.
-
hasNodeCount
public boolean hasNodeCount()Number of nodes (processing_units should not be set or set to 0 if used).
optional int32 node_count = 4;- Specified by:
hasNodeCountin interfaceCreateCloudInstanceActionOrBuilder- Returns:
- Whether the nodeCount field is set.
-
getNodeCount
public int getNodeCount()Number of nodes (processing_units should not be set or set to 0 if used).
optional int32 node_count = 4;- Specified by:
getNodeCountin interfaceCreateCloudInstanceActionOrBuilder- Returns:
- The nodeCount.
-
hasProcessingUnits
public boolean hasProcessingUnits()Number of processing units (node_count should be set to 0 if used).
optional int32 processing_units = 6;- Specified by:
hasProcessingUnitsin interfaceCreateCloudInstanceActionOrBuilder- Returns:
- Whether the processingUnits field is set.
-
getProcessingUnits
public int getProcessingUnits()Number of processing units (node_count should be set to 0 if used).
optional int32 processing_units = 6;- Specified by:
getProcessingUnitsin interfaceCreateCloudInstanceActionOrBuilder- Returns:
- The processingUnits.
-
hasAutoscalingConfig
public boolean hasAutoscalingConfig()The autoscaling config for this instance. If non-empty, an autoscaling instance will be created (processing_units and node_count should be set to 0 if used).
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;- Specified by:
hasAutoscalingConfigin interfaceCreateCloudInstanceActionOrBuilder- Returns:
- Whether the autoscalingConfig field is set.
-
getAutoscalingConfig
The autoscaling config for this instance. If non-empty, an autoscaling instance will be created (processing_units and node_count should be set to 0 if used).
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;- Specified by:
getAutoscalingConfigin interfaceCreateCloudInstanceActionOrBuilder- Returns:
- The autoscalingConfig.
-
getAutoscalingConfigOrBuilder
The autoscaling config for this instance. If non-empty, an autoscaling instance will be created (processing_units and node_count should be set to 0 if used).
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;- Specified by:
getAutoscalingConfigOrBuilderin interfaceCreateCloudInstanceActionOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:CreateCloudInstanceActionOrBuilderlabels.
map<string, string> labels = 5;- Specified by:
getLabelsCountin interfaceCreateCloudInstanceActionOrBuilder
-
containsLabels
labels.
map<string, string> labels = 5;- Specified by:
containsLabelsin interfaceCreateCloudInstanceActionOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceCreateCloudInstanceActionOrBuilder
-
getLabelsMap
labels.
map<string, string> labels = 5;- Specified by:
getLabelsMapin interfaceCreateCloudInstanceActionOrBuilder
-
getLabelsOrDefault
labels.
map<string, string> labels = 5;- Specified by:
getLabelsOrDefaultin interfaceCreateCloudInstanceActionOrBuilder
-
getLabelsOrThrow
labels.
map<string, string> labels = 5;- Specified by:
getLabelsOrThrowin interfaceCreateCloudInstanceActionOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CreateCloudInstanceAction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CreateCloudInstanceAction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CreateCloudInstanceAction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CreateCloudInstanceAction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CreateCloudInstanceAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CreateCloudInstanceAction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CreateCloudInstanceAction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CreateCloudInstanceAction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CreateCloudInstanceAction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CreateCloudInstanceAction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CreateCloudInstanceAction.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-