public static enum Index.IndexField.Order extends Enum<Index.IndexField.Order> implements com.google.protobuf.ProtocolMessageEnum
The supported orderings.Protobuf enum
google.firestore.admin.v1.Index.IndexField.Order
Enum Constant and Description |
---|
ASCENDING
The field is ordered by ascending field value.
|
DESCENDING
The field is ordered by descending field value.
|
ORDER_UNSPECIFIED
The ordering is unspecified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
ASCENDING_VALUE
The field is ordered by ascending field value.
|
static int |
DESCENDING_VALUE
The field is ordered by descending field value.
|
static int |
ORDER_UNSPECIFIED_VALUE
The ordering is unspecified.
|
Modifier and Type | Method and Description |
---|---|
static Index.IndexField.Order |
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.IndexField.Order> |
internalGetValueMap() |
static Index.IndexField.Order |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Index.IndexField.Order |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Index.IndexField.Order |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Index.IndexField.Order[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Index.IndexField.Order ORDER_UNSPECIFIED
The ordering is unspecified. Not a valid option.
ORDER_UNSPECIFIED = 0;
public static final Index.IndexField.Order ASCENDING
The field is ordered by ascending field value.
ASCENDING = 1;
public static final Index.IndexField.Order DESCENDING
The field is ordered by descending field value.
DESCENDING = 2;
public static final Index.IndexField.Order UNRECOGNIZED
public static final int ORDER_UNSPECIFIED_VALUE
The ordering is unspecified. Not a valid option.
ORDER_UNSPECIFIED = 0;
public static final int ASCENDING_VALUE
The field is ordered by ascending field value.
ASCENDING = 1;
public static final int DESCENDING_VALUE
The field is ordered by descending field value.
DESCENDING = 2;
public static Index.IndexField.Order[] values()
for (Index.IndexField.Order c : Index.IndexField.Order.values()) System.out.println(c);
public static Index.IndexField.Order 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.IndexField.Order valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Index.IndexField.Order forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Index.IndexField.Order> 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.IndexField.Order valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.