Enum StorageError.StorageErrorCode
java.lang.Object
java.lang.Enum<StorageError.StorageErrorCode>
com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<StorageError.StorageErrorCode>
- Enclosing class:
- StorageError
public static enum StorageError.StorageErrorCode
extends Enum<StorageError.StorageErrorCode>
implements com.google.protobuf.ProtocolMessageEnum
Error code for `StorageError`.Protobuf enum
google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThere is an encryption error while using customer-managed encryption key.Customer-managed encryption key (CMEK) not provided for CMEK-enabled data.Customer-managed encryption key (CMEK) was incorrectly provided.Invalid Stream state.Invalid Stream type.Permission denied while using customer-managed encryption key.Key Management Service (KMS) service returned an error, which can be retried.Offset already exists.Offset out of range.There is a schema mismatch and it is caused by user schema has extra field than bigquery schema.Default error.Stream is already committed.Stream is finalized.Stream is not found.Table is not found in the system. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThere is an encryption error while using customer-managed encryption key.static final intCustomer-managed encryption key (CMEK) not provided for CMEK-enabled data.static final intCustomer-managed encryption key (CMEK) was incorrectly provided.static final intInvalid Stream state.static final intInvalid Stream type.static final intPermission denied while using customer-managed encryption key.static final intKey Management Service (KMS) service returned an error, which can be retried.static final intOffset already exists.static final intOffset out of range.static final intThere is a schema mismatch and it is caused by user schema has extra field than bigquery schema.static final intDefault error.static final intStream is already committed.static final intStream is finalized.static final intStream is not found.static final intTable is not found in the system. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<StorageError.StorageErrorCode>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.static StorageError.StorageErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STORAGE_ERROR_CODE_UNSPECIFIED
Default error.
STORAGE_ERROR_CODE_UNSPECIFIED = 0; -
TABLE_NOT_FOUND
Table is not found in the system.
TABLE_NOT_FOUND = 1; -
STREAM_ALREADY_COMMITTED
Stream is already committed.
STREAM_ALREADY_COMMITTED = 2; -
STREAM_NOT_FOUND
Stream is not found.
STREAM_NOT_FOUND = 3; -
INVALID_STREAM_TYPE
Invalid Stream type. For example, you try to commit a stream that is not pending.
INVALID_STREAM_TYPE = 4; -
INVALID_STREAM_STATE
Invalid Stream state. For example, you try to commit a stream that is not finalized or is garbaged.
INVALID_STREAM_STATE = 5; -
STREAM_FINALIZED
Stream is finalized.
STREAM_FINALIZED = 6; -
SCHEMA_MISMATCH_EXTRA_FIELDS
There is a schema mismatch and it is caused by user schema has extra field than bigquery schema.
SCHEMA_MISMATCH_EXTRA_FIELDS = 7; -
OFFSET_ALREADY_EXISTS
Offset already exists.
OFFSET_ALREADY_EXISTS = 8; -
OFFSET_OUT_OF_RANGE
Offset out of range.
OFFSET_OUT_OF_RANGE = 9; -
CMEK_NOT_PROVIDED
Customer-managed encryption key (CMEK) not provided for CMEK-enabled data.
CMEK_NOT_PROVIDED = 10; -
INVALID_CMEK_PROVIDED
Customer-managed encryption key (CMEK) was incorrectly provided.
INVALID_CMEK_PROVIDED = 11; -
CMEK_ENCRYPTION_ERROR
There is an encryption error while using customer-managed encryption key.
CMEK_ENCRYPTION_ERROR = 12; -
KMS_SERVICE_ERROR
Key Management Service (KMS) service returned an error, which can be retried.
KMS_SERVICE_ERROR = 13; -
KMS_PERMISSION_DENIED
Permission denied while using customer-managed encryption key.
KMS_PERMISSION_DENIED = 14; -
UNRECOGNIZED
-
-
Field Details
-
STORAGE_ERROR_CODE_UNSPECIFIED_VALUE
public static final int STORAGE_ERROR_CODE_UNSPECIFIED_VALUEDefault error.
STORAGE_ERROR_CODE_UNSPECIFIED = 0;- See Also:
-
TABLE_NOT_FOUND_VALUE
public static final int TABLE_NOT_FOUND_VALUETable is not found in the system.
TABLE_NOT_FOUND = 1;- See Also:
-
STREAM_ALREADY_COMMITTED_VALUE
public static final int STREAM_ALREADY_COMMITTED_VALUEStream is already committed.
STREAM_ALREADY_COMMITTED = 2;- See Also:
-
STREAM_NOT_FOUND_VALUE
public static final int STREAM_NOT_FOUND_VALUEStream is not found.
STREAM_NOT_FOUND = 3;- See Also:
-
INVALID_STREAM_TYPE_VALUE
public static final int INVALID_STREAM_TYPE_VALUEInvalid Stream type. For example, you try to commit a stream that is not pending.
INVALID_STREAM_TYPE = 4;- See Also:
-
INVALID_STREAM_STATE_VALUE
public static final int INVALID_STREAM_STATE_VALUEInvalid Stream state. For example, you try to commit a stream that is not finalized or is garbaged.
INVALID_STREAM_STATE = 5;- See Also:
-
STREAM_FINALIZED_VALUE
public static final int STREAM_FINALIZED_VALUEStream is finalized.
STREAM_FINALIZED = 6;- See Also:
-
SCHEMA_MISMATCH_EXTRA_FIELDS_VALUE
public static final int SCHEMA_MISMATCH_EXTRA_FIELDS_VALUEThere is a schema mismatch and it is caused by user schema has extra field than bigquery schema.
SCHEMA_MISMATCH_EXTRA_FIELDS = 7;- See Also:
-
OFFSET_ALREADY_EXISTS_VALUE
public static final int OFFSET_ALREADY_EXISTS_VALUEOffset already exists.
OFFSET_ALREADY_EXISTS = 8;- See Also:
-
OFFSET_OUT_OF_RANGE_VALUE
public static final int OFFSET_OUT_OF_RANGE_VALUEOffset out of range.
OFFSET_OUT_OF_RANGE = 9;- See Also:
-
CMEK_NOT_PROVIDED_VALUE
public static final int CMEK_NOT_PROVIDED_VALUECustomer-managed encryption key (CMEK) not provided for CMEK-enabled data.
CMEK_NOT_PROVIDED = 10;- See Also:
-
INVALID_CMEK_PROVIDED_VALUE
public static final int INVALID_CMEK_PROVIDED_VALUECustomer-managed encryption key (CMEK) was incorrectly provided.
INVALID_CMEK_PROVIDED = 11;- See Also:
-
CMEK_ENCRYPTION_ERROR_VALUE
public static final int CMEK_ENCRYPTION_ERROR_VALUEThere is an encryption error while using customer-managed encryption key.
CMEK_ENCRYPTION_ERROR = 12;- See Also:
-
KMS_SERVICE_ERROR_VALUE
public static final int KMS_SERVICE_ERROR_VALUEKey Management Service (KMS) service returned an error, which can be retried.
KMS_SERVICE_ERROR = 13;- See Also:
-
KMS_PERMISSION_DENIED_VALUE
public static final int KMS_PERMISSION_DENIED_VALUEPermission denied while using customer-managed encryption key.
KMS_PERMISSION_DENIED = 14;- 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
public static com.google.protobuf.Internal.EnumLiteMap<StorageError.StorageErrorCode> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static StorageError.StorageErrorCode 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 nameNullPointerException- if the argument is null
-