com.yelp.nrtsearch.server.grpc.IndexSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clientlib Show documentation
Show all versions of clientlib Show documentation
GRPC Clientlib for nrtSearch
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yelp/nrtsearch/luceneserver.proto
// Protobuf Java Version: 3.25.3
package com.yelp.nrtsearch.server.grpc;
/**
* Protobuf type {@code luceneserver.IndexSettings}
*/
public final class IndexSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.IndexSettings)
IndexSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use IndexSettings.newBuilder() to construct.
private IndexSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IndexSettings() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IndexSettings();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_IndexSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_IndexSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.IndexSettings.class, com.yelp.nrtsearch.server.grpc.IndexSettings.Builder.class);
}
private int bitField0_;
public static final int NRTCACHINGDIRECTORYMAXMERGESIZEMB_FIELD_NUMBER = 1;
private com.google.protobuf.DoubleValue nrtCachingDirectoryMaxMergeSizeMB_;
/**
*
* Largest merged segment size to cache in RAMDirectory, default: 5.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxMergeSizeMB = 1;
* @return Whether the nrtCachingDirectoryMaxMergeSizeMB field is set.
*/
@java.lang.Override
public boolean hasNrtCachingDirectoryMaxMergeSizeMB() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Largest merged segment size to cache in RAMDirectory, default: 5.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxMergeSizeMB = 1;
* @return The nrtCachingDirectoryMaxMergeSizeMB.
*/
@java.lang.Override
public com.google.protobuf.DoubleValue getNrtCachingDirectoryMaxMergeSizeMB() {
return nrtCachingDirectoryMaxMergeSizeMB_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : nrtCachingDirectoryMaxMergeSizeMB_;
}
/**
*
* Largest merged segment size to cache in RAMDirectory, default: 5.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxMergeSizeMB = 1;
*/
@java.lang.Override
public com.google.protobuf.DoubleValueOrBuilder getNrtCachingDirectoryMaxMergeSizeMBOrBuilder() {
return nrtCachingDirectoryMaxMergeSizeMB_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : nrtCachingDirectoryMaxMergeSizeMB_;
}
public static final int NRTCACHINGDIRECTORYMAXSIZEMB_FIELD_NUMBER = 2;
private com.google.protobuf.DoubleValue nrtCachingDirectoryMaxSizeMB_;
/**
*
* Largest overall size for all files cached in NRTCachingDirectory, default: 60.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxSizeMB = 2;
* @return Whether the nrtCachingDirectoryMaxSizeMB field is set.
*/
@java.lang.Override
public boolean hasNrtCachingDirectoryMaxSizeMB() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Largest overall size for all files cached in NRTCachingDirectory, default: 60.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxSizeMB = 2;
* @return The nrtCachingDirectoryMaxSizeMB.
*/
@java.lang.Override
public com.google.protobuf.DoubleValue getNrtCachingDirectoryMaxSizeMB() {
return nrtCachingDirectoryMaxSizeMB_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : nrtCachingDirectoryMaxSizeMB_;
}
/**
*
* Largest overall size for all files cached in NRTCachingDirectory, default: 60.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxSizeMB = 2;
*/
@java.lang.Override
public com.google.protobuf.DoubleValueOrBuilder getNrtCachingDirectoryMaxSizeMBOrBuilder() {
return nrtCachingDirectoryMaxSizeMB_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : nrtCachingDirectoryMaxSizeMB_;
}
public static final int CONCURRENTMERGESCHEDULERMAXTHREADCOUNT_FIELD_NUMBER = 3;
private com.google.protobuf.Int32Value concurrentMergeSchedulerMaxThreadCount_;
/**
*
* How many merge threads to allow at once
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxThreadCount = 3;
* @return Whether the concurrentMergeSchedulerMaxThreadCount field is set.
*/
@java.lang.Override
public boolean hasConcurrentMergeSchedulerMaxThreadCount() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* How many merge threads to allow at once
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxThreadCount = 3;
* @return The concurrentMergeSchedulerMaxThreadCount.
*/
@java.lang.Override
public com.google.protobuf.Int32Value getConcurrentMergeSchedulerMaxThreadCount() {
return concurrentMergeSchedulerMaxThreadCount_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : concurrentMergeSchedulerMaxThreadCount_;
}
/**
*
* How many merge threads to allow at once
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxThreadCount = 3;
*/
@java.lang.Override
public com.google.protobuf.Int32ValueOrBuilder getConcurrentMergeSchedulerMaxThreadCountOrBuilder() {
return concurrentMergeSchedulerMaxThreadCount_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : concurrentMergeSchedulerMaxThreadCount_;
}
public static final int CONCURRENTMERGESCHEDULERMAXMERGECOUNT_FIELD_NUMBER = 4;
private com.google.protobuf.Int32Value concurrentMergeSchedulerMaxMergeCount_;
/**
*
* Maximum backlog of pending merges before indexing threads are stalled
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxMergeCount = 4;
* @return Whether the concurrentMergeSchedulerMaxMergeCount field is set.
*/
@java.lang.Override
public boolean hasConcurrentMergeSchedulerMaxMergeCount() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Maximum backlog of pending merges before indexing threads are stalled
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxMergeCount = 4;
* @return The concurrentMergeSchedulerMaxMergeCount.
*/
@java.lang.Override
public com.google.protobuf.Int32Value getConcurrentMergeSchedulerMaxMergeCount() {
return concurrentMergeSchedulerMaxMergeCount_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : concurrentMergeSchedulerMaxMergeCount_;
}
/**
*
* Maximum backlog of pending merges before indexing threads are stalled
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxMergeCount = 4;
*/
@java.lang.Override
public com.google.protobuf.Int32ValueOrBuilder getConcurrentMergeSchedulerMaxMergeCountOrBuilder() {
return concurrentMergeSchedulerMaxMergeCount_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : concurrentMergeSchedulerMaxMergeCount_;
}
public static final int INDEXSORT_FIELD_NUMBER = 5;
private com.yelp.nrtsearch.server.grpc.SortFields indexSort_;
/**
*
* Index time sorting; can only be written once", SearchHandler.SORT_TYPE
*
*
* .luceneserver.SortFields indexSort = 5;
* @return Whether the indexSort field is set.
*/
@java.lang.Override
public boolean hasIndexSort() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Index time sorting; can only be written once", SearchHandler.SORT_TYPE
*
*
* .luceneserver.SortFields indexSort = 5;
* @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 = 5;
*/
@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 INDEXMERGESCHEDULERAUTOTHROTTLE_FIELD_NUMBER = 6;
private com.google.protobuf.BoolValue indexMergeSchedulerAutoThrottle_;
/**
*
* Turn on/off the merge scheduler's auto throttling, default: off
*
*
* .google.protobuf.BoolValue indexMergeSchedulerAutoThrottle = 6;
* @return Whether the indexMergeSchedulerAutoThrottle field is set.
*/
@java.lang.Override
public boolean hasIndexMergeSchedulerAutoThrottle() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Turn on/off the merge scheduler's auto throttling, default: off
*
*
* .google.protobuf.BoolValue indexMergeSchedulerAutoThrottle = 6;
* @return The indexMergeSchedulerAutoThrottle.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getIndexMergeSchedulerAutoThrottle() {
return indexMergeSchedulerAutoThrottle_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : indexMergeSchedulerAutoThrottle_;
}
/**
*
* Turn on/off the merge scheduler's auto throttling, default: off
*
*
* .google.protobuf.BoolValue indexMergeSchedulerAutoThrottle = 6;
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getIndexMergeSchedulerAutoThrottleOrBuilder() {
return indexMergeSchedulerAutoThrottle_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : indexMergeSchedulerAutoThrottle_;
}
public static final int DIRECTORY_FIELD_NUMBER = 7;
private com.google.protobuf.StringValue 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
*
*
* .google.protobuf.StringValue directory = 7;
* @return Whether the directory field is set.
*/
@java.lang.Override
public boolean hasDirectory() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* 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
*
*
* .google.protobuf.StringValue directory = 7;
* @return The directory.
*/
@java.lang.Override
public com.google.protobuf.StringValue getDirectory() {
return directory_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : 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
*
*
* .google.protobuf.StringValue directory = 7;
*/
@java.lang.Override
public com.google.protobuf.StringValueOrBuilder getDirectoryOrBuilder() {
return directory_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : directory_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getNrtCachingDirectoryMaxMergeSizeMB());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getNrtCachingDirectoryMaxSizeMB());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getConcurrentMergeSchedulerMaxThreadCount());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getConcurrentMergeSchedulerMaxMergeCount());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getIndexSort());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(6, getIndexMergeSchedulerAutoThrottle());
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(7, getDirectory());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getNrtCachingDirectoryMaxMergeSizeMB());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getNrtCachingDirectoryMaxSizeMB());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getConcurrentMergeSchedulerMaxThreadCount());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getConcurrentMergeSchedulerMaxMergeCount());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getIndexSort());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getIndexMergeSchedulerAutoThrottle());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getDirectory());
}
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.IndexSettings)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.IndexSettings other = (com.yelp.nrtsearch.server.grpc.IndexSettings) obj;
if (hasNrtCachingDirectoryMaxMergeSizeMB() != other.hasNrtCachingDirectoryMaxMergeSizeMB()) return false;
if (hasNrtCachingDirectoryMaxMergeSizeMB()) {
if (!getNrtCachingDirectoryMaxMergeSizeMB()
.equals(other.getNrtCachingDirectoryMaxMergeSizeMB())) return false;
}
if (hasNrtCachingDirectoryMaxSizeMB() != other.hasNrtCachingDirectoryMaxSizeMB()) return false;
if (hasNrtCachingDirectoryMaxSizeMB()) {
if (!getNrtCachingDirectoryMaxSizeMB()
.equals(other.getNrtCachingDirectoryMaxSizeMB())) return false;
}
if (hasConcurrentMergeSchedulerMaxThreadCount() != other.hasConcurrentMergeSchedulerMaxThreadCount()) return false;
if (hasConcurrentMergeSchedulerMaxThreadCount()) {
if (!getConcurrentMergeSchedulerMaxThreadCount()
.equals(other.getConcurrentMergeSchedulerMaxThreadCount())) return false;
}
if (hasConcurrentMergeSchedulerMaxMergeCount() != other.hasConcurrentMergeSchedulerMaxMergeCount()) return false;
if (hasConcurrentMergeSchedulerMaxMergeCount()) {
if (!getConcurrentMergeSchedulerMaxMergeCount()
.equals(other.getConcurrentMergeSchedulerMaxMergeCount())) return false;
}
if (hasIndexSort() != other.hasIndexSort()) return false;
if (hasIndexSort()) {
if (!getIndexSort()
.equals(other.getIndexSort())) return false;
}
if (hasIndexMergeSchedulerAutoThrottle() != other.hasIndexMergeSchedulerAutoThrottle()) return false;
if (hasIndexMergeSchedulerAutoThrottle()) {
if (!getIndexMergeSchedulerAutoThrottle()
.equals(other.getIndexMergeSchedulerAutoThrottle())) return false;
}
if (hasDirectory() != other.hasDirectory()) return false;
if (hasDirectory()) {
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();
if (hasNrtCachingDirectoryMaxMergeSizeMB()) {
hash = (37 * hash) + NRTCACHINGDIRECTORYMAXMERGESIZEMB_FIELD_NUMBER;
hash = (53 * hash) + getNrtCachingDirectoryMaxMergeSizeMB().hashCode();
}
if (hasNrtCachingDirectoryMaxSizeMB()) {
hash = (37 * hash) + NRTCACHINGDIRECTORYMAXSIZEMB_FIELD_NUMBER;
hash = (53 * hash) + getNrtCachingDirectoryMaxSizeMB().hashCode();
}
if (hasConcurrentMergeSchedulerMaxThreadCount()) {
hash = (37 * hash) + CONCURRENTMERGESCHEDULERMAXTHREADCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getConcurrentMergeSchedulerMaxThreadCount().hashCode();
}
if (hasConcurrentMergeSchedulerMaxMergeCount()) {
hash = (37 * hash) + CONCURRENTMERGESCHEDULERMAXMERGECOUNT_FIELD_NUMBER;
hash = (53 * hash) + getConcurrentMergeSchedulerMaxMergeCount().hashCode();
}
if (hasIndexSort()) {
hash = (37 * hash) + INDEXSORT_FIELD_NUMBER;
hash = (53 * hash) + getIndexSort().hashCode();
}
if (hasIndexMergeSchedulerAutoThrottle()) {
hash = (37 * hash) + INDEXMERGESCHEDULERAUTOTHROTTLE_FIELD_NUMBER;
hash = (53 * hash) + getIndexMergeSchedulerAutoThrottle().hashCode();
}
if (hasDirectory()) {
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.IndexSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.IndexSettings 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.IndexSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.IndexSettings 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.IndexSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.IndexSettings 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.IndexSettings parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.IndexSettings 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.IndexSettings parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.IndexSettings 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.IndexSettings 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.IndexSettings 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.IndexSettings prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code luceneserver.IndexSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.IndexSettings)
com.yelp.nrtsearch.server.grpc.IndexSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_IndexSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_IndexSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.IndexSettings.class, com.yelp.nrtsearch.server.grpc.IndexSettings.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.IndexSettings.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getNrtCachingDirectoryMaxMergeSizeMBFieldBuilder();
getNrtCachingDirectoryMaxSizeMBFieldBuilder();
getConcurrentMergeSchedulerMaxThreadCountFieldBuilder();
getConcurrentMergeSchedulerMaxMergeCountFieldBuilder();
getIndexSortFieldBuilder();
getIndexMergeSchedulerAutoThrottleFieldBuilder();
getDirectoryFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
nrtCachingDirectoryMaxMergeSizeMB_ = null;
if (nrtCachingDirectoryMaxMergeSizeMBBuilder_ != null) {
nrtCachingDirectoryMaxMergeSizeMBBuilder_.dispose();
nrtCachingDirectoryMaxMergeSizeMBBuilder_ = null;
}
nrtCachingDirectoryMaxSizeMB_ = null;
if (nrtCachingDirectoryMaxSizeMBBuilder_ != null) {
nrtCachingDirectoryMaxSizeMBBuilder_.dispose();
nrtCachingDirectoryMaxSizeMBBuilder_ = null;
}
concurrentMergeSchedulerMaxThreadCount_ = null;
if (concurrentMergeSchedulerMaxThreadCountBuilder_ != null) {
concurrentMergeSchedulerMaxThreadCountBuilder_.dispose();
concurrentMergeSchedulerMaxThreadCountBuilder_ = null;
}
concurrentMergeSchedulerMaxMergeCount_ = null;
if (concurrentMergeSchedulerMaxMergeCountBuilder_ != null) {
concurrentMergeSchedulerMaxMergeCountBuilder_.dispose();
concurrentMergeSchedulerMaxMergeCountBuilder_ = null;
}
indexSort_ = null;
if (indexSortBuilder_ != null) {
indexSortBuilder_.dispose();
indexSortBuilder_ = null;
}
indexMergeSchedulerAutoThrottle_ = null;
if (indexMergeSchedulerAutoThrottleBuilder_ != null) {
indexMergeSchedulerAutoThrottleBuilder_.dispose();
indexMergeSchedulerAutoThrottleBuilder_ = null;
}
directory_ = null;
if (directoryBuilder_ != null) {
directoryBuilder_.dispose();
directoryBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.LuceneServerProto.internal_static_luceneserver_IndexSettings_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.IndexSettings getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.IndexSettings.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.IndexSettings build() {
com.yelp.nrtsearch.server.grpc.IndexSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.IndexSettings buildPartial() {
com.yelp.nrtsearch.server.grpc.IndexSettings result = new com.yelp.nrtsearch.server.grpc.IndexSettings(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.IndexSettings result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.nrtCachingDirectoryMaxMergeSizeMB_ = nrtCachingDirectoryMaxMergeSizeMBBuilder_ == null
? nrtCachingDirectoryMaxMergeSizeMB_
: nrtCachingDirectoryMaxMergeSizeMBBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.nrtCachingDirectoryMaxSizeMB_ = nrtCachingDirectoryMaxSizeMBBuilder_ == null
? nrtCachingDirectoryMaxSizeMB_
: nrtCachingDirectoryMaxSizeMBBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.concurrentMergeSchedulerMaxThreadCount_ = concurrentMergeSchedulerMaxThreadCountBuilder_ == null
? concurrentMergeSchedulerMaxThreadCount_
: concurrentMergeSchedulerMaxThreadCountBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.concurrentMergeSchedulerMaxMergeCount_ = concurrentMergeSchedulerMaxMergeCountBuilder_ == null
? concurrentMergeSchedulerMaxMergeCount_
: concurrentMergeSchedulerMaxMergeCountBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.indexSort_ = indexSortBuilder_ == null
? indexSort_
: indexSortBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.indexMergeSchedulerAutoThrottle_ = indexMergeSchedulerAutoThrottleBuilder_ == null
? indexMergeSchedulerAutoThrottle_
: indexMergeSchedulerAutoThrottleBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.directory_ = directoryBuilder_ == null
? directory_
: directoryBuilder_.build();
to_bitField0_ |= 0x00000040;
}
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.IndexSettings) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.IndexSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.IndexSettings other) {
if (other == com.yelp.nrtsearch.server.grpc.IndexSettings.getDefaultInstance()) return this;
if (other.hasNrtCachingDirectoryMaxMergeSizeMB()) {
mergeNrtCachingDirectoryMaxMergeSizeMB(other.getNrtCachingDirectoryMaxMergeSizeMB());
}
if (other.hasNrtCachingDirectoryMaxSizeMB()) {
mergeNrtCachingDirectoryMaxSizeMB(other.getNrtCachingDirectoryMaxSizeMB());
}
if (other.hasConcurrentMergeSchedulerMaxThreadCount()) {
mergeConcurrentMergeSchedulerMaxThreadCount(other.getConcurrentMergeSchedulerMaxThreadCount());
}
if (other.hasConcurrentMergeSchedulerMaxMergeCount()) {
mergeConcurrentMergeSchedulerMaxMergeCount(other.getConcurrentMergeSchedulerMaxMergeCount());
}
if (other.hasIndexSort()) {
mergeIndexSort(other.getIndexSort());
}
if (other.hasIndexMergeSchedulerAutoThrottle()) {
mergeIndexMergeSchedulerAutoThrottle(other.getIndexMergeSchedulerAutoThrottle());
}
if (other.hasDirectory()) {
mergeDirectory(other.getDirectory());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getNrtCachingDirectoryMaxMergeSizeMBFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getNrtCachingDirectoryMaxSizeMBFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getConcurrentMergeSchedulerMaxThreadCountFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getConcurrentMergeSchedulerMaxMergeCountFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
input.readMessage(
getIndexSortFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getIndexMergeSchedulerAutoThrottleFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
input.readMessage(
getDirectoryFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.DoubleValue nrtCachingDirectoryMaxMergeSizeMB_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> nrtCachingDirectoryMaxMergeSizeMBBuilder_;
/**
*
* Largest merged segment size to cache in RAMDirectory, default: 5.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxMergeSizeMB = 1;
* @return Whether the nrtCachingDirectoryMaxMergeSizeMB field is set.
*/
public boolean hasNrtCachingDirectoryMaxMergeSizeMB() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Largest merged segment size to cache in RAMDirectory, default: 5.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxMergeSizeMB = 1;
* @return The nrtCachingDirectoryMaxMergeSizeMB.
*/
public com.google.protobuf.DoubleValue getNrtCachingDirectoryMaxMergeSizeMB() {
if (nrtCachingDirectoryMaxMergeSizeMBBuilder_ == null) {
return nrtCachingDirectoryMaxMergeSizeMB_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : nrtCachingDirectoryMaxMergeSizeMB_;
} else {
return nrtCachingDirectoryMaxMergeSizeMBBuilder_.getMessage();
}
}
/**
*
* Largest merged segment size to cache in RAMDirectory, default: 5.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxMergeSizeMB = 1;
*/
public Builder setNrtCachingDirectoryMaxMergeSizeMB(com.google.protobuf.DoubleValue value) {
if (nrtCachingDirectoryMaxMergeSizeMBBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nrtCachingDirectoryMaxMergeSizeMB_ = value;
} else {
nrtCachingDirectoryMaxMergeSizeMBBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Largest merged segment size to cache in RAMDirectory, default: 5.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxMergeSizeMB = 1;
*/
public Builder setNrtCachingDirectoryMaxMergeSizeMB(
com.google.protobuf.DoubleValue.Builder builderForValue) {
if (nrtCachingDirectoryMaxMergeSizeMBBuilder_ == null) {
nrtCachingDirectoryMaxMergeSizeMB_ = builderForValue.build();
} else {
nrtCachingDirectoryMaxMergeSizeMBBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Largest merged segment size to cache in RAMDirectory, default: 5.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxMergeSizeMB = 1;
*/
public Builder mergeNrtCachingDirectoryMaxMergeSizeMB(com.google.protobuf.DoubleValue value) {
if (nrtCachingDirectoryMaxMergeSizeMBBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
nrtCachingDirectoryMaxMergeSizeMB_ != null &&
nrtCachingDirectoryMaxMergeSizeMB_ != com.google.protobuf.DoubleValue.getDefaultInstance()) {
getNrtCachingDirectoryMaxMergeSizeMBBuilder().mergeFrom(value);
} else {
nrtCachingDirectoryMaxMergeSizeMB_ = value;
}
} else {
nrtCachingDirectoryMaxMergeSizeMBBuilder_.mergeFrom(value);
}
if (nrtCachingDirectoryMaxMergeSizeMB_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Largest merged segment size to cache in RAMDirectory, default: 5.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxMergeSizeMB = 1;
*/
public Builder clearNrtCachingDirectoryMaxMergeSizeMB() {
bitField0_ = (bitField0_ & ~0x00000001);
nrtCachingDirectoryMaxMergeSizeMB_ = null;
if (nrtCachingDirectoryMaxMergeSizeMBBuilder_ != null) {
nrtCachingDirectoryMaxMergeSizeMBBuilder_.dispose();
nrtCachingDirectoryMaxMergeSizeMBBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Largest merged segment size to cache in RAMDirectory, default: 5.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxMergeSizeMB = 1;
*/
public com.google.protobuf.DoubleValue.Builder getNrtCachingDirectoryMaxMergeSizeMBBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getNrtCachingDirectoryMaxMergeSizeMBFieldBuilder().getBuilder();
}
/**
*
* Largest merged segment size to cache in RAMDirectory, default: 5.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxMergeSizeMB = 1;
*/
public com.google.protobuf.DoubleValueOrBuilder getNrtCachingDirectoryMaxMergeSizeMBOrBuilder() {
if (nrtCachingDirectoryMaxMergeSizeMBBuilder_ != null) {
return nrtCachingDirectoryMaxMergeSizeMBBuilder_.getMessageOrBuilder();
} else {
return nrtCachingDirectoryMaxMergeSizeMB_ == null ?
com.google.protobuf.DoubleValue.getDefaultInstance() : nrtCachingDirectoryMaxMergeSizeMB_;
}
}
/**
*
* Largest merged segment size to cache in RAMDirectory, default: 5.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxMergeSizeMB = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>
getNrtCachingDirectoryMaxMergeSizeMBFieldBuilder() {
if (nrtCachingDirectoryMaxMergeSizeMBBuilder_ == null) {
nrtCachingDirectoryMaxMergeSizeMBBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>(
getNrtCachingDirectoryMaxMergeSizeMB(),
getParentForChildren(),
isClean());
nrtCachingDirectoryMaxMergeSizeMB_ = null;
}
return nrtCachingDirectoryMaxMergeSizeMBBuilder_;
}
private com.google.protobuf.DoubleValue nrtCachingDirectoryMaxSizeMB_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> nrtCachingDirectoryMaxSizeMBBuilder_;
/**
*
* Largest overall size for all files cached in NRTCachingDirectory, default: 60.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxSizeMB = 2;
* @return Whether the nrtCachingDirectoryMaxSizeMB field is set.
*/
public boolean hasNrtCachingDirectoryMaxSizeMB() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Largest overall size for all files cached in NRTCachingDirectory, default: 60.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxSizeMB = 2;
* @return The nrtCachingDirectoryMaxSizeMB.
*/
public com.google.protobuf.DoubleValue getNrtCachingDirectoryMaxSizeMB() {
if (nrtCachingDirectoryMaxSizeMBBuilder_ == null) {
return nrtCachingDirectoryMaxSizeMB_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : nrtCachingDirectoryMaxSizeMB_;
} else {
return nrtCachingDirectoryMaxSizeMBBuilder_.getMessage();
}
}
/**
*
* Largest overall size for all files cached in NRTCachingDirectory, default: 60.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxSizeMB = 2;
*/
public Builder setNrtCachingDirectoryMaxSizeMB(com.google.protobuf.DoubleValue value) {
if (nrtCachingDirectoryMaxSizeMBBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nrtCachingDirectoryMaxSizeMB_ = value;
} else {
nrtCachingDirectoryMaxSizeMBBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Largest overall size for all files cached in NRTCachingDirectory, default: 60.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxSizeMB = 2;
*/
public Builder setNrtCachingDirectoryMaxSizeMB(
com.google.protobuf.DoubleValue.Builder builderForValue) {
if (nrtCachingDirectoryMaxSizeMBBuilder_ == null) {
nrtCachingDirectoryMaxSizeMB_ = builderForValue.build();
} else {
nrtCachingDirectoryMaxSizeMBBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Largest overall size for all files cached in NRTCachingDirectory, default: 60.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxSizeMB = 2;
*/
public Builder mergeNrtCachingDirectoryMaxSizeMB(com.google.protobuf.DoubleValue value) {
if (nrtCachingDirectoryMaxSizeMBBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
nrtCachingDirectoryMaxSizeMB_ != null &&
nrtCachingDirectoryMaxSizeMB_ != com.google.protobuf.DoubleValue.getDefaultInstance()) {
getNrtCachingDirectoryMaxSizeMBBuilder().mergeFrom(value);
} else {
nrtCachingDirectoryMaxSizeMB_ = value;
}
} else {
nrtCachingDirectoryMaxSizeMBBuilder_.mergeFrom(value);
}
if (nrtCachingDirectoryMaxSizeMB_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Largest overall size for all files cached in NRTCachingDirectory, default: 60.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxSizeMB = 2;
*/
public Builder clearNrtCachingDirectoryMaxSizeMB() {
bitField0_ = (bitField0_ & ~0x00000002);
nrtCachingDirectoryMaxSizeMB_ = null;
if (nrtCachingDirectoryMaxSizeMBBuilder_ != null) {
nrtCachingDirectoryMaxSizeMBBuilder_.dispose();
nrtCachingDirectoryMaxSizeMBBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Largest overall size for all files cached in NRTCachingDirectory, default: 60.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxSizeMB = 2;
*/
public com.google.protobuf.DoubleValue.Builder getNrtCachingDirectoryMaxSizeMBBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getNrtCachingDirectoryMaxSizeMBFieldBuilder().getBuilder();
}
/**
*
* Largest overall size for all files cached in NRTCachingDirectory, default: 60.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxSizeMB = 2;
*/
public com.google.protobuf.DoubleValueOrBuilder getNrtCachingDirectoryMaxSizeMBOrBuilder() {
if (nrtCachingDirectoryMaxSizeMBBuilder_ != null) {
return nrtCachingDirectoryMaxSizeMBBuilder_.getMessageOrBuilder();
} else {
return nrtCachingDirectoryMaxSizeMB_ == null ?
com.google.protobuf.DoubleValue.getDefaultInstance() : nrtCachingDirectoryMaxSizeMB_;
}
}
/**
*
* Largest overall size for all files cached in NRTCachingDirectory, default: 60.0MB
*
*
* .google.protobuf.DoubleValue nrtCachingDirectoryMaxSizeMB = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>
getNrtCachingDirectoryMaxSizeMBFieldBuilder() {
if (nrtCachingDirectoryMaxSizeMBBuilder_ == null) {
nrtCachingDirectoryMaxSizeMBBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>(
getNrtCachingDirectoryMaxSizeMB(),
getParentForChildren(),
isClean());
nrtCachingDirectoryMaxSizeMB_ = null;
}
return nrtCachingDirectoryMaxSizeMBBuilder_;
}
private com.google.protobuf.Int32Value concurrentMergeSchedulerMaxThreadCount_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> concurrentMergeSchedulerMaxThreadCountBuilder_;
/**
*
* How many merge threads to allow at once
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxThreadCount = 3;
* @return Whether the concurrentMergeSchedulerMaxThreadCount field is set.
*/
public boolean hasConcurrentMergeSchedulerMaxThreadCount() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* How many merge threads to allow at once
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxThreadCount = 3;
* @return The concurrentMergeSchedulerMaxThreadCount.
*/
public com.google.protobuf.Int32Value getConcurrentMergeSchedulerMaxThreadCount() {
if (concurrentMergeSchedulerMaxThreadCountBuilder_ == null) {
return concurrentMergeSchedulerMaxThreadCount_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : concurrentMergeSchedulerMaxThreadCount_;
} else {
return concurrentMergeSchedulerMaxThreadCountBuilder_.getMessage();
}
}
/**
*
* How many merge threads to allow at once
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxThreadCount = 3;
*/
public Builder setConcurrentMergeSchedulerMaxThreadCount(com.google.protobuf.Int32Value value) {
if (concurrentMergeSchedulerMaxThreadCountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
concurrentMergeSchedulerMaxThreadCount_ = value;
} else {
concurrentMergeSchedulerMaxThreadCountBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* How many merge threads to allow at once
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxThreadCount = 3;
*/
public Builder setConcurrentMergeSchedulerMaxThreadCount(
com.google.protobuf.Int32Value.Builder builderForValue) {
if (concurrentMergeSchedulerMaxThreadCountBuilder_ == null) {
concurrentMergeSchedulerMaxThreadCount_ = builderForValue.build();
} else {
concurrentMergeSchedulerMaxThreadCountBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* How many merge threads to allow at once
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxThreadCount = 3;
*/
public Builder mergeConcurrentMergeSchedulerMaxThreadCount(com.google.protobuf.Int32Value value) {
if (concurrentMergeSchedulerMaxThreadCountBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
concurrentMergeSchedulerMaxThreadCount_ != null &&
concurrentMergeSchedulerMaxThreadCount_ != com.google.protobuf.Int32Value.getDefaultInstance()) {
getConcurrentMergeSchedulerMaxThreadCountBuilder().mergeFrom(value);
} else {
concurrentMergeSchedulerMaxThreadCount_ = value;
}
} else {
concurrentMergeSchedulerMaxThreadCountBuilder_.mergeFrom(value);
}
if (concurrentMergeSchedulerMaxThreadCount_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
* How many merge threads to allow at once
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxThreadCount = 3;
*/
public Builder clearConcurrentMergeSchedulerMaxThreadCount() {
bitField0_ = (bitField0_ & ~0x00000004);
concurrentMergeSchedulerMaxThreadCount_ = null;
if (concurrentMergeSchedulerMaxThreadCountBuilder_ != null) {
concurrentMergeSchedulerMaxThreadCountBuilder_.dispose();
concurrentMergeSchedulerMaxThreadCountBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* How many merge threads to allow at once
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxThreadCount = 3;
*/
public com.google.protobuf.Int32Value.Builder getConcurrentMergeSchedulerMaxThreadCountBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getConcurrentMergeSchedulerMaxThreadCountFieldBuilder().getBuilder();
}
/**
*
* How many merge threads to allow at once
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxThreadCount = 3;
*/
public com.google.protobuf.Int32ValueOrBuilder getConcurrentMergeSchedulerMaxThreadCountOrBuilder() {
if (concurrentMergeSchedulerMaxThreadCountBuilder_ != null) {
return concurrentMergeSchedulerMaxThreadCountBuilder_.getMessageOrBuilder();
} else {
return concurrentMergeSchedulerMaxThreadCount_ == null ?
com.google.protobuf.Int32Value.getDefaultInstance() : concurrentMergeSchedulerMaxThreadCount_;
}
}
/**
*
* How many merge threads to allow at once
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxThreadCount = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>
getConcurrentMergeSchedulerMaxThreadCountFieldBuilder() {
if (concurrentMergeSchedulerMaxThreadCountBuilder_ == null) {
concurrentMergeSchedulerMaxThreadCountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>(
getConcurrentMergeSchedulerMaxThreadCount(),
getParentForChildren(),
isClean());
concurrentMergeSchedulerMaxThreadCount_ = null;
}
return concurrentMergeSchedulerMaxThreadCountBuilder_;
}
private com.google.protobuf.Int32Value concurrentMergeSchedulerMaxMergeCount_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> concurrentMergeSchedulerMaxMergeCountBuilder_;
/**
*
* Maximum backlog of pending merges before indexing threads are stalled
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxMergeCount = 4;
* @return Whether the concurrentMergeSchedulerMaxMergeCount field is set.
*/
public boolean hasConcurrentMergeSchedulerMaxMergeCount() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Maximum backlog of pending merges before indexing threads are stalled
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxMergeCount = 4;
* @return The concurrentMergeSchedulerMaxMergeCount.
*/
public com.google.protobuf.Int32Value getConcurrentMergeSchedulerMaxMergeCount() {
if (concurrentMergeSchedulerMaxMergeCountBuilder_ == null) {
return concurrentMergeSchedulerMaxMergeCount_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : concurrentMergeSchedulerMaxMergeCount_;
} else {
return concurrentMergeSchedulerMaxMergeCountBuilder_.getMessage();
}
}
/**
*
* Maximum backlog of pending merges before indexing threads are stalled
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxMergeCount = 4;
*/
public Builder setConcurrentMergeSchedulerMaxMergeCount(com.google.protobuf.Int32Value value) {
if (concurrentMergeSchedulerMaxMergeCountBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
concurrentMergeSchedulerMaxMergeCount_ = value;
} else {
concurrentMergeSchedulerMaxMergeCountBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Maximum backlog of pending merges before indexing threads are stalled
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxMergeCount = 4;
*/
public Builder setConcurrentMergeSchedulerMaxMergeCount(
com.google.protobuf.Int32Value.Builder builderForValue) {
if (concurrentMergeSchedulerMaxMergeCountBuilder_ == null) {
concurrentMergeSchedulerMaxMergeCount_ = builderForValue.build();
} else {
concurrentMergeSchedulerMaxMergeCountBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Maximum backlog of pending merges before indexing threads are stalled
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxMergeCount = 4;
*/
public Builder mergeConcurrentMergeSchedulerMaxMergeCount(com.google.protobuf.Int32Value value) {
if (concurrentMergeSchedulerMaxMergeCountBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
concurrentMergeSchedulerMaxMergeCount_ != null &&
concurrentMergeSchedulerMaxMergeCount_ != com.google.protobuf.Int32Value.getDefaultInstance()) {
getConcurrentMergeSchedulerMaxMergeCountBuilder().mergeFrom(value);
} else {
concurrentMergeSchedulerMaxMergeCount_ = value;
}
} else {
concurrentMergeSchedulerMaxMergeCountBuilder_.mergeFrom(value);
}
if (concurrentMergeSchedulerMaxMergeCount_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
* Maximum backlog of pending merges before indexing threads are stalled
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxMergeCount = 4;
*/
public Builder clearConcurrentMergeSchedulerMaxMergeCount() {
bitField0_ = (bitField0_ & ~0x00000008);
concurrentMergeSchedulerMaxMergeCount_ = null;
if (concurrentMergeSchedulerMaxMergeCountBuilder_ != null) {
concurrentMergeSchedulerMaxMergeCountBuilder_.dispose();
concurrentMergeSchedulerMaxMergeCountBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Maximum backlog of pending merges before indexing threads are stalled
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxMergeCount = 4;
*/
public com.google.protobuf.Int32Value.Builder getConcurrentMergeSchedulerMaxMergeCountBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getConcurrentMergeSchedulerMaxMergeCountFieldBuilder().getBuilder();
}
/**
*
* Maximum backlog of pending merges before indexing threads are stalled
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxMergeCount = 4;
*/
public com.google.protobuf.Int32ValueOrBuilder getConcurrentMergeSchedulerMaxMergeCountOrBuilder() {
if (concurrentMergeSchedulerMaxMergeCountBuilder_ != null) {
return concurrentMergeSchedulerMaxMergeCountBuilder_.getMessageOrBuilder();
} else {
return concurrentMergeSchedulerMaxMergeCount_ == null ?
com.google.protobuf.Int32Value.getDefaultInstance() : concurrentMergeSchedulerMaxMergeCount_;
}
}
/**
*
* Maximum backlog of pending merges before indexing threads are stalled
*
*
* .google.protobuf.Int32Value concurrentMergeSchedulerMaxMergeCount = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>
getConcurrentMergeSchedulerMaxMergeCountFieldBuilder() {
if (concurrentMergeSchedulerMaxMergeCountBuilder_ == null) {
concurrentMergeSchedulerMaxMergeCountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>(
getConcurrentMergeSchedulerMaxMergeCount(),
getParentForChildren(),
isClean());
concurrentMergeSchedulerMaxMergeCount_ = null;
}
return concurrentMergeSchedulerMaxMergeCountBuilder_;
}
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 = 5;
* @return Whether the indexSort field is set.
*/
public boolean hasIndexSort() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Index time sorting; can only be written once", SearchHandler.SORT_TYPE
*
*
* .luceneserver.SortFields indexSort = 5;
* @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 = 5;
*/
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_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Index time sorting; can only be written once", SearchHandler.SORT_TYPE
*
*
* .luceneserver.SortFields indexSort = 5;
*/
public Builder setIndexSort(
com.yelp.nrtsearch.server.grpc.SortFields.Builder builderForValue) {
if (indexSortBuilder_ == null) {
indexSort_ = builderForValue.build();
} else {
indexSortBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Index time sorting; can only be written once", SearchHandler.SORT_TYPE
*
*
* .luceneserver.SortFields indexSort = 5;
*/
public Builder mergeIndexSort(com.yelp.nrtsearch.server.grpc.SortFields value) {
if (indexSortBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 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_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
* Index time sorting; can only be written once", SearchHandler.SORT_TYPE
*
*
* .luceneserver.SortFields indexSort = 5;
*/
public Builder clearIndexSort() {
bitField0_ = (bitField0_ & ~0x00000010);
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 = 5;
*/
public com.yelp.nrtsearch.server.grpc.SortFields.Builder getIndexSortBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getIndexSortFieldBuilder().getBuilder();
}
/**
*
* Index time sorting; can only be written once", SearchHandler.SORT_TYPE
*
*
* .luceneserver.SortFields indexSort = 5;
*/
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 = 5;
*/
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 com.google.protobuf.BoolValue indexMergeSchedulerAutoThrottle_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> indexMergeSchedulerAutoThrottleBuilder_;
/**
*
* Turn on/off the merge scheduler's auto throttling, default: off
*
*
* .google.protobuf.BoolValue indexMergeSchedulerAutoThrottle = 6;
* @return Whether the indexMergeSchedulerAutoThrottle field is set.
*/
public boolean hasIndexMergeSchedulerAutoThrottle() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Turn on/off the merge scheduler's auto throttling, default: off
*
*
* .google.protobuf.BoolValue indexMergeSchedulerAutoThrottle = 6;
* @return The indexMergeSchedulerAutoThrottle.
*/
public com.google.protobuf.BoolValue getIndexMergeSchedulerAutoThrottle() {
if (indexMergeSchedulerAutoThrottleBuilder_ == null) {
return indexMergeSchedulerAutoThrottle_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : indexMergeSchedulerAutoThrottle_;
} else {
return indexMergeSchedulerAutoThrottleBuilder_.getMessage();
}
}
/**
*
* Turn on/off the merge scheduler's auto throttling, default: off
*
*
* .google.protobuf.BoolValue indexMergeSchedulerAutoThrottle = 6;
*/
public Builder setIndexMergeSchedulerAutoThrottle(com.google.protobuf.BoolValue value) {
if (indexMergeSchedulerAutoThrottleBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
indexMergeSchedulerAutoThrottle_ = value;
} else {
indexMergeSchedulerAutoThrottleBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Turn on/off the merge scheduler's auto throttling, default: off
*
*
* .google.protobuf.BoolValue indexMergeSchedulerAutoThrottle = 6;
*/
public Builder setIndexMergeSchedulerAutoThrottle(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (indexMergeSchedulerAutoThrottleBuilder_ == null) {
indexMergeSchedulerAutoThrottle_ = builderForValue.build();
} else {
indexMergeSchedulerAutoThrottleBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Turn on/off the merge scheduler's auto throttling, default: off
*
*
* .google.protobuf.BoolValue indexMergeSchedulerAutoThrottle = 6;
*/
public Builder mergeIndexMergeSchedulerAutoThrottle(com.google.protobuf.BoolValue value) {
if (indexMergeSchedulerAutoThrottleBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
indexMergeSchedulerAutoThrottle_ != null &&
indexMergeSchedulerAutoThrottle_ != com.google.protobuf.BoolValue.getDefaultInstance()) {
getIndexMergeSchedulerAutoThrottleBuilder().mergeFrom(value);
} else {
indexMergeSchedulerAutoThrottle_ = value;
}
} else {
indexMergeSchedulerAutoThrottleBuilder_.mergeFrom(value);
}
if (indexMergeSchedulerAutoThrottle_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
* Turn on/off the merge scheduler's auto throttling, default: off
*
*
* .google.protobuf.BoolValue indexMergeSchedulerAutoThrottle = 6;
*/
public Builder clearIndexMergeSchedulerAutoThrottle() {
bitField0_ = (bitField0_ & ~0x00000020);
indexMergeSchedulerAutoThrottle_ = null;
if (indexMergeSchedulerAutoThrottleBuilder_ != null) {
indexMergeSchedulerAutoThrottleBuilder_.dispose();
indexMergeSchedulerAutoThrottleBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Turn on/off the merge scheduler's auto throttling, default: off
*
*
* .google.protobuf.BoolValue indexMergeSchedulerAutoThrottle = 6;
*/
public com.google.protobuf.BoolValue.Builder getIndexMergeSchedulerAutoThrottleBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getIndexMergeSchedulerAutoThrottleFieldBuilder().getBuilder();
}
/**
*
* Turn on/off the merge scheduler's auto throttling, default: off
*
*
* .google.protobuf.BoolValue indexMergeSchedulerAutoThrottle = 6;
*/
public com.google.protobuf.BoolValueOrBuilder getIndexMergeSchedulerAutoThrottleOrBuilder() {
if (indexMergeSchedulerAutoThrottleBuilder_ != null) {
return indexMergeSchedulerAutoThrottleBuilder_.getMessageOrBuilder();
} else {
return indexMergeSchedulerAutoThrottle_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : indexMergeSchedulerAutoThrottle_;
}
}
/**
*
* Turn on/off the merge scheduler's auto throttling, default: off
*
*
* .google.protobuf.BoolValue indexMergeSchedulerAutoThrottle = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getIndexMergeSchedulerAutoThrottleFieldBuilder() {
if (indexMergeSchedulerAutoThrottleBuilder_ == null) {
indexMergeSchedulerAutoThrottleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getIndexMergeSchedulerAutoThrottle(),
getParentForChildren(),
isClean());
indexMergeSchedulerAutoThrottle_ = null;
}
return indexMergeSchedulerAutoThrottleBuilder_;
}
private com.google.protobuf.StringValue directory_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> directoryBuilder_;
/**
*
* 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
*
*
* .google.protobuf.StringValue directory = 7;
* @return Whether the directory field is set.
*/
public boolean hasDirectory() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* 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
*
*
* .google.protobuf.StringValue directory = 7;
* @return The directory.
*/
public com.google.protobuf.StringValue getDirectory() {
if (directoryBuilder_ == null) {
return directory_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : directory_;
} else {
return directoryBuilder_.getMessage();
}
}
/**
*
* 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
*
*
* .google.protobuf.StringValue directory = 7;
*/
public Builder setDirectory(com.google.protobuf.StringValue value) {
if (directoryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
directory_ = value;
} else {
directoryBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
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
*
*
* .google.protobuf.StringValue directory = 7;
*/
public Builder setDirectory(
com.google.protobuf.StringValue.Builder builderForValue) {
if (directoryBuilder_ == null) {
directory_ = builderForValue.build();
} else {
directoryBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
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
*
*
* .google.protobuf.StringValue directory = 7;
*/
public Builder mergeDirectory(com.google.protobuf.StringValue value) {
if (directoryBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
directory_ != null &&
directory_ != com.google.protobuf.StringValue.getDefaultInstance()) {
getDirectoryBuilder().mergeFrom(value);
} else {
directory_ = value;
}
} else {
directoryBuilder_.mergeFrom(value);
}
if (directory_ != null) {
bitField0_ |= 0x00000040;
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
*
*
* .google.protobuf.StringValue directory = 7;
*/
public Builder clearDirectory() {
bitField0_ = (bitField0_ & ~0x00000040);
directory_ = null;
if (directoryBuilder_ != null) {
directoryBuilder_.dispose();
directoryBuilder_ = null;
}
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
*
*
* .google.protobuf.StringValue directory = 7;
*/
public com.google.protobuf.StringValue.Builder getDirectoryBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getDirectoryFieldBuilder().getBuilder();
}
/**
*
* 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
*
*
* .google.protobuf.StringValue directory = 7;
*/
public com.google.protobuf.StringValueOrBuilder getDirectoryOrBuilder() {
if (directoryBuilder_ != null) {
return directoryBuilder_.getMessageOrBuilder();
} else {
return directory_ == null ?
com.google.protobuf.StringValue.getDefaultInstance() : 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
*
*
* .google.protobuf.StringValue directory = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>
getDirectoryFieldBuilder() {
if (directoryBuilder_ == null) {
directoryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(
getDirectory(),
getParentForChildren(),
isClean());
directory_ = null;
}
return directoryBuilder_;
}
@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.IndexSettings)
}
// @@protoc_insertion_point(class_scope:luceneserver.IndexSettings)
private static final com.yelp.nrtsearch.server.grpc.IndexSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.IndexSettings();
}
public static com.yelp.nrtsearch.server.grpc.IndexSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IndexSettings 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.IndexSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}