Package com.google.firestore.v1
Enum StructuredQuery.FieldFilter.Operator
java.lang.Object
java.lang.Enum<StructuredQuery.FieldFilter.Operator>
com.google.firestore.v1.StructuredQuery.FieldFilter.Operator
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<StructuredQuery.FieldFilter.Operator>
- Enclosing class:
- StructuredQuery.FieldFilter
public static enum StructuredQuery.FieldFilter.Operator
extends Enum<StructuredQuery.FieldFilter.Operator>
implements com.google.protobuf.ProtocolMessageEnum
A field filter operator.Protobuf enum
google.firestore.v1.StructuredQuery.FieldFilter.Operator-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe given `field` is an array that contains the given `value`.The given `field` is an array that contains any of the values in the given array.The given `field` is equal to the given `value`.The given `field` is greater than the given `value`.The given `field` is greater than or equal to the given `value`.The given `field` is equal to at least one value in the given array.The given `field` is less than the given `value`.The given `field` is less than or equal to the given `value`.The given `field` is not equal to the given `value`.The value of the `field` is not in the given array.Unspecified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe given `field` is an array that contains any of the values in the given array.static final intThe given `field` is an array that contains the given `value`.static final intThe given `field` is equal to the given `value`.static final intThe given `field` is greater than or equal to the given `value`.static final intThe given `field` is greater than the given `value`.static final intThe given `field` is equal to at least one value in the given array.static final intThe given `field` is less than or equal to the given `value`.static final intThe given `field` is less than the given `value`.static final intThe given `field` is not equal to the given `value`.static final intThe value of the `field` is not in the given array.static final intUnspecified. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(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<StructuredQuery.FieldFilter.Operator>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.static StructuredQuery.FieldFilter.Operator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OPERATOR_UNSPECIFIED
Unspecified. This value must not be used.
OPERATOR_UNSPECIFIED = 0; -
LESS_THAN
The given `field` is less than the given `value`. Requires: * That `field` come first in `order_by`.
LESS_THAN = 1; -
LESS_THAN_OR_EQUAL
The given `field` is less than or equal to the given `value`. Requires: * That `field` come first in `order_by`.
LESS_THAN_OR_EQUAL = 2; -
GREATER_THAN
The given `field` is greater than the given `value`. Requires: * That `field` come first in `order_by`.
GREATER_THAN = 3; -
GREATER_THAN_OR_EQUAL
The given `field` is greater than or equal to the given `value`. Requires: * That `field` come first in `order_by`.
GREATER_THAN_OR_EQUAL = 4; -
EQUAL
The given `field` is equal to the given `value`.
EQUAL = 5; -
NOT_EQUAL
The given `field` is not equal to the given `value`. Requires: * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes first in the `order_by`.
NOT_EQUAL = 6; -
ARRAY_CONTAINS
The given `field` is an array that contains the given `value`.
ARRAY_CONTAINS = 7; -
IN
The given `field` is equal to at least one value in the given array. Requires: * That `value` is a non-empty `ArrayValue`, subject to disjunction limits. * No `NOT_IN` filters in the same query.
IN = 8; -
ARRAY_CONTAINS_ANY
The given `field` is an array that contains any of the values in the given array. Requires: * That `value` is a non-empty `ArrayValue`, subject to disjunction limits. * No other `ARRAY_CONTAINS_ANY` filters within the same disjunction. * No `NOT_IN` filters in the same query.
ARRAY_CONTAINS_ANY = 9; -
NOT_IN
The value of the `field` is not in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `OR`, `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`, `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes first in the `order_by`.
NOT_IN = 10; -
UNRECOGNIZED
-
-
Field Details
-
OPERATOR_UNSPECIFIED_VALUE
public static final int OPERATOR_UNSPECIFIED_VALUEUnspecified. This value must not be used.
OPERATOR_UNSPECIFIED = 0;- See Also:
-
LESS_THAN_VALUE
public static final int LESS_THAN_VALUEThe given `field` is less than the given `value`. Requires: * That `field` come first in `order_by`.
LESS_THAN = 1;- See Also:
-
LESS_THAN_OR_EQUAL_VALUE
public static final int LESS_THAN_OR_EQUAL_VALUEThe given `field` is less than or equal to the given `value`. Requires: * That `field` come first in `order_by`.
LESS_THAN_OR_EQUAL = 2;- See Also:
-
GREATER_THAN_VALUE
public static final int GREATER_THAN_VALUEThe given `field` is greater than the given `value`. Requires: * That `field` come first in `order_by`.
GREATER_THAN = 3;- See Also:
-
GREATER_THAN_OR_EQUAL_VALUE
public static final int GREATER_THAN_OR_EQUAL_VALUEThe given `field` is greater than or equal to the given `value`. Requires: * That `field` come first in `order_by`.
GREATER_THAN_OR_EQUAL = 4;- See Also:
-
EQUAL_VALUE
public static final int EQUAL_VALUEThe given `field` is equal to the given `value`.
EQUAL = 5;- See Also:
-
NOT_EQUAL_VALUE
public static final int NOT_EQUAL_VALUEThe given `field` is not equal to the given `value`. Requires: * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes first in the `order_by`.
NOT_EQUAL = 6;- See Also:
-
ARRAY_CONTAINS_VALUE
public static final int ARRAY_CONTAINS_VALUEThe given `field` is an array that contains the given `value`.
ARRAY_CONTAINS = 7;- See Also:
-
IN_VALUE
public static final int IN_VALUEThe given `field` is equal to at least one value in the given array. Requires: * That `value` is a non-empty `ArrayValue`, subject to disjunction limits. * No `NOT_IN` filters in the same query.
IN = 8;- See Also:
-
ARRAY_CONTAINS_ANY_VALUE
public static final int ARRAY_CONTAINS_ANY_VALUEThe given `field` is an array that contains any of the values in the given array. Requires: * That `value` is a non-empty `ArrayValue`, subject to disjunction limits. * No other `ARRAY_CONTAINS_ANY` filters within the same disjunction. * No `NOT_IN` filters in the same query.
ARRAY_CONTAINS_ANY = 9;- See Also:
-
NOT_IN_VALUE
public static final int NOT_IN_VALUEThe value of the `field` is not in the given array. Requires: * That `value` is a non-empty `ArrayValue` with at most 10 values. * No other `OR`, `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`, `IS_NOT_NULL`, or `IS_NOT_NAN`. * That `field` comes first in the `order_by`.
NOT_IN = 10;- 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
public static com.google.protobuf.Internal.EnumLiteMap<StructuredQuery.FieldFilter.Operator> 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
public static StructuredQuery.FieldFilter.Operator valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) 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
-