com.yelp.nrtsearch.server.grpc.Collector 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;
/**
*
*Definition of additional document collector.
*
*
* Protobuf type {@code luceneserver.Collector}
*/
public final class Collector extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.Collector)
CollectorOrBuilder {
private static final long serialVersionUID = 0L;
// Use Collector.newBuilder() to construct.
private Collector(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Collector() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Collector();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Collector_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 3:
return internalGetNestedCollectors();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Collector_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.Collector.class, com.yelp.nrtsearch.server.grpc.Collector.Builder.class);
}
private int collectorsCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object collectors_;
public enum CollectorsCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
TERMS(1),
PLUGINCOLLECTOR(2),
TOPHITSCOLLECTOR(4),
FILTER(5),
MAX(6),
MIN(7),
COLLECTORS_NOT_SET(0);
private final int value;
private CollectorsCase(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 CollectorsCase valueOf(int value) {
return forNumber(value);
}
public static CollectorsCase forNumber(int value) {
switch (value) {
case 1: return TERMS;
case 2: return PLUGINCOLLECTOR;
case 4: return TOPHITSCOLLECTOR;
case 5: return FILTER;
case 6: return MAX;
case 7: return MIN;
case 0: return COLLECTORS_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public CollectorsCase
getCollectorsCase() {
return CollectorsCase.forNumber(
collectorsCase_);
}
public static final int TERMS_FIELD_NUMBER = 1;
/**
*
*Collector for aggregating based on term values.
*
*
* .luceneserver.TermsCollector terms = 1;
* @return Whether the terms field is set.
*/
@java.lang.Override
public boolean hasTerms() {
return collectorsCase_ == 1;
}
/**
*
*Collector for aggregating based on term values.
*
*
* .luceneserver.TermsCollector terms = 1;
* @return The terms.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermsCollector getTerms() {
if (collectorsCase_ == 1) {
return (com.yelp.nrtsearch.server.grpc.TermsCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.TermsCollector.getDefaultInstance();
}
/**
*
*Collector for aggregating based on term values.
*
*
* .luceneserver.TermsCollector terms = 1;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermsCollectorOrBuilder getTermsOrBuilder() {
if (collectorsCase_ == 1) {
return (com.yelp.nrtsearch.server.grpc.TermsCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.TermsCollector.getDefaultInstance();
}
public static final int PLUGINCOLLECTOR_FIELD_NUMBER = 2;
/**
* .luceneserver.PluginCollector pluginCollector = 2;
* @return Whether the pluginCollector field is set.
*/
@java.lang.Override
public boolean hasPluginCollector() {
return collectorsCase_ == 2;
}
/**
* .luceneserver.PluginCollector pluginCollector = 2;
* @return The pluginCollector.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.PluginCollector getPluginCollector() {
if (collectorsCase_ == 2) {
return (com.yelp.nrtsearch.server.grpc.PluginCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.PluginCollector.getDefaultInstance();
}
/**
* .luceneserver.PluginCollector pluginCollector = 2;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.PluginCollectorOrBuilder getPluginCollectorOrBuilder() {
if (collectorsCase_ == 2) {
return (com.yelp.nrtsearch.server.grpc.PluginCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.PluginCollector.getDefaultInstance();
}
public static final int TOPHITSCOLLECTOR_FIELD_NUMBER = 4;
/**
*
*Collector for getting top hits based on score or sorting.
*
*
* .luceneserver.TopHitsCollector topHitsCollector = 4;
* @return Whether the topHitsCollector field is set.
*/
@java.lang.Override
public boolean hasTopHitsCollector() {
return collectorsCase_ == 4;
}
/**
*
*Collector for getting top hits based on score or sorting.
*
*
* .luceneserver.TopHitsCollector topHitsCollector = 4;
* @return The topHitsCollector.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TopHitsCollector getTopHitsCollector() {
if (collectorsCase_ == 4) {
return (com.yelp.nrtsearch.server.grpc.TopHitsCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.TopHitsCollector.getDefaultInstance();
}
/**
*
*Collector for getting top hits based on score or sorting.
*
*
* .luceneserver.TopHitsCollector topHitsCollector = 4;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TopHitsCollectorOrBuilder getTopHitsCollectorOrBuilder() {
if (collectorsCase_ == 4) {
return (com.yelp.nrtsearch.server.grpc.TopHitsCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.TopHitsCollector.getDefaultInstance();
}
public static final int FILTER_FIELD_NUMBER = 5;
/**
*
*Collector that filters documents to nested collectors
*
*
* .luceneserver.FilterCollector filter = 5;
* @return Whether the filter field is set.
*/
@java.lang.Override
public boolean hasFilter() {
return collectorsCase_ == 5;
}
/**
*
*Collector that filters documents to nested collectors
*
*
* .luceneserver.FilterCollector filter = 5;
* @return The filter.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FilterCollector getFilter() {
if (collectorsCase_ == 5) {
return (com.yelp.nrtsearch.server.grpc.FilterCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.FilterCollector.getDefaultInstance();
}
/**
*
*Collector that filters documents to nested collectors
*
*
* .luceneserver.FilterCollector filter = 5;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FilterCollectorOrBuilder getFilterOrBuilder() {
if (collectorsCase_ == 5) {
return (com.yelp.nrtsearch.server.grpc.FilterCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.FilterCollector.getDefaultInstance();
}
public static final int MAX_FIELD_NUMBER = 6;
/**
*
*Collector for finding a max double value from collected documents.
*
*
* .luceneserver.MaxCollector max = 6;
* @return Whether the max field is set.
*/
@java.lang.Override
public boolean hasMax() {
return collectorsCase_ == 6;
}
/**
*
*Collector for finding a max double value from collected documents.
*
*
* .luceneserver.MaxCollector max = 6;
* @return The max.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MaxCollector getMax() {
if (collectorsCase_ == 6) {
return (com.yelp.nrtsearch.server.grpc.MaxCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.MaxCollector.getDefaultInstance();
}
/**
*
*Collector for finding a max double value from collected documents.
*
*
* .luceneserver.MaxCollector max = 6;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MaxCollectorOrBuilder getMaxOrBuilder() {
if (collectorsCase_ == 6) {
return (com.yelp.nrtsearch.server.grpc.MaxCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.MaxCollector.getDefaultInstance();
}
public static final int MIN_FIELD_NUMBER = 7;
/**
*
*Collector for finding a min double value from collected documents.
*
*
* .luceneserver.MinCollector min = 7;
* @return Whether the min field is set.
*/
@java.lang.Override
public boolean hasMin() {
return collectorsCase_ == 7;
}
/**
*
*Collector for finding a min double value from collected documents.
*
*
* .luceneserver.MinCollector min = 7;
* @return The min.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MinCollector getMin() {
if (collectorsCase_ == 7) {
return (com.yelp.nrtsearch.server.grpc.MinCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.MinCollector.getDefaultInstance();
}
/**
*
*Collector for finding a min double value from collected documents.
*
*
* .luceneserver.MinCollector min = 7;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MinCollectorOrBuilder getMinOrBuilder() {
if (collectorsCase_ == 7) {
return (com.yelp.nrtsearch.server.grpc.MinCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.MinCollector.getDefaultInstance();
}
public static final int NESTEDCOLLECTORS_FIELD_NUMBER = 3;
private static final class NestedCollectorsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.yelp.nrtsearch.server.grpc.Collector> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Collector_NestedCollectorsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.yelp.nrtsearch.server.grpc.Collector.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, com.yelp.nrtsearch.server.grpc.Collector> nestedCollectors_;
private com.google.protobuf.MapField
internalGetNestedCollectors() {
if (nestedCollectors_ == null) {
return com.google.protobuf.MapField.emptyMapField(
NestedCollectorsDefaultEntryHolder.defaultEntry);
}
return nestedCollectors_;
}
public int getNestedCollectorsCount() {
return internalGetNestedCollectors().getMap().size();
}
/**
*
*Nested collectors that define sub-aggregations per bucket, supported by bucket based collectors.
*
*
* map<string, .luceneserver.Collector> nestedCollectors = 3;
*/
@java.lang.Override
public boolean containsNestedCollectors(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetNestedCollectors().getMap().containsKey(key);
}
/**
* Use {@link #getNestedCollectorsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getNestedCollectors() {
return getNestedCollectorsMap();
}
/**
*
*Nested collectors that define sub-aggregations per bucket, supported by bucket based collectors.
*
*
* map<string, .luceneserver.Collector> nestedCollectors = 3;
*/
@java.lang.Override
public java.util.Map getNestedCollectorsMap() {
return internalGetNestedCollectors().getMap();
}
/**
*
*Nested collectors that define sub-aggregations per bucket, supported by bucket based collectors.
*
*
* map<string, .luceneserver.Collector> nestedCollectors = 3;
*/
@java.lang.Override
public /* nullable */
com.yelp.nrtsearch.server.grpc.Collector getNestedCollectorsOrDefault(
java.lang.String key,
/* nullable */
com.yelp.nrtsearch.server.grpc.Collector defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetNestedCollectors().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*Nested collectors that define sub-aggregations per bucket, supported by bucket based collectors.
*
*
* map<string, .luceneserver.Collector> nestedCollectors = 3;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.Collector getNestedCollectorsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetNestedCollectors().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 (collectorsCase_ == 1) {
output.writeMessage(1, (com.yelp.nrtsearch.server.grpc.TermsCollector) collectors_);
}
if (collectorsCase_ == 2) {
output.writeMessage(2, (com.yelp.nrtsearch.server.grpc.PluginCollector) collectors_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetNestedCollectors(),
NestedCollectorsDefaultEntryHolder.defaultEntry,
3);
if (collectorsCase_ == 4) {
output.writeMessage(4, (com.yelp.nrtsearch.server.grpc.TopHitsCollector) collectors_);
}
if (collectorsCase_ == 5) {
output.writeMessage(5, (com.yelp.nrtsearch.server.grpc.FilterCollector) collectors_);
}
if (collectorsCase_ == 6) {
output.writeMessage(6, (com.yelp.nrtsearch.server.grpc.MaxCollector) collectors_);
}
if (collectorsCase_ == 7) {
output.writeMessage(7, (com.yelp.nrtsearch.server.grpc.MinCollector) collectors_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (collectorsCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.yelp.nrtsearch.server.grpc.TermsCollector) collectors_);
}
if (collectorsCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.yelp.nrtsearch.server.grpc.PluginCollector) collectors_);
}
for (java.util.Map.Entry entry
: internalGetNestedCollectors().getMap().entrySet()) {
com.google.protobuf.MapEntry
nestedCollectors__ = NestedCollectorsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, nestedCollectors__);
}
if (collectorsCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, (com.yelp.nrtsearch.server.grpc.TopHitsCollector) collectors_);
}
if (collectorsCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (com.yelp.nrtsearch.server.grpc.FilterCollector) collectors_);
}
if (collectorsCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (com.yelp.nrtsearch.server.grpc.MaxCollector) collectors_);
}
if (collectorsCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (com.yelp.nrtsearch.server.grpc.MinCollector) collectors_);
}
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.Collector)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.Collector other = (com.yelp.nrtsearch.server.grpc.Collector) obj;
if (!internalGetNestedCollectors().equals(
other.internalGetNestedCollectors())) return false;
if (!getCollectorsCase().equals(other.getCollectorsCase())) return false;
switch (collectorsCase_) {
case 1:
if (!getTerms()
.equals(other.getTerms())) return false;
break;
case 2:
if (!getPluginCollector()
.equals(other.getPluginCollector())) return false;
break;
case 4:
if (!getTopHitsCollector()
.equals(other.getTopHitsCollector())) return false;
break;
case 5:
if (!getFilter()
.equals(other.getFilter())) return false;
break;
case 6:
if (!getMax()
.equals(other.getMax())) return false;
break;
case 7:
if (!getMin()
.equals(other.getMin())) 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();
if (!internalGetNestedCollectors().getMap().isEmpty()) {
hash = (37 * hash) + NESTEDCOLLECTORS_FIELD_NUMBER;
hash = (53 * hash) + internalGetNestedCollectors().hashCode();
}
switch (collectorsCase_) {
case 1:
hash = (37 * hash) + TERMS_FIELD_NUMBER;
hash = (53 * hash) + getTerms().hashCode();
break;
case 2:
hash = (37 * hash) + PLUGINCOLLECTOR_FIELD_NUMBER;
hash = (53 * hash) + getPluginCollector().hashCode();
break;
case 4:
hash = (37 * hash) + TOPHITSCOLLECTOR_FIELD_NUMBER;
hash = (53 * hash) + getTopHitsCollector().hashCode();
break;
case 5:
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
break;
case 6:
hash = (37 * hash) + MAX_FIELD_NUMBER;
hash = (53 * hash) + getMax().hashCode();
break;
case 7:
hash = (37 * hash) + MIN_FIELD_NUMBER;
hash = (53 * hash) + getMin().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.Collector parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.Collector 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.Collector parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.Collector 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.Collector parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.Collector 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.Collector parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.Collector 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.Collector parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.Collector 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.Collector 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.Collector 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.Collector 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;
}
/**
*
*Definition of additional document collector.
*
*
* Protobuf type {@code luceneserver.Collector}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.Collector)
com.yelp.nrtsearch.server.grpc.CollectorOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Collector_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 3:
return internalGetNestedCollectors();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 3:
return internalGetMutableNestedCollectors();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Collector_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.Collector.class, com.yelp.nrtsearch.server.grpc.Collector.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.Collector.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (termsBuilder_ != null) {
termsBuilder_.clear();
}
if (pluginCollectorBuilder_ != null) {
pluginCollectorBuilder_.clear();
}
if (topHitsCollectorBuilder_ != null) {
topHitsCollectorBuilder_.clear();
}
if (filterBuilder_ != null) {
filterBuilder_.clear();
}
if (maxBuilder_ != null) {
maxBuilder_.clear();
}
if (minBuilder_ != null) {
minBuilder_.clear();
}
internalGetMutableNestedCollectors().clear();
collectorsCase_ = 0;
collectors_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_Collector_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.Collector getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.Collector.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.Collector build() {
com.yelp.nrtsearch.server.grpc.Collector result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.Collector buildPartial() {
com.yelp.nrtsearch.server.grpc.Collector result = new com.yelp.nrtsearch.server.grpc.Collector(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.Collector result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.nestedCollectors_ = internalGetNestedCollectors().build(NestedCollectorsDefaultEntryHolder.defaultEntry);
}
}
private void buildPartialOneofs(com.yelp.nrtsearch.server.grpc.Collector result) {
result.collectorsCase_ = collectorsCase_;
result.collectors_ = this.collectors_;
if (collectorsCase_ == 1 &&
termsBuilder_ != null) {
result.collectors_ = termsBuilder_.build();
}
if (collectorsCase_ == 2 &&
pluginCollectorBuilder_ != null) {
result.collectors_ = pluginCollectorBuilder_.build();
}
if (collectorsCase_ == 4 &&
topHitsCollectorBuilder_ != null) {
result.collectors_ = topHitsCollectorBuilder_.build();
}
if (collectorsCase_ == 5 &&
filterBuilder_ != null) {
result.collectors_ = filterBuilder_.build();
}
if (collectorsCase_ == 6 &&
maxBuilder_ != null) {
result.collectors_ = maxBuilder_.build();
}
if (collectorsCase_ == 7 &&
minBuilder_ != null) {
result.collectors_ = minBuilder_.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.Collector) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.Collector)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.Collector other) {
if (other == com.yelp.nrtsearch.server.grpc.Collector.getDefaultInstance()) return this;
internalGetMutableNestedCollectors().mergeFrom(
other.internalGetNestedCollectors());
bitField0_ |= 0x00000040;
switch (other.getCollectorsCase()) {
case TERMS: {
mergeTerms(other.getTerms());
break;
}
case PLUGINCOLLECTOR: {
mergePluginCollector(other.getPluginCollector());
break;
}
case TOPHITSCOLLECTOR: {
mergeTopHitsCollector(other.getTopHitsCollector());
break;
}
case FILTER: {
mergeFilter(other.getFilter());
break;
}
case MAX: {
mergeMax(other.getMax());
break;
}
case MIN: {
mergeMin(other.getMin());
break;
}
case COLLECTORS_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: {
input.readMessage(
getTermsFieldBuilder().getBuilder(),
extensionRegistry);
collectorsCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getPluginCollectorFieldBuilder().getBuilder(),
extensionRegistry);
collectorsCase_ = 2;
break;
} // case 18
case 26: {
com.google.protobuf.MapEntry
nestedCollectors__ = input.readMessage(
NestedCollectorsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableNestedCollectors().ensureBuilderMap().put(
nestedCollectors__.getKey(), nestedCollectors__.getValue());
bitField0_ |= 0x00000040;
break;
} // case 26
case 34: {
input.readMessage(
getTopHitsCollectorFieldBuilder().getBuilder(),
extensionRegistry);
collectorsCase_ = 4;
break;
} // case 34
case 42: {
input.readMessage(
getFilterFieldBuilder().getBuilder(),
extensionRegistry);
collectorsCase_ = 5;
break;
} // case 42
case 50: {
input.readMessage(
getMaxFieldBuilder().getBuilder(),
extensionRegistry);
collectorsCase_ = 6;
break;
} // case 50
case 58: {
input.readMessage(
getMinFieldBuilder().getBuilder(),
extensionRegistry);
collectorsCase_ = 7;
break;
} // case 58
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 collectorsCase_ = 0;
private java.lang.Object collectors_;
public CollectorsCase
getCollectorsCase() {
return CollectorsCase.forNumber(
collectorsCase_);
}
public Builder clearCollectors() {
collectorsCase_ = 0;
collectors_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermsCollector, com.yelp.nrtsearch.server.grpc.TermsCollector.Builder, com.yelp.nrtsearch.server.grpc.TermsCollectorOrBuilder> termsBuilder_;
/**
*
*Collector for aggregating based on term values.
*
*
* .luceneserver.TermsCollector terms = 1;
* @return Whether the terms field is set.
*/
@java.lang.Override
public boolean hasTerms() {
return collectorsCase_ == 1;
}
/**
*
*Collector for aggregating based on term values.
*
*
* .luceneserver.TermsCollector terms = 1;
* @return The terms.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermsCollector getTerms() {
if (termsBuilder_ == null) {
if (collectorsCase_ == 1) {
return (com.yelp.nrtsearch.server.grpc.TermsCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.TermsCollector.getDefaultInstance();
} else {
if (collectorsCase_ == 1) {
return termsBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.TermsCollector.getDefaultInstance();
}
}
/**
*
*Collector for aggregating based on term values.
*
*
* .luceneserver.TermsCollector terms = 1;
*/
public Builder setTerms(com.yelp.nrtsearch.server.grpc.TermsCollector value) {
if (termsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
collectors_ = value;
onChanged();
} else {
termsBuilder_.setMessage(value);
}
collectorsCase_ = 1;
return this;
}
/**
*
*Collector for aggregating based on term values.
*
*
* .luceneserver.TermsCollector terms = 1;
*/
public Builder setTerms(
com.yelp.nrtsearch.server.grpc.TermsCollector.Builder builderForValue) {
if (termsBuilder_ == null) {
collectors_ = builderForValue.build();
onChanged();
} else {
termsBuilder_.setMessage(builderForValue.build());
}
collectorsCase_ = 1;
return this;
}
/**
*
*Collector for aggregating based on term values.
*
*
* .luceneserver.TermsCollector terms = 1;
*/
public Builder mergeTerms(com.yelp.nrtsearch.server.grpc.TermsCollector value) {
if (termsBuilder_ == null) {
if (collectorsCase_ == 1 &&
collectors_ != com.yelp.nrtsearch.server.grpc.TermsCollector.getDefaultInstance()) {
collectors_ = com.yelp.nrtsearch.server.grpc.TermsCollector.newBuilder((com.yelp.nrtsearch.server.grpc.TermsCollector) collectors_)
.mergeFrom(value).buildPartial();
} else {
collectors_ = value;
}
onChanged();
} else {
if (collectorsCase_ == 1) {
termsBuilder_.mergeFrom(value);
} else {
termsBuilder_.setMessage(value);
}
}
collectorsCase_ = 1;
return this;
}
/**
*
*Collector for aggregating based on term values.
*
*
* .luceneserver.TermsCollector terms = 1;
*/
public Builder clearTerms() {
if (termsBuilder_ == null) {
if (collectorsCase_ == 1) {
collectorsCase_ = 0;
collectors_ = null;
onChanged();
}
} else {
if (collectorsCase_ == 1) {
collectorsCase_ = 0;
collectors_ = null;
}
termsBuilder_.clear();
}
return this;
}
/**
*
*Collector for aggregating based on term values.
*
*
* .luceneserver.TermsCollector terms = 1;
*/
public com.yelp.nrtsearch.server.grpc.TermsCollector.Builder getTermsBuilder() {
return getTermsFieldBuilder().getBuilder();
}
/**
*
*Collector for aggregating based on term values.
*
*
* .luceneserver.TermsCollector terms = 1;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TermsCollectorOrBuilder getTermsOrBuilder() {
if ((collectorsCase_ == 1) && (termsBuilder_ != null)) {
return termsBuilder_.getMessageOrBuilder();
} else {
if (collectorsCase_ == 1) {
return (com.yelp.nrtsearch.server.grpc.TermsCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.TermsCollector.getDefaultInstance();
}
}
/**
*
*Collector for aggregating based on term values.
*
*
* .luceneserver.TermsCollector terms = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermsCollector, com.yelp.nrtsearch.server.grpc.TermsCollector.Builder, com.yelp.nrtsearch.server.grpc.TermsCollectorOrBuilder>
getTermsFieldBuilder() {
if (termsBuilder_ == null) {
if (!(collectorsCase_ == 1)) {
collectors_ = com.yelp.nrtsearch.server.grpc.TermsCollector.getDefaultInstance();
}
termsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TermsCollector, com.yelp.nrtsearch.server.grpc.TermsCollector.Builder, com.yelp.nrtsearch.server.grpc.TermsCollectorOrBuilder>(
(com.yelp.nrtsearch.server.grpc.TermsCollector) collectors_,
getParentForChildren(),
isClean());
collectors_ = null;
}
collectorsCase_ = 1;
onChanged();
return termsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.PluginCollector, com.yelp.nrtsearch.server.grpc.PluginCollector.Builder, com.yelp.nrtsearch.server.grpc.PluginCollectorOrBuilder> pluginCollectorBuilder_;
/**
* .luceneserver.PluginCollector pluginCollector = 2;
* @return Whether the pluginCollector field is set.
*/
@java.lang.Override
public boolean hasPluginCollector() {
return collectorsCase_ == 2;
}
/**
* .luceneserver.PluginCollector pluginCollector = 2;
* @return The pluginCollector.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.PluginCollector getPluginCollector() {
if (pluginCollectorBuilder_ == null) {
if (collectorsCase_ == 2) {
return (com.yelp.nrtsearch.server.grpc.PluginCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.PluginCollector.getDefaultInstance();
} else {
if (collectorsCase_ == 2) {
return pluginCollectorBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.PluginCollector.getDefaultInstance();
}
}
/**
* .luceneserver.PluginCollector pluginCollector = 2;
*/
public Builder setPluginCollector(com.yelp.nrtsearch.server.grpc.PluginCollector value) {
if (pluginCollectorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
collectors_ = value;
onChanged();
} else {
pluginCollectorBuilder_.setMessage(value);
}
collectorsCase_ = 2;
return this;
}
/**
* .luceneserver.PluginCollector pluginCollector = 2;
*/
public Builder setPluginCollector(
com.yelp.nrtsearch.server.grpc.PluginCollector.Builder builderForValue) {
if (pluginCollectorBuilder_ == null) {
collectors_ = builderForValue.build();
onChanged();
} else {
pluginCollectorBuilder_.setMessage(builderForValue.build());
}
collectorsCase_ = 2;
return this;
}
/**
* .luceneserver.PluginCollector pluginCollector = 2;
*/
public Builder mergePluginCollector(com.yelp.nrtsearch.server.grpc.PluginCollector value) {
if (pluginCollectorBuilder_ == null) {
if (collectorsCase_ == 2 &&
collectors_ != com.yelp.nrtsearch.server.grpc.PluginCollector.getDefaultInstance()) {
collectors_ = com.yelp.nrtsearch.server.grpc.PluginCollector.newBuilder((com.yelp.nrtsearch.server.grpc.PluginCollector) collectors_)
.mergeFrom(value).buildPartial();
} else {
collectors_ = value;
}
onChanged();
} else {
if (collectorsCase_ == 2) {
pluginCollectorBuilder_.mergeFrom(value);
} else {
pluginCollectorBuilder_.setMessage(value);
}
}
collectorsCase_ = 2;
return this;
}
/**
* .luceneserver.PluginCollector pluginCollector = 2;
*/
public Builder clearPluginCollector() {
if (pluginCollectorBuilder_ == null) {
if (collectorsCase_ == 2) {
collectorsCase_ = 0;
collectors_ = null;
onChanged();
}
} else {
if (collectorsCase_ == 2) {
collectorsCase_ = 0;
collectors_ = null;
}
pluginCollectorBuilder_.clear();
}
return this;
}
/**
* .luceneserver.PluginCollector pluginCollector = 2;
*/
public com.yelp.nrtsearch.server.grpc.PluginCollector.Builder getPluginCollectorBuilder() {
return getPluginCollectorFieldBuilder().getBuilder();
}
/**
* .luceneserver.PluginCollector pluginCollector = 2;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.PluginCollectorOrBuilder getPluginCollectorOrBuilder() {
if ((collectorsCase_ == 2) && (pluginCollectorBuilder_ != null)) {
return pluginCollectorBuilder_.getMessageOrBuilder();
} else {
if (collectorsCase_ == 2) {
return (com.yelp.nrtsearch.server.grpc.PluginCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.PluginCollector.getDefaultInstance();
}
}
/**
* .luceneserver.PluginCollector pluginCollector = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.PluginCollector, com.yelp.nrtsearch.server.grpc.PluginCollector.Builder, com.yelp.nrtsearch.server.grpc.PluginCollectorOrBuilder>
getPluginCollectorFieldBuilder() {
if (pluginCollectorBuilder_ == null) {
if (!(collectorsCase_ == 2)) {
collectors_ = com.yelp.nrtsearch.server.grpc.PluginCollector.getDefaultInstance();
}
pluginCollectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.PluginCollector, com.yelp.nrtsearch.server.grpc.PluginCollector.Builder, com.yelp.nrtsearch.server.grpc.PluginCollectorOrBuilder>(
(com.yelp.nrtsearch.server.grpc.PluginCollector) collectors_,
getParentForChildren(),
isClean());
collectors_ = null;
}
collectorsCase_ = 2;
onChanged();
return pluginCollectorBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TopHitsCollector, com.yelp.nrtsearch.server.grpc.TopHitsCollector.Builder, com.yelp.nrtsearch.server.grpc.TopHitsCollectorOrBuilder> topHitsCollectorBuilder_;
/**
*
*Collector for getting top hits based on score or sorting.
*
*
* .luceneserver.TopHitsCollector topHitsCollector = 4;
* @return Whether the topHitsCollector field is set.
*/
@java.lang.Override
public boolean hasTopHitsCollector() {
return collectorsCase_ == 4;
}
/**
*
*Collector for getting top hits based on score or sorting.
*
*
* .luceneserver.TopHitsCollector topHitsCollector = 4;
* @return The topHitsCollector.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TopHitsCollector getTopHitsCollector() {
if (topHitsCollectorBuilder_ == null) {
if (collectorsCase_ == 4) {
return (com.yelp.nrtsearch.server.grpc.TopHitsCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.TopHitsCollector.getDefaultInstance();
} else {
if (collectorsCase_ == 4) {
return topHitsCollectorBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.TopHitsCollector.getDefaultInstance();
}
}
/**
*
*Collector for getting top hits based on score or sorting.
*
*
* .luceneserver.TopHitsCollector topHitsCollector = 4;
*/
public Builder setTopHitsCollector(com.yelp.nrtsearch.server.grpc.TopHitsCollector value) {
if (topHitsCollectorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
collectors_ = value;
onChanged();
} else {
topHitsCollectorBuilder_.setMessage(value);
}
collectorsCase_ = 4;
return this;
}
/**
*
*Collector for getting top hits based on score or sorting.
*
*
* .luceneserver.TopHitsCollector topHitsCollector = 4;
*/
public Builder setTopHitsCollector(
com.yelp.nrtsearch.server.grpc.TopHitsCollector.Builder builderForValue) {
if (topHitsCollectorBuilder_ == null) {
collectors_ = builderForValue.build();
onChanged();
} else {
topHitsCollectorBuilder_.setMessage(builderForValue.build());
}
collectorsCase_ = 4;
return this;
}
/**
*
*Collector for getting top hits based on score or sorting.
*
*
* .luceneserver.TopHitsCollector topHitsCollector = 4;
*/
public Builder mergeTopHitsCollector(com.yelp.nrtsearch.server.grpc.TopHitsCollector value) {
if (topHitsCollectorBuilder_ == null) {
if (collectorsCase_ == 4 &&
collectors_ != com.yelp.nrtsearch.server.grpc.TopHitsCollector.getDefaultInstance()) {
collectors_ = com.yelp.nrtsearch.server.grpc.TopHitsCollector.newBuilder((com.yelp.nrtsearch.server.grpc.TopHitsCollector) collectors_)
.mergeFrom(value).buildPartial();
} else {
collectors_ = value;
}
onChanged();
} else {
if (collectorsCase_ == 4) {
topHitsCollectorBuilder_.mergeFrom(value);
} else {
topHitsCollectorBuilder_.setMessage(value);
}
}
collectorsCase_ = 4;
return this;
}
/**
*
*Collector for getting top hits based on score or sorting.
*
*
* .luceneserver.TopHitsCollector topHitsCollector = 4;
*/
public Builder clearTopHitsCollector() {
if (topHitsCollectorBuilder_ == null) {
if (collectorsCase_ == 4) {
collectorsCase_ = 0;
collectors_ = null;
onChanged();
}
} else {
if (collectorsCase_ == 4) {
collectorsCase_ = 0;
collectors_ = null;
}
topHitsCollectorBuilder_.clear();
}
return this;
}
/**
*
*Collector for getting top hits based on score or sorting.
*
*
* .luceneserver.TopHitsCollector topHitsCollector = 4;
*/
public com.yelp.nrtsearch.server.grpc.TopHitsCollector.Builder getTopHitsCollectorBuilder() {
return getTopHitsCollectorFieldBuilder().getBuilder();
}
/**
*
*Collector for getting top hits based on score or sorting.
*
*
* .luceneserver.TopHitsCollector topHitsCollector = 4;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TopHitsCollectorOrBuilder getTopHitsCollectorOrBuilder() {
if ((collectorsCase_ == 4) && (topHitsCollectorBuilder_ != null)) {
return topHitsCollectorBuilder_.getMessageOrBuilder();
} else {
if (collectorsCase_ == 4) {
return (com.yelp.nrtsearch.server.grpc.TopHitsCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.TopHitsCollector.getDefaultInstance();
}
}
/**
*
*Collector for getting top hits based on score or sorting.
*
*
* .luceneserver.TopHitsCollector topHitsCollector = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TopHitsCollector, com.yelp.nrtsearch.server.grpc.TopHitsCollector.Builder, com.yelp.nrtsearch.server.grpc.TopHitsCollectorOrBuilder>
getTopHitsCollectorFieldBuilder() {
if (topHitsCollectorBuilder_ == null) {
if (!(collectorsCase_ == 4)) {
collectors_ = com.yelp.nrtsearch.server.grpc.TopHitsCollector.getDefaultInstance();
}
topHitsCollectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.TopHitsCollector, com.yelp.nrtsearch.server.grpc.TopHitsCollector.Builder, com.yelp.nrtsearch.server.grpc.TopHitsCollectorOrBuilder>(
(com.yelp.nrtsearch.server.grpc.TopHitsCollector) collectors_,
getParentForChildren(),
isClean());
collectors_ = null;
}
collectorsCase_ = 4;
onChanged();
return topHitsCollectorBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FilterCollector, com.yelp.nrtsearch.server.grpc.FilterCollector.Builder, com.yelp.nrtsearch.server.grpc.FilterCollectorOrBuilder> filterBuilder_;
/**
*
*Collector that filters documents to nested collectors
*
*
* .luceneserver.FilterCollector filter = 5;
* @return Whether the filter field is set.
*/
@java.lang.Override
public boolean hasFilter() {
return collectorsCase_ == 5;
}
/**
*
*Collector that filters documents to nested collectors
*
*
* .luceneserver.FilterCollector filter = 5;
* @return The filter.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FilterCollector getFilter() {
if (filterBuilder_ == null) {
if (collectorsCase_ == 5) {
return (com.yelp.nrtsearch.server.grpc.FilterCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.FilterCollector.getDefaultInstance();
} else {
if (collectorsCase_ == 5) {
return filterBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.FilterCollector.getDefaultInstance();
}
}
/**
*
*Collector that filters documents to nested collectors
*
*
* .luceneserver.FilterCollector filter = 5;
*/
public Builder setFilter(com.yelp.nrtsearch.server.grpc.FilterCollector value) {
if (filterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
collectors_ = value;
onChanged();
} else {
filterBuilder_.setMessage(value);
}
collectorsCase_ = 5;
return this;
}
/**
*
*Collector that filters documents to nested collectors
*
*
* .luceneserver.FilterCollector filter = 5;
*/
public Builder setFilter(
com.yelp.nrtsearch.server.grpc.FilterCollector.Builder builderForValue) {
if (filterBuilder_ == null) {
collectors_ = builderForValue.build();
onChanged();
} else {
filterBuilder_.setMessage(builderForValue.build());
}
collectorsCase_ = 5;
return this;
}
/**
*
*Collector that filters documents to nested collectors
*
*
* .luceneserver.FilterCollector filter = 5;
*/
public Builder mergeFilter(com.yelp.nrtsearch.server.grpc.FilterCollector value) {
if (filterBuilder_ == null) {
if (collectorsCase_ == 5 &&
collectors_ != com.yelp.nrtsearch.server.grpc.FilterCollector.getDefaultInstance()) {
collectors_ = com.yelp.nrtsearch.server.grpc.FilterCollector.newBuilder((com.yelp.nrtsearch.server.grpc.FilterCollector) collectors_)
.mergeFrom(value).buildPartial();
} else {
collectors_ = value;
}
onChanged();
} else {
if (collectorsCase_ == 5) {
filterBuilder_.mergeFrom(value);
} else {
filterBuilder_.setMessage(value);
}
}
collectorsCase_ = 5;
return this;
}
/**
*
*Collector that filters documents to nested collectors
*
*
* .luceneserver.FilterCollector filter = 5;
*/
public Builder clearFilter() {
if (filterBuilder_ == null) {
if (collectorsCase_ == 5) {
collectorsCase_ = 0;
collectors_ = null;
onChanged();
}
} else {
if (collectorsCase_ == 5) {
collectorsCase_ = 0;
collectors_ = null;
}
filterBuilder_.clear();
}
return this;
}
/**
*
*Collector that filters documents to nested collectors
*
*
* .luceneserver.FilterCollector filter = 5;
*/
public com.yelp.nrtsearch.server.grpc.FilterCollector.Builder getFilterBuilder() {
return getFilterFieldBuilder().getBuilder();
}
/**
*
*Collector that filters documents to nested collectors
*
*
* .luceneserver.FilterCollector filter = 5;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.FilterCollectorOrBuilder getFilterOrBuilder() {
if ((collectorsCase_ == 5) && (filterBuilder_ != null)) {
return filterBuilder_.getMessageOrBuilder();
} else {
if (collectorsCase_ == 5) {
return (com.yelp.nrtsearch.server.grpc.FilterCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.FilterCollector.getDefaultInstance();
}
}
/**
*
*Collector that filters documents to nested collectors
*
*
* .luceneserver.FilterCollector filter = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FilterCollector, com.yelp.nrtsearch.server.grpc.FilterCollector.Builder, com.yelp.nrtsearch.server.grpc.FilterCollectorOrBuilder>
getFilterFieldBuilder() {
if (filterBuilder_ == null) {
if (!(collectorsCase_ == 5)) {
collectors_ = com.yelp.nrtsearch.server.grpc.FilterCollector.getDefaultInstance();
}
filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.FilterCollector, com.yelp.nrtsearch.server.grpc.FilterCollector.Builder, com.yelp.nrtsearch.server.grpc.FilterCollectorOrBuilder>(
(com.yelp.nrtsearch.server.grpc.FilterCollector) collectors_,
getParentForChildren(),
isClean());
collectors_ = null;
}
collectorsCase_ = 5;
onChanged();
return filterBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MaxCollector, com.yelp.nrtsearch.server.grpc.MaxCollector.Builder, com.yelp.nrtsearch.server.grpc.MaxCollectorOrBuilder> maxBuilder_;
/**
*
*Collector for finding a max double value from collected documents.
*
*
* .luceneserver.MaxCollector max = 6;
* @return Whether the max field is set.
*/
@java.lang.Override
public boolean hasMax() {
return collectorsCase_ == 6;
}
/**
*
*Collector for finding a max double value from collected documents.
*
*
* .luceneserver.MaxCollector max = 6;
* @return The max.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MaxCollector getMax() {
if (maxBuilder_ == null) {
if (collectorsCase_ == 6) {
return (com.yelp.nrtsearch.server.grpc.MaxCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.MaxCollector.getDefaultInstance();
} else {
if (collectorsCase_ == 6) {
return maxBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.MaxCollector.getDefaultInstance();
}
}
/**
*
*Collector for finding a max double value from collected documents.
*
*
* .luceneserver.MaxCollector max = 6;
*/
public Builder setMax(com.yelp.nrtsearch.server.grpc.MaxCollector value) {
if (maxBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
collectors_ = value;
onChanged();
} else {
maxBuilder_.setMessage(value);
}
collectorsCase_ = 6;
return this;
}
/**
*
*Collector for finding a max double value from collected documents.
*
*
* .luceneserver.MaxCollector max = 6;
*/
public Builder setMax(
com.yelp.nrtsearch.server.grpc.MaxCollector.Builder builderForValue) {
if (maxBuilder_ == null) {
collectors_ = builderForValue.build();
onChanged();
} else {
maxBuilder_.setMessage(builderForValue.build());
}
collectorsCase_ = 6;
return this;
}
/**
*
*Collector for finding a max double value from collected documents.
*
*
* .luceneserver.MaxCollector max = 6;
*/
public Builder mergeMax(com.yelp.nrtsearch.server.grpc.MaxCollector value) {
if (maxBuilder_ == null) {
if (collectorsCase_ == 6 &&
collectors_ != com.yelp.nrtsearch.server.grpc.MaxCollector.getDefaultInstance()) {
collectors_ = com.yelp.nrtsearch.server.grpc.MaxCollector.newBuilder((com.yelp.nrtsearch.server.grpc.MaxCollector) collectors_)
.mergeFrom(value).buildPartial();
} else {
collectors_ = value;
}
onChanged();
} else {
if (collectorsCase_ == 6) {
maxBuilder_.mergeFrom(value);
} else {
maxBuilder_.setMessage(value);
}
}
collectorsCase_ = 6;
return this;
}
/**
*
*Collector for finding a max double value from collected documents.
*
*
* .luceneserver.MaxCollector max = 6;
*/
public Builder clearMax() {
if (maxBuilder_ == null) {
if (collectorsCase_ == 6) {
collectorsCase_ = 0;
collectors_ = null;
onChanged();
}
} else {
if (collectorsCase_ == 6) {
collectorsCase_ = 0;
collectors_ = null;
}
maxBuilder_.clear();
}
return this;
}
/**
*
*Collector for finding a max double value from collected documents.
*
*
* .luceneserver.MaxCollector max = 6;
*/
public com.yelp.nrtsearch.server.grpc.MaxCollector.Builder getMaxBuilder() {
return getMaxFieldBuilder().getBuilder();
}
/**
*
*Collector for finding a max double value from collected documents.
*
*
* .luceneserver.MaxCollector max = 6;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MaxCollectorOrBuilder getMaxOrBuilder() {
if ((collectorsCase_ == 6) && (maxBuilder_ != null)) {
return maxBuilder_.getMessageOrBuilder();
} else {
if (collectorsCase_ == 6) {
return (com.yelp.nrtsearch.server.grpc.MaxCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.MaxCollector.getDefaultInstance();
}
}
/**
*
*Collector for finding a max double value from collected documents.
*
*
* .luceneserver.MaxCollector max = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MaxCollector, com.yelp.nrtsearch.server.grpc.MaxCollector.Builder, com.yelp.nrtsearch.server.grpc.MaxCollectorOrBuilder>
getMaxFieldBuilder() {
if (maxBuilder_ == null) {
if (!(collectorsCase_ == 6)) {
collectors_ = com.yelp.nrtsearch.server.grpc.MaxCollector.getDefaultInstance();
}
maxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MaxCollector, com.yelp.nrtsearch.server.grpc.MaxCollector.Builder, com.yelp.nrtsearch.server.grpc.MaxCollectorOrBuilder>(
(com.yelp.nrtsearch.server.grpc.MaxCollector) collectors_,
getParentForChildren(),
isClean());
collectors_ = null;
}
collectorsCase_ = 6;
onChanged();
return maxBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MinCollector, com.yelp.nrtsearch.server.grpc.MinCollector.Builder, com.yelp.nrtsearch.server.grpc.MinCollectorOrBuilder> minBuilder_;
/**
*
*Collector for finding a min double value from collected documents.
*
*
* .luceneserver.MinCollector min = 7;
* @return Whether the min field is set.
*/
@java.lang.Override
public boolean hasMin() {
return collectorsCase_ == 7;
}
/**
*
*Collector for finding a min double value from collected documents.
*
*
* .luceneserver.MinCollector min = 7;
* @return The min.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MinCollector getMin() {
if (minBuilder_ == null) {
if (collectorsCase_ == 7) {
return (com.yelp.nrtsearch.server.grpc.MinCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.MinCollector.getDefaultInstance();
} else {
if (collectorsCase_ == 7) {
return minBuilder_.getMessage();
}
return com.yelp.nrtsearch.server.grpc.MinCollector.getDefaultInstance();
}
}
/**
*
*Collector for finding a min double value from collected documents.
*
*
* .luceneserver.MinCollector min = 7;
*/
public Builder setMin(com.yelp.nrtsearch.server.grpc.MinCollector value) {
if (minBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
collectors_ = value;
onChanged();
} else {
minBuilder_.setMessage(value);
}
collectorsCase_ = 7;
return this;
}
/**
*
*Collector for finding a min double value from collected documents.
*
*
* .luceneserver.MinCollector min = 7;
*/
public Builder setMin(
com.yelp.nrtsearch.server.grpc.MinCollector.Builder builderForValue) {
if (minBuilder_ == null) {
collectors_ = builderForValue.build();
onChanged();
} else {
minBuilder_.setMessage(builderForValue.build());
}
collectorsCase_ = 7;
return this;
}
/**
*
*Collector for finding a min double value from collected documents.
*
*
* .luceneserver.MinCollector min = 7;
*/
public Builder mergeMin(com.yelp.nrtsearch.server.grpc.MinCollector value) {
if (minBuilder_ == null) {
if (collectorsCase_ == 7 &&
collectors_ != com.yelp.nrtsearch.server.grpc.MinCollector.getDefaultInstance()) {
collectors_ = com.yelp.nrtsearch.server.grpc.MinCollector.newBuilder((com.yelp.nrtsearch.server.grpc.MinCollector) collectors_)
.mergeFrom(value).buildPartial();
} else {
collectors_ = value;
}
onChanged();
} else {
if (collectorsCase_ == 7) {
minBuilder_.mergeFrom(value);
} else {
minBuilder_.setMessage(value);
}
}
collectorsCase_ = 7;
return this;
}
/**
*
*Collector for finding a min double value from collected documents.
*
*
* .luceneserver.MinCollector min = 7;
*/
public Builder clearMin() {
if (minBuilder_ == null) {
if (collectorsCase_ == 7) {
collectorsCase_ = 0;
collectors_ = null;
onChanged();
}
} else {
if (collectorsCase_ == 7) {
collectorsCase_ = 0;
collectors_ = null;
}
minBuilder_.clear();
}
return this;
}
/**
*
*Collector for finding a min double value from collected documents.
*
*
* .luceneserver.MinCollector min = 7;
*/
public com.yelp.nrtsearch.server.grpc.MinCollector.Builder getMinBuilder() {
return getMinFieldBuilder().getBuilder();
}
/**
*
*Collector for finding a min double value from collected documents.
*
*
* .luceneserver.MinCollector min = 7;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.MinCollectorOrBuilder getMinOrBuilder() {
if ((collectorsCase_ == 7) && (minBuilder_ != null)) {
return minBuilder_.getMessageOrBuilder();
} else {
if (collectorsCase_ == 7) {
return (com.yelp.nrtsearch.server.grpc.MinCollector) collectors_;
}
return com.yelp.nrtsearch.server.grpc.MinCollector.getDefaultInstance();
}
}
/**
*
*Collector for finding a min double value from collected documents.
*
*
* .luceneserver.MinCollector min = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MinCollector, com.yelp.nrtsearch.server.grpc.MinCollector.Builder, com.yelp.nrtsearch.server.grpc.MinCollectorOrBuilder>
getMinFieldBuilder() {
if (minBuilder_ == null) {
if (!(collectorsCase_ == 7)) {
collectors_ = com.yelp.nrtsearch.server.grpc.MinCollector.getDefaultInstance();
}
minBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.MinCollector, com.yelp.nrtsearch.server.grpc.MinCollector.Builder, com.yelp.nrtsearch.server.grpc.MinCollectorOrBuilder>(
(com.yelp.nrtsearch.server.grpc.MinCollector) collectors_,
getParentForChildren(),
isClean());
collectors_ = null;
}
collectorsCase_ = 7;
onChanged();
return minBuilder_;
}
private static final class NestedCollectorsConverter implements com.google.protobuf.MapFieldBuilder.Converter {
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.Collector build(com.yelp.nrtsearch.server.grpc.CollectorOrBuilder val) {
if (val instanceof com.yelp.nrtsearch.server.grpc.Collector) { return (com.yelp.nrtsearch.server.grpc.Collector) val; }
return ((com.yelp.nrtsearch.server.grpc.Collector.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry defaultEntry() {
return NestedCollectorsDefaultEntryHolder.defaultEntry;
}
};
private static final NestedCollectorsConverter nestedCollectorsConverter = new NestedCollectorsConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, com.yelp.nrtsearch.server.grpc.CollectorOrBuilder, com.yelp.nrtsearch.server.grpc.Collector, com.yelp.nrtsearch.server.grpc.Collector.Builder> nestedCollectors_;
private com.google.protobuf.MapFieldBuilder
internalGetNestedCollectors() {
if (nestedCollectors_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(nestedCollectorsConverter);
}
return nestedCollectors_;
}
private com.google.protobuf.MapFieldBuilder
internalGetMutableNestedCollectors() {
if (nestedCollectors_ == null) {
nestedCollectors_ = new com.google.protobuf.MapFieldBuilder<>(nestedCollectorsConverter);
}
bitField0_ |= 0x00000040;
onChanged();
return nestedCollectors_;
}
public int getNestedCollectorsCount() {
return internalGetNestedCollectors().ensureBuilderMap().size();
}
/**
*
*Nested collectors that define sub-aggregations per bucket, supported by bucket based collectors.
*
*
* map<string, .luceneserver.Collector> nestedCollectors = 3;
*/
@java.lang.Override
public boolean containsNestedCollectors(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetNestedCollectors().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getNestedCollectorsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getNestedCollectors() {
return getNestedCollectorsMap();
}
/**
*
*Nested collectors that define sub-aggregations per bucket, supported by bucket based collectors.
*
*
* map<string, .luceneserver.Collector> nestedCollectors = 3;
*/
@java.lang.Override
public java.util.Map getNestedCollectorsMap() {
return internalGetNestedCollectors().getImmutableMap();
}
/**
*
*Nested collectors that define sub-aggregations per bucket, supported by bucket based collectors.
*
*
* map<string, .luceneserver.Collector> nestedCollectors = 3;
*/
@java.lang.Override
public /* nullable */
com.yelp.nrtsearch.server.grpc.Collector getNestedCollectorsOrDefault(
java.lang.String key,
/* nullable */
com.yelp.nrtsearch.server.grpc.Collector defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableNestedCollectors().ensureBuilderMap();
return map.containsKey(key) ? nestedCollectorsConverter.build(map.get(key)) : defaultValue;
}
/**
*
*Nested collectors that define sub-aggregations per bucket, supported by bucket based collectors.
*
*
* map<string, .luceneserver.Collector> nestedCollectors = 3;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.Collector getNestedCollectorsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableNestedCollectors().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return nestedCollectorsConverter.build(map.get(key));
}
public Builder clearNestedCollectors() {
bitField0_ = (bitField0_ & ~0x00000040);
internalGetMutableNestedCollectors().clear();
return this;
}
/**
*
*Nested collectors that define sub-aggregations per bucket, supported by bucket based collectors.
*
*
* map<string, .luceneserver.Collector> nestedCollectors = 3;
*/
public Builder removeNestedCollectors(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableNestedCollectors().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableNestedCollectors() {
bitField0_ |= 0x00000040;
return internalGetMutableNestedCollectors().ensureMessageMap();
}
/**
*
*Nested collectors that define sub-aggregations per bucket, supported by bucket based collectors.
*
*
* map<string, .luceneserver.Collector> nestedCollectors = 3;
*/
public Builder putNestedCollectors(
java.lang.String key,
com.yelp.nrtsearch.server.grpc.Collector value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableNestedCollectors().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000040;
return this;
}
/**
*
*Nested collectors that define sub-aggregations per bucket, supported by bucket based collectors.
*
*
* map<string, .luceneserver.Collector> nestedCollectors = 3;
*/
public Builder putAllNestedCollectors(
java.util.Map values) {
for (java.util.Map.Entry e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableNestedCollectors().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000040;
return this;
}
/**
*
*Nested collectors that define sub-aggregations per bucket, supported by bucket based collectors.
*
*
* map<string, .luceneserver.Collector> nestedCollectors = 3;
*/
public com.yelp.nrtsearch.server.grpc.Collector.Builder putNestedCollectorsBuilderIfAbsent(
java.lang.String key) {
java.util.Map builderMap = internalGetMutableNestedCollectors().ensureBuilderMap();
com.yelp.nrtsearch.server.grpc.CollectorOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = com.yelp.nrtsearch.server.grpc.Collector.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof com.yelp.nrtsearch.server.grpc.Collector) {
entry = ((com.yelp.nrtsearch.server.grpc.Collector) entry).toBuilder();
builderMap.put(key, entry);
}
return (com.yelp.nrtsearch.server.grpc.Collector.Builder) entry;
}
@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.Collector)
}
// @@protoc_insertion_point(class_scope:luceneserver.Collector)
private static final com.yelp.nrtsearch.server.grpc.Collector DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.Collector();
}
public static com.yelp.nrtsearch.server.grpc.Collector getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Collector 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.Collector getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}