com.yelp.nrtsearch.server.grpc.FuzzyParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clientlib Show documentation
Show all versions of clientlib Show documentation
GRPC Clientlib for nrtSearch
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yelp/nrtsearch/search.proto
// Protobuf Java Version: 3.25.3
package com.yelp.nrtsearch.server.grpc;
/**
* Protobuf type {@code luceneserver.FuzzyParams}
*/
public final class FuzzyParams extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.FuzzyParams)
FuzzyParamsOrBuilder {
private static final long serialVersionUID = 0L;
// Use FuzzyParams.newBuilder() to construct.
private FuzzyParams(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FuzzyParams() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FuzzyParams();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_FuzzyParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_FuzzyParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.FuzzyParams.class, com.yelp.nrtsearch.server.grpc.FuzzyParams.Builder.class);
}
public interface AutoFuzzinessOrBuilder extends
// @@protoc_insertion_point(interface_extends:luceneserver.FuzzyParams.AutoFuzziness)
com.google.protobuf.MessageOrBuilder {
/**
*
* Optional low distance argument.
*
*
* int32 low = 6;
* @return The low.
*/
int getLow();
/**
*
* Optional high distance argument.
*
*
* int32 high = 7;
* @return The high.
*/
int getHigh();
}
/**
*
* Optional low and high values for auto fuzziness. Defaults to low: 3 and high: 6 if both are unset. Valid values are low >= 0 and low < high
*
*
* Protobuf type {@code luceneserver.FuzzyParams.AutoFuzziness}
*/
public static final class AutoFuzziness extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.FuzzyParams.AutoFuzziness)
AutoFuzzinessOrBuilder {
private static final long serialVersionUID = 0L;
// Use AutoFuzziness.newBuilder() to construct.
private AutoFuzziness(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AutoFuzziness() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AutoFuzziness();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_FuzzyParams_AutoFuzziness_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_FuzzyParams_AutoFuzziness_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness.class, com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness.Builder.class);
}
public static final int LOW_FIELD_NUMBER = 6;
private int low_ = 0;
/**
*
* Optional low distance argument.
*
*
* int32 low = 6;
* @return The low.
*/
@java.lang.Override
public int getLow() {
return low_;
}
public static final int HIGH_FIELD_NUMBER = 7;
private int high_ = 0;
/**
*
* Optional high distance argument.
*
*
* int32 high = 7;
* @return The high.
*/
@java.lang.Override
public int getHigh() {
return high_;
}
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 (low_ != 0) {
output.writeInt32(6, low_);
}
if (high_ != 0) {
output.writeInt32(7, high_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (low_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, low_);
}
if (high_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, high_);
}
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.FuzzyParams.AutoFuzziness)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness other = (com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness) obj;
if (getLow()
!= other.getLow()) return false;
if (getHigh()
!= other.getHigh()) 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) + LOW_FIELD_NUMBER;
hash = (53 * hash) + getLow();
hash = (37 * hash) + HIGH_FIELD_NUMBER;
hash = (53 * hash) + getHigh();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness 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.FuzzyParams.AutoFuzziness parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness 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.FuzzyParams.AutoFuzziness parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness 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.FuzzyParams.AutoFuzziness parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness 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.FuzzyParams.AutoFuzziness parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness 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.FuzzyParams.AutoFuzziness 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.FuzzyParams.AutoFuzziness 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.FuzzyParams.AutoFuzziness 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;
}
/**
*
* Optional low and high values for auto fuzziness. Defaults to low: 3 and high: 6 if both are unset. Valid values are low >= 0 and low < high
*
*
* Protobuf type {@code luceneserver.FuzzyParams.AutoFuzziness}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.FuzzyParams.AutoFuzziness)
com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzzinessOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_FuzzyParams_AutoFuzziness_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_FuzzyParams_AutoFuzziness_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness.class, com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
low_ = 0;
high_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_FuzzyParams_AutoFuzziness_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness build() {
com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness buildPartial() {
com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness result = new com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.low_ = low_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.high_ = high_;
}
}
@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.FuzzyParams.AutoFuzziness) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness other) {
if (other == com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness.getDefaultInstance()) return this;
if (other.getLow() != 0) {
setLow(other.getLow());
}
if (other.getHigh() != 0) {
setHigh(other.getHigh());
}
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 48: {
low_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 48
case 56: {
high_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 56
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 int low_ ;
/**
*
* Optional low distance argument.
*
*
* int32 low = 6;
* @return The low.
*/
@java.lang.Override
public int getLow() {
return low_;
}
/**
*
* Optional low distance argument.
*
*
* int32 low = 6;
* @param value The low to set.
* @return This builder for chaining.
*/
public Builder setLow(int value) {
low_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Optional low distance argument.
*
*
* int32 low = 6;
* @return This builder for chaining.
*/
public Builder clearLow() {
bitField0_ = (bitField0_ & ~0x00000001);
low_ = 0;
onChanged();
return this;
}
private int high_ ;
/**
*
* Optional high distance argument.
*
*
* int32 high = 7;
* @return The high.
*/
@java.lang.Override
public int getHigh() {
return high_;
}
/**
*
* Optional high distance argument.
*
*
* int32 high = 7;
* @param value The high to set.
* @return This builder for chaining.
*/
public Builder setHigh(int value) {
high_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Optional high distance argument.
*
*
* int32 high = 7;
* @return This builder for chaining.
*/
public Builder clearHigh() {
bitField0_ = (bitField0_ & ~0x00000002);
high_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:luceneserver.FuzzyParams.AutoFuzziness)
}
// @@protoc_insertion_point(class_scope:luceneserver.FuzzyParams.AutoFuzziness)
private static final com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness();
}
public static com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AutoFuzziness 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.FuzzyParams.AutoFuzziness getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int MAXEDITS_FIELD_NUMBER = 1;
private int maxEdits_ = 0;
/**
*
* The maximum allowed Levenshtein Edit Distance (or number of edits). Possible values are 0, 1 and 2. Either set this or auto.
*
*
* int32 maxEdits = 1;
* @return The maxEdits.
*/
@java.lang.Override
public int getMaxEdits() {
return maxEdits_;
}
public static final int PREFIXLENGTH_FIELD_NUMBER = 2;
private int prefixLength_ = 0;
/**
*
* Length of common (non-fuzzy) prefix
*
*
* int32 prefixLength = 2;
* @return The prefixLength.
*/
@java.lang.Override
public int getPrefixLength() {
return prefixLength_;
}
public static final int MAXEXPANSIONS_FIELD_NUMBER = 3;
private int maxExpansions_ = 0;
/**
*
* The maximum number of terms to match.
*
*
* int32 maxExpansions = 3;
* @return The maxExpansions.
*/
@java.lang.Override
public int getMaxExpansions() {
return maxExpansions_;
}
public static final int TRANSPOSITIONS_FIELD_NUMBER = 4;
private boolean transpositions_ = false;
/**
*
* True if transpositions should be treated as a primitive edit operation. If this is false, comparisons will implement the classic Levenshtein algorithm. Default is true.
*
*
* bool transpositions = 4;
* @return The transpositions.
*/
@java.lang.Override
public boolean getTranspositions() {
return transpositions_;
}
public static final int AUTO_FIELD_NUMBER = 5;
private com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness auto_;
/**
*
* Auto fuzziness which determines the max edits based on the term length. AUTO is the preferred setting. Either set this or maxEdits.
*
*
* .luceneserver.FuzzyParams.AutoFuzziness auto = 5;
* @return Whether the auto field is set.
*/
@java.lang.Override
public boolean hasAuto() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Auto fuzziness which determines the max edits based on the term length. AUTO is the preferred setting. Either set this or maxEdits.
*
*
* .luceneserver.FuzzyParams.AutoFuzziness auto = 5;
* @return The auto.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness getAuto() {
return auto_ == null ? com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness.getDefaultInstance() : auto_;
}
/**
*
* Auto fuzziness which determines the max edits based on the term length. AUTO is the preferred setting. Either set this or maxEdits.
*
*
* .luceneserver.FuzzyParams.AutoFuzziness auto = 5;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzzinessOrBuilder getAutoOrBuilder() {
return auto_ == null ? com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness.getDefaultInstance() : auto_;
}
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 (maxEdits_ != 0) {
output.writeInt32(1, maxEdits_);
}
if (prefixLength_ != 0) {
output.writeInt32(2, prefixLength_);
}
if (maxExpansions_ != 0) {
output.writeInt32(3, maxExpansions_);
}
if (transpositions_ != false) {
output.writeBool(4, transpositions_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getAuto());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (maxEdits_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, maxEdits_);
}
if (prefixLength_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, prefixLength_);
}
if (maxExpansions_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, maxExpansions_);
}
if (transpositions_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, transpositions_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getAuto());
}
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.FuzzyParams)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.FuzzyParams other = (com.yelp.nrtsearch.server.grpc.FuzzyParams) obj;
if (getMaxEdits()
!= other.getMaxEdits()) return false;
if (getPrefixLength()
!= other.getPrefixLength()) return false;
if (getMaxExpansions()
!= other.getMaxExpansions()) return false;
if (getTranspositions()
!= other.getTranspositions()) return false;
if (hasAuto() != other.hasAuto()) return false;
if (hasAuto()) {
if (!getAuto()
.equals(other.getAuto())) 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) + MAXEDITS_FIELD_NUMBER;
hash = (53 * hash) + getMaxEdits();
hash = (37 * hash) + PREFIXLENGTH_FIELD_NUMBER;
hash = (53 * hash) + getPrefixLength();
hash = (37 * hash) + MAXEXPANSIONS_FIELD_NUMBER;
hash = (53 * hash) + getMaxExpansions();
hash = (37 * hash) + TRANSPOSITIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getTranspositions());
if (hasAuto()) {
hash = (37 * hash) + AUTO_FIELD_NUMBER;
hash = (53 * hash) + getAuto().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.FuzzyParams parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.FuzzyParams 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.FuzzyParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.FuzzyParams 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.FuzzyParams parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.FuzzyParams 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.FuzzyParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.FuzzyParams 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.FuzzyParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.FuzzyParams 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.FuzzyParams 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.FuzzyParams 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.FuzzyParams 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.FuzzyParams}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.FuzzyParams)
com.yelp.nrtsearch.server.grpc.FuzzyParamsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_FuzzyParams_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_FuzzyParams_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.FuzzyParams.class, com.yelp.nrtsearch.server.grpc.FuzzyParams.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.FuzzyParams.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAutoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
maxEdits_ = 0;
prefixLength_ = 0;
maxExpansions_ = 0;
transpositions_ = false;
auto_ = null;
if (autoBuilder_ != null) {
autoBuilder_.dispose();
autoBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_FuzzyParams_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FuzzyParams getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.FuzzyParams.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FuzzyParams build() {
com.yelp.nrtsearch.server.grpc.FuzzyParams result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FuzzyParams buildPartial() {
com.yelp.nrtsearch.server.grpc.FuzzyParams result = new com.yelp.nrtsearch.server.grpc.FuzzyParams(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.FuzzyParams result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.maxEdits_ = maxEdits_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.prefixLength_ = prefixLength_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.maxExpansions_ = maxExpansions_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.transpositions_ = transpositions_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.auto_ = autoBuilder_ == null
? auto_
: autoBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yelp.nrtsearch.server.grpc.FuzzyParams) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.FuzzyParams)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.FuzzyParams other) {
if (other == com.yelp.nrtsearch.server.grpc.FuzzyParams.getDefaultInstance()) return this;
if (other.getMaxEdits() != 0) {
setMaxEdits(other.getMaxEdits());
}
if (other.getPrefixLength() != 0) {
setPrefixLength(other.getPrefixLength());
}
if (other.getMaxExpansions() != 0) {
setMaxExpansions(other.getMaxExpansions());
}
if (other.getTranspositions() != false) {
setTranspositions(other.getTranspositions());
}
if (other.hasAuto()) {
mergeAuto(other.getAuto());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
maxEdits_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
prefixLength_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
maxExpansions_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
transpositions_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
input.readMessage(
getAutoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int maxEdits_ ;
/**
*
* The maximum allowed Levenshtein Edit Distance (or number of edits). Possible values are 0, 1 and 2. Either set this or auto.
*
*
* int32 maxEdits = 1;
* @return The maxEdits.
*/
@java.lang.Override
public int getMaxEdits() {
return maxEdits_;
}
/**
*
* The maximum allowed Levenshtein Edit Distance (or number of edits). Possible values are 0, 1 and 2. Either set this or auto.
*
*
* int32 maxEdits = 1;
* @param value The maxEdits to set.
* @return This builder for chaining.
*/
public Builder setMaxEdits(int value) {
maxEdits_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The maximum allowed Levenshtein Edit Distance (or number of edits). Possible values are 0, 1 and 2. Either set this or auto.
*
*
* int32 maxEdits = 1;
* @return This builder for chaining.
*/
public Builder clearMaxEdits() {
bitField0_ = (bitField0_ & ~0x00000001);
maxEdits_ = 0;
onChanged();
return this;
}
private int prefixLength_ ;
/**
*
* Length of common (non-fuzzy) prefix
*
*
* int32 prefixLength = 2;
* @return The prefixLength.
*/
@java.lang.Override
public int getPrefixLength() {
return prefixLength_;
}
/**
*
* Length of common (non-fuzzy) prefix
*
*
* int32 prefixLength = 2;
* @param value The prefixLength to set.
* @return This builder for chaining.
*/
public Builder setPrefixLength(int value) {
prefixLength_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Length of common (non-fuzzy) prefix
*
*
* int32 prefixLength = 2;
* @return This builder for chaining.
*/
public Builder clearPrefixLength() {
bitField0_ = (bitField0_ & ~0x00000002);
prefixLength_ = 0;
onChanged();
return this;
}
private int maxExpansions_ ;
/**
*
* The maximum number of terms to match.
*
*
* int32 maxExpansions = 3;
* @return The maxExpansions.
*/
@java.lang.Override
public int getMaxExpansions() {
return maxExpansions_;
}
/**
*
* The maximum number of terms to match.
*
*
* int32 maxExpansions = 3;
* @param value The maxExpansions to set.
* @return This builder for chaining.
*/
public Builder setMaxExpansions(int value) {
maxExpansions_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The maximum number of terms to match.
*
*
* int32 maxExpansions = 3;
* @return This builder for chaining.
*/
public Builder clearMaxExpansions() {
bitField0_ = (bitField0_ & ~0x00000004);
maxExpansions_ = 0;
onChanged();
return this;
}
private boolean transpositions_ ;
/**
*
* True if transpositions should be treated as a primitive edit operation. If this is false, comparisons will implement the classic Levenshtein algorithm. Default is true.
*
*
* bool transpositions = 4;
* @return The transpositions.
*/
@java.lang.Override
public boolean getTranspositions() {
return transpositions_;
}
/**
*
* True if transpositions should be treated as a primitive edit operation. If this is false, comparisons will implement the classic Levenshtein algorithm. Default is true.
*
*
* bool transpositions = 4;
* @param value The transpositions to set.
* @return This builder for chaining.
*/
public Builder setTranspositions(boolean value) {
transpositions_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* True if transpositions should be treated as a primitive edit operation. If this is false, comparisons will implement the classic Levenshtein algorithm. Default is true.
*
*
* bool transpositions = 4;
* @return This builder for chaining.
*/
public Builder clearTranspositions() {
bitField0_ = (bitField0_ & ~0x00000008);
transpositions_ = false;
onChanged();
return this;
}
private com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness auto_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness, com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness.Builder, com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzzinessOrBuilder> autoBuilder_;
/**
*
* Auto fuzziness which determines the max edits based on the term length. AUTO is the preferred setting. Either set this or maxEdits.
*
*
* .luceneserver.FuzzyParams.AutoFuzziness auto = 5;
* @return Whether the auto field is set.
*/
public boolean hasAuto() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Auto fuzziness which determines the max edits based on the term length. AUTO is the preferred setting. Either set this or maxEdits.
*
*
* .luceneserver.FuzzyParams.AutoFuzziness auto = 5;
* @return The auto.
*/
public com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness getAuto() {
if (autoBuilder_ == null) {
return auto_ == null ? com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness.getDefaultInstance() : auto_;
} else {
return autoBuilder_.getMessage();
}
}
/**
*
* Auto fuzziness which determines the max edits based on the term length. AUTO is the preferred setting. Either set this or maxEdits.
*
*
* .luceneserver.FuzzyParams.AutoFuzziness auto = 5;
*/
public Builder setAuto(com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness value) {
if (autoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
auto_ = value;
} else {
autoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Auto fuzziness which determines the max edits based on the term length. AUTO is the preferred setting. Either set this or maxEdits.
*
*
* .luceneserver.FuzzyParams.AutoFuzziness auto = 5;
*/
public Builder setAuto(
com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness.Builder builderForValue) {
if (autoBuilder_ == null) {
auto_ = builderForValue.build();
} else {
autoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Auto fuzziness which determines the max edits based on the term length. AUTO is the preferred setting. Either set this or maxEdits.
*
*
* .luceneserver.FuzzyParams.AutoFuzziness auto = 5;
*/
public Builder mergeAuto(com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness value) {
if (autoBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
auto_ != null &&
auto_ != com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness.getDefaultInstance()) {
getAutoBuilder().mergeFrom(value);
} else {
auto_ = value;
}
} else {
autoBuilder_.mergeFrom(value);
}
if (auto_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* Auto fuzziness which determines the max edits based on the term length. AUTO is the preferred setting. Either set this or maxEdits.
*
*
* .luceneserver.FuzzyParams.AutoFuzziness auto = 5;
*/
public Builder clearAuto() {
bitField0_ = (bitField0_ & ~0x00000010);
auto_ = null;
if (autoBuilder_ != null) {
autoBuilder_.dispose();
autoBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Auto fuzziness which determines the max edits based on the term length. AUTO is the preferred setting. Either set this or maxEdits.
*
*
* .luceneserver.FuzzyParams.AutoFuzziness auto = 5;
*/
public com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness.Builder getAutoBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getAutoFieldBuilder().getBuilder();
}
/**
*
* Auto fuzziness which determines the max edits based on the term length. AUTO is the preferred setting. Either set this or maxEdits.
*
*
* .luceneserver.FuzzyParams.AutoFuzziness auto = 5;
*/
public com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzzinessOrBuilder getAutoOrBuilder() {
if (autoBuilder_ != null) {
return autoBuilder_.getMessageOrBuilder();
} else {
return auto_ == null ?
com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness.getDefaultInstance() : auto_;
}
}
/**
*
* Auto fuzziness which determines the max edits based on the term length. AUTO is the preferred setting. Either set this or maxEdits.
*
*
* .luceneserver.FuzzyParams.AutoFuzziness auto = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness, com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness.Builder, com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzzinessOrBuilder>
getAutoFieldBuilder() {
if (autoBuilder_ == null) {
autoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness, com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzziness.Builder, com.yelp.nrtsearch.server.grpc.FuzzyParams.AutoFuzzinessOrBuilder>(
getAuto(),
getParentForChildren(),
isClean());
auto_ = null;
}
return autoBuilder_;
}
@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.FuzzyParams)
}
// @@protoc_insertion_point(class_scope:luceneserver.FuzzyParams)
private static final com.yelp.nrtsearch.server.grpc.FuzzyParams DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.FuzzyParams();
}
public static com.yelp.nrtsearch.server.grpc.FuzzyParams getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FuzzyParams 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.FuzzyParams getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}