Package com.google.cloud.alloydb.v1beta
Class BatchCreateInstanceStatus
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.alloydb.v1beta.BatchCreateInstanceStatus
- All Implemented Interfaces:
BatchCreateInstanceStatusOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class BatchCreateInstanceStatus
extends com.google.protobuf.GeneratedMessage
implements BatchCreateInstanceStatusOrBuilder
Message for current status of an instance in the BatchCreateInstances operation. For example, lets say a BatchCreateInstances workflow has 4 instances, Instance1 through Instance4. Lets also assume that 2 instances succeeded but the third failed to create and the 4th was never picked up for creation because of failure of the previous one. Then, resulting states would look something like: 1. Instance1 = ROLLED_BACK 2. Instance2 = ROLLED_BACK 3. Instance3 = FAILED 4. Instance4 = FAILED However, while the operation is running, the instance might be in other states including PENDING_CREATE, ACTIVE, DELETING and CREATING. The states / do not get further updated once the operation is done.Protobuf type
google.cloud.alloydb.v1beta.BatchCreateInstanceStatus- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMessage for current status of an instance in the BatchCreateInstances operation.static enumState contains all valid instance states for the BatchCreateInstances operation.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested 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 intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic BatchCreateInstanceStatusstatic final com.google.protobuf.Descriptors.DescriptorgetError()The RPC status of the instance creation operation.DEPRECATED - Use the error field instead.com.google.protobuf.ByteStringDEPRECATED - Use the error field instead.The RPC status of the instance creation operation.com.google.protobuf.Parser<BatchCreateInstanceStatus>intgetState()The current state of an instance involved in the batch create operation.intThe current state of an instance involved in the batch create operation.getType().google.cloud.alloydb.v1beta.Instance.InstanceType type = 3;int.google.cloud.alloydb.v1beta.Instance.InstanceType type = 3;booleanhasError()The RPC status of the instance creation operation.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(BatchCreateInstanceStatus prototype) protected BatchCreateInstanceStatus.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static BatchCreateInstanceStatusparseDelimitedFrom(InputStream input) static BatchCreateInstanceStatusparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BatchCreateInstanceStatusparseFrom(byte[] data) static BatchCreateInstanceStatusparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BatchCreateInstanceStatusparseFrom(com.google.protobuf.ByteString data) static BatchCreateInstanceStatusparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BatchCreateInstanceStatusparseFrom(com.google.protobuf.CodedInputStream input) static BatchCreateInstanceStatusparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BatchCreateInstanceStatusparseFrom(InputStream input) static BatchCreateInstanceStatusparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static BatchCreateInstanceStatusparseFrom(ByteBuffer data) static BatchCreateInstanceStatusparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<BatchCreateInstanceStatus>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
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
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER- See Also:
-
ERROR_MSG_FIELD_NUMBER
public static final int ERROR_MSG_FIELD_NUMBER- See Also:
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getStateValue
public int getStateValue()The current state of an instance involved in the batch create operation. Once the operation is complete, the final state of the instances in the LRO can be one of: 1. ACTIVE, indicating that instances were created successfully 2. FAILED, indicating that a particular instance failed creation 3. ROLLED_BACK indicating that although the instance was created successfully, it had to be rolled back and deleted due to failure in other steps of the workflow.
.google.cloud.alloydb.v1beta.BatchCreateInstanceStatus.State state = 1;- Specified by:
getStateValuein interfaceBatchCreateInstanceStatusOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
The current state of an instance involved in the batch create operation. Once the operation is complete, the final state of the instances in the LRO can be one of: 1. ACTIVE, indicating that instances were created successfully 2. FAILED, indicating that a particular instance failed creation 3. ROLLED_BACK indicating that although the instance was created successfully, it had to be rolled back and deleted due to failure in other steps of the workflow.
.google.cloud.alloydb.v1beta.BatchCreateInstanceStatus.State state = 1;- Specified by:
getStatein interfaceBatchCreateInstanceStatusOrBuilder- Returns:
- The state.
-
getErrorMsg
DEPRECATED - Use the error field instead. Error, if any error occurred and is available, during instance creation.
string error_msg = 2;- Specified by:
getErrorMsgin interfaceBatchCreateInstanceStatusOrBuilder- Returns:
- The errorMsg.
-
getErrorMsgBytes
public com.google.protobuf.ByteString getErrorMsgBytes()DEPRECATED - Use the error field instead. Error, if any error occurred and is available, during instance creation.
string error_msg = 2;- Specified by:
getErrorMsgBytesin interfaceBatchCreateInstanceStatusOrBuilder- Returns:
- The bytes for errorMsg.
-
hasError
public boolean hasError()The RPC status of the instance creation operation. This field will be present if an error happened during the instance creation.
.google.rpc.Status error = 4;- Specified by:
hasErrorin interfaceBatchCreateInstanceStatusOrBuilder- Returns:
- Whether the error field is set.
-
getError
The RPC status of the instance creation operation. This field will be present if an error happened during the instance creation.
.google.rpc.Status error = 4;- Specified by:
getErrorin interfaceBatchCreateInstanceStatusOrBuilder- Returns:
- The error.
-
getErrorOrBuilder
The RPC status of the instance creation operation. This field will be present if an error happened during the instance creation.
.google.rpc.Status error = 4;- Specified by:
getErrorOrBuilderin interfaceBatchCreateInstanceStatusOrBuilder
-
getTypeValue
public int getTypeValue().google.cloud.alloydb.v1beta.Instance.InstanceType type = 3;- Specified by:
getTypeValuein interfaceBatchCreateInstanceStatusOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
.google.cloud.alloydb.v1beta.Instance.InstanceType type = 3;- Specified by:
getTypein interfaceBatchCreateInstanceStatusOrBuilder- Returns:
- The type.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
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 BatchCreateInstanceStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchCreateInstanceStatus parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchCreateInstanceStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchCreateInstanceStatus parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchCreateInstanceStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static BatchCreateInstanceStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static BatchCreateInstanceStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static BatchCreateInstanceStatus parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static BatchCreateInstanceStatus parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static BatchCreateInstanceStatus 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 BatchCreateInstanceStatus.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-