com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester 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;
/**
*
* A suggester that matches terms anywhere in the input text. The implementation is different from InfixSuggester
*
*
* Protobuf type {@code luceneserver.CompletionInfixSuggester}
*/
public final class CompletionInfixSuggester extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.CompletionInfixSuggester)
CompletionInfixSuggesterOrBuilder {
private static final long serialVersionUID = 0L;
// Use CompletionInfixSuggester.newBuilder() to construct.
private CompletionInfixSuggester(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CompletionInfixSuggester() {
analyzer_ = "";
indexAnalyzer_ = "";
queryAnalyzer_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CompletionInfixSuggester();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_CompletionInfixSuggester_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_CompletionInfixSuggester_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.class, com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.Builder.class);
}
public static final int ANALYZER_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object analyzer_ = "";
/**
*
*Index and query analyzer
*
*
* string analyzer = 1;
* @return The analyzer.
*/
@java.lang.Override
public java.lang.String getAnalyzer() {
java.lang.Object ref = analyzer_;
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();
analyzer_ = s;
return s;
}
}
/**
*
*Index and query analyzer
*
*
* string analyzer = 1;
* @return The bytes for analyzer.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAnalyzerBytes() {
java.lang.Object ref = analyzer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
analyzer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INDEXANALYZER_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object indexAnalyzer_ = "";
/**
*
*Index Analyzer
*
*
* string indexAnalyzer = 2;
* @return The indexAnalyzer.
*/
@java.lang.Override
public java.lang.String getIndexAnalyzer() {
java.lang.Object ref = indexAnalyzer_;
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();
indexAnalyzer_ = s;
return s;
}
}
/**
*
*Index Analyzer
*
*
* string indexAnalyzer = 2;
* @return The bytes for indexAnalyzer.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIndexAnalyzerBytes() {
java.lang.Object ref = indexAnalyzer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexAnalyzer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int QUERYANALYZER_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object queryAnalyzer_ = "";
/**
*
*Query Analyzer
*
*
* string queryAnalyzer = 3;
* @return The queryAnalyzer.
*/
@java.lang.Override
public java.lang.String getQueryAnalyzer() {
java.lang.Object ref = queryAnalyzer_;
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();
queryAnalyzer_ = s;
return s;
}
}
/**
*
*Query Analyzer
*
*
* string queryAnalyzer = 3;
* @return The bytes for queryAnalyzer.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getQueryAnalyzerBytes() {
java.lang.Object ref = queryAnalyzer_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queryAnalyzer_ = 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(analyzer_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, analyzer_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexAnalyzer_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, indexAnalyzer_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryAnalyzer_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, queryAnalyzer_);
}
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(analyzer_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, analyzer_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexAnalyzer_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, indexAnalyzer_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryAnalyzer_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, queryAnalyzer_);
}
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.CompletionInfixSuggester)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester other = (com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester) obj;
if (!getAnalyzer()
.equals(other.getAnalyzer())) return false;
if (!getIndexAnalyzer()
.equals(other.getIndexAnalyzer())) return false;
if (!getQueryAnalyzer()
.equals(other.getQueryAnalyzer())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ANALYZER_FIELD_NUMBER;
hash = (53 * hash) + getAnalyzer().hashCode();
hash = (37 * hash) + INDEXANALYZER_FIELD_NUMBER;
hash = (53 * hash) + getIndexAnalyzer().hashCode();
hash = (37 * hash) + QUERYANALYZER_FIELD_NUMBER;
hash = (53 * hash) + getQueryAnalyzer().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester 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.CompletionInfixSuggester parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester 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.CompletionInfixSuggester parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester 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.CompletionInfixSuggester parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester 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.CompletionInfixSuggester parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester 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.CompletionInfixSuggester 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.CompletionInfixSuggester 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.CompletionInfixSuggester prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A suggester that matches terms anywhere in the input text. The implementation is different from InfixSuggester
*
*
* Protobuf type {@code luceneserver.CompletionInfixSuggester}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.CompletionInfixSuggester)
com.yelp.nrtsearch.server.grpc.CompletionInfixSuggesterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_CompletionInfixSuggester_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_CompletionInfixSuggester_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.class, com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
analyzer_ = "";
indexAnalyzer_ = "";
queryAnalyzer_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_CompletionInfixSuggester_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester build() {
com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester buildPartial() {
com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester result = new com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.analyzer_ = analyzer_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.indexAnalyzer_ = indexAnalyzer_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.queryAnalyzer_ = queryAnalyzer_;
}
}
@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.CompletionInfixSuggester) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester other) {
if (other == com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester.getDefaultInstance()) return this;
if (!other.getAnalyzer().isEmpty()) {
analyzer_ = other.analyzer_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getIndexAnalyzer().isEmpty()) {
indexAnalyzer_ = other.indexAnalyzer_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getQueryAnalyzer().isEmpty()) {
queryAnalyzer_ = other.queryAnalyzer_;
bitField0_ |= 0x00000004;
onChanged();
}
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: {
analyzer_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
indexAnalyzer_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
queryAnalyzer_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object analyzer_ = "";
/**
*
*Index and query analyzer
*
*
* string analyzer = 1;
* @return The analyzer.
*/
public java.lang.String getAnalyzer() {
java.lang.Object ref = analyzer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
analyzer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Index and query analyzer
*
*
* string analyzer = 1;
* @return The bytes for analyzer.
*/
public com.google.protobuf.ByteString
getAnalyzerBytes() {
java.lang.Object ref = analyzer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
analyzer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Index and query analyzer
*
*
* string analyzer = 1;
* @param value The analyzer to set.
* @return This builder for chaining.
*/
public Builder setAnalyzer(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
analyzer_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*Index and query analyzer
*
*
* string analyzer = 1;
* @return This builder for chaining.
*/
public Builder clearAnalyzer() {
analyzer_ = getDefaultInstance().getAnalyzer();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*Index and query analyzer
*
*
* string analyzer = 1;
* @param value The bytes for analyzer to set.
* @return This builder for chaining.
*/
public Builder setAnalyzerBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
analyzer_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object indexAnalyzer_ = "";
/**
*
*Index Analyzer
*
*
* string indexAnalyzer = 2;
* @return The indexAnalyzer.
*/
public java.lang.String getIndexAnalyzer() {
java.lang.Object ref = indexAnalyzer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
indexAnalyzer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Index Analyzer
*
*
* string indexAnalyzer = 2;
* @return The bytes for indexAnalyzer.
*/
public com.google.protobuf.ByteString
getIndexAnalyzerBytes() {
java.lang.Object ref = indexAnalyzer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexAnalyzer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Index Analyzer
*
*
* string indexAnalyzer = 2;
* @param value The indexAnalyzer to set.
* @return This builder for chaining.
*/
public Builder setIndexAnalyzer(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
indexAnalyzer_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Index Analyzer
*
*
* string indexAnalyzer = 2;
* @return This builder for chaining.
*/
public Builder clearIndexAnalyzer() {
indexAnalyzer_ = getDefaultInstance().getIndexAnalyzer();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*Index Analyzer
*
*
* string indexAnalyzer = 2;
* @param value The bytes for indexAnalyzer to set.
* @return This builder for chaining.
*/
public Builder setIndexAnalyzerBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
indexAnalyzer_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object queryAnalyzer_ = "";
/**
*
*Query Analyzer
*
*
* string queryAnalyzer = 3;
* @return The queryAnalyzer.
*/
public java.lang.String getQueryAnalyzer() {
java.lang.Object ref = queryAnalyzer_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
queryAnalyzer_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Query Analyzer
*
*
* string queryAnalyzer = 3;
* @return The bytes for queryAnalyzer.
*/
public com.google.protobuf.ByteString
getQueryAnalyzerBytes() {
java.lang.Object ref = queryAnalyzer_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
queryAnalyzer_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Query Analyzer
*
*
* string queryAnalyzer = 3;
* @param value The queryAnalyzer to set.
* @return This builder for chaining.
*/
public Builder setQueryAnalyzer(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
queryAnalyzer_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Query Analyzer
*
*
* string queryAnalyzer = 3;
* @return This builder for chaining.
*/
public Builder clearQueryAnalyzer() {
queryAnalyzer_ = getDefaultInstance().getQueryAnalyzer();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*Query Analyzer
*
*
* string queryAnalyzer = 3;
* @param value The bytes for queryAnalyzer to set.
* @return This builder for chaining.
*/
public Builder setQueryAnalyzerBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
queryAnalyzer_ = value;
bitField0_ |= 0x00000004;
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.CompletionInfixSuggester)
}
// @@protoc_insertion_point(class_scope:luceneserver.CompletionInfixSuggester)
private static final com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester();
}
public static com.yelp.nrtsearch.server.grpc.CompletionInfixSuggester getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CompletionInfixSuggester 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.CompletionInfixSuggester getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}