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

com.yelp.nrtsearch.server.grpc.IndexOptions 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/luceneserver.proto

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

/**
 * 
 *How the tokens should be indexed.
 * 
* * Protobuf enum {@code luceneserver.IndexOptions} */ public enum IndexOptions implements com.google.protobuf.ProtocolMessageEnum { /** *
   * Use field default index options: ATOM=DOCS, TEXT=DOCS_FREQS_POSITIONS
   * 
* * DEFAULT = 0; */ DEFAULT(0), /** *
   * Index only doc ids (for binary search).
   * 
* * DOCS = 1; */ DOCS(1), /** *
   * Index doc ids and term frequencies.
   * 
* * DOCS_FREQS = 2; */ DOCS_FREQS(2), /** *
   * Index doc ids, term frequencies and positions.
   * 
* * DOCS_FREQS_POSITIONS = 3; */ DOCS_FREQS_POSITIONS(3), /** *
   * Index doc ids, term frequencies, positions and offsets.
   * 
* * DOCS_FREQS_POSITIONS_OFFSETS = 4; */ DOCS_FREQS_POSITIONS_OFFSETS(4), UNRECOGNIZED(-1), ; /** *
   * Use field default index options: ATOM=DOCS, TEXT=DOCS_FREQS_POSITIONS
   * 
* * DEFAULT = 0; */ public static final int DEFAULT_VALUE = 0; /** *
   * Index only doc ids (for binary search).
   * 
* * DOCS = 1; */ public static final int DOCS_VALUE = 1; /** *
   * Index doc ids and term frequencies.
   * 
* * DOCS_FREQS = 2; */ public static final int DOCS_FREQS_VALUE = 2; /** *
   * Index doc ids, term frequencies and positions.
   * 
* * DOCS_FREQS_POSITIONS = 3; */ public static final int DOCS_FREQS_POSITIONS_VALUE = 3; /** *
   * Index doc ids, term frequencies, positions and offsets.
   * 
* * DOCS_FREQS_POSITIONS_OFFSETS = 4; */ public static final int DOCS_FREQS_POSITIONS_OFFSETS_VALUE = 4; 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 IndexOptions 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 IndexOptions forNumber(int value) { switch (value) { case 0: return DEFAULT; case 1: return DOCS; case 2: return DOCS_FREQS; case 3: return DOCS_FREQS_POSITIONS; case 4: return DOCS_FREQS_POSITIONS_OFFSETS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< IndexOptions> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public IndexOptions findValueByNumber(int number) { return IndexOptions.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.LuceneServerProto.getDescriptor().getEnumTypes().get(1); } private static final IndexOptions[] VALUES = values(); public static IndexOptions 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 IndexOptions(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:luceneserver.IndexOptions) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy