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

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

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yelp/nrtsearch/search.proto

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

/**
 * 
 * A query that matches documents containing terms in the same order as those in the analyzed query string. The final analyzed token is treated as a prefix
 * 
* * Protobuf type {@code luceneserver.MatchPhrasePrefixQuery} */ public final class MatchPhrasePrefixQuery extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.MatchPhrasePrefixQuery) MatchPhrasePrefixQueryOrBuilder { private static final long serialVersionUID = 0L; // Use MatchPhrasePrefixQuery.newBuilder() to construct. private MatchPhrasePrefixQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MatchPhrasePrefixQuery() { field_ = ""; query_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MatchPhrasePrefixQuery(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_MatchPhrasePrefixQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_MatchPhrasePrefixQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.class, com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.Builder.class); } private int bitField0_; public static final int FIELD_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object field_ = ""; /** *
   * Field in the document to query.
   * 
* * string field = 1; * @return The field. */ @java.lang.Override public java.lang.String getField() { java.lang.Object ref = field_; 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(); field_ = s; return s; } } /** *
   * Field in the document to query.
   * 
* * string field = 1; * @return The bytes for field. */ @java.lang.Override public com.google.protobuf.ByteString getFieldBytes() { java.lang.Object ref = field_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); field_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int QUERY_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object query_ = ""; /** *
   * The text to query with.
   * 
* * string query = 2; * @return The query. */ @java.lang.Override public java.lang.String getQuery() { java.lang.Object ref = query_; 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(); query_ = s; return s; } } /** *
   * The text to query with.
   * 
* * string query = 2; * @return The bytes for query. */ @java.lang.Override public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); query_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SLOP_FIELD_NUMBER = 3; private int slop_ = 0; /** *
   * Edit distance between respective positions of tokens generated by analyzing this query and the positions of terms in a document.
   * 
* * int32 slop = 3; * @return The slop. */ @java.lang.Override public int getSlop() { return slop_; } public static final int ANALYZER_FIELD_NUMBER = 4; private com.yelp.nrtsearch.server.grpc.Analyzer analyzer_; /** *
   * Analyzer used to analyze the query. If not provided, the default search analyzer for the field would be used instead.
   * 
* * .luceneserver.Analyzer analyzer = 4; * @return Whether the analyzer field is set. */ @java.lang.Override public boolean hasAnalyzer() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Analyzer used to analyze the query. If not provided, the default search analyzer for the field would be used instead.
   * 
* * .luceneserver.Analyzer analyzer = 4; * @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_; } /** *
   * Analyzer used to analyze the query. If not provided, the default search analyzer for the field would be used instead.
   * 
* * .luceneserver.Analyzer analyzer = 4; */ @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 MAX_EXPANSIONS_FIELD_NUMBER = 5; private int maxExpansions_ = 0; /** *
   * Maximum number of terms to which the last provided term of the query value will expand. Defaults to 50.
   * 
* * int32 max_expansions = 5; * @return The maxExpansions. */ @java.lang.Override public int getMaxExpansions() { return maxExpansions_; } 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(field_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_); } if (slop_ != 0) { output.writeInt32(3, slop_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getAnalyzer()); } if (maxExpansions_ != 0) { output.writeInt32(5, maxExpansions_); } 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(field_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(query_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_); } if (slop_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, slop_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getAnalyzer()); } if (maxExpansions_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, maxExpansions_); } 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.MatchPhrasePrefixQuery)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery other = (com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery) obj; if (!getField() .equals(other.getField())) return false; if (!getQuery() .equals(other.getQuery())) return false; if (getSlop() != other.getSlop()) return false; if (hasAnalyzer() != other.hasAnalyzer()) return false; if (hasAnalyzer()) { if (!getAnalyzer() .equals(other.getAnalyzer())) return false; } if (getMaxExpansions() != other.getMaxExpansions()) 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) + FIELD_FIELD_NUMBER; hash = (53 * hash) + getField().hashCode(); hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); hash = (37 * hash) + SLOP_FIELD_NUMBER; hash = (53 * hash) + getSlop(); if (hasAnalyzer()) { hash = (37 * hash) + ANALYZER_FIELD_NUMBER; hash = (53 * hash) + getAnalyzer().hashCode(); } hash = (37 * hash) + MAX_EXPANSIONS_FIELD_NUMBER; hash = (53 * hash) + getMaxExpansions(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery 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.MatchPhrasePrefixQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery 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.MatchPhrasePrefixQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery 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.MatchPhrasePrefixQuery parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery 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.MatchPhrasePrefixQuery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery 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.MatchPhrasePrefixQuery 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.MatchPhrasePrefixQuery 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.MatchPhrasePrefixQuery 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; } /** *
   * A query that matches documents containing terms in the same order as those in the analyzed query string. The final analyzed token is treated as a prefix
   * 
* * Protobuf type {@code luceneserver.MatchPhrasePrefixQuery} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.MatchPhrasePrefixQuery) com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQueryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_MatchPhrasePrefixQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_MatchPhrasePrefixQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.class, com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAnalyzerFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; field_ = ""; query_ = ""; slop_ = 0; analyzer_ = null; if (analyzerBuilder_ != null) { analyzerBuilder_.dispose(); analyzerBuilder_ = null; } maxExpansions_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_MatchPhrasePrefixQuery_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery build() { com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery buildPartial() { com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery result = new com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.field_ = field_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.query_ = query_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.slop_ = slop_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.analyzer_ = analyzerBuilder_ == null ? analyzer_ : analyzerBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.maxExpansions_ = maxExpansions_; } 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.MatchPhrasePrefixQuery) { return mergeFrom((com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery other) { if (other == com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.getDefaultInstance()) return this; if (!other.getField().isEmpty()) { field_ = other.field_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getQuery().isEmpty()) { query_ = other.query_; bitField0_ |= 0x00000002; onChanged(); } if (other.getSlop() != 0) { setSlop(other.getSlop()); } if (other.hasAnalyzer()) { mergeAnalyzer(other.getAnalyzer()); } if (other.getMaxExpansions() != 0) { setMaxExpansions(other.getMaxExpansions()); } 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: { field_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { query_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { slop_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage( getAnalyzerFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { maxExpansions_ = input.readInt32(); bitField0_ |= 0x00000010; break; } // case 40 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 java.lang.Object field_ = ""; /** *
     * Field in the document to query.
     * 
* * string field = 1; * @return The field. */ public java.lang.String getField() { java.lang.Object ref = field_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); field_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Field in the document to query.
     * 
* * string field = 1; * @return The bytes for field. */ public com.google.protobuf.ByteString getFieldBytes() { java.lang.Object ref = field_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); field_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Field in the document to query.
     * 
* * string field = 1; * @param value The field to set. * @return This builder for chaining. */ public Builder setField( java.lang.String value) { if (value == null) { throw new NullPointerException(); } field_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Field in the document to query.
     * 
* * string field = 1; * @return This builder for chaining. */ public Builder clearField() { field_ = getDefaultInstance().getField(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Field in the document to query.
     * 
* * string field = 1; * @param value The bytes for field to set. * @return This builder for chaining. */ public Builder setFieldBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); field_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object query_ = ""; /** *
     * The text to query with.
     * 
* * string query = 2; * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The text to query with.
     * 
* * string query = 2; * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); query_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The text to query with.
     * 
* * string query = 2; * @param value The query to set. * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { if (value == null) { throw new NullPointerException(); } query_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The text to query with.
     * 
* * string query = 2; * @return This builder for chaining. */ public Builder clearQuery() { query_ = getDefaultInstance().getQuery(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * The text to query with.
     * 
* * string query = 2; * @param value The bytes for query to set. * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); query_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int slop_ ; /** *
     * Edit distance between respective positions of tokens generated by analyzing this query and the positions of terms in a document.
     * 
* * int32 slop = 3; * @return The slop. */ @java.lang.Override public int getSlop() { return slop_; } /** *
     * Edit distance between respective positions of tokens generated by analyzing this query and the positions of terms in a document.
     * 
* * int32 slop = 3; * @param value The slop to set. * @return This builder for chaining. */ public Builder setSlop(int value) { slop_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Edit distance between respective positions of tokens generated by analyzing this query and the positions of terms in a document.
     * 
* * int32 slop = 3; * @return This builder for chaining. */ public Builder clearSlop() { bitField0_ = (bitField0_ & ~0x00000004); slop_ = 0; onChanged(); return this; } 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_; /** *
     * Analyzer used to analyze the query. If not provided, the default search analyzer for the field would be used instead.
     * 
* * .luceneserver.Analyzer analyzer = 4; * @return Whether the analyzer field is set. */ public boolean hasAnalyzer() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Analyzer used to analyze the query. If not provided, the default search analyzer for the field would be used instead.
     * 
* * .luceneserver.Analyzer analyzer = 4; * @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(); } } /** *
     * Analyzer used to analyze the query. If not provided, the default search analyzer for the field would be used instead.
     * 
* * .luceneserver.Analyzer analyzer = 4; */ 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_ |= 0x00000008; onChanged(); return this; } /** *
     * Analyzer used to analyze the query. If not provided, the default search analyzer for the field would be used instead.
     * 
* * .luceneserver.Analyzer analyzer = 4; */ public Builder setAnalyzer( com.yelp.nrtsearch.server.grpc.Analyzer.Builder builderForValue) { if (analyzerBuilder_ == null) { analyzer_ = builderForValue.build(); } else { analyzerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Analyzer used to analyze the query. If not provided, the default search analyzer for the field would be used instead.
     * 
* * .luceneserver.Analyzer analyzer = 4; */ public Builder mergeAnalyzer(com.yelp.nrtsearch.server.grpc.Analyzer value) { if (analyzerBuilder_ == null) { if (((bitField0_ & 0x00000008) != 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_ |= 0x00000008; onChanged(); } return this; } /** *
     * Analyzer used to analyze the query. If not provided, the default search analyzer for the field would be used instead.
     * 
* * .luceneserver.Analyzer analyzer = 4; */ public Builder clearAnalyzer() { bitField0_ = (bitField0_ & ~0x00000008); analyzer_ = null; if (analyzerBuilder_ != null) { analyzerBuilder_.dispose(); analyzerBuilder_ = null; } onChanged(); return this; } /** *
     * Analyzer used to analyze the query. If not provided, the default search analyzer for the field would be used instead.
     * 
* * .luceneserver.Analyzer analyzer = 4; */ public com.yelp.nrtsearch.server.grpc.Analyzer.Builder getAnalyzerBuilder() { bitField0_ |= 0x00000008; onChanged(); return getAnalyzerFieldBuilder().getBuilder(); } /** *
     * Analyzer used to analyze the query. If not provided, the default search analyzer for the field would be used instead.
     * 
* * .luceneserver.Analyzer analyzer = 4; */ 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_; } } /** *
     * Analyzer used to analyze the query. If not provided, the default search analyzer for the field would be used instead.
     * 
* * .luceneserver.Analyzer analyzer = 4; */ 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 int maxExpansions_ ; /** *
     * Maximum number of terms to which the last provided term of the query value will expand. Defaults to 50.
     * 
* * int32 max_expansions = 5; * @return The maxExpansions. */ @java.lang.Override public int getMaxExpansions() { return maxExpansions_; } /** *
     * Maximum number of terms to which the last provided term of the query value will expand. Defaults to 50.
     * 
* * int32 max_expansions = 5; * @param value The maxExpansions to set. * @return This builder for chaining. */ public Builder setMaxExpansions(int value) { maxExpansions_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Maximum number of terms to which the last provided term of the query value will expand. Defaults to 50.
     * 
* * int32 max_expansions = 5; * @return This builder for chaining. */ public Builder clearMaxExpansions() { bitField0_ = (bitField0_ & ~0x00000010); maxExpansions_ = 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.MatchPhrasePrefixQuery) } // @@protoc_insertion_point(class_scope:luceneserver.MatchPhrasePrefixQuery) private static final com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery(); } public static com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MatchPhrasePrefixQuery 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.MatchPhrasePrefixQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy