public static enum Index.ApiScope extends Enum<Index.ApiScope> implements com.google.protobuf.ProtocolMessageEnum
API Scope defines the APIs (Firestore Native, or Firestore in Datastore Mode) that are supported for queries.Protobuf enum
google.firestore.admin.v1.Index.ApiScope
Enum Constant and Description |
---|
ANY_API
The index can only be used by the Firestore Native query API.
|
DATASTORE_MODE_API
The index can only be used by the Firestore in Datastore Mode query API.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
ANY_API_VALUE
The index can only be used by the Firestore Native query API.
|
static int |
DATASTORE_MODE_API_VALUE
The index can only be used by the Firestore in Datastore Mode query API.
|
Modifier and Type | Method and Description |
---|---|
static Index.ApiScope |
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.ApiScope> |
internalGetValueMap() |
static Index.ApiScope |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Index.ApiScope |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Index.ApiScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Index.ApiScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Index.ApiScope ANY_API
The index can only be used by the Firestore Native query API. This is the default.
ANY_API = 0;
public static final Index.ApiScope DATASTORE_MODE_API
The index can only be used by the Firestore in Datastore Mode query API.
DATASTORE_MODE_API = 1;
public static final Index.ApiScope UNRECOGNIZED
public static final int ANY_API_VALUE
The index can only be used by the Firestore Native query API. This is the default.
ANY_API = 0;
public static final int DATASTORE_MODE_API_VALUE
The index can only be used by the Firestore in Datastore Mode query API.
DATASTORE_MODE_API = 1;
public static Index.ApiScope[] values()
for (Index.ApiScope c : Index.ApiScope.values()) System.out.println(c);
public static Index.ApiScope 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.ApiScope valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Index.ApiScope forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Index.ApiScope> 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.ApiScope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.