Enum QueryMode

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

public enum QueryMode extends Enum<QueryMode> implements com.google.protobuf.ProtocolMessageEnum
 The mode in which the query request must be processed.
 
Protobuf enum google.datastore.v1.QueryMode
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The default mode.
    This mode returns only the query plan, without any results or execution statistics information.
    This mode returns both the query plan and the execution statistics along with the results.
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The default mode.
    static final int
    This mode returns only the query plan, without any results or execution statistics information.
    static final int
    This mode returns both the query plan and the execution statistics along with the results.
  • Method Summary

    Modifier and Type
    Method
    Description
    static QueryMode
    forNumber(int value)
     
    static final com.google.protobuf.Descriptors.EnumDescriptor
     
    final com.google.protobuf.Descriptors.EnumDescriptor
     
    final int
     
    final com.google.protobuf.Descriptors.EnumValueDescriptor
     
    static com.google.protobuf.Internal.EnumLiteMap<QueryMode>
     
    static QueryMode
    valueOf(int value)
    Deprecated.
    static QueryMode
    valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
    Returns the enum constant of this type with the specified name.
    static QueryMode
    Returns the enum constant of this type with the specified name.
    static QueryMode[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NORMAL

      public static final QueryMode NORMAL
       The default mode. Only the query results are returned.
       
      NORMAL = 0;
    • PLAN

      public static final QueryMode PLAN
       This mode returns only the query plan, without any results or execution
       statistics information.
       
      PLAN = 1;
    • PROFILE

      public static final QueryMode PROFILE
       This mode returns both the query plan and the execution statistics along
       with the results.
       
      PROFILE = 2;
    • UNRECOGNIZED

      public static final QueryMode UNRECOGNIZED
  • Field Details

    • NORMAL_VALUE

      public static final int NORMAL_VALUE
       The default mode. Only the query results are returned.
       
      NORMAL = 0;
      See Also:
    • PLAN_VALUE

      public static final int PLAN_VALUE
       This mode returns only the query plan, without any results or execution
       statistics information.
       
      PLAN = 1;
      See Also:
    • PROFILE_VALUE

      public static final int PROFILE_VALUE
       This mode returns both the query plan and the execution statistics along
       with the results.
       
      PROFILE = 2;
      See Also:
  • Method Details

    • values

      public static QueryMode[] 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 QueryMode 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 QueryMode 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 QueryMode 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<QueryMode> 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 QueryMode 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