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 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;
    • 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:
  • 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