com.yelp.nrtsearch.server.grpc.BuildSuggestRequest 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/suggest.proto
// Protobuf Java Version: 3.25.3
package com.yelp.nrtsearch.server.grpc;
/**
* Protobuf type {@code luceneserver.BuildSuggestRequest}
*/
public final class BuildSuggestRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.BuildSuggestRequest)
BuildSuggestRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use BuildSuggestRequest.newBuilder() to construct.
private BuildSuggestRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BuildSuggestRequest() {
indexName_ = "";
suggestName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BuildSuggestRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_BuildSuggestRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_BuildSuggestRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.BuildSuggestRequest.class, com.yelp.nrtsearch.server.grpc.BuildSuggestRequest.Builder.class);
}
private int suggesterCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object suggester_;
public enum SuggesterCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
INFIXSUGGESTER(2),
ANALYZINGSUGGESTER(3),
FUZZYSUGGESTER(4),
COMPLETIONINFIXSUGGESTER(5),
FUZZYINFIXSUGGESTER(6),
SUGGESTER_NOT_SET(0);
private final int value;
private SuggesterCase(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 SuggesterCase valueOf(int value) {
return forNumber(value);
}
public static SuggesterCase forNumber(int value) {
switch (value) {
case 2: return INFIXSUGGESTER;
case 3: return ANALYZINGSUGGESTER;
case 4: return FUZZYSUGGESTER;
case 5: return COMPLETIONINFIXSUGGESTER;
case 6: return FUZZYINFIXSUGGESTER;
case 0: return SUGGESTER_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SuggesterCase
getSuggesterCase() {
return SuggesterCase.forNumber(
suggesterCase_);
}
private int sourceCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object source_;
public enum SourceCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
LOCALSOURCE(7),
NONLOCALSOURCE(8),
SOURCE_NOT_SET(0);
private final int value;
private SourceCase(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 SourceCase valueOf(int value) {
return forNumber(value);
}
public static SourceCase forNumber(int value) {
switch (value) {
case 7: return LOCALSOURCE;
case 8: return NONLOCALSOURCE;
case 0: return SOURCE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public SourceCase
getSourceCase() {
return SourceCase.forNumber(
sourceCase_);
}
public static final int INDEXNAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object indexName_ = "";
/**
*
*index name
*
*
* string indexName = 1;
* @return The indexName.
*/
@java.lang.Override
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
indexName_ = s;
return s;
}
}
/**
*
*index name
*
*
* string indexName = 1;
* @return The bytes for indexName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INFIXSUGGESTER_FIELD_NUMBER = 2;
/**
*
* A suggester that matches terms anywhere in the input text, not just as a prefix. (see @lucene:org:server.InfixSuggester)
*
*
* .luceneserver.InfixSuggester infixSuggester = 2;
* @return Whether the infixSuggester field is set.
*/
@java.lang.Override
public boolean hasInfixSuggester() {
return suggesterCase_ == 2;
}
/**
*
* A suggester that matches terms anywhere in the input text, not just as a prefix. (see @lucene:org:server.InfixSuggester)
*
*
* .luceneserver.InfixSuggester infixSuggester = 2;
* @return The infixSuggester.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.InfixSuggester getInfixSuggester() {
if (suggesterCase_ == 2) {
return (com.yelp.nrtsearch.server.grpc.InfixSuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.InfixSuggester.getDefaultInstance();
}
/**
*
* A suggester that matches terms anywhere in the input text, not just as a prefix. (see @lucene:org:server.InfixSuggester)
*
*
* .luceneserver.InfixSuggester infixSuggester = 2;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.InfixSuggesterOrBuilder getInfixSuggesterOrBuilder() {
if (suggesterCase_ == 2) {
return (com.yelp.nrtsearch.server.grpc.InfixSuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.InfixSuggester.getDefaultInstance();
}
public static final int ANALYZINGSUGGESTER_FIELD_NUMBER = 3;
/**
*
* Suggester that first analyzes the surface form, adds the analyzed form to a weighted FST, and then does the same thing at lookup time (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester
*
*
* .luceneserver.AnalyzingSuggester analyzingSuggester = 3;
* @return Whether the analyzingSuggester field is set.
*/
@java.lang.Override
public boolean hasAnalyzingSuggester() {
return suggesterCase_ == 3;
}
/**
*
* Suggester that first analyzes the surface form, adds the analyzed form to a weighted FST, and then does the same thing at lookup time (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester
*
*
* .luceneserver.AnalyzingSuggester analyzingSuggester = 3;
* @return The analyzingSuggester.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.AnalyzingSuggester getAnalyzingSuggester() {
if (suggesterCase_ == 3) {
return (com.yelp.nrtsearch.server.grpc.AnalyzingSuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.AnalyzingSuggester.getDefaultInstance();
}
/**
*
* Suggester that first analyzes the surface form, adds the analyzed form to a weighted FST, and then does the same thing at lookup time (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester
*
*
* .luceneserver.AnalyzingSuggester analyzingSuggester = 3;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.AnalyzingSuggesterOrBuilder getAnalyzingSuggesterOrBuilder() {
if (suggesterCase_ == 3) {
return (com.yelp.nrtsearch.server.grpc.AnalyzingSuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.AnalyzingSuggester.getDefaultInstance();
}
public static final int FUZZYSUGGESTER_FIELD_NUMBER = 4;
/**
*
* Implements a fuzzy AnalyzingSuggester (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.FuzzySuggester
*
*
* .luceneserver.FuzzySuggester fuzzySuggester = 4;
* @return Whether the fuzzySuggester field is set.
*/
@java.lang.Override
public boolean hasFuzzySuggester() {
return suggesterCase_ == 4;
}
/**
*
* Implements a fuzzy AnalyzingSuggester (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.FuzzySuggester
*
*
* .luceneserver.FuzzySuggester fuzzySuggester = 4;
* @return The fuzzySuggester.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FuzzySuggester getFuzzySuggester() {
if (suggesterCase_ == 4) {
return (com.yelp.nrtsearch.server.grpc.FuzzySuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.FuzzySuggester.getDefaultInstance();
}
/**
*
* Implements a fuzzy AnalyzingSuggester (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.FuzzySuggester
*
*
* .luceneserver.FuzzySuggester fuzzySuggester = 4;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FuzzySuggesterOrBuilder getFuzzySuggesterOrBuilder() {
if (suggesterCase_ == 4) {
return (com.yelp.nrtsearch.server.grpc.FuzzySuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.FuzzySuggester.getDefaultInstance();
}
public static final int COMPLETIONINFIXSUGGESTER_FIELD_NUMBER = 5;
/**
*
* A suggester that matches terms anywhere in the input text. The implementation is different from InfixSuggester
*
*
* .luceneserver.CompletionInfixSuggester completionInfixSuggester = 5;
* @return Whether the completionInfixSuggester field is set.
*/
@java.lang.Override
public boolean hasCompletionInfixSuggester() {
return suggesterCase_ == 5;
}
/**
*
* A suggester that matches terms anywhere in the input text. The implementation is different from InfixSuggester
*
*
* .luceneserver.CompletionInfixSuggester completionInfixSuggester = 5;
* @return The completionInfixSuggester.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester getCompletionInfixSuggester() {
if (suggesterCase_ == 5) {
return (com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.getDefaultInstance();
}
/**
*
* A suggester that matches terms anywhere in the input text. The implementation is different from InfixSuggester
*
*
* .luceneserver.CompletionInfixSuggester completionInfixSuggester = 5;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CompletionInfixSuggesterOrBuilder getCompletionInfixSuggesterOrBuilder() {
if (suggesterCase_ == 5) {
return (com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.getDefaultInstance();
}
public static final int FUZZYINFIXSUGGESTER_FIELD_NUMBER = 6;
/**
*
* A suggester that matches fuzzy terms in the input text.
*
*
* .luceneserver.FuzzyInfixSuggester fuzzyInfixSuggester = 6;
* @return Whether the fuzzyInfixSuggester field is set.
*/
@java.lang.Override
public boolean hasFuzzyInfixSuggester() {
return suggesterCase_ == 6;
}
/**
*
* A suggester that matches fuzzy terms in the input text.
*
*
* .luceneserver.FuzzyInfixSuggester fuzzyInfixSuggester = 6;
* @return The fuzzyInfixSuggester.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester getFuzzyInfixSuggester() {
if (suggesterCase_ == 6) {
return (com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester.getDefaultInstance();
}
/**
*
* A suggester that matches fuzzy terms in the input text.
*
*
* .luceneserver.FuzzyInfixSuggester fuzzyInfixSuggester = 6;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggesterOrBuilder getFuzzyInfixSuggesterOrBuilder() {
if (suggesterCase_ == 6) {
return (com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester.getDefaultInstance();
}
public static final int LOCALSOURCE_FIELD_NUMBER = 7;
/**
* .luceneserver.SuggestLocalSource localSource = 7;
* @return Whether the localSource field is set.
*/
@java.lang.Override
public boolean hasLocalSource() {
return sourceCase_ == 7;
}
/**
* .luceneserver.SuggestLocalSource localSource = 7;
* @return The localSource.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.SuggestLocalSource getLocalSource() {
if (sourceCase_ == 7) {
return (com.yelp.nrtsearch.server.grpc.SuggestLocalSource) source_;
}
return com.yelp.nrtsearch.server.grpc.SuggestLocalSource.getDefaultInstance();
}
/**
* .luceneserver.SuggestLocalSource localSource = 7;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.SuggestLocalSourceOrBuilder getLocalSourceOrBuilder() {
if (sourceCase_ == 7) {
return (com.yelp.nrtsearch.server.grpc.SuggestLocalSource) source_;
}
return com.yelp.nrtsearch.server.grpc.SuggestLocalSource.getDefaultInstance();
}
public static final int NONLOCALSOURCE_FIELD_NUMBER = 8;
/**
* .luceneserver.SuggestNonLocalSource nonLocalSource = 8;
* @return Whether the nonLocalSource field is set.
*/
@java.lang.Override
public boolean hasNonLocalSource() {
return sourceCase_ == 8;
}
/**
* .luceneserver.SuggestNonLocalSource nonLocalSource = 8;
* @return The nonLocalSource.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource getNonLocalSource() {
if (sourceCase_ == 8) {
return (com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource) source_;
}
return com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.getDefaultInstance();
}
/**
* .luceneserver.SuggestNonLocalSource nonLocalSource = 8;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.SuggestNonLocalSourceOrBuilder getNonLocalSourceOrBuilder() {
if (sourceCase_ == 8) {
return (com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource) source_;
}
return com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.getDefaultInstance();
}
public static final int SUGGESTNAME_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object suggestName_ = "";
/**
*
*Unique name for this suggest build.
*
*
* string suggestName = 9;
* @return The suggestName.
*/
@java.lang.Override
public java.lang.String getSuggestName() {
java.lang.Object ref = suggestName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
suggestName_ = s;
return s;
}
}
/**
*
*Unique name for this suggest build.
*
*
* string suggestName = 9;
* @return The bytes for suggestName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSuggestNameBytes() {
java.lang.Object ref = suggestName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
suggestName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, indexName_);
}
if (suggesterCase_ == 2) {
output.writeMessage(2, (com.yelp.nrtsearch.server.grpc.InfixSuggester) suggester_);
}
if (suggesterCase_ == 3) {
output.writeMessage(3, (com.yelp.nrtsearch.server.grpc.AnalyzingSuggester) suggester_);
}
if (suggesterCase_ == 4) {
output.writeMessage(4, (com.yelp.nrtsearch.server.grpc.FuzzySuggester) suggester_);
}
if (suggesterCase_ == 5) {
output.writeMessage(5, (com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester) suggester_);
}
if (suggesterCase_ == 6) {
output.writeMessage(6, (com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester) suggester_);
}
if (sourceCase_ == 7) {
output.writeMessage(7, (com.yelp.nrtsearch.server.grpc.SuggestLocalSource) source_);
}
if (sourceCase_ == 8) {
output.writeMessage(8, (com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource) source_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, suggestName_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, indexName_);
}
if (suggesterCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.yelp.nrtsearch.server.grpc.InfixSuggester) suggester_);
}
if (suggesterCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.yelp.nrtsearch.server.grpc.AnalyzingSuggester) suggester_);
}
if (suggesterCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.yelp.nrtsearch.server.grpc.FuzzySuggester) suggester_);
}
if (suggesterCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester) suggester_);
}
if (suggesterCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester) suggester_);
}
if (sourceCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (com.yelp.nrtsearch.server.grpc.SuggestLocalSource) source_);
}
if (sourceCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource) source_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(suggestName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, suggestName_);
}
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.BuildSuggestRequest)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.BuildSuggestRequest other = (com.yelp.nrtsearch.server.grpc.BuildSuggestRequest) obj;
if (!getIndexName()
.equals(other.getIndexName())) return false;
if (!getSuggestName()
.equals(other.getSuggestName())) return false;
if (!getSuggesterCase().equals(other.getSuggesterCase())) return false;
switch (suggesterCase_) {
case 2:
if (!getInfixSuggester()
.equals(other.getInfixSuggester())) return false;
break;
case 3:
if (!getAnalyzingSuggester()
.equals(other.getAnalyzingSuggester())) return false;
break;
case 4:
if (!getFuzzySuggester()
.equals(other.getFuzzySuggester())) return false;
break;
case 5:
if (!getCompletionInfixSuggester()
.equals(other.getCompletionInfixSuggester())) return false;
break;
case 6:
if (!getFuzzyInfixSuggester()
.equals(other.getFuzzyInfixSuggester())) return false;
break;
case 0:
default:
}
if (!getSourceCase().equals(other.getSourceCase())) return false;
switch (sourceCase_) {
case 7:
if (!getLocalSource()
.equals(other.getLocalSource())) return false;
break;
case 8:
if (!getNonLocalSource()
.equals(other.getNonLocalSource())) 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) + INDEXNAME_FIELD_NUMBER;
hash = (53 * hash) + getIndexName().hashCode();
hash = (37 * hash) + SUGGESTNAME_FIELD_NUMBER;
hash = (53 * hash) + getSuggestName().hashCode();
switch (suggesterCase_) {
case 2:
hash = (37 * hash) + INFIXSUGGESTER_FIELD_NUMBER;
hash = (53 * hash) + getInfixSuggester().hashCode();
break;
case 3:
hash = (37 * hash) + ANALYZINGSUGGESTER_FIELD_NUMBER;
hash = (53 * hash) + getAnalyzingSuggester().hashCode();
break;
case 4:
hash = (37 * hash) + FUZZYSUGGESTER_FIELD_NUMBER;
hash = (53 * hash) + getFuzzySuggester().hashCode();
break;
case 5:
hash = (37 * hash) + COMPLETIONINFIXSUGGESTER_FIELD_NUMBER;
hash = (53 * hash) + getCompletionInfixSuggester().hashCode();
break;
case 6:
hash = (37 * hash) + FUZZYINFIXSUGGESTER_FIELD_NUMBER;
hash = (53 * hash) + getFuzzyInfixSuggester().hashCode();
break;
case 0:
default:
}
switch (sourceCase_) {
case 7:
hash = (37 * hash) + LOCALSOURCE_FIELD_NUMBER;
hash = (53 * hash) + getLocalSource().hashCode();
break;
case 8:
hash = (37 * hash) + NONLOCALSOURCE_FIELD_NUMBER;
hash = (53 * hash) + getNonLocalSource().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.BuildSuggestRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.BuildSuggestRequest 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.BuildSuggestRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.BuildSuggestRequest 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.BuildSuggestRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.BuildSuggestRequest 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.BuildSuggestRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.BuildSuggestRequest 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.BuildSuggestRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.BuildSuggestRequest 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.BuildSuggestRequest 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.BuildSuggestRequest 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.BuildSuggestRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code luceneserver.BuildSuggestRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.BuildSuggestRequest)
com.yelp.nrtsearch.server.grpc.BuildSuggestRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_BuildSuggestRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_BuildSuggestRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.BuildSuggestRequest.class, com.yelp.nrtsearch.server.grpc.BuildSuggestRequest.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.BuildSuggestRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
indexName_ = "";
if (infixSuggesterBuilder_ != null) {
infixSuggesterBuilder_.clear();
}
if (analyzingSuggesterBuilder_ != null) {
analyzingSuggesterBuilder_.clear();
}
if (fuzzySuggesterBuilder_ != null) {
fuzzySuggesterBuilder_.clear();
}
if (completionInfixSuggesterBuilder_ != null) {
completionInfixSuggesterBuilder_.clear();
}
if (fuzzyInfixSuggesterBuilder_ != null) {
fuzzyInfixSuggesterBuilder_.clear();
}
if (localSourceBuilder_ != null) {
localSourceBuilder_.clear();
}
if (nonLocalSourceBuilder_ != null) {
nonLocalSourceBuilder_.clear();
}
suggestName_ = "";
suggesterCase_ = 0;
suggester_ = null;
sourceCase_ = 0;
source_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_BuildSuggestRequest_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.BuildSuggestRequest getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.BuildSuggestRequest.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.BuildSuggestRequest build() {
com.yelp.nrtsearch.server.grpc.BuildSuggestRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.BuildSuggestRequest buildPartial() {
com.yelp.nrtsearch.server.grpc.BuildSuggestRequest result = new com.yelp.nrtsearch.server.grpc.BuildSuggestRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.BuildSuggestRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.indexName_ = indexName_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.suggestName_ = suggestName_;
}
}
private void buildPartialOneofs(com.yelp.nrtsearch.server.grpc.BuildSuggestRequest result) {
result.suggesterCase_ = suggesterCase_;
result.suggester_ = this.suggester_;
if (suggesterCase_ == 2 &&
infixSuggesterBuilder_ != null) {
result.suggester_ = infixSuggesterBuilder_.build();
}
if (suggesterCase_ == 3 &&
analyzingSuggesterBuilder_ != null) {
result.suggester_ = analyzingSuggesterBuilder_.build();
}
if (suggesterCase_ == 4 &&
fuzzySuggesterBuilder_ != null) {
result.suggester_ = fuzzySuggesterBuilder_.build();
}
if (suggesterCase_ == 5 &&
completionInfixSuggesterBuilder_ != null) {
result.suggester_ = completionInfixSuggesterBuilder_.build();
}
if (suggesterCase_ == 6 &&
fuzzyInfixSuggesterBuilder_ != null) {
result.suggester_ = fuzzyInfixSuggesterBuilder_.build();
}
result.sourceCase_ = sourceCase_;
result.source_ = this.source_;
if (sourceCase_ == 7 &&
localSourceBuilder_ != null) {
result.source_ = localSourceBuilder_.build();
}
if (sourceCase_ == 8 &&
nonLocalSourceBuilder_ != null) {
result.source_ = nonLocalSourceBuilder_.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.BuildSuggestRequest) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.BuildSuggestRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.BuildSuggestRequest other) {
if (other == com.yelp.nrtsearch.server.grpc.BuildSuggestRequest.getDefaultInstance()) return this;
if (!other.getIndexName().isEmpty()) {
indexName_ = other.indexName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getSuggestName().isEmpty()) {
suggestName_ = other.suggestName_;
bitField0_ |= 0x00000100;
onChanged();
}
switch (other.getSuggesterCase()) {
case INFIXSUGGESTER: {
mergeInfixSuggester(other.getInfixSuggester());
break;
}
case ANALYZINGSUGGESTER: {
mergeAnalyzingSuggester(other.getAnalyzingSuggester());
break;
}
case FUZZYSUGGESTER: {
mergeFuzzySuggester(other.getFuzzySuggester());
break;
}
case COMPLETIONINFIXSUGGESTER: {
mergeCompletionInfixSuggester(other.getCompletionInfixSuggester());
break;
}
case FUZZYINFIXSUGGESTER: {
mergeFuzzyInfixSuggester(other.getFuzzyInfixSuggester());
break;
}
case SUGGESTER_NOT_SET: {
break;
}
}
switch (other.getSourceCase()) {
case LOCALSOURCE: {
mergeLocalSource(other.getLocalSource());
break;
}
case NONLOCALSOURCE: {
mergeNonLocalSource(other.getNonLocalSource());
break;
}
case SOURCE_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
indexName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getInfixSuggesterFieldBuilder().getBuilder(),
extensionRegistry);
suggesterCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getAnalyzingSuggesterFieldBuilder().getBuilder(),
extensionRegistry);
suggesterCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getFuzzySuggesterFieldBuilder().getBuilder(),
extensionRegistry);
suggesterCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getCompletionInfixSuggesterFieldBuilder().getBuilder(),
extensionRegistry);
suggesterCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getFuzzyInfixSuggesterFieldBuilder().getBuilder(),
extensionRegistry);
suggesterCase_ = 6;
break;
} // case 50
case 58: {
input.readMessage(
getLocalSourceFieldBuilder().getBuilder(),
extensionRegistry);
sourceCase_ = 7;
break;
} // case 58
case 66: {
input.readMessage(
getNonLocalSourceFieldBuilder().getBuilder(),
extensionRegistry);
sourceCase_ = 8;
break;
} // case 66
case 74: {
suggestName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000100;
break;
} // case 74
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 suggesterCase_ = 0;
private java.lang.Object suggester_;
public SuggesterCase
getSuggesterCase() {
return SuggesterCase.forNumber(
suggesterCase_);
}
public Builder clearSuggester() {
suggesterCase_ = 0;
suggester_ = null;
onChanged();
return this;
}
private int sourceCase_ = 0;
private java.lang.Object source_;
public SourceCase
getSourceCase() {
return SourceCase.forNumber(
sourceCase_);
}
public Builder clearSource() {
sourceCase_ = 0;
source_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object indexName_ = "";
/**
*
*index name
*
*
* string indexName = 1;
* @return The indexName.
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
indexName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*index name
*
*
* string indexName = 1;
* @return The bytes for indexName.
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*index name
*
*
* string indexName = 1;
* @param value The indexName to set.
* @return This builder for chaining.
*/
public Builder setIndexName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
indexName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*index name
*
*
* string indexName = 1;
* @return This builder for chaining.
*/
public Builder clearIndexName() {
indexName_ = getDefaultInstance().getIndexName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*index name
*
*
* string indexName = 1;
* @param value The bytes for indexName to set.
* @return This builder for chaining.
*/
public Builder setIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
indexName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.InfixSuggester, com.yelp.nrtsearch.server.grpc.InfixSuggester.Builder, com.yelp.nrtsearch.server.grpc.InfixSuggesterOrBuilder> infixSuggesterBuilder_;
/**
*
* A suggester that matches terms anywhere in the input text, not just as a prefix. (see @lucene:org:server.InfixSuggester)
*
*
* .luceneserver.InfixSuggester infixSuggester = 2;
* @return Whether the infixSuggester field is set.
*/
@java.lang.Override
public boolean hasInfixSuggester() {
return suggesterCase_ == 2;
}
/**
*
* A suggester that matches terms anywhere in the input text, not just as a prefix. (see @lucene:org:server.InfixSuggester)
*
*
* .luceneserver.InfixSuggester infixSuggester = 2;
* @return The infixSuggester.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.InfixSuggester getInfixSuggester() {
if (infixSuggesterBuilder_ == null) {
if (suggesterCase_ == 2) {
return (com.yelp.nrtsearch.server.grpc.InfixSuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.InfixSuggester.getDefaultInstance();
} else {
if (suggesterCase_ == 2) {
return infixSuggesterBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.InfixSuggester.getDefaultInstance();
}
}
/**
*
* A suggester that matches terms anywhere in the input text, not just as a prefix. (see @lucene:org:server.InfixSuggester)
*
*
* .luceneserver.InfixSuggester infixSuggester = 2;
*/
public Builder setInfixSuggester(com.yelp.nrtsearch.server.grpc.InfixSuggester value) {
if (infixSuggesterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
suggester_ = value;
onChanged();
} else {
infixSuggesterBuilder_.setMessage(value);
}
suggesterCase_ = 2;
return this;
}
/**
*
* A suggester that matches terms anywhere in the input text, not just as a prefix. (see @lucene:org:server.InfixSuggester)
*
*
* .luceneserver.InfixSuggester infixSuggester = 2;
*/
public Builder setInfixSuggester(
com.yelp.nrtsearch.server.grpc.InfixSuggester.Builder builderForValue) {
if (infixSuggesterBuilder_ == null) {
suggester_ = builderForValue.build();
onChanged();
} else {
infixSuggesterBuilder_.setMessage(builderForValue.build());
}
suggesterCase_ = 2;
return this;
}
/**
*
* A suggester that matches terms anywhere in the input text, not just as a prefix. (see @lucene:org:server.InfixSuggester)
*
*
* .luceneserver.InfixSuggester infixSuggester = 2;
*/
public Builder mergeInfixSuggester(com.yelp.nrtsearch.server.grpc.InfixSuggester value) {
if (infixSuggesterBuilder_ == null) {
if (suggesterCase_ == 2 &&
suggester_ != com.yelp.nrtsearch.server.grpc.InfixSuggester.getDefaultInstance()) {
suggester_ = com.yelp.nrtsearch.server.grpc.InfixSuggester.newBuilder((com.yelp.nrtsearch.server.grpc.InfixSuggester) suggester_)
.mergeFrom(value).buildPartial();
} else {
suggester_ = value;
}
onChanged();
} else {
if (suggesterCase_ == 2) {
infixSuggesterBuilder_.mergeFrom(value);
} else {
infixSuggesterBuilder_.setMessage(value);
}
}
suggesterCase_ = 2;
return this;
}
/**
*
* A suggester that matches terms anywhere in the input text, not just as a prefix. (see @lucene:org:server.InfixSuggester)
*
*
* .luceneserver.InfixSuggester infixSuggester = 2;
*/
public Builder clearInfixSuggester() {
if (infixSuggesterBuilder_ == null) {
if (suggesterCase_ == 2) {
suggesterCase_ = 0;
suggester_ = null;
onChanged();
}
} else {
if (suggesterCase_ == 2) {
suggesterCase_ = 0;
suggester_ = null;
}
infixSuggesterBuilder_.clear();
}
return this;
}
/**
*
* A suggester that matches terms anywhere in the input text, not just as a prefix. (see @lucene:org:server.InfixSuggester)
*
*
* .luceneserver.InfixSuggester infixSuggester = 2;
*/
public com.yelp.nrtsearch.server.grpc.InfixSuggester.Builder getInfixSuggesterBuilder() {
return getInfixSuggesterFieldBuilder().getBuilder();
}
/**
*
* A suggester that matches terms anywhere in the input text, not just as a prefix. (see @lucene:org:server.InfixSuggester)
*
*
* .luceneserver.InfixSuggester infixSuggester = 2;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.InfixSuggesterOrBuilder getInfixSuggesterOrBuilder() {
if ((suggesterCase_ == 2) && (infixSuggesterBuilder_ != null)) {
return infixSuggesterBuilder_.getMessageOrBuilder();
} else {
if (suggesterCase_ == 2) {
return (com.yelp.nrtsearch.server.grpc.InfixSuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.InfixSuggester.getDefaultInstance();
}
}
/**
*
* A suggester that matches terms anywhere in the input text, not just as a prefix. (see @lucene:org:server.InfixSuggester)
*
*
* .luceneserver.InfixSuggester infixSuggester = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.InfixSuggester, com.yelp.nrtsearch.server.grpc.InfixSuggester.Builder, com.yelp.nrtsearch.server.grpc.InfixSuggesterOrBuilder>
getInfixSuggesterFieldBuilder() {
if (infixSuggesterBuilder_ == null) {
if (!(suggesterCase_ == 2)) {
suggester_ = com.yelp.nrtsearch.server.grpc.InfixSuggester.getDefaultInstance();
}
infixSuggesterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.InfixSuggester, com.yelp.nrtsearch.server.grpc.InfixSuggester.Builder, com.yelp.nrtsearch.server.grpc.InfixSuggesterOrBuilder>(
(com.yelp.nrtsearch.server.grpc.InfixSuggester) suggester_,
getParentForChildren(),
isClean());
suggester_ = null;
}
suggesterCase_ = 2;
onChanged();
return infixSuggesterBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.AnalyzingSuggester, com.yelp.nrtsearch.server.grpc.AnalyzingSuggester.Builder, com.yelp.nrtsearch.server.grpc.AnalyzingSuggesterOrBuilder> analyzingSuggesterBuilder_;
/**
*
* Suggester that first analyzes the surface form, adds the analyzed form to a weighted FST, and then does the same thing at lookup time (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester
*
*
* .luceneserver.AnalyzingSuggester analyzingSuggester = 3;
* @return Whether the analyzingSuggester field is set.
*/
@java.lang.Override
public boolean hasAnalyzingSuggester() {
return suggesterCase_ == 3;
}
/**
*
* Suggester that first analyzes the surface form, adds the analyzed form to a weighted FST, and then does the same thing at lookup time (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester
*
*
* .luceneserver.AnalyzingSuggester analyzingSuggester = 3;
* @return The analyzingSuggester.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.AnalyzingSuggester getAnalyzingSuggester() {
if (analyzingSuggesterBuilder_ == null) {
if (suggesterCase_ == 3) {
return (com.yelp.nrtsearch.server.grpc.AnalyzingSuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.AnalyzingSuggester.getDefaultInstance();
} else {
if (suggesterCase_ == 3) {
return analyzingSuggesterBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.AnalyzingSuggester.getDefaultInstance();
}
}
/**
*
* Suggester that first analyzes the surface form, adds the analyzed form to a weighted FST, and then does the same thing at lookup time (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester
*
*
* .luceneserver.AnalyzingSuggester analyzingSuggester = 3;
*/
public Builder setAnalyzingSuggester(com.yelp.nrtsearch.server.grpc.AnalyzingSuggester value) {
if (analyzingSuggesterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
suggester_ = value;
onChanged();
} else {
analyzingSuggesterBuilder_.setMessage(value);
}
suggesterCase_ = 3;
return this;
}
/**
*
* Suggester that first analyzes the surface form, adds the analyzed form to a weighted FST, and then does the same thing at lookup time (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester
*
*
* .luceneserver.AnalyzingSuggester analyzingSuggester = 3;
*/
public Builder setAnalyzingSuggester(
com.yelp.nrtsearch.server.grpc.AnalyzingSuggester.Builder builderForValue) {
if (analyzingSuggesterBuilder_ == null) {
suggester_ = builderForValue.build();
onChanged();
} else {
analyzingSuggesterBuilder_.setMessage(builderForValue.build());
}
suggesterCase_ = 3;
return this;
}
/**
*
* Suggester that first analyzes the surface form, adds the analyzed form to a weighted FST, and then does the same thing at lookup time (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester
*
*
* .luceneserver.AnalyzingSuggester analyzingSuggester = 3;
*/
public Builder mergeAnalyzingSuggester(com.yelp.nrtsearch.server.grpc.AnalyzingSuggester value) {
if (analyzingSuggesterBuilder_ == null) {
if (suggesterCase_ == 3 &&
suggester_ != com.yelp.nrtsearch.server.grpc.AnalyzingSuggester.getDefaultInstance()) {
suggester_ = com.yelp.nrtsearch.server.grpc.AnalyzingSuggester.newBuilder((com.yelp.nrtsearch.server.grpc.AnalyzingSuggester) suggester_)
.mergeFrom(value).buildPartial();
} else {
suggester_ = value;
}
onChanged();
} else {
if (suggesterCase_ == 3) {
analyzingSuggesterBuilder_.mergeFrom(value);
} else {
analyzingSuggesterBuilder_.setMessage(value);
}
}
suggesterCase_ = 3;
return this;
}
/**
*
* Suggester that first analyzes the surface form, adds the analyzed form to a weighted FST, and then does the same thing at lookup time (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester
*
*
* .luceneserver.AnalyzingSuggester analyzingSuggester = 3;
*/
public Builder clearAnalyzingSuggester() {
if (analyzingSuggesterBuilder_ == null) {
if (suggesterCase_ == 3) {
suggesterCase_ = 0;
suggester_ = null;
onChanged();
}
} else {
if (suggesterCase_ == 3) {
suggesterCase_ = 0;
suggester_ = null;
}
analyzingSuggesterBuilder_.clear();
}
return this;
}
/**
*
* Suggester that first analyzes the surface form, adds the analyzed form to a weighted FST, and then does the same thing at lookup time (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester
*
*
* .luceneserver.AnalyzingSuggester analyzingSuggester = 3;
*/
public com.yelp.nrtsearch.server.grpc.AnalyzingSuggester.Builder getAnalyzingSuggesterBuilder() {
return getAnalyzingSuggesterFieldBuilder().getBuilder();
}
/**
*
* Suggester that first analyzes the surface form, adds the analyzed form to a weighted FST, and then does the same thing at lookup time (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester
*
*
* .luceneserver.AnalyzingSuggester analyzingSuggester = 3;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.AnalyzingSuggesterOrBuilder getAnalyzingSuggesterOrBuilder() {
if ((suggesterCase_ == 3) && (analyzingSuggesterBuilder_ != null)) {
return analyzingSuggesterBuilder_.getMessageOrBuilder();
} else {
if (suggesterCase_ == 3) {
return (com.yelp.nrtsearch.server.grpc.AnalyzingSuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.AnalyzingSuggester.getDefaultInstance();
}
}
/**
*
* Suggester that first analyzes the surface form, adds the analyzed form to a weighted FST, and then does the same thing at lookup time (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester
*
*
* .luceneserver.AnalyzingSuggester analyzingSuggester = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.AnalyzingSuggester, com.yelp.nrtsearch.server.grpc.AnalyzingSuggester.Builder, com.yelp.nrtsearch.server.grpc.AnalyzingSuggesterOrBuilder>
getAnalyzingSuggesterFieldBuilder() {
if (analyzingSuggesterBuilder_ == null) {
if (!(suggesterCase_ == 3)) {
suggester_ = com.yelp.nrtsearch.server.grpc.AnalyzingSuggester.getDefaultInstance();
}
analyzingSuggesterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.AnalyzingSuggester, com.yelp.nrtsearch.server.grpc.AnalyzingSuggester.Builder, com.yelp.nrtsearch.server.grpc.AnalyzingSuggesterOrBuilder>(
(com.yelp.nrtsearch.server.grpc.AnalyzingSuggester) suggester_,
getParentForChildren(),
isClean());
suggester_ = null;
}
suggesterCase_ = 3;
onChanged();
return analyzingSuggesterBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FuzzySuggester, com.yelp.nrtsearch.server.grpc.FuzzySuggester.Builder, com.yelp.nrtsearch.server.grpc.FuzzySuggesterOrBuilder> fuzzySuggesterBuilder_;
/**
*
* Implements a fuzzy AnalyzingSuggester (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.FuzzySuggester
*
*
* .luceneserver.FuzzySuggester fuzzySuggester = 4;
* @return Whether the fuzzySuggester field is set.
*/
@java.lang.Override
public boolean hasFuzzySuggester() {
return suggesterCase_ == 4;
}
/**
*
* Implements a fuzzy AnalyzingSuggester (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.FuzzySuggester
*
*
* .luceneserver.FuzzySuggester fuzzySuggester = 4;
* @return The fuzzySuggester.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FuzzySuggester getFuzzySuggester() {
if (fuzzySuggesterBuilder_ == null) {
if (suggesterCase_ == 4) {
return (com.yelp.nrtsearch.server.grpc.FuzzySuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.FuzzySuggester.getDefaultInstance();
} else {
if (suggesterCase_ == 4) {
return fuzzySuggesterBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.FuzzySuggester.getDefaultInstance();
}
}
/**
*
* Implements a fuzzy AnalyzingSuggester (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.FuzzySuggester
*
*
* .luceneserver.FuzzySuggester fuzzySuggester = 4;
*/
public Builder setFuzzySuggester(com.yelp.nrtsearch.server.grpc.FuzzySuggester value) {
if (fuzzySuggesterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
suggester_ = value;
onChanged();
} else {
fuzzySuggesterBuilder_.setMessage(value);
}
suggesterCase_ = 4;
return this;
}
/**
*
* Implements a fuzzy AnalyzingSuggester (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.FuzzySuggester
*
*
* .luceneserver.FuzzySuggester fuzzySuggester = 4;
*/
public Builder setFuzzySuggester(
com.yelp.nrtsearch.server.grpc.FuzzySuggester.Builder builderForValue) {
if (fuzzySuggesterBuilder_ == null) {
suggester_ = builderForValue.build();
onChanged();
} else {
fuzzySuggesterBuilder_.setMessage(builderForValue.build());
}
suggesterCase_ = 4;
return this;
}
/**
*
* Implements a fuzzy AnalyzingSuggester (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.FuzzySuggester
*
*
* .luceneserver.FuzzySuggester fuzzySuggester = 4;
*/
public Builder mergeFuzzySuggester(com.yelp.nrtsearch.server.grpc.FuzzySuggester value) {
if (fuzzySuggesterBuilder_ == null) {
if (suggesterCase_ == 4 &&
suggester_ != com.yelp.nrtsearch.server.grpc.FuzzySuggester.getDefaultInstance()) {
suggester_ = com.yelp.nrtsearch.server.grpc.FuzzySuggester.newBuilder((com.yelp.nrtsearch.server.grpc.FuzzySuggester) suggester_)
.mergeFrom(value).buildPartial();
} else {
suggester_ = value;
}
onChanged();
} else {
if (suggesterCase_ == 4) {
fuzzySuggesterBuilder_.mergeFrom(value);
} else {
fuzzySuggesterBuilder_.setMessage(value);
}
}
suggesterCase_ = 4;
return this;
}
/**
*
* Implements a fuzzy AnalyzingSuggester (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.FuzzySuggester
*
*
* .luceneserver.FuzzySuggester fuzzySuggester = 4;
*/
public Builder clearFuzzySuggester() {
if (fuzzySuggesterBuilder_ == null) {
if (suggesterCase_ == 4) {
suggesterCase_ = 0;
suggester_ = null;
onChanged();
}
} else {
if (suggesterCase_ == 4) {
suggesterCase_ = 0;
suggester_ = null;
}
fuzzySuggesterBuilder_.clear();
}
return this;
}
/**
*
* Implements a fuzzy AnalyzingSuggester (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.FuzzySuggester
*
*
* .luceneserver.FuzzySuggester fuzzySuggester = 4;
*/
public com.yelp.nrtsearch.server.grpc.FuzzySuggester.Builder getFuzzySuggesterBuilder() {
return getFuzzySuggesterFieldBuilder().getBuilder();
}
/**
*
* Implements a fuzzy AnalyzingSuggester (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.FuzzySuggester
*
*
* .luceneserver.FuzzySuggester fuzzySuggester = 4;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FuzzySuggesterOrBuilder getFuzzySuggesterOrBuilder() {
if ((suggesterCase_ == 4) && (fuzzySuggesterBuilder_ != null)) {
return fuzzySuggesterBuilder_.getMessageOrBuilder();
} else {
if (suggesterCase_ == 4) {
return (com.yelp.nrtsearch.server.grpc.FuzzySuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.FuzzySuggester.getDefaultInstance();
}
}
/**
*
* Implements a fuzzy AnalyzingSuggester (see @lucene:suggest:org.apache.lucene.search.suggest.analyzing.FuzzySuggester
*
*
* .luceneserver.FuzzySuggester fuzzySuggester = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FuzzySuggester, com.yelp.nrtsearch.server.grpc.FuzzySuggester.Builder, com.yelp.nrtsearch.server.grpc.FuzzySuggesterOrBuilder>
getFuzzySuggesterFieldBuilder() {
if (fuzzySuggesterBuilder_ == null) {
if (!(suggesterCase_ == 4)) {
suggester_ = com.yelp.nrtsearch.server.grpc.FuzzySuggester.getDefaultInstance();
}
fuzzySuggesterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FuzzySuggester, com.yelp.nrtsearch.server.grpc.FuzzySuggester.Builder, com.yelp.nrtsearch.server.grpc.FuzzySuggesterOrBuilder>(
(com.yelp.nrtsearch.server.grpc.FuzzySuggester) suggester_,
getParentForChildren(),
isClean());
suggester_ = null;
}
suggesterCase_ = 4;
onChanged();
return fuzzySuggesterBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester, com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.Builder, com.yelp.nrtsearch.server.grpc.CompletionInfixSuggesterOrBuilder> completionInfixSuggesterBuilder_;
/**
*
* A suggester that matches terms anywhere in the input text. The implementation is different from InfixSuggester
*
*
* .luceneserver.CompletionInfixSuggester completionInfixSuggester = 5;
* @return Whether the completionInfixSuggester field is set.
*/
@java.lang.Override
public boolean hasCompletionInfixSuggester() {
return suggesterCase_ == 5;
}
/**
*
* A suggester that matches terms anywhere in the input text. The implementation is different from InfixSuggester
*
*
* .luceneserver.CompletionInfixSuggester completionInfixSuggester = 5;
* @return The completionInfixSuggester.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester getCompletionInfixSuggester() {
if (completionInfixSuggesterBuilder_ == null) {
if (suggesterCase_ == 5) {
return (com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.getDefaultInstance();
} else {
if (suggesterCase_ == 5) {
return completionInfixSuggesterBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.getDefaultInstance();
}
}
/**
*
* A suggester that matches terms anywhere in the input text. The implementation is different from InfixSuggester
*
*
* .luceneserver.CompletionInfixSuggester completionInfixSuggester = 5;
*/
public Builder setCompletionInfixSuggester(com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester value) {
if (completionInfixSuggesterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
suggester_ = value;
onChanged();
} else {
completionInfixSuggesterBuilder_.setMessage(value);
}
suggesterCase_ = 5;
return this;
}
/**
*
* A suggester that matches terms anywhere in the input text. The implementation is different from InfixSuggester
*
*
* .luceneserver.CompletionInfixSuggester completionInfixSuggester = 5;
*/
public Builder setCompletionInfixSuggester(
com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.Builder builderForValue) {
if (completionInfixSuggesterBuilder_ == null) {
suggester_ = builderForValue.build();
onChanged();
} else {
completionInfixSuggesterBuilder_.setMessage(builderForValue.build());
}
suggesterCase_ = 5;
return this;
}
/**
*
* A suggester that matches terms anywhere in the input text. The implementation is different from InfixSuggester
*
*
* .luceneserver.CompletionInfixSuggester completionInfixSuggester = 5;
*/
public Builder mergeCompletionInfixSuggester(com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester value) {
if (completionInfixSuggesterBuilder_ == null) {
if (suggesterCase_ == 5 &&
suggester_ != com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.getDefaultInstance()) {
suggester_ = com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.newBuilder((com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester) suggester_)
.mergeFrom(value).buildPartial();
} else {
suggester_ = value;
}
onChanged();
} else {
if (suggesterCase_ == 5) {
completionInfixSuggesterBuilder_.mergeFrom(value);
} else {
completionInfixSuggesterBuilder_.setMessage(value);
}
}
suggesterCase_ = 5;
return this;
}
/**
*
* A suggester that matches terms anywhere in the input text. The implementation is different from InfixSuggester
*
*
* .luceneserver.CompletionInfixSuggester completionInfixSuggester = 5;
*/
public Builder clearCompletionInfixSuggester() {
if (completionInfixSuggesterBuilder_ == null) {
if (suggesterCase_ == 5) {
suggesterCase_ = 0;
suggester_ = null;
onChanged();
}
} else {
if (suggesterCase_ == 5) {
suggesterCase_ = 0;
suggester_ = null;
}
completionInfixSuggesterBuilder_.clear();
}
return this;
}
/**
*
* A suggester that matches terms anywhere in the input text. The implementation is different from InfixSuggester
*
*
* .luceneserver.CompletionInfixSuggester completionInfixSuggester = 5;
*/
public com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.Builder getCompletionInfixSuggesterBuilder() {
return getCompletionInfixSuggesterFieldBuilder().getBuilder();
}
/**
*
* A suggester that matches terms anywhere in the input text. The implementation is different from InfixSuggester
*
*
* .luceneserver.CompletionInfixSuggester completionInfixSuggester = 5;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CompletionInfixSuggesterOrBuilder getCompletionInfixSuggesterOrBuilder() {
if ((suggesterCase_ == 5) && (completionInfixSuggesterBuilder_ != null)) {
return completionInfixSuggesterBuilder_.getMessageOrBuilder();
} else {
if (suggesterCase_ == 5) {
return (com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.getDefaultInstance();
}
}
/**
*
* A suggester that matches terms anywhere in the input text. The implementation is different from InfixSuggester
*
*
* .luceneserver.CompletionInfixSuggester completionInfixSuggester = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester, com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.Builder, com.yelp.nrtsearch.server.grpc.CompletionInfixSuggesterOrBuilder>
getCompletionInfixSuggesterFieldBuilder() {
if (completionInfixSuggesterBuilder_ == null) {
if (!(suggesterCase_ == 5)) {
suggester_ = com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.getDefaultInstance();
}
completionInfixSuggesterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester, com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.Builder, com.yelp.nrtsearch.server.grpc.CompletionInfixSuggesterOrBuilder>(
(com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester) suggester_,
getParentForChildren(),
isClean());
suggester_ = null;
}
suggesterCase_ = 5;
onChanged();
return completionInfixSuggesterBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester, com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester.Builder, com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggesterOrBuilder> fuzzyInfixSuggesterBuilder_;
/**
*
* A suggester that matches fuzzy terms in the input text.
*
*
* .luceneserver.FuzzyInfixSuggester fuzzyInfixSuggester = 6;
* @return Whether the fuzzyInfixSuggester field is set.
*/
@java.lang.Override
public boolean hasFuzzyInfixSuggester() {
return suggesterCase_ == 6;
}
/**
*
* A suggester that matches fuzzy terms in the input text.
*
*
* .luceneserver.FuzzyInfixSuggester fuzzyInfixSuggester = 6;
* @return The fuzzyInfixSuggester.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester getFuzzyInfixSuggester() {
if (fuzzyInfixSuggesterBuilder_ == null) {
if (suggesterCase_ == 6) {
return (com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester.getDefaultInstance();
} else {
if (suggesterCase_ == 6) {
return fuzzyInfixSuggesterBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester.getDefaultInstance();
}
}
/**
*
* A suggester that matches fuzzy terms in the input text.
*
*
* .luceneserver.FuzzyInfixSuggester fuzzyInfixSuggester = 6;
*/
public Builder setFuzzyInfixSuggester(com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester value) {
if (fuzzyInfixSuggesterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
suggester_ = value;
onChanged();
} else {
fuzzyInfixSuggesterBuilder_.setMessage(value);
}
suggesterCase_ = 6;
return this;
}
/**
*
* A suggester that matches fuzzy terms in the input text.
*
*
* .luceneserver.FuzzyInfixSuggester fuzzyInfixSuggester = 6;
*/
public Builder setFuzzyInfixSuggester(
com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester.Builder builderForValue) {
if (fuzzyInfixSuggesterBuilder_ == null) {
suggester_ = builderForValue.build();
onChanged();
} else {
fuzzyInfixSuggesterBuilder_.setMessage(builderForValue.build());
}
suggesterCase_ = 6;
return this;
}
/**
*
* A suggester that matches fuzzy terms in the input text.
*
*
* .luceneserver.FuzzyInfixSuggester fuzzyInfixSuggester = 6;
*/
public Builder mergeFuzzyInfixSuggester(com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester value) {
if (fuzzyInfixSuggesterBuilder_ == null) {
if (suggesterCase_ == 6 &&
suggester_ != com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester.getDefaultInstance()) {
suggester_ = com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester.newBuilder((com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester) suggester_)
.mergeFrom(value).buildPartial();
} else {
suggester_ = value;
}
onChanged();
} else {
if (suggesterCase_ == 6) {
fuzzyInfixSuggesterBuilder_.mergeFrom(value);
} else {
fuzzyInfixSuggesterBuilder_.setMessage(value);
}
}
suggesterCase_ = 6;
return this;
}
/**
*
* A suggester that matches fuzzy terms in the input text.
*
*
* .luceneserver.FuzzyInfixSuggester fuzzyInfixSuggester = 6;
*/
public Builder clearFuzzyInfixSuggester() {
if (fuzzyInfixSuggesterBuilder_ == null) {
if (suggesterCase_ == 6) {
suggesterCase_ = 0;
suggester_ = null;
onChanged();
}
} else {
if (suggesterCase_ == 6) {
suggesterCase_ = 0;
suggester_ = null;
}
fuzzyInfixSuggesterBuilder_.clear();
}
return this;
}
/**
*
* A suggester that matches fuzzy terms in the input text.
*
*
* .luceneserver.FuzzyInfixSuggester fuzzyInfixSuggester = 6;
*/
public com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester.Builder getFuzzyInfixSuggesterBuilder() {
return getFuzzyInfixSuggesterFieldBuilder().getBuilder();
}
/**
*
* A suggester that matches fuzzy terms in the input text.
*
*
* .luceneserver.FuzzyInfixSuggester fuzzyInfixSuggester = 6;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggesterOrBuilder getFuzzyInfixSuggesterOrBuilder() {
if ((suggesterCase_ == 6) && (fuzzyInfixSuggesterBuilder_ != null)) {
return fuzzyInfixSuggesterBuilder_.getMessageOrBuilder();
} else {
if (suggesterCase_ == 6) {
return (com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester) suggester_;
}
return com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester.getDefaultInstance();
}
}
/**
*
* A suggester that matches fuzzy terms in the input text.
*
*
* .luceneserver.FuzzyInfixSuggester fuzzyInfixSuggester = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester, com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester.Builder, com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggesterOrBuilder>
getFuzzyInfixSuggesterFieldBuilder() {
if (fuzzyInfixSuggesterBuilder_ == null) {
if (!(suggesterCase_ == 6)) {
suggester_ = com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester.getDefaultInstance();
}
fuzzyInfixSuggesterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester, com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester.Builder, com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggesterOrBuilder>(
(com.yelp.nrtsearch.server.grpc.FuzzyInfixSuggester) suggester_,
getParentForChildren(),
isClean());
suggester_ = null;
}
suggesterCase_ = 6;
onChanged();
return fuzzyInfixSuggesterBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.SuggestLocalSource, com.yelp.nrtsearch.server.grpc.SuggestLocalSource.Builder, com.yelp.nrtsearch.server.grpc.SuggestLocalSourceOrBuilder> localSourceBuilder_;
/**
* .luceneserver.SuggestLocalSource localSource = 7;
* @return Whether the localSource field is set.
*/
@java.lang.Override
public boolean hasLocalSource() {
return sourceCase_ == 7;
}
/**
* .luceneserver.SuggestLocalSource localSource = 7;
* @return The localSource.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.SuggestLocalSource getLocalSource() {
if (localSourceBuilder_ == null) {
if (sourceCase_ == 7) {
return (com.yelp.nrtsearch.server.grpc.SuggestLocalSource) source_;
}
return com.yelp.nrtsearch.server.grpc.SuggestLocalSource.getDefaultInstance();
} else {
if (sourceCase_ == 7) {
return localSourceBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.SuggestLocalSource.getDefaultInstance();
}
}
/**
* .luceneserver.SuggestLocalSource localSource = 7;
*/
public Builder setLocalSource(com.yelp.nrtsearch.server.grpc.SuggestLocalSource value) {
if (localSourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
} else {
localSourceBuilder_.setMessage(value);
}
sourceCase_ = 7;
return this;
}
/**
* .luceneserver.SuggestLocalSource localSource = 7;
*/
public Builder setLocalSource(
com.yelp.nrtsearch.server.grpc.SuggestLocalSource.Builder builderForValue) {
if (localSourceBuilder_ == null) {
source_ = builderForValue.build();
onChanged();
} else {
localSourceBuilder_.setMessage(builderForValue.build());
}
sourceCase_ = 7;
return this;
}
/**
* .luceneserver.SuggestLocalSource localSource = 7;
*/
public Builder mergeLocalSource(com.yelp.nrtsearch.server.grpc.SuggestLocalSource value) {
if (localSourceBuilder_ == null) {
if (sourceCase_ == 7 &&
source_ != com.yelp.nrtsearch.server.grpc.SuggestLocalSource.getDefaultInstance()) {
source_ = com.yelp.nrtsearch.server.grpc.SuggestLocalSource.newBuilder((com.yelp.nrtsearch.server.grpc.SuggestLocalSource) source_)
.mergeFrom(value).buildPartial();
} else {
source_ = value;
}
onChanged();
} else {
if (sourceCase_ == 7) {
localSourceBuilder_.mergeFrom(value);
} else {
localSourceBuilder_.setMessage(value);
}
}
sourceCase_ = 7;
return this;
}
/**
* .luceneserver.SuggestLocalSource localSource = 7;
*/
public Builder clearLocalSource() {
if (localSourceBuilder_ == null) {
if (sourceCase_ == 7) {
sourceCase_ = 0;
source_ = null;
onChanged();
}
} else {
if (sourceCase_ == 7) {
sourceCase_ = 0;
source_ = null;
}
localSourceBuilder_.clear();
}
return this;
}
/**
* .luceneserver.SuggestLocalSource localSource = 7;
*/
public com.yelp.nrtsearch.server.grpc.SuggestLocalSource.Builder getLocalSourceBuilder() {
return getLocalSourceFieldBuilder().getBuilder();
}
/**
* .luceneserver.SuggestLocalSource localSource = 7;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.SuggestLocalSourceOrBuilder getLocalSourceOrBuilder() {
if ((sourceCase_ == 7) && (localSourceBuilder_ != null)) {
return localSourceBuilder_.getMessageOrBuilder();
} else {
if (sourceCase_ == 7) {
return (com.yelp.nrtsearch.server.grpc.SuggestLocalSource) source_;
}
return com.yelp.nrtsearch.server.grpc.SuggestLocalSource.getDefaultInstance();
}
}
/**
* .luceneserver.SuggestLocalSource localSource = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.SuggestLocalSource, com.yelp.nrtsearch.server.grpc.SuggestLocalSource.Builder, com.yelp.nrtsearch.server.grpc.SuggestLocalSourceOrBuilder>
getLocalSourceFieldBuilder() {
if (localSourceBuilder_ == null) {
if (!(sourceCase_ == 7)) {
source_ = com.yelp.nrtsearch.server.grpc.SuggestLocalSource.getDefaultInstance();
}
localSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.SuggestLocalSource, com.yelp.nrtsearch.server.grpc.SuggestLocalSource.Builder, com.yelp.nrtsearch.server.grpc.SuggestLocalSourceOrBuilder>(
(com.yelp.nrtsearch.server.grpc.SuggestLocalSource) source_,
getParentForChildren(),
isClean());
source_ = null;
}
sourceCase_ = 7;
onChanged();
return localSourceBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource, com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.Builder, com.yelp.nrtsearch.server.grpc.SuggestNonLocalSourceOrBuilder> nonLocalSourceBuilder_;
/**
* .luceneserver.SuggestNonLocalSource nonLocalSource = 8;
* @return Whether the nonLocalSource field is set.
*/
@java.lang.Override
public boolean hasNonLocalSource() {
return sourceCase_ == 8;
}
/**
* .luceneserver.SuggestNonLocalSource nonLocalSource = 8;
* @return The nonLocalSource.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource getNonLocalSource() {
if (nonLocalSourceBuilder_ == null) {
if (sourceCase_ == 8) {
return (com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource) source_;
}
return com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.getDefaultInstance();
} else {
if (sourceCase_ == 8) {
return nonLocalSourceBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.getDefaultInstance();
}
}
/**
* .luceneserver.SuggestNonLocalSource nonLocalSource = 8;
*/
public Builder setNonLocalSource(com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource value) {
if (nonLocalSourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
} else {
nonLocalSourceBuilder_.setMessage(value);
}
sourceCase_ = 8;
return this;
}
/**
* .luceneserver.SuggestNonLocalSource nonLocalSource = 8;
*/
public Builder setNonLocalSource(
com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.Builder builderForValue) {
if (nonLocalSourceBuilder_ == null) {
source_ = builderForValue.build();
onChanged();
} else {
nonLocalSourceBuilder_.setMessage(builderForValue.build());
}
sourceCase_ = 8;
return this;
}
/**
* .luceneserver.SuggestNonLocalSource nonLocalSource = 8;
*/
public Builder mergeNonLocalSource(com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource value) {
if (nonLocalSourceBuilder_ == null) {
if (sourceCase_ == 8 &&
source_ != com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.getDefaultInstance()) {
source_ = com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.newBuilder((com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource) source_)
.mergeFrom(value).buildPartial();
} else {
source_ = value;
}
onChanged();
} else {
if (sourceCase_ == 8) {
nonLocalSourceBuilder_.mergeFrom(value);
} else {
nonLocalSourceBuilder_.setMessage(value);
}
}
sourceCase_ = 8;
return this;
}
/**
* .luceneserver.SuggestNonLocalSource nonLocalSource = 8;
*/
public Builder clearNonLocalSource() {
if (nonLocalSourceBuilder_ == null) {
if (sourceCase_ == 8) {
sourceCase_ = 0;
source_ = null;
onChanged();
}
} else {
if (sourceCase_ == 8) {
sourceCase_ = 0;
source_ = null;
}
nonLocalSourceBuilder_.clear();
}
return this;
}
/**
* .luceneserver.SuggestNonLocalSource nonLocalSource = 8;
*/
public com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.Builder getNonLocalSourceBuilder() {
return getNonLocalSourceFieldBuilder().getBuilder();
}
/**
* .luceneserver.SuggestNonLocalSource nonLocalSource = 8;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.SuggestNonLocalSourceOrBuilder getNonLocalSourceOrBuilder() {
if ((sourceCase_ == 8) && (nonLocalSourceBuilder_ != null)) {
return nonLocalSourceBuilder_.getMessageOrBuilder();
} else {
if (sourceCase_ == 8) {
return (com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource) source_;
}
return com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.getDefaultInstance();
}
}
/**
* .luceneserver.SuggestNonLocalSource nonLocalSource = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource, com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.Builder, com.yelp.nrtsearch.server.grpc.SuggestNonLocalSourceOrBuilder>
getNonLocalSourceFieldBuilder() {
if (nonLocalSourceBuilder_ == null) {
if (!(sourceCase_ == 8)) {
source_ = com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.getDefaultInstance();
}
nonLocalSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource, com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource.Builder, com.yelp.nrtsearch.server.grpc.SuggestNonLocalSourceOrBuilder>(
(com.yelp.nrtsearch.server.grpc.SuggestNonLocalSource) source_,
getParentForChildren(),
isClean());
source_ = null;
}
sourceCase_ = 8;
onChanged();
return nonLocalSourceBuilder_;
}
private java.lang.Object suggestName_ = "";
/**
*
*Unique name for this suggest build.
*
*
* string suggestName = 9;
* @return The suggestName.
*/
public java.lang.String getSuggestName() {
java.lang.Object ref = suggestName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
suggestName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Unique name for this suggest build.
*
*
* string suggestName = 9;
* @return The bytes for suggestName.
*/
public com.google.protobuf.ByteString
getSuggestNameBytes() {
java.lang.Object ref = suggestName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
suggestName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Unique name for this suggest build.
*
*
* string suggestName = 9;
* @param value The suggestName to set.
* @return This builder for chaining.
*/
public Builder setSuggestName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
suggestName_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*Unique name for this suggest build.
*
*
* string suggestName = 9;
* @return This builder for chaining.
*/
public Builder clearSuggestName() {
suggestName_ = getDefaultInstance().getSuggestName();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
*
*Unique name for this suggest build.
*
*
* string suggestName = 9;
* @param value The bytes for suggestName to set.
* @return This builder for chaining.
*/
public Builder setSuggestNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
suggestName_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:luceneserver.BuildSuggestRequest)
}
// @@protoc_insertion_point(class_scope:luceneserver.BuildSuggestRequest)
private static final com.yelp.nrtsearch.server.grpc.BuildSuggestRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.BuildSuggestRequest();
}
public static com.yelp.nrtsearch.server.grpc.BuildSuggestRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BuildSuggestRequest 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.BuildSuggestRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}