com.yelp.nrtsearch.server.grpc.QueryRescorer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clientlib Show documentation
Show all versions of clientlib Show documentation
GRPC Clientlib for nrtSearch
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yelp/nrtsearch/search.proto
// Protobuf Java Version: 3.25.3
package com.yelp.nrtsearch.server.grpc;
/**
*
* Defines a rescorer which uses query to rescore documents in the second pass
*
*
* Protobuf type {@code luceneserver.QueryRescorer}
*/
public final class QueryRescorer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.QueryRescorer)
QueryRescorerOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryRescorer.newBuilder() to construct.
private QueryRescorer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryRescorer() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryRescorer();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_QueryRescorer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_QueryRescorer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.QueryRescorer.class, com.yelp.nrtsearch.server.grpc.QueryRescorer.Builder.class);
}
private int bitField0_;
public static final int RESCOREQUERY_FIELD_NUMBER = 1;
private com.yelp.nrtsearch.server.grpc.Query rescoreQuery_;
/**
* .luceneserver.Query rescoreQuery = 1;
* @return Whether the rescoreQuery field is set.
*/
@java.lang.Override
public boolean hasRescoreQuery() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .luceneserver.Query rescoreQuery = 1;
* @return The rescoreQuery.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.Query getRescoreQuery() {
return rescoreQuery_ == null ? com.yelp.nrtsearch.server.grpc.Query.getDefaultInstance() : rescoreQuery_;
}
/**
* .luceneserver.Query rescoreQuery = 1;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.QueryOrBuilder getRescoreQueryOrBuilder() {
return rescoreQuery_ == null ? com.yelp.nrtsearch.server.grpc.Query.getDefaultInstance() : rescoreQuery_;
}
public static final int QUERYWEIGHT_FIELD_NUMBER = 2;
private double queryWeight_ = 0D;
/**
* double queryWeight = 2;
* @return The queryWeight.
*/
@java.lang.Override
public double getQueryWeight() {
return queryWeight_;
}
public static final int RESCOREQUERYWEIGHT_FIELD_NUMBER = 3;
private double rescoreQueryWeight_ = 0D;
/**
* double rescoreQueryWeight = 3;
* @return The rescoreQueryWeight.
*/
@java.lang.Override
public double getRescoreQueryWeight() {
return rescoreQueryWeight_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getRescoreQuery());
}
if (java.lang.Double.doubleToRawLongBits(queryWeight_) != 0) {
output.writeDouble(2, queryWeight_);
}
if (java.lang.Double.doubleToRawLongBits(rescoreQueryWeight_) != 0) {
output.writeDouble(3, rescoreQueryWeight_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getRescoreQuery());
}
if (java.lang.Double.doubleToRawLongBits(queryWeight_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, queryWeight_);
}
if (java.lang.Double.doubleToRawLongBits(rescoreQueryWeight_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, rescoreQueryWeight_);
}
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.QueryRescorer)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.QueryRescorer other = (com.yelp.nrtsearch.server.grpc.QueryRescorer) obj;
if (hasRescoreQuery() != other.hasRescoreQuery()) return false;
if (hasRescoreQuery()) {
if (!getRescoreQuery()
.equals(other.getRescoreQuery())) return false;
}
if (java.lang.Double.doubleToLongBits(getQueryWeight())
!= java.lang.Double.doubleToLongBits(
other.getQueryWeight())) return false;
if (java.lang.Double.doubleToLongBits(getRescoreQueryWeight())
!= java.lang.Double.doubleToLongBits(
other.getRescoreQueryWeight())) 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();
if (hasRescoreQuery()) {
hash = (37 * hash) + RESCOREQUERY_FIELD_NUMBER;
hash = (53 * hash) + getRescoreQuery().hashCode();
}
hash = (37 * hash) + QUERYWEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getQueryWeight()));
hash = (37 * hash) + RESCOREQUERYWEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRescoreQueryWeight()));
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.QueryRescorer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.QueryRescorer 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.QueryRescorer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.QueryRescorer 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.QueryRescorer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.QueryRescorer 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.QueryRescorer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.QueryRescorer 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.QueryRescorer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.QueryRescorer 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.QueryRescorer 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.QueryRescorer 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.QueryRescorer prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Defines a rescorer which uses query to rescore documents in the second pass
*
*
* Protobuf type {@code luceneserver.QueryRescorer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.QueryRescorer)
com.yelp.nrtsearch.server.grpc.QueryRescorerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_QueryRescorer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_QueryRescorer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.QueryRescorer.class, com.yelp.nrtsearch.server.grpc.QueryRescorer.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.QueryRescorer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRescoreQueryFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
rescoreQuery_ = null;
if (rescoreQueryBuilder_ != null) {
rescoreQueryBuilder_.dispose();
rescoreQueryBuilder_ = null;
}
queryWeight_ = 0D;
rescoreQueryWeight_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_QueryRescorer_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.QueryRescorer getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.QueryRescorer.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.QueryRescorer build() {
com.yelp.nrtsearch.server.grpc.QueryRescorer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.QueryRescorer buildPartial() {
com.yelp.nrtsearch.server.grpc.QueryRescorer result = new com.yelp.nrtsearch.server.grpc.QueryRescorer(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.QueryRescorer result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.rescoreQuery_ = rescoreQueryBuilder_ == null
? rescoreQuery_
: rescoreQueryBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.queryWeight_ = queryWeight_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.rescoreQueryWeight_ = rescoreQueryWeight_;
}
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.QueryRescorer) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.QueryRescorer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.QueryRescorer other) {
if (other == com.yelp.nrtsearch.server.grpc.QueryRescorer.getDefaultInstance()) return this;
if (other.hasRescoreQuery()) {
mergeRescoreQuery(other.getRescoreQuery());
}
if (other.getQueryWeight() != 0D) {
setQueryWeight(other.getQueryWeight());
}
if (other.getRescoreQueryWeight() != 0D) {
setRescoreQueryWeight(other.getRescoreQueryWeight());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getRescoreQueryFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 17: {
queryWeight_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
case 25: {
rescoreQueryWeight_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 25
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 com.yelp.nrtsearch.server.grpc.Query rescoreQuery_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.Query, com.yelp.nrtsearch.server.grpc.Query.Builder, com.yelp.nrtsearch.server.grpc.QueryOrBuilder> rescoreQueryBuilder_;
/**
* .luceneserver.Query rescoreQuery = 1;
* @return Whether the rescoreQuery field is set.
*/
public boolean hasRescoreQuery() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .luceneserver.Query rescoreQuery = 1;
* @return The rescoreQuery.
*/
public com.yelp.nrtsearch.server.grpc.Query getRescoreQuery() {
if (rescoreQueryBuilder_ == null) {
return rescoreQuery_ == null ? com.yelp.nrtsearch.server.grpc.Query.getDefaultInstance() : rescoreQuery_;
} else {
return rescoreQueryBuilder_.getMessage();
}
}
/**
* .luceneserver.Query rescoreQuery = 1;
*/
public Builder setRescoreQuery(com.yelp.nrtsearch.server.grpc.Query value) {
if (rescoreQueryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
rescoreQuery_ = value;
} else {
rescoreQueryBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .luceneserver.Query rescoreQuery = 1;
*/
public Builder setRescoreQuery(
com.yelp.nrtsearch.server.grpc.Query.Builder builderForValue) {
if (rescoreQueryBuilder_ == null) {
rescoreQuery_ = builderForValue.build();
} else {
rescoreQueryBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .luceneserver.Query rescoreQuery = 1;
*/
public Builder mergeRescoreQuery(com.yelp.nrtsearch.server.grpc.Query value) {
if (rescoreQueryBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
rescoreQuery_ != null &&
rescoreQuery_ != com.yelp.nrtsearch.server.grpc.Query.getDefaultInstance()) {
getRescoreQueryBuilder().mergeFrom(value);
} else {
rescoreQuery_ = value;
}
} else {
rescoreQueryBuilder_.mergeFrom(value);
}
if (rescoreQuery_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .luceneserver.Query rescoreQuery = 1;
*/
public Builder clearRescoreQuery() {
bitField0_ = (bitField0_ & ~0x00000001);
rescoreQuery_ = null;
if (rescoreQueryBuilder_ != null) {
rescoreQueryBuilder_.dispose();
rescoreQueryBuilder_ = null;
}
onChanged();
return this;
}
/**
* .luceneserver.Query rescoreQuery = 1;
*/
public com.yelp.nrtsearch.server.grpc.Query.Builder getRescoreQueryBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getRescoreQueryFieldBuilder().getBuilder();
}
/**
* .luceneserver.Query rescoreQuery = 1;
*/
public com.yelp.nrtsearch.server.grpc.QueryOrBuilder getRescoreQueryOrBuilder() {
if (rescoreQueryBuilder_ != null) {
return rescoreQueryBuilder_.getMessageOrBuilder();
} else {
return rescoreQuery_ == null ?
com.yelp.nrtsearch.server.grpc.Query.getDefaultInstance() : rescoreQuery_;
}
}
/**
* .luceneserver.Query rescoreQuery = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.Query, com.yelp.nrtsearch.server.grpc.Query.Builder, com.yelp.nrtsearch.server.grpc.QueryOrBuilder>
getRescoreQueryFieldBuilder() {
if (rescoreQueryBuilder_ == null) {
rescoreQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.Query, com.yelp.nrtsearch.server.grpc.Query.Builder, com.yelp.nrtsearch.server.grpc.QueryOrBuilder>(
getRescoreQuery(),
getParentForChildren(),
isClean());
rescoreQuery_ = null;
}
return rescoreQueryBuilder_;
}
private double queryWeight_ ;
/**
* double queryWeight = 2;
* @return The queryWeight.
*/
@java.lang.Override
public double getQueryWeight() {
return queryWeight_;
}
/**
* double queryWeight = 2;
* @param value The queryWeight to set.
* @return This builder for chaining.
*/
public Builder setQueryWeight(double value) {
queryWeight_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* double queryWeight = 2;
* @return This builder for chaining.
*/
public Builder clearQueryWeight() {
bitField0_ = (bitField0_ & ~0x00000002);
queryWeight_ = 0D;
onChanged();
return this;
}
private double rescoreQueryWeight_ ;
/**
* double rescoreQueryWeight = 3;
* @return The rescoreQueryWeight.
*/
@java.lang.Override
public double getRescoreQueryWeight() {
return rescoreQueryWeight_;
}
/**
* double rescoreQueryWeight = 3;
* @param value The rescoreQueryWeight to set.
* @return This builder for chaining.
*/
public Builder setRescoreQueryWeight(double value) {
rescoreQueryWeight_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* double rescoreQueryWeight = 3;
* @return This builder for chaining.
*/
public Builder clearRescoreQueryWeight() {
bitField0_ = (bitField0_ & ~0x00000004);
rescoreQueryWeight_ = 0D;
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.QueryRescorer)
}
// @@protoc_insertion_point(class_scope:luceneserver.QueryRescorer)
private static final com.yelp.nrtsearch.server.grpc.QueryRescorer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.QueryRescorer();
}
public static com.yelp.nrtsearch.server.grpc.QueryRescorer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryRescorer 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.QueryRescorer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}