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.v1.ExecuteSqlMetadata.Status| Enum Constant and Description |
|---|
ERROR
Error during SQL execution.
|
OK
No error during SQL execution i.e.
|
PARTIAL
Same as OK, except indicates that only partial results were
returned.
|
STATUS_UNSPECIFIED
The status is unknown.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_VALUE
Error during SQL execution.
|
static int |
OK_VALUE
No error during SQL execution i.e.
|
static int |
PARTIAL_VALUE
Same as OK, except indicates that only partial results were
returned.
|
static int |
STATUS_UNSPECIFIED_VALUE
The status is unknown.
|
| Modifier and Type | Method and Description |
|---|---|
static ExecuteSqlMetadata.Status |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<ExecuteSqlMetadata.Status> |
internalGetValueMap() |
static ExecuteSqlMetadata.Status |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ExecuteSqlMetadata.Status |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ExecuteSqlMetadata.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExecuteSqlMetadata.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExecuteSqlMetadata.Status STATUS_UNSPECIFIED
The status is unknown.
STATUS_UNSPECIFIED = 0;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;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;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;public static final ExecuteSqlMetadata.Status UNRECOGNIZED
public static final int STATUS_UNSPECIFIED_VALUE
The status is unknown.
STATUS_UNSPECIFIED = 0;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;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;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;public static ExecuteSqlMetadata.Status[] values()
for (ExecuteSqlMetadata.Status c : ExecuteSqlMetadata.Status.values()) System.out.println(c);
public static ExecuteSqlMetadata.Status valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static ExecuteSqlMetadata.Status valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ExecuteSqlMetadata.Status forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ExecuteSqlMetadata.Status> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ExecuteSqlMetadata.Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.