All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yelp.nrtsearch.server.grpc.RegexpFlag Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yelp/nrtsearch/search.proto

// Protobuf Java Version: 3.25.3
package com.yelp.nrtsearch.server.grpc;

/**
 * 
 * Enum for RegexpQuery flags
 * 
* * Protobuf enum {@code luceneserver.RegexpFlag} */ public enum RegexpFlag implements com.google.protobuf.ProtocolMessageEnum { /** *
   * Syntax flag, enables all optional regexp syntax.
   * 
* * REGEXP_ALL = 0; */ REGEXP_ALL(0), /** *
   * Syntax flag, enables anystring (@).
   * 
* * REGEXP_ANYSTRING = 1; */ REGEXP_ANYSTRING(1), /** *
   * Syntax flag, enables named automata (<identifier>).
   * 
* * REGEXP_AUTOMATON = 2; */ REGEXP_AUTOMATON(2), /** *
   * Syntax flag, enables complement (~).
   * 
* * REGEXP_COMPLEMENT = 3; */ REGEXP_COMPLEMENT(3), /** *
   * Syntax flag, enables empty language (#).
   * 
* * REGEXP_EMPTY = 4; */ REGEXP_EMPTY(4), /** *
   * Syntax flag, enables intersection (&).
   * 
* * REGEXP_INTERSECTION = 5; */ REGEXP_INTERSECTION(5), /** *
   * Syntax flag, enables numerical intervals ( <n-m>).
   * 
* * REGEXP_INTERVAL = 6; */ REGEXP_INTERVAL(6), /** *
   * Syntax flag, enables no optional regexp syntax.
   * 
* * REGEXP_NONE = 7; */ REGEXP_NONE(7), UNRECOGNIZED(-1), ; /** *
   * Syntax flag, enables all optional regexp syntax.
   * 
* * REGEXP_ALL = 0; */ public static final int REGEXP_ALL_VALUE = 0; /** *
   * Syntax flag, enables anystring (@).
   * 
* * REGEXP_ANYSTRING = 1; */ public static final int REGEXP_ANYSTRING_VALUE = 1; /** *
   * Syntax flag, enables named automata (<identifier>).
   * 
* * REGEXP_AUTOMATON = 2; */ public static final int REGEXP_AUTOMATON_VALUE = 2; /** *
   * Syntax flag, enables complement (~).
   * 
* * REGEXP_COMPLEMENT = 3; */ public static final int REGEXP_COMPLEMENT_VALUE = 3; /** *
   * Syntax flag, enables empty language (#).
   * 
* * REGEXP_EMPTY = 4; */ public static final int REGEXP_EMPTY_VALUE = 4; /** *
   * Syntax flag, enables intersection (&).
   * 
* * REGEXP_INTERSECTION = 5; */ public static final int REGEXP_INTERSECTION_VALUE = 5; /** *
   * Syntax flag, enables numerical intervals ( <n-m>).
   * 
* * REGEXP_INTERVAL = 6; */ public static final int REGEXP_INTERVAL_VALUE = 6; /** *
   * Syntax flag, enables no optional regexp syntax.
   * 
* * REGEXP_NONE = 7; */ public static final int REGEXP_NONE_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RegexpFlag valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static RegexpFlag forNumber(int value) { switch (value) { case 0: return REGEXP_ALL; case 1: return REGEXP_ANYSTRING; case 2: return REGEXP_AUTOMATON; case 3: return REGEXP_COMPLEMENT; case 4: return REGEXP_EMPTY; case 5: return REGEXP_INTERSECTION; case 6: return REGEXP_INTERVAL; case 7: return REGEXP_NONE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< RegexpFlag> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RegexpFlag findValueByNumber(int number) { return RegexpFlag.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.getDescriptor().getEnumTypes().get(3); } private static final RegexpFlag[] VALUES = values(); public static RegexpFlag valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private RegexpFlag(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:luceneserver.RegexpFlag) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy