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

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

The 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;

/**
 * Protobuf type {@code luceneserver.Field}
 */
public final class Field extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:luceneserver.Field)
    FieldOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Field.newBuilder() to construct.
  private Field(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private Field() {
    name_ = "";
    type_ = 0;
    dateTimeFormat_ = "";
    postingsFormat_ = "";
    docValuesFormat_ = "";
    indexOptions_ = 0;
    termVectors_ = 0;
    similarity_ = "";
    facet_ = 0;
    facetIndexFieldName_ = "";
    childFields_ = java.util.Collections.emptyList();
    vectorSimilarity_ = "";
    textDocValuesType_ = 0;
    vectorElementType_ = 0;
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new Field();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_Field_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_Field_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.yelp.nrtsearch.server.grpc.Field.class, com.yelp.nrtsearch.server.grpc.Field.Builder.class);
  }

  private int bitField0_;
  public static final int NAME_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   * 
   * name of the field
   * 
* * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** *
   * name of the field
   * 
* * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** * .luceneserver.FieldType type = 2; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .luceneserver.FieldType type = 2; * @return The type. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.FieldType getType() { com.yelp.nrtsearch.server.grpc.FieldType result = com.yelp.nrtsearch.server.grpc.FieldType.forNumber(type_); return result == null ? com.yelp.nrtsearch.server.grpc.FieldType.UNRECOGNIZED : result; } public static final int SEARCH_FIELD_NUMBER = 3; private boolean search_ = false; /** *
   * True if the value should be available for searching (or numeric range searching, for a numeric field).
   * 
* * bool search = 3; * @return The search. */ @java.lang.Override public boolean getSearch() { return search_; } public static final int STORE_FIELD_NUMBER = 4; private boolean store_ = false; /** *
   * True if the value should be stored.
   * 
* * bool store = 4; * @return The store. */ @java.lang.Override public boolean getStore() { return store_; } public static final int STOREDOCVALUES_FIELD_NUMBER = 5; private boolean storeDocValues_ = false; /** *
   * Whether to index the value into doc values.
   * 
* * bool storeDocValues = 5; * @return The storeDocValues. */ @java.lang.Override public boolean getStoreDocValues() { return storeDocValues_; } public static final int SORT_FIELD_NUMBER = 6; private boolean sort_ = false; /** *
   * True if the value should be indexed into doc values for sorting.
   * 
* * bool sort = 6 [deprecated = true]; * @deprecated luceneserver.Field.sort is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=548 * @return The sort. */ @java.lang.Override @java.lang.Deprecated public boolean getSort() { return sort_; } public static final int TOKENIZE_FIELD_NUMBER = 7; private boolean tokenize_ = false; /** *
   * This is now determined from the field type
   * 
* * bool tokenize = 7 [deprecated = true]; * @deprecated luceneserver.Field.tokenize is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=549 * @return The tokenize. */ @java.lang.Override @java.lang.Deprecated public boolean getTokenize() { return tokenize_; } public static final int GROUP_FIELD_NUMBER = 8; private boolean group_ = false; /** *
   * True if the value should be indexed into doc values for grouping.
   * 
* * bool group = 8 [deprecated = true]; * @deprecated luceneserver.Field.group is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=550 * @return The group. */ @java.lang.Override @java.lang.Deprecated public boolean getGroup() { return group_; } public static final int MULTIVALUED_FIELD_NUMBER = 9; private boolean multiValued_ = false; /** *
   * True if this field may sometimes have more than one value.
   * 
* * bool multiValued = 9; * @return The multiValued. */ @java.lang.Override public boolean getMultiValued() { return multiValued_; } public static final int HIGHLIGHT_FIELD_NUMBER = 10; private boolean highlight_ = false; /** *
   * This parameter would be ignored
   * 
* * bool highlight = 10 [deprecated = true]; * @deprecated luceneserver.Field.highlight is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=552 * @return The highlight. */ @java.lang.Override @java.lang.Deprecated public boolean getHighlight() { return highlight_; } public static final int OMITNORMS_FIELD_NUMBER = 11; private boolean omitNorms_ = false; /** *
   * True if norms are omitted.
   * 
* * bool omitNorms = 11; * @return The omitNorms. */ @java.lang.Override public boolean getOmitNorms() { return omitNorms_; } public static final int DATETIMEFORMAT_FIELD_NUMBER = 12; @SuppressWarnings("serial") private volatile java.lang.Object dateTimeFormat_ = ""; /** *
   * Format string used to parse datetime fields, supported values are: 1) DateTimeFormatter format 2) "epoch_millis" (datetime value is epoch timestamp) 3) "strict_date_optional_time" (date with optional time in pattern of "yyyy-MM-dd['T'HH:mm:ss[.SSS]]")
   * 
* * string dateTimeFormat = 12; * @return The dateTimeFormat. */ @java.lang.Override public java.lang.String getDateTimeFormat() { java.lang.Object ref = dateTimeFormat_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dateTimeFormat_ = s; return s; } } /** *
   * Format string used to parse datetime fields, supported values are: 1) DateTimeFormatter format 2) "epoch_millis" (datetime value is epoch timestamp) 3) "strict_date_optional_time" (date with optional time in pattern of "yyyy-MM-dd['T'HH:mm:ss[.SSS]]")
   * 
* * string dateTimeFormat = 12; * @return The bytes for dateTimeFormat. */ @java.lang.Override public com.google.protobuf.ByteString getDateTimeFormatBytes() { java.lang.Object ref = dateTimeFormat_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dateTimeFormat_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int POSTINGSFORMAT_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object postingsFormat_ = ""; /** *
   * Which PostingsFormat should be used to index this field.
   * 
* * string postingsFormat = 13; * @return The postingsFormat. */ @java.lang.Override public java.lang.String getPostingsFormat() { java.lang.Object ref = postingsFormat_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postingsFormat_ = s; return s; } } /** *
   * Which PostingsFormat should be used to index this field.
   * 
* * string postingsFormat = 13; * @return The bytes for postingsFormat. */ @java.lang.Override public com.google.protobuf.ByteString getPostingsFormatBytes() { java.lang.Object ref = postingsFormat_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); postingsFormat_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DOCVALUESFORMAT_FIELD_NUMBER = 14; @SuppressWarnings("serial") private volatile java.lang.Object docValuesFormat_ = ""; /** *
   * Which DocValuesFormat should be used to index this field.
   * 
* * string docValuesFormat = 14; * @return The docValuesFormat. */ @java.lang.Override public java.lang.String getDocValuesFormat() { java.lang.Object ref = docValuesFormat_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docValuesFormat_ = s; return s; } } /** *
   * Which DocValuesFormat should be used to index this field.
   * 
* * string docValuesFormat = 14; * @return The bytes for docValuesFormat. */ @java.lang.Override public com.google.protobuf.ByteString getDocValuesFormatBytes() { java.lang.Object ref = docValuesFormat_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docValuesFormat_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INDEXOPTIONS_FIELD_NUMBER = 15; private int indexOptions_ = 0; /** *
   *How the tokens should be indexed.
   * 
* * .luceneserver.IndexOptions indexOptions = 15; * @return The enum numeric value on the wire for indexOptions. */ @java.lang.Override public int getIndexOptionsValue() { return indexOptions_; } /** *
   *How the tokens should be indexed.
   * 
* * .luceneserver.IndexOptions indexOptions = 15; * @return The indexOptions. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.IndexOptions getIndexOptions() { com.yelp.nrtsearch.server.grpc.IndexOptions result = com.yelp.nrtsearch.server.grpc.IndexOptions.forNumber(indexOptions_); return result == null ? com.yelp.nrtsearch.server.grpc.IndexOptions.UNRECOGNIZED : result; } public static final int SCRIPT_FIELD_NUMBER = 16; private com.yelp.nrtsearch.server.grpc.Script script_; /** *
   * The script definition defining a virtual field's value (only used with type=virtual).
   * 
* * .luceneserver.Script script = 16; * @return Whether the script field is set. */ @java.lang.Override public boolean hasScript() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The script definition defining a virtual field's value (only used with type=virtual).
   * 
* * .luceneserver.Script script = 16; * @return The script. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Script getScript() { return script_ == null ? com.yelp.nrtsearch.server.grpc.Script.getDefaultInstance() : script_; } /** *
   * The script definition defining a virtual field's value (only used with type=virtual).
   * 
* * .luceneserver.Script script = 16; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.ScriptOrBuilder getScriptOrBuilder() { return script_ == null ? com.yelp.nrtsearch.server.grpc.Script.getDefaultInstance() : script_; } public static final int ANALYZER_FIELD_NUMBER = 17; private com.yelp.nrtsearch.server.grpc.Analyzer analyzer_; /** *
   *TODO make analyzers message types i.e. StandardAnalyzer, EnglishAnalyzer, CustomAnalyzer etc
   * 
* * .luceneserver.Analyzer analyzer = 17; * @return Whether the analyzer field is set. */ @java.lang.Override public boolean hasAnalyzer() { return ((bitField0_ & 0x00000002) != 0); } /** *
   *TODO make analyzers message types i.e. StandardAnalyzer, EnglishAnalyzer, CustomAnalyzer etc
   * 
* * .luceneserver.Analyzer analyzer = 17; * @return The analyzer. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Analyzer getAnalyzer() { return analyzer_ == null ? com.yelp.nrtsearch.server.grpc.Analyzer.getDefaultInstance() : analyzer_; } /** *
   *TODO make analyzers message types i.e. StandardAnalyzer, EnglishAnalyzer, CustomAnalyzer etc
   * 
* * .luceneserver.Analyzer analyzer = 17; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.AnalyzerOrBuilder getAnalyzerOrBuilder() { return analyzer_ == null ? com.yelp.nrtsearch.server.grpc.Analyzer.getDefaultInstance() : analyzer_; } public static final int INDEXANALYZER_FIELD_NUMBER = 18; private com.yelp.nrtsearch.server.grpc.Analyzer indexAnalyzer_; /** *
   * Analyzer to use for this field during indexing.
   * 
* * .luceneserver.Analyzer indexAnalyzer = 18; * @return Whether the indexAnalyzer field is set. */ @java.lang.Override public boolean hasIndexAnalyzer() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Analyzer to use for this field during indexing.
   * 
* * .luceneserver.Analyzer indexAnalyzer = 18; * @return The indexAnalyzer. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Analyzer getIndexAnalyzer() { return indexAnalyzer_ == null ? com.yelp.nrtsearch.server.grpc.Analyzer.getDefaultInstance() : indexAnalyzer_; } /** *
   * Analyzer to use for this field during indexing.
   * 
* * .luceneserver.Analyzer indexAnalyzer = 18; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.AnalyzerOrBuilder getIndexAnalyzerOrBuilder() { return indexAnalyzer_ == null ? com.yelp.nrtsearch.server.grpc.Analyzer.getDefaultInstance() : indexAnalyzer_; } public static final int SEARCHANALYZER_FIELD_NUMBER = 19; private com.yelp.nrtsearch.server.grpc.Analyzer searchAnalyzer_; /** *
   *Analyzer to use for this field during searching.
   * 
* * .luceneserver.Analyzer searchAnalyzer = 19; * @return Whether the searchAnalyzer field is set. */ @java.lang.Override public boolean hasSearchAnalyzer() { return ((bitField0_ & 0x00000008) != 0); } /** *
   *Analyzer to use for this field during searching.
   * 
* * .luceneserver.Analyzer searchAnalyzer = 19; * @return The searchAnalyzer. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Analyzer getSearchAnalyzer() { return searchAnalyzer_ == null ? com.yelp.nrtsearch.server.grpc.Analyzer.getDefaultInstance() : searchAnalyzer_; } /** *
   *Analyzer to use for this field during searching.
   * 
* * .luceneserver.Analyzer searchAnalyzer = 19; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.AnalyzerOrBuilder getSearchAnalyzerOrBuilder() { return searchAnalyzer_ == null ? com.yelp.nrtsearch.server.grpc.Analyzer.getDefaultInstance() : searchAnalyzer_; } public static final int TERMVECTORS_FIELD_NUMBER = 20; private int termVectors_ = 0; /** *
   * Whether/how term vectors should be indexed.
   * 
* * .luceneserver.TermVectors termVectors = 20; * @return The enum numeric value on the wire for termVectors. */ @java.lang.Override public int getTermVectorsValue() { return termVectors_; } /** *
   * Whether/how term vectors should be indexed.
   * 
* * .luceneserver.TermVectors termVectors = 20; * @return The termVectors. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.TermVectors getTermVectors() { com.yelp.nrtsearch.server.grpc.TermVectors result = com.yelp.nrtsearch.server.grpc.TermVectors.forNumber(termVectors_); return result == null ? com.yelp.nrtsearch.server.grpc.TermVectors.UNRECOGNIZED : result; } public static final int SIMILARITY_FIELD_NUMBER = 21; @SuppressWarnings("serial") private volatile java.lang.Object similarity_ = ""; /** *
   *TODO make similarity message types i.d. DefaultSimilarity, CustomSimilarity, BM25Similarity;
   * 
* * string similarity = 21; * @return The similarity. */ @java.lang.Override public java.lang.String getSimilarity() { java.lang.Object ref = similarity_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); similarity_ = s; return s; } } /** *
   *TODO make similarity message types i.d. DefaultSimilarity, CustomSimilarity, BM25Similarity;
   * 
* * string similarity = 21; * @return The bytes for similarity. */ @java.lang.Override public com.google.protobuf.ByteString getSimilarityBytes() { java.lang.Object ref = similarity_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); similarity_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FACET_FIELD_NUMBER = 22; private int facet_ = 0; /** *
   * Whether this field should index facets, and how.
   * 
* * .luceneserver.FacetType facet = 22; * @return The enum numeric value on the wire for facet. */ @java.lang.Override public int getFacetValue() { return facet_; } /** *
   * Whether this field should index facets, and how.
   * 
* * .luceneserver.FacetType facet = 22; * @return The facet. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.FacetType getFacet() { com.yelp.nrtsearch.server.grpc.FacetType result = com.yelp.nrtsearch.server.grpc.FacetType.forNumber(facet_); return result == null ? com.yelp.nrtsearch.server.grpc.FacetType.UNRECOGNIZED : result; } public static final int FACETINDEXFIELDNAME_FIELD_NUMBER = 23; @SuppressWarnings("serial") private volatile java.lang.Object facetIndexFieldName_ = ""; /** *
   * "Which underlying Lucene index field is used to hold any indexed taxonomy or sorted set doc values facets
   * 
* * string facetIndexFieldName = 23; * @return The facetIndexFieldName. */ @java.lang.Override public java.lang.String getFacetIndexFieldName() { java.lang.Object ref = facetIndexFieldName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); facetIndexFieldName_ = s; return s; } } /** *
   * "Which underlying Lucene index field is used to hold any indexed taxonomy or sorted set doc values facets
   * 
* * string facetIndexFieldName = 23; * @return The bytes for facetIndexFieldName. */ @java.lang.Override public com.google.protobuf.ByteString getFacetIndexFieldNameBytes() { java.lang.Object ref = facetIndexFieldName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); facetIndexFieldName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADDITIONALPROPERTIES_FIELD_NUMBER = 24; private com.google.protobuf.Struct additionalProperties_; /** *
   * Additional info needed to configure field, used for CUSTOM types.
   * 
* * .google.protobuf.Struct additionalProperties = 24; * @return Whether the additionalProperties field is set. */ @java.lang.Override public boolean hasAdditionalProperties() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Additional info needed to configure field, used for CUSTOM types.
   * 
* * .google.protobuf.Struct additionalProperties = 24; * @return The additionalProperties. */ @java.lang.Override public com.google.protobuf.Struct getAdditionalProperties() { return additionalProperties_ == null ? com.google.protobuf.Struct.getDefaultInstance() : additionalProperties_; } /** *
   * Additional info needed to configure field, used for CUSTOM types.
   * 
* * .google.protobuf.Struct additionalProperties = 24; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getAdditionalPropertiesOrBuilder() { return additionalProperties_ == null ? com.google.protobuf.Struct.getDefaultInstance() : additionalProperties_; } public static final int SIMILARITYPARAMS_FIELD_NUMBER = 25; private com.google.protobuf.Struct similarityParams_; /** *
   * Parameters for similarity implementation.
   * 
* * .google.protobuf.Struct similarityParams = 25; * @return Whether the similarityParams field is set. */ @java.lang.Override public boolean hasSimilarityParams() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Parameters for similarity implementation.
   * 
* * .google.protobuf.Struct similarityParams = 25; * @return The similarityParams. */ @java.lang.Override public com.google.protobuf.Struct getSimilarityParams() { return similarityParams_ == null ? com.google.protobuf.Struct.getDefaultInstance() : similarityParams_; } /** *
   * Parameters for similarity implementation.
   * 
* * .google.protobuf.Struct similarityParams = 25; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getSimilarityParamsOrBuilder() { return similarityParams_ == null ? com.google.protobuf.Struct.getDefaultInstance() : similarityParams_; } public static final int CHILDFIELDS_FIELD_NUMBER = 26; @SuppressWarnings("serial") private java.util.List childFields_; /** *
   * Child fields accessible by dot notation, index same data as parent
   * 
* * repeated .luceneserver.Field childFields = 26; */ @java.lang.Override public java.util.List getChildFieldsList() { return childFields_; } /** *
   * Child fields accessible by dot notation, index same data as parent
   * 
* * repeated .luceneserver.Field childFields = 26; */ @java.lang.Override public java.util.List getChildFieldsOrBuilderList() { return childFields_; } /** *
   * Child fields accessible by dot notation, index same data as parent
   * 
* * repeated .luceneserver.Field childFields = 26; */ @java.lang.Override public int getChildFieldsCount() { return childFields_.size(); } /** *
   * Child fields accessible by dot notation, index same data as parent
   * 
* * repeated .luceneserver.Field childFields = 26; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Field getChildFields(int index) { return childFields_.get(index); } /** *
   * Child fields accessible by dot notation, index same data as parent
   * 
* * repeated .luceneserver.Field childFields = 26; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.FieldOrBuilder getChildFieldsOrBuilder( int index) { return childFields_.get(index); } public static final int EAGERGLOBALORDINALS_FIELD_NUMBER = 27; private boolean eagerGlobalOrdinals_ = false; /** *
   * Compute facet global ordinals for this field up front, otherwise this is done lazily on first query. Currently only for SORTED_SET_DOC_VALUES facet type.
   * 
* * bool eagerGlobalOrdinals = 27; * @return The eagerGlobalOrdinals. */ @java.lang.Override public boolean getEagerGlobalOrdinals() { return eagerGlobalOrdinals_; } public static final int NESTEDDOC_FIELD_NUMBER = 28; private boolean nestedDoc_ = false; /** *
   * True if object data should be indexed as child documents
   * 
* * bool nestedDoc = 28; * @return The nestedDoc. */ @java.lang.Override public boolean getNestedDoc() { return nestedDoc_; } public static final int VECTORDIMENSIONS_FIELD_NUMBER = 29; private int vectorDimensions_ = 0; /** *
   * Dimensions for vector field type
   * 
* * int32 vectorDimensions = 29; * @return The vectorDimensions. */ @java.lang.Override public int getVectorDimensions() { return vectorDimensions_; } public static final int EAGERFIELDGLOBALORDINALS_FIELD_NUMBER = 30; private boolean eagerFieldGlobalOrdinals_ = false; /** *
   * If field based global ordinals should be built up front, otherwise this is done lazily on first access. Currently only for fields with text doc values (TEXT/ATOM).
   * 
* * bool eagerFieldGlobalOrdinals = 30; * @return The eagerFieldGlobalOrdinals. */ @java.lang.Override public boolean getEagerFieldGlobalOrdinals() { return eagerFieldGlobalOrdinals_; } public static final int VECTORSIMILARITY_FIELD_NUMBER = 31; @SuppressWarnings("serial") private volatile java.lang.Object vectorSimilarity_ = ""; /** *
   * Similarity type for search enabled VECTOR fields. This is a required option when search=true.
   * Accepts built in types:
   *      'l2_norm'          : (1 / (1 + l2_norm(query, vector)^2))
   *      'dot_product'      : Float vector: ((1 + dot_product(query, vector)) / 2) (all vectors must be unit length)
   *                           Byte vector : 0.5 + (dot_product(query, vector) / (32768 * dims)) (all vectors must have the same length)
   *      'cosine'           : ((1 + cosine(query, vector)) / 2)
   *      'max_inner_product': when < 0 : 1 / (1 + -1 * max_inner_product(query, vector))
   *                           when >= 0: max_inner_product(query, vector) + 1
   * 
* * string vectorSimilarity = 31; * @return The vectorSimilarity. */ @java.lang.Override public java.lang.String getVectorSimilarity() { java.lang.Object ref = vectorSimilarity_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vectorSimilarity_ = s; return s; } } /** *
   * Similarity type for search enabled VECTOR fields. This is a required option when search=true.
   * Accepts built in types:
   *      'l2_norm'          : (1 / (1 + l2_norm(query, vector)^2))
   *      'dot_product'      : Float vector: ((1 + dot_product(query, vector)) / 2) (all vectors must be unit length)
   *                           Byte vector : 0.5 + (dot_product(query, vector) / (32768 * dims)) (all vectors must have the same length)
   *      'cosine'           : ((1 + cosine(query, vector)) / 2)
   *      'max_inner_product': when < 0 : 1 / (1 + -1 * max_inner_product(query, vector))
   *                           when >= 0: max_inner_product(query, vector) + 1
   * 
* * string vectorSimilarity = 31; * @return The bytes for vectorSimilarity. */ @java.lang.Override public com.google.protobuf.ByteString getVectorSimilarityBytes() { java.lang.Object ref = vectorSimilarity_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); vectorSimilarity_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VECTORINDEXINGOPTIONS_FIELD_NUMBER = 32; private com.yelp.nrtsearch.server.grpc.VectorIndexingOptions vectorIndexingOptions_; /** *
   * Indexing options for search enabled VECTOR field type. This is optional, defaulting to HNSW with m=16, ef_construction=100 when not set.
   * 
* * .luceneserver.VectorIndexingOptions vectorIndexingOptions = 32; * @return Whether the vectorIndexingOptions field is set. */ @java.lang.Override public boolean hasVectorIndexingOptions() { return ((bitField0_ & 0x00000040) != 0); } /** *
   * Indexing options for search enabled VECTOR field type. This is optional, defaulting to HNSW with m=16, ef_construction=100 when not set.
   * 
* * .luceneserver.VectorIndexingOptions vectorIndexingOptions = 32; * @return The vectorIndexingOptions. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.VectorIndexingOptions getVectorIndexingOptions() { return vectorIndexingOptions_ == null ? com.yelp.nrtsearch.server.grpc.VectorIndexingOptions.getDefaultInstance() : vectorIndexingOptions_; } /** *
   * Indexing options for search enabled VECTOR field type. This is optional, defaulting to HNSW with m=16, ef_construction=100 when not set.
   * 
* * .luceneserver.VectorIndexingOptions vectorIndexingOptions = 32; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.VectorIndexingOptionsOrBuilder getVectorIndexingOptionsOrBuilder() { return vectorIndexingOptions_ == null ? com.yelp.nrtsearch.server.grpc.VectorIndexingOptions.getDefaultInstance() : vectorIndexingOptions_; } public static final int TEXTDOCVALUESTYPE_FIELD_NUMBER = 33; private int textDocValuesType_ = 0; /** *
   *  Specify docvalues type for TEXT/ATOM field types. This is optional, defaulting to SORTED when not set. Multivalued fields will always use SORTED_SET.
   * 
* * .luceneserver.TextDocValuesType textDocValuesType = 33; * @return The enum numeric value on the wire for textDocValuesType. */ @java.lang.Override public int getTextDocValuesTypeValue() { return textDocValuesType_; } /** *
   *  Specify docvalues type for TEXT/ATOM field types. This is optional, defaulting to SORTED when not set. Multivalued fields will always use SORTED_SET.
   * 
* * .luceneserver.TextDocValuesType textDocValuesType = 33; * @return The textDocValuesType. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.TextDocValuesType getTextDocValuesType() { com.yelp.nrtsearch.server.grpc.TextDocValuesType result = com.yelp.nrtsearch.server.grpc.TextDocValuesType.forNumber(textDocValuesType_); return result == null ? com.yelp.nrtsearch.server.grpc.TextDocValuesType.UNRECOGNIZED : result; } public static final int VECTORELEMENTTYPE_FIELD_NUMBER = 34; private int vectorElementType_ = 0; /** *
   * Element type for vector field, defaulting to FLOAT when not set.
   * 
* * .luceneserver.VectorElementType vectorElementType = 34; * @return The enum numeric value on the wire for vectorElementType. */ @java.lang.Override public int getVectorElementTypeValue() { return vectorElementType_; } /** *
   * Element type for vector field, defaulting to FLOAT when not set.
   * 
* * .luceneserver.VectorElementType vectorElementType = 34; * @return The vectorElementType. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.VectorElementType getVectorElementType() { com.yelp.nrtsearch.server.grpc.VectorElementType result = com.yelp.nrtsearch.server.grpc.VectorElementType.forNumber(vectorElementType_); return result == null ? com.yelp.nrtsearch.server.grpc.VectorElementType.UNRECOGNIZED : result; } public static final int POSITIONINCREMENTGAP_FIELD_NUMBER = 35; private int positionIncrementGap_ = 0; /** *
   * Position increment gap for indexing multi valued TEXT fields. Must be >= 0, defaulting to 100 when not set.
   * 
* * optional int32 positionIncrementGap = 35; * @return Whether the positionIncrementGap field is set. */ @java.lang.Override public boolean hasPositionIncrementGap() { return ((bitField0_ & 0x00000080) != 0); } /** *
   * Position increment gap for indexing multi valued TEXT fields. Must be >= 0, defaulting to 100 when not set.
   * 
* * optional int32 positionIncrementGap = 35; * @return The positionIncrementGap. */ @java.lang.Override public int getPositionIncrementGap() { return positionIncrementGap_; } public static final int IGNOREABOVE_FIELD_NUMBER = 36; private int ignoreAbove_ = 0; /** *
   * For arrays of strings, ignoreAbove will be applied for each array element separately and string elements longer than ignore_above will not be indexed or stored.
   * This option is also useful for protecting against Lucene’s term byte-length limit of 32766
   * 
* * optional int32 ignoreAbove = 36; * @return Whether the ignoreAbove field is set. */ @java.lang.Override public boolean hasIgnoreAbove() { return ((bitField0_ & 0x00000100) != 0); } /** *
   * For arrays of strings, ignoreAbove will be applied for each array element separately and string elements longer than ignore_above will not be indexed or stored.
   * This option is also useful for protecting against Lucene’s term byte-length limit of 32766
   * 
* * optional int32 ignoreAbove = 36; * @return The ignoreAbove. */ @java.lang.Override public int getIgnoreAbove() { return ignoreAbove_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (type_ != com.yelp.nrtsearch.server.grpc.FieldType.ATOM.getNumber()) { output.writeEnum(2, type_); } if (search_ != false) { output.writeBool(3, search_); } if (store_ != false) { output.writeBool(4, store_); } if (storeDocValues_ != false) { output.writeBool(5, storeDocValues_); } if (sort_ != false) { output.writeBool(6, sort_); } if (tokenize_ != false) { output.writeBool(7, tokenize_); } if (group_ != false) { output.writeBool(8, group_); } if (multiValued_ != false) { output.writeBool(9, multiValued_); } if (highlight_ != false) { output.writeBool(10, highlight_); } if (omitNorms_ != false) { output.writeBool(11, omitNorms_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dateTimeFormat_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, dateTimeFormat_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postingsFormat_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, postingsFormat_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(docValuesFormat_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, docValuesFormat_); } if (indexOptions_ != com.yelp.nrtsearch.server.grpc.IndexOptions.DEFAULT.getNumber()) { output.writeEnum(15, indexOptions_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(16, getScript()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(17, getAnalyzer()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(18, getIndexAnalyzer()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(19, getSearchAnalyzer()); } if (termVectors_ != com.yelp.nrtsearch.server.grpc.TermVectors.NO_TERMVECTORS.getNumber()) { output.writeEnum(20, termVectors_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(similarity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 21, similarity_); } if (facet_ != com.yelp.nrtsearch.server.grpc.FacetType.NO_FACETS.getNumber()) { output.writeEnum(22, facet_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(facetIndexFieldName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 23, facetIndexFieldName_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(24, getAdditionalProperties()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(25, getSimilarityParams()); } for (int i = 0; i < childFields_.size(); i++) { output.writeMessage(26, childFields_.get(i)); } if (eagerGlobalOrdinals_ != false) { output.writeBool(27, eagerGlobalOrdinals_); } if (nestedDoc_ != false) { output.writeBool(28, nestedDoc_); } if (vectorDimensions_ != 0) { output.writeInt32(29, vectorDimensions_); } if (eagerFieldGlobalOrdinals_ != false) { output.writeBool(30, eagerFieldGlobalOrdinals_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vectorSimilarity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 31, vectorSimilarity_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(32, getVectorIndexingOptions()); } if (textDocValuesType_ != com.yelp.nrtsearch.server.grpc.TextDocValuesType.TEXT_DOC_VALUES_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(33, textDocValuesType_); } if (vectorElementType_ != com.yelp.nrtsearch.server.grpc.VectorElementType.VECTOR_ELEMENT_FLOAT.getNumber()) { output.writeEnum(34, vectorElementType_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeInt32(35, positionIncrementGap_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeInt32(36, ignoreAbove_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (type_ != com.yelp.nrtsearch.server.grpc.FieldType.ATOM.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } if (search_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, search_); } if (store_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, store_); } if (storeDocValues_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, storeDocValues_); } if (sort_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, sort_); } if (tokenize_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, tokenize_); } if (group_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, group_); } if (multiValued_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, multiValued_); } if (highlight_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, highlight_); } if (omitNorms_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, omitNorms_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dateTimeFormat_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, dateTimeFormat_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postingsFormat_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, postingsFormat_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(docValuesFormat_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, docValuesFormat_); } if (indexOptions_ != com.yelp.nrtsearch.server.grpc.IndexOptions.DEFAULT.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(15, indexOptions_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, getScript()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getAnalyzer()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, getIndexAnalyzer()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, getSearchAnalyzer()); } if (termVectors_ != com.yelp.nrtsearch.server.grpc.TermVectors.NO_TERMVECTORS.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(20, termVectors_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(similarity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, similarity_); } if (facet_ != com.yelp.nrtsearch.server.grpc.FacetType.NO_FACETS.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(22, facet_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(facetIndexFieldName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(23, facetIndexFieldName_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(24, getAdditionalProperties()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(25, getSimilarityParams()); } for (int i = 0; i < childFields_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(26, childFields_.get(i)); } if (eagerGlobalOrdinals_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(27, eagerGlobalOrdinals_); } if (nestedDoc_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(28, nestedDoc_); } if (vectorDimensions_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(29, vectorDimensions_); } if (eagerFieldGlobalOrdinals_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(30, eagerFieldGlobalOrdinals_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vectorSimilarity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(31, vectorSimilarity_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(32, getVectorIndexingOptions()); } if (textDocValuesType_ != com.yelp.nrtsearch.server.grpc.TextDocValuesType.TEXT_DOC_VALUES_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(33, textDocValuesType_); } if (vectorElementType_ != com.yelp.nrtsearch.server.grpc.VectorElementType.VECTOR_ELEMENT_FLOAT.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(34, vectorElementType_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(35, positionIncrementGap_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(36, ignoreAbove_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.yelp.nrtsearch.server.grpc.Field)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.Field other = (com.yelp.nrtsearch.server.grpc.Field) obj; if (!getName() .equals(other.getName())) return false; if (type_ != other.type_) return false; if (getSearch() != other.getSearch()) return false; if (getStore() != other.getStore()) return false; if (getStoreDocValues() != other.getStoreDocValues()) return false; if (getSort() != other.getSort()) return false; if (getTokenize() != other.getTokenize()) return false; if (getGroup() != other.getGroup()) return false; if (getMultiValued() != other.getMultiValued()) return false; if (getHighlight() != other.getHighlight()) return false; if (getOmitNorms() != other.getOmitNorms()) return false; if (!getDateTimeFormat() .equals(other.getDateTimeFormat())) return false; if (!getPostingsFormat() .equals(other.getPostingsFormat())) return false; if (!getDocValuesFormat() .equals(other.getDocValuesFormat())) return false; if (indexOptions_ != other.indexOptions_) return false; if (hasScript() != other.hasScript()) return false; if (hasScript()) { if (!getScript() .equals(other.getScript())) return false; } if (hasAnalyzer() != other.hasAnalyzer()) return false; if (hasAnalyzer()) { if (!getAnalyzer() .equals(other.getAnalyzer())) return false; } if (hasIndexAnalyzer() != other.hasIndexAnalyzer()) return false; if (hasIndexAnalyzer()) { if (!getIndexAnalyzer() .equals(other.getIndexAnalyzer())) return false; } if (hasSearchAnalyzer() != other.hasSearchAnalyzer()) return false; if (hasSearchAnalyzer()) { if (!getSearchAnalyzer() .equals(other.getSearchAnalyzer())) return false; } if (termVectors_ != other.termVectors_) return false; if (!getSimilarity() .equals(other.getSimilarity())) return false; if (facet_ != other.facet_) return false; if (!getFacetIndexFieldName() .equals(other.getFacetIndexFieldName())) return false; if (hasAdditionalProperties() != other.hasAdditionalProperties()) return false; if (hasAdditionalProperties()) { if (!getAdditionalProperties() .equals(other.getAdditionalProperties())) return false; } if (hasSimilarityParams() != other.hasSimilarityParams()) return false; if (hasSimilarityParams()) { if (!getSimilarityParams() .equals(other.getSimilarityParams())) return false; } if (!getChildFieldsList() .equals(other.getChildFieldsList())) return false; if (getEagerGlobalOrdinals() != other.getEagerGlobalOrdinals()) return false; if (getNestedDoc() != other.getNestedDoc()) return false; if (getVectorDimensions() != other.getVectorDimensions()) return false; if (getEagerFieldGlobalOrdinals() != other.getEagerFieldGlobalOrdinals()) return false; if (!getVectorSimilarity() .equals(other.getVectorSimilarity())) return false; if (hasVectorIndexingOptions() != other.hasVectorIndexingOptions()) return false; if (hasVectorIndexingOptions()) { if (!getVectorIndexingOptions() .equals(other.getVectorIndexingOptions())) return false; } if (textDocValuesType_ != other.textDocValuesType_) return false; if (vectorElementType_ != other.vectorElementType_) return false; if (hasPositionIncrementGap() != other.hasPositionIncrementGap()) return false; if (hasPositionIncrementGap()) { if (getPositionIncrementGap() != other.getPositionIncrementGap()) return false; } if (hasIgnoreAbove() != other.hasIgnoreAbove()) return false; if (hasIgnoreAbove()) { if (getIgnoreAbove() != other.getIgnoreAbove()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + SEARCH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSearch()); hash = (37 * hash) + STORE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getStore()); hash = (37 * hash) + STOREDOCVALUES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getStoreDocValues()); hash = (37 * hash) + SORT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSort()); hash = (37 * hash) + TOKENIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTokenize()); hash = (37 * hash) + GROUP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getGroup()); hash = (37 * hash) + MULTIVALUED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMultiValued()); hash = (37 * hash) + HIGHLIGHT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHighlight()); hash = (37 * hash) + OMITNORMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getOmitNorms()); hash = (37 * hash) + DATETIMEFORMAT_FIELD_NUMBER; hash = (53 * hash) + getDateTimeFormat().hashCode(); hash = (37 * hash) + POSTINGSFORMAT_FIELD_NUMBER; hash = (53 * hash) + getPostingsFormat().hashCode(); hash = (37 * hash) + DOCVALUESFORMAT_FIELD_NUMBER; hash = (53 * hash) + getDocValuesFormat().hashCode(); hash = (37 * hash) + INDEXOPTIONS_FIELD_NUMBER; hash = (53 * hash) + indexOptions_; if (hasScript()) { hash = (37 * hash) + SCRIPT_FIELD_NUMBER; hash = (53 * hash) + getScript().hashCode(); } if (hasAnalyzer()) { hash = (37 * hash) + ANALYZER_FIELD_NUMBER; hash = (53 * hash) + getAnalyzer().hashCode(); } if (hasIndexAnalyzer()) { hash = (37 * hash) + INDEXANALYZER_FIELD_NUMBER; hash = (53 * hash) + getIndexAnalyzer().hashCode(); } if (hasSearchAnalyzer()) { hash = (37 * hash) + SEARCHANALYZER_FIELD_NUMBER; hash = (53 * hash) + getSearchAnalyzer().hashCode(); } hash = (37 * hash) + TERMVECTORS_FIELD_NUMBER; hash = (53 * hash) + termVectors_; hash = (37 * hash) + SIMILARITY_FIELD_NUMBER; hash = (53 * hash) + getSimilarity().hashCode(); hash = (37 * hash) + FACET_FIELD_NUMBER; hash = (53 * hash) + facet_; hash = (37 * hash) + FACETINDEXFIELDNAME_FIELD_NUMBER; hash = (53 * hash) + getFacetIndexFieldName().hashCode(); if (hasAdditionalProperties()) { hash = (37 * hash) + ADDITIONALPROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getAdditionalProperties().hashCode(); } if (hasSimilarityParams()) { hash = (37 * hash) + SIMILARITYPARAMS_FIELD_NUMBER; hash = (53 * hash) + getSimilarityParams().hashCode(); } if (getChildFieldsCount() > 0) { hash = (37 * hash) + CHILDFIELDS_FIELD_NUMBER; hash = (53 * hash) + getChildFieldsList().hashCode(); } hash = (37 * hash) + EAGERGLOBALORDINALS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEagerGlobalOrdinals()); hash = (37 * hash) + NESTEDDOC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNestedDoc()); hash = (37 * hash) + VECTORDIMENSIONS_FIELD_NUMBER; hash = (53 * hash) + getVectorDimensions(); hash = (37 * hash) + EAGERFIELDGLOBALORDINALS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEagerFieldGlobalOrdinals()); hash = (37 * hash) + VECTORSIMILARITY_FIELD_NUMBER; hash = (53 * hash) + getVectorSimilarity().hashCode(); if (hasVectorIndexingOptions()) { hash = (37 * hash) + VECTORINDEXINGOPTIONS_FIELD_NUMBER; hash = (53 * hash) + getVectorIndexingOptions().hashCode(); } hash = (37 * hash) + TEXTDOCVALUESTYPE_FIELD_NUMBER; hash = (53 * hash) + textDocValuesType_; hash = (37 * hash) + VECTORELEMENTTYPE_FIELD_NUMBER; hash = (53 * hash) + vectorElementType_; if (hasPositionIncrementGap()) { hash = (37 * hash) + POSITIONINCREMENTGAP_FIELD_NUMBER; hash = (53 * hash) + getPositionIncrementGap(); } if (hasIgnoreAbove()) { hash = (37 * hash) + IGNOREABOVE_FIELD_NUMBER; hash = (53 * hash) + getIgnoreAbove(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.Field parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Field parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.Field parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Field parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.Field parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.Field parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.Field parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.Field parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.Field parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.Field parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.yelp.nrtsearch.server.grpc.Field parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.Field parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.yelp.nrtsearch.server.grpc.Field prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code luceneserver.Field} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.Field) com.yelp.nrtsearch.server.grpc.FieldOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_Field_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_Field_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.Field.class, com.yelp.nrtsearch.server.grpc.Field.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.Field.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getScriptFieldBuilder(); getAnalyzerFieldBuilder(); getIndexAnalyzerFieldBuilder(); getSearchAnalyzerFieldBuilder(); getAdditionalPropertiesFieldBuilder(); getSimilarityParamsFieldBuilder(); getChildFieldsFieldBuilder(); getVectorIndexingOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; bitField1_ = 0; name_ = ""; type_ = 0; search_ = false; store_ = false; storeDocValues_ = false; sort_ = false; tokenize_ = false; group_ = false; multiValued_ = false; highlight_ = false; omitNorms_ = false; dateTimeFormat_ = ""; postingsFormat_ = ""; docValuesFormat_ = ""; indexOptions_ = 0; script_ = null; if (scriptBuilder_ != null) { scriptBuilder_.dispose(); scriptBuilder_ = null; } analyzer_ = null; if (analyzerBuilder_ != null) { analyzerBuilder_.dispose(); analyzerBuilder_ = null; } indexAnalyzer_ = null; if (indexAnalyzerBuilder_ != null) { indexAnalyzerBuilder_.dispose(); indexAnalyzerBuilder_ = null; } searchAnalyzer_ = null; if (searchAnalyzerBuilder_ != null) { searchAnalyzerBuilder_.dispose(); searchAnalyzerBuilder_ = null; } termVectors_ = 0; similarity_ = ""; facet_ = 0; facetIndexFieldName_ = ""; additionalProperties_ = null; if (additionalPropertiesBuilder_ != null) { additionalPropertiesBuilder_.dispose(); additionalPropertiesBuilder_ = null; } similarityParams_ = null; if (similarityParamsBuilder_ != null) { similarityParamsBuilder_.dispose(); similarityParamsBuilder_ = null; } if (childFieldsBuilder_ == null) { childFields_ = java.util.Collections.emptyList(); } else { childFields_ = null; childFieldsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x02000000); eagerGlobalOrdinals_ = false; nestedDoc_ = false; vectorDimensions_ = 0; eagerFieldGlobalOrdinals_ = false; vectorSimilarity_ = ""; vectorIndexingOptions_ = null; if (vectorIndexingOptionsBuilder_ != null) { vectorIndexingOptionsBuilder_.dispose(); vectorIndexingOptionsBuilder_ = null; } textDocValuesType_ = 0; vectorElementType_ = 0; positionIncrementGap_ = 0; ignoreAbove_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_Field_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Field getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.Field.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Field build() { com.yelp.nrtsearch.server.grpc.Field result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Field buildPartial() { com.yelp.nrtsearch.server.grpc.Field result = new com.yelp.nrtsearch.server.grpc.Field(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } if (bitField1_ != 0) { buildPartial1(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.yelp.nrtsearch.server.grpc.Field result) { if (childFieldsBuilder_ == null) { if (((bitField0_ & 0x02000000) != 0)) { childFields_ = java.util.Collections.unmodifiableList(childFields_); bitField0_ = (bitField0_ & ~0x02000000); } result.childFields_ = childFields_; } else { result.childFields_ = childFieldsBuilder_.build(); } } private void buildPartial0(com.yelp.nrtsearch.server.grpc.Field result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.type_ = type_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.search_ = search_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.store_ = store_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.storeDocValues_ = storeDocValues_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.sort_ = sort_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.tokenize_ = tokenize_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.group_ = group_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.multiValued_ = multiValued_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.highlight_ = highlight_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.omitNorms_ = omitNorms_; } if (((from_bitField0_ & 0x00000800) != 0)) { result.dateTimeFormat_ = dateTimeFormat_; } if (((from_bitField0_ & 0x00001000) != 0)) { result.postingsFormat_ = postingsFormat_; } if (((from_bitField0_ & 0x00002000) != 0)) { result.docValuesFormat_ = docValuesFormat_; } if (((from_bitField0_ & 0x00004000) != 0)) { result.indexOptions_ = indexOptions_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00008000) != 0)) { result.script_ = scriptBuilder_ == null ? script_ : scriptBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00010000) != 0)) { result.analyzer_ = analyzerBuilder_ == null ? analyzer_ : analyzerBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00020000) != 0)) { result.indexAnalyzer_ = indexAnalyzerBuilder_ == null ? indexAnalyzer_ : indexAnalyzerBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00040000) != 0)) { result.searchAnalyzer_ = searchAnalyzerBuilder_ == null ? searchAnalyzer_ : searchAnalyzerBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00080000) != 0)) { result.termVectors_ = termVectors_; } if (((from_bitField0_ & 0x00100000) != 0)) { result.similarity_ = similarity_; } if (((from_bitField0_ & 0x00200000) != 0)) { result.facet_ = facet_; } if (((from_bitField0_ & 0x00400000) != 0)) { result.facetIndexFieldName_ = facetIndexFieldName_; } if (((from_bitField0_ & 0x00800000) != 0)) { result.additionalProperties_ = additionalPropertiesBuilder_ == null ? additionalProperties_ : additionalPropertiesBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x01000000) != 0)) { result.similarityParams_ = similarityParamsBuilder_ == null ? similarityParams_ : similarityParamsBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x04000000) != 0)) { result.eagerGlobalOrdinals_ = eagerGlobalOrdinals_; } if (((from_bitField0_ & 0x08000000) != 0)) { result.nestedDoc_ = nestedDoc_; } if (((from_bitField0_ & 0x10000000) != 0)) { result.vectorDimensions_ = vectorDimensions_; } if (((from_bitField0_ & 0x20000000) != 0)) { result.eagerFieldGlobalOrdinals_ = eagerFieldGlobalOrdinals_; } if (((from_bitField0_ & 0x40000000) != 0)) { result.vectorSimilarity_ = vectorSimilarity_; } if (((from_bitField0_ & 0x80000000) != 0)) { result.vectorIndexingOptions_ = vectorIndexingOptionsBuilder_ == null ? vectorIndexingOptions_ : vectorIndexingOptionsBuilder_.build(); to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; } private void buildPartial1(com.yelp.nrtsearch.server.grpc.Field result) { int from_bitField1_ = bitField1_; if (((from_bitField1_ & 0x00000001) != 0)) { result.textDocValuesType_ = textDocValuesType_; } if (((from_bitField1_ & 0x00000002) != 0)) { result.vectorElementType_ = vectorElementType_; } int to_bitField0_ = 0; if (((from_bitField1_ & 0x00000004) != 0)) { result.positionIncrementGap_ = positionIncrementGap_; to_bitField0_ |= 0x00000080; } if (((from_bitField1_ & 0x00000008) != 0)) { result.ignoreAbove_ = ignoreAbove_; to_bitField0_ |= 0x00000100; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.yelp.nrtsearch.server.grpc.Field) { return mergeFrom((com.yelp.nrtsearch.server.grpc.Field)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.Field other) { if (other == com.yelp.nrtsearch.server.grpc.Field.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.getSearch() != false) { setSearch(other.getSearch()); } if (other.getStore() != false) { setStore(other.getStore()); } if (other.getStoreDocValues() != false) { setStoreDocValues(other.getStoreDocValues()); } if (other.getSort() != false) { setSort(other.getSort()); } if (other.getTokenize() != false) { setTokenize(other.getTokenize()); } if (other.getGroup() != false) { setGroup(other.getGroup()); } if (other.getMultiValued() != false) { setMultiValued(other.getMultiValued()); } if (other.getHighlight() != false) { setHighlight(other.getHighlight()); } if (other.getOmitNorms() != false) { setOmitNorms(other.getOmitNorms()); } if (!other.getDateTimeFormat().isEmpty()) { dateTimeFormat_ = other.dateTimeFormat_; bitField0_ |= 0x00000800; onChanged(); } if (!other.getPostingsFormat().isEmpty()) { postingsFormat_ = other.postingsFormat_; bitField0_ |= 0x00001000; onChanged(); } if (!other.getDocValuesFormat().isEmpty()) { docValuesFormat_ = other.docValuesFormat_; bitField0_ |= 0x00002000; onChanged(); } if (other.indexOptions_ != 0) { setIndexOptionsValue(other.getIndexOptionsValue()); } if (other.hasScript()) { mergeScript(other.getScript()); } if (other.hasAnalyzer()) { mergeAnalyzer(other.getAnalyzer()); } if (other.hasIndexAnalyzer()) { mergeIndexAnalyzer(other.getIndexAnalyzer()); } if (other.hasSearchAnalyzer()) { mergeSearchAnalyzer(other.getSearchAnalyzer()); } if (other.termVectors_ != 0) { setTermVectorsValue(other.getTermVectorsValue()); } if (!other.getSimilarity().isEmpty()) { similarity_ = other.similarity_; bitField0_ |= 0x00100000; onChanged(); } if (other.facet_ != 0) { setFacetValue(other.getFacetValue()); } if (!other.getFacetIndexFieldName().isEmpty()) { facetIndexFieldName_ = other.facetIndexFieldName_; bitField0_ |= 0x00400000; onChanged(); } if (other.hasAdditionalProperties()) { mergeAdditionalProperties(other.getAdditionalProperties()); } if (other.hasSimilarityParams()) { mergeSimilarityParams(other.getSimilarityParams()); } if (childFieldsBuilder_ == null) { if (!other.childFields_.isEmpty()) { if (childFields_.isEmpty()) { childFields_ = other.childFields_; bitField0_ = (bitField0_ & ~0x02000000); } else { ensureChildFieldsIsMutable(); childFields_.addAll(other.childFields_); } onChanged(); } } else { if (!other.childFields_.isEmpty()) { if (childFieldsBuilder_.isEmpty()) { childFieldsBuilder_.dispose(); childFieldsBuilder_ = null; childFields_ = other.childFields_; bitField0_ = (bitField0_ & ~0x02000000); childFieldsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChildFieldsFieldBuilder() : null; } else { childFieldsBuilder_.addAllMessages(other.childFields_); } } } if (other.getEagerGlobalOrdinals() != false) { setEagerGlobalOrdinals(other.getEagerGlobalOrdinals()); } if (other.getNestedDoc() != false) { setNestedDoc(other.getNestedDoc()); } if (other.getVectorDimensions() != 0) { setVectorDimensions(other.getVectorDimensions()); } if (other.getEagerFieldGlobalOrdinals() != false) { setEagerFieldGlobalOrdinals(other.getEagerFieldGlobalOrdinals()); } if (!other.getVectorSimilarity().isEmpty()) { vectorSimilarity_ = other.vectorSimilarity_; bitField0_ |= 0x40000000; onChanged(); } if (other.hasVectorIndexingOptions()) { mergeVectorIndexingOptions(other.getVectorIndexingOptions()); } if (other.textDocValuesType_ != 0) { setTextDocValuesTypeValue(other.getTextDocValuesTypeValue()); } if (other.vectorElementType_ != 0) { setVectorElementTypeValue(other.getVectorElementTypeValue()); } if (other.hasPositionIncrementGap()) { setPositionIncrementGap(other.getPositionIncrementGap()); } if (other.hasIgnoreAbove()) { setIgnoreAbove(other.getIgnoreAbove()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { type_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { search_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { store_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { storeDocValues_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { sort_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { tokenize_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { group_ = input.readBool(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { multiValued_ = input.readBool(); bitField0_ |= 0x00000100; break; } // case 72 case 80: { highlight_ = input.readBool(); bitField0_ |= 0x00000200; break; } // case 80 case 88: { omitNorms_ = input.readBool(); bitField0_ |= 0x00000400; break; } // case 88 case 98: { dateTimeFormat_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000800; break; } // case 98 case 106: { postingsFormat_ = input.readStringRequireUtf8(); bitField0_ |= 0x00001000; break; } // case 106 case 114: { docValuesFormat_ = input.readStringRequireUtf8(); bitField0_ |= 0x00002000; break; } // case 114 case 120: { indexOptions_ = input.readEnum(); bitField0_ |= 0x00004000; break; } // case 120 case 130: { input.readMessage( getScriptFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00008000; break; } // case 130 case 138: { input.readMessage( getAnalyzerFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00010000; break; } // case 138 case 146: { input.readMessage( getIndexAnalyzerFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00020000; break; } // case 146 case 154: { input.readMessage( getSearchAnalyzerFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00040000; break; } // case 154 case 160: { termVectors_ = input.readEnum(); bitField0_ |= 0x00080000; break; } // case 160 case 170: { similarity_ = input.readStringRequireUtf8(); bitField0_ |= 0x00100000; break; } // case 170 case 176: { facet_ = input.readEnum(); bitField0_ |= 0x00200000; break; } // case 176 case 186: { facetIndexFieldName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00400000; break; } // case 186 case 194: { input.readMessage( getAdditionalPropertiesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00800000; break; } // case 194 case 202: { input.readMessage( getSimilarityParamsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x01000000; break; } // case 202 case 210: { com.yelp.nrtsearch.server.grpc.Field m = input.readMessage( com.yelp.nrtsearch.server.grpc.Field.parser(), extensionRegistry); if (childFieldsBuilder_ == null) { ensureChildFieldsIsMutable(); childFields_.add(m); } else { childFieldsBuilder_.addMessage(m); } break; } // case 210 case 216: { eagerGlobalOrdinals_ = input.readBool(); bitField0_ |= 0x04000000; break; } // case 216 case 224: { nestedDoc_ = input.readBool(); bitField0_ |= 0x08000000; break; } // case 224 case 232: { vectorDimensions_ = input.readInt32(); bitField0_ |= 0x10000000; break; } // case 232 case 240: { eagerFieldGlobalOrdinals_ = input.readBool(); bitField0_ |= 0x20000000; break; } // case 240 case 250: { vectorSimilarity_ = input.readStringRequireUtf8(); bitField0_ |= 0x40000000; break; } // case 250 case 258: { input.readMessage( getVectorIndexingOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x80000000; break; } // case 258 case 264: { textDocValuesType_ = input.readEnum(); bitField1_ |= 0x00000001; break; } // case 264 case 272: { vectorElementType_ = input.readEnum(); bitField1_ |= 0x00000002; break; } // case 272 case 280: { positionIncrementGap_ = input.readInt32(); bitField1_ |= 0x00000004; break; } // case 280 case 288: { ignoreAbove_ = input.readInt32(); bitField1_ |= 0x00000008; break; } // case 288 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int bitField1_; private java.lang.Object name_ = ""; /** *
     * name of the field
     * 
* * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * name of the field
     * 
* * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * name of the field
     * 
* * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * name of the field
     * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * name of the field
     * 
* * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int type_ = 0; /** * .luceneserver.FieldType type = 2; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .luceneserver.FieldType type = 2; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * .luceneserver.FieldType type = 2; * @return The type. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.FieldType getType() { com.yelp.nrtsearch.server.grpc.FieldType result = com.yelp.nrtsearch.server.grpc.FieldType.forNumber(type_); return result == null ? com.yelp.nrtsearch.server.grpc.FieldType.UNRECOGNIZED : result; } /** * .luceneserver.FieldType type = 2; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.yelp.nrtsearch.server.grpc.FieldType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value.getNumber(); onChanged(); return this; } /** * .luceneserver.FieldType type = 2; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; } private boolean search_ ; /** *
     * True if the value should be available for searching (or numeric range searching, for a numeric field).
     * 
* * bool search = 3; * @return The search. */ @java.lang.Override public boolean getSearch() { return search_; } /** *
     * True if the value should be available for searching (or numeric range searching, for a numeric field).
     * 
* * bool search = 3; * @param value The search to set. * @return This builder for chaining. */ public Builder setSearch(boolean value) { search_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * True if the value should be available for searching (or numeric range searching, for a numeric field).
     * 
* * bool search = 3; * @return This builder for chaining. */ public Builder clearSearch() { bitField0_ = (bitField0_ & ~0x00000004); search_ = false; onChanged(); return this; } private boolean store_ ; /** *
     * True if the value should be stored.
     * 
* * bool store = 4; * @return The store. */ @java.lang.Override public boolean getStore() { return store_; } /** *
     * True if the value should be stored.
     * 
* * bool store = 4; * @param value The store to set. * @return This builder for chaining. */ public Builder setStore(boolean value) { store_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * True if the value should be stored.
     * 
* * bool store = 4; * @return This builder for chaining. */ public Builder clearStore() { bitField0_ = (bitField0_ & ~0x00000008); store_ = false; onChanged(); return this; } private boolean storeDocValues_ ; /** *
     * Whether to index the value into doc values.
     * 
* * bool storeDocValues = 5; * @return The storeDocValues. */ @java.lang.Override public boolean getStoreDocValues() { return storeDocValues_; } /** *
     * Whether to index the value into doc values.
     * 
* * bool storeDocValues = 5; * @param value The storeDocValues to set. * @return This builder for chaining. */ public Builder setStoreDocValues(boolean value) { storeDocValues_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Whether to index the value into doc values.
     * 
* * bool storeDocValues = 5; * @return This builder for chaining. */ public Builder clearStoreDocValues() { bitField0_ = (bitField0_ & ~0x00000010); storeDocValues_ = false; onChanged(); return this; } private boolean sort_ ; /** *
     * True if the value should be indexed into doc values for sorting.
     * 
* * bool sort = 6 [deprecated = true]; * @deprecated luceneserver.Field.sort is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=548 * @return The sort. */ @java.lang.Override @java.lang.Deprecated public boolean getSort() { return sort_; } /** *
     * True if the value should be indexed into doc values for sorting.
     * 
* * bool sort = 6 [deprecated = true]; * @deprecated luceneserver.Field.sort is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=548 * @param value The sort to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setSort(boolean value) { sort_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * True if the value should be indexed into doc values for sorting.
     * 
* * bool sort = 6 [deprecated = true]; * @deprecated luceneserver.Field.sort is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=548 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearSort() { bitField0_ = (bitField0_ & ~0x00000020); sort_ = false; onChanged(); return this; } private boolean tokenize_ ; /** *
     * This is now determined from the field type
     * 
* * bool tokenize = 7 [deprecated = true]; * @deprecated luceneserver.Field.tokenize is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=549 * @return The tokenize. */ @java.lang.Override @java.lang.Deprecated public boolean getTokenize() { return tokenize_; } /** *
     * This is now determined from the field type
     * 
* * bool tokenize = 7 [deprecated = true]; * @deprecated luceneserver.Field.tokenize is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=549 * @param value The tokenize to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setTokenize(boolean value) { tokenize_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * This is now determined from the field type
     * 
* * bool tokenize = 7 [deprecated = true]; * @deprecated luceneserver.Field.tokenize is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=549 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearTokenize() { bitField0_ = (bitField0_ & ~0x00000040); tokenize_ = false; onChanged(); return this; } private boolean group_ ; /** *
     * True if the value should be indexed into doc values for grouping.
     * 
* * bool group = 8 [deprecated = true]; * @deprecated luceneserver.Field.group is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=550 * @return The group. */ @java.lang.Override @java.lang.Deprecated public boolean getGroup() { return group_; } /** *
     * True if the value should be indexed into doc values for grouping.
     * 
* * bool group = 8 [deprecated = true]; * @deprecated luceneserver.Field.group is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=550 * @param value The group to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setGroup(boolean value) { group_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * True if the value should be indexed into doc values for grouping.
     * 
* * bool group = 8 [deprecated = true]; * @deprecated luceneserver.Field.group is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=550 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearGroup() { bitField0_ = (bitField0_ & ~0x00000080); group_ = false; onChanged(); return this; } private boolean multiValued_ ; /** *
     * True if this field may sometimes have more than one value.
     * 
* * bool multiValued = 9; * @return The multiValued. */ @java.lang.Override public boolean getMultiValued() { return multiValued_; } /** *
     * True if this field may sometimes have more than one value.
     * 
* * bool multiValued = 9; * @param value The multiValued to set. * @return This builder for chaining. */ public Builder setMultiValued(boolean value) { multiValued_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * True if this field may sometimes have more than one value.
     * 
* * bool multiValued = 9; * @return This builder for chaining. */ public Builder clearMultiValued() { bitField0_ = (bitField0_ & ~0x00000100); multiValued_ = false; onChanged(); return this; } private boolean highlight_ ; /** *
     * This parameter would be ignored
     * 
* * bool highlight = 10 [deprecated = true]; * @deprecated luceneserver.Field.highlight is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=552 * @return The highlight. */ @java.lang.Override @java.lang.Deprecated public boolean getHighlight() { return highlight_; } /** *
     * This parameter would be ignored
     * 
* * bool highlight = 10 [deprecated = true]; * @deprecated luceneserver.Field.highlight is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=552 * @param value The highlight to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setHighlight(boolean value) { highlight_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * This parameter would be ignored
     * 
* * bool highlight = 10 [deprecated = true]; * @deprecated luceneserver.Field.highlight is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=552 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearHighlight() { bitField0_ = (bitField0_ & ~0x00000200); highlight_ = false; onChanged(); return this; } private boolean omitNorms_ ; /** *
     * True if norms are omitted.
     * 
* * bool omitNorms = 11; * @return The omitNorms. */ @java.lang.Override public boolean getOmitNorms() { return omitNorms_; } /** *
     * True if norms are omitted.
     * 
* * bool omitNorms = 11; * @param value The omitNorms to set. * @return This builder for chaining. */ public Builder setOmitNorms(boolean value) { omitNorms_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     * True if norms are omitted.
     * 
* * bool omitNorms = 11; * @return This builder for chaining. */ public Builder clearOmitNorms() { bitField0_ = (bitField0_ & ~0x00000400); omitNorms_ = false; onChanged(); return this; } private java.lang.Object dateTimeFormat_ = ""; /** *
     * Format string used to parse datetime fields, supported values are: 1) DateTimeFormatter format 2) "epoch_millis" (datetime value is epoch timestamp) 3) "strict_date_optional_time" (date with optional time in pattern of "yyyy-MM-dd['T'HH:mm:ss[.SSS]]")
     * 
* * string dateTimeFormat = 12; * @return The dateTimeFormat. */ public java.lang.String getDateTimeFormat() { java.lang.Object ref = dateTimeFormat_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dateTimeFormat_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Format string used to parse datetime fields, supported values are: 1) DateTimeFormatter format 2) "epoch_millis" (datetime value is epoch timestamp) 3) "strict_date_optional_time" (date with optional time in pattern of "yyyy-MM-dd['T'HH:mm:ss[.SSS]]")
     * 
* * string dateTimeFormat = 12; * @return The bytes for dateTimeFormat. */ public com.google.protobuf.ByteString getDateTimeFormatBytes() { java.lang.Object ref = dateTimeFormat_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dateTimeFormat_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Format string used to parse datetime fields, supported values are: 1) DateTimeFormatter format 2) "epoch_millis" (datetime value is epoch timestamp) 3) "strict_date_optional_time" (date with optional time in pattern of "yyyy-MM-dd['T'HH:mm:ss[.SSS]]")
     * 
* * string dateTimeFormat = 12; * @param value The dateTimeFormat to set. * @return This builder for chaining. */ public Builder setDateTimeFormat( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dateTimeFormat_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** *
     * Format string used to parse datetime fields, supported values are: 1) DateTimeFormatter format 2) "epoch_millis" (datetime value is epoch timestamp) 3) "strict_date_optional_time" (date with optional time in pattern of "yyyy-MM-dd['T'HH:mm:ss[.SSS]]")
     * 
* * string dateTimeFormat = 12; * @return This builder for chaining. */ public Builder clearDateTimeFormat() { dateTimeFormat_ = getDefaultInstance().getDateTimeFormat(); bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } /** *
     * Format string used to parse datetime fields, supported values are: 1) DateTimeFormatter format 2) "epoch_millis" (datetime value is epoch timestamp) 3) "strict_date_optional_time" (date with optional time in pattern of "yyyy-MM-dd['T'HH:mm:ss[.SSS]]")
     * 
* * string dateTimeFormat = 12; * @param value The bytes for dateTimeFormat to set. * @return This builder for chaining. */ public Builder setDateTimeFormatBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dateTimeFormat_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } private java.lang.Object postingsFormat_ = ""; /** *
     * Which PostingsFormat should be used to index this field.
     * 
* * string postingsFormat = 13; * @return The postingsFormat. */ public java.lang.String getPostingsFormat() { java.lang.Object ref = postingsFormat_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postingsFormat_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Which PostingsFormat should be used to index this field.
     * 
* * string postingsFormat = 13; * @return The bytes for postingsFormat. */ public com.google.protobuf.ByteString getPostingsFormatBytes() { java.lang.Object ref = postingsFormat_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); postingsFormat_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Which PostingsFormat should be used to index this field.
     * 
* * string postingsFormat = 13; * @param value The postingsFormat to set. * @return This builder for chaining. */ public Builder setPostingsFormat( java.lang.String value) { if (value == null) { throw new NullPointerException(); } postingsFormat_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** *
     * Which PostingsFormat should be used to index this field.
     * 
* * string postingsFormat = 13; * @return This builder for chaining. */ public Builder clearPostingsFormat() { postingsFormat_ = getDefaultInstance().getPostingsFormat(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } /** *
     * Which PostingsFormat should be used to index this field.
     * 
* * string postingsFormat = 13; * @param value The bytes for postingsFormat to set. * @return This builder for chaining. */ public Builder setPostingsFormatBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); postingsFormat_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } private java.lang.Object docValuesFormat_ = ""; /** *
     * Which DocValuesFormat should be used to index this field.
     * 
* * string docValuesFormat = 14; * @return The docValuesFormat. */ public java.lang.String getDocValuesFormat() { java.lang.Object ref = docValuesFormat_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); docValuesFormat_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Which DocValuesFormat should be used to index this field.
     * 
* * string docValuesFormat = 14; * @return The bytes for docValuesFormat. */ public com.google.protobuf.ByteString getDocValuesFormatBytes() { java.lang.Object ref = docValuesFormat_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); docValuesFormat_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Which DocValuesFormat should be used to index this field.
     * 
* * string docValuesFormat = 14; * @param value The docValuesFormat to set. * @return This builder for chaining. */ public Builder setDocValuesFormat( java.lang.String value) { if (value == null) { throw new NullPointerException(); } docValuesFormat_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** *
     * Which DocValuesFormat should be used to index this field.
     * 
* * string docValuesFormat = 14; * @return This builder for chaining. */ public Builder clearDocValuesFormat() { docValuesFormat_ = getDefaultInstance().getDocValuesFormat(); bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } /** *
     * Which DocValuesFormat should be used to index this field.
     * 
* * string docValuesFormat = 14; * @param value The bytes for docValuesFormat to set. * @return This builder for chaining. */ public Builder setDocValuesFormatBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); docValuesFormat_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } private int indexOptions_ = 0; /** *
     *How the tokens should be indexed.
     * 
* * .luceneserver.IndexOptions indexOptions = 15; * @return The enum numeric value on the wire for indexOptions. */ @java.lang.Override public int getIndexOptionsValue() { return indexOptions_; } /** *
     *How the tokens should be indexed.
     * 
* * .luceneserver.IndexOptions indexOptions = 15; * @param value The enum numeric value on the wire for indexOptions to set. * @return This builder for chaining. */ public Builder setIndexOptionsValue(int value) { indexOptions_ = value; bitField0_ |= 0x00004000; onChanged(); return this; } /** *
     *How the tokens should be indexed.
     * 
* * .luceneserver.IndexOptions indexOptions = 15; * @return The indexOptions. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.IndexOptions getIndexOptions() { com.yelp.nrtsearch.server.grpc.IndexOptions result = com.yelp.nrtsearch.server.grpc.IndexOptions.forNumber(indexOptions_); return result == null ? com.yelp.nrtsearch.server.grpc.IndexOptions.UNRECOGNIZED : result; } /** *
     *How the tokens should be indexed.
     * 
* * .luceneserver.IndexOptions indexOptions = 15; * @param value The indexOptions to set. * @return This builder for chaining. */ public Builder setIndexOptions(com.yelp.nrtsearch.server.grpc.IndexOptions value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; indexOptions_ = value.getNumber(); onChanged(); return this; } /** *
     *How the tokens should be indexed.
     * 
* * .luceneserver.IndexOptions indexOptions = 15; * @return This builder for chaining. */ public Builder clearIndexOptions() { bitField0_ = (bitField0_ & ~0x00004000); indexOptions_ = 0; onChanged(); return this; } private com.yelp.nrtsearch.server.grpc.Script script_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Script, com.yelp.nrtsearch.server.grpc.Script.Builder, com.yelp.nrtsearch.server.grpc.ScriptOrBuilder> scriptBuilder_; /** *
     * The script definition defining a virtual field's value (only used with type=virtual).
     * 
* * .luceneserver.Script script = 16; * @return Whether the script field is set. */ public boolean hasScript() { return ((bitField0_ & 0x00008000) != 0); } /** *
     * The script definition defining a virtual field's value (only used with type=virtual).
     * 
* * .luceneserver.Script script = 16; * @return The script. */ public com.yelp.nrtsearch.server.grpc.Script getScript() { if (scriptBuilder_ == null) { return script_ == null ? com.yelp.nrtsearch.server.grpc.Script.getDefaultInstance() : script_; } else { return scriptBuilder_.getMessage(); } } /** *
     * The script definition defining a virtual field's value (only used with type=virtual).
     * 
* * .luceneserver.Script script = 16; */ public Builder setScript(com.yelp.nrtsearch.server.grpc.Script value) { if (scriptBuilder_ == null) { if (value == null) { throw new NullPointerException(); } script_ = value; } else { scriptBuilder_.setMessage(value); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     * The script definition defining a virtual field's value (only used with type=virtual).
     * 
* * .luceneserver.Script script = 16; */ public Builder setScript( com.yelp.nrtsearch.server.grpc.Script.Builder builderForValue) { if (scriptBuilder_ == null) { script_ = builderForValue.build(); } else { scriptBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; onChanged(); return this; } /** *
     * The script definition defining a virtual field's value (only used with type=virtual).
     * 
* * .luceneserver.Script script = 16; */ public Builder mergeScript(com.yelp.nrtsearch.server.grpc.Script value) { if (scriptBuilder_ == null) { if (((bitField0_ & 0x00008000) != 0) && script_ != null && script_ != com.yelp.nrtsearch.server.grpc.Script.getDefaultInstance()) { getScriptBuilder().mergeFrom(value); } else { script_ = value; } } else { scriptBuilder_.mergeFrom(value); } if (script_ != null) { bitField0_ |= 0x00008000; onChanged(); } return this; } /** *
     * The script definition defining a virtual field's value (only used with type=virtual).
     * 
* * .luceneserver.Script script = 16; */ public Builder clearScript() { bitField0_ = (bitField0_ & ~0x00008000); script_ = null; if (scriptBuilder_ != null) { scriptBuilder_.dispose(); scriptBuilder_ = null; } onChanged(); return this; } /** *
     * The script definition defining a virtual field's value (only used with type=virtual).
     * 
* * .luceneserver.Script script = 16; */ public com.yelp.nrtsearch.server.grpc.Script.Builder getScriptBuilder() { bitField0_ |= 0x00008000; onChanged(); return getScriptFieldBuilder().getBuilder(); } /** *
     * The script definition defining a virtual field's value (only used with type=virtual).
     * 
* * .luceneserver.Script script = 16; */ public com.yelp.nrtsearch.server.grpc.ScriptOrBuilder getScriptOrBuilder() { if (scriptBuilder_ != null) { return scriptBuilder_.getMessageOrBuilder(); } else { return script_ == null ? com.yelp.nrtsearch.server.grpc.Script.getDefaultInstance() : script_; } } /** *
     * The script definition defining a virtual field's value (only used with type=virtual).
     * 
* * .luceneserver.Script script = 16; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Script, com.yelp.nrtsearch.server.grpc.Script.Builder, com.yelp.nrtsearch.server.grpc.ScriptOrBuilder> getScriptFieldBuilder() { if (scriptBuilder_ == null) { scriptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Script, com.yelp.nrtsearch.server.grpc.Script.Builder, com.yelp.nrtsearch.server.grpc.ScriptOrBuilder>( getScript(), getParentForChildren(), isClean()); script_ = null; } return scriptBuilder_; } private com.yelp.nrtsearch.server.grpc.Analyzer analyzer_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Analyzer, com.yelp.nrtsearch.server.grpc.Analyzer.Builder, com.yelp.nrtsearch.server.grpc.AnalyzerOrBuilder> analyzerBuilder_; /** *
     *TODO make analyzers message types i.e. StandardAnalyzer, EnglishAnalyzer, CustomAnalyzer etc
     * 
* * .luceneserver.Analyzer analyzer = 17; * @return Whether the analyzer field is set. */ public boolean hasAnalyzer() { return ((bitField0_ & 0x00010000) != 0); } /** *
     *TODO make analyzers message types i.e. StandardAnalyzer, EnglishAnalyzer, CustomAnalyzer etc
     * 
* * .luceneserver.Analyzer analyzer = 17; * @return The analyzer. */ public com.yelp.nrtsearch.server.grpc.Analyzer getAnalyzer() { if (analyzerBuilder_ == null) { return analyzer_ == null ? com.yelp.nrtsearch.server.grpc.Analyzer.getDefaultInstance() : analyzer_; } else { return analyzerBuilder_.getMessage(); } } /** *
     *TODO make analyzers message types i.e. StandardAnalyzer, EnglishAnalyzer, CustomAnalyzer etc
     * 
* * .luceneserver.Analyzer analyzer = 17; */ public Builder setAnalyzer(com.yelp.nrtsearch.server.grpc.Analyzer value) { if (analyzerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } analyzer_ = value; } else { analyzerBuilder_.setMessage(value); } bitField0_ |= 0x00010000; onChanged(); return this; } /** *
     *TODO make analyzers message types i.e. StandardAnalyzer, EnglishAnalyzer, CustomAnalyzer etc
     * 
* * .luceneserver.Analyzer analyzer = 17; */ public Builder setAnalyzer( com.yelp.nrtsearch.server.grpc.Analyzer.Builder builderForValue) { if (analyzerBuilder_ == null) { analyzer_ = builderForValue.build(); } else { analyzerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00010000; onChanged(); return this; } /** *
     *TODO make analyzers message types i.e. StandardAnalyzer, EnglishAnalyzer, CustomAnalyzer etc
     * 
* * .luceneserver.Analyzer analyzer = 17; */ public Builder mergeAnalyzer(com.yelp.nrtsearch.server.grpc.Analyzer value) { if (analyzerBuilder_ == null) { if (((bitField0_ & 0x00010000) != 0) && analyzer_ != null && analyzer_ != com.yelp.nrtsearch.server.grpc.Analyzer.getDefaultInstance()) { getAnalyzerBuilder().mergeFrom(value); } else { analyzer_ = value; } } else { analyzerBuilder_.mergeFrom(value); } if (analyzer_ != null) { bitField0_ |= 0x00010000; onChanged(); } return this; } /** *
     *TODO make analyzers message types i.e. StandardAnalyzer, EnglishAnalyzer, CustomAnalyzer etc
     * 
* * .luceneserver.Analyzer analyzer = 17; */ public Builder clearAnalyzer() { bitField0_ = (bitField0_ & ~0x00010000); analyzer_ = null; if (analyzerBuilder_ != null) { analyzerBuilder_.dispose(); analyzerBuilder_ = null; } onChanged(); return this; } /** *
     *TODO make analyzers message types i.e. StandardAnalyzer, EnglishAnalyzer, CustomAnalyzer etc
     * 
* * .luceneserver.Analyzer analyzer = 17; */ public com.yelp.nrtsearch.server.grpc.Analyzer.Builder getAnalyzerBuilder() { bitField0_ |= 0x00010000; onChanged(); return getAnalyzerFieldBuilder().getBuilder(); } /** *
     *TODO make analyzers message types i.e. StandardAnalyzer, EnglishAnalyzer, CustomAnalyzer etc
     * 
* * .luceneserver.Analyzer analyzer = 17; */ public com.yelp.nrtsearch.server.grpc.AnalyzerOrBuilder getAnalyzerOrBuilder() { if (analyzerBuilder_ != null) { return analyzerBuilder_.getMessageOrBuilder(); } else { return analyzer_ == null ? com.yelp.nrtsearch.server.grpc.Analyzer.getDefaultInstance() : analyzer_; } } /** *
     *TODO make analyzers message types i.e. StandardAnalyzer, EnglishAnalyzer, CustomAnalyzer etc
     * 
* * .luceneserver.Analyzer analyzer = 17; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Analyzer, com.yelp.nrtsearch.server.grpc.Analyzer.Builder, com.yelp.nrtsearch.server.grpc.AnalyzerOrBuilder> getAnalyzerFieldBuilder() { if (analyzerBuilder_ == null) { analyzerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Analyzer, com.yelp.nrtsearch.server.grpc.Analyzer.Builder, com.yelp.nrtsearch.server.grpc.AnalyzerOrBuilder>( getAnalyzer(), getParentForChildren(), isClean()); analyzer_ = null; } return analyzerBuilder_; } private com.yelp.nrtsearch.server.grpc.Analyzer indexAnalyzer_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Analyzer, com.yelp.nrtsearch.server.grpc.Analyzer.Builder, com.yelp.nrtsearch.server.grpc.AnalyzerOrBuilder> indexAnalyzerBuilder_; /** *
     * Analyzer to use for this field during indexing.
     * 
* * .luceneserver.Analyzer indexAnalyzer = 18; * @return Whether the indexAnalyzer field is set. */ public boolean hasIndexAnalyzer() { return ((bitField0_ & 0x00020000) != 0); } /** *
     * Analyzer to use for this field during indexing.
     * 
* * .luceneserver.Analyzer indexAnalyzer = 18; * @return The indexAnalyzer. */ public com.yelp.nrtsearch.server.grpc.Analyzer getIndexAnalyzer() { if (indexAnalyzerBuilder_ == null) { return indexAnalyzer_ == null ? com.yelp.nrtsearch.server.grpc.Analyzer.getDefaultInstance() : indexAnalyzer_; } else { return indexAnalyzerBuilder_.getMessage(); } } /** *
     * Analyzer to use for this field during indexing.
     * 
* * .luceneserver.Analyzer indexAnalyzer = 18; */ public Builder setIndexAnalyzer(com.yelp.nrtsearch.server.grpc.Analyzer value) { if (indexAnalyzerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } indexAnalyzer_ = value; } else { indexAnalyzerBuilder_.setMessage(value); } bitField0_ |= 0x00020000; onChanged(); return this; } /** *
     * Analyzer to use for this field during indexing.
     * 
* * .luceneserver.Analyzer indexAnalyzer = 18; */ public Builder setIndexAnalyzer( com.yelp.nrtsearch.server.grpc.Analyzer.Builder builderForValue) { if (indexAnalyzerBuilder_ == null) { indexAnalyzer_ = builderForValue.build(); } else { indexAnalyzerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00020000; onChanged(); return this; } /** *
     * Analyzer to use for this field during indexing.
     * 
* * .luceneserver.Analyzer indexAnalyzer = 18; */ public Builder mergeIndexAnalyzer(com.yelp.nrtsearch.server.grpc.Analyzer value) { if (indexAnalyzerBuilder_ == null) { if (((bitField0_ & 0x00020000) != 0) && indexAnalyzer_ != null && indexAnalyzer_ != com.yelp.nrtsearch.server.grpc.Analyzer.getDefaultInstance()) { getIndexAnalyzerBuilder().mergeFrom(value); } else { indexAnalyzer_ = value; } } else { indexAnalyzerBuilder_.mergeFrom(value); } if (indexAnalyzer_ != null) { bitField0_ |= 0x00020000; onChanged(); } return this; } /** *
     * Analyzer to use for this field during indexing.
     * 
* * .luceneserver.Analyzer indexAnalyzer = 18; */ public Builder clearIndexAnalyzer() { bitField0_ = (bitField0_ & ~0x00020000); indexAnalyzer_ = null; if (indexAnalyzerBuilder_ != null) { indexAnalyzerBuilder_.dispose(); indexAnalyzerBuilder_ = null; } onChanged(); return this; } /** *
     * Analyzer to use for this field during indexing.
     * 
* * .luceneserver.Analyzer indexAnalyzer = 18; */ public com.yelp.nrtsearch.server.grpc.Analyzer.Builder getIndexAnalyzerBuilder() { bitField0_ |= 0x00020000; onChanged(); return getIndexAnalyzerFieldBuilder().getBuilder(); } /** *
     * Analyzer to use for this field during indexing.
     * 
* * .luceneserver.Analyzer indexAnalyzer = 18; */ public com.yelp.nrtsearch.server.grpc.AnalyzerOrBuilder getIndexAnalyzerOrBuilder() { if (indexAnalyzerBuilder_ != null) { return indexAnalyzerBuilder_.getMessageOrBuilder(); } else { return indexAnalyzer_ == null ? com.yelp.nrtsearch.server.grpc.Analyzer.getDefaultInstance() : indexAnalyzer_; } } /** *
     * Analyzer to use for this field during indexing.
     * 
* * .luceneserver.Analyzer indexAnalyzer = 18; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Analyzer, com.yelp.nrtsearch.server.grpc.Analyzer.Builder, com.yelp.nrtsearch.server.grpc.AnalyzerOrBuilder> getIndexAnalyzerFieldBuilder() { if (indexAnalyzerBuilder_ == null) { indexAnalyzerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Analyzer, com.yelp.nrtsearch.server.grpc.Analyzer.Builder, com.yelp.nrtsearch.server.grpc.AnalyzerOrBuilder>( getIndexAnalyzer(), getParentForChildren(), isClean()); indexAnalyzer_ = null; } return indexAnalyzerBuilder_; } private com.yelp.nrtsearch.server.grpc.Analyzer searchAnalyzer_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Analyzer, com.yelp.nrtsearch.server.grpc.Analyzer.Builder, com.yelp.nrtsearch.server.grpc.AnalyzerOrBuilder> searchAnalyzerBuilder_; /** *
     *Analyzer to use for this field during searching.
     * 
* * .luceneserver.Analyzer searchAnalyzer = 19; * @return Whether the searchAnalyzer field is set. */ public boolean hasSearchAnalyzer() { return ((bitField0_ & 0x00040000) != 0); } /** *
     *Analyzer to use for this field during searching.
     * 
* * .luceneserver.Analyzer searchAnalyzer = 19; * @return The searchAnalyzer. */ public com.yelp.nrtsearch.server.grpc.Analyzer getSearchAnalyzer() { if (searchAnalyzerBuilder_ == null) { return searchAnalyzer_ == null ? com.yelp.nrtsearch.server.grpc.Analyzer.getDefaultInstance() : searchAnalyzer_; } else { return searchAnalyzerBuilder_.getMessage(); } } /** *
     *Analyzer to use for this field during searching.
     * 
* * .luceneserver.Analyzer searchAnalyzer = 19; */ public Builder setSearchAnalyzer(com.yelp.nrtsearch.server.grpc.Analyzer value) { if (searchAnalyzerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } searchAnalyzer_ = value; } else { searchAnalyzerBuilder_.setMessage(value); } bitField0_ |= 0x00040000; onChanged(); return this; } /** *
     *Analyzer to use for this field during searching.
     * 
* * .luceneserver.Analyzer searchAnalyzer = 19; */ public Builder setSearchAnalyzer( com.yelp.nrtsearch.server.grpc.Analyzer.Builder builderForValue) { if (searchAnalyzerBuilder_ == null) { searchAnalyzer_ = builderForValue.build(); } else { searchAnalyzerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00040000; onChanged(); return this; } /** *
     *Analyzer to use for this field during searching.
     * 
* * .luceneserver.Analyzer searchAnalyzer = 19; */ public Builder mergeSearchAnalyzer(com.yelp.nrtsearch.server.grpc.Analyzer value) { if (searchAnalyzerBuilder_ == null) { if (((bitField0_ & 0x00040000) != 0) && searchAnalyzer_ != null && searchAnalyzer_ != com.yelp.nrtsearch.server.grpc.Analyzer.getDefaultInstance()) { getSearchAnalyzerBuilder().mergeFrom(value); } else { searchAnalyzer_ = value; } } else { searchAnalyzerBuilder_.mergeFrom(value); } if (searchAnalyzer_ != null) { bitField0_ |= 0x00040000; onChanged(); } return this; } /** *
     *Analyzer to use for this field during searching.
     * 
* * .luceneserver.Analyzer searchAnalyzer = 19; */ public Builder clearSearchAnalyzer() { bitField0_ = (bitField0_ & ~0x00040000); searchAnalyzer_ = null; if (searchAnalyzerBuilder_ != null) { searchAnalyzerBuilder_.dispose(); searchAnalyzerBuilder_ = null; } onChanged(); return this; } /** *
     *Analyzer to use for this field during searching.
     * 
* * .luceneserver.Analyzer searchAnalyzer = 19; */ public com.yelp.nrtsearch.server.grpc.Analyzer.Builder getSearchAnalyzerBuilder() { bitField0_ |= 0x00040000; onChanged(); return getSearchAnalyzerFieldBuilder().getBuilder(); } /** *
     *Analyzer to use for this field during searching.
     * 
* * .luceneserver.Analyzer searchAnalyzer = 19; */ public com.yelp.nrtsearch.server.grpc.AnalyzerOrBuilder getSearchAnalyzerOrBuilder() { if (searchAnalyzerBuilder_ != null) { return searchAnalyzerBuilder_.getMessageOrBuilder(); } else { return searchAnalyzer_ == null ? com.yelp.nrtsearch.server.grpc.Analyzer.getDefaultInstance() : searchAnalyzer_; } } /** *
     *Analyzer to use for this field during searching.
     * 
* * .luceneserver.Analyzer searchAnalyzer = 19; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Analyzer, com.yelp.nrtsearch.server.grpc.Analyzer.Builder, com.yelp.nrtsearch.server.grpc.AnalyzerOrBuilder> getSearchAnalyzerFieldBuilder() { if (searchAnalyzerBuilder_ == null) { searchAnalyzerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Analyzer, com.yelp.nrtsearch.server.grpc.Analyzer.Builder, com.yelp.nrtsearch.server.grpc.AnalyzerOrBuilder>( getSearchAnalyzer(), getParentForChildren(), isClean()); searchAnalyzer_ = null; } return searchAnalyzerBuilder_; } private int termVectors_ = 0; /** *
     * Whether/how term vectors should be indexed.
     * 
* * .luceneserver.TermVectors termVectors = 20; * @return The enum numeric value on the wire for termVectors. */ @java.lang.Override public int getTermVectorsValue() { return termVectors_; } /** *
     * Whether/how term vectors should be indexed.
     * 
* * .luceneserver.TermVectors termVectors = 20; * @param value The enum numeric value on the wire for termVectors to set. * @return This builder for chaining. */ public Builder setTermVectorsValue(int value) { termVectors_ = value; bitField0_ |= 0x00080000; onChanged(); return this; } /** *
     * Whether/how term vectors should be indexed.
     * 
* * .luceneserver.TermVectors termVectors = 20; * @return The termVectors. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.TermVectors getTermVectors() { com.yelp.nrtsearch.server.grpc.TermVectors result = com.yelp.nrtsearch.server.grpc.TermVectors.forNumber(termVectors_); return result == null ? com.yelp.nrtsearch.server.grpc.TermVectors.UNRECOGNIZED : result; } /** *
     * Whether/how term vectors should be indexed.
     * 
* * .luceneserver.TermVectors termVectors = 20; * @param value The termVectors to set. * @return This builder for chaining. */ public Builder setTermVectors(com.yelp.nrtsearch.server.grpc.TermVectors value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00080000; termVectors_ = value.getNumber(); onChanged(); return this; } /** *
     * Whether/how term vectors should be indexed.
     * 
* * .luceneserver.TermVectors termVectors = 20; * @return This builder for chaining. */ public Builder clearTermVectors() { bitField0_ = (bitField0_ & ~0x00080000); termVectors_ = 0; onChanged(); return this; } private java.lang.Object similarity_ = ""; /** *
     *TODO make similarity message types i.d. DefaultSimilarity, CustomSimilarity, BM25Similarity;
     * 
* * string similarity = 21; * @return The similarity. */ public java.lang.String getSimilarity() { java.lang.Object ref = similarity_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); similarity_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     *TODO make similarity message types i.d. DefaultSimilarity, CustomSimilarity, BM25Similarity;
     * 
* * string similarity = 21; * @return The bytes for similarity. */ public com.google.protobuf.ByteString getSimilarityBytes() { java.lang.Object ref = similarity_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); similarity_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *TODO make similarity message types i.d. DefaultSimilarity, CustomSimilarity, BM25Similarity;
     * 
* * string similarity = 21; * @param value The similarity to set. * @return This builder for chaining. */ public Builder setSimilarity( java.lang.String value) { if (value == null) { throw new NullPointerException(); } similarity_ = value; bitField0_ |= 0x00100000; onChanged(); return this; } /** *
     *TODO make similarity message types i.d. DefaultSimilarity, CustomSimilarity, BM25Similarity;
     * 
* * string similarity = 21; * @return This builder for chaining. */ public Builder clearSimilarity() { similarity_ = getDefaultInstance().getSimilarity(); bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } /** *
     *TODO make similarity message types i.d. DefaultSimilarity, CustomSimilarity, BM25Similarity;
     * 
* * string similarity = 21; * @param value The bytes for similarity to set. * @return This builder for chaining. */ public Builder setSimilarityBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); similarity_ = value; bitField0_ |= 0x00100000; onChanged(); return this; } private int facet_ = 0; /** *
     * Whether this field should index facets, and how.
     * 
* * .luceneserver.FacetType facet = 22; * @return The enum numeric value on the wire for facet. */ @java.lang.Override public int getFacetValue() { return facet_; } /** *
     * Whether this field should index facets, and how.
     * 
* * .luceneserver.FacetType facet = 22; * @param value The enum numeric value on the wire for facet to set. * @return This builder for chaining. */ public Builder setFacetValue(int value) { facet_ = value; bitField0_ |= 0x00200000; onChanged(); return this; } /** *
     * Whether this field should index facets, and how.
     * 
* * .luceneserver.FacetType facet = 22; * @return The facet. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.FacetType getFacet() { com.yelp.nrtsearch.server.grpc.FacetType result = com.yelp.nrtsearch.server.grpc.FacetType.forNumber(facet_); return result == null ? com.yelp.nrtsearch.server.grpc.FacetType.UNRECOGNIZED : result; } /** *
     * Whether this field should index facets, and how.
     * 
* * .luceneserver.FacetType facet = 22; * @param value The facet to set. * @return This builder for chaining. */ public Builder setFacet(com.yelp.nrtsearch.server.grpc.FacetType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00200000; facet_ = value.getNumber(); onChanged(); return this; } /** *
     * Whether this field should index facets, and how.
     * 
* * .luceneserver.FacetType facet = 22; * @return This builder for chaining. */ public Builder clearFacet() { bitField0_ = (bitField0_ & ~0x00200000); facet_ = 0; onChanged(); return this; } private java.lang.Object facetIndexFieldName_ = ""; /** *
     * "Which underlying Lucene index field is used to hold any indexed taxonomy or sorted set doc values facets
     * 
* * string facetIndexFieldName = 23; * @return The facetIndexFieldName. */ public java.lang.String getFacetIndexFieldName() { java.lang.Object ref = facetIndexFieldName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); facetIndexFieldName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * "Which underlying Lucene index field is used to hold any indexed taxonomy or sorted set doc values facets
     * 
* * string facetIndexFieldName = 23; * @return The bytes for facetIndexFieldName. */ public com.google.protobuf.ByteString getFacetIndexFieldNameBytes() { java.lang.Object ref = facetIndexFieldName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); facetIndexFieldName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * "Which underlying Lucene index field is used to hold any indexed taxonomy or sorted set doc values facets
     * 
* * string facetIndexFieldName = 23; * @param value The facetIndexFieldName to set. * @return This builder for chaining. */ public Builder setFacetIndexFieldName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } facetIndexFieldName_ = value; bitField0_ |= 0x00400000; onChanged(); return this; } /** *
     * "Which underlying Lucene index field is used to hold any indexed taxonomy or sorted set doc values facets
     * 
* * string facetIndexFieldName = 23; * @return This builder for chaining. */ public Builder clearFacetIndexFieldName() { facetIndexFieldName_ = getDefaultInstance().getFacetIndexFieldName(); bitField0_ = (bitField0_ & ~0x00400000); onChanged(); return this; } /** *
     * "Which underlying Lucene index field is used to hold any indexed taxonomy or sorted set doc values facets
     * 
* * string facetIndexFieldName = 23; * @param value The bytes for facetIndexFieldName to set. * @return This builder for chaining. */ public Builder setFacetIndexFieldNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); facetIndexFieldName_ = value; bitField0_ |= 0x00400000; onChanged(); return this; } private com.google.protobuf.Struct additionalProperties_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> additionalPropertiesBuilder_; /** *
     * Additional info needed to configure field, used for CUSTOM types.
     * 
* * .google.protobuf.Struct additionalProperties = 24; * @return Whether the additionalProperties field is set. */ public boolean hasAdditionalProperties() { return ((bitField0_ & 0x00800000) != 0); } /** *
     * Additional info needed to configure field, used for CUSTOM types.
     * 
* * .google.protobuf.Struct additionalProperties = 24; * @return The additionalProperties. */ public com.google.protobuf.Struct getAdditionalProperties() { if (additionalPropertiesBuilder_ == null) { return additionalProperties_ == null ? com.google.protobuf.Struct.getDefaultInstance() : additionalProperties_; } else { return additionalPropertiesBuilder_.getMessage(); } } /** *
     * Additional info needed to configure field, used for CUSTOM types.
     * 
* * .google.protobuf.Struct additionalProperties = 24; */ public Builder setAdditionalProperties(com.google.protobuf.Struct value) { if (additionalPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } additionalProperties_ = value; } else { additionalPropertiesBuilder_.setMessage(value); } bitField0_ |= 0x00800000; onChanged(); return this; } /** *
     * Additional info needed to configure field, used for CUSTOM types.
     * 
* * .google.protobuf.Struct additionalProperties = 24; */ public Builder setAdditionalProperties( com.google.protobuf.Struct.Builder builderForValue) { if (additionalPropertiesBuilder_ == null) { additionalProperties_ = builderForValue.build(); } else { additionalPropertiesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00800000; onChanged(); return this; } /** *
     * Additional info needed to configure field, used for CUSTOM types.
     * 
* * .google.protobuf.Struct additionalProperties = 24; */ public Builder mergeAdditionalProperties(com.google.protobuf.Struct value) { if (additionalPropertiesBuilder_ == null) { if (((bitField0_ & 0x00800000) != 0) && additionalProperties_ != null && additionalProperties_ != com.google.protobuf.Struct.getDefaultInstance()) { getAdditionalPropertiesBuilder().mergeFrom(value); } else { additionalProperties_ = value; } } else { additionalPropertiesBuilder_.mergeFrom(value); } if (additionalProperties_ != null) { bitField0_ |= 0x00800000; onChanged(); } return this; } /** *
     * Additional info needed to configure field, used for CUSTOM types.
     * 
* * .google.protobuf.Struct additionalProperties = 24; */ public Builder clearAdditionalProperties() { bitField0_ = (bitField0_ & ~0x00800000); additionalProperties_ = null; if (additionalPropertiesBuilder_ != null) { additionalPropertiesBuilder_.dispose(); additionalPropertiesBuilder_ = null; } onChanged(); return this; } /** *
     * Additional info needed to configure field, used for CUSTOM types.
     * 
* * .google.protobuf.Struct additionalProperties = 24; */ public com.google.protobuf.Struct.Builder getAdditionalPropertiesBuilder() { bitField0_ |= 0x00800000; onChanged(); return getAdditionalPropertiesFieldBuilder().getBuilder(); } /** *
     * Additional info needed to configure field, used for CUSTOM types.
     * 
* * .google.protobuf.Struct additionalProperties = 24; */ public com.google.protobuf.StructOrBuilder getAdditionalPropertiesOrBuilder() { if (additionalPropertiesBuilder_ != null) { return additionalPropertiesBuilder_.getMessageOrBuilder(); } else { return additionalProperties_ == null ? com.google.protobuf.Struct.getDefaultInstance() : additionalProperties_; } } /** *
     * Additional info needed to configure field, used for CUSTOM types.
     * 
* * .google.protobuf.Struct additionalProperties = 24; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getAdditionalPropertiesFieldBuilder() { if (additionalPropertiesBuilder_ == null) { additionalPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getAdditionalProperties(), getParentForChildren(), isClean()); additionalProperties_ = null; } return additionalPropertiesBuilder_; } private com.google.protobuf.Struct similarityParams_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> similarityParamsBuilder_; /** *
     * Parameters for similarity implementation.
     * 
* * .google.protobuf.Struct similarityParams = 25; * @return Whether the similarityParams field is set. */ public boolean hasSimilarityParams() { return ((bitField0_ & 0x01000000) != 0); } /** *
     * Parameters for similarity implementation.
     * 
* * .google.protobuf.Struct similarityParams = 25; * @return The similarityParams. */ public com.google.protobuf.Struct getSimilarityParams() { if (similarityParamsBuilder_ == null) { return similarityParams_ == null ? com.google.protobuf.Struct.getDefaultInstance() : similarityParams_; } else { return similarityParamsBuilder_.getMessage(); } } /** *
     * Parameters for similarity implementation.
     * 
* * .google.protobuf.Struct similarityParams = 25; */ public Builder setSimilarityParams(com.google.protobuf.Struct value) { if (similarityParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } similarityParams_ = value; } else { similarityParamsBuilder_.setMessage(value); } bitField0_ |= 0x01000000; onChanged(); return this; } /** *
     * Parameters for similarity implementation.
     * 
* * .google.protobuf.Struct similarityParams = 25; */ public Builder setSimilarityParams( com.google.protobuf.Struct.Builder builderForValue) { if (similarityParamsBuilder_ == null) { similarityParams_ = builderForValue.build(); } else { similarityParamsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x01000000; onChanged(); return this; } /** *
     * Parameters for similarity implementation.
     * 
* * .google.protobuf.Struct similarityParams = 25; */ public Builder mergeSimilarityParams(com.google.protobuf.Struct value) { if (similarityParamsBuilder_ == null) { if (((bitField0_ & 0x01000000) != 0) && similarityParams_ != null && similarityParams_ != com.google.protobuf.Struct.getDefaultInstance()) { getSimilarityParamsBuilder().mergeFrom(value); } else { similarityParams_ = value; } } else { similarityParamsBuilder_.mergeFrom(value); } if (similarityParams_ != null) { bitField0_ |= 0x01000000; onChanged(); } return this; } /** *
     * Parameters for similarity implementation.
     * 
* * .google.protobuf.Struct similarityParams = 25; */ public Builder clearSimilarityParams() { bitField0_ = (bitField0_ & ~0x01000000); similarityParams_ = null; if (similarityParamsBuilder_ != null) { similarityParamsBuilder_.dispose(); similarityParamsBuilder_ = null; } onChanged(); return this; } /** *
     * Parameters for similarity implementation.
     * 
* * .google.protobuf.Struct similarityParams = 25; */ public com.google.protobuf.Struct.Builder getSimilarityParamsBuilder() { bitField0_ |= 0x01000000; onChanged(); return getSimilarityParamsFieldBuilder().getBuilder(); } /** *
     * Parameters for similarity implementation.
     * 
* * .google.protobuf.Struct similarityParams = 25; */ public com.google.protobuf.StructOrBuilder getSimilarityParamsOrBuilder() { if (similarityParamsBuilder_ != null) { return similarityParamsBuilder_.getMessageOrBuilder(); } else { return similarityParams_ == null ? com.google.protobuf.Struct.getDefaultInstance() : similarityParams_; } } /** *
     * Parameters for similarity implementation.
     * 
* * .google.protobuf.Struct similarityParams = 25; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getSimilarityParamsFieldBuilder() { if (similarityParamsBuilder_ == null) { similarityParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getSimilarityParams(), getParentForChildren(), isClean()); similarityParams_ = null; } return similarityParamsBuilder_; } private java.util.List childFields_ = java.util.Collections.emptyList(); private void ensureChildFieldsIsMutable() { if (!((bitField0_ & 0x02000000) != 0)) { childFields_ = new java.util.ArrayList(childFields_); bitField0_ |= 0x02000000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Field, com.yelp.nrtsearch.server.grpc.Field.Builder, com.yelp.nrtsearch.server.grpc.FieldOrBuilder> childFieldsBuilder_; /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public java.util.List getChildFieldsList() { if (childFieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(childFields_); } else { return childFieldsBuilder_.getMessageList(); } } /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public int getChildFieldsCount() { if (childFieldsBuilder_ == null) { return childFields_.size(); } else { return childFieldsBuilder_.getCount(); } } /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public com.yelp.nrtsearch.server.grpc.Field getChildFields(int index) { if (childFieldsBuilder_ == null) { return childFields_.get(index); } else { return childFieldsBuilder_.getMessage(index); } } /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public Builder setChildFields( int index, com.yelp.nrtsearch.server.grpc.Field value) { if (childFieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildFieldsIsMutable(); childFields_.set(index, value); onChanged(); } else { childFieldsBuilder_.setMessage(index, value); } return this; } /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public Builder setChildFields( int index, com.yelp.nrtsearch.server.grpc.Field.Builder builderForValue) { if (childFieldsBuilder_ == null) { ensureChildFieldsIsMutable(); childFields_.set(index, builderForValue.build()); onChanged(); } else { childFieldsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public Builder addChildFields(com.yelp.nrtsearch.server.grpc.Field value) { if (childFieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildFieldsIsMutable(); childFields_.add(value); onChanged(); } else { childFieldsBuilder_.addMessage(value); } return this; } /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public Builder addChildFields( int index, com.yelp.nrtsearch.server.grpc.Field value) { if (childFieldsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChildFieldsIsMutable(); childFields_.add(index, value); onChanged(); } else { childFieldsBuilder_.addMessage(index, value); } return this; } /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public Builder addChildFields( com.yelp.nrtsearch.server.grpc.Field.Builder builderForValue) { if (childFieldsBuilder_ == null) { ensureChildFieldsIsMutable(); childFields_.add(builderForValue.build()); onChanged(); } else { childFieldsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public Builder addChildFields( int index, com.yelp.nrtsearch.server.grpc.Field.Builder builderForValue) { if (childFieldsBuilder_ == null) { ensureChildFieldsIsMutable(); childFields_.add(index, builderForValue.build()); onChanged(); } else { childFieldsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public Builder addAllChildFields( java.lang.Iterable values) { if (childFieldsBuilder_ == null) { ensureChildFieldsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, childFields_); onChanged(); } else { childFieldsBuilder_.addAllMessages(values); } return this; } /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public Builder clearChildFields() { if (childFieldsBuilder_ == null) { childFields_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x02000000); onChanged(); } else { childFieldsBuilder_.clear(); } return this; } /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public Builder removeChildFields(int index) { if (childFieldsBuilder_ == null) { ensureChildFieldsIsMutable(); childFields_.remove(index); onChanged(); } else { childFieldsBuilder_.remove(index); } return this; } /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public com.yelp.nrtsearch.server.grpc.Field.Builder getChildFieldsBuilder( int index) { return getChildFieldsFieldBuilder().getBuilder(index); } /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public com.yelp.nrtsearch.server.grpc.FieldOrBuilder getChildFieldsOrBuilder( int index) { if (childFieldsBuilder_ == null) { return childFields_.get(index); } else { return childFieldsBuilder_.getMessageOrBuilder(index); } } /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public java.util.List getChildFieldsOrBuilderList() { if (childFieldsBuilder_ != null) { return childFieldsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(childFields_); } } /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public com.yelp.nrtsearch.server.grpc.Field.Builder addChildFieldsBuilder() { return getChildFieldsFieldBuilder().addBuilder( com.yelp.nrtsearch.server.grpc.Field.getDefaultInstance()); } /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public com.yelp.nrtsearch.server.grpc.Field.Builder addChildFieldsBuilder( int index) { return getChildFieldsFieldBuilder().addBuilder( index, com.yelp.nrtsearch.server.grpc.Field.getDefaultInstance()); } /** *
     * Child fields accessible by dot notation, index same data as parent
     * 
* * repeated .luceneserver.Field childFields = 26; */ public java.util.List getChildFieldsBuilderList() { return getChildFieldsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Field, com.yelp.nrtsearch.server.grpc.Field.Builder, com.yelp.nrtsearch.server.grpc.FieldOrBuilder> getChildFieldsFieldBuilder() { if (childFieldsBuilder_ == null) { childFieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Field, com.yelp.nrtsearch.server.grpc.Field.Builder, com.yelp.nrtsearch.server.grpc.FieldOrBuilder>( childFields_, ((bitField0_ & 0x02000000) != 0), getParentForChildren(), isClean()); childFields_ = null; } return childFieldsBuilder_; } private boolean eagerGlobalOrdinals_ ; /** *
     * Compute facet global ordinals for this field up front, otherwise this is done lazily on first query. Currently only for SORTED_SET_DOC_VALUES facet type.
     * 
* * bool eagerGlobalOrdinals = 27; * @return The eagerGlobalOrdinals. */ @java.lang.Override public boolean getEagerGlobalOrdinals() { return eagerGlobalOrdinals_; } /** *
     * Compute facet global ordinals for this field up front, otherwise this is done lazily on first query. Currently only for SORTED_SET_DOC_VALUES facet type.
     * 
* * bool eagerGlobalOrdinals = 27; * @param value The eagerGlobalOrdinals to set. * @return This builder for chaining. */ public Builder setEagerGlobalOrdinals(boolean value) { eagerGlobalOrdinals_ = value; bitField0_ |= 0x04000000; onChanged(); return this; } /** *
     * Compute facet global ordinals for this field up front, otherwise this is done lazily on first query. Currently only for SORTED_SET_DOC_VALUES facet type.
     * 
* * bool eagerGlobalOrdinals = 27; * @return This builder for chaining. */ public Builder clearEagerGlobalOrdinals() { bitField0_ = (bitField0_ & ~0x04000000); eagerGlobalOrdinals_ = false; onChanged(); return this; } private boolean nestedDoc_ ; /** *
     * True if object data should be indexed as child documents
     * 
* * bool nestedDoc = 28; * @return The nestedDoc. */ @java.lang.Override public boolean getNestedDoc() { return nestedDoc_; } /** *
     * True if object data should be indexed as child documents
     * 
* * bool nestedDoc = 28; * @param value The nestedDoc to set. * @return This builder for chaining. */ public Builder setNestedDoc(boolean value) { nestedDoc_ = value; bitField0_ |= 0x08000000; onChanged(); return this; } /** *
     * True if object data should be indexed as child documents
     * 
* * bool nestedDoc = 28; * @return This builder for chaining. */ public Builder clearNestedDoc() { bitField0_ = (bitField0_ & ~0x08000000); nestedDoc_ = false; onChanged(); return this; } private int vectorDimensions_ ; /** *
     * Dimensions for vector field type
     * 
* * int32 vectorDimensions = 29; * @return The vectorDimensions. */ @java.lang.Override public int getVectorDimensions() { return vectorDimensions_; } /** *
     * Dimensions for vector field type
     * 
* * int32 vectorDimensions = 29; * @param value The vectorDimensions to set. * @return This builder for chaining. */ public Builder setVectorDimensions(int value) { vectorDimensions_ = value; bitField0_ |= 0x10000000; onChanged(); return this; } /** *
     * Dimensions for vector field type
     * 
* * int32 vectorDimensions = 29; * @return This builder for chaining. */ public Builder clearVectorDimensions() { bitField0_ = (bitField0_ & ~0x10000000); vectorDimensions_ = 0; onChanged(); return this; } private boolean eagerFieldGlobalOrdinals_ ; /** *
     * If field based global ordinals should be built up front, otherwise this is done lazily on first access. Currently only for fields with text doc values (TEXT/ATOM).
     * 
* * bool eagerFieldGlobalOrdinals = 30; * @return The eagerFieldGlobalOrdinals. */ @java.lang.Override public boolean getEagerFieldGlobalOrdinals() { return eagerFieldGlobalOrdinals_; } /** *
     * If field based global ordinals should be built up front, otherwise this is done lazily on first access. Currently only for fields with text doc values (TEXT/ATOM).
     * 
* * bool eagerFieldGlobalOrdinals = 30; * @param value The eagerFieldGlobalOrdinals to set. * @return This builder for chaining. */ public Builder setEagerFieldGlobalOrdinals(boolean value) { eagerFieldGlobalOrdinals_ = value; bitField0_ |= 0x20000000; onChanged(); return this; } /** *
     * If field based global ordinals should be built up front, otherwise this is done lazily on first access. Currently only for fields with text doc values (TEXT/ATOM).
     * 
* * bool eagerFieldGlobalOrdinals = 30; * @return This builder for chaining. */ public Builder clearEagerFieldGlobalOrdinals() { bitField0_ = (bitField0_ & ~0x20000000); eagerFieldGlobalOrdinals_ = false; onChanged(); return this; } private java.lang.Object vectorSimilarity_ = ""; /** *
     * Similarity type for search enabled VECTOR fields. This is a required option when search=true.
     * Accepts built in types:
     *      'l2_norm'          : (1 / (1 + l2_norm(query, vector)^2))
     *      'dot_product'      : Float vector: ((1 + dot_product(query, vector)) / 2) (all vectors must be unit length)
     *                           Byte vector : 0.5 + (dot_product(query, vector) / (32768 * dims)) (all vectors must have the same length)
     *      'cosine'           : ((1 + cosine(query, vector)) / 2)
     *      'max_inner_product': when < 0 : 1 / (1 + -1 * max_inner_product(query, vector))
     *                           when >= 0: max_inner_product(query, vector) + 1
     * 
* * string vectorSimilarity = 31; * @return The vectorSimilarity. */ public java.lang.String getVectorSimilarity() { java.lang.Object ref = vectorSimilarity_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vectorSimilarity_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Similarity type for search enabled VECTOR fields. This is a required option when search=true.
     * Accepts built in types:
     *      'l2_norm'          : (1 / (1 + l2_norm(query, vector)^2))
     *      'dot_product'      : Float vector: ((1 + dot_product(query, vector)) / 2) (all vectors must be unit length)
     *                           Byte vector : 0.5 + (dot_product(query, vector) / (32768 * dims)) (all vectors must have the same length)
     *      'cosine'           : ((1 + cosine(query, vector)) / 2)
     *      'max_inner_product': when < 0 : 1 / (1 + -1 * max_inner_product(query, vector))
     *                           when >= 0: max_inner_product(query, vector) + 1
     * 
* * string vectorSimilarity = 31; * @return The bytes for vectorSimilarity. */ public com.google.protobuf.ByteString getVectorSimilarityBytes() { java.lang.Object ref = vectorSimilarity_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); vectorSimilarity_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Similarity type for search enabled VECTOR fields. This is a required option when search=true.
     * Accepts built in types:
     *      'l2_norm'          : (1 / (1 + l2_norm(query, vector)^2))
     *      'dot_product'      : Float vector: ((1 + dot_product(query, vector)) / 2) (all vectors must be unit length)
     *                           Byte vector : 0.5 + (dot_product(query, vector) / (32768 * dims)) (all vectors must have the same length)
     *      'cosine'           : ((1 + cosine(query, vector)) / 2)
     *      'max_inner_product': when < 0 : 1 / (1 + -1 * max_inner_product(query, vector))
     *                           when >= 0: max_inner_product(query, vector) + 1
     * 
* * string vectorSimilarity = 31; * @param value The vectorSimilarity to set. * @return This builder for chaining. */ public Builder setVectorSimilarity( java.lang.String value) { if (value == null) { throw new NullPointerException(); } vectorSimilarity_ = value; bitField0_ |= 0x40000000; onChanged(); return this; } /** *
     * Similarity type for search enabled VECTOR fields. This is a required option when search=true.
     * Accepts built in types:
     *      'l2_norm'          : (1 / (1 + l2_norm(query, vector)^2))
     *      'dot_product'      : Float vector: ((1 + dot_product(query, vector)) / 2) (all vectors must be unit length)
     *                           Byte vector : 0.5 + (dot_product(query, vector) / (32768 * dims)) (all vectors must have the same length)
     *      'cosine'           : ((1 + cosine(query, vector)) / 2)
     *      'max_inner_product': when < 0 : 1 / (1 + -1 * max_inner_product(query, vector))
     *                           when >= 0: max_inner_product(query, vector) + 1
     * 
* * string vectorSimilarity = 31; * @return This builder for chaining. */ public Builder clearVectorSimilarity() { vectorSimilarity_ = getDefaultInstance().getVectorSimilarity(); bitField0_ = (bitField0_ & ~0x40000000); onChanged(); return this; } /** *
     * Similarity type for search enabled VECTOR fields. This is a required option when search=true.
     * Accepts built in types:
     *      'l2_norm'          : (1 / (1 + l2_norm(query, vector)^2))
     *      'dot_product'      : Float vector: ((1 + dot_product(query, vector)) / 2) (all vectors must be unit length)
     *                           Byte vector : 0.5 + (dot_product(query, vector) / (32768 * dims)) (all vectors must have the same length)
     *      'cosine'           : ((1 + cosine(query, vector)) / 2)
     *      'max_inner_product': when < 0 : 1 / (1 + -1 * max_inner_product(query, vector))
     *                           when >= 0: max_inner_product(query, vector) + 1
     * 
* * string vectorSimilarity = 31; * @param value The bytes for vectorSimilarity to set. * @return This builder for chaining. */ public Builder setVectorSimilarityBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); vectorSimilarity_ = value; bitField0_ |= 0x40000000; onChanged(); return this; } private com.yelp.nrtsearch.server.grpc.VectorIndexingOptions vectorIndexingOptions_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.VectorIndexingOptions, com.yelp.nrtsearch.server.grpc.VectorIndexingOptions.Builder, com.yelp.nrtsearch.server.grpc.VectorIndexingOptionsOrBuilder> vectorIndexingOptionsBuilder_; /** *
     * Indexing options for search enabled VECTOR field type. This is optional, defaulting to HNSW with m=16, ef_construction=100 when not set.
     * 
* * .luceneserver.VectorIndexingOptions vectorIndexingOptions = 32; * @return Whether the vectorIndexingOptions field is set. */ public boolean hasVectorIndexingOptions() { return ((bitField0_ & 0x80000000) != 0); } /** *
     * Indexing options for search enabled VECTOR field type. This is optional, defaulting to HNSW with m=16, ef_construction=100 when not set.
     * 
* * .luceneserver.VectorIndexingOptions vectorIndexingOptions = 32; * @return The vectorIndexingOptions. */ public com.yelp.nrtsearch.server.grpc.VectorIndexingOptions getVectorIndexingOptions() { if (vectorIndexingOptionsBuilder_ == null) { return vectorIndexingOptions_ == null ? com.yelp.nrtsearch.server.grpc.VectorIndexingOptions.getDefaultInstance() : vectorIndexingOptions_; } else { return vectorIndexingOptionsBuilder_.getMessage(); } } /** *
     * Indexing options for search enabled VECTOR field type. This is optional, defaulting to HNSW with m=16, ef_construction=100 when not set.
     * 
* * .luceneserver.VectorIndexingOptions vectorIndexingOptions = 32; */ public Builder setVectorIndexingOptions(com.yelp.nrtsearch.server.grpc.VectorIndexingOptions value) { if (vectorIndexingOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } vectorIndexingOptions_ = value; } else { vectorIndexingOptionsBuilder_.setMessage(value); } bitField0_ |= 0x80000000; onChanged(); return this; } /** *
     * Indexing options for search enabled VECTOR field type. This is optional, defaulting to HNSW with m=16, ef_construction=100 when not set.
     * 
* * .luceneserver.VectorIndexingOptions vectorIndexingOptions = 32; */ public Builder setVectorIndexingOptions( com.yelp.nrtsearch.server.grpc.VectorIndexingOptions.Builder builderForValue) { if (vectorIndexingOptionsBuilder_ == null) { vectorIndexingOptions_ = builderForValue.build(); } else { vectorIndexingOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x80000000; onChanged(); return this; } /** *
     * Indexing options for search enabled VECTOR field type. This is optional, defaulting to HNSW with m=16, ef_construction=100 when not set.
     * 
* * .luceneserver.VectorIndexingOptions vectorIndexingOptions = 32; */ public Builder mergeVectorIndexingOptions(com.yelp.nrtsearch.server.grpc.VectorIndexingOptions value) { if (vectorIndexingOptionsBuilder_ == null) { if (((bitField0_ & 0x80000000) != 0) && vectorIndexingOptions_ != null && vectorIndexingOptions_ != com.yelp.nrtsearch.server.grpc.VectorIndexingOptions.getDefaultInstance()) { getVectorIndexingOptionsBuilder().mergeFrom(value); } else { vectorIndexingOptions_ = value; } } else { vectorIndexingOptionsBuilder_.mergeFrom(value); } if (vectorIndexingOptions_ != null) { bitField0_ |= 0x80000000; onChanged(); } return this; } /** *
     * Indexing options for search enabled VECTOR field type. This is optional, defaulting to HNSW with m=16, ef_construction=100 when not set.
     * 
* * .luceneserver.VectorIndexingOptions vectorIndexingOptions = 32; */ public Builder clearVectorIndexingOptions() { bitField0_ = (bitField0_ & ~0x80000000); vectorIndexingOptions_ = null; if (vectorIndexingOptionsBuilder_ != null) { vectorIndexingOptionsBuilder_.dispose(); vectorIndexingOptionsBuilder_ = null; } onChanged(); return this; } /** *
     * Indexing options for search enabled VECTOR field type. This is optional, defaulting to HNSW with m=16, ef_construction=100 when not set.
     * 
* * .luceneserver.VectorIndexingOptions vectorIndexingOptions = 32; */ public com.yelp.nrtsearch.server.grpc.VectorIndexingOptions.Builder getVectorIndexingOptionsBuilder() { bitField0_ |= 0x80000000; onChanged(); return getVectorIndexingOptionsFieldBuilder().getBuilder(); } /** *
     * Indexing options for search enabled VECTOR field type. This is optional, defaulting to HNSW with m=16, ef_construction=100 when not set.
     * 
* * .luceneserver.VectorIndexingOptions vectorIndexingOptions = 32; */ public com.yelp.nrtsearch.server.grpc.VectorIndexingOptionsOrBuilder getVectorIndexingOptionsOrBuilder() { if (vectorIndexingOptionsBuilder_ != null) { return vectorIndexingOptionsBuilder_.getMessageOrBuilder(); } else { return vectorIndexingOptions_ == null ? com.yelp.nrtsearch.server.grpc.VectorIndexingOptions.getDefaultInstance() : vectorIndexingOptions_; } } /** *
     * Indexing options for search enabled VECTOR field type. This is optional, defaulting to HNSW with m=16, ef_construction=100 when not set.
     * 
* * .luceneserver.VectorIndexingOptions vectorIndexingOptions = 32; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.VectorIndexingOptions, com.yelp.nrtsearch.server.grpc.VectorIndexingOptions.Builder, com.yelp.nrtsearch.server.grpc.VectorIndexingOptionsOrBuilder> getVectorIndexingOptionsFieldBuilder() { if (vectorIndexingOptionsBuilder_ == null) { vectorIndexingOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.VectorIndexingOptions, com.yelp.nrtsearch.server.grpc.VectorIndexingOptions.Builder, com.yelp.nrtsearch.server.grpc.VectorIndexingOptionsOrBuilder>( getVectorIndexingOptions(), getParentForChildren(), isClean()); vectorIndexingOptions_ = null; } return vectorIndexingOptionsBuilder_; } private int textDocValuesType_ = 0; /** *
     *  Specify docvalues type for TEXT/ATOM field types. This is optional, defaulting to SORTED when not set. Multivalued fields will always use SORTED_SET.
     * 
* * .luceneserver.TextDocValuesType textDocValuesType = 33; * @return The enum numeric value on the wire for textDocValuesType. */ @java.lang.Override public int getTextDocValuesTypeValue() { return textDocValuesType_; } /** *
     *  Specify docvalues type for TEXT/ATOM field types. This is optional, defaulting to SORTED when not set. Multivalued fields will always use SORTED_SET.
     * 
* * .luceneserver.TextDocValuesType textDocValuesType = 33; * @param value The enum numeric value on the wire for textDocValuesType to set. * @return This builder for chaining. */ public Builder setTextDocValuesTypeValue(int value) { textDocValuesType_ = value; bitField1_ |= 0x00000001; onChanged(); return this; } /** *
     *  Specify docvalues type for TEXT/ATOM field types. This is optional, defaulting to SORTED when not set. Multivalued fields will always use SORTED_SET.
     * 
* * .luceneserver.TextDocValuesType textDocValuesType = 33; * @return The textDocValuesType. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.TextDocValuesType getTextDocValuesType() { com.yelp.nrtsearch.server.grpc.TextDocValuesType result = com.yelp.nrtsearch.server.grpc.TextDocValuesType.forNumber(textDocValuesType_); return result == null ? com.yelp.nrtsearch.server.grpc.TextDocValuesType.UNRECOGNIZED : result; } /** *
     *  Specify docvalues type for TEXT/ATOM field types. This is optional, defaulting to SORTED when not set. Multivalued fields will always use SORTED_SET.
     * 
* * .luceneserver.TextDocValuesType textDocValuesType = 33; * @param value The textDocValuesType to set. * @return This builder for chaining. */ public Builder setTextDocValuesType(com.yelp.nrtsearch.server.grpc.TextDocValuesType value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00000001; textDocValuesType_ = value.getNumber(); onChanged(); return this; } /** *
     *  Specify docvalues type for TEXT/ATOM field types. This is optional, defaulting to SORTED when not set. Multivalued fields will always use SORTED_SET.
     * 
* * .luceneserver.TextDocValuesType textDocValuesType = 33; * @return This builder for chaining. */ public Builder clearTextDocValuesType() { bitField1_ = (bitField1_ & ~0x00000001); textDocValuesType_ = 0; onChanged(); return this; } private int vectorElementType_ = 0; /** *
     * Element type for vector field, defaulting to FLOAT when not set.
     * 
* * .luceneserver.VectorElementType vectorElementType = 34; * @return The enum numeric value on the wire for vectorElementType. */ @java.lang.Override public int getVectorElementTypeValue() { return vectorElementType_; } /** *
     * Element type for vector field, defaulting to FLOAT when not set.
     * 
* * .luceneserver.VectorElementType vectorElementType = 34; * @param value The enum numeric value on the wire for vectorElementType to set. * @return This builder for chaining. */ public Builder setVectorElementTypeValue(int value) { vectorElementType_ = value; bitField1_ |= 0x00000002; onChanged(); return this; } /** *
     * Element type for vector field, defaulting to FLOAT when not set.
     * 
* * .luceneserver.VectorElementType vectorElementType = 34; * @return The vectorElementType. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.VectorElementType getVectorElementType() { com.yelp.nrtsearch.server.grpc.VectorElementType result = com.yelp.nrtsearch.server.grpc.VectorElementType.forNumber(vectorElementType_); return result == null ? com.yelp.nrtsearch.server.grpc.VectorElementType.UNRECOGNIZED : result; } /** *
     * Element type for vector field, defaulting to FLOAT when not set.
     * 
* * .luceneserver.VectorElementType vectorElementType = 34; * @param value The vectorElementType to set. * @return This builder for chaining. */ public Builder setVectorElementType(com.yelp.nrtsearch.server.grpc.VectorElementType value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00000002; vectorElementType_ = value.getNumber(); onChanged(); return this; } /** *
     * Element type for vector field, defaulting to FLOAT when not set.
     * 
* * .luceneserver.VectorElementType vectorElementType = 34; * @return This builder for chaining. */ public Builder clearVectorElementType() { bitField1_ = (bitField1_ & ~0x00000002); vectorElementType_ = 0; onChanged(); return this; } private int positionIncrementGap_ ; /** *
     * Position increment gap for indexing multi valued TEXT fields. Must be >= 0, defaulting to 100 when not set.
     * 
* * optional int32 positionIncrementGap = 35; * @return Whether the positionIncrementGap field is set. */ @java.lang.Override public boolean hasPositionIncrementGap() { return ((bitField1_ & 0x00000004) != 0); } /** *
     * Position increment gap for indexing multi valued TEXT fields. Must be >= 0, defaulting to 100 when not set.
     * 
* * optional int32 positionIncrementGap = 35; * @return The positionIncrementGap. */ @java.lang.Override public int getPositionIncrementGap() { return positionIncrementGap_; } /** *
     * Position increment gap for indexing multi valued TEXT fields. Must be >= 0, defaulting to 100 when not set.
     * 
* * optional int32 positionIncrementGap = 35; * @param value The positionIncrementGap to set. * @return This builder for chaining. */ public Builder setPositionIncrementGap(int value) { positionIncrementGap_ = value; bitField1_ |= 0x00000004; onChanged(); return this; } /** *
     * Position increment gap for indexing multi valued TEXT fields. Must be >= 0, defaulting to 100 when not set.
     * 
* * optional int32 positionIncrementGap = 35; * @return This builder for chaining. */ public Builder clearPositionIncrementGap() { bitField1_ = (bitField1_ & ~0x00000004); positionIncrementGap_ = 0; onChanged(); return this; } private int ignoreAbove_ ; /** *
     * For arrays of strings, ignoreAbove will be applied for each array element separately and string elements longer than ignore_above will not be indexed or stored.
     * This option is also useful for protecting against Lucene’s term byte-length limit of 32766
     * 
* * optional int32 ignoreAbove = 36; * @return Whether the ignoreAbove field is set. */ @java.lang.Override public boolean hasIgnoreAbove() { return ((bitField1_ & 0x00000008) != 0); } /** *
     * For arrays of strings, ignoreAbove will be applied for each array element separately and string elements longer than ignore_above will not be indexed or stored.
     * This option is also useful for protecting against Lucene’s term byte-length limit of 32766
     * 
* * optional int32 ignoreAbove = 36; * @return The ignoreAbove. */ @java.lang.Override public int getIgnoreAbove() { return ignoreAbove_; } /** *
     * For arrays of strings, ignoreAbove will be applied for each array element separately and string elements longer than ignore_above will not be indexed or stored.
     * This option is also useful for protecting against Lucene’s term byte-length limit of 32766
     * 
* * optional int32 ignoreAbove = 36; * @param value The ignoreAbove to set. * @return This builder for chaining. */ public Builder setIgnoreAbove(int value) { ignoreAbove_ = value; bitField1_ |= 0x00000008; onChanged(); return this; } /** *
     * For arrays of strings, ignoreAbove will be applied for each array element separately and string elements longer than ignore_above will not be indexed or stored.
     * This option is also useful for protecting against Lucene’s term byte-length limit of 32766
     * 
* * optional int32 ignoreAbove = 36; * @return This builder for chaining. */ public Builder clearIgnoreAbove() { bitField1_ = (bitField1_ & ~0x00000008); ignoreAbove_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:luceneserver.Field) } // @@protoc_insertion_point(class_scope:luceneserver.Field) private static final com.yelp.nrtsearch.server.grpc.Field DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.Field(); } public static com.yelp.nrtsearch.server.grpc.Field getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Field parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.Field getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy