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

com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery 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;

/**
 * 
 * Message for a SpanMultiTermQuery
 * 
* * Protobuf type {@code luceneserver.SpanMultiTermQuery} */ public final class SpanMultiTermQuery extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.SpanMultiTermQuery) SpanMultiTermQueryOrBuilder { private static final long serialVersionUID = 0L; // Use SpanMultiTermQuery.newBuilder() to construct. private SpanMultiTermQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SpanMultiTermQuery() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SpanMultiTermQuery(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SpanMultiTermQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SpanMultiTermQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery.class, com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery.Builder.class); } private int wrappedQueryCase_ = 0; @SuppressWarnings("serial") private java.lang.Object wrappedQuery_; public enum WrappedQueryCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { WILDCARDQUERY(1), FUZZYQUERY(2), PREFIXQUERY(3), REGEXPQUERY(4), TERMRANGEQUERY(5), WRAPPEDQUERY_NOT_SET(0); private final int value; private WrappedQueryCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static WrappedQueryCase valueOf(int value) { return forNumber(value); } public static WrappedQueryCase forNumber(int value) { switch (value) { case 1: return WILDCARDQUERY; case 2: return FUZZYQUERY; case 3: return PREFIXQUERY; case 4: return REGEXPQUERY; case 5: return TERMRANGEQUERY; case 0: return WRAPPEDQUERY_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public WrappedQueryCase getWrappedQueryCase() { return WrappedQueryCase.forNumber( wrappedQueryCase_); } public static final int WILDCARDQUERY_FIELD_NUMBER = 1; /** * .luceneserver.WildcardQuery wildcardQuery = 1; * @return Whether the wildcardQuery field is set. */ @java.lang.Override public boolean hasWildcardQuery() { return wrappedQueryCase_ == 1; } /** * .luceneserver.WildcardQuery wildcardQuery = 1; * @return The wildcardQuery. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.WildcardQuery getWildcardQuery() { if (wrappedQueryCase_ == 1) { return (com.yelp.nrtsearch.server.grpc.WildcardQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.WildcardQuery.getDefaultInstance(); } /** * .luceneserver.WildcardQuery wildcardQuery = 1; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.WildcardQueryOrBuilder getWildcardQueryOrBuilder() { if (wrappedQueryCase_ == 1) { return (com.yelp.nrtsearch.server.grpc.WildcardQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.WildcardQuery.getDefaultInstance(); } public static final int FUZZYQUERY_FIELD_NUMBER = 2; /** * .luceneserver.FuzzyQuery fuzzyQuery = 2; * @return Whether the fuzzyQuery field is set. */ @java.lang.Override public boolean hasFuzzyQuery() { return wrappedQueryCase_ == 2; } /** * .luceneserver.FuzzyQuery fuzzyQuery = 2; * @return The fuzzyQuery. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.FuzzyQuery getFuzzyQuery() { if (wrappedQueryCase_ == 2) { return (com.yelp.nrtsearch.server.grpc.FuzzyQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.FuzzyQuery.getDefaultInstance(); } /** * .luceneserver.FuzzyQuery fuzzyQuery = 2; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.FuzzyQueryOrBuilder getFuzzyQueryOrBuilder() { if (wrappedQueryCase_ == 2) { return (com.yelp.nrtsearch.server.grpc.FuzzyQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.FuzzyQuery.getDefaultInstance(); } public static final int PREFIXQUERY_FIELD_NUMBER = 3; /** * .luceneserver.PrefixQuery prefixQuery = 3; * @return Whether the prefixQuery field is set. */ @java.lang.Override public boolean hasPrefixQuery() { return wrappedQueryCase_ == 3; } /** * .luceneserver.PrefixQuery prefixQuery = 3; * @return The prefixQuery. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.PrefixQuery getPrefixQuery() { if (wrappedQueryCase_ == 3) { return (com.yelp.nrtsearch.server.grpc.PrefixQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.PrefixQuery.getDefaultInstance(); } /** * .luceneserver.PrefixQuery prefixQuery = 3; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.PrefixQueryOrBuilder getPrefixQueryOrBuilder() { if (wrappedQueryCase_ == 3) { return (com.yelp.nrtsearch.server.grpc.PrefixQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.PrefixQuery.getDefaultInstance(); } public static final int REGEXPQUERY_FIELD_NUMBER = 4; /** * .luceneserver.RegexpQuery regexpQuery = 4; * @return Whether the regexpQuery field is set. */ @java.lang.Override public boolean hasRegexpQuery() { return wrappedQueryCase_ == 4; } /** * .luceneserver.RegexpQuery regexpQuery = 4; * @return The regexpQuery. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.RegexpQuery getRegexpQuery() { if (wrappedQueryCase_ == 4) { return (com.yelp.nrtsearch.server.grpc.RegexpQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.RegexpQuery.getDefaultInstance(); } /** * .luceneserver.RegexpQuery regexpQuery = 4; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.RegexpQueryOrBuilder getRegexpQueryOrBuilder() { if (wrappedQueryCase_ == 4) { return (com.yelp.nrtsearch.server.grpc.RegexpQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.RegexpQuery.getDefaultInstance(); } public static final int TERMRANGEQUERY_FIELD_NUMBER = 5; /** * .luceneserver.TermRangeQuery termRangeQuery = 5; * @return Whether the termRangeQuery field is set. */ @java.lang.Override public boolean hasTermRangeQuery() { return wrappedQueryCase_ == 5; } /** * .luceneserver.TermRangeQuery termRangeQuery = 5; * @return The termRangeQuery. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.TermRangeQuery getTermRangeQuery() { if (wrappedQueryCase_ == 5) { return (com.yelp.nrtsearch.server.grpc.TermRangeQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.TermRangeQuery.getDefaultInstance(); } /** * .luceneserver.TermRangeQuery termRangeQuery = 5; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.TermRangeQueryOrBuilder getTermRangeQueryOrBuilder() { if (wrappedQueryCase_ == 5) { return (com.yelp.nrtsearch.server.grpc.TermRangeQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.TermRangeQuery.getDefaultInstance(); } 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 (wrappedQueryCase_ == 1) { output.writeMessage(1, (com.yelp.nrtsearch.server.grpc.WildcardQuery) wrappedQuery_); } if (wrappedQueryCase_ == 2) { output.writeMessage(2, (com.yelp.nrtsearch.server.grpc.FuzzyQuery) wrappedQuery_); } if (wrappedQueryCase_ == 3) { output.writeMessage(3, (com.yelp.nrtsearch.server.grpc.PrefixQuery) wrappedQuery_); } if (wrappedQueryCase_ == 4) { output.writeMessage(4, (com.yelp.nrtsearch.server.grpc.RegexpQuery) wrappedQuery_); } if (wrappedQueryCase_ == 5) { output.writeMessage(5, (com.yelp.nrtsearch.server.grpc.TermRangeQuery) wrappedQuery_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (wrappedQueryCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (com.yelp.nrtsearch.server.grpc.WildcardQuery) wrappedQuery_); } if (wrappedQueryCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.yelp.nrtsearch.server.grpc.FuzzyQuery) wrappedQuery_); } if (wrappedQueryCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.yelp.nrtsearch.server.grpc.PrefixQuery) wrappedQuery_); } if (wrappedQueryCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.yelp.nrtsearch.server.grpc.RegexpQuery) wrappedQuery_); } if (wrappedQueryCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.yelp.nrtsearch.server.grpc.TermRangeQuery) wrappedQuery_); } 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.SpanMultiTermQuery)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery other = (com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery) obj; if (!getWrappedQueryCase().equals(other.getWrappedQueryCase())) return false; switch (wrappedQueryCase_) { case 1: if (!getWildcardQuery() .equals(other.getWildcardQuery())) return false; break; case 2: if (!getFuzzyQuery() .equals(other.getFuzzyQuery())) return false; break; case 3: if (!getPrefixQuery() .equals(other.getPrefixQuery())) return false; break; case 4: if (!getRegexpQuery() .equals(other.getRegexpQuery())) return false; break; case 5: if (!getTermRangeQuery() .equals(other.getTermRangeQuery())) return false; break; case 0: default: } 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(); switch (wrappedQueryCase_) { case 1: hash = (37 * hash) + WILDCARDQUERY_FIELD_NUMBER; hash = (53 * hash) + getWildcardQuery().hashCode(); break; case 2: hash = (37 * hash) + FUZZYQUERY_FIELD_NUMBER; hash = (53 * hash) + getFuzzyQuery().hashCode(); break; case 3: hash = (37 * hash) + PREFIXQUERY_FIELD_NUMBER; hash = (53 * hash) + getPrefixQuery().hashCode(); break; case 4: hash = (37 * hash) + REGEXPQUERY_FIELD_NUMBER; hash = (53 * hash) + getRegexpQuery().hashCode(); break; case 5: hash = (37 * hash) + TERMRANGEQUERY_FIELD_NUMBER; hash = (53 * hash) + getTermRangeQuery().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery 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.SpanMultiTermQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery 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.SpanMultiTermQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery 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.SpanMultiTermQuery parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery 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.SpanMultiTermQuery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery 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.SpanMultiTermQuery 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.SpanMultiTermQuery 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.SpanMultiTermQuery 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; } /** *
   * Message for a SpanMultiTermQuery
   * 
* * Protobuf type {@code luceneserver.SpanMultiTermQuery} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.SpanMultiTermQuery) com.yelp.nrtsearch.server.grpc.SpanMultiTermQueryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SpanMultiTermQuery_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SpanMultiTermQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery.class, com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (wildcardQueryBuilder_ != null) { wildcardQueryBuilder_.clear(); } if (fuzzyQueryBuilder_ != null) { fuzzyQueryBuilder_.clear(); } if (prefixQueryBuilder_ != null) { prefixQueryBuilder_.clear(); } if (regexpQueryBuilder_ != null) { regexpQueryBuilder_.clear(); } if (termRangeQueryBuilder_ != null) { termRangeQueryBuilder_.clear(); } wrappedQueryCase_ = 0; wrappedQuery_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SpanMultiTermQuery_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery build() { com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery buildPartial() { com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery result = new com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery result) { result.wrappedQueryCase_ = wrappedQueryCase_; result.wrappedQuery_ = this.wrappedQuery_; if (wrappedQueryCase_ == 1 && wildcardQueryBuilder_ != null) { result.wrappedQuery_ = wildcardQueryBuilder_.build(); } if (wrappedQueryCase_ == 2 && fuzzyQueryBuilder_ != null) { result.wrappedQuery_ = fuzzyQueryBuilder_.build(); } if (wrappedQueryCase_ == 3 && prefixQueryBuilder_ != null) { result.wrappedQuery_ = prefixQueryBuilder_.build(); } if (wrappedQueryCase_ == 4 && regexpQueryBuilder_ != null) { result.wrappedQuery_ = regexpQueryBuilder_.build(); } if (wrappedQueryCase_ == 5 && termRangeQueryBuilder_ != null) { result.wrappedQuery_ = termRangeQueryBuilder_.build(); } } @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.SpanMultiTermQuery) { return mergeFrom((com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery other) { if (other == com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery.getDefaultInstance()) return this; switch (other.getWrappedQueryCase()) { case WILDCARDQUERY: { mergeWildcardQuery(other.getWildcardQuery()); break; } case FUZZYQUERY: { mergeFuzzyQuery(other.getFuzzyQuery()); break; } case PREFIXQUERY: { mergePrefixQuery(other.getPrefixQuery()); break; } case REGEXPQUERY: { mergeRegexpQuery(other.getRegexpQuery()); break; } case TERMRANGEQUERY: { mergeTermRangeQuery(other.getTermRangeQuery()); break; } case WRAPPEDQUERY_NOT_SET: { break; } } 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: { input.readMessage( getWildcardQueryFieldBuilder().getBuilder(), extensionRegistry); wrappedQueryCase_ = 1; break; } // case 10 case 18: { input.readMessage( getFuzzyQueryFieldBuilder().getBuilder(), extensionRegistry); wrappedQueryCase_ = 2; break; } // case 18 case 26: { input.readMessage( getPrefixQueryFieldBuilder().getBuilder(), extensionRegistry); wrappedQueryCase_ = 3; break; } // case 26 case 34: { input.readMessage( getRegexpQueryFieldBuilder().getBuilder(), extensionRegistry); wrappedQueryCase_ = 4; break; } // case 34 case 42: { input.readMessage( getTermRangeQueryFieldBuilder().getBuilder(), extensionRegistry); wrappedQueryCase_ = 5; break; } // case 42 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 wrappedQueryCase_ = 0; private java.lang.Object wrappedQuery_; public WrappedQueryCase getWrappedQueryCase() { return WrappedQueryCase.forNumber( wrappedQueryCase_); } public Builder clearWrappedQuery() { wrappedQueryCase_ = 0; wrappedQuery_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.WildcardQuery, com.yelp.nrtsearch.server.grpc.WildcardQuery.Builder, com.yelp.nrtsearch.server.grpc.WildcardQueryOrBuilder> wildcardQueryBuilder_; /** * .luceneserver.WildcardQuery wildcardQuery = 1; * @return Whether the wildcardQuery field is set. */ @java.lang.Override public boolean hasWildcardQuery() { return wrappedQueryCase_ == 1; } /** * .luceneserver.WildcardQuery wildcardQuery = 1; * @return The wildcardQuery. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.WildcardQuery getWildcardQuery() { if (wildcardQueryBuilder_ == null) { if (wrappedQueryCase_ == 1) { return (com.yelp.nrtsearch.server.grpc.WildcardQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.WildcardQuery.getDefaultInstance(); } else { if (wrappedQueryCase_ == 1) { return wildcardQueryBuilder_.getMessage(); } return com.yelp.nrtsearch.server.grpc.WildcardQuery.getDefaultInstance(); } } /** * .luceneserver.WildcardQuery wildcardQuery = 1; */ public Builder setWildcardQuery(com.yelp.nrtsearch.server.grpc.WildcardQuery value) { if (wildcardQueryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } wrappedQuery_ = value; onChanged(); } else { wildcardQueryBuilder_.setMessage(value); } wrappedQueryCase_ = 1; return this; } /** * .luceneserver.WildcardQuery wildcardQuery = 1; */ public Builder setWildcardQuery( com.yelp.nrtsearch.server.grpc.WildcardQuery.Builder builderForValue) { if (wildcardQueryBuilder_ == null) { wrappedQuery_ = builderForValue.build(); onChanged(); } else { wildcardQueryBuilder_.setMessage(builderForValue.build()); } wrappedQueryCase_ = 1; return this; } /** * .luceneserver.WildcardQuery wildcardQuery = 1; */ public Builder mergeWildcardQuery(com.yelp.nrtsearch.server.grpc.WildcardQuery value) { if (wildcardQueryBuilder_ == null) { if (wrappedQueryCase_ == 1 && wrappedQuery_ != com.yelp.nrtsearch.server.grpc.WildcardQuery.getDefaultInstance()) { wrappedQuery_ = com.yelp.nrtsearch.server.grpc.WildcardQuery.newBuilder((com.yelp.nrtsearch.server.grpc.WildcardQuery) wrappedQuery_) .mergeFrom(value).buildPartial(); } else { wrappedQuery_ = value; } onChanged(); } else { if (wrappedQueryCase_ == 1) { wildcardQueryBuilder_.mergeFrom(value); } else { wildcardQueryBuilder_.setMessage(value); } } wrappedQueryCase_ = 1; return this; } /** * .luceneserver.WildcardQuery wildcardQuery = 1; */ public Builder clearWildcardQuery() { if (wildcardQueryBuilder_ == null) { if (wrappedQueryCase_ == 1) { wrappedQueryCase_ = 0; wrappedQuery_ = null; onChanged(); } } else { if (wrappedQueryCase_ == 1) { wrappedQueryCase_ = 0; wrappedQuery_ = null; } wildcardQueryBuilder_.clear(); } return this; } /** * .luceneserver.WildcardQuery wildcardQuery = 1; */ public com.yelp.nrtsearch.server.grpc.WildcardQuery.Builder getWildcardQueryBuilder() { return getWildcardQueryFieldBuilder().getBuilder(); } /** * .luceneserver.WildcardQuery wildcardQuery = 1; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.WildcardQueryOrBuilder getWildcardQueryOrBuilder() { if ((wrappedQueryCase_ == 1) && (wildcardQueryBuilder_ != null)) { return wildcardQueryBuilder_.getMessageOrBuilder(); } else { if (wrappedQueryCase_ == 1) { return (com.yelp.nrtsearch.server.grpc.WildcardQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.WildcardQuery.getDefaultInstance(); } } /** * .luceneserver.WildcardQuery wildcardQuery = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.WildcardQuery, com.yelp.nrtsearch.server.grpc.WildcardQuery.Builder, com.yelp.nrtsearch.server.grpc.WildcardQueryOrBuilder> getWildcardQueryFieldBuilder() { if (wildcardQueryBuilder_ == null) { if (!(wrappedQueryCase_ == 1)) { wrappedQuery_ = com.yelp.nrtsearch.server.grpc.WildcardQuery.getDefaultInstance(); } wildcardQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.WildcardQuery, com.yelp.nrtsearch.server.grpc.WildcardQuery.Builder, com.yelp.nrtsearch.server.grpc.WildcardQueryOrBuilder>( (com.yelp.nrtsearch.server.grpc.WildcardQuery) wrappedQuery_, getParentForChildren(), isClean()); wrappedQuery_ = null; } wrappedQueryCase_ = 1; onChanged(); return wildcardQueryBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.FuzzyQuery, com.yelp.nrtsearch.server.grpc.FuzzyQuery.Builder, com.yelp.nrtsearch.server.grpc.FuzzyQueryOrBuilder> fuzzyQueryBuilder_; /** * .luceneserver.FuzzyQuery fuzzyQuery = 2; * @return Whether the fuzzyQuery field is set. */ @java.lang.Override public boolean hasFuzzyQuery() { return wrappedQueryCase_ == 2; } /** * .luceneserver.FuzzyQuery fuzzyQuery = 2; * @return The fuzzyQuery. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.FuzzyQuery getFuzzyQuery() { if (fuzzyQueryBuilder_ == null) { if (wrappedQueryCase_ == 2) { return (com.yelp.nrtsearch.server.grpc.FuzzyQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.FuzzyQuery.getDefaultInstance(); } else { if (wrappedQueryCase_ == 2) { return fuzzyQueryBuilder_.getMessage(); } return com.yelp.nrtsearch.server.grpc.FuzzyQuery.getDefaultInstance(); } } /** * .luceneserver.FuzzyQuery fuzzyQuery = 2; */ public Builder setFuzzyQuery(com.yelp.nrtsearch.server.grpc.FuzzyQuery value) { if (fuzzyQueryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } wrappedQuery_ = value; onChanged(); } else { fuzzyQueryBuilder_.setMessage(value); } wrappedQueryCase_ = 2; return this; } /** * .luceneserver.FuzzyQuery fuzzyQuery = 2; */ public Builder setFuzzyQuery( com.yelp.nrtsearch.server.grpc.FuzzyQuery.Builder builderForValue) { if (fuzzyQueryBuilder_ == null) { wrappedQuery_ = builderForValue.build(); onChanged(); } else { fuzzyQueryBuilder_.setMessage(builderForValue.build()); } wrappedQueryCase_ = 2; return this; } /** * .luceneserver.FuzzyQuery fuzzyQuery = 2; */ public Builder mergeFuzzyQuery(com.yelp.nrtsearch.server.grpc.FuzzyQuery value) { if (fuzzyQueryBuilder_ == null) { if (wrappedQueryCase_ == 2 && wrappedQuery_ != com.yelp.nrtsearch.server.grpc.FuzzyQuery.getDefaultInstance()) { wrappedQuery_ = com.yelp.nrtsearch.server.grpc.FuzzyQuery.newBuilder((com.yelp.nrtsearch.server.grpc.FuzzyQuery) wrappedQuery_) .mergeFrom(value).buildPartial(); } else { wrappedQuery_ = value; } onChanged(); } else { if (wrappedQueryCase_ == 2) { fuzzyQueryBuilder_.mergeFrom(value); } else { fuzzyQueryBuilder_.setMessage(value); } } wrappedQueryCase_ = 2; return this; } /** * .luceneserver.FuzzyQuery fuzzyQuery = 2; */ public Builder clearFuzzyQuery() { if (fuzzyQueryBuilder_ == null) { if (wrappedQueryCase_ == 2) { wrappedQueryCase_ = 0; wrappedQuery_ = null; onChanged(); } } else { if (wrappedQueryCase_ == 2) { wrappedQueryCase_ = 0; wrappedQuery_ = null; } fuzzyQueryBuilder_.clear(); } return this; } /** * .luceneserver.FuzzyQuery fuzzyQuery = 2; */ public com.yelp.nrtsearch.server.grpc.FuzzyQuery.Builder getFuzzyQueryBuilder() { return getFuzzyQueryFieldBuilder().getBuilder(); } /** * .luceneserver.FuzzyQuery fuzzyQuery = 2; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.FuzzyQueryOrBuilder getFuzzyQueryOrBuilder() { if ((wrappedQueryCase_ == 2) && (fuzzyQueryBuilder_ != null)) { return fuzzyQueryBuilder_.getMessageOrBuilder(); } else { if (wrappedQueryCase_ == 2) { return (com.yelp.nrtsearch.server.grpc.FuzzyQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.FuzzyQuery.getDefaultInstance(); } } /** * .luceneserver.FuzzyQuery fuzzyQuery = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.FuzzyQuery, com.yelp.nrtsearch.server.grpc.FuzzyQuery.Builder, com.yelp.nrtsearch.server.grpc.FuzzyQueryOrBuilder> getFuzzyQueryFieldBuilder() { if (fuzzyQueryBuilder_ == null) { if (!(wrappedQueryCase_ == 2)) { wrappedQuery_ = com.yelp.nrtsearch.server.grpc.FuzzyQuery.getDefaultInstance(); } fuzzyQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.FuzzyQuery, com.yelp.nrtsearch.server.grpc.FuzzyQuery.Builder, com.yelp.nrtsearch.server.grpc.FuzzyQueryOrBuilder>( (com.yelp.nrtsearch.server.grpc.FuzzyQuery) wrappedQuery_, getParentForChildren(), isClean()); wrappedQuery_ = null; } wrappedQueryCase_ = 2; onChanged(); return fuzzyQueryBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.PrefixQuery, com.yelp.nrtsearch.server.grpc.PrefixQuery.Builder, com.yelp.nrtsearch.server.grpc.PrefixQueryOrBuilder> prefixQueryBuilder_; /** * .luceneserver.PrefixQuery prefixQuery = 3; * @return Whether the prefixQuery field is set. */ @java.lang.Override public boolean hasPrefixQuery() { return wrappedQueryCase_ == 3; } /** * .luceneserver.PrefixQuery prefixQuery = 3; * @return The prefixQuery. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.PrefixQuery getPrefixQuery() { if (prefixQueryBuilder_ == null) { if (wrappedQueryCase_ == 3) { return (com.yelp.nrtsearch.server.grpc.PrefixQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.PrefixQuery.getDefaultInstance(); } else { if (wrappedQueryCase_ == 3) { return prefixQueryBuilder_.getMessage(); } return com.yelp.nrtsearch.server.grpc.PrefixQuery.getDefaultInstance(); } } /** * .luceneserver.PrefixQuery prefixQuery = 3; */ public Builder setPrefixQuery(com.yelp.nrtsearch.server.grpc.PrefixQuery value) { if (prefixQueryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } wrappedQuery_ = value; onChanged(); } else { prefixQueryBuilder_.setMessage(value); } wrappedQueryCase_ = 3; return this; } /** * .luceneserver.PrefixQuery prefixQuery = 3; */ public Builder setPrefixQuery( com.yelp.nrtsearch.server.grpc.PrefixQuery.Builder builderForValue) { if (prefixQueryBuilder_ == null) { wrappedQuery_ = builderForValue.build(); onChanged(); } else { prefixQueryBuilder_.setMessage(builderForValue.build()); } wrappedQueryCase_ = 3; return this; } /** * .luceneserver.PrefixQuery prefixQuery = 3; */ public Builder mergePrefixQuery(com.yelp.nrtsearch.server.grpc.PrefixQuery value) { if (prefixQueryBuilder_ == null) { if (wrappedQueryCase_ == 3 && wrappedQuery_ != com.yelp.nrtsearch.server.grpc.PrefixQuery.getDefaultInstance()) { wrappedQuery_ = com.yelp.nrtsearch.server.grpc.PrefixQuery.newBuilder((com.yelp.nrtsearch.server.grpc.PrefixQuery) wrappedQuery_) .mergeFrom(value).buildPartial(); } else { wrappedQuery_ = value; } onChanged(); } else { if (wrappedQueryCase_ == 3) { prefixQueryBuilder_.mergeFrom(value); } else { prefixQueryBuilder_.setMessage(value); } } wrappedQueryCase_ = 3; return this; } /** * .luceneserver.PrefixQuery prefixQuery = 3; */ public Builder clearPrefixQuery() { if (prefixQueryBuilder_ == null) { if (wrappedQueryCase_ == 3) { wrappedQueryCase_ = 0; wrappedQuery_ = null; onChanged(); } } else { if (wrappedQueryCase_ == 3) { wrappedQueryCase_ = 0; wrappedQuery_ = null; } prefixQueryBuilder_.clear(); } return this; } /** * .luceneserver.PrefixQuery prefixQuery = 3; */ public com.yelp.nrtsearch.server.grpc.PrefixQuery.Builder getPrefixQueryBuilder() { return getPrefixQueryFieldBuilder().getBuilder(); } /** * .luceneserver.PrefixQuery prefixQuery = 3; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.PrefixQueryOrBuilder getPrefixQueryOrBuilder() { if ((wrappedQueryCase_ == 3) && (prefixQueryBuilder_ != null)) { return prefixQueryBuilder_.getMessageOrBuilder(); } else { if (wrappedQueryCase_ == 3) { return (com.yelp.nrtsearch.server.grpc.PrefixQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.PrefixQuery.getDefaultInstance(); } } /** * .luceneserver.PrefixQuery prefixQuery = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.PrefixQuery, com.yelp.nrtsearch.server.grpc.PrefixQuery.Builder, com.yelp.nrtsearch.server.grpc.PrefixQueryOrBuilder> getPrefixQueryFieldBuilder() { if (prefixQueryBuilder_ == null) { if (!(wrappedQueryCase_ == 3)) { wrappedQuery_ = com.yelp.nrtsearch.server.grpc.PrefixQuery.getDefaultInstance(); } prefixQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.PrefixQuery, com.yelp.nrtsearch.server.grpc.PrefixQuery.Builder, com.yelp.nrtsearch.server.grpc.PrefixQueryOrBuilder>( (com.yelp.nrtsearch.server.grpc.PrefixQuery) wrappedQuery_, getParentForChildren(), isClean()); wrappedQuery_ = null; } wrappedQueryCase_ = 3; onChanged(); return prefixQueryBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.RegexpQuery, com.yelp.nrtsearch.server.grpc.RegexpQuery.Builder, com.yelp.nrtsearch.server.grpc.RegexpQueryOrBuilder> regexpQueryBuilder_; /** * .luceneserver.RegexpQuery regexpQuery = 4; * @return Whether the regexpQuery field is set. */ @java.lang.Override public boolean hasRegexpQuery() { return wrappedQueryCase_ == 4; } /** * .luceneserver.RegexpQuery regexpQuery = 4; * @return The regexpQuery. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.RegexpQuery getRegexpQuery() { if (regexpQueryBuilder_ == null) { if (wrappedQueryCase_ == 4) { return (com.yelp.nrtsearch.server.grpc.RegexpQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.RegexpQuery.getDefaultInstance(); } else { if (wrappedQueryCase_ == 4) { return regexpQueryBuilder_.getMessage(); } return com.yelp.nrtsearch.server.grpc.RegexpQuery.getDefaultInstance(); } } /** * .luceneserver.RegexpQuery regexpQuery = 4; */ public Builder setRegexpQuery(com.yelp.nrtsearch.server.grpc.RegexpQuery value) { if (regexpQueryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } wrappedQuery_ = value; onChanged(); } else { regexpQueryBuilder_.setMessage(value); } wrappedQueryCase_ = 4; return this; } /** * .luceneserver.RegexpQuery regexpQuery = 4; */ public Builder setRegexpQuery( com.yelp.nrtsearch.server.grpc.RegexpQuery.Builder builderForValue) { if (regexpQueryBuilder_ == null) { wrappedQuery_ = builderForValue.build(); onChanged(); } else { regexpQueryBuilder_.setMessage(builderForValue.build()); } wrappedQueryCase_ = 4; return this; } /** * .luceneserver.RegexpQuery regexpQuery = 4; */ public Builder mergeRegexpQuery(com.yelp.nrtsearch.server.grpc.RegexpQuery value) { if (regexpQueryBuilder_ == null) { if (wrappedQueryCase_ == 4 && wrappedQuery_ != com.yelp.nrtsearch.server.grpc.RegexpQuery.getDefaultInstance()) { wrappedQuery_ = com.yelp.nrtsearch.server.grpc.RegexpQuery.newBuilder((com.yelp.nrtsearch.server.grpc.RegexpQuery) wrappedQuery_) .mergeFrom(value).buildPartial(); } else { wrappedQuery_ = value; } onChanged(); } else { if (wrappedQueryCase_ == 4) { regexpQueryBuilder_.mergeFrom(value); } else { regexpQueryBuilder_.setMessage(value); } } wrappedQueryCase_ = 4; return this; } /** * .luceneserver.RegexpQuery regexpQuery = 4; */ public Builder clearRegexpQuery() { if (regexpQueryBuilder_ == null) { if (wrappedQueryCase_ == 4) { wrappedQueryCase_ = 0; wrappedQuery_ = null; onChanged(); } } else { if (wrappedQueryCase_ == 4) { wrappedQueryCase_ = 0; wrappedQuery_ = null; } regexpQueryBuilder_.clear(); } return this; } /** * .luceneserver.RegexpQuery regexpQuery = 4; */ public com.yelp.nrtsearch.server.grpc.RegexpQuery.Builder getRegexpQueryBuilder() { return getRegexpQueryFieldBuilder().getBuilder(); } /** * .luceneserver.RegexpQuery regexpQuery = 4; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.RegexpQueryOrBuilder getRegexpQueryOrBuilder() { if ((wrappedQueryCase_ == 4) && (regexpQueryBuilder_ != null)) { return regexpQueryBuilder_.getMessageOrBuilder(); } else { if (wrappedQueryCase_ == 4) { return (com.yelp.nrtsearch.server.grpc.RegexpQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.RegexpQuery.getDefaultInstance(); } } /** * .luceneserver.RegexpQuery regexpQuery = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.RegexpQuery, com.yelp.nrtsearch.server.grpc.RegexpQuery.Builder, com.yelp.nrtsearch.server.grpc.RegexpQueryOrBuilder> getRegexpQueryFieldBuilder() { if (regexpQueryBuilder_ == null) { if (!(wrappedQueryCase_ == 4)) { wrappedQuery_ = com.yelp.nrtsearch.server.grpc.RegexpQuery.getDefaultInstance(); } regexpQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.RegexpQuery, com.yelp.nrtsearch.server.grpc.RegexpQuery.Builder, com.yelp.nrtsearch.server.grpc.RegexpQueryOrBuilder>( (com.yelp.nrtsearch.server.grpc.RegexpQuery) wrappedQuery_, getParentForChildren(), isClean()); wrappedQuery_ = null; } wrappedQueryCase_ = 4; onChanged(); return regexpQueryBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.TermRangeQuery, com.yelp.nrtsearch.server.grpc.TermRangeQuery.Builder, com.yelp.nrtsearch.server.grpc.TermRangeQueryOrBuilder> termRangeQueryBuilder_; /** * .luceneserver.TermRangeQuery termRangeQuery = 5; * @return Whether the termRangeQuery field is set. */ @java.lang.Override public boolean hasTermRangeQuery() { return wrappedQueryCase_ == 5; } /** * .luceneserver.TermRangeQuery termRangeQuery = 5; * @return The termRangeQuery. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.TermRangeQuery getTermRangeQuery() { if (termRangeQueryBuilder_ == null) { if (wrappedQueryCase_ == 5) { return (com.yelp.nrtsearch.server.grpc.TermRangeQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.TermRangeQuery.getDefaultInstance(); } else { if (wrappedQueryCase_ == 5) { return termRangeQueryBuilder_.getMessage(); } return com.yelp.nrtsearch.server.grpc.TermRangeQuery.getDefaultInstance(); } } /** * .luceneserver.TermRangeQuery termRangeQuery = 5; */ public Builder setTermRangeQuery(com.yelp.nrtsearch.server.grpc.TermRangeQuery value) { if (termRangeQueryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } wrappedQuery_ = value; onChanged(); } else { termRangeQueryBuilder_.setMessage(value); } wrappedQueryCase_ = 5; return this; } /** * .luceneserver.TermRangeQuery termRangeQuery = 5; */ public Builder setTermRangeQuery( com.yelp.nrtsearch.server.grpc.TermRangeQuery.Builder builderForValue) { if (termRangeQueryBuilder_ == null) { wrappedQuery_ = builderForValue.build(); onChanged(); } else { termRangeQueryBuilder_.setMessage(builderForValue.build()); } wrappedQueryCase_ = 5; return this; } /** * .luceneserver.TermRangeQuery termRangeQuery = 5; */ public Builder mergeTermRangeQuery(com.yelp.nrtsearch.server.grpc.TermRangeQuery value) { if (termRangeQueryBuilder_ == null) { if (wrappedQueryCase_ == 5 && wrappedQuery_ != com.yelp.nrtsearch.server.grpc.TermRangeQuery.getDefaultInstance()) { wrappedQuery_ = com.yelp.nrtsearch.server.grpc.TermRangeQuery.newBuilder((com.yelp.nrtsearch.server.grpc.TermRangeQuery) wrappedQuery_) .mergeFrom(value).buildPartial(); } else { wrappedQuery_ = value; } onChanged(); } else { if (wrappedQueryCase_ == 5) { termRangeQueryBuilder_.mergeFrom(value); } else { termRangeQueryBuilder_.setMessage(value); } } wrappedQueryCase_ = 5; return this; } /** * .luceneserver.TermRangeQuery termRangeQuery = 5; */ public Builder clearTermRangeQuery() { if (termRangeQueryBuilder_ == null) { if (wrappedQueryCase_ == 5) { wrappedQueryCase_ = 0; wrappedQuery_ = null; onChanged(); } } else { if (wrappedQueryCase_ == 5) { wrappedQueryCase_ = 0; wrappedQuery_ = null; } termRangeQueryBuilder_.clear(); } return this; } /** * .luceneserver.TermRangeQuery termRangeQuery = 5; */ public com.yelp.nrtsearch.server.grpc.TermRangeQuery.Builder getTermRangeQueryBuilder() { return getTermRangeQueryFieldBuilder().getBuilder(); } /** * .luceneserver.TermRangeQuery termRangeQuery = 5; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.TermRangeQueryOrBuilder getTermRangeQueryOrBuilder() { if ((wrappedQueryCase_ == 5) && (termRangeQueryBuilder_ != null)) { return termRangeQueryBuilder_.getMessageOrBuilder(); } else { if (wrappedQueryCase_ == 5) { return (com.yelp.nrtsearch.server.grpc.TermRangeQuery) wrappedQuery_; } return com.yelp.nrtsearch.server.grpc.TermRangeQuery.getDefaultInstance(); } } /** * .luceneserver.TermRangeQuery termRangeQuery = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.TermRangeQuery, com.yelp.nrtsearch.server.grpc.TermRangeQuery.Builder, com.yelp.nrtsearch.server.grpc.TermRangeQueryOrBuilder> getTermRangeQueryFieldBuilder() { if (termRangeQueryBuilder_ == null) { if (!(wrappedQueryCase_ == 5)) { wrappedQuery_ = com.yelp.nrtsearch.server.grpc.TermRangeQuery.getDefaultInstance(); } termRangeQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.TermRangeQuery, com.yelp.nrtsearch.server.grpc.TermRangeQuery.Builder, com.yelp.nrtsearch.server.grpc.TermRangeQueryOrBuilder>( (com.yelp.nrtsearch.server.grpc.TermRangeQuery) wrappedQuery_, getParentForChildren(), isClean()); wrappedQuery_ = null; } wrappedQueryCase_ = 5; onChanged(); return termRangeQueryBuilder_; } @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.SpanMultiTermQuery) } // @@protoc_insertion_point(class_scope:luceneserver.SpanMultiTermQuery) private static final com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery(); } public static com.yelp.nrtsearch.server.grpc.SpanMultiTermQuery getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SpanMultiTermQuery 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.SpanMultiTermQuery getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy