com.yelp.nrtsearch.server.grpc.TermInSetQuery 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;
/**
*
* Specialization for a disjunction over many terms that behaves like a ConstantScoreQuery over a BooleanQuery containing only BooleanClause.Occur.SHOULD clauses. Only ONE of the types of terms needs to be provided - the one that matches the type of the field.
*
*
* Protobuf type {@code luceneserver.TermInSetQuery}
*/
public final class TermInSetQuery extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.TermInSetQuery)
TermInSetQueryOrBuilder {
private static final long serialVersionUID = 0L;
// Use TermInSetQuery.newBuilder() to construct.
private TermInSetQuery(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TermInSetQuery() {
field_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TermInSetQuery();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.class, com.yelp.nrtsearch.server.grpc.TermInSetQuery.Builder.class);
}
public interface TextTermsOrBuilder extends
// @@protoc_insertion_point(interface_extends:luceneserver.TermInSetQuery.TextTerms)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string terms = 1;
* @return A list containing the terms.
*/
java.util.List
getTermsList();
/**
* repeated string terms = 1;
* @return The count of terms.
*/
int getTermsCount();
/**
* repeated string terms = 1;
* @param index The index of the element to return.
* @return The terms at the given index.
*/
java.lang.String getTerms(int index);
/**
* repeated string terms = 1;
* @param index The index of the value to return.
* @return The bytes of the terms at the given index.
*/
com.google.protobuf.ByteString
getTermsBytes(int index);
}
/**
* Protobuf type {@code luceneserver.TermInSetQuery.TextTerms}
*/
public static final class TextTerms extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.TermInSetQuery.TextTerms)
TextTermsOrBuilder {
private static final long serialVersionUID = 0L;
// Use TextTerms.newBuilder() to construct.
private TextTerms(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TextTerms() {
terms_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TextTerms();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_TextTerms_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_TextTerms_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.class, com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.Builder.class);
}
public static final int TERMS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList terms_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string terms = 1;
* @return A list containing the terms.
*/
public com.google.protobuf.ProtocolStringList
getTermsList() {
return terms_;
}
/**
* repeated string terms = 1;
* @return The count of terms.
*/
public int getTermsCount() {
return terms_.size();
}
/**
* repeated string terms = 1;
* @param index The index of the element to return.
* @return The terms at the given index.
*/
public java.lang.String getTerms(int index) {
return terms_.get(index);
}
/**
* repeated string terms = 1;
* @param index The index of the value to return.
* @return The bytes of the terms at the given index.
*/
public com.google.protobuf.ByteString
getTermsBytes(int index) {
return terms_.getByteString(index);
}
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 < terms_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, terms_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < terms_.size(); i++) {
dataSize += computeStringSizeNoTag(terms_.getRaw(i));
}
size += dataSize;
size += 1 * getTermsList().size();
}
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.TermInSetQuery.TextTerms)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms other = (com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms) obj;
if (!getTermsList()
.equals(other.getTermsList())) 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 (getTermsCount() > 0) {
hash = (37 * hash) + TERMS_FIELD_NUMBER;
hash = (53 * hash) + getTermsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms 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.TermInSetQuery.TextTerms parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms 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.TermInSetQuery.TextTerms parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms 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.TermInSetQuery.TextTerms parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms 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.TermInSetQuery.TextTerms parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms 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.TermInSetQuery.TextTerms 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.TermInSetQuery.TextTerms 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.TermInSetQuery.TextTerms 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.TermInSetQuery.TextTerms}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.TermInSetQuery.TextTerms)
com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTermsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_TextTerms_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_TextTerms_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.class, com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
terms_ =
com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_TextTerms_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms build() {
com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms buildPartial() {
com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms result = new com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
terms_.makeImmutable();
result.terms_ = terms_;
}
}
@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.TermInSetQuery.TextTerms) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms other) {
if (other == com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.getDefaultInstance()) return this;
if (!other.terms_.isEmpty()) {
if (terms_.isEmpty()) {
terms_ = other.terms_;
bitField0_ |= 0x00000001;
} else {
ensureTermsIsMutable();
terms_.addAll(other.terms_);
}
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: {
java.lang.String s = input.readStringRequireUtf8();
ensureTermsIsMutable();
terms_.add(s);
break;
} // case 10
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.google.protobuf.LazyStringArrayList terms_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureTermsIsMutable() {
if (!terms_.isModifiable()) {
terms_ = new com.google.protobuf.LazyStringArrayList(terms_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated string terms = 1;
* @return A list containing the terms.
*/
public com.google.protobuf.ProtocolStringList
getTermsList() {
terms_.makeImmutable();
return terms_;
}
/**
* repeated string terms = 1;
* @return The count of terms.
*/
public int getTermsCount() {
return terms_.size();
}
/**
* repeated string terms = 1;
* @param index The index of the element to return.
* @return The terms at the given index.
*/
public java.lang.String getTerms(int index) {
return terms_.get(index);
}
/**
* repeated string terms = 1;
* @param index The index of the value to return.
* @return The bytes of the terms at the given index.
*/
public com.google.protobuf.ByteString
getTermsBytes(int index) {
return terms_.getByteString(index);
}
/**
* repeated string terms = 1;
* @param index The index to set the value at.
* @param value The terms to set.
* @return This builder for chaining.
*/
public Builder setTerms(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureTermsIsMutable();
terms_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string terms = 1;
* @param value The terms to add.
* @return This builder for chaining.
*/
public Builder addTerms(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureTermsIsMutable();
terms_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string terms = 1;
* @param values The terms to add.
* @return This builder for chaining.
*/
public Builder addAllTerms(
java.lang.Iterable values) {
ensureTermsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, terms_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string terms = 1;
* @return This builder for chaining.
*/
public Builder clearTerms() {
terms_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* repeated string terms = 1;
* @param value The bytes of the terms to add.
* @return This builder for chaining.
*/
public Builder addTermsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureTermsIsMutable();
terms_.add(value);
bitField0_ |= 0x00000001;
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.TermInSetQuery.TextTerms)
}
// @@protoc_insertion_point(class_scope:luceneserver.TermInSetQuery.TextTerms)
private static final com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms();
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TextTerms 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.TermInSetQuery.TextTerms getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface IntTermsOrBuilder extends
// @@protoc_insertion_point(interface_extends:luceneserver.TermInSetQuery.IntTerms)
com.google.protobuf.MessageOrBuilder {
/**
* repeated int32 terms = 1;
* @return A list containing the terms.
*/
java.util.List getTermsList();
/**
* repeated int32 terms = 1;
* @return The count of terms.
*/
int getTermsCount();
/**
* repeated int32 terms = 1;
* @param index The index of the element to return.
* @return The terms at the given index.
*/
int getTerms(int index);
}
/**
* Protobuf type {@code luceneserver.TermInSetQuery.IntTerms}
*/
public static final class IntTerms extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.TermInSetQuery.IntTerms)
IntTermsOrBuilder {
private static final long serialVersionUID = 0L;
// Use IntTerms.newBuilder() to construct.
private IntTerms(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IntTerms() {
terms_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IntTerms();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_IntTerms_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_IntTerms_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.class, com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.Builder.class);
}
public static final int TERMS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList terms_ =
emptyIntList();
/**
* repeated int32 terms = 1;
* @return A list containing the terms.
*/
@java.lang.Override
public java.util.List
getTermsList() {
return terms_;
}
/**
* repeated int32 terms = 1;
* @return The count of terms.
*/
public int getTermsCount() {
return terms_.size();
}
/**
* repeated int32 terms = 1;
* @param index The index of the element to return.
* @return The terms at the given index.
*/
public int getTerms(int index) {
return terms_.getInt(index);
}
private int termsMemoizedSerializedSize = -1;
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 {
getSerializedSize();
if (getTermsList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(termsMemoizedSerializedSize);
}
for (int i = 0; i < terms_.size(); i++) {
output.writeInt32NoTag(terms_.getInt(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < terms_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(terms_.getInt(i));
}
size += dataSize;
if (!getTermsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
termsMemoizedSerializedSize = dataSize;
}
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.TermInSetQuery.IntTerms)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms other = (com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms) obj;
if (!getTermsList()
.equals(other.getTermsList())) 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 (getTermsCount() > 0) {
hash = (37 * hash) + TERMS_FIELD_NUMBER;
hash = (53 * hash) + getTermsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms 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.TermInSetQuery.IntTerms parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms 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.TermInSetQuery.IntTerms parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms 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.TermInSetQuery.IntTerms parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms 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.TermInSetQuery.IntTerms parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms 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.TermInSetQuery.IntTerms 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.TermInSetQuery.IntTerms 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.TermInSetQuery.IntTerms 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.TermInSetQuery.IntTerms}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.TermInSetQuery.IntTerms)
com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTermsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_IntTerms_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_IntTerms_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.class, com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
terms_ = emptyIntList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_IntTerms_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms build() {
com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms buildPartial() {
com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms result = new com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
terms_.makeImmutable();
result.terms_ = terms_;
}
}
@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.TermInSetQuery.IntTerms) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms other) {
if (other == com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.getDefaultInstance()) return this;
if (!other.terms_.isEmpty()) {
if (terms_.isEmpty()) {
terms_ = other.terms_;
terms_.makeImmutable();
bitField0_ |= 0x00000001;
} else {
ensureTermsIsMutable();
terms_.addAll(other.terms_);
}
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 8: {
int v = input.readInt32();
ensureTermsIsMutable();
terms_.addInt(v);
break;
} // case 8
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureTermsIsMutable();
while (input.getBytesUntilLimit() > 0) {
terms_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
} // case 10
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.google.protobuf.Internal.IntList terms_ = emptyIntList();
private void ensureTermsIsMutable() {
if (!terms_.isModifiable()) {
terms_ = makeMutableCopy(terms_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated int32 terms = 1;
* @return A list containing the terms.
*/
public java.util.List
getTermsList() {
terms_.makeImmutable();
return terms_;
}
/**
* repeated int32 terms = 1;
* @return The count of terms.
*/
public int getTermsCount() {
return terms_.size();
}
/**
* repeated int32 terms = 1;
* @param index The index of the element to return.
* @return The terms at the given index.
*/
public int getTerms(int index) {
return terms_.getInt(index);
}
/**
* repeated int32 terms = 1;
* @param index The index to set the value at.
* @param value The terms to set.
* @return This builder for chaining.
*/
public Builder setTerms(
int index, int value) {
ensureTermsIsMutable();
terms_.setInt(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int32 terms = 1;
* @param value The terms to add.
* @return This builder for chaining.
*/
public Builder addTerms(int value) {
ensureTermsIsMutable();
terms_.addInt(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int32 terms = 1;
* @param values The terms to add.
* @return This builder for chaining.
*/
public Builder addAllTerms(
java.lang.Iterable extends java.lang.Integer> values) {
ensureTermsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, terms_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int32 terms = 1;
* @return This builder for chaining.
*/
public Builder clearTerms() {
terms_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
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.TermInSetQuery.IntTerms)
}
// @@protoc_insertion_point(class_scope:luceneserver.TermInSetQuery.IntTerms)
private static final com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms();
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IntTerms 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.TermInSetQuery.IntTerms getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface LongTermsOrBuilder extends
// @@protoc_insertion_point(interface_extends:luceneserver.TermInSetQuery.LongTerms)
com.google.protobuf.MessageOrBuilder {
/**
* repeated int64 terms = 1;
* @return A list containing the terms.
*/
java.util.List getTermsList();
/**
* repeated int64 terms = 1;
* @return The count of terms.
*/
int getTermsCount();
/**
* repeated int64 terms = 1;
* @param index The index of the element to return.
* @return The terms at the given index.
*/
long getTerms(int index);
}
/**
* Protobuf type {@code luceneserver.TermInSetQuery.LongTerms}
*/
public static final class LongTerms extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.TermInSetQuery.LongTerms)
LongTermsOrBuilder {
private static final long serialVersionUID = 0L;
// Use LongTerms.newBuilder() to construct.
private LongTerms(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LongTerms() {
terms_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LongTerms();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_LongTerms_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_LongTerms_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.class, com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.Builder.class);
}
public static final int TERMS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList terms_ =
emptyLongList();
/**
* repeated int64 terms = 1;
* @return A list containing the terms.
*/
@java.lang.Override
public java.util.List
getTermsList() {
return terms_;
}
/**
* repeated int64 terms = 1;
* @return The count of terms.
*/
public int getTermsCount() {
return terms_.size();
}
/**
* repeated int64 terms = 1;
* @param index The index of the element to return.
* @return The terms at the given index.
*/
public long getTerms(int index) {
return terms_.getLong(index);
}
private int termsMemoizedSerializedSize = -1;
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 {
getSerializedSize();
if (getTermsList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(termsMemoizedSerializedSize);
}
for (int i = 0; i < terms_.size(); i++) {
output.writeInt64NoTag(terms_.getLong(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < terms_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(terms_.getLong(i));
}
size += dataSize;
if (!getTermsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
termsMemoizedSerializedSize = dataSize;
}
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.TermInSetQuery.LongTerms)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms other = (com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms) obj;
if (!getTermsList()
.equals(other.getTermsList())) 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 (getTermsCount() > 0) {
hash = (37 * hash) + TERMS_FIELD_NUMBER;
hash = (53 * hash) + getTermsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms 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.TermInSetQuery.LongTerms parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms 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.TermInSetQuery.LongTerms parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms 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.TermInSetQuery.LongTerms parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms 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.TermInSetQuery.LongTerms parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms 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.TermInSetQuery.LongTerms 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.TermInSetQuery.LongTerms 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.TermInSetQuery.LongTerms 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.TermInSetQuery.LongTerms}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.TermInSetQuery.LongTerms)
com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTermsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_LongTerms_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_LongTerms_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.class, com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
terms_ = emptyLongList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_LongTerms_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms build() {
com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms buildPartial() {
com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms result = new com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
terms_.makeImmutable();
result.terms_ = terms_;
}
}
@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.TermInSetQuery.LongTerms) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms other) {
if (other == com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.getDefaultInstance()) return this;
if (!other.terms_.isEmpty()) {
if (terms_.isEmpty()) {
terms_ = other.terms_;
terms_.makeImmutable();
bitField0_ |= 0x00000001;
} else {
ensureTermsIsMutable();
terms_.addAll(other.terms_);
}
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 8: {
long v = input.readInt64();
ensureTermsIsMutable();
terms_.addLong(v);
break;
} // case 8
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureTermsIsMutable();
while (input.getBytesUntilLimit() > 0) {
terms_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
} // case 10
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.google.protobuf.Internal.LongList terms_ = emptyLongList();
private void ensureTermsIsMutable() {
if (!terms_.isModifiable()) {
terms_ = makeMutableCopy(terms_);
}
bitField0_ |= 0x00000001;
}
/**
* repeated int64 terms = 1;
* @return A list containing the terms.
*/
public java.util.List
getTermsList() {
terms_.makeImmutable();
return terms_;
}
/**
* repeated int64 terms = 1;
* @return The count of terms.
*/
public int getTermsCount() {
return terms_.size();
}
/**
* repeated int64 terms = 1;
* @param index The index of the element to return.
* @return The terms at the given index.
*/
public long getTerms(int index) {
return terms_.getLong(index);
}
/**
* repeated int64 terms = 1;
* @param index The index to set the value at.
* @param value The terms to set.
* @return This builder for chaining.
*/
public Builder setTerms(
int index, long value) {
ensureTermsIsMutable();
terms_.setLong(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int64 terms = 1;
* @param value The terms to add.
* @return This builder for chaining.
*/
public Builder addTerms(long value) {
ensureTermsIsMutable();
terms_.addLong(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int64 terms = 1;
* @param values The terms to add.
* @return This builder for chaining.
*/
public Builder addAllTerms(
java.lang.Iterable extends java.lang.Long> values) {
ensureTermsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, terms_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int64 terms = 1;
* @return This builder for chaining.
*/
public Builder clearTerms() {
terms_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000001);
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.TermInSetQuery.LongTerms)
}
// @@protoc_insertion_point(class_scope:luceneserver.TermInSetQuery.LongTerms)
private static final com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms();
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LongTerms 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.TermInSetQuery.LongTerms getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FloatTermsOrBuilder extends
// @@protoc_insertion_point(interface_extends:luceneserver.TermInSetQuery.FloatTerms)
com.google.protobuf.MessageOrBuilder {
/**
* repeated float terms = 1;
* @return A list containing the terms.
*/
java.util.List getTermsList();
/**
* repeated float terms = 1;
* @return The count of terms.
*/
int getTermsCount();
/**
* repeated float terms = 1;
* @param index The index of the element to return.
* @return The terms at the given index.
*/
float getTerms(int index);
}
/**
* Protobuf type {@code luceneserver.TermInSetQuery.FloatTerms}
*/
public static final class FloatTerms extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.TermInSetQuery.FloatTerms)
FloatTermsOrBuilder {
private static final long serialVersionUID = 0L;
// Use FloatTerms.newBuilder() to construct.
private FloatTerms(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FloatTerms() {
terms_ = emptyFloatList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FloatTerms();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_FloatTerms_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_FloatTerms_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.class, com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.Builder.class);
}
public static final int TERMS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.FloatList terms_ =
emptyFloatList();
/**
* repeated float terms = 1;
* @return A list containing the terms.
*/
@java.lang.Override
public java.util.List
getTermsList() {
return terms_;
}
/**
* repeated float terms = 1;
* @return The count of terms.
*/
public int getTermsCount() {
return terms_.size();
}
/**
* repeated float terms = 1;
* @param index The index of the element to return.
* @return The terms at the given index.
*/
public float getTerms(int index) {
return terms_.getFloat(index);
}
private int termsMemoizedSerializedSize = -1;
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 {
getSerializedSize();
if (getTermsList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(termsMemoizedSerializedSize);
}
for (int i = 0; i < terms_.size(); i++) {
output.writeFloatNoTag(terms_.getFloat(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
dataSize = 4 * getTermsList().size();
size += dataSize;
if (!getTermsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
termsMemoizedSerializedSize = dataSize;
}
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.TermInSetQuery.FloatTerms)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms other = (com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms) obj;
if (!getTermsList()
.equals(other.getTermsList())) 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 (getTermsCount() > 0) {
hash = (37 * hash) + TERMS_FIELD_NUMBER;
hash = (53 * hash) + getTermsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms 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.TermInSetQuery.FloatTerms parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms 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.TermInSetQuery.FloatTerms parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms 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.TermInSetQuery.FloatTerms parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms 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.TermInSetQuery.FloatTerms parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms 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.TermInSetQuery.FloatTerms 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.TermInSetQuery.FloatTerms 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.TermInSetQuery.FloatTerms 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.TermInSetQuery.FloatTerms}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.TermInSetQuery.FloatTerms)
com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTermsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_FloatTerms_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_FloatTerms_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.class, com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
terms_ = emptyFloatList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_FloatTerms_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms build() {
com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms buildPartial() {
com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms result = new com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
terms_.makeImmutable();
result.terms_ = terms_;
}
}
@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.TermInSetQuery.FloatTerms) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms other) {
if (other == com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.getDefaultInstance()) return this;
if (!other.terms_.isEmpty()) {
if (terms_.isEmpty()) {
terms_ = other.terms_;
terms_.makeImmutable();
bitField0_ |= 0x00000001;
} else {
ensureTermsIsMutable();
terms_.addAll(other.terms_);
}
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 13: {
float v = input.readFloat();
ensureTermsIsMutable();
terms_.addFloat(v);
break;
} // case 13
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensureTermsIsMutable(alloc / 4);
while (input.getBytesUntilLimit() > 0) {
terms_.addFloat(input.readFloat());
}
input.popLimit(limit);
break;
} // case 10
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.google.protobuf.Internal.FloatList terms_ = emptyFloatList();
private void ensureTermsIsMutable() {
if (!terms_.isModifiable()) {
terms_ = makeMutableCopy(terms_);
}
bitField0_ |= 0x00000001;
}
private void ensureTermsIsMutable(int capacity) {
if (!terms_.isModifiable()) {
terms_ = makeMutableCopy(terms_, capacity);
}
bitField0_ |= 0x00000001;
}
/**
* repeated float terms = 1;
* @return A list containing the terms.
*/
public java.util.List
getTermsList() {
terms_.makeImmutable();
return terms_;
}
/**
* repeated float terms = 1;
* @return The count of terms.
*/
public int getTermsCount() {
return terms_.size();
}
/**
* repeated float terms = 1;
* @param index The index of the element to return.
* @return The terms at the given index.
*/
public float getTerms(int index) {
return terms_.getFloat(index);
}
/**
* repeated float terms = 1;
* @param index The index to set the value at.
* @param value The terms to set.
* @return This builder for chaining.
*/
public Builder setTerms(
int index, float value) {
ensureTermsIsMutable();
terms_.setFloat(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated float terms = 1;
* @param value The terms to add.
* @return This builder for chaining.
*/
public Builder addTerms(float value) {
ensureTermsIsMutable();
terms_.addFloat(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated float terms = 1;
* @param values The terms to add.
* @return This builder for chaining.
*/
public Builder addAllTerms(
java.lang.Iterable extends java.lang.Float> values) {
ensureTermsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, terms_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated float terms = 1;
* @return This builder for chaining.
*/
public Builder clearTerms() {
terms_ = emptyFloatList();
bitField0_ = (bitField0_ & ~0x00000001);
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.TermInSetQuery.FloatTerms)
}
// @@protoc_insertion_point(class_scope:luceneserver.TermInSetQuery.FloatTerms)
private static final com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms();
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FloatTerms 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.TermInSetQuery.FloatTerms getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DoubleTermsOrBuilder extends
// @@protoc_insertion_point(interface_extends:luceneserver.TermInSetQuery.DoubleTerms)
com.google.protobuf.MessageOrBuilder {
/**
* repeated double terms = 1;
* @return A list containing the terms.
*/
java.util.List getTermsList();
/**
* repeated double terms = 1;
* @return The count of terms.
*/
int getTermsCount();
/**
* repeated double terms = 1;
* @param index The index of the element to return.
* @return The terms at the given index.
*/
double getTerms(int index);
}
/**
* Protobuf type {@code luceneserver.TermInSetQuery.DoubleTerms}
*/
public static final class DoubleTerms extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.TermInSetQuery.DoubleTerms)
DoubleTermsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DoubleTerms.newBuilder() to construct.
private DoubleTerms(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DoubleTerms() {
terms_ = emptyDoubleList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DoubleTerms();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_DoubleTerms_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_DoubleTerms_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.class, com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.Builder.class);
}
public static final int TERMS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.DoubleList terms_ =
emptyDoubleList();
/**
* repeated double terms = 1;
* @return A list containing the terms.
*/
@java.lang.Override
public java.util.List
getTermsList() {
return terms_;
}
/**
* repeated double terms = 1;
* @return The count of terms.
*/
public int getTermsCount() {
return terms_.size();
}
/**
* repeated double terms = 1;
* @param index The index of the element to return.
* @return The terms at the given index.
*/
public double getTerms(int index) {
return terms_.getDouble(index);
}
private int termsMemoizedSerializedSize = -1;
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 {
getSerializedSize();
if (getTermsList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(termsMemoizedSerializedSize);
}
for (int i = 0; i < terms_.size(); i++) {
output.writeDoubleNoTag(terms_.getDouble(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
dataSize = 8 * getTermsList().size();
size += dataSize;
if (!getTermsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
termsMemoizedSerializedSize = dataSize;
}
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.TermInSetQuery.DoubleTerms)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms other = (com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms) obj;
if (!getTermsList()
.equals(other.getTermsList())) 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 (getTermsCount() > 0) {
hash = (37 * hash) + TERMS_FIELD_NUMBER;
hash = (53 * hash) + getTermsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms 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.TermInSetQuery.DoubleTerms parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms 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.TermInSetQuery.DoubleTerms parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms 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.TermInSetQuery.DoubleTerms parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms 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.TermInSetQuery.DoubleTerms parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms 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.TermInSetQuery.DoubleTerms 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.TermInSetQuery.DoubleTerms 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.TermInSetQuery.DoubleTerms 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.TermInSetQuery.DoubleTerms}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.TermInSetQuery.DoubleTerms)
com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTermsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_DoubleTerms_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_DoubleTerms_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.class, com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
terms_ = emptyDoubleList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_DoubleTerms_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms build() {
com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms buildPartial() {
com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms result = new com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
terms_.makeImmutable();
result.terms_ = terms_;
}
}
@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.TermInSetQuery.DoubleTerms) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms other) {
if (other == com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.getDefaultInstance()) return this;
if (!other.terms_.isEmpty()) {
if (terms_.isEmpty()) {
terms_ = other.terms_;
terms_.makeImmutable();
bitField0_ |= 0x00000001;
} else {
ensureTermsIsMutable();
terms_.addAll(other.terms_);
}
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 9: {
double v = input.readDouble();
ensureTermsIsMutable();
terms_.addDouble(v);
break;
} // case 9
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
int alloc = length > 4096 ? 4096 : length;
ensureTermsIsMutable(alloc / 8);
while (input.getBytesUntilLimit() > 0) {
terms_.addDouble(input.readDouble());
}
input.popLimit(limit);
break;
} // case 10
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.google.protobuf.Internal.DoubleList terms_ = emptyDoubleList();
private void ensureTermsIsMutable() {
if (!terms_.isModifiable()) {
terms_ = makeMutableCopy(terms_);
}
bitField0_ |= 0x00000001;
}
private void ensureTermsIsMutable(int capacity) {
if (!terms_.isModifiable()) {
terms_ = makeMutableCopy(terms_, capacity);
}
bitField0_ |= 0x00000001;
}
/**
* repeated double terms = 1;
* @return A list containing the terms.
*/
public java.util.List
getTermsList() {
terms_.makeImmutable();
return terms_;
}
/**
* repeated double terms = 1;
* @return The count of terms.
*/
public int getTermsCount() {
return terms_.size();
}
/**
* repeated double terms = 1;
* @param index The index of the element to return.
* @return The terms at the given index.
*/
public double getTerms(int index) {
return terms_.getDouble(index);
}
/**
* repeated double terms = 1;
* @param index The index to set the value at.
* @param value The terms to set.
* @return This builder for chaining.
*/
public Builder setTerms(
int index, double value) {
ensureTermsIsMutable();
terms_.setDouble(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated double terms = 1;
* @param value The terms to add.
* @return This builder for chaining.
*/
public Builder addTerms(double value) {
ensureTermsIsMutable();
terms_.addDouble(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated double terms = 1;
* @param values The terms to add.
* @return This builder for chaining.
*/
public Builder addAllTerms(
java.lang.Iterable extends java.lang.Double> values) {
ensureTermsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, terms_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated double terms = 1;
* @return This builder for chaining.
*/
public Builder clearTerms() {
terms_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000001);
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.TermInSetQuery.DoubleTerms)
}
// @@protoc_insertion_point(class_scope:luceneserver.TermInSetQuery.DoubleTerms)
private static final com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms();
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DoubleTerms 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.TermInSetQuery.DoubleTerms getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int termTypesCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object termTypes_;
public enum TermTypesCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
TEXTTERMS(2),
INTTERMS(3),
LONGTERMS(4),
FLOATTERMS(5),
DOUBLETERMS(6),
TERMTYPES_NOT_SET(0);
private final int value;
private TermTypesCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TermTypesCase valueOf(int value) {
return forNumber(value);
}
public static TermTypesCase forNumber(int value) {
switch (value) {
case 2: return TEXTTERMS;
case 3: return INTTERMS;
case 4: return LONGTERMS;
case 5: return FLOATTERMS;
case 6: return DOUBLETERMS;
case 0: return TERMTYPES_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TermTypesCase
getTermTypesCase() {
return TermTypesCase.forNumber(
termTypesCase_);
}
public static final int FIELD_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object field_ = "";
/**
*
* Field in the document to query.
*
*
* string field = 1;
* @return The field.
*/
@java.lang.Override
public java.lang.String getField() {
java.lang.Object ref = field_;
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();
field_ = s;
return s;
}
}
/**
*
* Field in the document to query.
*
*
* string field = 1;
* @return The bytes for field.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFieldBytes() {
java.lang.Object ref = field_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
field_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TEXTTERMS_FIELD_NUMBER = 2;
/**
*
* Text terms to search for.
*
*
* .luceneserver.TermInSetQuery.TextTerms textTerms = 2;
* @return Whether the textTerms field is set.
*/
@java.lang.Override
public boolean hasTextTerms() {
return termTypesCase_ == 2;
}
/**
*
* Text terms to search for.
*
*
* .luceneserver.TermInSetQuery.TextTerms textTerms = 2;
* @return The textTerms.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms getTextTerms() {
if (termTypesCase_ == 2) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.getDefaultInstance();
}
/**
*
* Text terms to search for.
*
*
* .luceneserver.TermInSetQuery.TextTerms textTerms = 2;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTermsOrBuilder getTextTermsOrBuilder() {
if (termTypesCase_ == 2) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.getDefaultInstance();
}
public static final int INTTERMS_FIELD_NUMBER = 3;
/**
*
* Int terms to search for.
*
*
* .luceneserver.TermInSetQuery.IntTerms intTerms = 3;
* @return Whether the intTerms field is set.
*/
@java.lang.Override
public boolean hasIntTerms() {
return termTypesCase_ == 3;
}
/**
*
* Int terms to search for.
*
*
* .luceneserver.TermInSetQuery.IntTerms intTerms = 3;
* @return The intTerms.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms getIntTerms() {
if (termTypesCase_ == 3) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.getDefaultInstance();
}
/**
*
* Int terms to search for.
*
*
* .luceneserver.TermInSetQuery.IntTerms intTerms = 3;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTermsOrBuilder getIntTermsOrBuilder() {
if (termTypesCase_ == 3) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.getDefaultInstance();
}
public static final int LONGTERMS_FIELD_NUMBER = 4;
/**
*
* Long terms to search for.
*
*
* .luceneserver.TermInSetQuery.LongTerms longTerms = 4;
* @return Whether the longTerms field is set.
*/
@java.lang.Override
public boolean hasLongTerms() {
return termTypesCase_ == 4;
}
/**
*
* Long terms to search for.
*
*
* .luceneserver.TermInSetQuery.LongTerms longTerms = 4;
* @return The longTerms.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms getLongTerms() {
if (termTypesCase_ == 4) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.getDefaultInstance();
}
/**
*
* Long terms to search for.
*
*
* .luceneserver.TermInSetQuery.LongTerms longTerms = 4;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTermsOrBuilder getLongTermsOrBuilder() {
if (termTypesCase_ == 4) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.getDefaultInstance();
}
public static final int FLOATTERMS_FIELD_NUMBER = 5;
/**
*
* Float terms to search for.
*
*
* .luceneserver.TermInSetQuery.FloatTerms floatTerms = 5;
* @return Whether the floatTerms field is set.
*/
@java.lang.Override
public boolean hasFloatTerms() {
return termTypesCase_ == 5;
}
/**
*
* Float terms to search for.
*
*
* .luceneserver.TermInSetQuery.FloatTerms floatTerms = 5;
* @return The floatTerms.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms getFloatTerms() {
if (termTypesCase_ == 5) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.getDefaultInstance();
}
/**
*
* Float terms to search for.
*
*
* .luceneserver.TermInSetQuery.FloatTerms floatTerms = 5;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTermsOrBuilder getFloatTermsOrBuilder() {
if (termTypesCase_ == 5) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.getDefaultInstance();
}
public static final int DOUBLETERMS_FIELD_NUMBER = 6;
/**
*
* Double terms to search for.
*
*
* .luceneserver.TermInSetQuery.DoubleTerms doubleTerms = 6;
* @return Whether the doubleTerms field is set.
*/
@java.lang.Override
public boolean hasDoubleTerms() {
return termTypesCase_ == 6;
}
/**
*
* Double terms to search for.
*
*
* .luceneserver.TermInSetQuery.DoubleTerms doubleTerms = 6;
* @return The doubleTerms.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms getDoubleTerms() {
if (termTypesCase_ == 6) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.getDefaultInstance();
}
/**
*
* Double terms to search for.
*
*
* .luceneserver.TermInSetQuery.DoubleTerms doubleTerms = 6;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTermsOrBuilder getDoubleTermsOrBuilder() {
if (termTypesCase_ == 6) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.getDefaultInstance();
}
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(field_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_);
}
if (termTypesCase_ == 2) {
output.writeMessage(2, (com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms) termTypes_);
}
if (termTypesCase_ == 3) {
output.writeMessage(3, (com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms) termTypes_);
}
if (termTypesCase_ == 4) {
output.writeMessage(4, (com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms) termTypes_);
}
if (termTypesCase_ == 5) {
output.writeMessage(5, (com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms) termTypes_);
}
if (termTypesCase_ == 6) {
output.writeMessage(6, (com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms) termTypes_);
}
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(field_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_);
}
if (termTypesCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms) termTypes_);
}
if (termTypesCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms) termTypes_);
}
if (termTypesCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms) termTypes_);
}
if (termTypesCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms) termTypes_);
}
if (termTypesCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms) termTypes_);
}
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.TermInSetQuery)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.TermInSetQuery other = (com.yelp.nrtsearch.server.grpc.TermInSetQuery) obj;
if (!getField()
.equals(other.getField())) return false;
if (!getTermTypesCase().equals(other.getTermTypesCase())) return false;
switch (termTypesCase_) {
case 2:
if (!getTextTerms()
.equals(other.getTextTerms())) return false;
break;
case 3:
if (!getIntTerms()
.equals(other.getIntTerms())) return false;
break;
case 4:
if (!getLongTerms()
.equals(other.getLongTerms())) return false;
break;
case 5:
if (!getFloatTerms()
.equals(other.getFloatTerms())) return false;
break;
case 6:
if (!getDoubleTerms()
.equals(other.getDoubleTerms())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FIELD_FIELD_NUMBER;
hash = (53 * hash) + getField().hashCode();
switch (termTypesCase_) {
case 2:
hash = (37 * hash) + TEXTTERMS_FIELD_NUMBER;
hash = (53 * hash) + getTextTerms().hashCode();
break;
case 3:
hash = (37 * hash) + INTTERMS_FIELD_NUMBER;
hash = (53 * hash) + getIntTerms().hashCode();
break;
case 4:
hash = (37 * hash) + LONGTERMS_FIELD_NUMBER;
hash = (53 * hash) + getLongTerms().hashCode();
break;
case 5:
hash = (37 * hash) + FLOATTERMS_FIELD_NUMBER;
hash = (53 * hash) + getFloatTerms().hashCode();
break;
case 6:
hash = (37 * hash) + DOUBLETERMS_FIELD_NUMBER;
hash = (53 * hash) + getDoubleTerms().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery 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.TermInSetQuery parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery 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.TermInSetQuery parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery 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.TermInSetQuery parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery 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.TermInSetQuery parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery 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.TermInSetQuery 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.TermInSetQuery 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.TermInSetQuery 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;
}
/**
*
* Specialization for a disjunction over many terms that behaves like a ConstantScoreQuery over a BooleanQuery containing only BooleanClause.Occur.SHOULD clauses. Only ONE of the types of terms needs to be provided - the one that matches the type of the field.
*
*
* Protobuf type {@code luceneserver.TermInSetQuery}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.TermInSetQuery)
com.yelp.nrtsearch.server.grpc.TermInSetQueryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.class, com.yelp.nrtsearch.server.grpc.TermInSetQuery.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.TermInSetQuery.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
field_ = "";
if (textTermsBuilder_ != null) {
textTermsBuilder_.clear();
}
if (intTermsBuilder_ != null) {
intTermsBuilder_.clear();
}
if (longTermsBuilder_ != null) {
longTermsBuilder_.clear();
}
if (floatTermsBuilder_ != null) {
floatTermsBuilder_.clear();
}
if (doubleTermsBuilder_ != null) {
doubleTermsBuilder_.clear();
}
termTypesCase_ = 0;
termTypes_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_TermInSetQuery_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery build() {
com.yelp.nrtsearch.server.grpc.TermInSetQuery result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery buildPartial() {
com.yelp.nrtsearch.server.grpc.TermInSetQuery result = new com.yelp.nrtsearch.server.grpc.TermInSetQuery(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.TermInSetQuery result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.field_ = field_;
}
}
private void buildPartialOneofs(com.yelp.nrtsearch.server.grpc.TermInSetQuery result) {
result.termTypesCase_ = termTypesCase_;
result.termTypes_ = this.termTypes_;
if (termTypesCase_ == 2 &&
textTermsBuilder_ != null) {
result.termTypes_ = textTermsBuilder_.build();
}
if (termTypesCase_ == 3 &&
intTermsBuilder_ != null) {
result.termTypes_ = intTermsBuilder_.build();
}
if (termTypesCase_ == 4 &&
longTermsBuilder_ != null) {
result.termTypes_ = longTermsBuilder_.build();
}
if (termTypesCase_ == 5 &&
floatTermsBuilder_ != null) {
result.termTypes_ = floatTermsBuilder_.build();
}
if (termTypesCase_ == 6 &&
doubleTermsBuilder_ != null) {
result.termTypes_ = doubleTermsBuilder_.build();
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yelp.nrtsearch.server.grpc.TermInSetQuery) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.TermInSetQuery)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.TermInSetQuery other) {
if (other == com.yelp.nrtsearch.server.grpc.TermInSetQuery.getDefaultInstance()) return this;
if (!other.getField().isEmpty()) {
field_ = other.field_;
bitField0_ |= 0x00000001;
onChanged();
}
switch (other.getTermTypesCase()) {
case TEXTTERMS: {
mergeTextTerms(other.getTextTerms());
break;
}
case INTTERMS: {
mergeIntTerms(other.getIntTerms());
break;
}
case LONGTERMS: {
mergeLongTerms(other.getLongTerms());
break;
}
case FLOATTERMS: {
mergeFloatTerms(other.getFloatTerms());
break;
}
case DOUBLETERMS: {
mergeDoubleTerms(other.getDoubleTerms());
break;
}
case TERMTYPES_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
field_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getTextTermsFieldBuilder().getBuilder(),
extensionRegistry);
termTypesCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getIntTermsFieldBuilder().getBuilder(),
extensionRegistry);
termTypesCase_ = 3;
break;
} // case 26
case 34: {
input.readMessage(
getLongTermsFieldBuilder().getBuilder(),
extensionRegistry);
termTypesCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getFloatTermsFieldBuilder().getBuilder(),
extensionRegistry);
termTypesCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getDoubleTermsFieldBuilder().getBuilder(),
extensionRegistry);
termTypesCase_ = 6;
break;
} // case 50
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 termTypesCase_ = 0;
private java.lang.Object termTypes_;
public TermTypesCase
getTermTypesCase() {
return TermTypesCase.forNumber(
termTypesCase_);
}
public Builder clearTermTypes() {
termTypesCase_ = 0;
termTypes_ = null;
onChanged();
return this;
}
private int bitField0_;
private java.lang.Object field_ = "";
/**
*
* Field in the document to query.
*
*
* string field = 1;
* @return The field.
*/
public java.lang.String getField() {
java.lang.Object ref = field_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
field_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Field in the document to query.
*
*
* string field = 1;
* @return The bytes for field.
*/
public com.google.protobuf.ByteString
getFieldBytes() {
java.lang.Object ref = field_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
field_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Field in the document to query.
*
*
* string field = 1;
* @param value The field to set.
* @return This builder for chaining.
*/
public Builder setField(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
field_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Field in the document to query.
*
*
* string field = 1;
* @return This builder for chaining.
*/
public Builder clearField() {
field_ = getDefaultInstance().getField();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Field in the document to query.
*
*
* string field = 1;
* @param value The bytes for field to set.
* @return This builder for chaining.
*/
public Builder setFieldBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
field_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms, com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTermsOrBuilder> textTermsBuilder_;
/**
*
* Text terms to search for.
*
*
* .luceneserver.TermInSetQuery.TextTerms textTerms = 2;
* @return Whether the textTerms field is set.
*/
@java.lang.Override
public boolean hasTextTerms() {
return termTypesCase_ == 2;
}
/**
*
* Text terms to search for.
*
*
* .luceneserver.TermInSetQuery.TextTerms textTerms = 2;
* @return The textTerms.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms getTextTerms() {
if (textTermsBuilder_ == null) {
if (termTypesCase_ == 2) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.getDefaultInstance();
} else {
if (termTypesCase_ == 2) {
return textTermsBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.getDefaultInstance();
}
}
/**
*
* Text terms to search for.
*
*
* .luceneserver.TermInSetQuery.TextTerms textTerms = 2;
*/
public Builder setTextTerms(com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms value) {
if (textTermsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
termTypes_ = value;
onChanged();
} else {
textTermsBuilder_.setMessage(value);
}
termTypesCase_ = 2;
return this;
}
/**
*
* Text terms to search for.
*
*
* .luceneserver.TermInSetQuery.TextTerms textTerms = 2;
*/
public Builder setTextTerms(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.Builder builderForValue) {
if (textTermsBuilder_ == null) {
termTypes_ = builderForValue.build();
onChanged();
} else {
textTermsBuilder_.setMessage(builderForValue.build());
}
termTypesCase_ = 2;
return this;
}
/**
*
* Text terms to search for.
*
*
* .luceneserver.TermInSetQuery.TextTerms textTerms = 2;
*/
public Builder mergeTextTerms(com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms value) {
if (textTermsBuilder_ == null) {
if (termTypesCase_ == 2 &&
termTypes_ != com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.getDefaultInstance()) {
termTypes_ = com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.newBuilder((com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms) termTypes_)
.mergeFrom(value).buildPartial();
} else {
termTypes_ = value;
}
onChanged();
} else {
if (termTypesCase_ == 2) {
textTermsBuilder_.mergeFrom(value);
} else {
textTermsBuilder_.setMessage(value);
}
}
termTypesCase_ = 2;
return this;
}
/**
*
* Text terms to search for.
*
*
* .luceneserver.TermInSetQuery.TextTerms textTerms = 2;
*/
public Builder clearTextTerms() {
if (textTermsBuilder_ == null) {
if (termTypesCase_ == 2) {
termTypesCase_ = 0;
termTypes_ = null;
onChanged();
}
} else {
if (termTypesCase_ == 2) {
termTypesCase_ = 0;
termTypes_ = null;
}
textTermsBuilder_.clear();
}
return this;
}
/**
*
* Text terms to search for.
*
*
* .luceneserver.TermInSetQuery.TextTerms textTerms = 2;
*/
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.Builder getTextTermsBuilder() {
return getTextTermsFieldBuilder().getBuilder();
}
/**
*
* Text terms to search for.
*
*
* .luceneserver.TermInSetQuery.TextTerms textTerms = 2;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTermsOrBuilder getTextTermsOrBuilder() {
if ((termTypesCase_ == 2) && (textTermsBuilder_ != null)) {
return textTermsBuilder_.getMessageOrBuilder();
} else {
if (termTypesCase_ == 2) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.getDefaultInstance();
}
}
/**
*
* Text terms to search for.
*
*
* .luceneserver.TermInSetQuery.TextTerms textTerms = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms, com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTermsOrBuilder>
getTextTermsFieldBuilder() {
if (textTermsBuilder_ == null) {
if (!(termTypesCase_ == 2)) {
termTypes_ = com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.getDefaultInstance();
}
textTermsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms, com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTermsOrBuilder>(
(com.yelp.nrtsearch.server.grpc.TermInSetQuery.TextTerms) termTypes_,
getParentForChildren(),
isClean());
termTypes_ = null;
}
termTypesCase_ = 2;
onChanged();
return textTermsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms, com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTermsOrBuilder> intTermsBuilder_;
/**
*
* Int terms to search for.
*
*
* .luceneserver.TermInSetQuery.IntTerms intTerms = 3;
* @return Whether the intTerms field is set.
*/
@java.lang.Override
public boolean hasIntTerms() {
return termTypesCase_ == 3;
}
/**
*
* Int terms to search for.
*
*
* .luceneserver.TermInSetQuery.IntTerms intTerms = 3;
* @return The intTerms.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms getIntTerms() {
if (intTermsBuilder_ == null) {
if (termTypesCase_ == 3) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.getDefaultInstance();
} else {
if (termTypesCase_ == 3) {
return intTermsBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.getDefaultInstance();
}
}
/**
*
* Int terms to search for.
*
*
* .luceneserver.TermInSetQuery.IntTerms intTerms = 3;
*/
public Builder setIntTerms(com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms value) {
if (intTermsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
termTypes_ = value;
onChanged();
} else {
intTermsBuilder_.setMessage(value);
}
termTypesCase_ = 3;
return this;
}
/**
*
* Int terms to search for.
*
*
* .luceneserver.TermInSetQuery.IntTerms intTerms = 3;
*/
public Builder setIntTerms(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.Builder builderForValue) {
if (intTermsBuilder_ == null) {
termTypes_ = builderForValue.build();
onChanged();
} else {
intTermsBuilder_.setMessage(builderForValue.build());
}
termTypesCase_ = 3;
return this;
}
/**
*
* Int terms to search for.
*
*
* .luceneserver.TermInSetQuery.IntTerms intTerms = 3;
*/
public Builder mergeIntTerms(com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms value) {
if (intTermsBuilder_ == null) {
if (termTypesCase_ == 3 &&
termTypes_ != com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.getDefaultInstance()) {
termTypes_ = com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.newBuilder((com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms) termTypes_)
.mergeFrom(value).buildPartial();
} else {
termTypes_ = value;
}
onChanged();
} else {
if (termTypesCase_ == 3) {
intTermsBuilder_.mergeFrom(value);
} else {
intTermsBuilder_.setMessage(value);
}
}
termTypesCase_ = 3;
return this;
}
/**
*
* Int terms to search for.
*
*
* .luceneserver.TermInSetQuery.IntTerms intTerms = 3;
*/
public Builder clearIntTerms() {
if (intTermsBuilder_ == null) {
if (termTypesCase_ == 3) {
termTypesCase_ = 0;
termTypes_ = null;
onChanged();
}
} else {
if (termTypesCase_ == 3) {
termTypesCase_ = 0;
termTypes_ = null;
}
intTermsBuilder_.clear();
}
return this;
}
/**
*
* Int terms to search for.
*
*
* .luceneserver.TermInSetQuery.IntTerms intTerms = 3;
*/
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.Builder getIntTermsBuilder() {
return getIntTermsFieldBuilder().getBuilder();
}
/**
*
* Int terms to search for.
*
*
* .luceneserver.TermInSetQuery.IntTerms intTerms = 3;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTermsOrBuilder getIntTermsOrBuilder() {
if ((termTypesCase_ == 3) && (intTermsBuilder_ != null)) {
return intTermsBuilder_.getMessageOrBuilder();
} else {
if (termTypesCase_ == 3) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.getDefaultInstance();
}
}
/**
*
* Int terms to search for.
*
*
* .luceneserver.TermInSetQuery.IntTerms intTerms = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms, com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTermsOrBuilder>
getIntTermsFieldBuilder() {
if (intTermsBuilder_ == null) {
if (!(termTypesCase_ == 3)) {
termTypes_ = com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.getDefaultInstance();
}
intTermsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms, com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTermsOrBuilder>(
(com.yelp.nrtsearch.server.grpc.TermInSetQuery.IntTerms) termTypes_,
getParentForChildren(),
isClean());
termTypes_ = null;
}
termTypesCase_ = 3;
onChanged();
return intTermsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms, com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTermsOrBuilder> longTermsBuilder_;
/**
*
* Long terms to search for.
*
*
* .luceneserver.TermInSetQuery.LongTerms longTerms = 4;
* @return Whether the longTerms field is set.
*/
@java.lang.Override
public boolean hasLongTerms() {
return termTypesCase_ == 4;
}
/**
*
* Long terms to search for.
*
*
* .luceneserver.TermInSetQuery.LongTerms longTerms = 4;
* @return The longTerms.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms getLongTerms() {
if (longTermsBuilder_ == null) {
if (termTypesCase_ == 4) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.getDefaultInstance();
} else {
if (termTypesCase_ == 4) {
return longTermsBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.getDefaultInstance();
}
}
/**
*
* Long terms to search for.
*
*
* .luceneserver.TermInSetQuery.LongTerms longTerms = 4;
*/
public Builder setLongTerms(com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms value) {
if (longTermsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
termTypes_ = value;
onChanged();
} else {
longTermsBuilder_.setMessage(value);
}
termTypesCase_ = 4;
return this;
}
/**
*
* Long terms to search for.
*
*
* .luceneserver.TermInSetQuery.LongTerms longTerms = 4;
*/
public Builder setLongTerms(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.Builder builderForValue) {
if (longTermsBuilder_ == null) {
termTypes_ = builderForValue.build();
onChanged();
} else {
longTermsBuilder_.setMessage(builderForValue.build());
}
termTypesCase_ = 4;
return this;
}
/**
*
* Long terms to search for.
*
*
* .luceneserver.TermInSetQuery.LongTerms longTerms = 4;
*/
public Builder mergeLongTerms(com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms value) {
if (longTermsBuilder_ == null) {
if (termTypesCase_ == 4 &&
termTypes_ != com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.getDefaultInstance()) {
termTypes_ = com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.newBuilder((com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms) termTypes_)
.mergeFrom(value).buildPartial();
} else {
termTypes_ = value;
}
onChanged();
} else {
if (termTypesCase_ == 4) {
longTermsBuilder_.mergeFrom(value);
} else {
longTermsBuilder_.setMessage(value);
}
}
termTypesCase_ = 4;
return this;
}
/**
*
* Long terms to search for.
*
*
* .luceneserver.TermInSetQuery.LongTerms longTerms = 4;
*/
public Builder clearLongTerms() {
if (longTermsBuilder_ == null) {
if (termTypesCase_ == 4) {
termTypesCase_ = 0;
termTypes_ = null;
onChanged();
}
} else {
if (termTypesCase_ == 4) {
termTypesCase_ = 0;
termTypes_ = null;
}
longTermsBuilder_.clear();
}
return this;
}
/**
*
* Long terms to search for.
*
*
* .luceneserver.TermInSetQuery.LongTerms longTerms = 4;
*/
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.Builder getLongTermsBuilder() {
return getLongTermsFieldBuilder().getBuilder();
}
/**
*
* Long terms to search for.
*
*
* .luceneserver.TermInSetQuery.LongTerms longTerms = 4;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTermsOrBuilder getLongTermsOrBuilder() {
if ((termTypesCase_ == 4) && (longTermsBuilder_ != null)) {
return longTermsBuilder_.getMessageOrBuilder();
} else {
if (termTypesCase_ == 4) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.getDefaultInstance();
}
}
/**
*
* Long terms to search for.
*
*
* .luceneserver.TermInSetQuery.LongTerms longTerms = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms, com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTermsOrBuilder>
getLongTermsFieldBuilder() {
if (longTermsBuilder_ == null) {
if (!(termTypesCase_ == 4)) {
termTypes_ = com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.getDefaultInstance();
}
longTermsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms, com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTermsOrBuilder>(
(com.yelp.nrtsearch.server.grpc.TermInSetQuery.LongTerms) termTypes_,
getParentForChildren(),
isClean());
termTypes_ = null;
}
termTypesCase_ = 4;
onChanged();
return longTermsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms, com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTermsOrBuilder> floatTermsBuilder_;
/**
*
* Float terms to search for.
*
*
* .luceneserver.TermInSetQuery.FloatTerms floatTerms = 5;
* @return Whether the floatTerms field is set.
*/
@java.lang.Override
public boolean hasFloatTerms() {
return termTypesCase_ == 5;
}
/**
*
* Float terms to search for.
*
*
* .luceneserver.TermInSetQuery.FloatTerms floatTerms = 5;
* @return The floatTerms.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms getFloatTerms() {
if (floatTermsBuilder_ == null) {
if (termTypesCase_ == 5) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.getDefaultInstance();
} else {
if (termTypesCase_ == 5) {
return floatTermsBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.getDefaultInstance();
}
}
/**
*
* Float terms to search for.
*
*
* .luceneserver.TermInSetQuery.FloatTerms floatTerms = 5;
*/
public Builder setFloatTerms(com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms value) {
if (floatTermsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
termTypes_ = value;
onChanged();
} else {
floatTermsBuilder_.setMessage(value);
}
termTypesCase_ = 5;
return this;
}
/**
*
* Float terms to search for.
*
*
* .luceneserver.TermInSetQuery.FloatTerms floatTerms = 5;
*/
public Builder setFloatTerms(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.Builder builderForValue) {
if (floatTermsBuilder_ == null) {
termTypes_ = builderForValue.build();
onChanged();
} else {
floatTermsBuilder_.setMessage(builderForValue.build());
}
termTypesCase_ = 5;
return this;
}
/**
*
* Float terms to search for.
*
*
* .luceneserver.TermInSetQuery.FloatTerms floatTerms = 5;
*/
public Builder mergeFloatTerms(com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms value) {
if (floatTermsBuilder_ == null) {
if (termTypesCase_ == 5 &&
termTypes_ != com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.getDefaultInstance()) {
termTypes_ = com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.newBuilder((com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms) termTypes_)
.mergeFrom(value).buildPartial();
} else {
termTypes_ = value;
}
onChanged();
} else {
if (termTypesCase_ == 5) {
floatTermsBuilder_.mergeFrom(value);
} else {
floatTermsBuilder_.setMessage(value);
}
}
termTypesCase_ = 5;
return this;
}
/**
*
* Float terms to search for.
*
*
* .luceneserver.TermInSetQuery.FloatTerms floatTerms = 5;
*/
public Builder clearFloatTerms() {
if (floatTermsBuilder_ == null) {
if (termTypesCase_ == 5) {
termTypesCase_ = 0;
termTypes_ = null;
onChanged();
}
} else {
if (termTypesCase_ == 5) {
termTypesCase_ = 0;
termTypes_ = null;
}
floatTermsBuilder_.clear();
}
return this;
}
/**
*
* Float terms to search for.
*
*
* .luceneserver.TermInSetQuery.FloatTerms floatTerms = 5;
*/
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.Builder getFloatTermsBuilder() {
return getFloatTermsFieldBuilder().getBuilder();
}
/**
*
* Float terms to search for.
*
*
* .luceneserver.TermInSetQuery.FloatTerms floatTerms = 5;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTermsOrBuilder getFloatTermsOrBuilder() {
if ((termTypesCase_ == 5) && (floatTermsBuilder_ != null)) {
return floatTermsBuilder_.getMessageOrBuilder();
} else {
if (termTypesCase_ == 5) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.getDefaultInstance();
}
}
/**
*
* Float terms to search for.
*
*
* .luceneserver.TermInSetQuery.FloatTerms floatTerms = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms, com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTermsOrBuilder>
getFloatTermsFieldBuilder() {
if (floatTermsBuilder_ == null) {
if (!(termTypesCase_ == 5)) {
termTypes_ = com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.getDefaultInstance();
}
floatTermsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms, com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTermsOrBuilder>(
(com.yelp.nrtsearch.server.grpc.TermInSetQuery.FloatTerms) termTypes_,
getParentForChildren(),
isClean());
termTypes_ = null;
}
termTypesCase_ = 5;
onChanged();
return floatTermsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms, com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTermsOrBuilder> doubleTermsBuilder_;
/**
*
* Double terms to search for.
*
*
* .luceneserver.TermInSetQuery.DoubleTerms doubleTerms = 6;
* @return Whether the doubleTerms field is set.
*/
@java.lang.Override
public boolean hasDoubleTerms() {
return termTypesCase_ == 6;
}
/**
*
* Double terms to search for.
*
*
* .luceneserver.TermInSetQuery.DoubleTerms doubleTerms = 6;
* @return The doubleTerms.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms getDoubleTerms() {
if (doubleTermsBuilder_ == null) {
if (termTypesCase_ == 6) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.getDefaultInstance();
} else {
if (termTypesCase_ == 6) {
return doubleTermsBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.getDefaultInstance();
}
}
/**
*
* Double terms to search for.
*
*
* .luceneserver.TermInSetQuery.DoubleTerms doubleTerms = 6;
*/
public Builder setDoubleTerms(com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms value) {
if (doubleTermsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
termTypes_ = value;
onChanged();
} else {
doubleTermsBuilder_.setMessage(value);
}
termTypesCase_ = 6;
return this;
}
/**
*
* Double terms to search for.
*
*
* .luceneserver.TermInSetQuery.DoubleTerms doubleTerms = 6;
*/
public Builder setDoubleTerms(
com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.Builder builderForValue) {
if (doubleTermsBuilder_ == null) {
termTypes_ = builderForValue.build();
onChanged();
} else {
doubleTermsBuilder_.setMessage(builderForValue.build());
}
termTypesCase_ = 6;
return this;
}
/**
*
* Double terms to search for.
*
*
* .luceneserver.TermInSetQuery.DoubleTerms doubleTerms = 6;
*/
public Builder mergeDoubleTerms(com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms value) {
if (doubleTermsBuilder_ == null) {
if (termTypesCase_ == 6 &&
termTypes_ != com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.getDefaultInstance()) {
termTypes_ = com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.newBuilder((com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms) termTypes_)
.mergeFrom(value).buildPartial();
} else {
termTypes_ = value;
}
onChanged();
} else {
if (termTypesCase_ == 6) {
doubleTermsBuilder_.mergeFrom(value);
} else {
doubleTermsBuilder_.setMessage(value);
}
}
termTypesCase_ = 6;
return this;
}
/**
*
* Double terms to search for.
*
*
* .luceneserver.TermInSetQuery.DoubleTerms doubleTerms = 6;
*/
public Builder clearDoubleTerms() {
if (doubleTermsBuilder_ == null) {
if (termTypesCase_ == 6) {
termTypesCase_ = 0;
termTypes_ = null;
onChanged();
}
} else {
if (termTypesCase_ == 6) {
termTypesCase_ = 0;
termTypes_ = null;
}
doubleTermsBuilder_.clear();
}
return this;
}
/**
*
* Double terms to search for.
*
*
* .luceneserver.TermInSetQuery.DoubleTerms doubleTerms = 6;
*/
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.Builder getDoubleTermsBuilder() {
return getDoubleTermsFieldBuilder().getBuilder();
}
/**
*
* Double terms to search for.
*
*
* .luceneserver.TermInSetQuery.DoubleTerms doubleTerms = 6;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTermsOrBuilder getDoubleTermsOrBuilder() {
if ((termTypesCase_ == 6) && (doubleTermsBuilder_ != null)) {
return doubleTermsBuilder_.getMessageOrBuilder();
} else {
if (termTypesCase_ == 6) {
return (com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms) termTypes_;
}
return com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.getDefaultInstance();
}
}
/**
*
* Double terms to search for.
*
*
* .luceneserver.TermInSetQuery.DoubleTerms doubleTerms = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms, com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTermsOrBuilder>
getDoubleTermsFieldBuilder() {
if (doubleTermsBuilder_ == null) {
if (!(termTypesCase_ == 6)) {
termTypes_ = com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.getDefaultInstance();
}
doubleTermsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms, com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms.Builder, com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTermsOrBuilder>(
(com.yelp.nrtsearch.server.grpc.TermInSetQuery.DoubleTerms) termTypes_,
getParentForChildren(),
isClean());
termTypes_ = null;
}
termTypesCase_ = 6;
onChanged();
return doubleTermsBuilder_;
}
@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.TermInSetQuery)
}
// @@protoc_insertion_point(class_scope:luceneserver.TermInSetQuery)
private static final com.yelp.nrtsearch.server.grpc.TermInSetQuery DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.TermInSetQuery();
}
public static com.yelp.nrtsearch.server.grpc.TermInSetQuery getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TermInSetQuery 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.TermInSetQuery getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}