com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery 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;
/**
*
* A query that generates the union of documents produced by its subqueries, and that scores each document with the
* maximum score for that document as produced by any subquery, plus a tie breaking increment for any additional matching subqueries.
*
*
* Protobuf type {@code luceneserver.DisjunctionMaxQuery}
*/
public final class DisjunctionMaxQuery extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.DisjunctionMaxQuery)
DisjunctionMaxQueryOrBuilder {
private static final long serialVersionUID = 0L;
// Use DisjunctionMaxQuery.newBuilder() to construct.
private DisjunctionMaxQuery(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DisjunctionMaxQuery() {
disjuncts_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DisjunctionMaxQuery();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_DisjunctionMaxQuery_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_DisjunctionMaxQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.class, com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.Builder.class);
}
public static final int DISJUNCTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List disjuncts_;
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
@java.lang.Override
public java.util.List getDisjunctsList() {
return disjuncts_;
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
@java.lang.Override
public java.util.List extends com.yelp.nrtsearch.server.grpc.QueryOrBuilder>
getDisjunctsOrBuilderList() {
return disjuncts_;
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
@java.lang.Override
public int getDisjunctsCount() {
return disjuncts_.size();
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.Query getDisjuncts(int index) {
return disjuncts_.get(index);
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.QueryOrBuilder getDisjunctsOrBuilder(
int index) {
return disjuncts_.get(index);
}
public static final int TIEBREAKERMULTIPLIER_FIELD_NUMBER = 2;
private float tieBreakerMultiplier_ = 0F;
/**
*
* The score of each non-maximum disjunct for a document is multiplied by this weight and added into the final score.
*
*
* float tieBreakerMultiplier = 2;
* @return The tieBreakerMultiplier.
*/
@java.lang.Override
public float getTieBreakerMultiplier() {
return tieBreakerMultiplier_;
}
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 {
for (int i = 0; i < disjuncts_.size(); i++) {
output.writeMessage(1, disjuncts_.get(i));
}
if (java.lang.Float.floatToRawIntBits(tieBreakerMultiplier_) != 0) {
output.writeFloat(2, tieBreakerMultiplier_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < disjuncts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, disjuncts_.get(i));
}
if (java.lang.Float.floatToRawIntBits(tieBreakerMultiplier_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(2, tieBreakerMultiplier_);
}
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.DisjunctionMaxQuery)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery other = (com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery) obj;
if (!getDisjunctsList()
.equals(other.getDisjunctsList())) return false;
if (java.lang.Float.floatToIntBits(getTieBreakerMultiplier())
!= java.lang.Float.floatToIntBits(
other.getTieBreakerMultiplier())) 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 (getDisjunctsCount() > 0) {
hash = (37 * hash) + DISJUNCTS_FIELD_NUMBER;
hash = (53 * hash) + getDisjunctsList().hashCode();
}
hash = (37 * hash) + TIEBREAKERMULTIPLIER_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getTieBreakerMultiplier());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery 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.DisjunctionMaxQuery parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery 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.DisjunctionMaxQuery parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery 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.DisjunctionMaxQuery parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery 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.DisjunctionMaxQuery parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery 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.DisjunctionMaxQuery 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.DisjunctionMaxQuery 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.DisjunctionMaxQuery 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 query that generates the union of documents produced by its subqueries, and that scores each document with the
* maximum score for that document as produced by any subquery, plus a tie breaking increment for any additional matching subqueries.
*
*
* Protobuf type {@code luceneserver.DisjunctionMaxQuery}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.DisjunctionMaxQuery)
com.yelp.nrtsearch.server.grpc.DisjunctionMaxQueryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_DisjunctionMaxQuery_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_DisjunctionMaxQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.class, com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (disjunctsBuilder_ == null) {
disjuncts_ = java.util.Collections.emptyList();
} else {
disjuncts_ = null;
disjunctsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
tieBreakerMultiplier_ = 0F;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_DisjunctionMaxQuery_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery build() {
com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery buildPartial() {
com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery result = new com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery result) {
if (disjunctsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
disjuncts_ = java.util.Collections.unmodifiableList(disjuncts_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.disjuncts_ = disjuncts_;
} else {
result.disjuncts_ = disjunctsBuilder_.build();
}
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.tieBreakerMultiplier_ = tieBreakerMultiplier_;
}
}
@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.DisjunctionMaxQuery) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery other) {
if (other == com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery.getDefaultInstance()) return this;
if (disjunctsBuilder_ == null) {
if (!other.disjuncts_.isEmpty()) {
if (disjuncts_.isEmpty()) {
disjuncts_ = other.disjuncts_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDisjunctsIsMutable();
disjuncts_.addAll(other.disjuncts_);
}
onChanged();
}
} else {
if (!other.disjuncts_.isEmpty()) {
if (disjunctsBuilder_.isEmpty()) {
disjunctsBuilder_.dispose();
disjunctsBuilder_ = null;
disjuncts_ = other.disjuncts_;
bitField0_ = (bitField0_ & ~0x00000001);
disjunctsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDisjunctsFieldBuilder() : null;
} else {
disjunctsBuilder_.addAllMessages(other.disjuncts_);
}
}
}
if (other.getTieBreakerMultiplier() != 0F) {
setTieBreakerMultiplier(other.getTieBreakerMultiplier());
}
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: {
com.yelp.nrtsearch.server.grpc.Query m =
input.readMessage(
com.yelp.nrtsearch.server.grpc.Query.parser(),
extensionRegistry);
if (disjunctsBuilder_ == null) {
ensureDisjunctsIsMutable();
disjuncts_.add(m);
} else {
disjunctsBuilder_.addMessage(m);
}
break;
} // case 10
case 21: {
tieBreakerMultiplier_ = input.readFloat();
bitField0_ |= 0x00000002;
break;
} // case 21
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.util.List disjuncts_ =
java.util.Collections.emptyList();
private void ensureDisjunctsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
disjuncts_ = new java.util.ArrayList(disjuncts_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.Query, com.yelp.nrtsearch.server.grpc.Query.Builder, com.yelp.nrtsearch.server.grpc.QueryOrBuilder> disjunctsBuilder_;
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public java.util.List getDisjunctsList() {
if (disjunctsBuilder_ == null) {
return java.util.Collections.unmodifiableList(disjuncts_);
} else {
return disjunctsBuilder_.getMessageList();
}
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public int getDisjunctsCount() {
if (disjunctsBuilder_ == null) {
return disjuncts_.size();
} else {
return disjunctsBuilder_.getCount();
}
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public com.yelp.nrtsearch.server.grpc.Query getDisjuncts(int index) {
if (disjunctsBuilder_ == null) {
return disjuncts_.get(index);
} else {
return disjunctsBuilder_.getMessage(index);
}
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public Builder setDisjuncts(
int index, com.yelp.nrtsearch.server.grpc.Query value) {
if (disjunctsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDisjunctsIsMutable();
disjuncts_.set(index, value);
onChanged();
} else {
disjunctsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public Builder setDisjuncts(
int index, com.yelp.nrtsearch.server.grpc.Query.Builder builderForValue) {
if (disjunctsBuilder_ == null) {
ensureDisjunctsIsMutable();
disjuncts_.set(index, builderForValue.build());
onChanged();
} else {
disjunctsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public Builder addDisjuncts(com.yelp.nrtsearch.server.grpc.Query value) {
if (disjunctsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDisjunctsIsMutable();
disjuncts_.add(value);
onChanged();
} else {
disjunctsBuilder_.addMessage(value);
}
return this;
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public Builder addDisjuncts(
int index, com.yelp.nrtsearch.server.grpc.Query value) {
if (disjunctsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDisjunctsIsMutable();
disjuncts_.add(index, value);
onChanged();
} else {
disjunctsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public Builder addDisjuncts(
com.yelp.nrtsearch.server.grpc.Query.Builder builderForValue) {
if (disjunctsBuilder_ == null) {
ensureDisjunctsIsMutable();
disjuncts_.add(builderForValue.build());
onChanged();
} else {
disjunctsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public Builder addDisjuncts(
int index, com.yelp.nrtsearch.server.grpc.Query.Builder builderForValue) {
if (disjunctsBuilder_ == null) {
ensureDisjunctsIsMutable();
disjuncts_.add(index, builderForValue.build());
onChanged();
} else {
disjunctsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public Builder addAllDisjuncts(
java.lang.Iterable extends com.yelp.nrtsearch.server.grpc.Query> values) {
if (disjunctsBuilder_ == null) {
ensureDisjunctsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, disjuncts_);
onChanged();
} else {
disjunctsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public Builder clearDisjuncts() {
if (disjunctsBuilder_ == null) {
disjuncts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
disjunctsBuilder_.clear();
}
return this;
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public Builder removeDisjuncts(int index) {
if (disjunctsBuilder_ == null) {
ensureDisjunctsIsMutable();
disjuncts_.remove(index);
onChanged();
} else {
disjunctsBuilder_.remove(index);
}
return this;
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public com.yelp.nrtsearch.server.grpc.Query.Builder getDisjunctsBuilder(
int index) {
return getDisjunctsFieldBuilder().getBuilder(index);
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public com.yelp.nrtsearch.server.grpc.QueryOrBuilder getDisjunctsOrBuilder(
int index) {
if (disjunctsBuilder_ == null) {
return disjuncts_.get(index); } else {
return disjunctsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public java.util.List extends com.yelp.nrtsearch.server.grpc.QueryOrBuilder>
getDisjunctsOrBuilderList() {
if (disjunctsBuilder_ != null) {
return disjunctsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(disjuncts_);
}
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public com.yelp.nrtsearch.server.grpc.Query.Builder addDisjunctsBuilder() {
return getDisjunctsFieldBuilder().addBuilder(
com.yelp.nrtsearch.server.grpc.Query.getDefaultInstance());
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public com.yelp.nrtsearch.server.grpc.Query.Builder addDisjunctsBuilder(
int index) {
return getDisjunctsFieldBuilder().addBuilder(
index, com.yelp.nrtsearch.server.grpc.Query.getDefaultInstance());
}
/**
*
* A list of all the disjuncts to add
*
*
* repeated .luceneserver.Query disjuncts = 1;
*/
public java.util.List
getDisjunctsBuilderList() {
return getDisjunctsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.Query, com.yelp.nrtsearch.server.grpc.Query.Builder, com.yelp.nrtsearch.server.grpc.QueryOrBuilder>
getDisjunctsFieldBuilder() {
if (disjunctsBuilder_ == null) {
disjunctsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.Query, com.yelp.nrtsearch.server.grpc.Query.Builder, com.yelp.nrtsearch.server.grpc.QueryOrBuilder>(
disjuncts_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
disjuncts_ = null;
}
return disjunctsBuilder_;
}
private float tieBreakerMultiplier_ ;
/**
*
* The score of each non-maximum disjunct for a document is multiplied by this weight and added into the final score.
*
*
* float tieBreakerMultiplier = 2;
* @return The tieBreakerMultiplier.
*/
@java.lang.Override
public float getTieBreakerMultiplier() {
return tieBreakerMultiplier_;
}
/**
*
* The score of each non-maximum disjunct for a document is multiplied by this weight and added into the final score.
*
*
* float tieBreakerMultiplier = 2;
* @param value The tieBreakerMultiplier to set.
* @return This builder for chaining.
*/
public Builder setTieBreakerMultiplier(float value) {
tieBreakerMultiplier_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The score of each non-maximum disjunct for a document is multiplied by this weight and added into the final score.
*
*
* float tieBreakerMultiplier = 2;
* @return This builder for chaining.
*/
public Builder clearTieBreakerMultiplier() {
bitField0_ = (bitField0_ & ~0x00000002);
tieBreakerMultiplier_ = 0F;
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.DisjunctionMaxQuery)
}
// @@protoc_insertion_point(class_scope:luceneserver.DisjunctionMaxQuery)
private static final com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery();
}
public static com.yelp.nrtsearch.server.grpc.DisjunctionMaxQuery getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DisjunctionMaxQuery 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.DisjunctionMaxQuery getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}