Enum PropertyFilter.Operator

java.lang.Object
java.lang.Enum<PropertyFilter.Operator>
com.google.datastore.v1.PropertyFilter.Operator
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<PropertyFilter.Operator>
Enclosing class:
PropertyFilter

public static enum PropertyFilter.Operator extends Enum<PropertyFilter.Operator> implements com.google.protobuf.ProtocolMessageEnum
 A property filter operator.
 
Protobuf enum google.datastore.v1.PropertyFilter.Operator
  • Enum Constant Details

    • OPERATOR_UNSPECIFIED

      public static final PropertyFilter.Operator OPERATOR_UNSPECIFIED
       Unspecified. This value must not be used.
       
      OPERATOR_UNSPECIFIED = 0;
    • LESS_THAN

      public static final PropertyFilter.Operator LESS_THAN
       The given `property` is less than the given `value`.
      
       Requires:
      
       * That `property` comes first in `order_by`.
       
      LESS_THAN = 1;
    • LESS_THAN_OR_EQUAL

      public static final PropertyFilter.Operator LESS_THAN_OR_EQUAL
       The given `property` is less than or equal to the given `value`.
      
       Requires:
      
       * That `property` comes first in `order_by`.
       
      LESS_THAN_OR_EQUAL = 2;
    • GREATER_THAN

      public static final PropertyFilter.Operator GREATER_THAN
       The given `property` is greater than the given `value`.
      
       Requires:
      
       * That `property` comes first in `order_by`.
       
      GREATER_THAN = 3;
    • GREATER_THAN_OR_EQUAL

      public static final PropertyFilter.Operator GREATER_THAN_OR_EQUAL
       The given `property` is greater than or equal to the given `value`.
      
       Requires:
      
       * That `property` comes first in `order_by`.
       
      GREATER_THAN_OR_EQUAL = 4;
    • EQUAL

      public static final PropertyFilter.Operator EQUAL
       The given `property` is equal to the given `value`.
       
      EQUAL = 5;
    • IN

      public static final PropertyFilter.Operator IN
       The given `property` 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` is in the same query.
       
      IN = 6;
    • NOT_EQUAL

      public static final PropertyFilter.Operator NOT_EQUAL
       The given `property` is not equal to the given `value`.
      
       Requires:
      
       * No other `NOT_EQUAL` or `NOT_IN` is in the same query.
       * That `property` comes first in the `order_by`.
       
      NOT_EQUAL = 9;
    • HAS_ANCESTOR

      public static final PropertyFilter.Operator HAS_ANCESTOR
       Limit the result set to the given entity and its descendants.
      
       Requires:
      
       * That `value` is an entity key.
       * All evaluated disjunctions must have the same `HAS_ANCESTOR` filter.
       
      HAS_ANCESTOR = 11;
    • NOT_IN

      public static final PropertyFilter.Operator NOT_IN
       The value of the `property` is not in the given array.
      
       Requires:
      
       * That `value` is a non-empty `ArrayValue` with at most 10 values.
       * No other `OR`, `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query.
       * That `field` comes first in the `order_by`.
       
      NOT_IN = 13;
    • UNRECOGNIZED

      public static final PropertyFilter.Operator UNRECOGNIZED
  • Field Details

    • OPERATOR_UNSPECIFIED_VALUE

      public static final int OPERATOR_UNSPECIFIED_VALUE
       Unspecified. This value must not be used.
       
      OPERATOR_UNSPECIFIED = 0;
      See Also:
    • LESS_THAN_VALUE

      public static final int LESS_THAN_VALUE
       The given `property` is less than the given `value`.
      
       Requires:
      
       * That `property` comes first in `order_by`.
       
      LESS_THAN = 1;
      See Also:
    • LESS_THAN_OR_EQUAL_VALUE

      public static final int LESS_THAN_OR_EQUAL_VALUE
       The given `property` is less than or equal to the given `value`.
      
       Requires:
      
       * That `property` comes first in `order_by`.
       
      LESS_THAN_OR_EQUAL = 2;
      See Also:
    • GREATER_THAN_VALUE

      public static final int GREATER_THAN_VALUE
       The given `property` is greater than the given `value`.
      
       Requires:
      
       * That `property` comes first in `order_by`.
       
      GREATER_THAN = 3;
      See Also:
    • GREATER_THAN_OR_EQUAL_VALUE

      public static final int GREATER_THAN_OR_EQUAL_VALUE
       The given `property` is greater than or equal to the given `value`.
      
       Requires:
      
       * That `property` comes first in `order_by`.
       
      GREATER_THAN_OR_EQUAL = 4;
      See Also:
    • EQUAL_VALUE

      public static final int EQUAL_VALUE
       The given `property` is equal to the given `value`.
       
      EQUAL = 5;
      See Also:
    • IN_VALUE

      public static final int IN_VALUE
       The given `property` 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` is in the same query.
       
      IN = 6;
      See Also:
    • NOT_EQUAL_VALUE

      public static final int NOT_EQUAL_VALUE
       The given `property` is not equal to the given `value`.
      
       Requires:
      
       * No other `NOT_EQUAL` or `NOT_IN` is in the same query.
       * That `property` comes first in the `order_by`.
       
      NOT_EQUAL = 9;
      See Also:
    • HAS_ANCESTOR_VALUE

      public static final int HAS_ANCESTOR_VALUE
       Limit the result set to the given entity and its descendants.
      
       Requires:
      
       * That `value` is an entity key.
       * All evaluated disjunctions must have the same `HAS_ANCESTOR` filter.
       
      HAS_ANCESTOR = 11;
      See Also:
    • NOT_IN_VALUE

      public static final int NOT_IN_VALUE
       The value of the `property` is not in the given array.
      
       Requires:
      
       * That `value` is a non-empty `ArrayValue` with at most 10 values.
       * No other `OR`, `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query.
       * That `field` comes first in the `order_by`.
       
      NOT_IN = 13;
      See Also:
  • Method Details

    • values

      public static PropertyFilter.Operator[] 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

      public static PropertyFilter.Operator valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static PropertyFilter.Operator valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static PropertyFilter.Operator forNumber(int value)
      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<PropertyFilter.Operator> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static PropertyFilter.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 name
      NullPointerException - if the argument is null