public static enum Index.Direction extends Enum<Index.Direction> implements com.google.protobuf.ProtocolMessageEnum
The direction determines how a property is indexed.Protobuf enum
google.datastore.admin.v1.Index.Direction
Enum Constant and Description |
---|
ASCENDING
The property's values are indexed so as to support sequencing in
ascending order and also query by <, >, <=, >=, and =.
|
DESCENDING
The property's values are indexed so as to support sequencing in
descending order and also query by <, >, <=, >=, and =.
|
DIRECTION_UNSPECIFIED
The direction is unspecified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
ASCENDING_VALUE
The property's values are indexed so as to support sequencing in
ascending order and also query by <, >, <=, >=, and =.
|
static int |
DESCENDING_VALUE
The property's values are indexed so as to support sequencing in
descending order and also query by <, >, <=, >=, and =.
|
static int |
DIRECTION_UNSPECIFIED_VALUE
The direction is unspecified.
|
Modifier and Type | Method and Description |
---|---|
static Index.Direction |
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<Index.Direction> |
internalGetValueMap() |
static Index.Direction |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Index.Direction |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Index.Direction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Index.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Index.Direction DIRECTION_UNSPECIFIED
The direction is unspecified.
DIRECTION_UNSPECIFIED = 0;
public static final Index.Direction ASCENDING
The property's values are indexed so as to support sequencing in ascending order and also query by <, >, <=, >=, and =.
ASCENDING = 1;
public static final Index.Direction DESCENDING
The property's values are indexed so as to support sequencing in descending order and also query by <, >, <=, >=, and =.
DESCENDING = 2;
public static final Index.Direction UNRECOGNIZED
public static final int DIRECTION_UNSPECIFIED_VALUE
The direction is unspecified.
DIRECTION_UNSPECIFIED = 0;
public static final int ASCENDING_VALUE
The property's values are indexed so as to support sequencing in ascending order and also query by <, >, <=, >=, and =.
ASCENDING = 1;
public static final int DESCENDING_VALUE
The property's values are indexed so as to support sequencing in descending order and also query by <, >, <=, >=, and =.
DESCENDING = 2;
public static Index.Direction[] values()
for (Index.Direction c : Index.Direction.values()) System.out.println(c);
public static Index.Direction 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.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static Index.Direction valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Index.Direction forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Index.Direction> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Index.Direction valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.