Enum StorageError.StorageErrorCode
java.lang.Object
java.lang.Enum<StorageError.StorageErrorCode>
com.google.cloud.bigquery.storage.v1beta2.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.v1beta2.StorageError.StorageErrorCode-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInvalid Stream state.Invalid Stream type.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 intInvalid Stream state.static final intInvalid Stream type.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; -
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:
-
-
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
-