Package com.google.cloud.alloydb.v1beta
Enum 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 Summary
Enum ConstantsEnum ConstantDescriptionError during SQL execution.No error during SQL execution i.e.Same as OK, except indicates that only partial results were returned.The status is unknown. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intError during SQL execution.static final intNo error during SQL execution i.e.static final intSame as OK, except indicates that only partial results were returned.static final intThe status is unknown. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecuteSqlMetadata.StatusforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ExecuteSqlMetadata.Status>static ExecuteSqlMetadata.StatusvalueOf(int value) Deprecated.static ExecuteSqlMetadata.StatusvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static ExecuteSqlMetadata.StatusReturns 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.
-
Enum Constant Details
-
STATUS_UNSPECIFIED
The status is unknown.
STATUS_UNSPECIFIED = 0; -
OK
No error during SQL execution i.e. All SQL statements ran to completion. The "message" will be empty.
OK = 1; -
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
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
-
-
Field Details
-
STATUS_UNSPECIFIED_VALUE
public static final int STATUS_UNSPECIFIED_VALUEThe status is unknown.
STATUS_UNSPECIFIED = 0;- See Also:
-
OK_VALUE
public static final int OK_VALUENo 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_VALUESame 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_VALUEError 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
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<ExecuteSqlMetadata.Status> 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 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 nameNullPointerException- if the argument is null
-