Package com.google.firestore.admin.v1
Enum Index.Density
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Index.Density>
- Enclosing class:
- Index
public static enum Index.Density
extends Enum<Index.Density>
implements com.google.protobuf.ProtocolMessageEnum
The density configuration for the index.Protobuf enum
google.firestore.admin.v1.Index.Density-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn index entry will be added regardless of whether the document contains any of the fields specified in the index.Unspecified.In order for an index entry to be added, the document must contain all fields specified in the index.In order for an index entry to be added, the document must contain at least one of the fields specified in the index. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAn index entry will be added regardless of whether the document contains any of the fields specified in the index.static final intUnspecified.static final intIn order for an index entry to be added, the document must contain all fields specified in the index.static final intIn order for an index entry to be added, the document must contain at least one of the fields specified in the index. -
Method Summary
Modifier and TypeMethodDescriptionstatic Index.DensityforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Index.Density>static Index.DensityvalueOf(int value) Deprecated.static Index.DensityvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Index.DensityReturns the enum constant of this type with the specified name.static Index.Density[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DENSITY_UNSPECIFIED
Unspecified. It will use database default setting. This value is input only.
DENSITY_UNSPECIFIED = 0; -
SPARSE_ALL
In order for an index entry to be added, the document must contain all fields specified in the index. This is the only allowed value for indexes having ApiScope `ANY_API` and `DATASTORE_MODE_API`.
SPARSE_ALL = 1; -
SPARSE_ANY
In order for an index entry to be added, the document must contain at least one of the fields specified in the index. Non-existent fields are treated as having a NULL value when generating index entries.
SPARSE_ANY = 2; -
DENSE
An index entry will be added regardless of whether the document contains any of the fields specified in the index. Non-existent fields are treated as having a NULL value when generating index entries.
DENSE = 3; -
UNRECOGNIZED
-
-
Field Details
-
DENSITY_UNSPECIFIED_VALUE
public static final int DENSITY_UNSPECIFIED_VALUEUnspecified. It will use database default setting. This value is input only.
DENSITY_UNSPECIFIED = 0;- See Also:
-
SPARSE_ALL_VALUE
public static final int SPARSE_ALL_VALUEIn order for an index entry to be added, the document must contain all fields specified in the index. This is the only allowed value for indexes having ApiScope `ANY_API` and `DATASTORE_MODE_API`.
SPARSE_ALL = 1;- See Also:
-
SPARSE_ANY_VALUE
public static final int SPARSE_ANY_VALUEIn order for an index entry to be added, the document must contain at least one of the fields specified in the index. Non-existent fields are treated as having a NULL value when generating index entries.
SPARSE_ANY = 2;- See Also:
-
DENSE_VALUE
public static final int DENSE_VALUEAn index entry will be added regardless of whether the document contains any of the fields specified in the index. Non-existent fields are treated as having a NULL value when generating index entries.
DENSE = 3;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-