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 Details

    • STORAGE_ERROR_CODE_UNSPECIFIED

      public static final StorageError.StorageErrorCode STORAGE_ERROR_CODE_UNSPECIFIED
       Default error.
       
      STORAGE_ERROR_CODE_UNSPECIFIED = 0;
    • TABLE_NOT_FOUND

      public static final StorageError.StorageErrorCode TABLE_NOT_FOUND
       Table is not found in the system.
       
      TABLE_NOT_FOUND = 1;
    • STREAM_ALREADY_COMMITTED

      public static final StorageError.StorageErrorCode STREAM_ALREADY_COMMITTED
       Stream is already committed.
       
      STREAM_ALREADY_COMMITTED = 2;
    • STREAM_NOT_FOUND

      public static final StorageError.StorageErrorCode STREAM_NOT_FOUND
       Stream is not found.
       
      STREAM_NOT_FOUND = 3;
    • INVALID_STREAM_TYPE

      public static final StorageError.StorageErrorCode 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

      public static final StorageError.StorageErrorCode 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

      public static final StorageError.StorageErrorCode STREAM_FINALIZED
       Stream is finalized.
       
      STREAM_FINALIZED = 6;
    • SCHEMA_MISMATCH_EXTRA_FIELDS

      public static final StorageError.StorageErrorCode 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

      public static final StorageError.StorageErrorCode OFFSET_ALREADY_EXISTS
       Offset already exists.
       
      OFFSET_ALREADY_EXISTS = 8;
    • OFFSET_OUT_OF_RANGE

      public static final StorageError.StorageErrorCode OFFSET_OUT_OF_RANGE
       Offset out of range.
       
      OFFSET_OUT_OF_RANGE = 9;
    • CMEK_NOT_PROVIDED

      public static final StorageError.StorageErrorCode CMEK_NOT_PROVIDED
       Customer-managed encryption key (CMEK) not provided for CMEK-enabled
       data.
       
      CMEK_NOT_PROVIDED = 10;
    • INVALID_CMEK_PROVIDED

      public static final StorageError.StorageErrorCode INVALID_CMEK_PROVIDED
       Customer-managed encryption key (CMEK) was incorrectly provided.
       
      INVALID_CMEK_PROVIDED = 11;
    • CMEK_ENCRYPTION_ERROR

      public static final StorageError.StorageErrorCode CMEK_ENCRYPTION_ERROR
       There is an encryption error while using customer-managed encryption key.
       
      CMEK_ENCRYPTION_ERROR = 12;
    • KMS_SERVICE_ERROR

      public static final StorageError.StorageErrorCode KMS_SERVICE_ERROR
       Key Management Service (KMS) service returned an error, which can be
       retried.
       
      KMS_SERVICE_ERROR = 13;
    • KMS_PERMISSION_DENIED

      public static final StorageError.StorageErrorCode KMS_PERMISSION_DENIED
       Permission denied while using customer-managed encryption key.
       
      KMS_PERMISSION_DENIED = 14;
    • UNRECOGNIZED

      public static final StorageError.StorageErrorCode UNRECOGNIZED
  • Field Details

    • STORAGE_ERROR_CODE_UNSPECIFIED_VALUE

      public static final int STORAGE_ERROR_CODE_UNSPECIFIED_VALUE
       Default error.
       
      STORAGE_ERROR_CODE_UNSPECIFIED = 0;
      See Also:
    • TABLE_NOT_FOUND_VALUE

      public static final int TABLE_NOT_FOUND_VALUE
       Table is not found in the system.
       
      TABLE_NOT_FOUND = 1;
      See Also:
    • STREAM_ALREADY_COMMITTED_VALUE

      public static final int STREAM_ALREADY_COMMITTED_VALUE
       Stream is already committed.
       
      STREAM_ALREADY_COMMITTED = 2;
      See Also:
    • STREAM_NOT_FOUND_VALUE

      public static final int STREAM_NOT_FOUND_VALUE
       Stream is not found.
       
      STREAM_NOT_FOUND = 3;
      See Also:
    • INVALID_STREAM_TYPE_VALUE

      public static final int INVALID_STREAM_TYPE_VALUE
       Invalid 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_VALUE
       Invalid 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_VALUE
       Stream is finalized.
       
      STREAM_FINALIZED = 6;
      See Also:
    • SCHEMA_MISMATCH_EXTRA_FIELDS_VALUE

      public static final int SCHEMA_MISMATCH_EXTRA_FIELDS_VALUE
       There 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_VALUE
       Offset already exists.
       
      OFFSET_ALREADY_EXISTS = 8;
      See Also:
    • OFFSET_OUT_OF_RANGE_VALUE

      public static final int OFFSET_OUT_OF_RANGE_VALUE
       Offset out of range.
       
      OFFSET_OUT_OF_RANGE = 9;
      See Also:
    • CMEK_NOT_PROVIDED_VALUE

      public static final int CMEK_NOT_PROVIDED_VALUE
       Customer-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_VALUE
       Customer-managed encryption key (CMEK) was incorrectly provided.
       
      INVALID_CMEK_PROVIDED = 11;
      See Also:
    • CMEK_ENCRYPTION_ERROR_VALUE

      public static final int CMEK_ENCRYPTION_ERROR_VALUE
       There 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_VALUE
       Key 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_VALUE
       Permission denied while using customer-managed encryption key.
       
      KMS_PERMISSION_DENIED = 14;
      See Also:
  • Method Details

    • values

      public static StorageError.StorageErrorCode[] 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 StorageError.StorageErrorCode 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 StorageError.StorageErrorCode 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 StorageError.StorageErrorCode 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<StorageError.StorageErrorCode> 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 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 name
      NullPointerException - if the argument is null