Class BatchCreateInstanceStatus

  • All Implemented Interfaces:
    BatchCreateInstanceStatusOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class BatchCreateInstanceStatus
    extends com.google.protobuf.GeneratedMessageV3
    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:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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:
        getStateValue in interface BatchCreateInstanceStatusOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • getState

        public BatchCreateInstanceStatus.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:
        getState in interface BatchCreateInstanceStatusOrBuilder
        Returns:
        The state.
      • getErrorMsg

        public String getErrorMsg()
         DEPRECATED - Use the error field instead.
         Error, if any error occurred and is available, during instance creation.
         
        string error_msg = 2;
        Specified by:
        getErrorMsg in interface BatchCreateInstanceStatusOrBuilder
        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:
        getErrorMsgBytes in interface BatchCreateInstanceStatusOrBuilder
        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:
        hasError in interface BatchCreateInstanceStatusOrBuilder
        Returns:
        Whether the error field is set.
      • getError

        public com.google.rpc.Status 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:
        getError in interface BatchCreateInstanceStatusOrBuilder
        Returns:
        The error.
      • getErrorOrBuilder

        public com.google.rpc.StatusOrBuilder 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:
        getErrorOrBuilder in interface BatchCreateInstanceStatusOrBuilder
      • getTypeValue

        public int getTypeValue()
        .google.cloud.alloydb.v1beta.Instance.InstanceType type = 3;
        Specified by:
        getTypeValue in interface BatchCreateInstanceStatusOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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
      • newBuilderForType

        public BatchCreateInstanceStatus.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public BatchCreateInstanceStatus.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected BatchCreateInstanceStatus.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<BatchCreateInstanceStatus> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public BatchCreateInstanceStatus getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder