public static enum Index.QueryScope extends Enum<Index.QueryScope> implements com.google.protobuf.ProtocolMessageEnum
Query Scope defines the scope at which a query is run. This is specified on a StructuredQuery's `from` field.Protobuf enum
google.firestore.admin.v1.Index.QueryScope
Enum Constant and Description |
---|
COLLECTION
Indexes with a collection query scope specified allow queries
against a collection that is the child of a specific document, specified
at query time, and that has the collection id specified by the index.
|
COLLECTION_GROUP
Indexes with a collection group query scope specified allow queries
against all collections that has the collection id specified by the
index.
|
COLLECTION_RECURSIVE
Include all the collections's ancestor in the index.
|
QUERY_SCOPE_UNSPECIFIED
The query scope is unspecified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
COLLECTION_GROUP_VALUE
Indexes with a collection group query scope specified allow queries
against all collections that has the collection id specified by the
index.
|
static int |
COLLECTION_RECURSIVE_VALUE
Include all the collections's ancestor in the index.
|
static int |
COLLECTION_VALUE
Indexes with a collection query scope specified allow queries
against a collection that is the child of a specific document, specified
at query time, and that has the collection id specified by the index.
|
static int |
QUERY_SCOPE_UNSPECIFIED_VALUE
The query scope is unspecified.
|
Modifier and Type | Method and Description |
---|---|
static Index.QueryScope |
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.QueryScope> |
internalGetValueMap() |
static Index.QueryScope |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Index.QueryScope |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Index.QueryScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Index.QueryScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Index.QueryScope QUERY_SCOPE_UNSPECIFIED
The query scope is unspecified. Not a valid option.
QUERY_SCOPE_UNSPECIFIED = 0;
public static final Index.QueryScope COLLECTION
Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the collection id specified by the index.
COLLECTION = 1;
public static final Index.QueryScope COLLECTION_GROUP
Indexes with a collection group query scope specified allow queries against all collections that has the collection id specified by the index.
COLLECTION_GROUP = 2;
public static final Index.QueryScope COLLECTION_RECURSIVE
Include all the collections's ancestor in the index. Only available for Datastore Mode databases.
COLLECTION_RECURSIVE = 3;
public static final Index.QueryScope UNRECOGNIZED
public static final int QUERY_SCOPE_UNSPECIFIED_VALUE
The query scope is unspecified. Not a valid option.
QUERY_SCOPE_UNSPECIFIED = 0;
public static final int COLLECTION_VALUE
Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the collection id specified by the index.
COLLECTION = 1;
public static final int COLLECTION_GROUP_VALUE
Indexes with a collection group query scope specified allow queries against all collections that has the collection id specified by the index.
COLLECTION_GROUP = 2;
public static final int COLLECTION_RECURSIVE_VALUE
Include all the collections's ancestor in the index. Only available for Datastore Mode databases.
COLLECTION_RECURSIVE = 3;
public static Index.QueryScope[] values()
for (Index.QueryScope c : Index.QueryScope.values()) System.out.println(c);
public static Index.QueryScope 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.QueryScope valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Index.QueryScope forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Index.QueryScope> 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.QueryScope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.