All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yelp.nrtsearch.server.grpc.SettingsRequest Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta.1
Show newest version
// 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 settings 
 * 
* * Protobuf type {@code luceneserver.SettingsRequest} */ public final class SettingsRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.SettingsRequest) SettingsRequestOrBuilder { private static final long serialVersionUID = 0L; // Use SettingsRequest.newBuilder() to construct. private SettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SettingsRequest() { indexName_ = ""; normsFormat_ = ""; directory_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SettingsRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_SettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_SettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SettingsRequest.class, com.yelp.nrtsearch.server.grpc.SettingsRequest.Builder.class); } private int bitField0_; public static final int INDEXNAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object indexName_ = ""; /** *
   * Index name
   * 
* * 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; } } /** *
   * Index name
   * 
* * 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 MERGEMAXMBPERSEC_FIELD_NUMBER = 2; private double mergeMaxMBPerSec_ = 0D; /** *
   * Rate limit merges to at most this many MB/sec
   * 
* * double mergeMaxMBPerSec = 2; * @return The mergeMaxMBPerSec. */ @java.lang.Override public double getMergeMaxMBPerSec() { return mergeMaxMBPerSec_; } public static final int NRTCACHINGDIRECTORYMAXMERGESIZEMB_FIELD_NUMBER = 3; private double nrtCachingDirectoryMaxMergeSizeMB_ = 0D; /** *
   * Largest merged segment size to cache in RAMDirectory, default: 5.0MB
   * 
* * double nrtCachingDirectoryMaxMergeSizeMB = 3; * @return The nrtCachingDirectoryMaxMergeSizeMB. */ @java.lang.Override public double getNrtCachingDirectoryMaxMergeSizeMB() { return nrtCachingDirectoryMaxMergeSizeMB_; } public static final int NRTCACHINGDIRECTORYMAXSIZEMB_FIELD_NUMBER = 4; private double nrtCachingDirectoryMaxSizeMB_ = 0D; /** *
   * Largest overall size for all files cached in NRTCachingDirectory; set to -1 to disable NRTCachingDirectory default: 60.0MB
   * 
* * double nrtCachingDirectoryMaxSizeMB = 4; * @return The nrtCachingDirectoryMaxSizeMB. */ @java.lang.Override public double getNrtCachingDirectoryMaxSizeMB() { return nrtCachingDirectoryMaxSizeMB_; } public static final int CONCURRENTMERGESCHEDULERMAXTHREADCOUNT_FIELD_NUMBER = 5; private int concurrentMergeSchedulerMaxThreadCount_ = 0; /** *
   * How many merge threads to allow at once
   * 
* * int32 concurrentMergeSchedulerMaxThreadCount = 5; * @return The concurrentMergeSchedulerMaxThreadCount. */ @java.lang.Override public int getConcurrentMergeSchedulerMaxThreadCount() { return concurrentMergeSchedulerMaxThreadCount_; } public static final int CONCURRENTMERGESCHEDULERMAXMERGECOUNT_FIELD_NUMBER = 6; private int concurrentMergeSchedulerMaxMergeCount_ = 0; /** *
   * Maximum backlog of pending merges before indexing threads are stalled
   * 
* * int32 concurrentMergeSchedulerMaxMergeCount = 6; * @return The concurrentMergeSchedulerMaxMergeCount. */ @java.lang.Override public int getConcurrentMergeSchedulerMaxMergeCount() { return concurrentMergeSchedulerMaxMergeCount_; } public static final int INDEXSORT_FIELD_NUMBER = 7; private com.yelp.nrtsearch.server.grpc.SortFields indexSort_; /** *
   * Index time sorting; can only be written once", SearchHandler.SORT_TYPE
   * 
* * .luceneserver.SortFields indexSort = 7; * @return Whether the indexSort field is set. */ @java.lang.Override public boolean hasIndexSort() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Index time sorting; can only be written once", SearchHandler.SORT_TYPE
   * 
* * .luceneserver.SortFields indexSort = 7; * @return The indexSort. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SortFields getIndexSort() { return indexSort_ == null ? com.yelp.nrtsearch.server.grpc.SortFields.getDefaultInstance() : indexSort_; } /** *
   * Index time sorting; can only be written once", SearchHandler.SORT_TYPE
   * 
* * .luceneserver.SortFields indexSort = 7; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SortFieldsOrBuilder getIndexSortOrBuilder() { return indexSort_ == null ? com.yelp.nrtsearch.server.grpc.SortFields.getDefaultInstance() : indexSort_; } public static final int INDEXVERBOSE_FIELD_NUMBER = 8; private boolean indexVerbose_ = false; /** *
   * Deprecated, moved to lucene config. Turn on IndexWriter's infoStream (to stdout)
   * 
* * bool indexVerbose = 8 [deprecated = true]; * @deprecated luceneserver.SettingsRequest.indexVerbose is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=648 * @return The indexVerbose. */ @java.lang.Override @java.lang.Deprecated public boolean getIndexVerbose() { return indexVerbose_; } public static final int INDEXMERGESCHEDULERAUTOTHROTTLE_FIELD_NUMBER = 9; private boolean indexMergeSchedulerAutoThrottle_ = false; /** *
   * Turn on/off the merge scheduler's auto throttling
   * 
* * bool indexMergeSchedulerAutoThrottle = 9; * @return The indexMergeSchedulerAutoThrottle. */ @java.lang.Override public boolean getIndexMergeSchedulerAutoThrottle() { return indexMergeSchedulerAutoThrottle_; } public static final int NORMSFORMAT_FIELD_NUMBER = 10; @SuppressWarnings("serial") private volatile java.lang.Object normsFormat_ = ""; /** *
   * Which NormsFormat should be used for all indexed fields. default: Lucene80NormsFormat
   * 
* * string normsFormat = 10; * @return The normsFormat. */ @java.lang.Override public java.lang.String getNormsFormat() { java.lang.Object ref = normsFormat_; 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(); normsFormat_ = s; return s; } } /** *
   * Which NormsFormat should be used for all indexed fields. default: Lucene80NormsFormat
   * 
* * string normsFormat = 10; * @return The bytes for normsFormat. */ @java.lang.Override public com.google.protobuf.ByteString getNormsFormatBytes() { java.lang.Object ref = normsFormat_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); normsFormat_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DIRECTORY_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object directory_ = ""; /** *
   * Base Directory implementation to use (NRTCachingDirectory will wrap this) either one of the core implementations (FSDirectory, MMapDirectory, NIOFSDirectory, or a fully qualified path to a Directory implementation that has a public constructor taking a single File argument default: FSDirectory
   * 
* * string directory = 11; * @return The directory. */ @java.lang.Override public java.lang.String getDirectory() { java.lang.Object ref = directory_; 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(); directory_ = s; return s; } } /** *
   * Base Directory implementation to use (NRTCachingDirectory will wrap this) either one of the core implementations (FSDirectory, MMapDirectory, NIOFSDirectory, or a fully qualified path to a Directory implementation that has a public constructor taking a single File argument default: FSDirectory
   * 
* * string directory = 11; * @return The bytes for directory. */ @java.lang.Override public com.google.protobuf.ByteString getDirectoryBytes() { java.lang.Object ref = directory_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); directory_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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(mergeMaxMBPerSec_) != 0) { output.writeDouble(2, mergeMaxMBPerSec_); } if (java.lang.Double.doubleToRawLongBits(nrtCachingDirectoryMaxMergeSizeMB_) != 0) { output.writeDouble(3, nrtCachingDirectoryMaxMergeSizeMB_); } if (java.lang.Double.doubleToRawLongBits(nrtCachingDirectoryMaxSizeMB_) != 0) { output.writeDouble(4, nrtCachingDirectoryMaxSizeMB_); } if (concurrentMergeSchedulerMaxThreadCount_ != 0) { output.writeInt32(5, concurrentMergeSchedulerMaxThreadCount_); } if (concurrentMergeSchedulerMaxMergeCount_ != 0) { output.writeInt32(6, concurrentMergeSchedulerMaxMergeCount_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getIndexSort()); } if (indexVerbose_ != false) { output.writeBool(8, indexVerbose_); } if (indexMergeSchedulerAutoThrottle_ != false) { output.writeBool(9, indexMergeSchedulerAutoThrottle_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(normsFormat_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, normsFormat_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(directory_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, directory_); } 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(mergeMaxMBPerSec_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, mergeMaxMBPerSec_); } if (java.lang.Double.doubleToRawLongBits(nrtCachingDirectoryMaxMergeSizeMB_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, nrtCachingDirectoryMaxMergeSizeMB_); } if (java.lang.Double.doubleToRawLongBits(nrtCachingDirectoryMaxSizeMB_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, nrtCachingDirectoryMaxSizeMB_); } if (concurrentMergeSchedulerMaxThreadCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, concurrentMergeSchedulerMaxThreadCount_); } if (concurrentMergeSchedulerMaxMergeCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, concurrentMergeSchedulerMaxMergeCount_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getIndexSort()); } if (indexVerbose_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, indexVerbose_); } if (indexMergeSchedulerAutoThrottle_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, indexMergeSchedulerAutoThrottle_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(normsFormat_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, normsFormat_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(directory_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, directory_); } 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.SettingsRequest)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.SettingsRequest other = (com.yelp.nrtsearch.server.grpc.SettingsRequest) obj; if (!getIndexName() .equals(other.getIndexName())) return false; if (java.lang.Double.doubleToLongBits(getMergeMaxMBPerSec()) != java.lang.Double.doubleToLongBits( other.getMergeMaxMBPerSec())) return false; if (java.lang.Double.doubleToLongBits(getNrtCachingDirectoryMaxMergeSizeMB()) != java.lang.Double.doubleToLongBits( other.getNrtCachingDirectoryMaxMergeSizeMB())) return false; if (java.lang.Double.doubleToLongBits(getNrtCachingDirectoryMaxSizeMB()) != java.lang.Double.doubleToLongBits( other.getNrtCachingDirectoryMaxSizeMB())) return false; if (getConcurrentMergeSchedulerMaxThreadCount() != other.getConcurrentMergeSchedulerMaxThreadCount()) return false; if (getConcurrentMergeSchedulerMaxMergeCount() != other.getConcurrentMergeSchedulerMaxMergeCount()) return false; if (hasIndexSort() != other.hasIndexSort()) return false; if (hasIndexSort()) { if (!getIndexSort() .equals(other.getIndexSort())) return false; } if (getIndexVerbose() != other.getIndexVerbose()) return false; if (getIndexMergeSchedulerAutoThrottle() != other.getIndexMergeSchedulerAutoThrottle()) return false; if (!getNormsFormat() .equals(other.getNormsFormat())) return false; if (!getDirectory() .equals(other.getDirectory())) 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) + MERGEMAXMBPERSEC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getMergeMaxMBPerSec())); hash = (37 * hash) + NRTCACHINGDIRECTORYMAXMERGESIZEMB_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getNrtCachingDirectoryMaxMergeSizeMB())); hash = (37 * hash) + NRTCACHINGDIRECTORYMAXSIZEMB_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getNrtCachingDirectoryMaxSizeMB())); hash = (37 * hash) + CONCURRENTMERGESCHEDULERMAXTHREADCOUNT_FIELD_NUMBER; hash = (53 * hash) + getConcurrentMergeSchedulerMaxThreadCount(); hash = (37 * hash) + CONCURRENTMERGESCHEDULERMAXMERGECOUNT_FIELD_NUMBER; hash = (53 * hash) + getConcurrentMergeSchedulerMaxMergeCount(); if (hasIndexSort()) { hash = (37 * hash) + INDEXSORT_FIELD_NUMBER; hash = (53 * hash) + getIndexSort().hashCode(); } hash = (37 * hash) + INDEXVERBOSE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIndexVerbose()); hash = (37 * hash) + INDEXMERGESCHEDULERAUTOTHROTTLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIndexMergeSchedulerAutoThrottle()); hash = (37 * hash) + NORMSFORMAT_FIELD_NUMBER; hash = (53 * hash) + getNormsFormat().hashCode(); hash = (37 * hash) + DIRECTORY_FIELD_NUMBER; hash = (53 * hash) + getDirectory().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.SettingsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SettingsRequest 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.SettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SettingsRequest 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.SettingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SettingsRequest 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.SettingsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SettingsRequest 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.SettingsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SettingsRequest 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.SettingsRequest 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.SettingsRequest 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.SettingsRequest 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 settings 
   * 
* * Protobuf type {@code luceneserver.SettingsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.SettingsRequest) com.yelp.nrtsearch.server.grpc.SettingsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_SettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_SettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SettingsRequest.class, com.yelp.nrtsearch.server.grpc.SettingsRequest.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.SettingsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIndexSortFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; indexName_ = ""; mergeMaxMBPerSec_ = 0D; nrtCachingDirectoryMaxMergeSizeMB_ = 0D; nrtCachingDirectoryMaxSizeMB_ = 0D; concurrentMergeSchedulerMaxThreadCount_ = 0; concurrentMergeSchedulerMaxMergeCount_ = 0; indexSort_ = null; if (indexSortBuilder_ != null) { indexSortBuilder_.dispose(); indexSortBuilder_ = null; } indexVerbose_ = false; indexMergeSchedulerAutoThrottle_ = false; normsFormat_ = ""; directory_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_SettingsRequest_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SettingsRequest getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.SettingsRequest.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SettingsRequest build() { com.yelp.nrtsearch.server.grpc.SettingsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SettingsRequest buildPartial() { com.yelp.nrtsearch.server.grpc.SettingsRequest result = new com.yelp.nrtsearch.server.grpc.SettingsRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.SettingsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.indexName_ = indexName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.mergeMaxMBPerSec_ = mergeMaxMBPerSec_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.nrtCachingDirectoryMaxMergeSizeMB_ = nrtCachingDirectoryMaxMergeSizeMB_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.nrtCachingDirectoryMaxSizeMB_ = nrtCachingDirectoryMaxSizeMB_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.concurrentMergeSchedulerMaxThreadCount_ = concurrentMergeSchedulerMaxThreadCount_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.concurrentMergeSchedulerMaxMergeCount_ = concurrentMergeSchedulerMaxMergeCount_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000040) != 0)) { result.indexSort_ = indexSortBuilder_ == null ? indexSort_ : indexSortBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000080) != 0)) { result.indexVerbose_ = indexVerbose_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.indexMergeSchedulerAutoThrottle_ = indexMergeSchedulerAutoThrottle_; } if (((from_bitField0_ & 0x00000200) != 0)) { result.normsFormat_ = normsFormat_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.directory_ = directory_; } 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.SettingsRequest) { return mergeFrom((com.yelp.nrtsearch.server.grpc.SettingsRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.SettingsRequest other) { if (other == com.yelp.nrtsearch.server.grpc.SettingsRequest.getDefaultInstance()) return this; if (!other.getIndexName().isEmpty()) { indexName_ = other.indexName_; bitField0_ |= 0x00000001; onChanged(); } if (other.getMergeMaxMBPerSec() != 0D) { setMergeMaxMBPerSec(other.getMergeMaxMBPerSec()); } if (other.getNrtCachingDirectoryMaxMergeSizeMB() != 0D) { setNrtCachingDirectoryMaxMergeSizeMB(other.getNrtCachingDirectoryMaxMergeSizeMB()); } if (other.getNrtCachingDirectoryMaxSizeMB() != 0D) { setNrtCachingDirectoryMaxSizeMB(other.getNrtCachingDirectoryMaxSizeMB()); } if (other.getConcurrentMergeSchedulerMaxThreadCount() != 0) { setConcurrentMergeSchedulerMaxThreadCount(other.getConcurrentMergeSchedulerMaxThreadCount()); } if (other.getConcurrentMergeSchedulerMaxMergeCount() != 0) { setConcurrentMergeSchedulerMaxMergeCount(other.getConcurrentMergeSchedulerMaxMergeCount()); } if (other.hasIndexSort()) { mergeIndexSort(other.getIndexSort()); } if (other.getIndexVerbose() != false) { setIndexVerbose(other.getIndexVerbose()); } if (other.getIndexMergeSchedulerAutoThrottle() != false) { setIndexMergeSchedulerAutoThrottle(other.getIndexMergeSchedulerAutoThrottle()); } if (!other.getNormsFormat().isEmpty()) { normsFormat_ = other.normsFormat_; bitField0_ |= 0x00000200; onChanged(); } if (!other.getDirectory().isEmpty()) { directory_ = other.directory_; bitField0_ |= 0x00000400; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { indexName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 17: { mergeMaxMBPerSec_ = input.readDouble(); bitField0_ |= 0x00000002; break; } // case 17 case 25: { nrtCachingDirectoryMaxMergeSizeMB_ = input.readDouble(); bitField0_ |= 0x00000004; break; } // case 25 case 33: { nrtCachingDirectoryMaxSizeMB_ = input.readDouble(); bitField0_ |= 0x00000008; break; } // case 33 case 40: { concurrentMergeSchedulerMaxThreadCount_ = input.readInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { concurrentMergeSchedulerMaxMergeCount_ = input.readInt32(); bitField0_ |= 0x00000020; break; } // case 48 case 58: { input.readMessage( getIndexSortFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 64: { indexVerbose_ = input.readBool(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { indexMergeSchedulerAutoThrottle_ = input.readBool(); bitField0_ |= 0x00000100; break; } // case 72 case 82: { normsFormat_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000200; break; } // case 82 case 90: { directory_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000400; break; } // case 90 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_ = ""; /** *
     * Index name
     * 
* * 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; } } /** *
     * Index name
     * 
* * 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; } } /** *
     * Index name
     * 
* * 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; } /** *
     * Index name
     * 
* * string indexName = 1; * @return This builder for chaining. */ public Builder clearIndexName() { indexName_ = getDefaultInstance().getIndexName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Index name
     * 
* * 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 mergeMaxMBPerSec_ ; /** *
     * Rate limit merges to at most this many MB/sec
     * 
* * double mergeMaxMBPerSec = 2; * @return The mergeMaxMBPerSec. */ @java.lang.Override public double getMergeMaxMBPerSec() { return mergeMaxMBPerSec_; } /** *
     * Rate limit merges to at most this many MB/sec
     * 
* * double mergeMaxMBPerSec = 2; * @param value The mergeMaxMBPerSec to set. * @return This builder for chaining. */ public Builder setMergeMaxMBPerSec(double value) { mergeMaxMBPerSec_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Rate limit merges to at most this many MB/sec
     * 
* * double mergeMaxMBPerSec = 2; * @return This builder for chaining. */ public Builder clearMergeMaxMBPerSec() { bitField0_ = (bitField0_ & ~0x00000002); mergeMaxMBPerSec_ = 0D; onChanged(); return this; } private double nrtCachingDirectoryMaxMergeSizeMB_ ; /** *
     * Largest merged segment size to cache in RAMDirectory, default: 5.0MB
     * 
* * double nrtCachingDirectoryMaxMergeSizeMB = 3; * @return The nrtCachingDirectoryMaxMergeSizeMB. */ @java.lang.Override public double getNrtCachingDirectoryMaxMergeSizeMB() { return nrtCachingDirectoryMaxMergeSizeMB_; } /** *
     * Largest merged segment size to cache in RAMDirectory, default: 5.0MB
     * 
* * double nrtCachingDirectoryMaxMergeSizeMB = 3; * @param value The nrtCachingDirectoryMaxMergeSizeMB to set. * @return This builder for chaining. */ public Builder setNrtCachingDirectoryMaxMergeSizeMB(double value) { nrtCachingDirectoryMaxMergeSizeMB_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Largest merged segment size to cache in RAMDirectory, default: 5.0MB
     * 
* * double nrtCachingDirectoryMaxMergeSizeMB = 3; * @return This builder for chaining. */ public Builder clearNrtCachingDirectoryMaxMergeSizeMB() { bitField0_ = (bitField0_ & ~0x00000004); nrtCachingDirectoryMaxMergeSizeMB_ = 0D; onChanged(); return this; } private double nrtCachingDirectoryMaxSizeMB_ ; /** *
     * Largest overall size for all files cached in NRTCachingDirectory; set to -1 to disable NRTCachingDirectory default: 60.0MB
     * 
* * double nrtCachingDirectoryMaxSizeMB = 4; * @return The nrtCachingDirectoryMaxSizeMB. */ @java.lang.Override public double getNrtCachingDirectoryMaxSizeMB() { return nrtCachingDirectoryMaxSizeMB_; } /** *
     * Largest overall size for all files cached in NRTCachingDirectory; set to -1 to disable NRTCachingDirectory default: 60.0MB
     * 
* * double nrtCachingDirectoryMaxSizeMB = 4; * @param value The nrtCachingDirectoryMaxSizeMB to set. * @return This builder for chaining. */ public Builder setNrtCachingDirectoryMaxSizeMB(double value) { nrtCachingDirectoryMaxSizeMB_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * Largest overall size for all files cached in NRTCachingDirectory; set to -1 to disable NRTCachingDirectory default: 60.0MB
     * 
* * double nrtCachingDirectoryMaxSizeMB = 4; * @return This builder for chaining. */ public Builder clearNrtCachingDirectoryMaxSizeMB() { bitField0_ = (bitField0_ & ~0x00000008); nrtCachingDirectoryMaxSizeMB_ = 0D; onChanged(); return this; } private int concurrentMergeSchedulerMaxThreadCount_ ; /** *
     * How many merge threads to allow at once
     * 
* * int32 concurrentMergeSchedulerMaxThreadCount = 5; * @return The concurrentMergeSchedulerMaxThreadCount. */ @java.lang.Override public int getConcurrentMergeSchedulerMaxThreadCount() { return concurrentMergeSchedulerMaxThreadCount_; } /** *
     * How many merge threads to allow at once
     * 
* * int32 concurrentMergeSchedulerMaxThreadCount = 5; * @param value The concurrentMergeSchedulerMaxThreadCount to set. * @return This builder for chaining. */ public Builder setConcurrentMergeSchedulerMaxThreadCount(int value) { concurrentMergeSchedulerMaxThreadCount_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * How many merge threads to allow at once
     * 
* * int32 concurrentMergeSchedulerMaxThreadCount = 5; * @return This builder for chaining. */ public Builder clearConcurrentMergeSchedulerMaxThreadCount() { bitField0_ = (bitField0_ & ~0x00000010); concurrentMergeSchedulerMaxThreadCount_ = 0; onChanged(); return this; } private int concurrentMergeSchedulerMaxMergeCount_ ; /** *
     * Maximum backlog of pending merges before indexing threads are stalled
     * 
* * int32 concurrentMergeSchedulerMaxMergeCount = 6; * @return The concurrentMergeSchedulerMaxMergeCount. */ @java.lang.Override public int getConcurrentMergeSchedulerMaxMergeCount() { return concurrentMergeSchedulerMaxMergeCount_; } /** *
     * Maximum backlog of pending merges before indexing threads are stalled
     * 
* * int32 concurrentMergeSchedulerMaxMergeCount = 6; * @param value The concurrentMergeSchedulerMaxMergeCount to set. * @return This builder for chaining. */ public Builder setConcurrentMergeSchedulerMaxMergeCount(int value) { concurrentMergeSchedulerMaxMergeCount_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Maximum backlog of pending merges before indexing threads are stalled
     * 
* * int32 concurrentMergeSchedulerMaxMergeCount = 6; * @return This builder for chaining. */ public Builder clearConcurrentMergeSchedulerMaxMergeCount() { bitField0_ = (bitField0_ & ~0x00000020); concurrentMergeSchedulerMaxMergeCount_ = 0; onChanged(); return this; } private com.yelp.nrtsearch.server.grpc.SortFields indexSort_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SortFields, com.yelp.nrtsearch.server.grpc.SortFields.Builder, com.yelp.nrtsearch.server.grpc.SortFieldsOrBuilder> indexSortBuilder_; /** *
     * Index time sorting; can only be written once", SearchHandler.SORT_TYPE
     * 
* * .luceneserver.SortFields indexSort = 7; * @return Whether the indexSort field is set. */ public boolean hasIndexSort() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Index time sorting; can only be written once", SearchHandler.SORT_TYPE
     * 
* * .luceneserver.SortFields indexSort = 7; * @return The indexSort. */ public com.yelp.nrtsearch.server.grpc.SortFields getIndexSort() { if (indexSortBuilder_ == null) { return indexSort_ == null ? com.yelp.nrtsearch.server.grpc.SortFields.getDefaultInstance() : indexSort_; } else { return indexSortBuilder_.getMessage(); } } /** *
     * Index time sorting; can only be written once", SearchHandler.SORT_TYPE
     * 
* * .luceneserver.SortFields indexSort = 7; */ public Builder setIndexSort(com.yelp.nrtsearch.server.grpc.SortFields value) { if (indexSortBuilder_ == null) { if (value == null) { throw new NullPointerException(); } indexSort_ = value; } else { indexSortBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Index time sorting; can only be written once", SearchHandler.SORT_TYPE
     * 
* * .luceneserver.SortFields indexSort = 7; */ public Builder setIndexSort( com.yelp.nrtsearch.server.grpc.SortFields.Builder builderForValue) { if (indexSortBuilder_ == null) { indexSort_ = builderForValue.build(); } else { indexSortBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Index time sorting; can only be written once", SearchHandler.SORT_TYPE
     * 
* * .luceneserver.SortFields indexSort = 7; */ public Builder mergeIndexSort(com.yelp.nrtsearch.server.grpc.SortFields value) { if (indexSortBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && indexSort_ != null && indexSort_ != com.yelp.nrtsearch.server.grpc.SortFields.getDefaultInstance()) { getIndexSortBuilder().mergeFrom(value); } else { indexSort_ = value; } } else { indexSortBuilder_.mergeFrom(value); } if (indexSort_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
     * Index time sorting; can only be written once", SearchHandler.SORT_TYPE
     * 
* * .luceneserver.SortFields indexSort = 7; */ public Builder clearIndexSort() { bitField0_ = (bitField0_ & ~0x00000040); indexSort_ = null; if (indexSortBuilder_ != null) { indexSortBuilder_.dispose(); indexSortBuilder_ = null; } onChanged(); return this; } /** *
     * Index time sorting; can only be written once", SearchHandler.SORT_TYPE
     * 
* * .luceneserver.SortFields indexSort = 7; */ public com.yelp.nrtsearch.server.grpc.SortFields.Builder getIndexSortBuilder() { bitField0_ |= 0x00000040; onChanged(); return getIndexSortFieldBuilder().getBuilder(); } /** *
     * Index time sorting; can only be written once", SearchHandler.SORT_TYPE
     * 
* * .luceneserver.SortFields indexSort = 7; */ public com.yelp.nrtsearch.server.grpc.SortFieldsOrBuilder getIndexSortOrBuilder() { if (indexSortBuilder_ != null) { return indexSortBuilder_.getMessageOrBuilder(); } else { return indexSort_ == null ? com.yelp.nrtsearch.server.grpc.SortFields.getDefaultInstance() : indexSort_; } } /** *
     * Index time sorting; can only be written once", SearchHandler.SORT_TYPE
     * 
* * .luceneserver.SortFields indexSort = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SortFields, com.yelp.nrtsearch.server.grpc.SortFields.Builder, com.yelp.nrtsearch.server.grpc.SortFieldsOrBuilder> getIndexSortFieldBuilder() { if (indexSortBuilder_ == null) { indexSortBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SortFields, com.yelp.nrtsearch.server.grpc.SortFields.Builder, com.yelp.nrtsearch.server.grpc.SortFieldsOrBuilder>( getIndexSort(), getParentForChildren(), isClean()); indexSort_ = null; } return indexSortBuilder_; } private boolean indexVerbose_ ; /** *
     * Deprecated, moved to lucene config. Turn on IndexWriter's infoStream (to stdout)
     * 
* * bool indexVerbose = 8 [deprecated = true]; * @deprecated luceneserver.SettingsRequest.indexVerbose is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=648 * @return The indexVerbose. */ @java.lang.Override @java.lang.Deprecated public boolean getIndexVerbose() { return indexVerbose_; } /** *
     * Deprecated, moved to lucene config. Turn on IndexWriter's infoStream (to stdout)
     * 
* * bool indexVerbose = 8 [deprecated = true]; * @deprecated luceneserver.SettingsRequest.indexVerbose is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=648 * @param value The indexVerbose to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setIndexVerbose(boolean value) { indexVerbose_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Deprecated, moved to lucene config. Turn on IndexWriter's infoStream (to stdout)
     * 
* * bool indexVerbose = 8 [deprecated = true]; * @deprecated luceneserver.SettingsRequest.indexVerbose is deprecated. * See yelp/nrtsearch/luceneserver.proto;l=648 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearIndexVerbose() { bitField0_ = (bitField0_ & ~0x00000080); indexVerbose_ = false; onChanged(); return this; } private boolean indexMergeSchedulerAutoThrottle_ ; /** *
     * Turn on/off the merge scheduler's auto throttling
     * 
* * bool indexMergeSchedulerAutoThrottle = 9; * @return The indexMergeSchedulerAutoThrottle. */ @java.lang.Override public boolean getIndexMergeSchedulerAutoThrottle() { return indexMergeSchedulerAutoThrottle_; } /** *
     * Turn on/off the merge scheduler's auto throttling
     * 
* * bool indexMergeSchedulerAutoThrottle = 9; * @param value The indexMergeSchedulerAutoThrottle to set. * @return This builder for chaining. */ public Builder setIndexMergeSchedulerAutoThrottle(boolean value) { indexMergeSchedulerAutoThrottle_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * Turn on/off the merge scheduler's auto throttling
     * 
* * bool indexMergeSchedulerAutoThrottle = 9; * @return This builder for chaining. */ public Builder clearIndexMergeSchedulerAutoThrottle() { bitField0_ = (bitField0_ & ~0x00000100); indexMergeSchedulerAutoThrottle_ = false; onChanged(); return this; } private java.lang.Object normsFormat_ = ""; /** *
     * Which NormsFormat should be used for all indexed fields. default: Lucene80NormsFormat
     * 
* * string normsFormat = 10; * @return The normsFormat. */ public java.lang.String getNormsFormat() { java.lang.Object ref = normsFormat_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); normsFormat_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Which NormsFormat should be used for all indexed fields. default: Lucene80NormsFormat
     * 
* * string normsFormat = 10; * @return The bytes for normsFormat. */ public com.google.protobuf.ByteString getNormsFormatBytes() { java.lang.Object ref = normsFormat_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); normsFormat_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Which NormsFormat should be used for all indexed fields. default: Lucene80NormsFormat
     * 
* * string normsFormat = 10; * @param value The normsFormat to set. * @return This builder for chaining. */ public Builder setNormsFormat( java.lang.String value) { if (value == null) { throw new NullPointerException(); } normsFormat_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * Which NormsFormat should be used for all indexed fields. default: Lucene80NormsFormat
     * 
* * string normsFormat = 10; * @return This builder for chaining. */ public Builder clearNormsFormat() { normsFormat_ = getDefaultInstance().getNormsFormat(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** *
     * Which NormsFormat should be used for all indexed fields. default: Lucene80NormsFormat
     * 
* * string normsFormat = 10; * @param value The bytes for normsFormat to set. * @return This builder for chaining. */ public Builder setNormsFormatBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); normsFormat_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } private java.lang.Object directory_ = ""; /** *
     * Base Directory implementation to use (NRTCachingDirectory will wrap this) either one of the core implementations (FSDirectory, MMapDirectory, NIOFSDirectory, or a fully qualified path to a Directory implementation that has a public constructor taking a single File argument default: FSDirectory
     * 
* * string directory = 11; * @return The directory. */ public java.lang.String getDirectory() { java.lang.Object ref = directory_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); directory_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Base Directory implementation to use (NRTCachingDirectory will wrap this) either one of the core implementations (FSDirectory, MMapDirectory, NIOFSDirectory, or a fully qualified path to a Directory implementation that has a public constructor taking a single File argument default: FSDirectory
     * 
* * string directory = 11; * @return The bytes for directory. */ public com.google.protobuf.ByteString getDirectoryBytes() { java.lang.Object ref = directory_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); directory_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Base Directory implementation to use (NRTCachingDirectory will wrap this) either one of the core implementations (FSDirectory, MMapDirectory, NIOFSDirectory, or a fully qualified path to a Directory implementation that has a public constructor taking a single File argument default: FSDirectory
     * 
* * string directory = 11; * @param value The directory to set. * @return This builder for chaining. */ public Builder setDirectory( java.lang.String value) { if (value == null) { throw new NullPointerException(); } directory_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** *
     * Base Directory implementation to use (NRTCachingDirectory will wrap this) either one of the core implementations (FSDirectory, MMapDirectory, NIOFSDirectory, or a fully qualified path to a Directory implementation that has a public constructor taking a single File argument default: FSDirectory
     * 
* * string directory = 11; * @return This builder for chaining. */ public Builder clearDirectory() { directory_ = getDefaultInstance().getDirectory(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } /** *
     * Base Directory implementation to use (NRTCachingDirectory will wrap this) either one of the core implementations (FSDirectory, MMapDirectory, NIOFSDirectory, or a fully qualified path to a Directory implementation that has a public constructor taking a single File argument default: FSDirectory
     * 
* * string directory = 11; * @param value The bytes for directory to set. * @return This builder for chaining. */ public Builder setDirectoryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); directory_ = value; bitField0_ |= 0x00000400; 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.SettingsRequest) } // @@protoc_insertion_point(class_scope:luceneserver.SettingsRequest) private static final com.yelp.nrtsearch.server.grpc.SettingsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.SettingsRequest(); } public static com.yelp.nrtsearch.server.grpc.SettingsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SettingsRequest 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.SettingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy