Enum ExecuteSqlMetadata.Status

java.lang.Object
java.lang.Enum<ExecuteSqlMetadata.Status>
com.google.cloud.alloydb.v1beta.ExecuteSqlMetadata.Status
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ExecuteSqlMetadata.Status>
Enclosing class:
ExecuteSqlMetadata

public static enum ExecuteSqlMetadata.Status extends Enum<ExecuteSqlMetadata.Status> implements com.google.protobuf.ProtocolMessageEnum
 Status contains all valid Status a SQL execution can end up in.
 
Protobuf enum google.cloud.alloydb.v1beta.ExecuteSqlMetadata.Status
  • Enum Constant Details

    • STATUS_UNSPECIFIED

      public static final ExecuteSqlMetadata.Status STATUS_UNSPECIFIED
       The status is unknown.
       
      STATUS_UNSPECIFIED = 0;
    • OK

      public static final ExecuteSqlMetadata.Status OK
       No error during SQL execution i.e. All SQL statements ran to completion.
       The "message" will be empty.
       
      OK = 1;
    • PARTIAL

      public static final ExecuteSqlMetadata.Status PARTIAL
       Same as OK, except indicates that only partial results were
       returned. The "message" field will contain details on why results were
       truncated.
       
      PARTIAL = 2;
    • ERROR

      public static final ExecuteSqlMetadata.Status ERROR
       Error during SQL execution. Atleast 1 SQL statement execution resulted in
       a error. Side effects of other statements are rolled back.  The "message"
       field will contain human readable error given by Postgres of the first
       bad SQL statement. SQL execution errors don't constitute API errors as
       defined in https://google.aip.dev/193 but will be returned as part of
       this message.
       
      ERROR = 3;
    • UNRECOGNIZED

      public static final ExecuteSqlMetadata.Status UNRECOGNIZED
  • Field Details

    • STATUS_UNSPECIFIED_VALUE

      public static final int STATUS_UNSPECIFIED_VALUE
       The status is unknown.
       
      STATUS_UNSPECIFIED = 0;
      See Also:
    • OK_VALUE

      public static final int OK_VALUE
       No error during SQL execution i.e. All SQL statements ran to completion.
       The "message" will be empty.
       
      OK = 1;
      See Also:
    • PARTIAL_VALUE

      public static final int PARTIAL_VALUE
       Same as OK, except indicates that only partial results were
       returned. The "message" field will contain details on why results were
       truncated.
       
      PARTIAL = 2;
      See Also:
    • ERROR_VALUE

      public static final int ERROR_VALUE
       Error during SQL execution. Atleast 1 SQL statement execution resulted in
       a error. Side effects of other statements are rolled back.  The "message"
       field will contain human readable error given by Postgres of the first
       bad SQL statement. SQL execution errors don't constitute API errors as
       defined in https://google.aip.dev/193 but will be returned as part of
       this message.
       
      ERROR = 3;
      See Also:
  • Method Details

    • values

      public static ExecuteSqlMetadata.Status[] 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 ExecuteSqlMetadata.Status 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 ExecuteSqlMetadata.Status 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 ExecuteSqlMetadata.Status 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<ExecuteSqlMetadata.Status> 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static ExecuteSqlMetadata.Status 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