Package org.opensearch.protobufs
Enum Class TextQueryType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<TextQueryType>,Constable
public enum TextQueryType
extends Enum<TextQueryType>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
org.opensearch.protobufs.TextQueryType-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTEXT_QUERY_TYPE_BEST_FIELDS = 1;TEXT_QUERY_TYPE_BOOL_PREFIX = 2;TEXT_QUERY_TYPE_CROSS_FIELDS = 3;TEXT_QUERY_TYPE_MOST_FIELDS = 4;TEXT_QUERY_TYPE_PHRASE = 5;TEXT_QUERY_TYPE_PHRASE_PREFIX = 6;TEXT_QUERY_TYPE_UNSPECIFIED = 0; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intTEXT_QUERY_TYPE_BEST_FIELDS = 1;static final intTEXT_QUERY_TYPE_BOOL_PREFIX = 2;static final intTEXT_QUERY_TYPE_CROSS_FIELDS = 3;static final intTEXT_QUERY_TYPE_MOST_FIELDS = 4;static final intTEXT_QUERY_TYPE_PHRASE_PREFIX = 6;static final intTEXT_QUERY_TYPE_PHRASE = 5;static final intTEXT_QUERY_TYPE_UNSPECIFIED = 0; -
Method Summary
Modifier and TypeMethodDescriptionstatic TextQueryTypeforNumber(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<TextQueryType> static TextQueryTypevalueOf(int value) Deprecated.static TextQueryTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static TextQueryTypeReturns the enum constant of this class with the specified name.static TextQueryType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TEXT_QUERY_TYPE_UNSPECIFIED
TEXT_QUERY_TYPE_UNSPECIFIED = 0; -
TEXT_QUERY_TYPE_BEST_FIELDS
TEXT_QUERY_TYPE_BEST_FIELDS = 1; -
TEXT_QUERY_TYPE_BOOL_PREFIX
TEXT_QUERY_TYPE_BOOL_PREFIX = 2; -
TEXT_QUERY_TYPE_CROSS_FIELDS
TEXT_QUERY_TYPE_CROSS_FIELDS = 3; -
TEXT_QUERY_TYPE_MOST_FIELDS
TEXT_QUERY_TYPE_MOST_FIELDS = 4; -
TEXT_QUERY_TYPE_PHRASE
TEXT_QUERY_TYPE_PHRASE = 5; -
TEXT_QUERY_TYPE_PHRASE_PREFIX
TEXT_QUERY_TYPE_PHRASE_PREFIX = 6; -
UNRECOGNIZED
-
-
Field Details
-
TEXT_QUERY_TYPE_UNSPECIFIED_VALUE
public static final int TEXT_QUERY_TYPE_UNSPECIFIED_VALUETEXT_QUERY_TYPE_UNSPECIFIED = 0;- See Also:
-
TEXT_QUERY_TYPE_BEST_FIELDS_VALUE
public static final int TEXT_QUERY_TYPE_BEST_FIELDS_VALUETEXT_QUERY_TYPE_BEST_FIELDS = 1;- See Also:
-
TEXT_QUERY_TYPE_BOOL_PREFIX_VALUE
public static final int TEXT_QUERY_TYPE_BOOL_PREFIX_VALUETEXT_QUERY_TYPE_BOOL_PREFIX = 2;- See Also:
-
TEXT_QUERY_TYPE_CROSS_FIELDS_VALUE
public static final int TEXT_QUERY_TYPE_CROSS_FIELDS_VALUETEXT_QUERY_TYPE_CROSS_FIELDS = 3;- See Also:
-
TEXT_QUERY_TYPE_MOST_FIELDS_VALUE
public static final int TEXT_QUERY_TYPE_MOST_FIELDS_VALUETEXT_QUERY_TYPE_MOST_FIELDS = 4;- See Also:
-
TEXT_QUERY_TYPE_PHRASE_VALUE
public static final int TEXT_QUERY_TYPE_PHRASE_VALUETEXT_QUERY_TYPE_PHRASE = 5;- See Also:
-
TEXT_QUERY_TYPE_PHRASE_PREFIX_VALUE
public static final int TEXT_QUERY_TYPE_PHRASE_PREFIX_VALUETEXT_QUERY_TYPE_PHRASE_PREFIX = 6;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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 class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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 class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-