com.yelp.nrtsearch.server.grpc.RangeQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clientlib Show documentation
Show all versions of clientlib Show documentation
GRPC Clientlib for nrtSearch
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yelp/nrtsearch/search.proto
// Protobuf Java Version: 3.25.3
package com.yelp.nrtsearch.server.grpc;
/**
*
* A query that matches documents with values within the specified range. The lower and upper values though provided as strings will be converted to the type of the field. This works with INT, LONG, FLOAT, DOUBLE and DATE_TIME field types.
*
*
* Protobuf type {@code luceneserver.RangeQuery}
*/
public final class RangeQuery extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.RangeQuery)
RangeQueryOrBuilder {
private static final long serialVersionUID = 0L;
// Use RangeQuery.newBuilder() to construct.
private RangeQuery(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RangeQuery() {
field_ = "";
lower_ = "";
upper_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RangeQuery();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_RangeQuery_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_RangeQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.RangeQuery.class, com.yelp.nrtsearch.server.grpc.RangeQuery.Builder.class);
}
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 LOWER_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object lower_ = "";
/**
*
* Lower bound, inclusive by default
*
*
* string lower = 2;
* @return The lower.
*/
@java.lang.Override
public java.lang.String getLower() {
java.lang.Object ref = lower_;
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();
lower_ = s;
return s;
}
}
/**
*
* Lower bound, inclusive by default
*
*
* string lower = 2;
* @return The bytes for lower.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getLowerBytes() {
java.lang.Object ref = lower_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lower_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UPPER_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object upper_ = "";
/**
*
* Upper bound, inclusive by default
*
*
* string upper = 3;
* @return The upper.
*/
@java.lang.Override
public java.lang.String getUpper() {
java.lang.Object ref = upper_;
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();
upper_ = s;
return s;
}
}
/**
*
* Upper bound, inclusive by default
*
*
* string upper = 3;
* @return The bytes for upper.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUpperBytes() {
java.lang.Object ref = upper_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
upper_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOWEREXCLUSIVE_FIELD_NUMBER = 4;
private boolean lowerExclusive_ = false;
/**
*
* Set true to make lower bound exclusive
*
*
* bool lowerExclusive = 4;
* @return The lowerExclusive.
*/
@java.lang.Override
public boolean getLowerExclusive() {
return lowerExclusive_;
}
public static final int UPPEREXCLUSIVE_FIELD_NUMBER = 5;
private boolean upperExclusive_ = false;
/**
*
* Set true to make upper bound exclusive
*
*
* bool upperExclusive = 5;
* @return The upperExclusive.
*/
@java.lang.Override
public boolean getUpperExclusive() {
return upperExclusive_;
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lower_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, lower_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upper_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, upper_);
}
if (lowerExclusive_ != false) {
output.writeBool(4, lowerExclusive_);
}
if (upperExclusive_ != false) {
output.writeBool(5, upperExclusive_);
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lower_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, lower_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upper_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, upper_);
}
if (lowerExclusive_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, lowerExclusive_);
}
if (upperExclusive_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, upperExclusive_);
}
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.RangeQuery)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.RangeQuery other = (com.yelp.nrtsearch.server.grpc.RangeQuery) obj;
if (!getField()
.equals(other.getField())) return false;
if (!getLower()
.equals(other.getLower())) return false;
if (!getUpper()
.equals(other.getUpper())) return false;
if (getLowerExclusive()
!= other.getLowerExclusive()) return false;
if (getUpperExclusive()
!= other.getUpperExclusive()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FIELD_FIELD_NUMBER;
hash = (53 * hash) + getField().hashCode();
hash = (37 * hash) + LOWER_FIELD_NUMBER;
hash = (53 * hash) + getLower().hashCode();
hash = (37 * hash) + UPPER_FIELD_NUMBER;
hash = (53 * hash) + getUpper().hashCode();
hash = (37 * hash) + LOWEREXCLUSIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getLowerExclusive());
hash = (37 * hash) + UPPEREXCLUSIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUpperExclusive());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.RangeQuery parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.RangeQuery 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.RangeQuery parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.RangeQuery 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.RangeQuery parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.RangeQuery 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.RangeQuery parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.RangeQuery 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.RangeQuery parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.RangeQuery 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.RangeQuery 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.RangeQuery 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.RangeQuery prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* A query that matches documents with values within the specified range. The lower and upper values though provided as strings will be converted to the type of the field. This works with INT, LONG, FLOAT, DOUBLE and DATE_TIME field types.
*
*
* Protobuf type {@code luceneserver.RangeQuery}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.RangeQuery)
com.yelp.nrtsearch.server.grpc.RangeQueryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_RangeQuery_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_RangeQuery_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.RangeQuery.class, com.yelp.nrtsearch.server.grpc.RangeQuery.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.RangeQuery.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
field_ = "";
lower_ = "";
upper_ = "";
lowerExclusive_ = false;
upperExclusive_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_RangeQuery_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.RangeQuery getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.RangeQuery.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.RangeQuery build() {
com.yelp.nrtsearch.server.grpc.RangeQuery result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.RangeQuery buildPartial() {
com.yelp.nrtsearch.server.grpc.RangeQuery result = new com.yelp.nrtsearch.server.grpc.RangeQuery(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.RangeQuery result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.field_ = field_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.lower_ = lower_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.upper_ = upper_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.lowerExclusive_ = lowerExclusive_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.upperExclusive_ = upperExclusive_;
}
}
@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.RangeQuery) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.RangeQuery)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.RangeQuery other) {
if (other == com.yelp.nrtsearch.server.grpc.RangeQuery.getDefaultInstance()) return this;
if (!other.getField().isEmpty()) {
field_ = other.field_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getLower().isEmpty()) {
lower_ = other.lower_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getUpper().isEmpty()) {
upper_ = other.upper_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.getLowerExclusive() != false) {
setLowerExclusive(other.getLowerExclusive());
}
if (other.getUpperExclusive() != false) {
setUpperExclusive(other.getUpperExclusive());
}
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: {
lower_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
upper_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32: {
lowerExclusive_ = input.readBool();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
upperExclusive_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object 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 java.lang.Object lower_ = "";
/**
*
* Lower bound, inclusive by default
*
*
* string lower = 2;
* @return The lower.
*/
public java.lang.String getLower() {
java.lang.Object ref = lower_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
lower_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Lower bound, inclusive by default
*
*
* string lower = 2;
* @return The bytes for lower.
*/
public com.google.protobuf.ByteString
getLowerBytes() {
java.lang.Object ref = lower_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
lower_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Lower bound, inclusive by default
*
*
* string lower = 2;
* @param value The lower to set.
* @return This builder for chaining.
*/
public Builder setLower(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
lower_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Lower bound, inclusive by default
*
*
* string lower = 2;
* @return This builder for chaining.
*/
public Builder clearLower() {
lower_ = getDefaultInstance().getLower();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Lower bound, inclusive by default
*
*
* string lower = 2;
* @param value The bytes for lower to set.
* @return This builder for chaining.
*/
public Builder setLowerBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
lower_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object upper_ = "";
/**
*
* Upper bound, inclusive by default
*
*
* string upper = 3;
* @return The upper.
*/
public java.lang.String getUpper() {
java.lang.Object ref = upper_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
upper_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Upper bound, inclusive by default
*
*
* string upper = 3;
* @return The bytes for upper.
*/
public com.google.protobuf.ByteString
getUpperBytes() {
java.lang.Object ref = upper_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
upper_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Upper bound, inclusive by default
*
*
* string upper = 3;
* @param value The upper to set.
* @return This builder for chaining.
*/
public Builder setUpper(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
upper_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Upper bound, inclusive by default
*
*
* string upper = 3;
* @return This builder for chaining.
*/
public Builder clearUpper() {
upper_ = getDefaultInstance().getUpper();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Upper bound, inclusive by default
*
*
* string upper = 3;
* @param value The bytes for upper to set.
* @return This builder for chaining.
*/
public Builder setUpperBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
upper_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private boolean lowerExclusive_ ;
/**
*
* Set true to make lower bound exclusive
*
*
* bool lowerExclusive = 4;
* @return The lowerExclusive.
*/
@java.lang.Override
public boolean getLowerExclusive() {
return lowerExclusive_;
}
/**
*
* Set true to make lower bound exclusive
*
*
* bool lowerExclusive = 4;
* @param value The lowerExclusive to set.
* @return This builder for chaining.
*/
public Builder setLowerExclusive(boolean value) {
lowerExclusive_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Set true to make lower bound exclusive
*
*
* bool lowerExclusive = 4;
* @return This builder for chaining.
*/
public Builder clearLowerExclusive() {
bitField0_ = (bitField0_ & ~0x00000008);
lowerExclusive_ = false;
onChanged();
return this;
}
private boolean upperExclusive_ ;
/**
*
* Set true to make upper bound exclusive
*
*
* bool upperExclusive = 5;
* @return The upperExclusive.
*/
@java.lang.Override
public boolean getUpperExclusive() {
return upperExclusive_;
}
/**
*
* Set true to make upper bound exclusive
*
*
* bool upperExclusive = 5;
* @param value The upperExclusive to set.
* @return This builder for chaining.
*/
public Builder setUpperExclusive(boolean value) {
upperExclusive_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Set true to make upper bound exclusive
*
*
* bool upperExclusive = 5;
* @return This builder for chaining.
*/
public Builder clearUpperExclusive() {
bitField0_ = (bitField0_ & ~0x00000010);
upperExclusive_ = false;
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.RangeQuery)
}
// @@protoc_insertion_point(class_scope:luceneserver.RangeQuery)
private static final com.yelp.nrtsearch.server.grpc.RangeQuery DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.RangeQuery();
}
public static com.yelp.nrtsearch.server.grpc.RangeQuery getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RangeQuery 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.RangeQuery getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}