public static enum ExecuteSqlRequest.QueryMode extends Enum<ExecuteSqlRequest.QueryMode> implements ProtocolMessageEnum
Mode in which the statement must be processed.Protobuf enum
google.spanner.v1.ExecuteSqlRequest.QueryMode
Enum Constant and Description |
---|
NORMAL
The default mode.
|
PLAN
This mode returns only the query plan, without any results or
execution statistics information.
|
PROFILE
This mode returns both the query plan and the execution statistics along
with the results.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
NORMAL_VALUE
The default mode.
|
static int |
PLAN_VALUE
This mode returns only the query plan, without any results or
execution statistics information.
|
static int |
PROFILE_VALUE
This mode returns both the query plan and the execution statistics along
with the results.
|
Modifier and Type | Method and Description |
---|---|
static ExecuteSqlRequest.QueryMode |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<ExecuteSqlRequest.QueryMode> |
internalGetValueMap() |
static ExecuteSqlRequest.QueryMode |
valueOf(Descriptors.EnumValueDescriptor desc) |
static ExecuteSqlRequest.QueryMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ExecuteSqlRequest.QueryMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExecuteSqlRequest.QueryMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExecuteSqlRequest.QueryMode NORMAL
The default mode. Only the statement results are returned.
NORMAL = 0;
public static final ExecuteSqlRequest.QueryMode PLAN
This mode returns only the query plan, without any results or execution statistics information.
PLAN = 1;
public static final ExecuteSqlRequest.QueryMode PROFILE
This mode returns both the query plan and the execution statistics along with the results.
PROFILE = 2;
public static final ExecuteSqlRequest.QueryMode UNRECOGNIZED
public static final int NORMAL_VALUE
The default mode. Only the statement results are returned.
NORMAL = 0;
public static final int PLAN_VALUE
This mode returns only the query plan, without any results or execution statistics information.
PLAN = 1;
public static final int PROFILE_VALUE
This mode returns both the query plan and the execution statistics along with the results.
PROFILE = 2;
public static ExecuteSqlRequest.QueryMode[] values()
for (ExecuteSqlRequest.QueryMode c : ExecuteSqlRequest.QueryMode.values()) System.out.println(c);
public static ExecuteSqlRequest.QueryMode 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 Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static ExecuteSqlRequest.QueryMode valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static ExecuteSqlRequest.QueryMode forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<ExecuteSqlRequest.QueryMode> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static ExecuteSqlRequest.QueryMode valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.