Enum OperationErrorType

java.lang.Object
java.lang.Enum<OperationErrorType>
com.google.cloud.databasecenter.v1beta.OperationErrorType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<OperationErrorType>

@Generated public enum OperationErrorType extends Enum<OperationErrorType> implements com.google.protobuf.ProtocolMessageEnum
 OperationErrorType is used to expose specific error type which can happen in
 database resource while performing an operation. For example, an error can
 happen while database resource being backed up.
 
Protobuf enum google.cloud.databasecenter.v1beta.OperationErrorType
  • Enum Constant Details

    • OPERATION_ERROR_TYPE_UNSPECIFIED

      public static final OperationErrorType OPERATION_ERROR_TYPE_UNSPECIFIED
       UNSPECIFIED means operation error type is not known or available.
       
      OPERATION_ERROR_TYPE_UNSPECIFIED = 0;
    • KMS_KEY_ERROR

      public static final OperationErrorType KMS_KEY_ERROR
       Key destroyed, expired, not found, unreachable or permission denied.
       
      KMS_KEY_ERROR = 1;
    • DATABASE_ERROR

      public static final OperationErrorType DATABASE_ERROR
       Database is not accessible.
       
      DATABASE_ERROR = 2;
    • STOCKOUT_ERROR

      public static final OperationErrorType STOCKOUT_ERROR
       The zone or region does not have sufficient resources to handle the request
       at the moment.
       
      STOCKOUT_ERROR = 3;
    • CANCELLATION_ERROR

      public static final OperationErrorType CANCELLATION_ERROR
       User initiated cancellation.
       
      CANCELLATION_ERROR = 4;
    • SQLSERVER_ERROR

      public static final OperationErrorType SQLSERVER_ERROR
       SQL server specific error.
       
      SQLSERVER_ERROR = 5;
    • INTERNAL_ERROR

      public static final OperationErrorType INTERNAL_ERROR
       Any other internal error.
       
      INTERNAL_ERROR = 6;
    • UNRECOGNIZED

      public static final OperationErrorType UNRECOGNIZED
  • Field Details

    • OPERATION_ERROR_TYPE_UNSPECIFIED_VALUE

      public static final int OPERATION_ERROR_TYPE_UNSPECIFIED_VALUE
       UNSPECIFIED means operation error type is not known or available.
       
      OPERATION_ERROR_TYPE_UNSPECIFIED = 0;
      See Also:
    • KMS_KEY_ERROR_VALUE

      public static final int KMS_KEY_ERROR_VALUE
       Key destroyed, expired, not found, unreachable or permission denied.
       
      KMS_KEY_ERROR = 1;
      See Also:
    • DATABASE_ERROR_VALUE

      public static final int DATABASE_ERROR_VALUE
       Database is not accessible.
       
      DATABASE_ERROR = 2;
      See Also:
    • STOCKOUT_ERROR_VALUE

      public static final int STOCKOUT_ERROR_VALUE
       The zone or region does not have sufficient resources to handle the request
       at the moment.
       
      STOCKOUT_ERROR = 3;
      See Also:
    • CANCELLATION_ERROR_VALUE

      public static final int CANCELLATION_ERROR_VALUE
       User initiated cancellation.
       
      CANCELLATION_ERROR = 4;
      See Also:
    • SQLSERVER_ERROR_VALUE

      public static final int SQLSERVER_ERROR_VALUE
       SQL server specific error.
       
      SQLSERVER_ERROR = 5;
      See Also:
    • INTERNAL_ERROR_VALUE

      public static final int INTERNAL_ERROR_VALUE
       Any other internal error.
       
      INTERNAL_ERROR = 6;
      See Also:
  • Method Details

    • values

      public static OperationErrorType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static OperationErrorType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static OperationErrorType valueOf(int value)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static OperationErrorType forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<OperationErrorType> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static OperationErrorType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null