com.yelp.nrtsearch.server.grpc.CustomAnalyzer 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/analysis.proto
// Protobuf Java Version: 3.25.3
package com.yelp.nrtsearch.server.grpc;
/**
* Protobuf type {@code luceneserver.CustomAnalyzer}
*/
public final class CustomAnalyzer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:luceneserver.CustomAnalyzer)
CustomAnalyzerOrBuilder {
private static final long serialVersionUID = 0L;
// Use CustomAnalyzer.newBuilder() to construct.
private CustomAnalyzer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CustomAnalyzer() {
charFilters_ = java.util.Collections.emptyList();
tokenFilters_ = java.util.Collections.emptyList();
conditionalTokenFilters_ = java.util.Collections.emptyList();
defaultMatchVersion_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CustomAnalyzer();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.AnalysisProto.internal_static_luceneserver_CustomAnalyzer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.AnalysisProto.internal_static_luceneserver_CustomAnalyzer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.CustomAnalyzer.class, com.yelp.nrtsearch.server.grpc.CustomAnalyzer.Builder.class);
}
private int bitField0_;
public static final int CHARFILTERS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List charFilters_;
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
@java.lang.Override
public java.util.List getCharFiltersList() {
return charFilters_;
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
@java.lang.Override
public java.util.List extends com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder>
getCharFiltersOrBuilderList() {
return charFilters_;
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
@java.lang.Override
public int getCharFiltersCount() {
return charFilters_.size();
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.NameAndParams getCharFilters(int index) {
return charFilters_.get(index);
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder getCharFiltersOrBuilder(
int index) {
return charFilters_.get(index);
}
public static final int TOKENIZER_FIELD_NUMBER = 2;
private com.yelp.nrtsearch.server.grpc.NameAndParams tokenizer_;
/**
*
* Specify a Lucene tokenizer (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/Tokenizer.html). Possible options as of Lucene 8.2.0: keyword, letter, whitespace, edgeNGram, nGram, pathHierarchy, pattern, simplePatternSplit, simplePattern, classic, standard, uax29UrlEmail, thai, wikipedia.
*
*
* .luceneserver.NameAndParams tokenizer = 2;
* @return Whether the tokenizer field is set.
*/
@java.lang.Override
public boolean hasTokenizer() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Specify a Lucene tokenizer (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/Tokenizer.html). Possible options as of Lucene 8.2.0: keyword, letter, whitespace, edgeNGram, nGram, pathHierarchy, pattern, simplePatternSplit, simplePattern, classic, standard, uax29UrlEmail, thai, wikipedia.
*
*
* .luceneserver.NameAndParams tokenizer = 2;
* @return The tokenizer.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.NameAndParams getTokenizer() {
return tokenizer_ == null ? com.yelp.nrtsearch.server.grpc.NameAndParams.getDefaultInstance() : tokenizer_;
}
/**
*
* Specify a Lucene tokenizer (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/Tokenizer.html). Possible options as of Lucene 8.2.0: keyword, letter, whitespace, edgeNGram, nGram, pathHierarchy, pattern, simplePatternSplit, simplePattern, classic, standard, uax29UrlEmail, thai, wikipedia.
*
*
* .luceneserver.NameAndParams tokenizer = 2;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder getTokenizerOrBuilder() {
return tokenizer_ == null ? com.yelp.nrtsearch.server.grpc.NameAndParams.getDefaultInstance() : tokenizer_;
}
public static final int TOKENFILTERS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List tokenFilters_;
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
@java.lang.Override
public java.util.List getTokenFiltersList() {
return tokenFilters_;
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
@java.lang.Override
public java.util.List extends com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder>
getTokenFiltersOrBuilderList() {
return tokenFilters_;
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
@java.lang.Override
public int getTokenFiltersCount() {
return tokenFilters_.size();
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.NameAndParams getTokenFilters(int index) {
return tokenFilters_.get(index);
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder getTokenFiltersOrBuilder(
int index) {
return tokenFilters_.get(index);
}
public static final int CONDITIONALTOKENFILTERS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private java.util.List conditionalTokenFilters_;
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
@java.lang.Override
public java.util.List getConditionalTokenFiltersList() {
return conditionalTokenFilters_;
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
@java.lang.Override
public java.util.List extends com.yelp.nrtsearch.server.grpc.ConditionalTokenFilterOrBuilder>
getConditionalTokenFiltersOrBuilderList() {
return conditionalTokenFilters_;
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
@java.lang.Override
public int getConditionalTokenFiltersCount() {
return conditionalTokenFilters_.size();
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter getConditionalTokenFilters(int index) {
return conditionalTokenFilters_.get(index);
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.ConditionalTokenFilterOrBuilder getConditionalTokenFiltersOrBuilder(
int index) {
return conditionalTokenFilters_.get(index);
}
public static final int DEFAULTMATCHVERSION_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object defaultMatchVersion_ = "";
/**
*
* Lucene version as LUCENE_X_Y_Z or X.Y.Z, LATEST by default
*
*
* string defaultMatchVersion = 5;
* @return The defaultMatchVersion.
*/
@java.lang.Override
public java.lang.String getDefaultMatchVersion() {
java.lang.Object ref = defaultMatchVersion_;
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();
defaultMatchVersion_ = s;
return s;
}
}
/**
*
* Lucene version as LUCENE_X_Y_Z or X.Y.Z, LATEST by default
*
*
* string defaultMatchVersion = 5;
* @return The bytes for defaultMatchVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefaultMatchVersionBytes() {
java.lang.Object ref = defaultMatchVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultMatchVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int POSITIONINCREMENTGAP_FIELD_NUMBER = 6;
private com.yelp.nrtsearch.server.grpc.IntObject positionIncrementGap_;
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject positionIncrementGap = 6;
* @return Whether the positionIncrementGap field is set.
*/
@java.lang.Override
public boolean hasPositionIncrementGap() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject positionIncrementGap = 6;
* @return The positionIncrementGap.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.IntObject getPositionIncrementGap() {
return positionIncrementGap_ == null ? com.yelp.nrtsearch.server.grpc.IntObject.getDefaultInstance() : positionIncrementGap_;
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject positionIncrementGap = 6;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.IntObjectOrBuilder getPositionIncrementGapOrBuilder() {
return positionIncrementGap_ == null ? com.yelp.nrtsearch.server.grpc.IntObject.getDefaultInstance() : positionIncrementGap_;
}
public static final int OFFSETGAP_FIELD_NUMBER = 7;
private com.yelp.nrtsearch.server.grpc.IntObject offsetGap_;
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject offsetGap = 7;
* @return Whether the offsetGap field is set.
*/
@java.lang.Override
public boolean hasOffsetGap() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject offsetGap = 7;
* @return The offsetGap.
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.IntObject getOffsetGap() {
return offsetGap_ == null ? com.yelp.nrtsearch.server.grpc.IntObject.getDefaultInstance() : offsetGap_;
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject offsetGap = 7;
*/
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.IntObjectOrBuilder getOffsetGapOrBuilder() {
return offsetGap_ == null ? com.yelp.nrtsearch.server.grpc.IntObject.getDefaultInstance() : offsetGap_;
}
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 {
for (int i = 0; i < charFilters_.size(); i++) {
output.writeMessage(1, charFilters_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getTokenizer());
}
for (int i = 0; i < tokenFilters_.size(); i++) {
output.writeMessage(3, tokenFilters_.get(i));
}
for (int i = 0; i < conditionalTokenFilters_.size(); i++) {
output.writeMessage(4, conditionalTokenFilters_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultMatchVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, defaultMatchVersion_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getPositionIncrementGap());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(7, getOffsetGap());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < charFilters_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, charFilters_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTokenizer());
}
for (int i = 0; i < tokenFilters_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, tokenFilters_.get(i));
}
for (int i = 0; i < conditionalTokenFilters_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, conditionalTokenFilters_.get(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultMatchVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, defaultMatchVersion_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getPositionIncrementGap());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getOffsetGap());
}
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.CustomAnalyzer)) {
return super.equals(obj);
}
com.yelp.nrtsearch.server.grpc.CustomAnalyzer other = (com.yelp.nrtsearch.server.grpc.CustomAnalyzer) obj;
if (!getCharFiltersList()
.equals(other.getCharFiltersList())) return false;
if (hasTokenizer() != other.hasTokenizer()) return false;
if (hasTokenizer()) {
if (!getTokenizer()
.equals(other.getTokenizer())) return false;
}
if (!getTokenFiltersList()
.equals(other.getTokenFiltersList())) return false;
if (!getConditionalTokenFiltersList()
.equals(other.getConditionalTokenFiltersList())) return false;
if (!getDefaultMatchVersion()
.equals(other.getDefaultMatchVersion())) return false;
if (hasPositionIncrementGap() != other.hasPositionIncrementGap()) return false;
if (hasPositionIncrementGap()) {
if (!getPositionIncrementGap()
.equals(other.getPositionIncrementGap())) return false;
}
if (hasOffsetGap() != other.hasOffsetGap()) return false;
if (hasOffsetGap()) {
if (!getOffsetGap()
.equals(other.getOffsetGap())) 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 (getCharFiltersCount() > 0) {
hash = (37 * hash) + CHARFILTERS_FIELD_NUMBER;
hash = (53 * hash) + getCharFiltersList().hashCode();
}
if (hasTokenizer()) {
hash = (37 * hash) + TOKENIZER_FIELD_NUMBER;
hash = (53 * hash) + getTokenizer().hashCode();
}
if (getTokenFiltersCount() > 0) {
hash = (37 * hash) + TOKENFILTERS_FIELD_NUMBER;
hash = (53 * hash) + getTokenFiltersList().hashCode();
}
if (getConditionalTokenFiltersCount() > 0) {
hash = (37 * hash) + CONDITIONALTOKENFILTERS_FIELD_NUMBER;
hash = (53 * hash) + getConditionalTokenFiltersList().hashCode();
}
hash = (37 * hash) + DEFAULTMATCHVERSION_FIELD_NUMBER;
hash = (53 * hash) + getDefaultMatchVersion().hashCode();
if (hasPositionIncrementGap()) {
hash = (37 * hash) + POSITIONINCREMENTGAP_FIELD_NUMBER;
hash = (53 * hash) + getPositionIncrementGap().hashCode();
}
if (hasOffsetGap()) {
hash = (37 * hash) + OFFSETGAP_FIELD_NUMBER;
hash = (53 * hash) + getOffsetGap().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.yelp.nrtsearch.server.grpc.CustomAnalyzer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.CustomAnalyzer 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.CustomAnalyzer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.CustomAnalyzer 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.CustomAnalyzer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.yelp.nrtsearch.server.grpc.CustomAnalyzer 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.CustomAnalyzer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.CustomAnalyzer 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.CustomAnalyzer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.yelp.nrtsearch.server.grpc.CustomAnalyzer 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.CustomAnalyzer 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.CustomAnalyzer 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.CustomAnalyzer 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.CustomAnalyzer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:luceneserver.CustomAnalyzer)
com.yelp.nrtsearch.server.grpc.CustomAnalyzerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.yelp.nrtsearch.server.grpc.AnalysisProto.internal_static_luceneserver_CustomAnalyzer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.yelp.nrtsearch.server.grpc.AnalysisProto.internal_static_luceneserver_CustomAnalyzer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.yelp.nrtsearch.server.grpc.CustomAnalyzer.class, com.yelp.nrtsearch.server.grpc.CustomAnalyzer.Builder.class);
}
// Construct using com.yelp.nrtsearch.server.grpc.CustomAnalyzer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCharFiltersFieldBuilder();
getTokenizerFieldBuilder();
getTokenFiltersFieldBuilder();
getConditionalTokenFiltersFieldBuilder();
getPositionIncrementGapFieldBuilder();
getOffsetGapFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (charFiltersBuilder_ == null) {
charFilters_ = java.util.Collections.emptyList();
} else {
charFilters_ = null;
charFiltersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
tokenizer_ = null;
if (tokenizerBuilder_ != null) {
tokenizerBuilder_.dispose();
tokenizerBuilder_ = null;
}
if (tokenFiltersBuilder_ == null) {
tokenFilters_ = java.util.Collections.emptyList();
} else {
tokenFilters_ = null;
tokenFiltersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (conditionalTokenFiltersBuilder_ == null) {
conditionalTokenFilters_ = java.util.Collections.emptyList();
} else {
conditionalTokenFilters_ = null;
conditionalTokenFiltersBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
defaultMatchVersion_ = "";
positionIncrementGap_ = null;
if (positionIncrementGapBuilder_ != null) {
positionIncrementGapBuilder_.dispose();
positionIncrementGapBuilder_ = null;
}
offsetGap_ = null;
if (offsetGapBuilder_ != null) {
offsetGapBuilder_.dispose();
offsetGapBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.yelp.nrtsearch.server.grpc.AnalysisProto.internal_static_luceneserver_CustomAnalyzer_descriptor;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CustomAnalyzer getDefaultInstanceForType() {
return com.yelp.nrtsearch.server.grpc.CustomAnalyzer.getDefaultInstance();
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CustomAnalyzer build() {
com.yelp.nrtsearch.server.grpc.CustomAnalyzer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.yelp.nrtsearch.server.grpc.CustomAnalyzer buildPartial() {
com.yelp.nrtsearch.server.grpc.CustomAnalyzer result = new com.yelp.nrtsearch.server.grpc.CustomAnalyzer(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.yelp.nrtsearch.server.grpc.CustomAnalyzer result) {
if (charFiltersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
charFilters_ = java.util.Collections.unmodifiableList(charFilters_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.charFilters_ = charFilters_;
} else {
result.charFilters_ = charFiltersBuilder_.build();
}
if (tokenFiltersBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
tokenFilters_ = java.util.Collections.unmodifiableList(tokenFilters_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.tokenFilters_ = tokenFilters_;
} else {
result.tokenFilters_ = tokenFiltersBuilder_.build();
}
if (conditionalTokenFiltersBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
conditionalTokenFilters_ = java.util.Collections.unmodifiableList(conditionalTokenFilters_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.conditionalTokenFilters_ = conditionalTokenFilters_;
} else {
result.conditionalTokenFilters_ = conditionalTokenFiltersBuilder_.build();
}
}
private void buildPartial0(com.yelp.nrtsearch.server.grpc.CustomAnalyzer result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.tokenizer_ = tokenizerBuilder_ == null
? tokenizer_
: tokenizerBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.defaultMatchVersion_ = defaultMatchVersion_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.positionIncrementGap_ = positionIncrementGapBuilder_ == null
? positionIncrementGap_
: positionIncrementGapBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.offsetGap_ = offsetGapBuilder_ == null
? offsetGap_
: offsetGapBuilder_.build();
to_bitField0_ |= 0x00000004;
}
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.CustomAnalyzer) {
return mergeFrom((com.yelp.nrtsearch.server.grpc.CustomAnalyzer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.CustomAnalyzer other) {
if (other == com.yelp.nrtsearch.server.grpc.CustomAnalyzer.getDefaultInstance()) return this;
if (charFiltersBuilder_ == null) {
if (!other.charFilters_.isEmpty()) {
if (charFilters_.isEmpty()) {
charFilters_ = other.charFilters_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCharFiltersIsMutable();
charFilters_.addAll(other.charFilters_);
}
onChanged();
}
} else {
if (!other.charFilters_.isEmpty()) {
if (charFiltersBuilder_.isEmpty()) {
charFiltersBuilder_.dispose();
charFiltersBuilder_ = null;
charFilters_ = other.charFilters_;
bitField0_ = (bitField0_ & ~0x00000001);
charFiltersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCharFiltersFieldBuilder() : null;
} else {
charFiltersBuilder_.addAllMessages(other.charFilters_);
}
}
}
if (other.hasTokenizer()) {
mergeTokenizer(other.getTokenizer());
}
if (tokenFiltersBuilder_ == null) {
if (!other.tokenFilters_.isEmpty()) {
if (tokenFilters_.isEmpty()) {
tokenFilters_ = other.tokenFilters_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureTokenFiltersIsMutable();
tokenFilters_.addAll(other.tokenFilters_);
}
onChanged();
}
} else {
if (!other.tokenFilters_.isEmpty()) {
if (tokenFiltersBuilder_.isEmpty()) {
tokenFiltersBuilder_.dispose();
tokenFiltersBuilder_ = null;
tokenFilters_ = other.tokenFilters_;
bitField0_ = (bitField0_ & ~0x00000004);
tokenFiltersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTokenFiltersFieldBuilder() : null;
} else {
tokenFiltersBuilder_.addAllMessages(other.tokenFilters_);
}
}
}
if (conditionalTokenFiltersBuilder_ == null) {
if (!other.conditionalTokenFilters_.isEmpty()) {
if (conditionalTokenFilters_.isEmpty()) {
conditionalTokenFilters_ = other.conditionalTokenFilters_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureConditionalTokenFiltersIsMutable();
conditionalTokenFilters_.addAll(other.conditionalTokenFilters_);
}
onChanged();
}
} else {
if (!other.conditionalTokenFilters_.isEmpty()) {
if (conditionalTokenFiltersBuilder_.isEmpty()) {
conditionalTokenFiltersBuilder_.dispose();
conditionalTokenFiltersBuilder_ = null;
conditionalTokenFilters_ = other.conditionalTokenFilters_;
bitField0_ = (bitField0_ & ~0x00000008);
conditionalTokenFiltersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getConditionalTokenFiltersFieldBuilder() : null;
} else {
conditionalTokenFiltersBuilder_.addAllMessages(other.conditionalTokenFilters_);
}
}
}
if (!other.getDefaultMatchVersion().isEmpty()) {
defaultMatchVersion_ = other.defaultMatchVersion_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasPositionIncrementGap()) {
mergePositionIncrementGap(other.getPositionIncrementGap());
}
if (other.hasOffsetGap()) {
mergeOffsetGap(other.getOffsetGap());
}
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: {
com.yelp.nrtsearch.server.grpc.NameAndParams m =
input.readMessage(
com.yelp.nrtsearch.server.grpc.NameAndParams.parser(),
extensionRegistry);
if (charFiltersBuilder_ == null) {
ensureCharFiltersIsMutable();
charFilters_.add(m);
} else {
charFiltersBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
input.readMessage(
getTokenizerFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
com.yelp.nrtsearch.server.grpc.NameAndParams m =
input.readMessage(
com.yelp.nrtsearch.server.grpc.NameAndParams.parser(),
extensionRegistry);
if (tokenFiltersBuilder_ == null) {
ensureTokenFiltersIsMutable();
tokenFilters_.add(m);
} else {
tokenFiltersBuilder_.addMessage(m);
}
break;
} // case 26
case 34: {
com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter m =
input.readMessage(
com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter.parser(),
extensionRegistry);
if (conditionalTokenFiltersBuilder_ == null) {
ensureConditionalTokenFiltersIsMutable();
conditionalTokenFilters_.add(m);
} else {
conditionalTokenFiltersBuilder_.addMessage(m);
}
break;
} // case 34
case 42: {
defaultMatchVersion_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
input.readMessage(
getPositionIncrementGapFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 50
case 58: {
input.readMessage(
getOffsetGapFieldBuilder().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 java.util.List charFilters_ =
java.util.Collections.emptyList();
private void ensureCharFiltersIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
charFilters_ = new java.util.ArrayList(charFilters_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.NameAndParams, com.yelp.nrtsearch.server.grpc.NameAndParams.Builder, com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder> charFiltersBuilder_;
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public java.util.List getCharFiltersList() {
if (charFiltersBuilder_ == null) {
return java.util.Collections.unmodifiableList(charFilters_);
} else {
return charFiltersBuilder_.getMessageList();
}
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public int getCharFiltersCount() {
if (charFiltersBuilder_ == null) {
return charFilters_.size();
} else {
return charFiltersBuilder_.getCount();
}
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public com.yelp.nrtsearch.server.grpc.NameAndParams getCharFilters(int index) {
if (charFiltersBuilder_ == null) {
return charFilters_.get(index);
} else {
return charFiltersBuilder_.getMessage(index);
}
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public Builder setCharFilters(
int index, com.yelp.nrtsearch.server.grpc.NameAndParams value) {
if (charFiltersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCharFiltersIsMutable();
charFilters_.set(index, value);
onChanged();
} else {
charFiltersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public Builder setCharFilters(
int index, com.yelp.nrtsearch.server.grpc.NameAndParams.Builder builderForValue) {
if (charFiltersBuilder_ == null) {
ensureCharFiltersIsMutable();
charFilters_.set(index, builderForValue.build());
onChanged();
} else {
charFiltersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public Builder addCharFilters(com.yelp.nrtsearch.server.grpc.NameAndParams value) {
if (charFiltersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCharFiltersIsMutable();
charFilters_.add(value);
onChanged();
} else {
charFiltersBuilder_.addMessage(value);
}
return this;
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public Builder addCharFilters(
int index, com.yelp.nrtsearch.server.grpc.NameAndParams value) {
if (charFiltersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCharFiltersIsMutable();
charFilters_.add(index, value);
onChanged();
} else {
charFiltersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public Builder addCharFilters(
com.yelp.nrtsearch.server.grpc.NameAndParams.Builder builderForValue) {
if (charFiltersBuilder_ == null) {
ensureCharFiltersIsMutable();
charFilters_.add(builderForValue.build());
onChanged();
} else {
charFiltersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public Builder addCharFilters(
int index, com.yelp.nrtsearch.server.grpc.NameAndParams.Builder builderForValue) {
if (charFiltersBuilder_ == null) {
ensureCharFiltersIsMutable();
charFilters_.add(index, builderForValue.build());
onChanged();
} else {
charFiltersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public Builder addAllCharFilters(
java.lang.Iterable extends com.yelp.nrtsearch.server.grpc.NameAndParams> values) {
if (charFiltersBuilder_ == null) {
ensureCharFiltersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, charFilters_);
onChanged();
} else {
charFiltersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public Builder clearCharFilters() {
if (charFiltersBuilder_ == null) {
charFilters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
charFiltersBuilder_.clear();
}
return this;
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public Builder removeCharFilters(int index) {
if (charFiltersBuilder_ == null) {
ensureCharFiltersIsMutable();
charFilters_.remove(index);
onChanged();
} else {
charFiltersBuilder_.remove(index);
}
return this;
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public com.yelp.nrtsearch.server.grpc.NameAndParams.Builder getCharFiltersBuilder(
int index) {
return getCharFiltersFieldBuilder().getBuilder(index);
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder getCharFiltersOrBuilder(
int index) {
if (charFiltersBuilder_ == null) {
return charFilters_.get(index); } else {
return charFiltersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public java.util.List extends com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder>
getCharFiltersOrBuilderList() {
if (charFiltersBuilder_ != null) {
return charFiltersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(charFilters_);
}
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public com.yelp.nrtsearch.server.grpc.NameAndParams.Builder addCharFiltersBuilder() {
return getCharFiltersFieldBuilder().addBuilder(
com.yelp.nrtsearch.server.grpc.NameAndParams.getDefaultInstance());
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public com.yelp.nrtsearch.server.grpc.NameAndParams.Builder addCharFiltersBuilder(
int index) {
return getCharFiltersFieldBuilder().addBuilder(
index, com.yelp.nrtsearch.server.grpc.NameAndParams.getDefaultInstance());
}
/**
*
* Available char filters as of Lucene 8.2.0: htmlstrip, mapping, persian, patternreplace
*
*
* repeated .luceneserver.NameAndParams charFilters = 1;
*/
public java.util.List
getCharFiltersBuilderList() {
return getCharFiltersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.NameAndParams, com.yelp.nrtsearch.server.grpc.NameAndParams.Builder, com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder>
getCharFiltersFieldBuilder() {
if (charFiltersBuilder_ == null) {
charFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.NameAndParams, com.yelp.nrtsearch.server.grpc.NameAndParams.Builder, com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder>(
charFilters_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
charFilters_ = null;
}
return charFiltersBuilder_;
}
private com.yelp.nrtsearch.server.grpc.NameAndParams tokenizer_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.NameAndParams, com.yelp.nrtsearch.server.grpc.NameAndParams.Builder, com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder> tokenizerBuilder_;
/**
*
* Specify a Lucene tokenizer (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/Tokenizer.html). Possible options as of Lucene 8.2.0: keyword, letter, whitespace, edgeNGram, nGram, pathHierarchy, pattern, simplePatternSplit, simplePattern, classic, standard, uax29UrlEmail, thai, wikipedia.
*
*
* .luceneserver.NameAndParams tokenizer = 2;
* @return Whether the tokenizer field is set.
*/
public boolean hasTokenizer() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Specify a Lucene tokenizer (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/Tokenizer.html). Possible options as of Lucene 8.2.0: keyword, letter, whitespace, edgeNGram, nGram, pathHierarchy, pattern, simplePatternSplit, simplePattern, classic, standard, uax29UrlEmail, thai, wikipedia.
*
*
* .luceneserver.NameAndParams tokenizer = 2;
* @return The tokenizer.
*/
public com.yelp.nrtsearch.server.grpc.NameAndParams getTokenizer() {
if (tokenizerBuilder_ == null) {
return tokenizer_ == null ? com.yelp.nrtsearch.server.grpc.NameAndParams.getDefaultInstance() : tokenizer_;
} else {
return tokenizerBuilder_.getMessage();
}
}
/**
*
* Specify a Lucene tokenizer (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/Tokenizer.html). Possible options as of Lucene 8.2.0: keyword, letter, whitespace, edgeNGram, nGram, pathHierarchy, pattern, simplePatternSplit, simplePattern, classic, standard, uax29UrlEmail, thai, wikipedia.
*
*
* .luceneserver.NameAndParams tokenizer = 2;
*/
public Builder setTokenizer(com.yelp.nrtsearch.server.grpc.NameAndParams value) {
if (tokenizerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tokenizer_ = value;
} else {
tokenizerBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Specify a Lucene tokenizer (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/Tokenizer.html). Possible options as of Lucene 8.2.0: keyword, letter, whitespace, edgeNGram, nGram, pathHierarchy, pattern, simplePatternSplit, simplePattern, classic, standard, uax29UrlEmail, thai, wikipedia.
*
*
* .luceneserver.NameAndParams tokenizer = 2;
*/
public Builder setTokenizer(
com.yelp.nrtsearch.server.grpc.NameAndParams.Builder builderForValue) {
if (tokenizerBuilder_ == null) {
tokenizer_ = builderForValue.build();
} else {
tokenizerBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Specify a Lucene tokenizer (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/Tokenizer.html). Possible options as of Lucene 8.2.0: keyword, letter, whitespace, edgeNGram, nGram, pathHierarchy, pattern, simplePatternSplit, simplePattern, classic, standard, uax29UrlEmail, thai, wikipedia.
*
*
* .luceneserver.NameAndParams tokenizer = 2;
*/
public Builder mergeTokenizer(com.yelp.nrtsearch.server.grpc.NameAndParams value) {
if (tokenizerBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
tokenizer_ != null &&
tokenizer_ != com.yelp.nrtsearch.server.grpc.NameAndParams.getDefaultInstance()) {
getTokenizerBuilder().mergeFrom(value);
} else {
tokenizer_ = value;
}
} else {
tokenizerBuilder_.mergeFrom(value);
}
if (tokenizer_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Specify a Lucene tokenizer (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/Tokenizer.html). Possible options as of Lucene 8.2.0: keyword, letter, whitespace, edgeNGram, nGram, pathHierarchy, pattern, simplePatternSplit, simplePattern, classic, standard, uax29UrlEmail, thai, wikipedia.
*
*
* .luceneserver.NameAndParams tokenizer = 2;
*/
public Builder clearTokenizer() {
bitField0_ = (bitField0_ & ~0x00000002);
tokenizer_ = null;
if (tokenizerBuilder_ != null) {
tokenizerBuilder_.dispose();
tokenizerBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Specify a Lucene tokenizer (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/Tokenizer.html). Possible options as of Lucene 8.2.0: keyword, letter, whitespace, edgeNGram, nGram, pathHierarchy, pattern, simplePatternSplit, simplePattern, classic, standard, uax29UrlEmail, thai, wikipedia.
*
*
* .luceneserver.NameAndParams tokenizer = 2;
*/
public com.yelp.nrtsearch.server.grpc.NameAndParams.Builder getTokenizerBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getTokenizerFieldBuilder().getBuilder();
}
/**
*
* Specify a Lucene tokenizer (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/Tokenizer.html). Possible options as of Lucene 8.2.0: keyword, letter, whitespace, edgeNGram, nGram, pathHierarchy, pattern, simplePatternSplit, simplePattern, classic, standard, uax29UrlEmail, thai, wikipedia.
*
*
* .luceneserver.NameAndParams tokenizer = 2;
*/
public com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder getTokenizerOrBuilder() {
if (tokenizerBuilder_ != null) {
return tokenizerBuilder_.getMessageOrBuilder();
} else {
return tokenizer_ == null ?
com.yelp.nrtsearch.server.grpc.NameAndParams.getDefaultInstance() : tokenizer_;
}
}
/**
*
* Specify a Lucene tokenizer (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/Tokenizer.html). Possible options as of Lucene 8.2.0: keyword, letter, whitespace, edgeNGram, nGram, pathHierarchy, pattern, simplePatternSplit, simplePattern, classic, standard, uax29UrlEmail, thai, wikipedia.
*
*
* .luceneserver.NameAndParams tokenizer = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.NameAndParams, com.yelp.nrtsearch.server.grpc.NameAndParams.Builder, com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder>
getTokenizerFieldBuilder() {
if (tokenizerBuilder_ == null) {
tokenizerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.NameAndParams, com.yelp.nrtsearch.server.grpc.NameAndParams.Builder, com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder>(
getTokenizer(),
getParentForChildren(),
isClean());
tokenizer_ = null;
}
return tokenizerBuilder_;
}
private java.util.List tokenFilters_ =
java.util.Collections.emptyList();
private void ensureTokenFiltersIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
tokenFilters_ = new java.util.ArrayList(tokenFilters_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.NameAndParams, com.yelp.nrtsearch.server.grpc.NameAndParams.Builder, com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder> tokenFiltersBuilder_;
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public java.util.List getTokenFiltersList() {
if (tokenFiltersBuilder_ == null) {
return java.util.Collections.unmodifiableList(tokenFilters_);
} else {
return tokenFiltersBuilder_.getMessageList();
}
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public int getTokenFiltersCount() {
if (tokenFiltersBuilder_ == null) {
return tokenFilters_.size();
} else {
return tokenFiltersBuilder_.getCount();
}
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public com.yelp.nrtsearch.server.grpc.NameAndParams getTokenFilters(int index) {
if (tokenFiltersBuilder_ == null) {
return tokenFilters_.get(index);
} else {
return tokenFiltersBuilder_.getMessage(index);
}
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public Builder setTokenFilters(
int index, com.yelp.nrtsearch.server.grpc.NameAndParams value) {
if (tokenFiltersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenFiltersIsMutable();
tokenFilters_.set(index, value);
onChanged();
} else {
tokenFiltersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public Builder setTokenFilters(
int index, com.yelp.nrtsearch.server.grpc.NameAndParams.Builder builderForValue) {
if (tokenFiltersBuilder_ == null) {
ensureTokenFiltersIsMutable();
tokenFilters_.set(index, builderForValue.build());
onChanged();
} else {
tokenFiltersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public Builder addTokenFilters(com.yelp.nrtsearch.server.grpc.NameAndParams value) {
if (tokenFiltersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenFiltersIsMutable();
tokenFilters_.add(value);
onChanged();
} else {
tokenFiltersBuilder_.addMessage(value);
}
return this;
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public Builder addTokenFilters(
int index, com.yelp.nrtsearch.server.grpc.NameAndParams value) {
if (tokenFiltersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTokenFiltersIsMutable();
tokenFilters_.add(index, value);
onChanged();
} else {
tokenFiltersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public Builder addTokenFilters(
com.yelp.nrtsearch.server.grpc.NameAndParams.Builder builderForValue) {
if (tokenFiltersBuilder_ == null) {
ensureTokenFiltersIsMutable();
tokenFilters_.add(builderForValue.build());
onChanged();
} else {
tokenFiltersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public Builder addTokenFilters(
int index, com.yelp.nrtsearch.server.grpc.NameAndParams.Builder builderForValue) {
if (tokenFiltersBuilder_ == null) {
ensureTokenFiltersIsMutable();
tokenFilters_.add(index, builderForValue.build());
onChanged();
} else {
tokenFiltersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public Builder addAllTokenFilters(
java.lang.Iterable extends com.yelp.nrtsearch.server.grpc.NameAndParams> values) {
if (tokenFiltersBuilder_ == null) {
ensureTokenFiltersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tokenFilters_);
onChanged();
} else {
tokenFiltersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public Builder clearTokenFilters() {
if (tokenFiltersBuilder_ == null) {
tokenFilters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
tokenFiltersBuilder_.clear();
}
return this;
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public Builder removeTokenFilters(int index) {
if (tokenFiltersBuilder_ == null) {
ensureTokenFiltersIsMutable();
tokenFilters_.remove(index);
onChanged();
} else {
tokenFiltersBuilder_.remove(index);
}
return this;
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public com.yelp.nrtsearch.server.grpc.NameAndParams.Builder getTokenFiltersBuilder(
int index) {
return getTokenFiltersFieldBuilder().getBuilder(index);
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder getTokenFiltersOrBuilder(
int index) {
if (tokenFiltersBuilder_ == null) {
return tokenFilters_.get(index); } else {
return tokenFiltersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public java.util.List extends com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder>
getTokenFiltersOrBuilderList() {
if (tokenFiltersBuilder_ != null) {
return tokenFiltersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(tokenFilters_);
}
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public com.yelp.nrtsearch.server.grpc.NameAndParams.Builder addTokenFiltersBuilder() {
return getTokenFiltersFieldBuilder().addBuilder(
com.yelp.nrtsearch.server.grpc.NameAndParams.getDefaultInstance());
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public com.yelp.nrtsearch.server.grpc.NameAndParams.Builder addTokenFiltersBuilder(
int index) {
return getTokenFiltersFieldBuilder().addBuilder(
index, com.yelp.nrtsearch.server.grpc.NameAndParams.getDefaultInstance());
}
/**
*
* Specify a Lucene token filter (https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/TokenFilter.html). The possible options can be seen at https://lucene.apache.org/core/8_2_0/analyzers-common/org/apache/lucene/analysis/util/TokenFilterFactory.html and subclasses of TokenFilter at https://lucene.apache.org/core/8_2_0/core/org/apache/lucene/analysis/package-tree.html or by calling TokenFilterFactory.availableTokenFilters().
*
*
* repeated .luceneserver.NameAndParams tokenFilters = 3;
*/
public java.util.List
getTokenFiltersBuilderList() {
return getTokenFiltersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.NameAndParams, com.yelp.nrtsearch.server.grpc.NameAndParams.Builder, com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder>
getTokenFiltersFieldBuilder() {
if (tokenFiltersBuilder_ == null) {
tokenFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.NameAndParams, com.yelp.nrtsearch.server.grpc.NameAndParams.Builder, com.yelp.nrtsearch.server.grpc.NameAndParamsOrBuilder>(
tokenFilters_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
tokenFilters_ = null;
}
return tokenFiltersBuilder_;
}
private java.util.List conditionalTokenFilters_ =
java.util.Collections.emptyList();
private void ensureConditionalTokenFiltersIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
conditionalTokenFilters_ = new java.util.ArrayList(conditionalTokenFilters_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter, com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter.Builder, com.yelp.nrtsearch.server.grpc.ConditionalTokenFilterOrBuilder> conditionalTokenFiltersBuilder_;
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public java.util.List getConditionalTokenFiltersList() {
if (conditionalTokenFiltersBuilder_ == null) {
return java.util.Collections.unmodifiableList(conditionalTokenFilters_);
} else {
return conditionalTokenFiltersBuilder_.getMessageList();
}
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public int getConditionalTokenFiltersCount() {
if (conditionalTokenFiltersBuilder_ == null) {
return conditionalTokenFilters_.size();
} else {
return conditionalTokenFiltersBuilder_.getCount();
}
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter getConditionalTokenFilters(int index) {
if (conditionalTokenFiltersBuilder_ == null) {
return conditionalTokenFilters_.get(index);
} else {
return conditionalTokenFiltersBuilder_.getMessage(index);
}
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public Builder setConditionalTokenFilters(
int index, com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter value) {
if (conditionalTokenFiltersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionalTokenFiltersIsMutable();
conditionalTokenFilters_.set(index, value);
onChanged();
} else {
conditionalTokenFiltersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public Builder setConditionalTokenFilters(
int index, com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter.Builder builderForValue) {
if (conditionalTokenFiltersBuilder_ == null) {
ensureConditionalTokenFiltersIsMutable();
conditionalTokenFilters_.set(index, builderForValue.build());
onChanged();
} else {
conditionalTokenFiltersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public Builder addConditionalTokenFilters(com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter value) {
if (conditionalTokenFiltersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionalTokenFiltersIsMutable();
conditionalTokenFilters_.add(value);
onChanged();
} else {
conditionalTokenFiltersBuilder_.addMessage(value);
}
return this;
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public Builder addConditionalTokenFilters(
int index, com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter value) {
if (conditionalTokenFiltersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionalTokenFiltersIsMutable();
conditionalTokenFilters_.add(index, value);
onChanged();
} else {
conditionalTokenFiltersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public Builder addConditionalTokenFilters(
com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter.Builder builderForValue) {
if (conditionalTokenFiltersBuilder_ == null) {
ensureConditionalTokenFiltersIsMutable();
conditionalTokenFilters_.add(builderForValue.build());
onChanged();
} else {
conditionalTokenFiltersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public Builder addConditionalTokenFilters(
int index, com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter.Builder builderForValue) {
if (conditionalTokenFiltersBuilder_ == null) {
ensureConditionalTokenFiltersIsMutable();
conditionalTokenFilters_.add(index, builderForValue.build());
onChanged();
} else {
conditionalTokenFiltersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public Builder addAllConditionalTokenFilters(
java.lang.Iterable extends com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter> values) {
if (conditionalTokenFiltersBuilder_ == null) {
ensureConditionalTokenFiltersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, conditionalTokenFilters_);
onChanged();
} else {
conditionalTokenFiltersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public Builder clearConditionalTokenFilters() {
if (conditionalTokenFiltersBuilder_ == null) {
conditionalTokenFilters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
conditionalTokenFiltersBuilder_.clear();
}
return this;
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public Builder removeConditionalTokenFilters(int index) {
if (conditionalTokenFiltersBuilder_ == null) {
ensureConditionalTokenFiltersIsMutable();
conditionalTokenFilters_.remove(index);
onChanged();
} else {
conditionalTokenFiltersBuilder_.remove(index);
}
return this;
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter.Builder getConditionalTokenFiltersBuilder(
int index) {
return getConditionalTokenFiltersFieldBuilder().getBuilder(index);
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public com.yelp.nrtsearch.server.grpc.ConditionalTokenFilterOrBuilder getConditionalTokenFiltersOrBuilder(
int index) {
if (conditionalTokenFiltersBuilder_ == null) {
return conditionalTokenFilters_.get(index); } else {
return conditionalTokenFiltersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public java.util.List extends com.yelp.nrtsearch.server.grpc.ConditionalTokenFilterOrBuilder>
getConditionalTokenFiltersOrBuilderList() {
if (conditionalTokenFiltersBuilder_ != null) {
return conditionalTokenFiltersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(conditionalTokenFilters_);
}
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter.Builder addConditionalTokenFiltersBuilder() {
return getConditionalTokenFiltersFieldBuilder().addBuilder(
com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter.getDefaultInstance());
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter.Builder addConditionalTokenFiltersBuilder(
int index) {
return getConditionalTokenFiltersFieldBuilder().addBuilder(
index, com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter.getDefaultInstance());
}
/**
*
* TODO: this is not properly supported yet, the only impl requires a protected terms file. Can support this properly later if needed
*
*
* repeated .luceneserver.ConditionalTokenFilter conditionalTokenFilters = 4;
*/
public java.util.List
getConditionalTokenFiltersBuilderList() {
return getConditionalTokenFiltersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter, com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter.Builder, com.yelp.nrtsearch.server.grpc.ConditionalTokenFilterOrBuilder>
getConditionalTokenFiltersFieldBuilder() {
if (conditionalTokenFiltersBuilder_ == null) {
conditionalTokenFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter, com.yelp.nrtsearch.server.grpc.ConditionalTokenFilter.Builder, com.yelp.nrtsearch.server.grpc.ConditionalTokenFilterOrBuilder>(
conditionalTokenFilters_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
conditionalTokenFilters_ = null;
}
return conditionalTokenFiltersBuilder_;
}
private java.lang.Object defaultMatchVersion_ = "";
/**
*
* Lucene version as LUCENE_X_Y_Z or X.Y.Z, LATEST by default
*
*
* string defaultMatchVersion = 5;
* @return The defaultMatchVersion.
*/
public java.lang.String getDefaultMatchVersion() {
java.lang.Object ref = defaultMatchVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultMatchVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Lucene version as LUCENE_X_Y_Z or X.Y.Z, LATEST by default
*
*
* string defaultMatchVersion = 5;
* @return The bytes for defaultMatchVersion.
*/
public com.google.protobuf.ByteString
getDefaultMatchVersionBytes() {
java.lang.Object ref = defaultMatchVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultMatchVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Lucene version as LUCENE_X_Y_Z or X.Y.Z, LATEST by default
*
*
* string defaultMatchVersion = 5;
* @param value The defaultMatchVersion to set.
* @return This builder for chaining.
*/
public Builder setDefaultMatchVersion(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
defaultMatchVersion_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Lucene version as LUCENE_X_Y_Z or X.Y.Z, LATEST by default
*
*
* string defaultMatchVersion = 5;
* @return This builder for chaining.
*/
public Builder clearDefaultMatchVersion() {
defaultMatchVersion_ = getDefaultInstance().getDefaultMatchVersion();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Lucene version as LUCENE_X_Y_Z or X.Y.Z, LATEST by default
*
*
* string defaultMatchVersion = 5;
* @param value The bytes for defaultMatchVersion to set.
* @return This builder for chaining.
*/
public Builder setDefaultMatchVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
defaultMatchVersion_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.yelp.nrtsearch.server.grpc.IntObject positionIncrementGap_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.IntObject, com.yelp.nrtsearch.server.grpc.IntObject.Builder, com.yelp.nrtsearch.server.grpc.IntObjectOrBuilder> positionIncrementGapBuilder_;
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject positionIncrementGap = 6;
* @return Whether the positionIncrementGap field is set.
*/
public boolean hasPositionIncrementGap() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject positionIncrementGap = 6;
* @return The positionIncrementGap.
*/
public com.yelp.nrtsearch.server.grpc.IntObject getPositionIncrementGap() {
if (positionIncrementGapBuilder_ == null) {
return positionIncrementGap_ == null ? com.yelp.nrtsearch.server.grpc.IntObject.getDefaultInstance() : positionIncrementGap_;
} else {
return positionIncrementGapBuilder_.getMessage();
}
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject positionIncrementGap = 6;
*/
public Builder setPositionIncrementGap(com.yelp.nrtsearch.server.grpc.IntObject value) {
if (positionIncrementGapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
positionIncrementGap_ = value;
} else {
positionIncrementGapBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject positionIncrementGap = 6;
*/
public Builder setPositionIncrementGap(
com.yelp.nrtsearch.server.grpc.IntObject.Builder builderForValue) {
if (positionIncrementGapBuilder_ == null) {
positionIncrementGap_ = builderForValue.build();
} else {
positionIncrementGapBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject positionIncrementGap = 6;
*/
public Builder mergePositionIncrementGap(com.yelp.nrtsearch.server.grpc.IntObject value) {
if (positionIncrementGapBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
positionIncrementGap_ != null &&
positionIncrementGap_ != com.yelp.nrtsearch.server.grpc.IntObject.getDefaultInstance()) {
getPositionIncrementGapBuilder().mergeFrom(value);
} else {
positionIncrementGap_ = value;
}
} else {
positionIncrementGapBuilder_.mergeFrom(value);
}
if (positionIncrementGap_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject positionIncrementGap = 6;
*/
public Builder clearPositionIncrementGap() {
bitField0_ = (bitField0_ & ~0x00000020);
positionIncrementGap_ = null;
if (positionIncrementGapBuilder_ != null) {
positionIncrementGapBuilder_.dispose();
positionIncrementGapBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject positionIncrementGap = 6;
*/
public com.yelp.nrtsearch.server.grpc.IntObject.Builder getPositionIncrementGapBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getPositionIncrementGapFieldBuilder().getBuilder();
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject positionIncrementGap = 6;
*/
public com.yelp.nrtsearch.server.grpc.IntObjectOrBuilder getPositionIncrementGapOrBuilder() {
if (positionIncrementGapBuilder_ != null) {
return positionIncrementGapBuilder_.getMessageOrBuilder();
} else {
return positionIncrementGap_ == null ?
com.yelp.nrtsearch.server.grpc.IntObject.getDefaultInstance() : positionIncrementGap_;
}
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject positionIncrementGap = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.IntObject, com.yelp.nrtsearch.server.grpc.IntObject.Builder, com.yelp.nrtsearch.server.grpc.IntObjectOrBuilder>
getPositionIncrementGapFieldBuilder() {
if (positionIncrementGapBuilder_ == null) {
positionIncrementGapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.IntObject, com.yelp.nrtsearch.server.grpc.IntObject.Builder, com.yelp.nrtsearch.server.grpc.IntObjectOrBuilder>(
getPositionIncrementGap(),
getParentForChildren(),
isClean());
positionIncrementGap_ = null;
}
return positionIncrementGapBuilder_;
}
private com.yelp.nrtsearch.server.grpc.IntObject offsetGap_;
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.IntObject, com.yelp.nrtsearch.server.grpc.IntObject.Builder, com.yelp.nrtsearch.server.grpc.IntObjectOrBuilder> offsetGapBuilder_;
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject offsetGap = 7;
* @return Whether the offsetGap field is set.
*/
public boolean hasOffsetGap() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject offsetGap = 7;
* @return The offsetGap.
*/
public com.yelp.nrtsearch.server.grpc.IntObject getOffsetGap() {
if (offsetGapBuilder_ == null) {
return offsetGap_ == null ? com.yelp.nrtsearch.server.grpc.IntObject.getDefaultInstance() : offsetGap_;
} else {
return offsetGapBuilder_.getMessage();
}
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject offsetGap = 7;
*/
public Builder setOffsetGap(com.yelp.nrtsearch.server.grpc.IntObject value) {
if (offsetGapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
offsetGap_ = value;
} else {
offsetGapBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject offsetGap = 7;
*/
public Builder setOffsetGap(
com.yelp.nrtsearch.server.grpc.IntObject.Builder builderForValue) {
if (offsetGapBuilder_ == null) {
offsetGap_ = builderForValue.build();
} else {
offsetGapBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject offsetGap = 7;
*/
public Builder mergeOffsetGap(com.yelp.nrtsearch.server.grpc.IntObject value) {
if (offsetGapBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
offsetGap_ != null &&
offsetGap_ != com.yelp.nrtsearch.server.grpc.IntObject.getDefaultInstance()) {
getOffsetGapBuilder().mergeFrom(value);
} else {
offsetGap_ = value;
}
} else {
offsetGapBuilder_.mergeFrom(value);
}
if (offsetGap_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject offsetGap = 7;
*/
public Builder clearOffsetGap() {
bitField0_ = (bitField0_ & ~0x00000040);
offsetGap_ = null;
if (offsetGapBuilder_ != null) {
offsetGapBuilder_.dispose();
offsetGapBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject offsetGap = 7;
*/
public com.yelp.nrtsearch.server.grpc.IntObject.Builder getOffsetGapBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getOffsetGapFieldBuilder().getBuilder();
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject offsetGap = 7;
*/
public com.yelp.nrtsearch.server.grpc.IntObjectOrBuilder getOffsetGapOrBuilder() {
if (offsetGapBuilder_ != null) {
return offsetGapBuilder_.getMessageOrBuilder();
} else {
return offsetGap_ == null ?
com.yelp.nrtsearch.server.grpc.IntObject.getDefaultInstance() : offsetGap_;
}
}
/**
*
* Must be >= 0
*
*
* .luceneserver.IntObject offsetGap = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.IntObject, com.yelp.nrtsearch.server.grpc.IntObject.Builder, com.yelp.nrtsearch.server.grpc.IntObjectOrBuilder>
getOffsetGapFieldBuilder() {
if (offsetGapBuilder_ == null) {
offsetGapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.yelp.nrtsearch.server.grpc.IntObject, com.yelp.nrtsearch.server.grpc.IntObject.Builder, com.yelp.nrtsearch.server.grpc.IntObjectOrBuilder>(
getOffsetGap(),
getParentForChildren(),
isClean());
offsetGap_ = null;
}
return offsetGapBuilder_;
}
@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.CustomAnalyzer)
}
// @@protoc_insertion_point(class_scope:luceneserver.CustomAnalyzer)
private static final com.yelp.nrtsearch.server.grpc.CustomAnalyzer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.CustomAnalyzer();
}
public static com.yelp.nrtsearch.server.grpc.CustomAnalyzer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CustomAnalyzer 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.CustomAnalyzer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}