Enum 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 Summary
Enum ConstantsEnum ConstantDescriptionUser initiated cancellation.Database is not accessible.Any other internal error.Key destroyed, expired, not found, unreachable or permission denied.UNSPECIFIED means operation error type is not known or available.SQL server specific error.The zone or region does not have sufficient resources to handle the request at the moment. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUser initiated cancellation.static final intDatabase is not accessible.static final intAny other internal error.static final intKey destroyed, expired, not found, unreachable or permission denied.static final intUNSPECIFIED means operation error type is not known or available.static final intSQL server specific error.static final intThe zone or region does not have sufficient resources to handle the request at the moment. -
Method Summary
Modifier and TypeMethodDescriptionstatic OperationErrorTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<OperationErrorType>static OperationErrorTypevalueOf(int value) Deprecated.static OperationErrorTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static OperationErrorTypeReturns the enum constant of this type with the specified name.static OperationErrorType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OPERATION_ERROR_TYPE_UNSPECIFIED
UNSPECIFIED means operation error type is not known or available.
OPERATION_ERROR_TYPE_UNSPECIFIED = 0; -
KMS_KEY_ERROR
Key destroyed, expired, not found, unreachable or permission denied.
KMS_KEY_ERROR = 1; -
DATABASE_ERROR
Database is not accessible.
DATABASE_ERROR = 2; -
STOCKOUT_ERROR
The zone or region does not have sufficient resources to handle the request at the moment.
STOCKOUT_ERROR = 3; -
CANCELLATION_ERROR
User initiated cancellation.
CANCELLATION_ERROR = 4; -
SQLSERVER_ERROR
SQL server specific error.
SQLSERVER_ERROR = 5; -
INTERNAL_ERROR
Any other internal error.
INTERNAL_ERROR = 6; -
UNRECOGNIZED
-
-
Field Details
-
OPERATION_ERROR_TYPE_UNSPECIFIED_VALUE
public static final int OPERATION_ERROR_TYPE_UNSPECIFIED_VALUEUNSPECIFIED 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_VALUEKey destroyed, expired, not found, unreachable or permission denied.
KMS_KEY_ERROR = 1;- See Also:
-
DATABASE_ERROR_VALUE
public static final int DATABASE_ERROR_VALUEDatabase is not accessible.
DATABASE_ERROR = 2;- See Also:
-
STOCKOUT_ERROR_VALUE
public static final int STOCKOUT_ERROR_VALUEThe 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_VALUEUser initiated cancellation.
CANCELLATION_ERROR = 4;- See Also:
-
SQLSERVER_ERROR_VALUE
public static final int SQLSERVER_ERROR_VALUESQL server specific error.
SQLSERVER_ERROR = 5;- See Also:
-
INTERNAL_ERROR_VALUE
public static final int INTERNAL_ERROR_VALUEAny other internal error.
INTERNAL_ERROR = 6;- See Also:
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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 nameNullPointerException- if the argument is null
-