com.yelp.nrtsearch.server.grpc.LiveSettingsRequest 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;
/**
*
* Input to liveSettings
*
*
* Protobuf type {@code luceneserver.LiveSettingsRequest}
*/
public final class LiveSettingsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.LiveSettingsRequest)
LiveSettingsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use LiveSettingsRequest.newBuilder() to construct.
private LiveSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private LiveSettingsRequest() {
indexName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new LiveSettingsRequest();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_LiveSettingsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_LiveSettingsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.LiveSettingsRequest.class, com.yelp.nrtsearch.server.grpc.LiveSettingsRequest.Builder.class);
}
public static final int INDEXNAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object indexName_ = "";
/**
*
* name of index whose liveSettings are to be updated.
*
*
* string indexName = 1;
* @return The indexName.
*/
@java.lang.Override
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
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();
indexName_ = s;
return s;
}
}
/**
*
* name of index whose liveSettings are to be updated.
*
*
* string indexName = 1;
* @return The bytes for indexName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MAXREFRESHSEC_FIELD_NUMBER = 2;
private double maxRefreshSec_ = 0D;
/**
*
*Longest time to wait before reopening IndexSearcher (i.e., periodic background reopen).
*
*
* double maxRefreshSec = 2;
* @return The maxRefreshSec.
*/
@java.lang.Override
public double getMaxRefreshSec() {
return maxRefreshSec_;
}
public static final int MINREFRESHSEC_FIELD_NUMBER = 3;
private double minRefreshSec_ = 0D;
/**
*
*Shortest time to wait before reopening IndexSearcher (i.e., when a search is waiting for a specific indexGen).
*
*
* double minRefreshSec = 3;
* @return The minRefreshSec.
*/
@java.lang.Override
public double getMinRefreshSec() {
return minRefreshSec_;
}
public static final int MAXSEARCHERAGESEC_FIELD_NUMBER = 4;
private double maxSearcherAgeSec_ = 0D;
/**
*
*Non-current searchers older than this are pruned.
*
*
* double maxSearcherAgeSec = 4;
* @return The maxSearcherAgeSec.
*/
@java.lang.Override
public double getMaxSearcherAgeSec() {
return maxSearcherAgeSec_;
}
public static final int INDEXRAMBUFFERSIZEMB_FIELD_NUMBER = 5;
private double indexRamBufferSizeMB_ = 0D;
/**
*
*Size (in MB) of IndexWriter's RAM buffer.
*
*
* double indexRamBufferSizeMB = 5;
* @return The indexRamBufferSizeMB.
*/
@java.lang.Override
public double getIndexRamBufferSizeMB() {
return indexRamBufferSizeMB_;
}
public static final int ADDDOCUMENTSMAXBUFFERLEN_FIELD_NUMBER = 6;
private int addDocumentsMaxBufferLen_ = 0;
/**
*
*Max number of documents to add at a time.
*
*
* int32 addDocumentsMaxBufferLen = 6;
* @return The addDocumentsMaxBufferLen.
*/
@java.lang.Override
public int getAddDocumentsMaxBufferLen() {
return addDocumentsMaxBufferLen_;
}
public static final int SLICEMAXDOCS_FIELD_NUMBER = 7;
private int sliceMaxDocs_ = 0;
/**
*
*Maximum number of documents allowed in a parallel search slice.
*
*
* int32 sliceMaxDocs = 7;
* @return The sliceMaxDocs.
*/
@java.lang.Override
public int getSliceMaxDocs() {
return sliceMaxDocs_;
}
public static final int SLICEMAXSEGMENTS_FIELD_NUMBER = 8;
private int sliceMaxSegments_ = 0;
/**
*
*Maximum number of segments allowed in a parallel search slice.
*
*
* int32 sliceMaxSegments = 8;
* @return The sliceMaxSegments.
*/
@java.lang.Override
public int getSliceMaxSegments() {
return sliceMaxSegments_;
}
public static final int VIRTUALSHARDS_FIELD_NUMBER = 9;
private int virtualShards_ = 0;
/**
*
*Number of virtual shards to use for this index.
*
*
* int32 virtualShards = 9;
* @return The virtualShards.
*/
@java.lang.Override
public int getVirtualShards() {
return virtualShards_;
}
public static final int MAXMERGEDSEGMENTMB_FIELD_NUMBER = 10;
private int maxMergedSegmentMB_ = 0;
/**
*
*Maximum sized segment to produce during normal merging
*
*
* int32 maxMergedSegmentMB = 10;
* @return The maxMergedSegmentMB.
*/
@java.lang.Override
public int getMaxMergedSegmentMB() {
return maxMergedSegmentMB_;
}
public static final int SEGMENTSPERTIER_FIELD_NUMBER = 11;
private int segmentsPerTier_ = 0;
/**
*
*Number of segments per tier used by TieredMergePolicy
*
*
* int32 segmentsPerTier = 11;
* @return The segmentsPerTier.
*/
@java.lang.Override
public int getSegmentsPerTier() {
return segmentsPerTier_;
}
public static final int DEFAULTSEARCHTIMEOUTSEC_FIELD_NUMBER = 12;
private double defaultSearchTimeoutSec_ = 0D;
/**
*
*Timeout value to used when not specified in the search request.
*
*
* double defaultSearchTimeoutSec = 12;
* @return The defaultSearchTimeoutSec.
*/
@java.lang.Override
public double getDefaultSearchTimeoutSec() {
return defaultSearchTimeoutSec_;
}
public static final int DEFAULTSEARCHTIMEOUTCHECKEVERY_FIELD_NUMBER = 13;
private int defaultSearchTimeoutCheckEvery_ = 0;
/**
*
*Timeout check every value to use when not specified in the search request.
*
*
* int32 defaultSearchTimeoutCheckEvery = 13;
* @return The defaultSearchTimeoutCheckEvery.
*/
@java.lang.Override
public int getDefaultSearchTimeoutCheckEvery() {
return defaultSearchTimeoutCheckEvery_;
}
public static final int DEFAULTTERMINATEAFTER_FIELD_NUMBER = 14;
private int defaultTerminateAfter_ = 0;
/**
*
*Terminate after value to use when not specified in the search request.
*
*
* int32 defaultTerminateAfter = 14;
* @return The defaultTerminateAfter.
*/
@java.lang.Override
public int getDefaultTerminateAfter() {
return defaultTerminateAfter_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, indexName_);
}
if (java.lang.Double.doubleToRawLongBits(maxRefreshSec_) != 0) {
output.writeDouble(2, maxRefreshSec_);
}
if (java.lang.Double.doubleToRawLongBits(minRefreshSec_) != 0) {
output.writeDouble(3, minRefreshSec_);
}
if (java.lang.Double.doubleToRawLongBits(maxSearcherAgeSec_) != 0) {
output.writeDouble(4, maxSearcherAgeSec_);
}
if (java.lang.Double.doubleToRawLongBits(indexRamBufferSizeMB_) != 0) {
output.writeDouble(5, indexRamBufferSizeMB_);
}
if (addDocumentsMaxBufferLen_ != 0) {
output.writeInt32(6, addDocumentsMaxBufferLen_);
}
if (sliceMaxDocs_ != 0) {
output.writeInt32(7, sliceMaxDocs_);
}
if (sliceMaxSegments_ != 0) {
output.writeInt32(8, sliceMaxSegments_);
}
if (virtualShards_ != 0) {
output.writeInt32(9, virtualShards_);
}
if (maxMergedSegmentMB_ != 0) {
output.writeInt32(10, maxMergedSegmentMB_);
}
if (segmentsPerTier_ != 0) {
output.writeInt32(11, segmentsPerTier_);
}
if (java.lang.Double.doubleToRawLongBits(defaultSearchTimeoutSec_) != 0) {
output.writeDouble(12, defaultSearchTimeoutSec_);
}
if (defaultSearchTimeoutCheckEvery_ != 0) {
output.writeInt32(13, defaultSearchTimeoutCheckEvery_);
}
if (defaultTerminateAfter_ != 0) {
output.writeInt32(14, defaultTerminateAfter_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(indexName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, indexName_);
}
if (java.lang.Double.doubleToRawLongBits(maxRefreshSec_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, maxRefreshSec_);
}
if (java.lang.Double.doubleToRawLongBits(minRefreshSec_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, minRefreshSec_);
}
if (java.lang.Double.doubleToRawLongBits(maxSearcherAgeSec_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, maxSearcherAgeSec_);
}
if (java.lang.Double.doubleToRawLongBits(indexRamBufferSizeMB_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, indexRamBufferSizeMB_);
}
if (addDocumentsMaxBufferLen_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, addDocumentsMaxBufferLen_);
}
if (sliceMaxDocs_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, sliceMaxDocs_);
}
if (sliceMaxSegments_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, sliceMaxSegments_);
}
if (virtualShards_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, virtualShards_);
}
if (maxMergedSegmentMB_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(10, maxMergedSegmentMB_);
}
if (segmentsPerTier_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(11, segmentsPerTier_);
}
if (java.lang.Double.doubleToRawLongBits(defaultSearchTimeoutSec_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(12, defaultSearchTimeoutSec_);
}
if (defaultSearchTimeoutCheckEvery_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(13, defaultSearchTimeoutCheckEvery_);
}
if (defaultTerminateAfter_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(14, defaultTerminateAfter_);
}
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.LiveSettingsRequest)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.LiveSettingsRequest other = (com.yelp.nrtsearch.server.grpc.LiveSettingsRequest) obj;
if (!getIndexName()
.equals(other.getIndexName())) return false;
if (java.lang.Double.doubleToLongBits(getMaxRefreshSec())
!= java.lang.Double.doubleToLongBits(
other.getMaxRefreshSec())) return false;
if (java.lang.Double.doubleToLongBits(getMinRefreshSec())
!= java.lang.Double.doubleToLongBits(
other.getMinRefreshSec())) return false;
if (java.lang.Double.doubleToLongBits(getMaxSearcherAgeSec())
!= java.lang.Double.doubleToLongBits(
other.getMaxSearcherAgeSec())) return false;
if (java.lang.Double.doubleToLongBits(getIndexRamBufferSizeMB())
!= java.lang.Double.doubleToLongBits(
other.getIndexRamBufferSizeMB())) return false;
if (getAddDocumentsMaxBufferLen()
!= other.getAddDocumentsMaxBufferLen()) return false;
if (getSliceMaxDocs()
!= other.getSliceMaxDocs()) return false;
if (getSliceMaxSegments()
!= other.getSliceMaxSegments()) return false;
if (getVirtualShards()
!= other.getVirtualShards()) return false;
if (getMaxMergedSegmentMB()
!= other.getMaxMergedSegmentMB()) return false;
if (getSegmentsPerTier()
!= other.getSegmentsPerTier()) return false;
if (java.lang.Double.doubleToLongBits(getDefaultSearchTimeoutSec())
!= java.lang.Double.doubleToLongBits(
other.getDefaultSearchTimeoutSec())) return false;
if (getDefaultSearchTimeoutCheckEvery()
!= other.getDefaultSearchTimeoutCheckEvery()) return false;
if (getDefaultTerminateAfter()
!= other.getDefaultTerminateAfter()) 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) + INDEXNAME_FIELD_NUMBER;
hash = (53 * hash) + getIndexName().hashCode();
hash = (37 * hash) + MAXREFRESHSEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMaxRefreshSec()));
hash = (37 * hash) + MINREFRESHSEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMinRefreshSec()));
hash = (37 * hash) + MAXSEARCHERAGESEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMaxSearcherAgeSec()));
hash = (37 * hash) + INDEXRAMBUFFERSIZEMB_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getIndexRamBufferSizeMB()));
hash = (37 * hash) + ADDDOCUMENTSMAXBUFFERLEN_FIELD_NUMBER;
hash = (53 * hash) + getAddDocumentsMaxBufferLen();
hash = (37 * hash) + SLICEMAXDOCS_FIELD_NUMBER;
hash = (53 * hash) + getSliceMaxDocs();
hash = (37 * hash) + SLICEMAXSEGMENTS_FIELD_NUMBER;
hash = (53 * hash) + getSliceMaxSegments();
hash = (37 * hash) + VIRTUALSHARDS_FIELD_NUMBER;
hash = (53 * hash) + getVirtualShards();
hash = (37 * hash) + MAXMERGEDSEGMENTMB_FIELD_NUMBER;
hash = (53 * hash) + getMaxMergedSegmentMB();
hash = (37 * hash) + SEGMENTSPERTIER_FIELD_NUMBER;
hash = (53 * hash) + getSegmentsPerTier();
hash = (37 * hash) + DEFAULTSEARCHTIMEOUTSEC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDefaultSearchTimeoutSec()));
hash = (37 * hash) + DEFAULTSEARCHTIMEOUTCHECKEVERY_FIELD_NUMBER;
hash = (53 * hash) + getDefaultSearchTimeoutCheckEvery();
hash = (37 * hash) + DEFAULTTERMINATEAFTER_FIELD_NUMBER;
hash = (53 * hash) + getDefaultTerminateAfter();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.LiveSettingsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.LiveSettingsRequest 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.LiveSettingsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.LiveSettingsRequest 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.LiveSettingsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.LiveSettingsRequest 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.LiveSettingsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.LiveSettingsRequest 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.LiveSettingsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.LiveSettingsRequest 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.LiveSettingsRequest 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.LiveSettingsRequest 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.LiveSettingsRequest 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;
}
/**
*
* Input to liveSettings
*
*
* Protobuf type {@code luceneserver.LiveSettingsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.LiveSettingsRequest)
com.yelp.nrtsearch.server.grpc.LiveSettingsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_LiveSettingsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_LiveSettingsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.LiveSettingsRequest.class, com.yelp.nrtsearch.server.grpc.LiveSettingsRequest.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.LiveSettingsRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
indexName_ = "";
maxRefreshSec_ = 0D;
minRefreshSec_ = 0D;
maxSearcherAgeSec_ = 0D;
indexRamBufferSizeMB_ = 0D;
addDocumentsMaxBufferLen_ = 0;
sliceMaxDocs_ = 0;
sliceMaxSegments_ = 0;
virtualShards_ = 0;
maxMergedSegmentMB_ = 0;
segmentsPerTier_ = 0;
defaultSearchTimeoutSec_ = 0D;
defaultSearchTimeoutCheckEvery_ = 0;
defaultTerminateAfter_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_LiveSettingsRequest_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.LiveSettingsRequest getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.LiveSettingsRequest.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.LiveSettingsRequest build() {
com.yelp.nrtsearch.server.grpc.LiveSettingsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.LiveSettingsRequest buildPartial() {
com.yelp.nrtsearch.server.grpc.LiveSettingsRequest result = new com.yelp.nrtsearch.server.grpc.LiveSettingsRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.LiveSettingsRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.indexName_ = indexName_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.maxRefreshSec_ = maxRefreshSec_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.minRefreshSec_ = minRefreshSec_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.maxSearcherAgeSec_ = maxSearcherAgeSec_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.indexRamBufferSizeMB_ = indexRamBufferSizeMB_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.addDocumentsMaxBufferLen_ = addDocumentsMaxBufferLen_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.sliceMaxDocs_ = sliceMaxDocs_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.sliceMaxSegments_ = sliceMaxSegments_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.virtualShards_ = virtualShards_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.maxMergedSegmentMB_ = maxMergedSegmentMB_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.segmentsPerTier_ = segmentsPerTier_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.defaultSearchTimeoutSec_ = defaultSearchTimeoutSec_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.defaultSearchTimeoutCheckEvery_ = defaultSearchTimeoutCheckEvery_;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.defaultTerminateAfter_ = defaultTerminateAfter_;
}
}
@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.LiveSettingsRequest) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.LiveSettingsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.LiveSettingsRequest other) {
if (other == com.yelp.nrtsearch.server.grpc.LiveSettingsRequest.getDefaultInstance()) return this;
if (!other.getIndexName().isEmpty()) {
indexName_ = other.indexName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getMaxRefreshSec() != 0D) {
setMaxRefreshSec(other.getMaxRefreshSec());
}
if (other.getMinRefreshSec() != 0D) {
setMinRefreshSec(other.getMinRefreshSec());
}
if (other.getMaxSearcherAgeSec() != 0D) {
setMaxSearcherAgeSec(other.getMaxSearcherAgeSec());
}
if (other.getIndexRamBufferSizeMB() != 0D) {
setIndexRamBufferSizeMB(other.getIndexRamBufferSizeMB());
}
if (other.getAddDocumentsMaxBufferLen() != 0) {
setAddDocumentsMaxBufferLen(other.getAddDocumentsMaxBufferLen());
}
if (other.getSliceMaxDocs() != 0) {
setSliceMaxDocs(other.getSliceMaxDocs());
}
if (other.getSliceMaxSegments() != 0) {
setSliceMaxSegments(other.getSliceMaxSegments());
}
if (other.getVirtualShards() != 0) {
setVirtualShards(other.getVirtualShards());
}
if (other.getMaxMergedSegmentMB() != 0) {
setMaxMergedSegmentMB(other.getMaxMergedSegmentMB());
}
if (other.getSegmentsPerTier() != 0) {
setSegmentsPerTier(other.getSegmentsPerTier());
}
if (other.getDefaultSearchTimeoutSec() != 0D) {
setDefaultSearchTimeoutSec(other.getDefaultSearchTimeoutSec());
}
if (other.getDefaultSearchTimeoutCheckEvery() != 0) {
setDefaultSearchTimeoutCheckEvery(other.getDefaultSearchTimeoutCheckEvery());
}
if (other.getDefaultTerminateAfter() != 0) {
setDefaultTerminateAfter(other.getDefaultTerminateAfter());
}
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: {
indexName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 17: {
maxRefreshSec_ = input.readDouble();
bitField0_ |= 0x00000002;
break;
} // case 17
case 25: {
minRefreshSec_ = input.readDouble();
bitField0_ |= 0x00000004;
break;
} // case 25
case 33: {
maxSearcherAgeSec_ = input.readDouble();
bitField0_ |= 0x00000008;
break;
} // case 33
case 41: {
indexRamBufferSizeMB_ = input.readDouble();
bitField0_ |= 0x00000010;
break;
} // case 41
case 48: {
addDocumentsMaxBufferLen_ = input.readInt32();
bitField0_ |= 0x00000020;
break;
} // case 48
case 56: {
sliceMaxDocs_ = input.readInt32();
bitField0_ |= 0x00000040;
break;
} // case 56
case 64: {
sliceMaxSegments_ = input.readInt32();
bitField0_ |= 0x00000080;
break;
} // case 64
case 72: {
virtualShards_ = input.readInt32();
bitField0_ |= 0x00000100;
break;
} // case 72
case 80: {
maxMergedSegmentMB_ = input.readInt32();
bitField0_ |= 0x00000200;
break;
} // case 80
case 88: {
segmentsPerTier_ = input.readInt32();
bitField0_ |= 0x00000400;
break;
} // case 88
case 97: {
defaultSearchTimeoutSec_ = input.readDouble();
bitField0_ |= 0x00000800;
break;
} // case 97
case 104: {
defaultSearchTimeoutCheckEvery_ = input.readInt32();
bitField0_ |= 0x00001000;
break;
} // case 104
case 112: {
defaultTerminateAfter_ = input.readInt32();
bitField0_ |= 0x00002000;
break;
} // case 112
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object indexName_ = "";
/**
*
* name of index whose liveSettings are to be updated.
*
*
* string indexName = 1;
* @return The indexName.
*/
public java.lang.String getIndexName() {
java.lang.Object ref = indexName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
indexName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* name of index whose liveSettings are to be updated.
*
*
* string indexName = 1;
* @return The bytes for indexName.
*/
public com.google.protobuf.ByteString
getIndexNameBytes() {
java.lang.Object ref = indexName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
indexName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* name of index whose liveSettings are to be updated.
*
*
* string indexName = 1;
* @param value The indexName to set.
* @return This builder for chaining.
*/
public Builder setIndexName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
indexName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* name of index whose liveSettings are to be updated.
*
*
* string indexName = 1;
* @return This builder for chaining.
*/
public Builder clearIndexName() {
indexName_ = getDefaultInstance().getIndexName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* name of index whose liveSettings are to be updated.
*
*
* string indexName = 1;
* @param value The bytes for indexName to set.
* @return This builder for chaining.
*/
public Builder setIndexNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
indexName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private double maxRefreshSec_ ;
/**
*
*Longest time to wait before reopening IndexSearcher (i.e., periodic background reopen).
*
*
* double maxRefreshSec = 2;
* @return The maxRefreshSec.
*/
@java.lang.Override
public double getMaxRefreshSec() {
return maxRefreshSec_;
}
/**
*
*Longest time to wait before reopening IndexSearcher (i.e., periodic background reopen).
*
*
* double maxRefreshSec = 2;
* @param value The maxRefreshSec to set.
* @return This builder for chaining.
*/
public Builder setMaxRefreshSec(double value) {
maxRefreshSec_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*Longest time to wait before reopening IndexSearcher (i.e., periodic background reopen).
*
*
* double maxRefreshSec = 2;
* @return This builder for chaining.
*/
public Builder clearMaxRefreshSec() {
bitField0_ = (bitField0_ & ~0x00000002);
maxRefreshSec_ = 0D;
onChanged();
return this;
}
private double minRefreshSec_ ;
/**
*
*Shortest time to wait before reopening IndexSearcher (i.e., when a search is waiting for a specific indexGen).
*
*
* double minRefreshSec = 3;
* @return The minRefreshSec.
*/
@java.lang.Override
public double getMinRefreshSec() {
return minRefreshSec_;
}
/**
*
*Shortest time to wait before reopening IndexSearcher (i.e., when a search is waiting for a specific indexGen).
*
*
* double minRefreshSec = 3;
* @param value The minRefreshSec to set.
* @return This builder for chaining.
*/
public Builder setMinRefreshSec(double value) {
minRefreshSec_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*Shortest time to wait before reopening IndexSearcher (i.e., when a search is waiting for a specific indexGen).
*
*
* double minRefreshSec = 3;
* @return This builder for chaining.
*/
public Builder clearMinRefreshSec() {
bitField0_ = (bitField0_ & ~0x00000004);
minRefreshSec_ = 0D;
onChanged();
return this;
}
private double maxSearcherAgeSec_ ;
/**
*
*Non-current searchers older than this are pruned.
*
*
* double maxSearcherAgeSec = 4;
* @return The maxSearcherAgeSec.
*/
@java.lang.Override
public double getMaxSearcherAgeSec() {
return maxSearcherAgeSec_;
}
/**
*
*Non-current searchers older than this are pruned.
*
*
* double maxSearcherAgeSec = 4;
* @param value The maxSearcherAgeSec to set.
* @return This builder for chaining.
*/
public Builder setMaxSearcherAgeSec(double value) {
maxSearcherAgeSec_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*Non-current searchers older than this are pruned.
*
*
* double maxSearcherAgeSec = 4;
* @return This builder for chaining.
*/
public Builder clearMaxSearcherAgeSec() {
bitField0_ = (bitField0_ & ~0x00000008);
maxSearcherAgeSec_ = 0D;
onChanged();
return this;
}
private double indexRamBufferSizeMB_ ;
/**
*
*Size (in MB) of IndexWriter's RAM buffer.
*
*
* double indexRamBufferSizeMB = 5;
* @return The indexRamBufferSizeMB.
*/
@java.lang.Override
public double getIndexRamBufferSizeMB() {
return indexRamBufferSizeMB_;
}
/**
*
*Size (in MB) of IndexWriter's RAM buffer.
*
*
* double indexRamBufferSizeMB = 5;
* @param value The indexRamBufferSizeMB to set.
* @return This builder for chaining.
*/
public Builder setIndexRamBufferSizeMB(double value) {
indexRamBufferSizeMB_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*Size (in MB) of IndexWriter's RAM buffer.
*
*
* double indexRamBufferSizeMB = 5;
* @return This builder for chaining.
*/
public Builder clearIndexRamBufferSizeMB() {
bitField0_ = (bitField0_ & ~0x00000010);
indexRamBufferSizeMB_ = 0D;
onChanged();
return this;
}
private int addDocumentsMaxBufferLen_ ;
/**
*
*Max number of documents to add at a time.
*
*
* int32 addDocumentsMaxBufferLen = 6;
* @return The addDocumentsMaxBufferLen.
*/
@java.lang.Override
public int getAddDocumentsMaxBufferLen() {
return addDocumentsMaxBufferLen_;
}
/**
*
*Max number of documents to add at a time.
*
*
* int32 addDocumentsMaxBufferLen = 6;
* @param value The addDocumentsMaxBufferLen to set.
* @return This builder for chaining.
*/
public Builder setAddDocumentsMaxBufferLen(int value) {
addDocumentsMaxBufferLen_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*Max number of documents to add at a time.
*
*
* int32 addDocumentsMaxBufferLen = 6;
* @return This builder for chaining.
*/
public Builder clearAddDocumentsMaxBufferLen() {
bitField0_ = (bitField0_ & ~0x00000020);
addDocumentsMaxBufferLen_ = 0;
onChanged();
return this;
}
private int sliceMaxDocs_ ;
/**
*
*Maximum number of documents allowed in a parallel search slice.
*
*
* int32 sliceMaxDocs = 7;
* @return The sliceMaxDocs.
*/
@java.lang.Override
public int getSliceMaxDocs() {
return sliceMaxDocs_;
}
/**
*
*Maximum number of documents allowed in a parallel search slice.
*
*
* int32 sliceMaxDocs = 7;
* @param value The sliceMaxDocs to set.
* @return This builder for chaining.
*/
public Builder setSliceMaxDocs(int value) {
sliceMaxDocs_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*Maximum number of documents allowed in a parallel search slice.
*
*
* int32 sliceMaxDocs = 7;
* @return This builder for chaining.
*/
public Builder clearSliceMaxDocs() {
bitField0_ = (bitField0_ & ~0x00000040);
sliceMaxDocs_ = 0;
onChanged();
return this;
}
private int sliceMaxSegments_ ;
/**
*
*Maximum number of segments allowed in a parallel search slice.
*
*
* int32 sliceMaxSegments = 8;
* @return The sliceMaxSegments.
*/
@java.lang.Override
public int getSliceMaxSegments() {
return sliceMaxSegments_;
}
/**
*
*Maximum number of segments allowed in a parallel search slice.
*
*
* int32 sliceMaxSegments = 8;
* @param value The sliceMaxSegments to set.
* @return This builder for chaining.
*/
public Builder setSliceMaxSegments(int value) {
sliceMaxSegments_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*Maximum number of segments allowed in a parallel search slice.
*
*
* int32 sliceMaxSegments = 8;
* @return This builder for chaining.
*/
public Builder clearSliceMaxSegments() {
bitField0_ = (bitField0_ & ~0x00000080);
sliceMaxSegments_ = 0;
onChanged();
return this;
}
private int virtualShards_ ;
/**
*
*Number of virtual shards to use for this index.
*
*
* int32 virtualShards = 9;
* @return The virtualShards.
*/
@java.lang.Override
public int getVirtualShards() {
return virtualShards_;
}
/**
*
*Number of virtual shards to use for this index.
*
*
* int32 virtualShards = 9;
* @param value The virtualShards to set.
* @return This builder for chaining.
*/
public Builder setVirtualShards(int value) {
virtualShards_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*Number of virtual shards to use for this index.
*
*
* int32 virtualShards = 9;
* @return This builder for chaining.
*/
public Builder clearVirtualShards() {
bitField0_ = (bitField0_ & ~0x00000100);
virtualShards_ = 0;
onChanged();
return this;
}
private int maxMergedSegmentMB_ ;
/**
*
*Maximum sized segment to produce during normal merging
*
*
* int32 maxMergedSegmentMB = 10;
* @return The maxMergedSegmentMB.
*/
@java.lang.Override
public int getMaxMergedSegmentMB() {
return maxMergedSegmentMB_;
}
/**
*
*Maximum sized segment to produce during normal merging
*
*
* int32 maxMergedSegmentMB = 10;
* @param value The maxMergedSegmentMB to set.
* @return This builder for chaining.
*/
public Builder setMaxMergedSegmentMB(int value) {
maxMergedSegmentMB_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*Maximum sized segment to produce during normal merging
*
*
* int32 maxMergedSegmentMB = 10;
* @return This builder for chaining.
*/
public Builder clearMaxMergedSegmentMB() {
bitField0_ = (bitField0_ & ~0x00000200);
maxMergedSegmentMB_ = 0;
onChanged();
return this;
}
private int segmentsPerTier_ ;
/**
*
*Number of segments per tier used by TieredMergePolicy
*
*
* int32 segmentsPerTier = 11;
* @return The segmentsPerTier.
*/
@java.lang.Override
public int getSegmentsPerTier() {
return segmentsPerTier_;
}
/**
*
*Number of segments per tier used by TieredMergePolicy
*
*
* int32 segmentsPerTier = 11;
* @param value The segmentsPerTier to set.
* @return This builder for chaining.
*/
public Builder setSegmentsPerTier(int value) {
segmentsPerTier_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*Number of segments per tier used by TieredMergePolicy
*
*
* int32 segmentsPerTier = 11;
* @return This builder for chaining.
*/
public Builder clearSegmentsPerTier() {
bitField0_ = (bitField0_ & ~0x00000400);
segmentsPerTier_ = 0;
onChanged();
return this;
}
private double defaultSearchTimeoutSec_ ;
/**
*
*Timeout value to used when not specified in the search request.
*
*
* double defaultSearchTimeoutSec = 12;
* @return The defaultSearchTimeoutSec.
*/
@java.lang.Override
public double getDefaultSearchTimeoutSec() {
return defaultSearchTimeoutSec_;
}
/**
*
*Timeout value to used when not specified in the search request.
*
*
* double defaultSearchTimeoutSec = 12;
* @param value The defaultSearchTimeoutSec to set.
* @return This builder for chaining.
*/
public Builder setDefaultSearchTimeoutSec(double value) {
defaultSearchTimeoutSec_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*Timeout value to used when not specified in the search request.
*
*
* double defaultSearchTimeoutSec = 12;
* @return This builder for chaining.
*/
public Builder clearDefaultSearchTimeoutSec() {
bitField0_ = (bitField0_ & ~0x00000800);
defaultSearchTimeoutSec_ = 0D;
onChanged();
return this;
}
private int defaultSearchTimeoutCheckEvery_ ;
/**
*
*Timeout check every value to use when not specified in the search request.
*
*
* int32 defaultSearchTimeoutCheckEvery = 13;
* @return The defaultSearchTimeoutCheckEvery.
*/
@java.lang.Override
public int getDefaultSearchTimeoutCheckEvery() {
return defaultSearchTimeoutCheckEvery_;
}
/**
*
*Timeout check every value to use when not specified in the search request.
*
*
* int32 defaultSearchTimeoutCheckEvery = 13;
* @param value The defaultSearchTimeoutCheckEvery to set.
* @return This builder for chaining.
*/
public Builder setDefaultSearchTimeoutCheckEvery(int value) {
defaultSearchTimeoutCheckEvery_ = value;
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*Timeout check every value to use when not specified in the search request.
*
*
* int32 defaultSearchTimeoutCheckEvery = 13;
* @return This builder for chaining.
*/
public Builder clearDefaultSearchTimeoutCheckEvery() {
bitField0_ = (bitField0_ & ~0x00001000);
defaultSearchTimeoutCheckEvery_ = 0;
onChanged();
return this;
}
private int defaultTerminateAfter_ ;
/**
*
*Terminate after value to use when not specified in the search request.
*
*
* int32 defaultTerminateAfter = 14;
* @return The defaultTerminateAfter.
*/
@java.lang.Override
public int getDefaultTerminateAfter() {
return defaultTerminateAfter_;
}
/**
*
*Terminate after value to use when not specified in the search request.
*
*
* int32 defaultTerminateAfter = 14;
* @param value The defaultTerminateAfter to set.
* @return This builder for chaining.
*/
public Builder setDefaultTerminateAfter(int value) {
defaultTerminateAfter_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
*Terminate after value to use when not specified in the search request.
*
*
* int32 defaultTerminateAfter = 14;
* @return This builder for chaining.
*/
public Builder clearDefaultTerminateAfter() {
bitField0_ = (bitField0_ & ~0x00002000);
defaultTerminateAfter_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:luceneserver.LiveSettingsRequest)
}
// @@protoc_insertion_point(class_scope:luceneserver.LiveSettingsRequest)
private static final com.yelp.nrtsearch.server.grpc.LiveSettingsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.LiveSettingsRequest();
}
public static com.yelp.nrtsearch.server.grpc.LiveSettingsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public LiveSettingsRequest 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.LiveSettingsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}