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

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

There is a newer version: 1.0.0-beta.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yelp/nrtsearch/suggest.proto

// Protobuf Java Version: 3.25.3
package com.yelp.nrtsearch.server.grpc;

/**
 * 
 * The schema of suggest item to build suggest index
 * 
* * Protobuf type {@code luceneserver.NrtsearchIndex} */ public final class NrtsearchIndex extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.NrtsearchIndex) NrtsearchIndexOrBuilder { private static final long serialVersionUID = 0L; // Use NrtsearchIndex.newBuilder() to construct. private NrtsearchIndex(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private NrtsearchIndex() { searchTexts_ = com.google.protobuf.LazyStringArrayList.emptyList(); contexts_ = com.google.protobuf.LazyStringArrayList.emptyList(); payload_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new NrtsearchIndex(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_NrtsearchIndex_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_NrtsearchIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.NrtsearchIndex.class, com.yelp.nrtsearch.server.grpc.NrtsearchIndex.Builder.class); } public static final int UNIQUEID_FIELD_NUMBER = 1; private long uniqueId_ = 0L; /** * int64 uniqueId = 1; * @return The uniqueId. */ @java.lang.Override public long getUniqueId() { return uniqueId_; } public static final int SEARCHTEXTS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList searchTexts_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string searchTexts = 2; * @return A list containing the searchTexts. */ public com.google.protobuf.ProtocolStringList getSearchTextsList() { return searchTexts_; } /** * repeated string searchTexts = 2; * @return The count of searchTexts. */ public int getSearchTextsCount() { return searchTexts_.size(); } /** * repeated string searchTexts = 2; * @param index The index of the element to return. * @return The searchTexts at the given index. */ public java.lang.String getSearchTexts(int index) { return searchTexts_.get(index); } /** * repeated string searchTexts = 2; * @param index The index of the value to return. * @return The bytes of the searchTexts at the given index. */ public com.google.protobuf.ByteString getSearchTextsBytes(int index) { return searchTexts_.getByteString(index); } public static final int SCORE_FIELD_NUMBER = 3; private long score_ = 0L; /** * int64 score = 3; * @return The score. */ @java.lang.Override public long getScore() { return score_; } public static final int CONTEXTS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList contexts_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * repeated string contexts = 4; * @return A list containing the contexts. */ public com.google.protobuf.ProtocolStringList getContextsList() { return contexts_; } /** * repeated string contexts = 4; * @return The count of contexts. */ public int getContextsCount() { return contexts_.size(); } /** * repeated string contexts = 4; * @param index The index of the element to return. * @return The contexts at the given index. */ public java.lang.String getContexts(int index) { return contexts_.get(index); } /** * repeated string contexts = 4; * @param index The index of the value to return. * @return The bytes of the contexts at the given index. */ public com.google.protobuf.ByteString getContextsBytes(int index) { return contexts_.getByteString(index); } public static final int PAYLOAD_FIELD_NUMBER = 5; private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** * bytes payload = 5; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } 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 (uniqueId_ != 0L) { output.writeInt64(1, uniqueId_); } for (int i = 0; i < searchTexts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, searchTexts_.getRaw(i)); } if (score_ != 0L) { output.writeInt64(3, score_); } for (int i = 0; i < contexts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, contexts_.getRaw(i)); } if (!payload_.isEmpty()) { output.writeBytes(5, payload_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (uniqueId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, uniqueId_); } { int dataSize = 0; for (int i = 0; i < searchTexts_.size(); i++) { dataSize += computeStringSizeNoTag(searchTexts_.getRaw(i)); } size += dataSize; size += 1 * getSearchTextsList().size(); } if (score_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, score_); } { int dataSize = 0; for (int i = 0; i < contexts_.size(); i++) { dataSize += computeStringSizeNoTag(contexts_.getRaw(i)); } size += dataSize; size += 1 * getContextsList().size(); } if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, payload_); } 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.NrtsearchIndex)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.NrtsearchIndex other = (com.yelp.nrtsearch.server.grpc.NrtsearchIndex) obj; if (getUniqueId() != other.getUniqueId()) return false; if (!getSearchTextsList() .equals(other.getSearchTextsList())) return false; if (getScore() != other.getScore()) return false; if (!getContextsList() .equals(other.getContextsList())) return false; if (!getPayload() .equals(other.getPayload())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + UNIQUEID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUniqueId()); if (getSearchTextsCount() > 0) { hash = (37 * hash) + SEARCHTEXTS_FIELD_NUMBER; hash = (53 * hash) + getSearchTextsList().hashCode(); } hash = (37 * hash) + SCORE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getScore()); if (getContextsCount() > 0) { hash = (37 * hash) + CONTEXTS_FIELD_NUMBER; hash = (53 * hash) + getContextsList().hashCode(); } hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.NrtsearchIndex parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.NrtsearchIndex 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.NrtsearchIndex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.NrtsearchIndex 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.NrtsearchIndex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.NrtsearchIndex 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.NrtsearchIndex parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.NrtsearchIndex 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.NrtsearchIndex parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.NrtsearchIndex 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.NrtsearchIndex 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.NrtsearchIndex 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.NrtsearchIndex 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; } /** *
   * The schema of suggest item to build suggest index
   * 
* * Protobuf type {@code luceneserver.NrtsearchIndex} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.NrtsearchIndex) com.yelp.nrtsearch.server.grpc.NrtsearchIndexOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_NrtsearchIndex_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_NrtsearchIndex_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.NrtsearchIndex.class, com.yelp.nrtsearch.server.grpc.NrtsearchIndex.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.NrtsearchIndex.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; uniqueId_ = 0L; searchTexts_ = com.google.protobuf.LazyStringArrayList.emptyList(); score_ = 0L; contexts_ = com.google.protobuf.LazyStringArrayList.emptyList(); payload_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SuggestResponseProto.internal_static_luceneserver_NrtsearchIndex_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.NrtsearchIndex getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.NrtsearchIndex.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.NrtsearchIndex build() { com.yelp.nrtsearch.server.grpc.NrtsearchIndex result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.NrtsearchIndex buildPartial() { com.yelp.nrtsearch.server.grpc.NrtsearchIndex result = new com.yelp.nrtsearch.server.grpc.NrtsearchIndex(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.NrtsearchIndex result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.uniqueId_ = uniqueId_; } if (((from_bitField0_ & 0x00000002) != 0)) { searchTexts_.makeImmutable(); result.searchTexts_ = searchTexts_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.score_ = score_; } if (((from_bitField0_ & 0x00000008) != 0)) { contexts_.makeImmutable(); result.contexts_ = contexts_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.payload_ = payload_; } } @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.NrtsearchIndex) { return mergeFrom((com.yelp.nrtsearch.server.grpc.NrtsearchIndex)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.NrtsearchIndex other) { if (other == com.yelp.nrtsearch.server.grpc.NrtsearchIndex.getDefaultInstance()) return this; if (other.getUniqueId() != 0L) { setUniqueId(other.getUniqueId()); } if (!other.searchTexts_.isEmpty()) { if (searchTexts_.isEmpty()) { searchTexts_ = other.searchTexts_; bitField0_ |= 0x00000002; } else { ensureSearchTextsIsMutable(); searchTexts_.addAll(other.searchTexts_); } onChanged(); } if (other.getScore() != 0L) { setScore(other.getScore()); } if (!other.contexts_.isEmpty()) { if (contexts_.isEmpty()) { contexts_ = other.contexts_; bitField0_ |= 0x00000008; } else { ensureContextsIsMutable(); contexts_.addAll(other.contexts_); } onChanged(); } if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { uniqueId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureSearchTextsIsMutable(); searchTexts_.add(s); break; } // case 18 case 24: { score_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureContextsIsMutable(); contexts_.add(s); break; } // case 34 case 42: { payload_ = input.readBytes(); bitField0_ |= 0x00000010; break; } // case 42 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 long uniqueId_ ; /** * int64 uniqueId = 1; * @return The uniqueId. */ @java.lang.Override public long getUniqueId() { return uniqueId_; } /** * int64 uniqueId = 1; * @param value The uniqueId to set. * @return This builder for chaining. */ public Builder setUniqueId(long value) { uniqueId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 uniqueId = 1; * @return This builder for chaining. */ public Builder clearUniqueId() { bitField0_ = (bitField0_ & ~0x00000001); uniqueId_ = 0L; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList searchTexts_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureSearchTextsIsMutable() { if (!searchTexts_.isModifiable()) { searchTexts_ = new com.google.protobuf.LazyStringArrayList(searchTexts_); } bitField0_ |= 0x00000002; } /** * repeated string searchTexts = 2; * @return A list containing the searchTexts. */ public com.google.protobuf.ProtocolStringList getSearchTextsList() { searchTexts_.makeImmutable(); return searchTexts_; } /** * repeated string searchTexts = 2; * @return The count of searchTexts. */ public int getSearchTextsCount() { return searchTexts_.size(); } /** * repeated string searchTexts = 2; * @param index The index of the element to return. * @return The searchTexts at the given index. */ public java.lang.String getSearchTexts(int index) { return searchTexts_.get(index); } /** * repeated string searchTexts = 2; * @param index The index of the value to return. * @return The bytes of the searchTexts at the given index. */ public com.google.protobuf.ByteString getSearchTextsBytes(int index) { return searchTexts_.getByteString(index); } /** * repeated string searchTexts = 2; * @param index The index to set the value at. * @param value The searchTexts to set. * @return This builder for chaining. */ public Builder setSearchTexts( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSearchTextsIsMutable(); searchTexts_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string searchTexts = 2; * @param value The searchTexts to add. * @return This builder for chaining. */ public Builder addSearchTexts( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSearchTextsIsMutable(); searchTexts_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string searchTexts = 2; * @param values The searchTexts to add. * @return This builder for chaining. */ public Builder addAllSearchTexts( java.lang.Iterable values) { ensureSearchTextsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, searchTexts_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * repeated string searchTexts = 2; * @return This builder for chaining. */ public Builder clearSearchTexts() { searchTexts_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** * repeated string searchTexts = 2; * @param value The bytes of the searchTexts to add. * @return This builder for chaining. */ public Builder addSearchTextsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSearchTextsIsMutable(); searchTexts_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } private long score_ ; /** * int64 score = 3; * @return The score. */ @java.lang.Override public long getScore() { return score_; } /** * int64 score = 3; * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(long value) { score_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * int64 score = 3; * @return This builder for chaining. */ public Builder clearScore() { bitField0_ = (bitField0_ & ~0x00000004); score_ = 0L; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList contexts_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureContextsIsMutable() { if (!contexts_.isModifiable()) { contexts_ = new com.google.protobuf.LazyStringArrayList(contexts_); } bitField0_ |= 0x00000008; } /** * repeated string contexts = 4; * @return A list containing the contexts. */ public com.google.protobuf.ProtocolStringList getContextsList() { contexts_.makeImmutable(); return contexts_; } /** * repeated string contexts = 4; * @return The count of contexts. */ public int getContextsCount() { return contexts_.size(); } /** * repeated string contexts = 4; * @param index The index of the element to return. * @return The contexts at the given index. */ public java.lang.String getContexts(int index) { return contexts_.get(index); } /** * repeated string contexts = 4; * @param index The index of the value to return. * @return The bytes of the contexts at the given index. */ public com.google.protobuf.ByteString getContextsBytes(int index) { return contexts_.getByteString(index); } /** * repeated string contexts = 4; * @param index The index to set the value at. * @param value The contexts to set. * @return This builder for chaining. */ public Builder setContexts( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureContextsIsMutable(); contexts_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string contexts = 4; * @param value The contexts to add. * @return This builder for chaining. */ public Builder addContexts( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureContextsIsMutable(); contexts_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string contexts = 4; * @param values The contexts to add. * @return This builder for chaining. */ public Builder addAllContexts( java.lang.Iterable values) { ensureContextsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, contexts_); bitField0_ |= 0x00000008; onChanged(); return this; } /** * repeated string contexts = 4; * @return This builder for chaining. */ public Builder clearContexts() { contexts_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** * repeated string contexts = 4; * @param value The bytes of the contexts to add. * @return This builder for chaining. */ public Builder addContextsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureContextsIsMutable(); contexts_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** * bytes payload = 5; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } /** * bytes payload = 5; * @param value The payload to set. * @return This builder for chaining. */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * bytes payload = 5; * @return This builder for chaining. */ public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00000010); payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:luceneserver.NrtsearchIndex) } // @@protoc_insertion_point(class_scope:luceneserver.NrtsearchIndex) private static final com.yelp.nrtsearch.server.grpc.NrtsearchIndex DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.NrtsearchIndex(); } public static com.yelp.nrtsearch.server.grpc.NrtsearchIndex getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NrtsearchIndex 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.NrtsearchIndex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy