com.yelp.nrtsearch.server.grpc.Query Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clientlib Show documentation
Show all versions of clientlib Show documentation
GRPC Clientlib for nrtSearch
// 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;
/**
*
* Defines a full query consisting of a QueryNode which may be one of several types.
*
*
* Protobuf type {@code luceneserver.Query}
*/
public final class Query extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.Query)
QueryOrBuilder {
private static final long serialVersionUID = 0L;
// Use Query.newBuilder() to construct.
private Query(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Query() {
queryType_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Query();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Query_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Query_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.Query.class, com.yelp.nrtsearch.server.grpc.Query.Builder.class);
}
private int queryNodeCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object queryNode_;
public enum QueryNodeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
BOOLEANQUERY(3),
PHRASEQUERY(4),
FUNCTIONSCOREQUERY(5),
TERMQUERY(6),
TERMINSETQUERY(7),
DISJUNCTIONMAXQUERY(8),
MATCHQUERY(9),
MATCHPHRASEQUERY(10),
MULTIMATCHQUERY(11),
RANGEQUERY(12),
GEOBOUNDINGBOXQUERY(13),
GEOPOINTQUERY(14),
NESTEDQUERY(15),
EXISTSQUERY(16),
GEORADIUSQUERY(17),
FUNCTIONFILTERQUERY(18),
COMPLETIONQUERY(19),
MULTIFUNCTIONSCOREQUERY(20),
MATCHPHRASEPREFIXQUERY(21),
PREFIXQUERY(22),
CONSTANTSCOREQUERY(23),
GEOPOLYGONQUERY(24),
SPANQUERY(25),
QUERYNODE_NOT_SET(0);
private final int value;
private QueryNodeCase(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 QueryNodeCase valueOf(int value) {
return forNumber(value);
}
public static QueryNodeCase forNumber(int value) {
switch (value) {
case 3: return BOOLEANQUERY;
case 4: return PHRASEQUERY;
case 5: return FUNCTIONSCOREQUERY;
case 6: return TERMQUERY;
case 7: return TERMINSETQUERY;
case 8: return DISJUNCTIONMAXQUERY;
case 9: return MATCHQUERY;
case 10: return MATCHPHRASEQUERY;
case 11: return MULTIMATCHQUERY;
case 12: return RANGEQUERY;
case 13: return GEOBOUNDINGBOXQUERY;
case 14: return GEOPOINTQUERY;
case 15: return NESTEDQUERY;
case 16: return EXISTSQUERY;
case 17: return GEORADIUSQUERY;
case 18: return FUNCTIONFILTERQUERY;
case 19: return COMPLETIONQUERY;
case 20: return MULTIFUNCTIONSCOREQUERY;
case 21: return MATCHPHRASEPREFIXQUERY;
case 22: return PREFIXQUERY;
case 23: return CONSTANTSCOREQUERY;
case 24: return GEOPOLYGONQUERY;
case 25: return SPANQUERY;
case 0: return QUERYNODE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public QueryNodeCase
getQueryNodeCase() {
return QueryNodeCase.forNumber(
queryNodeCase_);
}
public static final int QUERYTYPE_FIELD_NUMBER = 1;
private int queryType_ = 0;
/**
*
* no longer needed, type inferred from set QueryNode
*
*
* .luceneserver.QueryType queryType = 1 [deprecated = true];
* @deprecated luceneserver.Query.queryType is deprecated.
* See yelp/nrtsearch/search.proto;l=545
* @return The enum numeric value on the wire for queryType.
*/
@java.lang.Override @java.lang.Deprecated public int getQueryTypeValue() {
return queryType_;
}
/**
*
* no longer needed, type inferred from set QueryNode
*
*
* .luceneserver.QueryType queryType = 1 [deprecated = true];
* @deprecated luceneserver.Query.queryType is deprecated.
* See yelp/nrtsearch/search.proto;l=545
* @return The queryType.
*/
@java.lang.Override @java.lang.Deprecated public com.yelp.nrtsearch.server.grpc.QueryType getQueryType() {
com.yelp.nrtsearch.server.grpc.QueryType result = com.yelp.nrtsearch.server.grpc.QueryType.forNumber(queryType_);
return result == null ? com.yelp.nrtsearch.server.grpc.QueryType.UNRECOGNIZED : result;
}
public static final int BOOST_FIELD_NUMBER = 2;
private float boost_ = 0F;
/**
*
* Boost values that are less than one will give less importance to this query compared to other ones while values that are greater than one will give more importance to the scores returned by this query. Boost value of zero will do nothing (default). Boost less than 0 is invalid.
*
*
* float boost = 2;
* @return The boost.
*/
@java.lang.Override
public float getBoost() {
return boost_;
}
public static final int BOOLEANQUERY_FIELD_NUMBER = 3;
/**
* .luceneserver.BooleanQuery booleanQuery = 3;
* @return Whether the booleanQuery field is set.
*/
@java.lang.Override
public boolean hasBooleanQuery() {
return queryNodeCase_ == 3;
}
/**
* .luceneserver.BooleanQuery booleanQuery = 3;
* @return The booleanQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.BooleanQuery getBooleanQuery() {
if (queryNodeCase_ == 3) {
return (com.yelp.nrtsearch.server.grpc.BooleanQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.BooleanQuery.getDefaultInstance();
}
/**
* .luceneserver.BooleanQuery booleanQuery = 3;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.BooleanQueryOrBuilder getBooleanQueryOrBuilder() {
if (queryNodeCase_ == 3) {
return (com.yelp.nrtsearch.server.grpc.BooleanQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.BooleanQuery.getDefaultInstance();
}
public static final int PHRASEQUERY_FIELD_NUMBER = 4;
/**
* .luceneserver.PhraseQuery phraseQuery = 4;
* @return Whether the phraseQuery field is set.
*/
@java.lang.Override
public boolean hasPhraseQuery() {
return queryNodeCase_ == 4;
}
/**
* .luceneserver.PhraseQuery phraseQuery = 4;
* @return The phraseQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.PhraseQuery getPhraseQuery() {
if (queryNodeCase_ == 4) {
return (com.yelp.nrtsearch.server.grpc.PhraseQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.PhraseQuery.getDefaultInstance();
}
/**
* .luceneserver.PhraseQuery phraseQuery = 4;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.PhraseQueryOrBuilder getPhraseQueryOrBuilder() {
if (queryNodeCase_ == 4) {
return (com.yelp.nrtsearch.server.grpc.PhraseQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.PhraseQuery.getDefaultInstance();
}
public static final int FUNCTIONSCOREQUERY_FIELD_NUMBER = 5;
/**
* .luceneserver.FunctionScoreQuery functionScoreQuery = 5;
* @return Whether the functionScoreQuery field is set.
*/
@java.lang.Override
public boolean hasFunctionScoreQuery() {
return queryNodeCase_ == 5;
}
/**
* .luceneserver.FunctionScoreQuery functionScoreQuery = 5;
* @return The functionScoreQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FunctionScoreQuery getFunctionScoreQuery() {
if (queryNodeCase_ == 5) {
return (com.yelp.nrtsearch.server.grpc.FunctionScoreQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.FunctionScoreQuery.getDefaultInstance();
}
/**
* .luceneserver.FunctionScoreQuery functionScoreQuery = 5;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FunctionScoreQueryOrBuilder getFunctionScoreQueryOrBuilder() {
if (queryNodeCase_ == 5) {
return (com.yelp.nrtsearch.server.grpc.FunctionScoreQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.FunctionScoreQuery.getDefaultInstance();
}
public static final int TERMQUERY_FIELD_NUMBER = 6;
/**
* .luceneserver.TermQuery termQuery = 6;
* @return Whether the termQuery field is set.
*/
@java.lang.Override
public boolean hasTermQuery() {
return queryNodeCase_ == 6;
}
/**
* .luceneserver.TermQuery termQuery = 6;
* @return The termQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermQuery getTermQuery() {
if (queryNodeCase_ == 6) {
return (com.yelp.nrtsearch.server.grpc.TermQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.TermQuery.getDefaultInstance();
}
/**
* .luceneserver.TermQuery termQuery = 6;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermQueryOrBuilder getTermQueryOrBuilder() {
if (queryNodeCase_ == 6) {
return (com.yelp.nrtsearch.server.grpc.TermQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.TermQuery.getDefaultInstance();
}
public static final int TERMINSETQUERY_FIELD_NUMBER = 7;
/**
* .luceneserver.TermInSetQuery termInSetQuery = 7;
* @return Whether the termInSetQuery field is set.
*/
@java.lang.Override
public boolean hasTermInSetQuery() {
return queryNodeCase_ == 7;
}
/**
* .luceneserver.TermInSetQuery termInSetQuery = 7;
* @return The termInSetQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery getTermInSetQuery() {
if (queryNodeCase_ == 7) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.getDefaultInstance();
}
/**
* .luceneserver.TermInSetQuery termInSetQuery = 7;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQueryOrBuilder getTermInSetQueryOrBuilder() {
if (queryNodeCase_ == 7) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.getDefaultInstance();
}
public static final int DISJUNCTIONMAXQUERY_FIELD_NUMBER = 8;
/**
* .luceneserver.DisjunctionMaxQuery disjunctionMaxQuery = 8;
* @return Whether the disjunctionMaxQuery field is set.
*/
@java.lang.Override
public boolean hasDisjunctionMaxQuery() {
return queryNodeCase_ == 8;
}
/**
* .luceneserver.DisjunctionMaxQuery disjunctionMaxQuery = 8;
* @return The disjunctionMaxQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery getDisjunctionMaxQuery() {
if (queryNodeCase_ == 8) {
return (com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.getDefaultInstance();
}
/**
* .luceneserver.DisjunctionMaxQuery disjunctionMaxQuery = 8;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.DisjunctionMaxQueryOrBuilder getDisjunctionMaxQueryOrBuilder() {
if (queryNodeCase_ == 8) {
return (com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.getDefaultInstance();
}
public static final int MATCHQUERY_FIELD_NUMBER = 9;
/**
* .luceneserver.MatchQuery matchQuery = 9;
* @return Whether the matchQuery field is set.
*/
@java.lang.Override
public boolean hasMatchQuery() {
return queryNodeCase_ == 9;
}
/**
* .luceneserver.MatchQuery matchQuery = 9;
* @return The matchQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MatchQuery getMatchQuery() {
if (queryNodeCase_ == 9) {
return (com.yelp.nrtsearch.server.grpc.MatchQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MatchQuery.getDefaultInstance();
}
/**
* .luceneserver.MatchQuery matchQuery = 9;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MatchQueryOrBuilder getMatchQueryOrBuilder() {
if (queryNodeCase_ == 9) {
return (com.yelp.nrtsearch.server.grpc.MatchQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MatchQuery.getDefaultInstance();
}
public static final int MATCHPHRASEQUERY_FIELD_NUMBER = 10;
/**
* .luceneserver.MatchPhraseQuery matchPhraseQuery = 10;
* @return Whether the matchPhraseQuery field is set.
*/
@java.lang.Override
public boolean hasMatchPhraseQuery() {
return queryNodeCase_ == 10;
}
/**
* .luceneserver.MatchPhraseQuery matchPhraseQuery = 10;
* @return The matchPhraseQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MatchPhraseQuery getMatchPhraseQuery() {
if (queryNodeCase_ == 10) {
return (com.yelp.nrtsearch.server.grpc.MatchPhraseQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MatchPhraseQuery.getDefaultInstance();
}
/**
* .luceneserver.MatchPhraseQuery matchPhraseQuery = 10;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MatchPhraseQueryOrBuilder getMatchPhraseQueryOrBuilder() {
if (queryNodeCase_ == 10) {
return (com.yelp.nrtsearch.server.grpc.MatchPhraseQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MatchPhraseQuery.getDefaultInstance();
}
public static final int MULTIMATCHQUERY_FIELD_NUMBER = 11;
/**
* .luceneserver.MultiMatchQuery multiMatchQuery = 11;
* @return Whether the multiMatchQuery field is set.
*/
@java.lang.Override
public boolean hasMultiMatchQuery() {
return queryNodeCase_ == 11;
}
/**
* .luceneserver.MultiMatchQuery multiMatchQuery = 11;
* @return The multiMatchQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MultiMatchQuery getMultiMatchQuery() {
if (queryNodeCase_ == 11) {
return (com.yelp.nrtsearch.server.grpc.MultiMatchQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MultiMatchQuery.getDefaultInstance();
}
/**
* .luceneserver.MultiMatchQuery multiMatchQuery = 11;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MultiMatchQueryOrBuilder getMultiMatchQueryOrBuilder() {
if (queryNodeCase_ == 11) {
return (com.yelp.nrtsearch.server.grpc.MultiMatchQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MultiMatchQuery.getDefaultInstance();
}
public static final int RANGEQUERY_FIELD_NUMBER = 12;
/**
* .luceneserver.RangeQuery rangeQuery = 12;
* @return Whether the rangeQuery field is set.
*/
@java.lang.Override
public boolean hasRangeQuery() {
return queryNodeCase_ == 12;
}
/**
* .luceneserver.RangeQuery rangeQuery = 12;
* @return The rangeQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.RangeQuery getRangeQuery() {
if (queryNodeCase_ == 12) {
return (com.yelp.nrtsearch.server.grpc.RangeQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.RangeQuery.getDefaultInstance();
}
/**
* .luceneserver.RangeQuery rangeQuery = 12;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.RangeQueryOrBuilder getRangeQueryOrBuilder() {
if (queryNodeCase_ == 12) {
return (com.yelp.nrtsearch.server.grpc.RangeQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.RangeQuery.getDefaultInstance();
}
public static final int GEOBOUNDINGBOXQUERY_FIELD_NUMBER = 13;
/**
* .luceneserver.GeoBoundingBoxQuery geoBoundingBoxQuery = 13;
* @return Whether the geoBoundingBoxQuery field is set.
*/
@java.lang.Override
public boolean hasGeoBoundingBoxQuery() {
return queryNodeCase_ == 13;
}
/**
* .luceneserver.GeoBoundingBoxQuery geoBoundingBoxQuery = 13;
* @return The geoBoundingBoxQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery getGeoBoundingBoxQuery() {
if (queryNodeCase_ == 13) {
return (com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery.getDefaultInstance();
}
/**
* .luceneserver.GeoBoundingBoxQuery geoBoundingBoxQuery = 13;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQueryOrBuilder getGeoBoundingBoxQueryOrBuilder() {
if (queryNodeCase_ == 13) {
return (com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery.getDefaultInstance();
}
public static final int GEOPOINTQUERY_FIELD_NUMBER = 14;
/**
* .luceneserver.GeoPointQuery geoPointQuery = 14;
* @return Whether the geoPointQuery field is set.
*/
@java.lang.Override
public boolean hasGeoPointQuery() {
return queryNodeCase_ == 14;
}
/**
* .luceneserver.GeoPointQuery geoPointQuery = 14;
* @return The geoPointQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.GeoPointQuery getGeoPointQuery() {
if (queryNodeCase_ == 14) {
return (com.yelp.nrtsearch.server.grpc.GeoPointQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.GeoPointQuery.getDefaultInstance();
}
/**
* .luceneserver.GeoPointQuery geoPointQuery = 14;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.GeoPointQueryOrBuilder getGeoPointQueryOrBuilder() {
if (queryNodeCase_ == 14) {
return (com.yelp.nrtsearch.server.grpc.GeoPointQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.GeoPointQuery.getDefaultInstance();
}
public static final int NESTEDQUERY_FIELD_NUMBER = 15;
/**
* .luceneserver.NestedQuery nestedQuery = 15;
* @return Whether the nestedQuery field is set.
*/
@java.lang.Override
public boolean hasNestedQuery() {
return queryNodeCase_ == 15;
}
/**
* .luceneserver.NestedQuery nestedQuery = 15;
* @return The nestedQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.NestedQuery getNestedQuery() {
if (queryNodeCase_ == 15) {
return (com.yelp.nrtsearch.server.grpc.NestedQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.NestedQuery.getDefaultInstance();
}
/**
* .luceneserver.NestedQuery nestedQuery = 15;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.NestedQueryOrBuilder getNestedQueryOrBuilder() {
if (queryNodeCase_ == 15) {
return (com.yelp.nrtsearch.server.grpc.NestedQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.NestedQuery.getDefaultInstance();
}
public static final int EXISTSQUERY_FIELD_NUMBER = 16;
/**
* .luceneserver.ExistsQuery existsQuery = 16;
* @return Whether the existsQuery field is set.
*/
@java.lang.Override
public boolean hasExistsQuery() {
return queryNodeCase_ == 16;
}
/**
* .luceneserver.ExistsQuery existsQuery = 16;
* @return The existsQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.ExistsQuery getExistsQuery() {
if (queryNodeCase_ == 16) {
return (com.yelp.nrtsearch.server.grpc.ExistsQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.ExistsQuery.getDefaultInstance();
}
/**
* .luceneserver.ExistsQuery existsQuery = 16;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.ExistsQueryOrBuilder getExistsQueryOrBuilder() {
if (queryNodeCase_ == 16) {
return (com.yelp.nrtsearch.server.grpc.ExistsQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.ExistsQuery.getDefaultInstance();
}
public static final int GEORADIUSQUERY_FIELD_NUMBER = 17;
/**
* .luceneserver.GeoRadiusQuery geoRadiusQuery = 17;
* @return Whether the geoRadiusQuery field is set.
*/
@java.lang.Override
public boolean hasGeoRadiusQuery() {
return queryNodeCase_ == 17;
}
/**
* .luceneserver.GeoRadiusQuery geoRadiusQuery = 17;
* @return The geoRadiusQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.GeoRadiusQuery getGeoRadiusQuery() {
if (queryNodeCase_ == 17) {
return (com.yelp.nrtsearch.server.grpc.GeoRadiusQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.GeoRadiusQuery.getDefaultInstance();
}
/**
* .luceneserver.GeoRadiusQuery geoRadiusQuery = 17;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.GeoRadiusQueryOrBuilder getGeoRadiusQueryOrBuilder() {
if (queryNodeCase_ == 17) {
return (com.yelp.nrtsearch.server.grpc.GeoRadiusQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.GeoRadiusQuery.getDefaultInstance();
}
public static final int FUNCTIONFILTERQUERY_FIELD_NUMBER = 18;
/**
* .luceneserver.FunctionFilterQuery functionFilterQuery = 18;
* @return Whether the functionFilterQuery field is set.
*/
@java.lang.Override
public boolean hasFunctionFilterQuery() {
return queryNodeCase_ == 18;
}
/**
* .luceneserver.FunctionFilterQuery functionFilterQuery = 18;
* @return The functionFilterQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FunctionFilterQuery getFunctionFilterQuery() {
if (queryNodeCase_ == 18) {
return (com.yelp.nrtsearch.server.grpc.FunctionFilterQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.FunctionFilterQuery.getDefaultInstance();
}
/**
* .luceneserver.FunctionFilterQuery functionFilterQuery = 18;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FunctionFilterQueryOrBuilder getFunctionFilterQueryOrBuilder() {
if (queryNodeCase_ == 18) {
return (com.yelp.nrtsearch.server.grpc.FunctionFilterQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.FunctionFilterQuery.getDefaultInstance();
}
public static final int COMPLETIONQUERY_FIELD_NUMBER = 19;
/**
* .luceneserver.CompletionQuery completionQuery = 19;
* @return Whether the completionQuery field is set.
*/
@java.lang.Override
public boolean hasCompletionQuery() {
return queryNodeCase_ == 19;
}
/**
* .luceneserver.CompletionQuery completionQuery = 19;
* @return The completionQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CompletionQuery getCompletionQuery() {
if (queryNodeCase_ == 19) {
return (com.yelp.nrtsearch.server.grpc.CompletionQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.CompletionQuery.getDefaultInstance();
}
/**
* .luceneserver.CompletionQuery completionQuery = 19;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CompletionQueryOrBuilder getCompletionQueryOrBuilder() {
if (queryNodeCase_ == 19) {
return (com.yelp.nrtsearch.server.grpc.CompletionQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.CompletionQuery.getDefaultInstance();
}
public static final int MULTIFUNCTIONSCOREQUERY_FIELD_NUMBER = 20;
/**
* .luceneserver.MultiFunctionScoreQuery multiFunctionScoreQuery = 20;
* @return Whether the multiFunctionScoreQuery field is set.
*/
@java.lang.Override
public boolean hasMultiFunctionScoreQuery() {
return queryNodeCase_ == 20;
}
/**
* .luceneserver.MultiFunctionScoreQuery multiFunctionScoreQuery = 20;
* @return The multiFunctionScoreQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery getMultiFunctionScoreQuery() {
if (queryNodeCase_ == 20) {
return (com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery.getDefaultInstance();
}
/**
* .luceneserver.MultiFunctionScoreQuery multiFunctionScoreQuery = 20;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQueryOrBuilder getMultiFunctionScoreQueryOrBuilder() {
if (queryNodeCase_ == 20) {
return (com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery.getDefaultInstance();
}
public static final int MATCHPHRASEPREFIXQUERY_FIELD_NUMBER = 21;
/**
* .luceneserver.MatchPhrasePrefixQuery matchPhrasePrefixQuery = 21;
* @return Whether the matchPhrasePrefixQuery field is set.
*/
@java.lang.Override
public boolean hasMatchPhrasePrefixQuery() {
return queryNodeCase_ == 21;
}
/**
* .luceneserver.MatchPhrasePrefixQuery matchPhrasePrefixQuery = 21;
* @return The matchPhrasePrefixQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery getMatchPhrasePrefixQuery() {
if (queryNodeCase_ == 21) {
return (com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.getDefaultInstance();
}
/**
* .luceneserver.MatchPhrasePrefixQuery matchPhrasePrefixQuery = 21;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQueryOrBuilder getMatchPhrasePrefixQueryOrBuilder() {
if (queryNodeCase_ == 21) {
return (com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.getDefaultInstance();
}
public static final int PREFIXQUERY_FIELD_NUMBER = 22;
/**
* .luceneserver.PrefixQuery prefixQuery = 22;
* @return Whether the prefixQuery field is set.
*/
@java.lang.Override
public boolean hasPrefixQuery() {
return queryNodeCase_ == 22;
}
/**
* .luceneserver.PrefixQuery prefixQuery = 22;
* @return The prefixQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.PrefixQuery getPrefixQuery() {
if (queryNodeCase_ == 22) {
return (com.yelp.nrtsearch.server.grpc.PrefixQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.PrefixQuery.getDefaultInstance();
}
/**
* .luceneserver.PrefixQuery prefixQuery = 22;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.PrefixQueryOrBuilder getPrefixQueryOrBuilder() {
if (queryNodeCase_ == 22) {
return (com.yelp.nrtsearch.server.grpc.PrefixQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.PrefixQuery.getDefaultInstance();
}
public static final int CONSTANTSCOREQUERY_FIELD_NUMBER = 23;
/**
* .luceneserver.ConstantScoreQuery constantScoreQuery = 23;
* @return Whether the constantScoreQuery field is set.
*/
@java.lang.Override
public boolean hasConstantScoreQuery() {
return queryNodeCase_ == 23;
}
/**
* .luceneserver.ConstantScoreQuery constantScoreQuery = 23;
* @return The constantScoreQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.ConstantScoreQuery getConstantScoreQuery() {
if (queryNodeCase_ == 23) {
return (com.yelp.nrtsearch.server.grpc.ConstantScoreQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.ConstantScoreQuery.getDefaultInstance();
}
/**
* .luceneserver.ConstantScoreQuery constantScoreQuery = 23;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.ConstantScoreQueryOrBuilder getConstantScoreQueryOrBuilder() {
if (queryNodeCase_ == 23) {
return (com.yelp.nrtsearch.server.grpc.ConstantScoreQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.ConstantScoreQuery.getDefaultInstance();
}
public static final int GEOPOLYGONQUERY_FIELD_NUMBER = 24;
/**
* .luceneserver.GeoPolygonQuery geoPolygonQuery = 24;
* @return Whether the geoPolygonQuery field is set.
*/
@java.lang.Override
public boolean hasGeoPolygonQuery() {
return queryNodeCase_ == 24;
}
/**
* .luceneserver.GeoPolygonQuery geoPolygonQuery = 24;
* @return The geoPolygonQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.GeoPolygonQuery getGeoPolygonQuery() {
if (queryNodeCase_ == 24) {
return (com.yelp.nrtsearch.server.grpc.GeoPolygonQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.GeoPolygonQuery.getDefaultInstance();
}
/**
* .luceneserver.GeoPolygonQuery geoPolygonQuery = 24;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.GeoPolygonQueryOrBuilder getGeoPolygonQueryOrBuilder() {
if (queryNodeCase_ == 24) {
return (com.yelp.nrtsearch.server.grpc.GeoPolygonQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.GeoPolygonQuery.getDefaultInstance();
}
public static final int SPANQUERY_FIELD_NUMBER = 25;
/**
* .luceneserver.SpanQuery spanQuery = 25;
* @return Whether the spanQuery field is set.
*/
@java.lang.Override
public boolean hasSpanQuery() {
return queryNodeCase_ == 25;
}
/**
* .luceneserver.SpanQuery spanQuery = 25;
* @return The spanQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.SpanQuery getSpanQuery() {
if (queryNodeCase_ == 25) {
return (com.yelp.nrtsearch.server.grpc.SpanQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.SpanQuery.getDefaultInstance();
}
/**
* .luceneserver.SpanQuery spanQuery = 25;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.SpanQueryOrBuilder getSpanQueryOrBuilder() {
if (queryNodeCase_ == 25) {
return (com.yelp.nrtsearch.server.grpc.SpanQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.SpanQuery.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 (queryType_ != com.yelp.nrtsearch.server.grpc.QueryType.NONE.getNumber()) {
output.writeEnum(1, queryType_);
}
if (java.lang.Float.floatToRawIntBits(boost_) != 0) {
output.writeFloat(2, boost_);
}
if (queryNodeCase_ == 3) {
output.writeMessage(3, (com.yelp.nrtsearch.server.grpc.BooleanQuery) queryNode_);
}
if (queryNodeCase_ == 4) {
output.writeMessage(4, (com.yelp.nrtsearch.server.grpc.PhraseQuery) queryNode_);
}
if (queryNodeCase_ == 5) {
output.writeMessage(5, (com.yelp.nrtsearch.server.grpc.FunctionScoreQuery) queryNode_);
}
if (queryNodeCase_ == 6) {
output.writeMessage(6, (com.yelp.nrtsearch.server.grpc.TermQuery) queryNode_);
}
if (queryNodeCase_ == 7) {
output.writeMessage(7, (com.yelp.nrtsearch.server.grpc.TermInSetQuery) queryNode_);
}
if (queryNodeCase_ == 8) {
output.writeMessage(8, (com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery) queryNode_);
}
if (queryNodeCase_ == 9) {
output.writeMessage(9, (com.yelp.nrtsearch.server.grpc.MatchQuery) queryNode_);
}
if (queryNodeCase_ == 10) {
output.writeMessage(10, (com.yelp.nrtsearch.server.grpc.MatchPhraseQuery) queryNode_);
}
if (queryNodeCase_ == 11) {
output.writeMessage(11, (com.yelp.nrtsearch.server.grpc.MultiMatchQuery) queryNode_);
}
if (queryNodeCase_ == 12) {
output.writeMessage(12, (com.yelp.nrtsearch.server.grpc.RangeQuery) queryNode_);
}
if (queryNodeCase_ == 13) {
output.writeMessage(13, (com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery) queryNode_);
}
if (queryNodeCase_ == 14) {
output.writeMessage(14, (com.yelp.nrtsearch.server.grpc.GeoPointQuery) queryNode_);
}
if (queryNodeCase_ == 15) {
output.writeMessage(15, (com.yelp.nrtsearch.server.grpc.NestedQuery) queryNode_);
}
if (queryNodeCase_ == 16) {
output.writeMessage(16, (com.yelp.nrtsearch.server.grpc.ExistsQuery) queryNode_);
}
if (queryNodeCase_ == 17) {
output.writeMessage(17, (com.yelp.nrtsearch.server.grpc.GeoRadiusQuery) queryNode_);
}
if (queryNodeCase_ == 18) {
output.writeMessage(18, (com.yelp.nrtsearch.server.grpc.FunctionFilterQuery) queryNode_);
}
if (queryNodeCase_ == 19) {
output.writeMessage(19, (com.yelp.nrtsearch.server.grpc.CompletionQuery) queryNode_);
}
if (queryNodeCase_ == 20) {
output.writeMessage(20, (com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery) queryNode_);
}
if (queryNodeCase_ == 21) {
output.writeMessage(21, (com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery) queryNode_);
}
if (queryNodeCase_ == 22) {
output.writeMessage(22, (com.yelp.nrtsearch.server.grpc.PrefixQuery) queryNode_);
}
if (queryNodeCase_ == 23) {
output.writeMessage(23, (com.yelp.nrtsearch.server.grpc.ConstantScoreQuery) queryNode_);
}
if (queryNodeCase_ == 24) {
output.writeMessage(24, (com.yelp.nrtsearch.server.grpc.GeoPolygonQuery) queryNode_);
}
if (queryNodeCase_ == 25) {
output.writeMessage(25, (com.yelp.nrtsearch.server.grpc.SpanQuery) queryNode_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (queryType_ != com.yelp.nrtsearch.server.grpc.QueryType.NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, queryType_);
}
if (java.lang.Float.floatToRawIntBits(boost_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(2, boost_);
}
if (queryNodeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.yelp.nrtsearch.server.grpc.BooleanQuery) queryNode_);
}
if (queryNodeCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.yelp.nrtsearch.server.grpc.PhraseQuery) queryNode_);
}
if (queryNodeCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.yelp.nrtsearch.server.grpc.FunctionScoreQuery) queryNode_);
}
if (queryNodeCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (com.yelp.nrtsearch.server.grpc.TermQuery) queryNode_);
}
if (queryNodeCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (com.yelp.nrtsearch.server.grpc.TermInSetQuery) queryNode_);
}
if (queryNodeCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery) queryNode_);
}
if (queryNodeCase_ == 9) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, (com.yelp.nrtsearch.server.grpc.MatchQuery) queryNode_);
}
if (queryNodeCase_ == 10) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, (com.yelp.nrtsearch.server.grpc.MatchPhraseQuery) queryNode_);
}
if (queryNodeCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, (com.yelp.nrtsearch.server.grpc.MultiMatchQuery) queryNode_);
}
if (queryNodeCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, (com.yelp.nrtsearch.server.grpc.RangeQuery) queryNode_);
}
if (queryNodeCase_ == 13) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, (com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery) queryNode_);
}
if (queryNodeCase_ == 14) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, (com.yelp.nrtsearch.server.grpc.GeoPointQuery) queryNode_);
}
if (queryNodeCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, (com.yelp.nrtsearch.server.grpc.NestedQuery) queryNode_);
}
if (queryNodeCase_ == 16) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, (com.yelp.nrtsearch.server.grpc.ExistsQuery) queryNode_);
}
if (queryNodeCase_ == 17) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, (com.yelp.nrtsearch.server.grpc.GeoRadiusQuery) queryNode_);
}
if (queryNodeCase_ == 18) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, (com.yelp.nrtsearch.server.grpc.FunctionFilterQuery) queryNode_);
}
if (queryNodeCase_ == 19) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, (com.yelp.nrtsearch.server.grpc.CompletionQuery) queryNode_);
}
if (queryNodeCase_ == 20) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, (com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery) queryNode_);
}
if (queryNodeCase_ == 21) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(21, (com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery) queryNode_);
}
if (queryNodeCase_ == 22) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, (com.yelp.nrtsearch.server.grpc.PrefixQuery) queryNode_);
}
if (queryNodeCase_ == 23) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(23, (com.yelp.nrtsearch.server.grpc.ConstantScoreQuery) queryNode_);
}
if (queryNodeCase_ == 24) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(24, (com.yelp.nrtsearch.server.grpc.GeoPolygonQuery) queryNode_);
}
if (queryNodeCase_ == 25) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(25, (com.yelp.nrtsearch.server.grpc.SpanQuery) queryNode_);
}
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.Query)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.Query other = (com.yelp.nrtsearch.server.grpc.Query) obj;
if (queryType_ != other.queryType_) return false;
if (java.lang.Float.floatToIntBits(getBoost())
!= java.lang.Float.floatToIntBits(
other.getBoost())) return false;
if (!getQueryNodeCase().equals(other.getQueryNodeCase())) return false;
switch (queryNodeCase_) {
case 3:
if (!getBooleanQuery()
.equals(other.getBooleanQuery())) return false;
break;
case 4:
if (!getPhraseQuery()
.equals(other.getPhraseQuery())) return false;
break;
case 5:
if (!getFunctionScoreQuery()
.equals(other.getFunctionScoreQuery())) return false;
break;
case 6:
if (!getTermQuery()
.equals(other.getTermQuery())) return false;
break;
case 7:
if (!getTermInSetQuery()
.equals(other.getTermInSetQuery())) return false;
break;
case 8:
if (!getDisjunctionMaxQuery()
.equals(other.getDisjunctionMaxQuery())) return false;
break;
case 9:
if (!getMatchQuery()
.equals(other.getMatchQuery())) return false;
break;
case 10:
if (!getMatchPhraseQuery()
.equals(other.getMatchPhraseQuery())) return false;
break;
case 11:
if (!getMultiMatchQuery()
.equals(other.getMultiMatchQuery())) return false;
break;
case 12:
if (!getRangeQuery()
.equals(other.getRangeQuery())) return false;
break;
case 13:
if (!getGeoBoundingBoxQuery()
.equals(other.getGeoBoundingBoxQuery())) return false;
break;
case 14:
if (!getGeoPointQuery()
.equals(other.getGeoPointQuery())) return false;
break;
case 15:
if (!getNestedQuery()
.equals(other.getNestedQuery())) return false;
break;
case 16:
if (!getExistsQuery()
.equals(other.getExistsQuery())) return false;
break;
case 17:
if (!getGeoRadiusQuery()
.equals(other.getGeoRadiusQuery())) return false;
break;
case 18:
if (!getFunctionFilterQuery()
.equals(other.getFunctionFilterQuery())) return false;
break;
case 19:
if (!getCompletionQuery()
.equals(other.getCompletionQuery())) return false;
break;
case 20:
if (!getMultiFunctionScoreQuery()
.equals(other.getMultiFunctionScoreQuery())) return false;
break;
case 21:
if (!getMatchPhrasePrefixQuery()
.equals(other.getMatchPhrasePrefixQuery())) return false;
break;
case 22:
if (!getPrefixQuery()
.equals(other.getPrefixQuery())) return false;
break;
case 23:
if (!getConstantScoreQuery()
.equals(other.getConstantScoreQuery())) return false;
break;
case 24:
if (!getGeoPolygonQuery()
.equals(other.getGeoPolygonQuery())) return false;
break;
case 25:
if (!getSpanQuery()
.equals(other.getSpanQuery())) 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();
hash = (37 * hash) + QUERYTYPE_FIELD_NUMBER;
hash = (53 * hash) + queryType_;
hash = (37 * hash) + BOOST_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getBoost());
switch (queryNodeCase_) {
case 3:
hash = (37 * hash) + BOOLEANQUERY_FIELD_NUMBER;
hash = (53 * hash) + getBooleanQuery().hashCode();
break;
case 4:
hash = (37 * hash) + PHRASEQUERY_FIELD_NUMBER;
hash = (53 * hash) + getPhraseQuery().hashCode();
break;
case 5:
hash = (37 * hash) + FUNCTIONSCOREQUERY_FIELD_NUMBER;
hash = (53 * hash) + getFunctionScoreQuery().hashCode();
break;
case 6:
hash = (37 * hash) + TERMQUERY_FIELD_NUMBER;
hash = (53 * hash) + getTermQuery().hashCode();
break;
case 7:
hash = (37 * hash) + TERMINSETQUERY_FIELD_NUMBER;
hash = (53 * hash) + getTermInSetQuery().hashCode();
break;
case 8:
hash = (37 * hash) + DISJUNCTIONMAXQUERY_FIELD_NUMBER;
hash = (53 * hash) + getDisjunctionMaxQuery().hashCode();
break;
case 9:
hash = (37 * hash) + MATCHQUERY_FIELD_NUMBER;
hash = (53 * hash) + getMatchQuery().hashCode();
break;
case 10:
hash = (37 * hash) + MATCHPHRASEQUERY_FIELD_NUMBER;
hash = (53 * hash) + getMatchPhraseQuery().hashCode();
break;
case 11:
hash = (37 * hash) + MULTIMATCHQUERY_FIELD_NUMBER;
hash = (53 * hash) + getMultiMatchQuery().hashCode();
break;
case 12:
hash = (37 * hash) + RANGEQUERY_FIELD_NUMBER;
hash = (53 * hash) + getRangeQuery().hashCode();
break;
case 13:
hash = (37 * hash) + GEOBOUNDINGBOXQUERY_FIELD_NUMBER;
hash = (53 * hash) + getGeoBoundingBoxQuery().hashCode();
break;
case 14:
hash = (37 * hash) + GEOPOINTQUERY_FIELD_NUMBER;
hash = (53 * hash) + getGeoPointQuery().hashCode();
break;
case 15:
hash = (37 * hash) + NESTEDQUERY_FIELD_NUMBER;
hash = (53 * hash) + getNestedQuery().hashCode();
break;
case 16:
hash = (37 * hash) + EXISTSQUERY_FIELD_NUMBER;
hash = (53 * hash) + getExistsQuery().hashCode();
break;
case 17:
hash = (37 * hash) + GEORADIUSQUERY_FIELD_NUMBER;
hash = (53 * hash) + getGeoRadiusQuery().hashCode();
break;
case 18:
hash = (37 * hash) + FUNCTIONFILTERQUERY_FIELD_NUMBER;
hash = (53 * hash) + getFunctionFilterQuery().hashCode();
break;
case 19:
hash = (37 * hash) + COMPLETIONQUERY_FIELD_NUMBER;
hash = (53 * hash) + getCompletionQuery().hashCode();
break;
case 20:
hash = (37 * hash) + MULTIFUNCTIONSCOREQUERY_FIELD_NUMBER;
hash = (53 * hash) + getMultiFunctionScoreQuery().hashCode();
break;
case 21:
hash = (37 * hash) + MATCHPHRASEPREFIXQUERY_FIELD_NUMBER;
hash = (53 * hash) + getMatchPhrasePrefixQuery().hashCode();
break;
case 22:
hash = (37 * hash) + PREFIXQUERY_FIELD_NUMBER;
hash = (53 * hash) + getPrefixQuery().hashCode();
break;
case 23:
hash = (37 * hash) + CONSTANTSCOREQUERY_FIELD_NUMBER;
hash = (53 * hash) + getConstantScoreQuery().hashCode();
break;
case 24:
hash = (37 * hash) + GEOPOLYGONQUERY_FIELD_NUMBER;
hash = (53 * hash) + getGeoPolygonQuery().hashCode();
break;
case 25:
hash = (37 * hash) + SPANQUERY_FIELD_NUMBER;
hash = (53 * hash) + getSpanQuery().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.Query parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.Query 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.Query parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.Query 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.Query parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.Query 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.Query parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.Query 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.Query parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.Query 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.Query 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.Query 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.Query 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;
}
/**
*
* Defines a full query consisting of a QueryNode which may be one of several types.
*
*
* Protobuf type {@code luceneserver.Query}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.Query)
com.yelp.nrtsearch.server.grpc.QueryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Query_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Query_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.Query.class, com.yelp.nrtsearch.server.grpc.Query.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.Query.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
queryType_ = 0;
boost_ = 0F;
if (booleanQueryBuilder_ != null) {
booleanQueryBuilder_.clear();
}
if (phraseQueryBuilder_ != null) {
phraseQueryBuilder_.clear();
}
if (functionScoreQueryBuilder_ != null) {
functionScoreQueryBuilder_.clear();
}
if (termQueryBuilder_ != null) {
termQueryBuilder_.clear();
}
if (termInSetQueryBuilder_ != null) {
termInSetQueryBuilder_.clear();
}
if (disjunctionMaxQueryBuilder_ != null) {
disjunctionMaxQueryBuilder_.clear();
}
if (matchQueryBuilder_ != null) {
matchQueryBuilder_.clear();
}
if (matchPhraseQueryBuilder_ != null) {
matchPhraseQueryBuilder_.clear();
}
if (multiMatchQueryBuilder_ != null) {
multiMatchQueryBuilder_.clear();
}
if (rangeQueryBuilder_ != null) {
rangeQueryBuilder_.clear();
}
if (geoBoundingBoxQueryBuilder_ != null) {
geoBoundingBoxQueryBuilder_.clear();
}
if (geoPointQueryBuilder_ != null) {
geoPointQueryBuilder_.clear();
}
if (nestedQueryBuilder_ != null) {
nestedQueryBuilder_.clear();
}
if (existsQueryBuilder_ != null) {
existsQueryBuilder_.clear();
}
if (geoRadiusQueryBuilder_ != null) {
geoRadiusQueryBuilder_.clear();
}
if (functionFilterQueryBuilder_ != null) {
functionFilterQueryBuilder_.clear();
}
if (completionQueryBuilder_ != null) {
completionQueryBuilder_.clear();
}
if (multiFunctionScoreQueryBuilder_ != null) {
multiFunctionScoreQueryBuilder_.clear();
}
if (matchPhrasePrefixQueryBuilder_ != null) {
matchPhrasePrefixQueryBuilder_.clear();
}
if (prefixQueryBuilder_ != null) {
prefixQueryBuilder_.clear();
}
if (constantScoreQueryBuilder_ != null) {
constantScoreQueryBuilder_.clear();
}
if (geoPolygonQueryBuilder_ != null) {
geoPolygonQueryBuilder_.clear();
}
if (spanQueryBuilder_ != null) {
spanQueryBuilder_.clear();
}
queryNodeCase_ = 0;
queryNode_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Query_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.Query getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.Query.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.Query build() {
com.yelp.nrtsearch.server.grpc.Query result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.Query buildPartial() {
com.yelp.nrtsearch.server.grpc.Query result = new com.yelp.nrtsearch.server.grpc.Query(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.Query result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.queryType_ = queryType_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.boost_ = boost_;
}
}
private void buildPartialOneofs(com.yelp.nrtsearch.server.grpc.Query result) {
result.queryNodeCase_ = queryNodeCase_;
result.queryNode_ = this.queryNode_;
if (queryNodeCase_ == 3 &&
booleanQueryBuilder_ != null) {
result.queryNode_ = booleanQueryBuilder_.build();
}
if (queryNodeCase_ == 4 &&
phraseQueryBuilder_ != null) {
result.queryNode_ = phraseQueryBuilder_.build();
}
if (queryNodeCase_ == 5 &&
functionScoreQueryBuilder_ != null) {
result.queryNode_ = functionScoreQueryBuilder_.build();
}
if (queryNodeCase_ == 6 &&
termQueryBuilder_ != null) {
result.queryNode_ = termQueryBuilder_.build();
}
if (queryNodeCase_ == 7 &&
termInSetQueryBuilder_ != null) {
result.queryNode_ = termInSetQueryBuilder_.build();
}
if (queryNodeCase_ == 8 &&
disjunctionMaxQueryBuilder_ != null) {
result.queryNode_ = disjunctionMaxQueryBuilder_.build();
}
if (queryNodeCase_ == 9 &&
matchQueryBuilder_ != null) {
result.queryNode_ = matchQueryBuilder_.build();
}
if (queryNodeCase_ == 10 &&
matchPhraseQueryBuilder_ != null) {
result.queryNode_ = matchPhraseQueryBuilder_.build();
}
if (queryNodeCase_ == 11 &&
multiMatchQueryBuilder_ != null) {
result.queryNode_ = multiMatchQueryBuilder_.build();
}
if (queryNodeCase_ == 12 &&
rangeQueryBuilder_ != null) {
result.queryNode_ = rangeQueryBuilder_.build();
}
if (queryNodeCase_ == 13 &&
geoBoundingBoxQueryBuilder_ != null) {
result.queryNode_ = geoBoundingBoxQueryBuilder_.build();
}
if (queryNodeCase_ == 14 &&
geoPointQueryBuilder_ != null) {
result.queryNode_ = geoPointQueryBuilder_.build();
}
if (queryNodeCase_ == 15 &&
nestedQueryBuilder_ != null) {
result.queryNode_ = nestedQueryBuilder_.build();
}
if (queryNodeCase_ == 16 &&
existsQueryBuilder_ != null) {
result.queryNode_ = existsQueryBuilder_.build();
}
if (queryNodeCase_ == 17 &&
geoRadiusQueryBuilder_ != null) {
result.queryNode_ = geoRadiusQueryBuilder_.build();
}
if (queryNodeCase_ == 18 &&
functionFilterQueryBuilder_ != null) {
result.queryNode_ = functionFilterQueryBuilder_.build();
}
if (queryNodeCase_ == 19 &&
completionQueryBuilder_ != null) {
result.queryNode_ = completionQueryBuilder_.build();
}
if (queryNodeCase_ == 20 &&
multiFunctionScoreQueryBuilder_ != null) {
result.queryNode_ = multiFunctionScoreQueryBuilder_.build();
}
if (queryNodeCase_ == 21 &&
matchPhrasePrefixQueryBuilder_ != null) {
result.queryNode_ = matchPhrasePrefixQueryBuilder_.build();
}
if (queryNodeCase_ == 22 &&
prefixQueryBuilder_ != null) {
result.queryNode_ = prefixQueryBuilder_.build();
}
if (queryNodeCase_ == 23 &&
constantScoreQueryBuilder_ != null) {
result.queryNode_ = constantScoreQueryBuilder_.build();
}
if (queryNodeCase_ == 24 &&
geoPolygonQueryBuilder_ != null) {
result.queryNode_ = geoPolygonQueryBuilder_.build();
}
if (queryNodeCase_ == 25 &&
spanQueryBuilder_ != null) {
result.queryNode_ = spanQueryBuilder_.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.Query) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.Query)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.Query other) {
if (other == com.yelp.nrtsearch.server.grpc.Query.getDefaultInstance()) return this;
if (other.queryType_ != 0) {
setQueryTypeValue(other.getQueryTypeValue());
}
if (other.getBoost() != 0F) {
setBoost(other.getBoost());
}
switch (other.getQueryNodeCase()) {
case BOOLEANQUERY: {
mergeBooleanQuery(other.getBooleanQuery());
break;
}
case PHRASEQUERY: {
mergePhraseQuery(other.getPhraseQuery());
break;
}
case FUNCTIONSCOREQUERY: {
mergeFunctionScoreQuery(other.getFunctionScoreQuery());
break;
}
case TERMQUERY: {
mergeTermQuery(other.getTermQuery());
break;
}
case TERMINSETQUERY: {
mergeTermInSetQuery(other.getTermInSetQuery());
break;
}
case DISJUNCTIONMAXQUERY: {
mergeDisjunctionMaxQuery(other.getDisjunctionMaxQuery());
break;
}
case MATCHQUERY: {
mergeMatchQuery(other.getMatchQuery());
break;
}
case MATCHPHRASEQUERY: {
mergeMatchPhraseQuery(other.getMatchPhraseQuery());
break;
}
case MULTIMATCHQUERY: {
mergeMultiMatchQuery(other.getMultiMatchQuery());
break;
}
case RANGEQUERY: {
mergeRangeQuery(other.getRangeQuery());
break;
}
case GEOBOUNDINGBOXQUERY: {
mergeGeoBoundingBoxQuery(other.getGeoBoundingBoxQuery());
break;
}
case GEOPOINTQUERY: {
mergeGeoPointQuery(other.getGeoPointQuery());
break;
}
case NESTEDQUERY: {
mergeNestedQuery(other.getNestedQuery());
break;
}
case EXISTSQUERY: {
mergeExistsQuery(other.getExistsQuery());
break;
}
case GEORADIUSQUERY: {
mergeGeoRadiusQuery(other.getGeoRadiusQuery());
break;
}
case FUNCTIONFILTERQUERY: {
mergeFunctionFilterQuery(other.getFunctionFilterQuery());
break;
}
case COMPLETIONQUERY: {
mergeCompletionQuery(other.getCompletionQuery());
break;
}
case MULTIFUNCTIONSCOREQUERY: {
mergeMultiFunctionScoreQuery(other.getMultiFunctionScoreQuery());
break;
}
case MATCHPHRASEPREFIXQUERY: {
mergeMatchPhrasePrefixQuery(other.getMatchPhrasePrefixQuery());
break;
}
case PREFIXQUERY: {
mergePrefixQuery(other.getPrefixQuery());
break;
}
case CONSTANTSCOREQUERY: {
mergeConstantScoreQuery(other.getConstantScoreQuery());
break;
}
case GEOPOLYGONQUERY: {
mergeGeoPolygonQuery(other.getGeoPolygonQuery());
break;
}
case SPANQUERY: {
mergeSpanQuery(other.getSpanQuery());
break;
}
case QUERYNODE_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 8: {
queryType_ = input.readEnum();
bitField0_ |= 0x00000001;
break;
} // case 8
case 21: {
boost_ = input.readFloat();
bitField0_ |= 0x00000002;
break;
} // case 21
case 26: {
input.readMessage(
getBooleanQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getPhraseQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getFunctionScoreQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getTermQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 6;
break;
} // case 50
case 58: {
input.readMessage(
getTermInSetQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 7;
break;
} // case 58
case 66: {
input.readMessage(
getDisjunctionMaxQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 8;
break;
} // case 66
case 74: {
input.readMessage(
getMatchQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 9;
break;
} // case 74
case 82: {
input.readMessage(
getMatchPhraseQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 10;
break;
} // case 82
case 90: {
input.readMessage(
getMultiMatchQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 11;
break;
} // case 90
case 98: {
input.readMessage(
getRangeQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 12;
break;
} // case 98
case 106: {
input.readMessage(
getGeoBoundingBoxQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 13;
break;
} // case 106
case 114: {
input.readMessage(
getGeoPointQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 14;
break;
} // case 114
case 122: {
input.readMessage(
getNestedQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 15;
break;
} // case 122
case 130: {
input.readMessage(
getExistsQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 16;
break;
} // case 130
case 138: {
input.readMessage(
getGeoRadiusQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 17;
break;
} // case 138
case 146: {
input.readMessage(
getFunctionFilterQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 18;
break;
} // case 146
case 154: {
input.readMessage(
getCompletionQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 19;
break;
} // case 154
case 162: {
input.readMessage(
getMultiFunctionScoreQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 20;
break;
} // case 162
case 170: {
input.readMessage(
getMatchPhrasePrefixQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 21;
break;
} // case 170
case 178: {
input.readMessage(
getPrefixQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 22;
break;
} // case 178
case 186: {
input.readMessage(
getConstantScoreQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 23;
break;
} // case 186
case 194: {
input.readMessage(
getGeoPolygonQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 24;
break;
} // case 194
case 202: {
input.readMessage(
getSpanQueryFieldBuilder().getBuilder(),
extensionRegistry);
queryNodeCase_ = 25;
break;
} // case 202
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 queryNodeCase_ = 0;
private java.lang.Object queryNode_;
public QueryNodeCase
getQueryNodeCase() {
return QueryNodeCase.forNumber(
queryNodeCase_);
}
public Builder clearQueryNode() {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
return this;
}
private int bitField0_;
private int queryType_ = 0;
/**
*
* no longer needed, type inferred from set QueryNode
*
*
* .luceneserver.QueryType queryType = 1 [deprecated = true];
* @deprecated luceneserver.Query.queryType is deprecated.
* See yelp/nrtsearch/search.proto;l=545
* @return The enum numeric value on the wire for queryType.
*/
@java.lang.Override @java.lang.Deprecated public int getQueryTypeValue() {
return queryType_;
}
/**
*
* no longer needed, type inferred from set QueryNode
*
*
* .luceneserver.QueryType queryType = 1 [deprecated = true];
* @deprecated luceneserver.Query.queryType is deprecated.
* See yelp/nrtsearch/search.proto;l=545
* @param value The enum numeric value on the wire for queryType to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setQueryTypeValue(int value) {
queryType_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* no longer needed, type inferred from set QueryNode
*
*
* .luceneserver.QueryType queryType = 1 [deprecated = true];
* @deprecated luceneserver.Query.queryType is deprecated.
* See yelp/nrtsearch/search.proto;l=545
* @return The queryType.
*/
@java.lang.Override
@java.lang.Deprecated public com.yelp.nrtsearch.server.grpc.QueryType getQueryType() {
com.yelp.nrtsearch.server.grpc.QueryType result = com.yelp.nrtsearch.server.grpc.QueryType.forNumber(queryType_);
return result == null ? com.yelp.nrtsearch.server.grpc.QueryType.UNRECOGNIZED : result;
}
/**
*
* no longer needed, type inferred from set QueryNode
*
*
* .luceneserver.QueryType queryType = 1 [deprecated = true];
* @deprecated luceneserver.Query.queryType is deprecated.
* See yelp/nrtsearch/search.proto;l=545
* @param value The queryType to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setQueryType(com.yelp.nrtsearch.server.grpc.QueryType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
queryType_ = value.getNumber();
onChanged();
return this;
}
/**
*
* no longer needed, type inferred from set QueryNode
*
*
* .luceneserver.QueryType queryType = 1 [deprecated = true];
* @deprecated luceneserver.Query.queryType is deprecated.
* See yelp/nrtsearch/search.proto;l=545
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearQueryType() {
bitField0_ = (bitField0_ & ~0x00000001);
queryType_ = 0;
onChanged();
return this;
}
private float boost_ ;
/**
*
* Boost values that are less than one will give less importance to this query compared to other ones while values that are greater than one will give more importance to the scores returned by this query. Boost value of zero will do nothing (default). Boost less than 0 is invalid.
*
*
* float boost = 2;
* @return The boost.
*/
@java.lang.Override
public float getBoost() {
return boost_;
}
/**
*
* Boost values that are less than one will give less importance to this query compared to other ones while values that are greater than one will give more importance to the scores returned by this query. Boost value of zero will do nothing (default). Boost less than 0 is invalid.
*
*
* float boost = 2;
* @param value The boost to set.
* @return This builder for chaining.
*/
public Builder setBoost(float value) {
boost_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Boost values that are less than one will give less importance to this query compared to other ones while values that are greater than one will give more importance to the scores returned by this query. Boost value of zero will do nothing (default). Boost less than 0 is invalid.
*
*
* float boost = 2;
* @return This builder for chaining.
*/
public Builder clearBoost() {
bitField0_ = (bitField0_ & ~0x00000002);
boost_ = 0F;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.BooleanQuery, com.yelp.nrtsearch.server.grpc.BooleanQuery.Builder, com.yelp.nrtsearch.server.grpc.BooleanQueryOrBuilder> booleanQueryBuilder_;
/**
* .luceneserver.BooleanQuery booleanQuery = 3;
* @return Whether the booleanQuery field is set.
*/
@java.lang.Override
public boolean hasBooleanQuery() {
return queryNodeCase_ == 3;
}
/**
* .luceneserver.BooleanQuery booleanQuery = 3;
* @return The booleanQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.BooleanQuery getBooleanQuery() {
if (booleanQueryBuilder_ == null) {
if (queryNodeCase_ == 3) {
return (com.yelp.nrtsearch.server.grpc.BooleanQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.BooleanQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 3) {
return booleanQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.BooleanQuery.getDefaultInstance();
}
}
/**
* .luceneserver.BooleanQuery booleanQuery = 3;
*/
public Builder setBooleanQuery(com.yelp.nrtsearch.server.grpc.BooleanQuery value) {
if (booleanQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
booleanQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 3;
return this;
}
/**
* .luceneserver.BooleanQuery booleanQuery = 3;
*/
public Builder setBooleanQuery(
com.yelp.nrtsearch.server.grpc.BooleanQuery.Builder builderForValue) {
if (booleanQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
booleanQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 3;
return this;
}
/**
* .luceneserver.BooleanQuery booleanQuery = 3;
*/
public Builder mergeBooleanQuery(com.yelp.nrtsearch.server.grpc.BooleanQuery value) {
if (booleanQueryBuilder_ == null) {
if (queryNodeCase_ == 3 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.BooleanQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.BooleanQuery.newBuilder((com.yelp.nrtsearch.server.grpc.BooleanQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 3) {
booleanQueryBuilder_.mergeFrom(value);
} else {
booleanQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 3;
return this;
}
/**
* .luceneserver.BooleanQuery booleanQuery = 3;
*/
public Builder clearBooleanQuery() {
if (booleanQueryBuilder_ == null) {
if (queryNodeCase_ == 3) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 3) {
queryNodeCase_ = 0;
queryNode_ = null;
}
booleanQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.BooleanQuery booleanQuery = 3;
*/
public com.yelp.nrtsearch.server.grpc.BooleanQuery.Builder getBooleanQueryBuilder() {
return getBooleanQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.BooleanQuery booleanQuery = 3;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.BooleanQueryOrBuilder getBooleanQueryOrBuilder() {
if ((queryNodeCase_ == 3) && (booleanQueryBuilder_ != null)) {
return booleanQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 3) {
return (com.yelp.nrtsearch.server.grpc.BooleanQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.BooleanQuery.getDefaultInstance();
}
}
/**
* .luceneserver.BooleanQuery booleanQuery = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.BooleanQuery, com.yelp.nrtsearch.server.grpc.BooleanQuery.Builder, com.yelp.nrtsearch.server.grpc.BooleanQueryOrBuilder>
getBooleanQueryFieldBuilder() {
if (booleanQueryBuilder_ == null) {
if (!(queryNodeCase_ == 3)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.BooleanQuery.getDefaultInstance();
}
booleanQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.BooleanQuery, com.yelp.nrtsearch.server.grpc.BooleanQuery.Builder, com.yelp.nrtsearch.server.grpc.BooleanQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.BooleanQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 3;
onChanged();
return booleanQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.PhraseQuery, com.yelp.nrtsearch.server.grpc.PhraseQuery.Builder, com.yelp.nrtsearch.server.grpc.PhraseQueryOrBuilder> phraseQueryBuilder_;
/**
* .luceneserver.PhraseQuery phraseQuery = 4;
* @return Whether the phraseQuery field is set.
*/
@java.lang.Override
public boolean hasPhraseQuery() {
return queryNodeCase_ == 4;
}
/**
* .luceneserver.PhraseQuery phraseQuery = 4;
* @return The phraseQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.PhraseQuery getPhraseQuery() {
if (phraseQueryBuilder_ == null) {
if (queryNodeCase_ == 4) {
return (com.yelp.nrtsearch.server.grpc.PhraseQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.PhraseQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 4) {
return phraseQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.PhraseQuery.getDefaultInstance();
}
}
/**
* .luceneserver.PhraseQuery phraseQuery = 4;
*/
public Builder setPhraseQuery(com.yelp.nrtsearch.server.grpc.PhraseQuery value) {
if (phraseQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
phraseQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 4;
return this;
}
/**
* .luceneserver.PhraseQuery phraseQuery = 4;
*/
public Builder setPhraseQuery(
com.yelp.nrtsearch.server.grpc.PhraseQuery.Builder builderForValue) {
if (phraseQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
phraseQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 4;
return this;
}
/**
* .luceneserver.PhraseQuery phraseQuery = 4;
*/
public Builder mergePhraseQuery(com.yelp.nrtsearch.server.grpc.PhraseQuery value) {
if (phraseQueryBuilder_ == null) {
if (queryNodeCase_ == 4 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.PhraseQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.PhraseQuery.newBuilder((com.yelp.nrtsearch.server.grpc.PhraseQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 4) {
phraseQueryBuilder_.mergeFrom(value);
} else {
phraseQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 4;
return this;
}
/**
* .luceneserver.PhraseQuery phraseQuery = 4;
*/
public Builder clearPhraseQuery() {
if (phraseQueryBuilder_ == null) {
if (queryNodeCase_ == 4) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 4) {
queryNodeCase_ = 0;
queryNode_ = null;
}
phraseQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.PhraseQuery phraseQuery = 4;
*/
public com.yelp.nrtsearch.server.grpc.PhraseQuery.Builder getPhraseQueryBuilder() {
return getPhraseQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.PhraseQuery phraseQuery = 4;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.PhraseQueryOrBuilder getPhraseQueryOrBuilder() {
if ((queryNodeCase_ == 4) && (phraseQueryBuilder_ != null)) {
return phraseQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 4) {
return (com.yelp.nrtsearch.server.grpc.PhraseQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.PhraseQuery.getDefaultInstance();
}
}
/**
* .luceneserver.PhraseQuery phraseQuery = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.PhraseQuery, com.yelp.nrtsearch.server.grpc.PhraseQuery.Builder, com.yelp.nrtsearch.server.grpc.PhraseQueryOrBuilder>
getPhraseQueryFieldBuilder() {
if (phraseQueryBuilder_ == null) {
if (!(queryNodeCase_ == 4)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.PhraseQuery.getDefaultInstance();
}
phraseQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.PhraseQuery, com.yelp.nrtsearch.server.grpc.PhraseQuery.Builder, com.yelp.nrtsearch.server.grpc.PhraseQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.PhraseQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 4;
onChanged();
return phraseQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FunctionScoreQuery, com.yelp.nrtsearch.server.grpc.FunctionScoreQuery.Builder, com.yelp.nrtsearch.server.grpc.FunctionScoreQueryOrBuilder> functionScoreQueryBuilder_;
/**
* .luceneserver.FunctionScoreQuery functionScoreQuery = 5;
* @return Whether the functionScoreQuery field is set.
*/
@java.lang.Override
public boolean hasFunctionScoreQuery() {
return queryNodeCase_ == 5;
}
/**
* .luceneserver.FunctionScoreQuery functionScoreQuery = 5;
* @return The functionScoreQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FunctionScoreQuery getFunctionScoreQuery() {
if (functionScoreQueryBuilder_ == null) {
if (queryNodeCase_ == 5) {
return (com.yelp.nrtsearch.server.grpc.FunctionScoreQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.FunctionScoreQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 5) {
return functionScoreQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.FunctionScoreQuery.getDefaultInstance();
}
}
/**
* .luceneserver.FunctionScoreQuery functionScoreQuery = 5;
*/
public Builder setFunctionScoreQuery(com.yelp.nrtsearch.server.grpc.FunctionScoreQuery value) {
if (functionScoreQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
functionScoreQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 5;
return this;
}
/**
* .luceneserver.FunctionScoreQuery functionScoreQuery = 5;
*/
public Builder setFunctionScoreQuery(
com.yelp.nrtsearch.server.grpc.FunctionScoreQuery.Builder builderForValue) {
if (functionScoreQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
functionScoreQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 5;
return this;
}
/**
* .luceneserver.FunctionScoreQuery functionScoreQuery = 5;
*/
public Builder mergeFunctionScoreQuery(com.yelp.nrtsearch.server.grpc.FunctionScoreQuery value) {
if (functionScoreQueryBuilder_ == null) {
if (queryNodeCase_ == 5 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.FunctionScoreQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.FunctionScoreQuery.newBuilder((com.yelp.nrtsearch.server.grpc.FunctionScoreQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 5) {
functionScoreQueryBuilder_.mergeFrom(value);
} else {
functionScoreQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 5;
return this;
}
/**
* .luceneserver.FunctionScoreQuery functionScoreQuery = 5;
*/
public Builder clearFunctionScoreQuery() {
if (functionScoreQueryBuilder_ == null) {
if (queryNodeCase_ == 5) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 5) {
queryNodeCase_ = 0;
queryNode_ = null;
}
functionScoreQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.FunctionScoreQuery functionScoreQuery = 5;
*/
public com.yelp.nrtsearch.server.grpc.FunctionScoreQuery.Builder getFunctionScoreQueryBuilder() {
return getFunctionScoreQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.FunctionScoreQuery functionScoreQuery = 5;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FunctionScoreQueryOrBuilder getFunctionScoreQueryOrBuilder() {
if ((queryNodeCase_ == 5) && (functionScoreQueryBuilder_ != null)) {
return functionScoreQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 5) {
return (com.yelp.nrtsearch.server.grpc.FunctionScoreQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.FunctionScoreQuery.getDefaultInstance();
}
}
/**
* .luceneserver.FunctionScoreQuery functionScoreQuery = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FunctionScoreQuery, com.yelp.nrtsearch.server.grpc.FunctionScoreQuery.Builder, com.yelp.nrtsearch.server.grpc.FunctionScoreQueryOrBuilder>
getFunctionScoreQueryFieldBuilder() {
if (functionScoreQueryBuilder_ == null) {
if (!(queryNodeCase_ == 5)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.FunctionScoreQuery.getDefaultInstance();
}
functionScoreQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FunctionScoreQuery, com.yelp.nrtsearch.server.grpc.FunctionScoreQuery.Builder, com.yelp.nrtsearch.server.grpc.FunctionScoreQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.FunctionScoreQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 5;
onChanged();
return functionScoreQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermQuery, com.yelp.nrtsearch.server.grpc.TermQuery.Builder, com.yelp.nrtsearch.server.grpc.TermQueryOrBuilder> termQueryBuilder_;
/**
* .luceneserver.TermQuery termQuery = 6;
* @return Whether the termQuery field is set.
*/
@java.lang.Override
public boolean hasTermQuery() {
return queryNodeCase_ == 6;
}
/**
* .luceneserver.TermQuery termQuery = 6;
* @return The termQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermQuery getTermQuery() {
if (termQueryBuilder_ == null) {
if (queryNodeCase_ == 6) {
return (com.yelp.nrtsearch.server.grpc.TermQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.TermQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 6) {
return termQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.TermQuery.getDefaultInstance();
}
}
/**
* .luceneserver.TermQuery termQuery = 6;
*/
public Builder setTermQuery(com.yelp.nrtsearch.server.grpc.TermQuery value) {
if (termQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
termQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 6;
return this;
}
/**
* .luceneserver.TermQuery termQuery = 6;
*/
public Builder setTermQuery(
com.yelp.nrtsearch.server.grpc.TermQuery.Builder builderForValue) {
if (termQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
termQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 6;
return this;
}
/**
* .luceneserver.TermQuery termQuery = 6;
*/
public Builder mergeTermQuery(com.yelp.nrtsearch.server.grpc.TermQuery value) {
if (termQueryBuilder_ == null) {
if (queryNodeCase_ == 6 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.TermQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.TermQuery.newBuilder((com.yelp.nrtsearch.server.grpc.TermQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 6) {
termQueryBuilder_.mergeFrom(value);
} else {
termQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 6;
return this;
}
/**
* .luceneserver.TermQuery termQuery = 6;
*/
public Builder clearTermQuery() {
if (termQueryBuilder_ == null) {
if (queryNodeCase_ == 6) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 6) {
queryNodeCase_ = 0;
queryNode_ = null;
}
termQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.TermQuery termQuery = 6;
*/
public com.yelp.nrtsearch.server.grpc.TermQuery.Builder getTermQueryBuilder() {
return getTermQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.TermQuery termQuery = 6;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermQueryOrBuilder getTermQueryOrBuilder() {
if ((queryNodeCase_ == 6) && (termQueryBuilder_ != null)) {
return termQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 6) {
return (com.yelp.nrtsearch.server.grpc.TermQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.TermQuery.getDefaultInstance();
}
}
/**
* .luceneserver.TermQuery termQuery = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermQuery, com.yelp.nrtsearch.server.grpc.TermQuery.Builder, com.yelp.nrtsearch.server.grpc.TermQueryOrBuilder>
getTermQueryFieldBuilder() {
if (termQueryBuilder_ == null) {
if (!(queryNodeCase_ == 6)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.TermQuery.getDefaultInstance();
}
termQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermQuery, com.yelp.nrtsearch.server.grpc.TermQuery.Builder, com.yelp.nrtsearch.server.grpc.TermQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.TermQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 6;
onChanged();
return termQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery, com.yelp.nrtsearch.server.grpc.TermInSetQuery.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQueryOrBuilder> termInSetQueryBuilder_;
/**
* .luceneserver.TermInSetQuery termInSetQuery = 7;
* @return Whether the termInSetQuery field is set.
*/
@java.lang.Override
public boolean hasTermInSetQuery() {
return queryNodeCase_ == 7;
}
/**
* .luceneserver.TermInSetQuery termInSetQuery = 7;
* @return The termInSetQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery getTermInSetQuery() {
if (termInSetQueryBuilder_ == null) {
if (queryNodeCase_ == 7) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 7) {
return termInSetQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.getDefaultInstance();
}
}
/**
* .luceneserver.TermInSetQuery termInSetQuery = 7;
*/
public Builder setTermInSetQuery(com.yelp.nrtsearch.server.grpc.TermInSetQuery value) {
if (termInSetQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
termInSetQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 7;
return this;
}
/**
* .luceneserver.TermInSetQuery termInSetQuery = 7;
*/
public Builder setTermInSetQuery(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.Builder builderForValue) {
if (termInSetQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
termInSetQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 7;
return this;
}
/**
* .luceneserver.TermInSetQuery termInSetQuery = 7;
*/
public Builder mergeTermInSetQuery(com.yelp.nrtsearch.server.grpc.TermInSetQuery value) {
if (termInSetQueryBuilder_ == null) {
if (queryNodeCase_ == 7 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.TermInSetQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.TermInSetQuery.newBuilder((com.yelp.nrtsearch.server.grpc.TermInSetQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 7) {
termInSetQueryBuilder_.mergeFrom(value);
} else {
termInSetQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 7;
return this;
}
/**
* .luceneserver.TermInSetQuery termInSetQuery = 7;
*/
public Builder clearTermInSetQuery() {
if (termInSetQueryBuilder_ == null) {
if (queryNodeCase_ == 7) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 7) {
queryNodeCase_ = 0;
queryNode_ = null;
}
termInSetQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.TermInSetQuery termInSetQuery = 7;
*/
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.Builder getTermInSetQueryBuilder() {
return getTermInSetQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.TermInSetQuery termInSetQuery = 7;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQueryOrBuilder getTermInSetQueryOrBuilder() {
if ((queryNodeCase_ == 7) && (termInSetQueryBuilder_ != null)) {
return termInSetQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 7) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.getDefaultInstance();
}
}
/**
* .luceneserver.TermInSetQuery termInSetQuery = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery, com.yelp.nrtsearch.server.grpc.TermInSetQuery.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQueryOrBuilder>
getTermInSetQueryFieldBuilder() {
if (termInSetQueryBuilder_ == null) {
if (!(queryNodeCase_ == 7)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.TermInSetQuery.getDefaultInstance();
}
termInSetQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery, com.yelp.nrtsearch.server.grpc.TermInSetQuery.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.TermInSetQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 7;
onChanged();
return termInSetQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery, com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.Builder, com.yelp.nrtsearch.server.grpc.DisjunctionMaxQueryOrBuilder> disjunctionMaxQueryBuilder_;
/**
* .luceneserver.DisjunctionMaxQuery disjunctionMaxQuery = 8;
* @return Whether the disjunctionMaxQuery field is set.
*/
@java.lang.Override
public boolean hasDisjunctionMaxQuery() {
return queryNodeCase_ == 8;
}
/**
* .luceneserver.DisjunctionMaxQuery disjunctionMaxQuery = 8;
* @return The disjunctionMaxQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery getDisjunctionMaxQuery() {
if (disjunctionMaxQueryBuilder_ == null) {
if (queryNodeCase_ == 8) {
return (com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 8) {
return disjunctionMaxQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.getDefaultInstance();
}
}
/**
* .luceneserver.DisjunctionMaxQuery disjunctionMaxQuery = 8;
*/
public Builder setDisjunctionMaxQuery(com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery value) {
if (disjunctionMaxQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
disjunctionMaxQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 8;
return this;
}
/**
* .luceneserver.DisjunctionMaxQuery disjunctionMaxQuery = 8;
*/
public Builder setDisjunctionMaxQuery(
com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.Builder builderForValue) {
if (disjunctionMaxQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
disjunctionMaxQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 8;
return this;
}
/**
* .luceneserver.DisjunctionMaxQuery disjunctionMaxQuery = 8;
*/
public Builder mergeDisjunctionMaxQuery(com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery value) {
if (disjunctionMaxQueryBuilder_ == null) {
if (queryNodeCase_ == 8 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.newBuilder((com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 8) {
disjunctionMaxQueryBuilder_.mergeFrom(value);
} else {
disjunctionMaxQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 8;
return this;
}
/**
* .luceneserver.DisjunctionMaxQuery disjunctionMaxQuery = 8;
*/
public Builder clearDisjunctionMaxQuery() {
if (disjunctionMaxQueryBuilder_ == null) {
if (queryNodeCase_ == 8) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 8) {
queryNodeCase_ = 0;
queryNode_ = null;
}
disjunctionMaxQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.DisjunctionMaxQuery disjunctionMaxQuery = 8;
*/
public com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.Builder getDisjunctionMaxQueryBuilder() {
return getDisjunctionMaxQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.DisjunctionMaxQuery disjunctionMaxQuery = 8;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.DisjunctionMaxQueryOrBuilder getDisjunctionMaxQueryOrBuilder() {
if ((queryNodeCase_ == 8) && (disjunctionMaxQueryBuilder_ != null)) {
return disjunctionMaxQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 8) {
return (com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.getDefaultInstance();
}
}
/**
* .luceneserver.DisjunctionMaxQuery disjunctionMaxQuery = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery, com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.Builder, com.yelp.nrtsearch.server.grpc.DisjunctionMaxQueryOrBuilder>
getDisjunctionMaxQueryFieldBuilder() {
if (disjunctionMaxQueryBuilder_ == null) {
if (!(queryNodeCase_ == 8)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.getDefaultInstance();
}
disjunctionMaxQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery, com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.Builder, com.yelp.nrtsearch.server.grpc.DisjunctionMaxQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 8;
onChanged();
return disjunctionMaxQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MatchQuery, com.yelp.nrtsearch.server.grpc.MatchQuery.Builder, com.yelp.nrtsearch.server.grpc.MatchQueryOrBuilder> matchQueryBuilder_;
/**
* .luceneserver.MatchQuery matchQuery = 9;
* @return Whether the matchQuery field is set.
*/
@java.lang.Override
public boolean hasMatchQuery() {
return queryNodeCase_ == 9;
}
/**
* .luceneserver.MatchQuery matchQuery = 9;
* @return The matchQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MatchQuery getMatchQuery() {
if (matchQueryBuilder_ == null) {
if (queryNodeCase_ == 9) {
return (com.yelp.nrtsearch.server.grpc.MatchQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MatchQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 9) {
return matchQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.MatchQuery.getDefaultInstance();
}
}
/**
* .luceneserver.MatchQuery matchQuery = 9;
*/
public Builder setMatchQuery(com.yelp.nrtsearch.server.grpc.MatchQuery value) {
if (matchQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
matchQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 9;
return this;
}
/**
* .luceneserver.MatchQuery matchQuery = 9;
*/
public Builder setMatchQuery(
com.yelp.nrtsearch.server.grpc.MatchQuery.Builder builderForValue) {
if (matchQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
matchQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 9;
return this;
}
/**
* .luceneserver.MatchQuery matchQuery = 9;
*/
public Builder mergeMatchQuery(com.yelp.nrtsearch.server.grpc.MatchQuery value) {
if (matchQueryBuilder_ == null) {
if (queryNodeCase_ == 9 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.MatchQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.MatchQuery.newBuilder((com.yelp.nrtsearch.server.grpc.MatchQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 9) {
matchQueryBuilder_.mergeFrom(value);
} else {
matchQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 9;
return this;
}
/**
* .luceneserver.MatchQuery matchQuery = 9;
*/
public Builder clearMatchQuery() {
if (matchQueryBuilder_ == null) {
if (queryNodeCase_ == 9) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 9) {
queryNodeCase_ = 0;
queryNode_ = null;
}
matchQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.MatchQuery matchQuery = 9;
*/
public com.yelp.nrtsearch.server.grpc.MatchQuery.Builder getMatchQueryBuilder() {
return getMatchQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.MatchQuery matchQuery = 9;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MatchQueryOrBuilder getMatchQueryOrBuilder() {
if ((queryNodeCase_ == 9) && (matchQueryBuilder_ != null)) {
return matchQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 9) {
return (com.yelp.nrtsearch.server.grpc.MatchQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MatchQuery.getDefaultInstance();
}
}
/**
* .luceneserver.MatchQuery matchQuery = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MatchQuery, com.yelp.nrtsearch.server.grpc.MatchQuery.Builder, com.yelp.nrtsearch.server.grpc.MatchQueryOrBuilder>
getMatchQueryFieldBuilder() {
if (matchQueryBuilder_ == null) {
if (!(queryNodeCase_ == 9)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.MatchQuery.getDefaultInstance();
}
matchQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MatchQuery, com.yelp.nrtsearch.server.grpc.MatchQuery.Builder, com.yelp.nrtsearch.server.grpc.MatchQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.MatchQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 9;
onChanged();
return matchQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MatchPhraseQuery, com.yelp.nrtsearch.server.grpc.MatchPhraseQuery.Builder, com.yelp.nrtsearch.server.grpc.MatchPhraseQueryOrBuilder> matchPhraseQueryBuilder_;
/**
* .luceneserver.MatchPhraseQuery matchPhraseQuery = 10;
* @return Whether the matchPhraseQuery field is set.
*/
@java.lang.Override
public boolean hasMatchPhraseQuery() {
return queryNodeCase_ == 10;
}
/**
* .luceneserver.MatchPhraseQuery matchPhraseQuery = 10;
* @return The matchPhraseQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MatchPhraseQuery getMatchPhraseQuery() {
if (matchPhraseQueryBuilder_ == null) {
if (queryNodeCase_ == 10) {
return (com.yelp.nrtsearch.server.grpc.MatchPhraseQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MatchPhraseQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 10) {
return matchPhraseQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.MatchPhraseQuery.getDefaultInstance();
}
}
/**
* .luceneserver.MatchPhraseQuery matchPhraseQuery = 10;
*/
public Builder setMatchPhraseQuery(com.yelp.nrtsearch.server.grpc.MatchPhraseQuery value) {
if (matchPhraseQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
matchPhraseQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 10;
return this;
}
/**
* .luceneserver.MatchPhraseQuery matchPhraseQuery = 10;
*/
public Builder setMatchPhraseQuery(
com.yelp.nrtsearch.server.grpc.MatchPhraseQuery.Builder builderForValue) {
if (matchPhraseQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
matchPhraseQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 10;
return this;
}
/**
* .luceneserver.MatchPhraseQuery matchPhraseQuery = 10;
*/
public Builder mergeMatchPhraseQuery(com.yelp.nrtsearch.server.grpc.MatchPhraseQuery value) {
if (matchPhraseQueryBuilder_ == null) {
if (queryNodeCase_ == 10 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.MatchPhraseQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.MatchPhraseQuery.newBuilder((com.yelp.nrtsearch.server.grpc.MatchPhraseQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 10) {
matchPhraseQueryBuilder_.mergeFrom(value);
} else {
matchPhraseQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 10;
return this;
}
/**
* .luceneserver.MatchPhraseQuery matchPhraseQuery = 10;
*/
public Builder clearMatchPhraseQuery() {
if (matchPhraseQueryBuilder_ == null) {
if (queryNodeCase_ == 10) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 10) {
queryNodeCase_ = 0;
queryNode_ = null;
}
matchPhraseQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.MatchPhraseQuery matchPhraseQuery = 10;
*/
public com.yelp.nrtsearch.server.grpc.MatchPhraseQuery.Builder getMatchPhraseQueryBuilder() {
return getMatchPhraseQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.MatchPhraseQuery matchPhraseQuery = 10;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MatchPhraseQueryOrBuilder getMatchPhraseQueryOrBuilder() {
if ((queryNodeCase_ == 10) && (matchPhraseQueryBuilder_ != null)) {
return matchPhraseQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 10) {
return (com.yelp.nrtsearch.server.grpc.MatchPhraseQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MatchPhraseQuery.getDefaultInstance();
}
}
/**
* .luceneserver.MatchPhraseQuery matchPhraseQuery = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MatchPhraseQuery, com.yelp.nrtsearch.server.grpc.MatchPhraseQuery.Builder, com.yelp.nrtsearch.server.grpc.MatchPhraseQueryOrBuilder>
getMatchPhraseQueryFieldBuilder() {
if (matchPhraseQueryBuilder_ == null) {
if (!(queryNodeCase_ == 10)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.MatchPhraseQuery.getDefaultInstance();
}
matchPhraseQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MatchPhraseQuery, com.yelp.nrtsearch.server.grpc.MatchPhraseQuery.Builder, com.yelp.nrtsearch.server.grpc.MatchPhraseQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.MatchPhraseQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 10;
onChanged();
return matchPhraseQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MultiMatchQuery, com.yelp.nrtsearch.server.grpc.MultiMatchQuery.Builder, com.yelp.nrtsearch.server.grpc.MultiMatchQueryOrBuilder> multiMatchQueryBuilder_;
/**
* .luceneserver.MultiMatchQuery multiMatchQuery = 11;
* @return Whether the multiMatchQuery field is set.
*/
@java.lang.Override
public boolean hasMultiMatchQuery() {
return queryNodeCase_ == 11;
}
/**
* .luceneserver.MultiMatchQuery multiMatchQuery = 11;
* @return The multiMatchQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MultiMatchQuery getMultiMatchQuery() {
if (multiMatchQueryBuilder_ == null) {
if (queryNodeCase_ == 11) {
return (com.yelp.nrtsearch.server.grpc.MultiMatchQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MultiMatchQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 11) {
return multiMatchQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.MultiMatchQuery.getDefaultInstance();
}
}
/**
* .luceneserver.MultiMatchQuery multiMatchQuery = 11;
*/
public Builder setMultiMatchQuery(com.yelp.nrtsearch.server.grpc.MultiMatchQuery value) {
if (multiMatchQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
multiMatchQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 11;
return this;
}
/**
* .luceneserver.MultiMatchQuery multiMatchQuery = 11;
*/
public Builder setMultiMatchQuery(
com.yelp.nrtsearch.server.grpc.MultiMatchQuery.Builder builderForValue) {
if (multiMatchQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
multiMatchQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 11;
return this;
}
/**
* .luceneserver.MultiMatchQuery multiMatchQuery = 11;
*/
public Builder mergeMultiMatchQuery(com.yelp.nrtsearch.server.grpc.MultiMatchQuery value) {
if (multiMatchQueryBuilder_ == null) {
if (queryNodeCase_ == 11 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.MultiMatchQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.MultiMatchQuery.newBuilder((com.yelp.nrtsearch.server.grpc.MultiMatchQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 11) {
multiMatchQueryBuilder_.mergeFrom(value);
} else {
multiMatchQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 11;
return this;
}
/**
* .luceneserver.MultiMatchQuery multiMatchQuery = 11;
*/
public Builder clearMultiMatchQuery() {
if (multiMatchQueryBuilder_ == null) {
if (queryNodeCase_ == 11) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 11) {
queryNodeCase_ = 0;
queryNode_ = null;
}
multiMatchQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.MultiMatchQuery multiMatchQuery = 11;
*/
public com.yelp.nrtsearch.server.grpc.MultiMatchQuery.Builder getMultiMatchQueryBuilder() {
return getMultiMatchQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.MultiMatchQuery multiMatchQuery = 11;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MultiMatchQueryOrBuilder getMultiMatchQueryOrBuilder() {
if ((queryNodeCase_ == 11) && (multiMatchQueryBuilder_ != null)) {
return multiMatchQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 11) {
return (com.yelp.nrtsearch.server.grpc.MultiMatchQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MultiMatchQuery.getDefaultInstance();
}
}
/**
* .luceneserver.MultiMatchQuery multiMatchQuery = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MultiMatchQuery, com.yelp.nrtsearch.server.grpc.MultiMatchQuery.Builder, com.yelp.nrtsearch.server.grpc.MultiMatchQueryOrBuilder>
getMultiMatchQueryFieldBuilder() {
if (multiMatchQueryBuilder_ == null) {
if (!(queryNodeCase_ == 11)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.MultiMatchQuery.getDefaultInstance();
}
multiMatchQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MultiMatchQuery, com.yelp.nrtsearch.server.grpc.MultiMatchQuery.Builder, com.yelp.nrtsearch.server.grpc.MultiMatchQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.MultiMatchQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 11;
onChanged();
return multiMatchQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.RangeQuery, com.yelp.nrtsearch.server.grpc.RangeQuery.Builder, com.yelp.nrtsearch.server.grpc.RangeQueryOrBuilder> rangeQueryBuilder_;
/**
* .luceneserver.RangeQuery rangeQuery = 12;
* @return Whether the rangeQuery field is set.
*/
@java.lang.Override
public boolean hasRangeQuery() {
return queryNodeCase_ == 12;
}
/**
* .luceneserver.RangeQuery rangeQuery = 12;
* @return The rangeQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.RangeQuery getRangeQuery() {
if (rangeQueryBuilder_ == null) {
if (queryNodeCase_ == 12) {
return (com.yelp.nrtsearch.server.grpc.RangeQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.RangeQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 12) {
return rangeQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.RangeQuery.getDefaultInstance();
}
}
/**
* .luceneserver.RangeQuery rangeQuery = 12;
*/
public Builder setRangeQuery(com.yelp.nrtsearch.server.grpc.RangeQuery value) {
if (rangeQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
rangeQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 12;
return this;
}
/**
* .luceneserver.RangeQuery rangeQuery = 12;
*/
public Builder setRangeQuery(
com.yelp.nrtsearch.server.grpc.RangeQuery.Builder builderForValue) {
if (rangeQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
rangeQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 12;
return this;
}
/**
* .luceneserver.RangeQuery rangeQuery = 12;
*/
public Builder mergeRangeQuery(com.yelp.nrtsearch.server.grpc.RangeQuery value) {
if (rangeQueryBuilder_ == null) {
if (queryNodeCase_ == 12 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.RangeQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.RangeQuery.newBuilder((com.yelp.nrtsearch.server.grpc.RangeQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 12) {
rangeQueryBuilder_.mergeFrom(value);
} else {
rangeQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 12;
return this;
}
/**
* .luceneserver.RangeQuery rangeQuery = 12;
*/
public Builder clearRangeQuery() {
if (rangeQueryBuilder_ == null) {
if (queryNodeCase_ == 12) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 12) {
queryNodeCase_ = 0;
queryNode_ = null;
}
rangeQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.RangeQuery rangeQuery = 12;
*/
public com.yelp.nrtsearch.server.grpc.RangeQuery.Builder getRangeQueryBuilder() {
return getRangeQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.RangeQuery rangeQuery = 12;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.RangeQueryOrBuilder getRangeQueryOrBuilder() {
if ((queryNodeCase_ == 12) && (rangeQueryBuilder_ != null)) {
return rangeQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 12) {
return (com.yelp.nrtsearch.server.grpc.RangeQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.RangeQuery.getDefaultInstance();
}
}
/**
* .luceneserver.RangeQuery rangeQuery = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.RangeQuery, com.yelp.nrtsearch.server.grpc.RangeQuery.Builder, com.yelp.nrtsearch.server.grpc.RangeQueryOrBuilder>
getRangeQueryFieldBuilder() {
if (rangeQueryBuilder_ == null) {
if (!(queryNodeCase_ == 12)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.RangeQuery.getDefaultInstance();
}
rangeQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.RangeQuery, com.yelp.nrtsearch.server.grpc.RangeQuery.Builder, com.yelp.nrtsearch.server.grpc.RangeQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.RangeQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 12;
onChanged();
return rangeQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery, com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery.Builder, com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQueryOrBuilder> geoBoundingBoxQueryBuilder_;
/**
* .luceneserver.GeoBoundingBoxQuery geoBoundingBoxQuery = 13;
* @return Whether the geoBoundingBoxQuery field is set.
*/
@java.lang.Override
public boolean hasGeoBoundingBoxQuery() {
return queryNodeCase_ == 13;
}
/**
* .luceneserver.GeoBoundingBoxQuery geoBoundingBoxQuery = 13;
* @return The geoBoundingBoxQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery getGeoBoundingBoxQuery() {
if (geoBoundingBoxQueryBuilder_ == null) {
if (queryNodeCase_ == 13) {
return (com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 13) {
return geoBoundingBoxQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery.getDefaultInstance();
}
}
/**
* .luceneserver.GeoBoundingBoxQuery geoBoundingBoxQuery = 13;
*/
public Builder setGeoBoundingBoxQuery(com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery value) {
if (geoBoundingBoxQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
geoBoundingBoxQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 13;
return this;
}
/**
* .luceneserver.GeoBoundingBoxQuery geoBoundingBoxQuery = 13;
*/
public Builder setGeoBoundingBoxQuery(
com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery.Builder builderForValue) {
if (geoBoundingBoxQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
geoBoundingBoxQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 13;
return this;
}
/**
* .luceneserver.GeoBoundingBoxQuery geoBoundingBoxQuery = 13;
*/
public Builder mergeGeoBoundingBoxQuery(com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery value) {
if (geoBoundingBoxQueryBuilder_ == null) {
if (queryNodeCase_ == 13 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery.newBuilder((com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 13) {
geoBoundingBoxQueryBuilder_.mergeFrom(value);
} else {
geoBoundingBoxQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 13;
return this;
}
/**
* .luceneserver.GeoBoundingBoxQuery geoBoundingBoxQuery = 13;
*/
public Builder clearGeoBoundingBoxQuery() {
if (geoBoundingBoxQueryBuilder_ == null) {
if (queryNodeCase_ == 13) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 13) {
queryNodeCase_ = 0;
queryNode_ = null;
}
geoBoundingBoxQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.GeoBoundingBoxQuery geoBoundingBoxQuery = 13;
*/
public com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery.Builder getGeoBoundingBoxQueryBuilder() {
return getGeoBoundingBoxQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.GeoBoundingBoxQuery geoBoundingBoxQuery = 13;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQueryOrBuilder getGeoBoundingBoxQueryOrBuilder() {
if ((queryNodeCase_ == 13) && (geoBoundingBoxQueryBuilder_ != null)) {
return geoBoundingBoxQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 13) {
return (com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery.getDefaultInstance();
}
}
/**
* .luceneserver.GeoBoundingBoxQuery geoBoundingBoxQuery = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery, com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery.Builder, com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQueryOrBuilder>
getGeoBoundingBoxQueryFieldBuilder() {
if (geoBoundingBoxQueryBuilder_ == null) {
if (!(queryNodeCase_ == 13)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery.getDefaultInstance();
}
geoBoundingBoxQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery, com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery.Builder, com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.GeoBoundingBoxQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 13;
onChanged();
return geoBoundingBoxQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.GeoPointQuery, com.yelp.nrtsearch.server.grpc.GeoPointQuery.Builder, com.yelp.nrtsearch.server.grpc.GeoPointQueryOrBuilder> geoPointQueryBuilder_;
/**
* .luceneserver.GeoPointQuery geoPointQuery = 14;
* @return Whether the geoPointQuery field is set.
*/
@java.lang.Override
public boolean hasGeoPointQuery() {
return queryNodeCase_ == 14;
}
/**
* .luceneserver.GeoPointQuery geoPointQuery = 14;
* @return The geoPointQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.GeoPointQuery getGeoPointQuery() {
if (geoPointQueryBuilder_ == null) {
if (queryNodeCase_ == 14) {
return (com.yelp.nrtsearch.server.grpc.GeoPointQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.GeoPointQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 14) {
return geoPointQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.GeoPointQuery.getDefaultInstance();
}
}
/**
* .luceneserver.GeoPointQuery geoPointQuery = 14;
*/
public Builder setGeoPointQuery(com.yelp.nrtsearch.server.grpc.GeoPointQuery value) {
if (geoPointQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
geoPointQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 14;
return this;
}
/**
* .luceneserver.GeoPointQuery geoPointQuery = 14;
*/
public Builder setGeoPointQuery(
com.yelp.nrtsearch.server.grpc.GeoPointQuery.Builder builderForValue) {
if (geoPointQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
geoPointQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 14;
return this;
}
/**
* .luceneserver.GeoPointQuery geoPointQuery = 14;
*/
public Builder mergeGeoPointQuery(com.yelp.nrtsearch.server.grpc.GeoPointQuery value) {
if (geoPointQueryBuilder_ == null) {
if (queryNodeCase_ == 14 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.GeoPointQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.GeoPointQuery.newBuilder((com.yelp.nrtsearch.server.grpc.GeoPointQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 14) {
geoPointQueryBuilder_.mergeFrom(value);
} else {
geoPointQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 14;
return this;
}
/**
* .luceneserver.GeoPointQuery geoPointQuery = 14;
*/
public Builder clearGeoPointQuery() {
if (geoPointQueryBuilder_ == null) {
if (queryNodeCase_ == 14) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 14) {
queryNodeCase_ = 0;
queryNode_ = null;
}
geoPointQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.GeoPointQuery geoPointQuery = 14;
*/
public com.yelp.nrtsearch.server.grpc.GeoPointQuery.Builder getGeoPointQueryBuilder() {
return getGeoPointQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.GeoPointQuery geoPointQuery = 14;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.GeoPointQueryOrBuilder getGeoPointQueryOrBuilder() {
if ((queryNodeCase_ == 14) && (geoPointQueryBuilder_ != null)) {
return geoPointQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 14) {
return (com.yelp.nrtsearch.server.grpc.GeoPointQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.GeoPointQuery.getDefaultInstance();
}
}
/**
* .luceneserver.GeoPointQuery geoPointQuery = 14;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.GeoPointQuery, com.yelp.nrtsearch.server.grpc.GeoPointQuery.Builder, com.yelp.nrtsearch.server.grpc.GeoPointQueryOrBuilder>
getGeoPointQueryFieldBuilder() {
if (geoPointQueryBuilder_ == null) {
if (!(queryNodeCase_ == 14)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.GeoPointQuery.getDefaultInstance();
}
geoPointQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.GeoPointQuery, com.yelp.nrtsearch.server.grpc.GeoPointQuery.Builder, com.yelp.nrtsearch.server.grpc.GeoPointQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.GeoPointQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 14;
onChanged();
return geoPointQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.NestedQuery, com.yelp.nrtsearch.server.grpc.NestedQuery.Builder, com.yelp.nrtsearch.server.grpc.NestedQueryOrBuilder> nestedQueryBuilder_;
/**
* .luceneserver.NestedQuery nestedQuery = 15;
* @return Whether the nestedQuery field is set.
*/
@java.lang.Override
public boolean hasNestedQuery() {
return queryNodeCase_ == 15;
}
/**
* .luceneserver.NestedQuery nestedQuery = 15;
* @return The nestedQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.NestedQuery getNestedQuery() {
if (nestedQueryBuilder_ == null) {
if (queryNodeCase_ == 15) {
return (com.yelp.nrtsearch.server.grpc.NestedQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.NestedQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 15) {
return nestedQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.NestedQuery.getDefaultInstance();
}
}
/**
* .luceneserver.NestedQuery nestedQuery = 15;
*/
public Builder setNestedQuery(com.yelp.nrtsearch.server.grpc.NestedQuery value) {
if (nestedQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
nestedQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 15;
return this;
}
/**
* .luceneserver.NestedQuery nestedQuery = 15;
*/
public Builder setNestedQuery(
com.yelp.nrtsearch.server.grpc.NestedQuery.Builder builderForValue) {
if (nestedQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
nestedQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 15;
return this;
}
/**
* .luceneserver.NestedQuery nestedQuery = 15;
*/
public Builder mergeNestedQuery(com.yelp.nrtsearch.server.grpc.NestedQuery value) {
if (nestedQueryBuilder_ == null) {
if (queryNodeCase_ == 15 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.NestedQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.NestedQuery.newBuilder((com.yelp.nrtsearch.server.grpc.NestedQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 15) {
nestedQueryBuilder_.mergeFrom(value);
} else {
nestedQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 15;
return this;
}
/**
* .luceneserver.NestedQuery nestedQuery = 15;
*/
public Builder clearNestedQuery() {
if (nestedQueryBuilder_ == null) {
if (queryNodeCase_ == 15) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 15) {
queryNodeCase_ = 0;
queryNode_ = null;
}
nestedQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.NestedQuery nestedQuery = 15;
*/
public com.yelp.nrtsearch.server.grpc.NestedQuery.Builder getNestedQueryBuilder() {
return getNestedQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.NestedQuery nestedQuery = 15;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.NestedQueryOrBuilder getNestedQueryOrBuilder() {
if ((queryNodeCase_ == 15) && (nestedQueryBuilder_ != null)) {
return nestedQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 15) {
return (com.yelp.nrtsearch.server.grpc.NestedQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.NestedQuery.getDefaultInstance();
}
}
/**
* .luceneserver.NestedQuery nestedQuery = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.NestedQuery, com.yelp.nrtsearch.server.grpc.NestedQuery.Builder, com.yelp.nrtsearch.server.grpc.NestedQueryOrBuilder>
getNestedQueryFieldBuilder() {
if (nestedQueryBuilder_ == null) {
if (!(queryNodeCase_ == 15)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.NestedQuery.getDefaultInstance();
}
nestedQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.NestedQuery, com.yelp.nrtsearch.server.grpc.NestedQuery.Builder, com.yelp.nrtsearch.server.grpc.NestedQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.NestedQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 15;
onChanged();
return nestedQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.ExistsQuery, com.yelp.nrtsearch.server.grpc.ExistsQuery.Builder, com.yelp.nrtsearch.server.grpc.ExistsQueryOrBuilder> existsQueryBuilder_;
/**
* .luceneserver.ExistsQuery existsQuery = 16;
* @return Whether the existsQuery field is set.
*/
@java.lang.Override
public boolean hasExistsQuery() {
return queryNodeCase_ == 16;
}
/**
* .luceneserver.ExistsQuery existsQuery = 16;
* @return The existsQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.ExistsQuery getExistsQuery() {
if (existsQueryBuilder_ == null) {
if (queryNodeCase_ == 16) {
return (com.yelp.nrtsearch.server.grpc.ExistsQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.ExistsQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 16) {
return existsQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.ExistsQuery.getDefaultInstance();
}
}
/**
* .luceneserver.ExistsQuery existsQuery = 16;
*/
public Builder setExistsQuery(com.yelp.nrtsearch.server.grpc.ExistsQuery value) {
if (existsQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
existsQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 16;
return this;
}
/**
* .luceneserver.ExistsQuery existsQuery = 16;
*/
public Builder setExistsQuery(
com.yelp.nrtsearch.server.grpc.ExistsQuery.Builder builderForValue) {
if (existsQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
existsQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 16;
return this;
}
/**
* .luceneserver.ExistsQuery existsQuery = 16;
*/
public Builder mergeExistsQuery(com.yelp.nrtsearch.server.grpc.ExistsQuery value) {
if (existsQueryBuilder_ == null) {
if (queryNodeCase_ == 16 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.ExistsQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.ExistsQuery.newBuilder((com.yelp.nrtsearch.server.grpc.ExistsQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 16) {
existsQueryBuilder_.mergeFrom(value);
} else {
existsQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 16;
return this;
}
/**
* .luceneserver.ExistsQuery existsQuery = 16;
*/
public Builder clearExistsQuery() {
if (existsQueryBuilder_ == null) {
if (queryNodeCase_ == 16) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 16) {
queryNodeCase_ = 0;
queryNode_ = null;
}
existsQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.ExistsQuery existsQuery = 16;
*/
public com.yelp.nrtsearch.server.grpc.ExistsQuery.Builder getExistsQueryBuilder() {
return getExistsQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.ExistsQuery existsQuery = 16;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.ExistsQueryOrBuilder getExistsQueryOrBuilder() {
if ((queryNodeCase_ == 16) && (existsQueryBuilder_ != null)) {
return existsQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 16) {
return (com.yelp.nrtsearch.server.grpc.ExistsQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.ExistsQuery.getDefaultInstance();
}
}
/**
* .luceneserver.ExistsQuery existsQuery = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.ExistsQuery, com.yelp.nrtsearch.server.grpc.ExistsQuery.Builder, com.yelp.nrtsearch.server.grpc.ExistsQueryOrBuilder>
getExistsQueryFieldBuilder() {
if (existsQueryBuilder_ == null) {
if (!(queryNodeCase_ == 16)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.ExistsQuery.getDefaultInstance();
}
existsQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.ExistsQuery, com.yelp.nrtsearch.server.grpc.ExistsQuery.Builder, com.yelp.nrtsearch.server.grpc.ExistsQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.ExistsQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 16;
onChanged();
return existsQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.GeoRadiusQuery, com.yelp.nrtsearch.server.grpc.GeoRadiusQuery.Builder, com.yelp.nrtsearch.server.grpc.GeoRadiusQueryOrBuilder> geoRadiusQueryBuilder_;
/**
* .luceneserver.GeoRadiusQuery geoRadiusQuery = 17;
* @return Whether the geoRadiusQuery field is set.
*/
@java.lang.Override
public boolean hasGeoRadiusQuery() {
return queryNodeCase_ == 17;
}
/**
* .luceneserver.GeoRadiusQuery geoRadiusQuery = 17;
* @return The geoRadiusQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.GeoRadiusQuery getGeoRadiusQuery() {
if (geoRadiusQueryBuilder_ == null) {
if (queryNodeCase_ == 17) {
return (com.yelp.nrtsearch.server.grpc.GeoRadiusQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.GeoRadiusQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 17) {
return geoRadiusQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.GeoRadiusQuery.getDefaultInstance();
}
}
/**
* .luceneserver.GeoRadiusQuery geoRadiusQuery = 17;
*/
public Builder setGeoRadiusQuery(com.yelp.nrtsearch.server.grpc.GeoRadiusQuery value) {
if (geoRadiusQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
geoRadiusQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 17;
return this;
}
/**
* .luceneserver.GeoRadiusQuery geoRadiusQuery = 17;
*/
public Builder setGeoRadiusQuery(
com.yelp.nrtsearch.server.grpc.GeoRadiusQuery.Builder builderForValue) {
if (geoRadiusQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
geoRadiusQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 17;
return this;
}
/**
* .luceneserver.GeoRadiusQuery geoRadiusQuery = 17;
*/
public Builder mergeGeoRadiusQuery(com.yelp.nrtsearch.server.grpc.GeoRadiusQuery value) {
if (geoRadiusQueryBuilder_ == null) {
if (queryNodeCase_ == 17 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.GeoRadiusQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.GeoRadiusQuery.newBuilder((com.yelp.nrtsearch.server.grpc.GeoRadiusQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 17) {
geoRadiusQueryBuilder_.mergeFrom(value);
} else {
geoRadiusQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 17;
return this;
}
/**
* .luceneserver.GeoRadiusQuery geoRadiusQuery = 17;
*/
public Builder clearGeoRadiusQuery() {
if (geoRadiusQueryBuilder_ == null) {
if (queryNodeCase_ == 17) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 17) {
queryNodeCase_ = 0;
queryNode_ = null;
}
geoRadiusQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.GeoRadiusQuery geoRadiusQuery = 17;
*/
public com.yelp.nrtsearch.server.grpc.GeoRadiusQuery.Builder getGeoRadiusQueryBuilder() {
return getGeoRadiusQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.GeoRadiusQuery geoRadiusQuery = 17;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.GeoRadiusQueryOrBuilder getGeoRadiusQueryOrBuilder() {
if ((queryNodeCase_ == 17) && (geoRadiusQueryBuilder_ != null)) {
return geoRadiusQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 17) {
return (com.yelp.nrtsearch.server.grpc.GeoRadiusQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.GeoRadiusQuery.getDefaultInstance();
}
}
/**
* .luceneserver.GeoRadiusQuery geoRadiusQuery = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.GeoRadiusQuery, com.yelp.nrtsearch.server.grpc.GeoRadiusQuery.Builder, com.yelp.nrtsearch.server.grpc.GeoRadiusQueryOrBuilder>
getGeoRadiusQueryFieldBuilder() {
if (geoRadiusQueryBuilder_ == null) {
if (!(queryNodeCase_ == 17)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.GeoRadiusQuery.getDefaultInstance();
}
geoRadiusQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.GeoRadiusQuery, com.yelp.nrtsearch.server.grpc.GeoRadiusQuery.Builder, com.yelp.nrtsearch.server.grpc.GeoRadiusQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.GeoRadiusQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 17;
onChanged();
return geoRadiusQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FunctionFilterQuery, com.yelp.nrtsearch.server.grpc.FunctionFilterQuery.Builder, com.yelp.nrtsearch.server.grpc.FunctionFilterQueryOrBuilder> functionFilterQueryBuilder_;
/**
* .luceneserver.FunctionFilterQuery functionFilterQuery = 18;
* @return Whether the functionFilterQuery field is set.
*/
@java.lang.Override
public boolean hasFunctionFilterQuery() {
return queryNodeCase_ == 18;
}
/**
* .luceneserver.FunctionFilterQuery functionFilterQuery = 18;
* @return The functionFilterQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FunctionFilterQuery getFunctionFilterQuery() {
if (functionFilterQueryBuilder_ == null) {
if (queryNodeCase_ == 18) {
return (com.yelp.nrtsearch.server.grpc.FunctionFilterQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.FunctionFilterQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 18) {
return functionFilterQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.FunctionFilterQuery.getDefaultInstance();
}
}
/**
* .luceneserver.FunctionFilterQuery functionFilterQuery = 18;
*/
public Builder setFunctionFilterQuery(com.yelp.nrtsearch.server.grpc.FunctionFilterQuery value) {
if (functionFilterQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
functionFilterQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 18;
return this;
}
/**
* .luceneserver.FunctionFilterQuery functionFilterQuery = 18;
*/
public Builder setFunctionFilterQuery(
com.yelp.nrtsearch.server.grpc.FunctionFilterQuery.Builder builderForValue) {
if (functionFilterQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
functionFilterQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 18;
return this;
}
/**
* .luceneserver.FunctionFilterQuery functionFilterQuery = 18;
*/
public Builder mergeFunctionFilterQuery(com.yelp.nrtsearch.server.grpc.FunctionFilterQuery value) {
if (functionFilterQueryBuilder_ == null) {
if (queryNodeCase_ == 18 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.FunctionFilterQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.FunctionFilterQuery.newBuilder((com.yelp.nrtsearch.server.grpc.FunctionFilterQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 18) {
functionFilterQueryBuilder_.mergeFrom(value);
} else {
functionFilterQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 18;
return this;
}
/**
* .luceneserver.FunctionFilterQuery functionFilterQuery = 18;
*/
public Builder clearFunctionFilterQuery() {
if (functionFilterQueryBuilder_ == null) {
if (queryNodeCase_ == 18) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 18) {
queryNodeCase_ = 0;
queryNode_ = null;
}
functionFilterQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.FunctionFilterQuery functionFilterQuery = 18;
*/
public com.yelp.nrtsearch.server.grpc.FunctionFilterQuery.Builder getFunctionFilterQueryBuilder() {
return getFunctionFilterQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.FunctionFilterQuery functionFilterQuery = 18;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FunctionFilterQueryOrBuilder getFunctionFilterQueryOrBuilder() {
if ((queryNodeCase_ == 18) && (functionFilterQueryBuilder_ != null)) {
return functionFilterQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 18) {
return (com.yelp.nrtsearch.server.grpc.FunctionFilterQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.FunctionFilterQuery.getDefaultInstance();
}
}
/**
* .luceneserver.FunctionFilterQuery functionFilterQuery = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FunctionFilterQuery, com.yelp.nrtsearch.server.grpc.FunctionFilterQuery.Builder, com.yelp.nrtsearch.server.grpc.FunctionFilterQueryOrBuilder>
getFunctionFilterQueryFieldBuilder() {
if (functionFilterQueryBuilder_ == null) {
if (!(queryNodeCase_ == 18)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.FunctionFilterQuery.getDefaultInstance();
}
functionFilterQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FunctionFilterQuery, com.yelp.nrtsearch.server.grpc.FunctionFilterQuery.Builder, com.yelp.nrtsearch.server.grpc.FunctionFilterQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.FunctionFilterQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 18;
onChanged();
return functionFilterQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.CompletionQuery, com.yelp.nrtsearch.server.grpc.CompletionQuery.Builder, com.yelp.nrtsearch.server.grpc.CompletionQueryOrBuilder> completionQueryBuilder_;
/**
* .luceneserver.CompletionQuery completionQuery = 19;
* @return Whether the completionQuery field is set.
*/
@java.lang.Override
public boolean hasCompletionQuery() {
return queryNodeCase_ == 19;
}
/**
* .luceneserver.CompletionQuery completionQuery = 19;
* @return The completionQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CompletionQuery getCompletionQuery() {
if (completionQueryBuilder_ == null) {
if (queryNodeCase_ == 19) {
return (com.yelp.nrtsearch.server.grpc.CompletionQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.CompletionQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 19) {
return completionQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.CompletionQuery.getDefaultInstance();
}
}
/**
* .luceneserver.CompletionQuery completionQuery = 19;
*/
public Builder setCompletionQuery(com.yelp.nrtsearch.server.grpc.CompletionQuery value) {
if (completionQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
completionQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 19;
return this;
}
/**
* .luceneserver.CompletionQuery completionQuery = 19;
*/
public Builder setCompletionQuery(
com.yelp.nrtsearch.server.grpc.CompletionQuery.Builder builderForValue) {
if (completionQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
completionQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 19;
return this;
}
/**
* .luceneserver.CompletionQuery completionQuery = 19;
*/
public Builder mergeCompletionQuery(com.yelp.nrtsearch.server.grpc.CompletionQuery value) {
if (completionQueryBuilder_ == null) {
if (queryNodeCase_ == 19 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.CompletionQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.CompletionQuery.newBuilder((com.yelp.nrtsearch.server.grpc.CompletionQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 19) {
completionQueryBuilder_.mergeFrom(value);
} else {
completionQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 19;
return this;
}
/**
* .luceneserver.CompletionQuery completionQuery = 19;
*/
public Builder clearCompletionQuery() {
if (completionQueryBuilder_ == null) {
if (queryNodeCase_ == 19) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 19) {
queryNodeCase_ = 0;
queryNode_ = null;
}
completionQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.CompletionQuery completionQuery = 19;
*/
public com.yelp.nrtsearch.server.grpc.CompletionQuery.Builder getCompletionQueryBuilder() {
return getCompletionQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.CompletionQuery completionQuery = 19;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CompletionQueryOrBuilder getCompletionQueryOrBuilder() {
if ((queryNodeCase_ == 19) && (completionQueryBuilder_ != null)) {
return completionQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 19) {
return (com.yelp.nrtsearch.server.grpc.CompletionQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.CompletionQuery.getDefaultInstance();
}
}
/**
* .luceneserver.CompletionQuery completionQuery = 19;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.CompletionQuery, com.yelp.nrtsearch.server.grpc.CompletionQuery.Builder, com.yelp.nrtsearch.server.grpc.CompletionQueryOrBuilder>
getCompletionQueryFieldBuilder() {
if (completionQueryBuilder_ == null) {
if (!(queryNodeCase_ == 19)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.CompletionQuery.getDefaultInstance();
}
completionQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.CompletionQuery, com.yelp.nrtsearch.server.grpc.CompletionQuery.Builder, com.yelp.nrtsearch.server.grpc.CompletionQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.CompletionQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 19;
onChanged();
return completionQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery, com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery.Builder, com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQueryOrBuilder> multiFunctionScoreQueryBuilder_;
/**
* .luceneserver.MultiFunctionScoreQuery multiFunctionScoreQuery = 20;
* @return Whether the multiFunctionScoreQuery field is set.
*/
@java.lang.Override
public boolean hasMultiFunctionScoreQuery() {
return queryNodeCase_ == 20;
}
/**
* .luceneserver.MultiFunctionScoreQuery multiFunctionScoreQuery = 20;
* @return The multiFunctionScoreQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery getMultiFunctionScoreQuery() {
if (multiFunctionScoreQueryBuilder_ == null) {
if (queryNodeCase_ == 20) {
return (com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 20) {
return multiFunctionScoreQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery.getDefaultInstance();
}
}
/**
* .luceneserver.MultiFunctionScoreQuery multiFunctionScoreQuery = 20;
*/
public Builder setMultiFunctionScoreQuery(com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery value) {
if (multiFunctionScoreQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
multiFunctionScoreQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 20;
return this;
}
/**
* .luceneserver.MultiFunctionScoreQuery multiFunctionScoreQuery = 20;
*/
public Builder setMultiFunctionScoreQuery(
com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery.Builder builderForValue) {
if (multiFunctionScoreQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
multiFunctionScoreQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 20;
return this;
}
/**
* .luceneserver.MultiFunctionScoreQuery multiFunctionScoreQuery = 20;
*/
public Builder mergeMultiFunctionScoreQuery(com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery value) {
if (multiFunctionScoreQueryBuilder_ == null) {
if (queryNodeCase_ == 20 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery.newBuilder((com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 20) {
multiFunctionScoreQueryBuilder_.mergeFrom(value);
} else {
multiFunctionScoreQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 20;
return this;
}
/**
* .luceneserver.MultiFunctionScoreQuery multiFunctionScoreQuery = 20;
*/
public Builder clearMultiFunctionScoreQuery() {
if (multiFunctionScoreQueryBuilder_ == null) {
if (queryNodeCase_ == 20) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 20) {
queryNodeCase_ = 0;
queryNode_ = null;
}
multiFunctionScoreQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.MultiFunctionScoreQuery multiFunctionScoreQuery = 20;
*/
public com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery.Builder getMultiFunctionScoreQueryBuilder() {
return getMultiFunctionScoreQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.MultiFunctionScoreQuery multiFunctionScoreQuery = 20;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQueryOrBuilder getMultiFunctionScoreQueryOrBuilder() {
if ((queryNodeCase_ == 20) && (multiFunctionScoreQueryBuilder_ != null)) {
return multiFunctionScoreQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 20) {
return (com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery.getDefaultInstance();
}
}
/**
* .luceneserver.MultiFunctionScoreQuery multiFunctionScoreQuery = 20;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery, com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery.Builder, com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQueryOrBuilder>
getMultiFunctionScoreQueryFieldBuilder() {
if (multiFunctionScoreQueryBuilder_ == null) {
if (!(queryNodeCase_ == 20)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery.getDefaultInstance();
}
multiFunctionScoreQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery, com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery.Builder, com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.MultiFunctionScoreQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 20;
onChanged();
return multiFunctionScoreQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery, com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.Builder, com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQueryOrBuilder> matchPhrasePrefixQueryBuilder_;
/**
* .luceneserver.MatchPhrasePrefixQuery matchPhrasePrefixQuery = 21;
* @return Whether the matchPhrasePrefixQuery field is set.
*/
@java.lang.Override
public boolean hasMatchPhrasePrefixQuery() {
return queryNodeCase_ == 21;
}
/**
* .luceneserver.MatchPhrasePrefixQuery matchPhrasePrefixQuery = 21;
* @return The matchPhrasePrefixQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery getMatchPhrasePrefixQuery() {
if (matchPhrasePrefixQueryBuilder_ == null) {
if (queryNodeCase_ == 21) {
return (com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 21) {
return matchPhrasePrefixQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.getDefaultInstance();
}
}
/**
* .luceneserver.MatchPhrasePrefixQuery matchPhrasePrefixQuery = 21;
*/
public Builder setMatchPhrasePrefixQuery(com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery value) {
if (matchPhrasePrefixQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
matchPhrasePrefixQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 21;
return this;
}
/**
* .luceneserver.MatchPhrasePrefixQuery matchPhrasePrefixQuery = 21;
*/
public Builder setMatchPhrasePrefixQuery(
com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.Builder builderForValue) {
if (matchPhrasePrefixQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
matchPhrasePrefixQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 21;
return this;
}
/**
* .luceneserver.MatchPhrasePrefixQuery matchPhrasePrefixQuery = 21;
*/
public Builder mergeMatchPhrasePrefixQuery(com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery value) {
if (matchPhrasePrefixQueryBuilder_ == null) {
if (queryNodeCase_ == 21 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.newBuilder((com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 21) {
matchPhrasePrefixQueryBuilder_.mergeFrom(value);
} else {
matchPhrasePrefixQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 21;
return this;
}
/**
* .luceneserver.MatchPhrasePrefixQuery matchPhrasePrefixQuery = 21;
*/
public Builder clearMatchPhrasePrefixQuery() {
if (matchPhrasePrefixQueryBuilder_ == null) {
if (queryNodeCase_ == 21) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 21) {
queryNodeCase_ = 0;
queryNode_ = null;
}
matchPhrasePrefixQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.MatchPhrasePrefixQuery matchPhrasePrefixQuery = 21;
*/
public com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.Builder getMatchPhrasePrefixQueryBuilder() {
return getMatchPhrasePrefixQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.MatchPhrasePrefixQuery matchPhrasePrefixQuery = 21;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQueryOrBuilder getMatchPhrasePrefixQueryOrBuilder() {
if ((queryNodeCase_ == 21) && (matchPhrasePrefixQueryBuilder_ != null)) {
return matchPhrasePrefixQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 21) {
return (com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.getDefaultInstance();
}
}
/**
* .luceneserver.MatchPhrasePrefixQuery matchPhrasePrefixQuery = 21;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery, com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.Builder, com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQueryOrBuilder>
getMatchPhrasePrefixQueryFieldBuilder() {
if (matchPhrasePrefixQueryBuilder_ == null) {
if (!(queryNodeCase_ == 21)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.getDefaultInstance();
}
matchPhrasePrefixQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery, com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery.Builder, com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.MatchPhrasePrefixQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 21;
onChanged();
return matchPhrasePrefixQueryBuilder_;
}
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 = 22;
* @return Whether the prefixQuery field is set.
*/
@java.lang.Override
public boolean hasPrefixQuery() {
return queryNodeCase_ == 22;
}
/**
* .luceneserver.PrefixQuery prefixQuery = 22;
* @return The prefixQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.PrefixQuery getPrefixQuery() {
if (prefixQueryBuilder_ == null) {
if (queryNodeCase_ == 22) {
return (com.yelp.nrtsearch.server.grpc.PrefixQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.PrefixQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 22) {
return prefixQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.PrefixQuery.getDefaultInstance();
}
}
/**
* .luceneserver.PrefixQuery prefixQuery = 22;
*/
public Builder setPrefixQuery(com.yelp.nrtsearch.server.grpc.PrefixQuery value) {
if (prefixQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
prefixQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 22;
return this;
}
/**
* .luceneserver.PrefixQuery prefixQuery = 22;
*/
public Builder setPrefixQuery(
com.yelp.nrtsearch.server.grpc.PrefixQuery.Builder builderForValue) {
if (prefixQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
prefixQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 22;
return this;
}
/**
* .luceneserver.PrefixQuery prefixQuery = 22;
*/
public Builder mergePrefixQuery(com.yelp.nrtsearch.server.grpc.PrefixQuery value) {
if (prefixQueryBuilder_ == null) {
if (queryNodeCase_ == 22 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.PrefixQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.PrefixQuery.newBuilder((com.yelp.nrtsearch.server.grpc.PrefixQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 22) {
prefixQueryBuilder_.mergeFrom(value);
} else {
prefixQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 22;
return this;
}
/**
* .luceneserver.PrefixQuery prefixQuery = 22;
*/
public Builder clearPrefixQuery() {
if (prefixQueryBuilder_ == null) {
if (queryNodeCase_ == 22) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 22) {
queryNodeCase_ = 0;
queryNode_ = null;
}
prefixQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.PrefixQuery prefixQuery = 22;
*/
public com.yelp.nrtsearch.server.grpc.PrefixQuery.Builder getPrefixQueryBuilder() {
return getPrefixQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.PrefixQuery prefixQuery = 22;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.PrefixQueryOrBuilder getPrefixQueryOrBuilder() {
if ((queryNodeCase_ == 22) && (prefixQueryBuilder_ != null)) {
return prefixQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 22) {
return (com.yelp.nrtsearch.server.grpc.PrefixQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.PrefixQuery.getDefaultInstance();
}
}
/**
* .luceneserver.PrefixQuery prefixQuery = 22;
*/
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 (!(queryNodeCase_ == 22)) {
queryNode_ = 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) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 22;
onChanged();
return prefixQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.ConstantScoreQuery, com.yelp.nrtsearch.server.grpc.ConstantScoreQuery.Builder, com.yelp.nrtsearch.server.grpc.ConstantScoreQueryOrBuilder> constantScoreQueryBuilder_;
/**
* .luceneserver.ConstantScoreQuery constantScoreQuery = 23;
* @return Whether the constantScoreQuery field is set.
*/
@java.lang.Override
public boolean hasConstantScoreQuery() {
return queryNodeCase_ == 23;
}
/**
* .luceneserver.ConstantScoreQuery constantScoreQuery = 23;
* @return The constantScoreQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.ConstantScoreQuery getConstantScoreQuery() {
if (constantScoreQueryBuilder_ == null) {
if (queryNodeCase_ == 23) {
return (com.yelp.nrtsearch.server.grpc.ConstantScoreQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.ConstantScoreQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 23) {
return constantScoreQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.ConstantScoreQuery.getDefaultInstance();
}
}
/**
* .luceneserver.ConstantScoreQuery constantScoreQuery = 23;
*/
public Builder setConstantScoreQuery(com.yelp.nrtsearch.server.grpc.ConstantScoreQuery value) {
if (constantScoreQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
constantScoreQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 23;
return this;
}
/**
* .luceneserver.ConstantScoreQuery constantScoreQuery = 23;
*/
public Builder setConstantScoreQuery(
com.yelp.nrtsearch.server.grpc.ConstantScoreQuery.Builder builderForValue) {
if (constantScoreQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
constantScoreQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 23;
return this;
}
/**
* .luceneserver.ConstantScoreQuery constantScoreQuery = 23;
*/
public Builder mergeConstantScoreQuery(com.yelp.nrtsearch.server.grpc.ConstantScoreQuery value) {
if (constantScoreQueryBuilder_ == null) {
if (queryNodeCase_ == 23 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.ConstantScoreQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.ConstantScoreQuery.newBuilder((com.yelp.nrtsearch.server.grpc.ConstantScoreQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 23) {
constantScoreQueryBuilder_.mergeFrom(value);
} else {
constantScoreQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 23;
return this;
}
/**
* .luceneserver.ConstantScoreQuery constantScoreQuery = 23;
*/
public Builder clearConstantScoreQuery() {
if (constantScoreQueryBuilder_ == null) {
if (queryNodeCase_ == 23) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 23) {
queryNodeCase_ = 0;
queryNode_ = null;
}
constantScoreQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.ConstantScoreQuery constantScoreQuery = 23;
*/
public com.yelp.nrtsearch.server.grpc.ConstantScoreQuery.Builder getConstantScoreQueryBuilder() {
return getConstantScoreQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.ConstantScoreQuery constantScoreQuery = 23;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.ConstantScoreQueryOrBuilder getConstantScoreQueryOrBuilder() {
if ((queryNodeCase_ == 23) && (constantScoreQueryBuilder_ != null)) {
return constantScoreQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 23) {
return (com.yelp.nrtsearch.server.grpc.ConstantScoreQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.ConstantScoreQuery.getDefaultInstance();
}
}
/**
* .luceneserver.ConstantScoreQuery constantScoreQuery = 23;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.ConstantScoreQuery, com.yelp.nrtsearch.server.grpc.ConstantScoreQuery.Builder, com.yelp.nrtsearch.server.grpc.ConstantScoreQueryOrBuilder>
getConstantScoreQueryFieldBuilder() {
if (constantScoreQueryBuilder_ == null) {
if (!(queryNodeCase_ == 23)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.ConstantScoreQuery.getDefaultInstance();
}
constantScoreQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.ConstantScoreQuery, com.yelp.nrtsearch.server.grpc.ConstantScoreQuery.Builder, com.yelp.nrtsearch.server.grpc.ConstantScoreQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.ConstantScoreQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 23;
onChanged();
return constantScoreQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.GeoPolygonQuery, com.yelp.nrtsearch.server.grpc.GeoPolygonQuery.Builder, com.yelp.nrtsearch.server.grpc.GeoPolygonQueryOrBuilder> geoPolygonQueryBuilder_;
/**
* .luceneserver.GeoPolygonQuery geoPolygonQuery = 24;
* @return Whether the geoPolygonQuery field is set.
*/
@java.lang.Override
public boolean hasGeoPolygonQuery() {
return queryNodeCase_ == 24;
}
/**
* .luceneserver.GeoPolygonQuery geoPolygonQuery = 24;
* @return The geoPolygonQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.GeoPolygonQuery getGeoPolygonQuery() {
if (geoPolygonQueryBuilder_ == null) {
if (queryNodeCase_ == 24) {
return (com.yelp.nrtsearch.server.grpc.GeoPolygonQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.GeoPolygonQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 24) {
return geoPolygonQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.GeoPolygonQuery.getDefaultInstance();
}
}
/**
* .luceneserver.GeoPolygonQuery geoPolygonQuery = 24;
*/
public Builder setGeoPolygonQuery(com.yelp.nrtsearch.server.grpc.GeoPolygonQuery value) {
if (geoPolygonQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
geoPolygonQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 24;
return this;
}
/**
* .luceneserver.GeoPolygonQuery geoPolygonQuery = 24;
*/
public Builder setGeoPolygonQuery(
com.yelp.nrtsearch.server.grpc.GeoPolygonQuery.Builder builderForValue) {
if (geoPolygonQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
geoPolygonQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 24;
return this;
}
/**
* .luceneserver.GeoPolygonQuery geoPolygonQuery = 24;
*/
public Builder mergeGeoPolygonQuery(com.yelp.nrtsearch.server.grpc.GeoPolygonQuery value) {
if (geoPolygonQueryBuilder_ == null) {
if (queryNodeCase_ == 24 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.GeoPolygonQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.GeoPolygonQuery.newBuilder((com.yelp.nrtsearch.server.grpc.GeoPolygonQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 24) {
geoPolygonQueryBuilder_.mergeFrom(value);
} else {
geoPolygonQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 24;
return this;
}
/**
* .luceneserver.GeoPolygonQuery geoPolygonQuery = 24;
*/
public Builder clearGeoPolygonQuery() {
if (geoPolygonQueryBuilder_ == null) {
if (queryNodeCase_ == 24) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 24) {
queryNodeCase_ = 0;
queryNode_ = null;
}
geoPolygonQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.GeoPolygonQuery geoPolygonQuery = 24;
*/
public com.yelp.nrtsearch.server.grpc.GeoPolygonQuery.Builder getGeoPolygonQueryBuilder() {
return getGeoPolygonQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.GeoPolygonQuery geoPolygonQuery = 24;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.GeoPolygonQueryOrBuilder getGeoPolygonQueryOrBuilder() {
if ((queryNodeCase_ == 24) && (geoPolygonQueryBuilder_ != null)) {
return geoPolygonQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 24) {
return (com.yelp.nrtsearch.server.grpc.GeoPolygonQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.GeoPolygonQuery.getDefaultInstance();
}
}
/**
* .luceneserver.GeoPolygonQuery geoPolygonQuery = 24;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.GeoPolygonQuery, com.yelp.nrtsearch.server.grpc.GeoPolygonQuery.Builder, com.yelp.nrtsearch.server.grpc.GeoPolygonQueryOrBuilder>
getGeoPolygonQueryFieldBuilder() {
if (geoPolygonQueryBuilder_ == null) {
if (!(queryNodeCase_ == 24)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.GeoPolygonQuery.getDefaultInstance();
}
geoPolygonQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.GeoPolygonQuery, com.yelp.nrtsearch.server.grpc.GeoPolygonQuery.Builder, com.yelp.nrtsearch.server.grpc.GeoPolygonQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.GeoPolygonQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 24;
onChanged();
return geoPolygonQueryBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.SpanQuery, com.yelp.nrtsearch.server.grpc.SpanQuery.Builder, com.yelp.nrtsearch.server.grpc.SpanQueryOrBuilder> spanQueryBuilder_;
/**
* .luceneserver.SpanQuery spanQuery = 25;
* @return Whether the spanQuery field is set.
*/
@java.lang.Override
public boolean hasSpanQuery() {
return queryNodeCase_ == 25;
}
/**
* .luceneserver.SpanQuery spanQuery = 25;
* @return The spanQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.SpanQuery getSpanQuery() {
if (spanQueryBuilder_ == null) {
if (queryNodeCase_ == 25) {
return (com.yelp.nrtsearch.server.grpc.SpanQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.SpanQuery.getDefaultInstance();
} else {
if (queryNodeCase_ == 25) {
return spanQueryBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.SpanQuery.getDefaultInstance();
}
}
/**
* .luceneserver.SpanQuery spanQuery = 25;
*/
public Builder setSpanQuery(com.yelp.nrtsearch.server.grpc.SpanQuery value) {
if (spanQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
queryNode_ = value;
onChanged();
} else {
spanQueryBuilder_.setMessage(value);
}
queryNodeCase_ = 25;
return this;
}
/**
* .luceneserver.SpanQuery spanQuery = 25;
*/
public Builder setSpanQuery(
com.yelp.nrtsearch.server.grpc.SpanQuery.Builder builderForValue) {
if (spanQueryBuilder_ == null) {
queryNode_ = builderForValue.build();
onChanged();
} else {
spanQueryBuilder_.setMessage(builderForValue.build());
}
queryNodeCase_ = 25;
return this;
}
/**
* .luceneserver.SpanQuery spanQuery = 25;
*/
public Builder mergeSpanQuery(com.yelp.nrtsearch.server.grpc.SpanQuery value) {
if (spanQueryBuilder_ == null) {
if (queryNodeCase_ == 25 &&
queryNode_ != com.yelp.nrtsearch.server.grpc.SpanQuery.getDefaultInstance()) {
queryNode_ = com.yelp.nrtsearch.server.grpc.SpanQuery.newBuilder((com.yelp.nrtsearch.server.grpc.SpanQuery) queryNode_)
.mergeFrom(value).buildPartial();
} else {
queryNode_ = value;
}
onChanged();
} else {
if (queryNodeCase_ == 25) {
spanQueryBuilder_.mergeFrom(value);
} else {
spanQueryBuilder_.setMessage(value);
}
}
queryNodeCase_ = 25;
return this;
}
/**
* .luceneserver.SpanQuery spanQuery = 25;
*/
public Builder clearSpanQuery() {
if (spanQueryBuilder_ == null) {
if (queryNodeCase_ == 25) {
queryNodeCase_ = 0;
queryNode_ = null;
onChanged();
}
} else {
if (queryNodeCase_ == 25) {
queryNodeCase_ = 0;
queryNode_ = null;
}
spanQueryBuilder_.clear();
}
return this;
}
/**
* .luceneserver.SpanQuery spanQuery = 25;
*/
public com.yelp.nrtsearch.server.grpc.SpanQuery.Builder getSpanQueryBuilder() {
return getSpanQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.SpanQuery spanQuery = 25;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.SpanQueryOrBuilder getSpanQueryOrBuilder() {
if ((queryNodeCase_ == 25) && (spanQueryBuilder_ != null)) {
return spanQueryBuilder_.getMessageOrBuilder();
} else {
if (queryNodeCase_ == 25) {
return (com.yelp.nrtsearch.server.grpc.SpanQuery) queryNode_;
}
return com.yelp.nrtsearch.server.grpc.SpanQuery.getDefaultInstance();
}
}
/**
* .luceneserver.SpanQuery spanQuery = 25;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.SpanQuery, com.yelp.nrtsearch.server.grpc.SpanQuery.Builder, com.yelp.nrtsearch.server.grpc.SpanQueryOrBuilder>
getSpanQueryFieldBuilder() {
if (spanQueryBuilder_ == null) {
if (!(queryNodeCase_ == 25)) {
queryNode_ = com.yelp.nrtsearch.server.grpc.SpanQuery.getDefaultInstance();
}
spanQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.SpanQuery, com.yelp.nrtsearch.server.grpc.SpanQuery.Builder, com.yelp.nrtsearch.server.grpc.SpanQueryOrBuilder>(
(com.yelp.nrtsearch.server.grpc.SpanQuery) queryNode_,
getParentForChildren(),
isClean());
queryNode_ = null;
}
queryNodeCase_ = 25;
onChanged();
return spanQueryBuilder_;
}
@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.Query)
}
// @@protoc_insertion_point(class_scope:luceneserver.Query)
private static final com.yelp.nrtsearch.server.grpc.Query DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.Query();
}
public static com.yelp.nrtsearch.server.grpc.Query getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Query 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.Query getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}