com.yelp.nrtsearch.server.grpc.StatsResponse 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/luceneserver.proto
// Protobuf Java Version: 3.25.3
package com.yelp.nrtsearch.server.grpc;
/**
* Protobuf type {@code luceneserver.StatsResponse}
*/
public final class StatsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.StatsResponse)
StatsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use StatsResponse.newBuilder() to construct.
private StatsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StatsResponse() {
state_ = "";
searchers_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StatsResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_StatsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_StatsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.StatsResponse.class, com.yelp.nrtsearch.server.grpc.StatsResponse.Builder.class);
}
private int bitField0_;
public static final int ORD_FIELD_NUMBER = 1;
private int ord_ = 0;
/**
*
*shard ordinal
*
*
* int32 ord = 1;
* @return The ord.
*/
@java.lang.Override
public int getOrd() {
return ord_;
}
public static final int MAXDOC_FIELD_NUMBER = 2;
private int maxDoc_ = 0;
/**
*
* The total number of docs in this index, including docs not yet flushed (still in the RAM buffer),
*not counting deletions.
*
*
* int32 maxDoc = 2;
* @return The maxDoc.
*/
@java.lang.Override
public int getMaxDoc() {
return maxDoc_;
}
public static final int NUMDOCS_FIELD_NUMBER = 3;
private int numDocs_ = 0;
/**
*
**
* The total number of docs in this index, including
* docs not yet flushed (still in the RAM buffer), and
* including deletions. NOTE: buffered deletions
* are not counted. If you really need these to be
* counted you should call {@link IndexWriter#commit()} first.
*
*
* int32 numDocs = 3;
* @return The numDocs.
*/
@java.lang.Override
public int getNumDocs() {
return numDocs_;
}
public static final int DIRSIZE_FIELD_NUMBER = 4;
private long dirSize_ = 0L;
/**
*
*size of the this indexDir
*
*
* int64 dirSize = 4;
* @return The dirSize.
*/
@java.lang.Override
public long getDirSize() {
return dirSize_;
}
public static final int STATE_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object state_ = "";
/**
*
*state of the index
*
*
* string state = 5;
* @return The state.
*/
@java.lang.Override
public java.lang.String getState() {
java.lang.Object ref = state_;
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();
state_ = s;
return s;
}
}
/**
*
*state of the index
*
*
* string state = 5;
* @return The bytes for state.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TAXONOMY_FIELD_NUMBER = 6;
private com.yelp.nrtsearch.server.grpc.Taxonomy taxonomy_;
/**
*
*Taxonomy(facets) stats
*
*
* .luceneserver.Taxonomy taxonomy = 6;
* @return Whether the taxonomy field is set.
*/
@java.lang.Override
public boolean hasTaxonomy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*Taxonomy(facets) stats
*
*
* .luceneserver.Taxonomy taxonomy = 6;
* @return The taxonomy.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.Taxonomy getTaxonomy() {
return taxonomy_ == null ? com.yelp.nrtsearch.server.grpc.Taxonomy.getDefaultInstance() : taxonomy_;
}
/**
*
*Taxonomy(facets) stats
*
*
* .luceneserver.Taxonomy taxonomy = 6;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.TaxonomyOrBuilder getTaxonomyOrBuilder() {
return taxonomy_ == null ? com.yelp.nrtsearch.server.grpc.Taxonomy.getDefaultInstance() : taxonomy_;
}
public static final int SEARCHERS_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private java.util.List searchers_;
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
@java.lang.Override
public java.util.List getSearchersList() {
return searchers_;
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
@java.lang.Override
public java.util.List extends com.yelp.nrtsearch.server.grpc.SearcherOrBuilder>
getSearchersOrBuilderList() {
return searchers_;
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
@java.lang.Override
public int getSearchersCount() {
return searchers_.size();
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.Searcher getSearchers(int index) {
return searchers_.get(index);
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.SearcherOrBuilder getSearchersOrBuilder(
int index) {
return searchers_.get(index);
}
public static final int CURRENTSEARCHER_FIELD_NUMBER = 8;
private com.yelp.nrtsearch.server.grpc.Searcher currentSearcher_;
/**
*
*Current Searcher stats
*
*
* .luceneserver.Searcher currentSearcher = 8;
* @return Whether the currentSearcher field is set.
*/
@java.lang.Override
public boolean hasCurrentSearcher() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*Current Searcher stats
*
*
* .luceneserver.Searcher currentSearcher = 8;
* @return The currentSearcher.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.Searcher getCurrentSearcher() {
return currentSearcher_ == null ? com.yelp.nrtsearch.server.grpc.Searcher.getDefaultInstance() : currentSearcher_;
}
/**
*
*Current Searcher stats
*
*
* .luceneserver.Searcher currentSearcher = 8;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.SearcherOrBuilder getCurrentSearcherOrBuilder() {
return currentSearcher_ == null ? com.yelp.nrtsearch.server.grpc.Searcher.getDefaultInstance() : currentSearcher_;
}
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 (ord_ != 0) {
output.writeInt32(1, ord_);
}
if (maxDoc_ != 0) {
output.writeInt32(2, maxDoc_);
}
if (numDocs_ != 0) {
output.writeInt32(3, numDocs_);
}
if (dirSize_ != 0L) {
output.writeInt64(4, dirSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, state_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(6, getTaxonomy());
}
for (int i = 0; i < searchers_.size(); i++) {
output.writeMessage(7, searchers_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(8, getCurrentSearcher());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ord_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, ord_);
}
if (maxDoc_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, maxDoc_);
}
if (numDocs_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, numDocs_);
}
if (dirSize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, dirSize_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, state_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getTaxonomy());
}
for (int i = 0; i < searchers_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, searchers_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getCurrentSearcher());
}
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.StatsResponse)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.StatsResponse other = (com.yelp.nrtsearch.server.grpc.StatsResponse) obj;
if (getOrd()
!= other.getOrd()) return false;
if (getMaxDoc()
!= other.getMaxDoc()) return false;
if (getNumDocs()
!= other.getNumDocs()) return false;
if (getDirSize()
!= other.getDirSize()) return false;
if (!getState()
.equals(other.getState())) return false;
if (hasTaxonomy() != other.hasTaxonomy()) return false;
if (hasTaxonomy()) {
if (!getTaxonomy()
.equals(other.getTaxonomy())) return false;
}
if (!getSearchersList()
.equals(other.getSearchersList())) return false;
if (hasCurrentSearcher() != other.hasCurrentSearcher()) return false;
if (hasCurrentSearcher()) {
if (!getCurrentSearcher()
.equals(other.getCurrentSearcher())) 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) + ORD_FIELD_NUMBER;
hash = (53 * hash) + getOrd();
hash = (37 * hash) + MAXDOC_FIELD_NUMBER;
hash = (53 * hash) + getMaxDoc();
hash = (37 * hash) + NUMDOCS_FIELD_NUMBER;
hash = (53 * hash) + getNumDocs();
hash = (37 * hash) + DIRSIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDirSize());
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + getState().hashCode();
if (hasTaxonomy()) {
hash = (37 * hash) + TAXONOMY_FIELD_NUMBER;
hash = (53 * hash) + getTaxonomy().hashCode();
}
if (getSearchersCount() > 0) {
hash = (37 * hash) + SEARCHERS_FIELD_NUMBER;
hash = (53 * hash) + getSearchersList().hashCode();
}
if (hasCurrentSearcher()) {
hash = (37 * hash) + CURRENTSEARCHER_FIELD_NUMBER;
hash = (53 * hash) + getCurrentSearcher().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.StatsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.StatsResponse 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.StatsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.StatsResponse 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.StatsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.StatsResponse 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.StatsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.StatsResponse 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.StatsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.StatsResponse 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.StatsResponse 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.StatsResponse 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.StatsResponse 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.StatsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.StatsResponse)
com.yelp.nrtsearch.server.grpc.StatsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_StatsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_StatsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.StatsResponse.class, com.yelp.nrtsearch.server.grpc.StatsResponse.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.StatsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTaxonomyFieldBuilder();
getSearchersFieldBuilder();
getCurrentSearcherFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
ord_ = 0;
maxDoc_ = 0;
numDocs_ = 0;
dirSize_ = 0L;
state_ = "";
taxonomy_ = null;
if (taxonomyBuilder_ != null) {
taxonomyBuilder_.dispose();
taxonomyBuilder_ = null;
}
if (searchersBuilder_ == null) {
searchers_ = java.util.Collections.emptyList();
} else {
searchers_ = null;
searchersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
currentSearcher_ = null;
if (currentSearcherBuilder_ != null) {
currentSearcherBuilder_.dispose();
currentSearcherBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_StatsResponse_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.StatsResponse getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.StatsResponse.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.StatsResponse build() {
com.yelp.nrtsearch.server.grpc.StatsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.StatsResponse buildPartial() {
com.yelp.nrtsearch.server.grpc.StatsResponse result = new com.yelp.nrtsearch.server.grpc.StatsResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.yelp.nrtsearch.server.grpc.StatsResponse result) {
if (searchersBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
searchers_ = java.util.Collections.unmodifiableList(searchers_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.searchers_ = searchers_;
} else {
result.searchers_ = searchersBuilder_.build();
}
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.StatsResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.ord_ = ord_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.maxDoc_ = maxDoc_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.numDocs_ = numDocs_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.dirSize_ = dirSize_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.state_ = state_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.taxonomy_ = taxonomyBuilder_ == null
? taxonomy_
: taxonomyBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.currentSearcher_ = currentSearcherBuilder_ == null
? currentSearcher_
: currentSearcherBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.yelp.nrtsearch.server.grpc.StatsResponse) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.StatsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.StatsResponse other) {
if (other == com.yelp.nrtsearch.server.grpc.StatsResponse.getDefaultInstance()) return this;
if (other.getOrd() != 0) {
setOrd(other.getOrd());
}
if (other.getMaxDoc() != 0) {
setMaxDoc(other.getMaxDoc());
}
if (other.getNumDocs() != 0) {
setNumDocs(other.getNumDocs());
}
if (other.getDirSize() != 0L) {
setDirSize(other.getDirSize());
}
if (!other.getState().isEmpty()) {
state_ = other.state_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasTaxonomy()) {
mergeTaxonomy(other.getTaxonomy());
}
if (searchersBuilder_ == null) {
if (!other.searchers_.isEmpty()) {
if (searchers_.isEmpty()) {
searchers_ = other.searchers_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureSearchersIsMutable();
searchers_.addAll(other.searchers_);
}
onChanged();
}
} else {
if (!other.searchers_.isEmpty()) {
if (searchersBuilder_.isEmpty()) {
searchersBuilder_.dispose();
searchersBuilder_ = null;
searchers_ = other.searchers_;
bitField0_ = (bitField0_ & ~0x00000040);
searchersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSearchersFieldBuilder() : null;
} else {
searchersBuilder_.addAllMessages(other.searchers_);
}
}
}
if (other.hasCurrentSearcher()) {
mergeCurrentSearcher(other.getCurrentSearcher());
}
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: {
ord_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
maxDoc_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
numDocs_ = input.readInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
dirSize_ = input.readInt64();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42: {
state_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getTaxonomyFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
com.yelp.nrtsearch.server.grpc.Searcher m =
input.readMessage(
com.yelp.nrtsearch.server.grpc.Searcher.parser(),
extensionRegistry);
if (searchersBuilder_ == null) {
ensureSearchersIsMutable();
searchers_.add(m);
} else {
searchersBuilder_.addMessage(m);
}
break;
} // case 58
case 66: {
input.readMessage(
getCurrentSearcherFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 66
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 int ord_ ;
/**
*
*shard ordinal
*
*
* int32 ord = 1;
* @return The ord.
*/
@java.lang.Override
public int getOrd() {
return ord_;
}
/**
*
*shard ordinal
*
*
* int32 ord = 1;
* @param value The ord to set.
* @return This builder for chaining.
*/
public Builder setOrd(int value) {
ord_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*shard ordinal
*
*
* int32 ord = 1;
* @return This builder for chaining.
*/
public Builder clearOrd() {
bitField0_ = (bitField0_ & ~0x00000001);
ord_ = 0;
onChanged();
return this;
}
private int maxDoc_ ;
/**
*
* The total number of docs in this index, including docs not yet flushed (still in the RAM buffer),
*not counting deletions.
*
*
* int32 maxDoc = 2;
* @return The maxDoc.
*/
@java.lang.Override
public int getMaxDoc() {
return maxDoc_;
}
/**
*
* The total number of docs in this index, including docs not yet flushed (still in the RAM buffer),
*not counting deletions.
*
*
* int32 maxDoc = 2;
* @param value The maxDoc to set.
* @return This builder for chaining.
*/
public Builder setMaxDoc(int value) {
maxDoc_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The total number of docs in this index, including docs not yet flushed (still in the RAM buffer),
*not counting deletions.
*
*
* int32 maxDoc = 2;
* @return This builder for chaining.
*/
public Builder clearMaxDoc() {
bitField0_ = (bitField0_ & ~0x00000002);
maxDoc_ = 0;
onChanged();
return this;
}
private int numDocs_ ;
/**
*
**
* The total number of docs in this index, including
* docs not yet flushed (still in the RAM buffer), and
* including deletions. NOTE: buffered deletions
* are not counted. If you really need these to be
* counted you should call {@link IndexWriter#commit()} first.
*
*
* int32 numDocs = 3;
* @return The numDocs.
*/
@java.lang.Override
public int getNumDocs() {
return numDocs_;
}
/**
*
**
* The total number of docs in this index, including
* docs not yet flushed (still in the RAM buffer), and
* including deletions. NOTE: buffered deletions
* are not counted. If you really need these to be
* counted you should call {@link IndexWriter#commit()} first.
*
*
* int32 numDocs = 3;
* @param value The numDocs to set.
* @return This builder for chaining.
*/
public Builder setNumDocs(int value) {
numDocs_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
**
* The total number of docs in this index, including
* docs not yet flushed (still in the RAM buffer), and
* including deletions. NOTE: buffered deletions
* are not counted. If you really need these to be
* counted you should call {@link IndexWriter#commit()} first.
*
*
* int32 numDocs = 3;
* @return This builder for chaining.
*/
public Builder clearNumDocs() {
bitField0_ = (bitField0_ & ~0x00000004);
numDocs_ = 0;
onChanged();
return this;
}
private long dirSize_ ;
/**
*
*size of the this indexDir
*
*
* int64 dirSize = 4;
* @return The dirSize.
*/
@java.lang.Override
public long getDirSize() {
return dirSize_;
}
/**
*
*size of the this indexDir
*
*
* int64 dirSize = 4;
* @param value The dirSize to set.
* @return This builder for chaining.
*/
public Builder setDirSize(long value) {
dirSize_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*size of the this indexDir
*
*
* int64 dirSize = 4;
* @return This builder for chaining.
*/
public Builder clearDirSize() {
bitField0_ = (bitField0_ & ~0x00000008);
dirSize_ = 0L;
onChanged();
return this;
}
private java.lang.Object state_ = "";
/**
*
*state of the index
*
*
* string state = 5;
* @return The state.
*/
public java.lang.String getState() {
java.lang.Object ref = state_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
state_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*state of the index
*
*
* string state = 5;
* @return The bytes for state.
*/
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*state of the index
*
*
* string state = 5;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
state_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*state of the index
*
*
* string state = 5;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = getDefaultInstance().getState();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*state of the index
*
*
* string state = 5;
* @param value The bytes for state to set.
* @return This builder for chaining.
*/
public Builder setStateBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
state_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.yelp.nrtsearch.server.grpc.Taxonomy taxonomy_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.Taxonomy, com.yelp.nrtsearch.server.grpc.Taxonomy.Builder, com.yelp.nrtsearch.server.grpc.TaxonomyOrBuilder> taxonomyBuilder_;
/**
*
*Taxonomy(facets) stats
*
*
* .luceneserver.Taxonomy taxonomy = 6;
* @return Whether the taxonomy field is set.
*/
public boolean hasTaxonomy() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*Taxonomy(facets) stats
*
*
* .luceneserver.Taxonomy taxonomy = 6;
* @return The taxonomy.
*/
public com.yelp.nrtsearch.server.grpc.Taxonomy getTaxonomy() {
if (taxonomyBuilder_ == null) {
return taxonomy_ == null ? com.yelp.nrtsearch.server.grpc.Taxonomy.getDefaultInstance() : taxonomy_;
} else {
return taxonomyBuilder_.getMessage();
}
}
/**
*
*Taxonomy(facets) stats
*
*
* .luceneserver.Taxonomy taxonomy = 6;
*/
public Builder setTaxonomy(com.yelp.nrtsearch.server.grpc.Taxonomy value) {
if (taxonomyBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
taxonomy_ = value;
} else {
taxonomyBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Taxonomy(facets) stats
*
*
* .luceneserver.Taxonomy taxonomy = 6;
*/
public Builder setTaxonomy(
com.yelp.nrtsearch.server.grpc.Taxonomy.Builder builderForValue) {
if (taxonomyBuilder_ == null) {
taxonomy_ = builderForValue.build();
} else {
taxonomyBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Taxonomy(facets) stats
*
*
* .luceneserver.Taxonomy taxonomy = 6;
*/
public Builder mergeTaxonomy(com.yelp.nrtsearch.server.grpc.Taxonomy value) {
if (taxonomyBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
taxonomy_ != null &&
taxonomy_ != com.yelp.nrtsearch.server.grpc.Taxonomy.getDefaultInstance()) {
getTaxonomyBuilder().mergeFrom(value);
} else {
taxonomy_ = value;
}
} else {
taxonomyBuilder_.mergeFrom(value);
}
if (taxonomy_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
*Taxonomy(facets) stats
*
*
* .luceneserver.Taxonomy taxonomy = 6;
*/
public Builder clearTaxonomy() {
bitField0_ = (bitField0_ & ~0x00000020);
taxonomy_ = null;
if (taxonomyBuilder_ != null) {
taxonomyBuilder_.dispose();
taxonomyBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Taxonomy(facets) stats
*
*
* .luceneserver.Taxonomy taxonomy = 6;
*/
public com.yelp.nrtsearch.server.grpc.Taxonomy.Builder getTaxonomyBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getTaxonomyFieldBuilder().getBuilder();
}
/**
*
*Taxonomy(facets) stats
*
*
* .luceneserver.Taxonomy taxonomy = 6;
*/
public com.yelp.nrtsearch.server.grpc.TaxonomyOrBuilder getTaxonomyOrBuilder() {
if (taxonomyBuilder_ != null) {
return taxonomyBuilder_.getMessageOrBuilder();
} else {
return taxonomy_ == null ?
com.yelp.nrtsearch.server.grpc.Taxonomy.getDefaultInstance() : taxonomy_;
}
}
/**
*
*Taxonomy(facets) stats
*
*
* .luceneserver.Taxonomy taxonomy = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.Taxonomy, com.yelp.nrtsearch.server.grpc.Taxonomy.Builder, com.yelp.nrtsearch.server.grpc.TaxonomyOrBuilder>
getTaxonomyFieldBuilder() {
if (taxonomyBuilder_ == null) {
taxonomyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.Taxonomy, com.yelp.nrtsearch.server.grpc.Taxonomy.Builder, com.yelp.nrtsearch.server.grpc.TaxonomyOrBuilder>(
getTaxonomy(),
getParentForChildren(),
isClean());
taxonomy_ = null;
}
return taxonomyBuilder_;
}
private java.util.List searchers_ =
java.util.Collections.emptyList();
private void ensureSearchersIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
searchers_ = new java.util.ArrayList(searchers_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.Searcher, com.yelp.nrtsearch.server.grpc.Searcher.Builder, com.yelp.nrtsearch.server.grpc.SearcherOrBuilder> searchersBuilder_;
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public java.util.List getSearchersList() {
if (searchersBuilder_ == null) {
return java.util.Collections.unmodifiableList(searchers_);
} else {
return searchersBuilder_.getMessageList();
}
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public int getSearchersCount() {
if (searchersBuilder_ == null) {
return searchers_.size();
} else {
return searchersBuilder_.getCount();
}
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public com.yelp.nrtsearch.server.grpc.Searcher getSearchers(int index) {
if (searchersBuilder_ == null) {
return searchers_.get(index);
} else {
return searchersBuilder_.getMessage(index);
}
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public Builder setSearchers(
int index, com.yelp.nrtsearch.server.grpc.Searcher value) {
if (searchersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSearchersIsMutable();
searchers_.set(index, value);
onChanged();
} else {
searchersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public Builder setSearchers(
int index, com.yelp.nrtsearch.server.grpc.Searcher.Builder builderForValue) {
if (searchersBuilder_ == null) {
ensureSearchersIsMutable();
searchers_.set(index, builderForValue.build());
onChanged();
} else {
searchersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public Builder addSearchers(com.yelp.nrtsearch.server.grpc.Searcher value) {
if (searchersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSearchersIsMutable();
searchers_.add(value);
onChanged();
} else {
searchersBuilder_.addMessage(value);
}
return this;
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public Builder addSearchers(
int index, com.yelp.nrtsearch.server.grpc.Searcher value) {
if (searchersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSearchersIsMutable();
searchers_.add(index, value);
onChanged();
} else {
searchersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public Builder addSearchers(
com.yelp.nrtsearch.server.grpc.Searcher.Builder builderForValue) {
if (searchersBuilder_ == null) {
ensureSearchersIsMutable();
searchers_.add(builderForValue.build());
onChanged();
} else {
searchersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public Builder addSearchers(
int index, com.yelp.nrtsearch.server.grpc.Searcher.Builder builderForValue) {
if (searchersBuilder_ == null) {
ensureSearchersIsMutable();
searchers_.add(index, builderForValue.build());
onChanged();
} else {
searchersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public Builder addAllSearchers(
java.lang.Iterable extends com.yelp.nrtsearch.server.grpc.Searcher> values) {
if (searchersBuilder_ == null) {
ensureSearchersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, searchers_);
onChanged();
} else {
searchersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public Builder clearSearchers() {
if (searchersBuilder_ == null) {
searchers_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
searchersBuilder_.clear();
}
return this;
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public Builder removeSearchers(int index) {
if (searchersBuilder_ == null) {
ensureSearchersIsMutable();
searchers_.remove(index);
onChanged();
} else {
searchersBuilder_.remove(index);
}
return this;
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public com.yelp.nrtsearch.server.grpc.Searcher.Builder getSearchersBuilder(
int index) {
return getSearchersFieldBuilder().getBuilder(index);
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public com.yelp.nrtsearch.server.grpc.SearcherOrBuilder getSearchersOrBuilder(
int index) {
if (searchersBuilder_ == null) {
return searchers_.get(index); } else {
return searchersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public java.util.List extends com.yelp.nrtsearch.server.grpc.SearcherOrBuilder>
getSearchersOrBuilderList() {
if (searchersBuilder_ != null) {
return searchersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(searchers_);
}
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public com.yelp.nrtsearch.server.grpc.Searcher.Builder addSearchersBuilder() {
return getSearchersFieldBuilder().addBuilder(
com.yelp.nrtsearch.server.grpc.Searcher.getDefaultInstance());
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public com.yelp.nrtsearch.server.grpc.Searcher.Builder addSearchersBuilder(
int index) {
return getSearchersFieldBuilder().addBuilder(
index, com.yelp.nrtsearch.server.grpc.Searcher.getDefaultInstance());
}
/**
*
*Searcher stats
*
*
* repeated .luceneserver.Searcher searchers = 7;
*/
public java.util.List
getSearchersBuilderList() {
return getSearchersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.Searcher, com.yelp.nrtsearch.server.grpc.Searcher.Builder, com.yelp.nrtsearch.server.grpc.SearcherOrBuilder>
getSearchersFieldBuilder() {
if (searchersBuilder_ == null) {
searchersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.Searcher, com.yelp.nrtsearch.server.grpc.Searcher.Builder, com.yelp.nrtsearch.server.grpc.SearcherOrBuilder>(
searchers_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
searchers_ = null;
}
return searchersBuilder_;
}
private com.yelp.nrtsearch.server.grpc.Searcher currentSearcher_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.Searcher, com.yelp.nrtsearch.server.grpc.Searcher.Builder, com.yelp.nrtsearch.server.grpc.SearcherOrBuilder> currentSearcherBuilder_;
/**
*
*Current Searcher stats
*
*
* .luceneserver.Searcher currentSearcher = 8;
* @return Whether the currentSearcher field is set.
*/
public boolean hasCurrentSearcher() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*Current Searcher stats
*
*
* .luceneserver.Searcher currentSearcher = 8;
* @return The currentSearcher.
*/
public com.yelp.nrtsearch.server.grpc.Searcher getCurrentSearcher() {
if (currentSearcherBuilder_ == null) {
return currentSearcher_ == null ? com.yelp.nrtsearch.server.grpc.Searcher.getDefaultInstance() : currentSearcher_;
} else {
return currentSearcherBuilder_.getMessage();
}
}
/**
*
*Current Searcher stats
*
*
* .luceneserver.Searcher currentSearcher = 8;
*/
public Builder setCurrentSearcher(com.yelp.nrtsearch.server.grpc.Searcher value) {
if (currentSearcherBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
currentSearcher_ = value;
} else {
currentSearcherBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Current Searcher stats
*
*
* .luceneserver.Searcher currentSearcher = 8;
*/
public Builder setCurrentSearcher(
com.yelp.nrtsearch.server.grpc.Searcher.Builder builderForValue) {
if (currentSearcherBuilder_ == null) {
currentSearcher_ = builderForValue.build();
} else {
currentSearcherBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Current Searcher stats
*
*
* .luceneserver.Searcher currentSearcher = 8;
*/
public Builder mergeCurrentSearcher(com.yelp.nrtsearch.server.grpc.Searcher value) {
if (currentSearcherBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
currentSearcher_ != null &&
currentSearcher_ != com.yelp.nrtsearch.server.grpc.Searcher.getDefaultInstance()) {
getCurrentSearcherBuilder().mergeFrom(value);
} else {
currentSearcher_ = value;
}
} else {
currentSearcherBuilder_.mergeFrom(value);
}
if (currentSearcher_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
*Current Searcher stats
*
*
* .luceneserver.Searcher currentSearcher = 8;
*/
public Builder clearCurrentSearcher() {
bitField0_ = (bitField0_ & ~0x00000080);
currentSearcher_ = null;
if (currentSearcherBuilder_ != null) {
currentSearcherBuilder_.dispose();
currentSearcherBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*Current Searcher stats
*
*
* .luceneserver.Searcher currentSearcher = 8;
*/
public com.yelp.nrtsearch.server.grpc.Searcher.Builder getCurrentSearcherBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getCurrentSearcherFieldBuilder().getBuilder();
}
/**
*
*Current Searcher stats
*
*
* .luceneserver.Searcher currentSearcher = 8;
*/
public com.yelp.nrtsearch.server.grpc.SearcherOrBuilder getCurrentSearcherOrBuilder() {
if (currentSearcherBuilder_ != null) {
return currentSearcherBuilder_.getMessageOrBuilder();
} else {
return currentSearcher_ == null ?
com.yelp.nrtsearch.server.grpc.Searcher.getDefaultInstance() : currentSearcher_;
}
}
/**
*
*Current Searcher stats
*
*
* .luceneserver.Searcher currentSearcher = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.Searcher, com.yelp.nrtsearch.server.grpc.Searcher.Builder, com.yelp.nrtsearch.server.grpc.SearcherOrBuilder>
getCurrentSearcherFieldBuilder() {
if (currentSearcherBuilder_ == null) {
currentSearcherBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.Searcher, com.yelp.nrtsearch.server.grpc.Searcher.Builder, com.yelp.nrtsearch.server.grpc.SearcherOrBuilder>(
getCurrentSearcher(),
getParentForChildren(),
isClean());
currentSearcher_ = null;
}
return currentSearcherBuilder_;
}
@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.StatsResponse)
}
// @@protoc_insertion_point(class_scope:luceneserver.StatsResponse)
private static final com.yelp.nrtsearch.server.grpc.StatsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.StatsResponse();
}
public static com.yelp.nrtsearch.server.grpc.StatsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StatsResponse 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.StatsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}