Package com.google.spanner.executor.v1
Class UpdateCloudInstanceAction
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.executor.v1.UpdateCloudInstanceAction
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,UpdateCloudInstanceActionOrBuilder,Serializable
public final class UpdateCloudInstanceAction
extends com.google.protobuf.GeneratedMessageV3
implements UpdateCloudInstanceActionOrBuilder
Action that updates a Cloud Spanner instance.Protobuf type
google.spanner.executor.v1.UpdateCloudInstanceAction- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAction that updates 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 UpdateCloudInstanceActionstatic final com.google.protobuf.Descriptors.DescriptorThe descriptive name for this instance as it appears in UIs.com.google.protobuf.ByteStringThe descriptive name for this instance as it appears in UIs.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.intThe number of nodes allocated to this instance.com.google.protobuf.Parser<UpdateCloudInstanceAction>intThe number of processing units allocated to this instance.Cloud project ID, e.g.com.google.protobuf.ByteStringCloud project ID, e.g.intbooleanThe autoscaling config for this instance.booleanThe descriptive name for this instance as it appears in UIs.inthashCode()booleanThe number of nodes allocated to this instance.booleanThe number of processing units allocated to this instance.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) final booleannewBuilder(UpdateCloudInstanceAction prototype) protected UpdateCloudInstanceAction.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static UpdateCloudInstanceActionparseDelimitedFrom(InputStream input) static UpdateCloudInstanceActionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UpdateCloudInstanceActionparseFrom(byte[] data) static UpdateCloudInstanceActionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UpdateCloudInstanceActionparseFrom(com.google.protobuf.ByteString data) static UpdateCloudInstanceActionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UpdateCloudInstanceActionparseFrom(com.google.protobuf.CodedInputStream input) static UpdateCloudInstanceActionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UpdateCloudInstanceActionparseFrom(InputStream input) static UpdateCloudInstanceActionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UpdateCloudInstanceActionparseFrom(ByteBuffer data) static UpdateCloudInstanceActionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<UpdateCloudInstanceAction>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:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_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 interfaceUpdateCloudInstanceActionOrBuilder- 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 interfaceUpdateCloudInstanceActionOrBuilder- Returns:
- The bytes for instanceId.
-
getProjectId
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;- Specified by:
getProjectIdin interfaceUpdateCloudInstanceActionOrBuilder- 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 interfaceUpdateCloudInstanceActionOrBuilder- Returns:
- The bytes for projectId.
-
hasDisplayName
public boolean hasDisplayName()The descriptive name for this instance as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
optional string display_name = 3;- Specified by:
hasDisplayNamein interfaceUpdateCloudInstanceActionOrBuilder- Returns:
- Whether the displayName field is set.
-
getDisplayName
The descriptive name for this instance as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
optional string display_name = 3;- Specified by:
getDisplayNamein interfaceUpdateCloudInstanceActionOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()The descriptive name for this instance as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
optional string display_name = 3;- Specified by:
getDisplayNameBytesin interfaceUpdateCloudInstanceActionOrBuilder- Returns:
- The bytes for displayName.
-
hasNodeCount
public boolean hasNodeCount()The number of nodes allocated to this instance. At most one of either node_count or processing_units should be present in the message.
optional int32 node_count = 4;- Specified by:
hasNodeCountin interfaceUpdateCloudInstanceActionOrBuilder- Returns:
- Whether the nodeCount field is set.
-
getNodeCount
public int getNodeCount()The number of nodes allocated to this instance. At most one of either node_count or processing_units should be present in the message.
optional int32 node_count = 4;- Specified by:
getNodeCountin interfaceUpdateCloudInstanceActionOrBuilder- Returns:
- The nodeCount.
-
hasProcessingUnits
public boolean hasProcessingUnits()The number of processing units allocated to this instance. At most one of processing_units or node_count should be present in the message.
optional int32 processing_units = 5;- Specified by:
hasProcessingUnitsin interfaceUpdateCloudInstanceActionOrBuilder- Returns:
- Whether the processingUnits field is set.
-
getProcessingUnits
public int getProcessingUnits()The number of processing units allocated to this instance. At most one of processing_units or node_count should be present in the message.
optional int32 processing_units = 5;- Specified by:
getProcessingUnitsin interfaceUpdateCloudInstanceActionOrBuilder- Returns:
- The processingUnits.
-
hasAutoscalingConfig
public boolean hasAutoscalingConfig()The autoscaling config for this instance. If non-empty, this instance is using autoscaling (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 interfaceUpdateCloudInstanceActionOrBuilder- Returns:
- Whether the autoscalingConfig field is set.
-
getAutoscalingConfig
The autoscaling config for this instance. If non-empty, this instance is using autoscaling (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 interfaceUpdateCloudInstanceActionOrBuilder- Returns:
- The autoscalingConfig.
-
getAutoscalingConfigOrBuilder
The autoscaling config for this instance. If non-empty, this instance is using autoscaling (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 interfaceUpdateCloudInstanceActionOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:UpdateCloudInstanceActionOrBuilderlabels.
map<string, string> labels = 6;- Specified by:
getLabelsCountin interfaceUpdateCloudInstanceActionOrBuilder
-
containsLabels
labels.
map<string, string> labels = 6;- Specified by:
containsLabelsin interfaceUpdateCloudInstanceActionOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceUpdateCloudInstanceActionOrBuilder
-
getLabelsMap
labels.
map<string, string> labels = 6;- Specified by:
getLabelsMapin interfaceUpdateCloudInstanceActionOrBuilder
-
getLabelsOrDefault
labels.
map<string, string> labels = 6;- Specified by:
getLabelsOrDefaultin interfaceUpdateCloudInstanceActionOrBuilder
-
getLabelsOrThrow
labels.
map<string, string> labels = 6;- Specified by:
getLabelsOrThrowin interfaceUpdateCloudInstanceActionOrBuilder
-
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 UpdateCloudInstanceAction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UpdateCloudInstanceAction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UpdateCloudInstanceAction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UpdateCloudInstanceAction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UpdateCloudInstanceAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UpdateCloudInstanceAction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static UpdateCloudInstanceAction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static UpdateCloudInstanceAction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static UpdateCloudInstanceAction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static UpdateCloudInstanceAction 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 UpdateCloudInstanceAction.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
-