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

com.yelp.nrtsearch.server.grpc.InnerHit 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/search.proto

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

/**
 * 
 * Inner Hit search request 
 * 
* * Protobuf type {@code luceneserver.InnerHit} */ public final class InnerHit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.InnerHit) InnerHitOrBuilder { private static final long serialVersionUID = 0L; // Use InnerHit.newBuilder() to construct. private InnerHit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InnerHit() { queryNestedPath_ = ""; retrieveFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InnerHit(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_InnerHit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_InnerHit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.InnerHit.class, com.yelp.nrtsearch.server.grpc.InnerHit.Builder.class); } private int bitField0_; public static final int QUERY_NESTED_PATH_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object queryNestedPath_ = ""; /** *
   * Nested path to search against assuming same index as the parent Query.
   * 
* * string query_nested_path = 1; * @return The queryNestedPath. */ @java.lang.Override public java.lang.String getQueryNestedPath() { java.lang.Object ref = queryNestedPath_; 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(); queryNestedPath_ = s; return s; } } /** *
   * Nested path to search against assuming same index as the parent Query.
   * 
* * string query_nested_path = 1; * @return The bytes for queryNestedPath. */ @java.lang.Override public com.google.protobuf.ByteString getQueryNestedPathBytes() { java.lang.Object ref = queryNestedPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); queryNestedPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int START_HIT_FIELD_NUMBER = 2; private int startHit_ = 0; /** *
   * Which hit to start from (for pagination); default: 0
   * 
* * int32 start_hit = 2; * @return The startHit. */ @java.lang.Override public int getStartHit() { return startHit_; } public static final int TOP_HITS_FIELD_NUMBER = 3; private int topHits_ = 0; /** *
   * How many top hits to retrieve; default: 3. It limits the hits returned, starting from index 0. For pagination: set it to startHit + window_size.
   * 
* * int32 top_hits = 3; * @return The topHits. */ @java.lang.Override public int getTopHits() { return topHits_; } public static final int INNER_QUERY_FIELD_NUMBER = 4; private com.yelp.nrtsearch.server.grpc.Query innerQuery_; /** *
   * InnerHit query to query against the nested documents specified by queryNestedPath.
   * 
* * .luceneserver.Query inner_query = 4; * @return Whether the innerQuery field is set. */ @java.lang.Override public boolean hasInnerQuery() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * InnerHit query to query against the nested documents specified by queryNestedPath.
   * 
* * .luceneserver.Query inner_query = 4; * @return The innerQuery. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Query getInnerQuery() { return innerQuery_ == null ? com.yelp.nrtsearch.server.grpc.Query.getDefaultInstance() : innerQuery_; } /** *
   * InnerHit query to query against the nested documents specified by queryNestedPath.
   * 
* * .luceneserver.Query inner_query = 4; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.QueryOrBuilder getInnerQueryOrBuilder() { return innerQuery_ == null ? com.yelp.nrtsearch.server.grpc.Query.getDefaultInstance() : innerQuery_; } public static final int RETRIEVE_FIELDS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList retrieveFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * Fields to retrieve; Parent's fields except its id field are unavailable in the innerHit.
   * 
* * repeated string retrieve_fields = 5; * @return A list containing the retrieveFields. */ public com.google.protobuf.ProtocolStringList getRetrieveFieldsList() { return retrieveFields_; } /** *
   * Fields to retrieve; Parent's fields except its id field are unavailable in the innerHit.
   * 
* * repeated string retrieve_fields = 5; * @return The count of retrieveFields. */ public int getRetrieveFieldsCount() { return retrieveFields_.size(); } /** *
   * Fields to retrieve; Parent's fields except its id field are unavailable in the innerHit.
   * 
* * repeated string retrieve_fields = 5; * @param index The index of the element to return. * @return The retrieveFields at the given index. */ public java.lang.String getRetrieveFields(int index) { return retrieveFields_.get(index); } /** *
   * Fields to retrieve; Parent's fields except its id field are unavailable in the innerHit.
   * 
* * repeated string retrieve_fields = 5; * @param index The index of the value to return. * @return The bytes of the retrieveFields at the given index. */ public com.google.protobuf.ByteString getRetrieveFieldsBytes(int index) { return retrieveFields_.getByteString(index); } public static final int QUERY_SORT_FIELD_NUMBER = 6; private com.yelp.nrtsearch.server.grpc.QuerySortField querySort_; /** *
   * Sort hits by field (default is by relevance).
   * 
* * .luceneserver.QuerySortField query_sort = 6; * @return Whether the querySort field is set. */ @java.lang.Override public boolean hasQuerySort() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Sort hits by field (default is by relevance).
   * 
* * .luceneserver.QuerySortField query_sort = 6; * @return The querySort. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.QuerySortField getQuerySort() { return querySort_ == null ? com.yelp.nrtsearch.server.grpc.QuerySortField.getDefaultInstance() : querySort_; } /** *
   * Sort hits by field (default is by relevance).
   * 
* * .luceneserver.QuerySortField query_sort = 6; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.QuerySortFieldOrBuilder getQuerySortOrBuilder() { return querySort_ == null ? com.yelp.nrtsearch.server.grpc.QuerySortField.getDefaultInstance() : querySort_; } public static final int HIGHLIGHT_FIELD_NUMBER = 7; private com.yelp.nrtsearch.server.grpc.Highlight highlight_; /** *
   * Highlight the children documents.
   * 
* * .luceneserver.Highlight highlight = 7; * @return Whether the highlight field is set. */ @java.lang.Override public boolean hasHighlight() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Highlight the children documents.
   * 
* * .luceneserver.Highlight highlight = 7; * @return The highlight. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.Highlight getHighlight() { return highlight_ == null ? com.yelp.nrtsearch.server.grpc.Highlight.getDefaultInstance() : highlight_; } /** *
   * Highlight the children documents.
   * 
* * .luceneserver.Highlight highlight = 7; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.HighlightOrBuilder getHighlightOrBuilder() { return highlight_ == null ? com.yelp.nrtsearch.server.grpc.Highlight.getDefaultInstance() : highlight_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryNestedPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, queryNestedPath_); } if (startHit_ != 0) { output.writeInt32(2, startHit_); } if (topHits_ != 0) { output.writeInt32(3, topHits_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getInnerQuery()); } for (int i = 0; i < retrieveFields_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, retrieveFields_.getRaw(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getQuerySort()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getHighlight()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryNestedPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, queryNestedPath_); } if (startHit_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, startHit_); } if (topHits_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, topHits_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getInnerQuery()); } { int dataSize = 0; for (int i = 0; i < retrieveFields_.size(); i++) { dataSize += computeStringSizeNoTag(retrieveFields_.getRaw(i)); } size += dataSize; size += 1 * getRetrieveFieldsList().size(); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getQuerySort()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getHighlight()); } 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.InnerHit)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.InnerHit other = (com.yelp.nrtsearch.server.grpc.InnerHit) obj; if (!getQueryNestedPath() .equals(other.getQueryNestedPath())) return false; if (getStartHit() != other.getStartHit()) return false; if (getTopHits() != other.getTopHits()) return false; if (hasInnerQuery() != other.hasInnerQuery()) return false; if (hasInnerQuery()) { if (!getInnerQuery() .equals(other.getInnerQuery())) return false; } if (!getRetrieveFieldsList() .equals(other.getRetrieveFieldsList())) return false; if (hasQuerySort() != other.hasQuerySort()) return false; if (hasQuerySort()) { if (!getQuerySort() .equals(other.getQuerySort())) return false; } if (hasHighlight() != other.hasHighlight()) return false; if (hasHighlight()) { if (!getHighlight() .equals(other.getHighlight())) 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) + QUERY_NESTED_PATH_FIELD_NUMBER; hash = (53 * hash) + getQueryNestedPath().hashCode(); hash = (37 * hash) + START_HIT_FIELD_NUMBER; hash = (53 * hash) + getStartHit(); hash = (37 * hash) + TOP_HITS_FIELD_NUMBER; hash = (53 * hash) + getTopHits(); if (hasInnerQuery()) { hash = (37 * hash) + INNER_QUERY_FIELD_NUMBER; hash = (53 * hash) + getInnerQuery().hashCode(); } if (getRetrieveFieldsCount() > 0) { hash = (37 * hash) + RETRIEVE_FIELDS_FIELD_NUMBER; hash = (53 * hash) + getRetrieveFieldsList().hashCode(); } if (hasQuerySort()) { hash = (37 * hash) + QUERY_SORT_FIELD_NUMBER; hash = (53 * hash) + getQuerySort().hashCode(); } if (hasHighlight()) { hash = (37 * hash) + HIGHLIGHT_FIELD_NUMBER; hash = (53 * hash) + getHighlight().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.InnerHit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.InnerHit 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.InnerHit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.InnerHit 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.InnerHit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.InnerHit 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.InnerHit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.InnerHit 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.InnerHit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.InnerHit 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.InnerHit 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.InnerHit 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.InnerHit 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; } /** *
   * Inner Hit search request 
   * 
* * Protobuf type {@code luceneserver.InnerHit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.InnerHit) com.yelp.nrtsearch.server.grpc.InnerHitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_InnerHit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_InnerHit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.InnerHit.class, com.yelp.nrtsearch.server.grpc.InnerHit.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.InnerHit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getInnerQueryFieldBuilder(); getQuerySortFieldBuilder(); getHighlightFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; queryNestedPath_ = ""; startHit_ = 0; topHits_ = 0; innerQuery_ = null; if (innerQueryBuilder_ != null) { innerQueryBuilder_.dispose(); innerQueryBuilder_ = null; } retrieveFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); querySort_ = null; if (querySortBuilder_ != null) { querySortBuilder_.dispose(); querySortBuilder_ = null; } highlight_ = null; if (highlightBuilder_ != null) { highlightBuilder_.dispose(); highlightBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_InnerHit_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.InnerHit getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.InnerHit.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.InnerHit build() { com.yelp.nrtsearch.server.grpc.InnerHit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.InnerHit buildPartial() { com.yelp.nrtsearch.server.grpc.InnerHit result = new com.yelp.nrtsearch.server.grpc.InnerHit(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.InnerHit result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.queryNestedPath_ = queryNestedPath_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.startHit_ = startHit_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.topHits_ = topHits_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000008) != 0)) { result.innerQuery_ = innerQueryBuilder_ == null ? innerQuery_ : innerQueryBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { retrieveFields_.makeImmutable(); result.retrieveFields_ = retrieveFields_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.querySort_ = querySortBuilder_ == null ? querySort_ : querySortBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { result.highlight_ = highlightBuilder_ == null ? highlight_ : highlightBuilder_.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.InnerHit) { return mergeFrom((com.yelp.nrtsearch.server.grpc.InnerHit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.InnerHit other) { if (other == com.yelp.nrtsearch.server.grpc.InnerHit.getDefaultInstance()) return this; if (!other.getQueryNestedPath().isEmpty()) { queryNestedPath_ = other.queryNestedPath_; bitField0_ |= 0x00000001; onChanged(); } if (other.getStartHit() != 0) { setStartHit(other.getStartHit()); } if (other.getTopHits() != 0) { setTopHits(other.getTopHits()); } if (other.hasInnerQuery()) { mergeInnerQuery(other.getInnerQuery()); } if (!other.retrieveFields_.isEmpty()) { if (retrieveFields_.isEmpty()) { retrieveFields_ = other.retrieveFields_; bitField0_ |= 0x00000010; } else { ensureRetrieveFieldsIsMutable(); retrieveFields_.addAll(other.retrieveFields_); } onChanged(); } if (other.hasQuerySort()) { mergeQuerySort(other.getQuerySort()); } if (other.hasHighlight()) { mergeHighlight(other.getHighlight()); } 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: { queryNestedPath_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { startHit_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { topHits_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage( getInnerQueryFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { java.lang.String s = input.readStringRequireUtf8(); ensureRetrieveFieldsIsMutable(); retrieveFields_.add(s); break; } // case 42 case 50: { input.readMessage( getQuerySortFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage( getHighlightFieldBuilder().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.lang.Object queryNestedPath_ = ""; /** *
     * Nested path to search against assuming same index as the parent Query.
     * 
* * string query_nested_path = 1; * @return The queryNestedPath. */ public java.lang.String getQueryNestedPath() { java.lang.Object ref = queryNestedPath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); queryNestedPath_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Nested path to search against assuming same index as the parent Query.
     * 
* * string query_nested_path = 1; * @return The bytes for queryNestedPath. */ public com.google.protobuf.ByteString getQueryNestedPathBytes() { java.lang.Object ref = queryNestedPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); queryNestedPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Nested path to search against assuming same index as the parent Query.
     * 
* * string query_nested_path = 1; * @param value The queryNestedPath to set. * @return This builder for chaining. */ public Builder setQueryNestedPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } queryNestedPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Nested path to search against assuming same index as the parent Query.
     * 
* * string query_nested_path = 1; * @return This builder for chaining. */ public Builder clearQueryNestedPath() { queryNestedPath_ = getDefaultInstance().getQueryNestedPath(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Nested path to search against assuming same index as the parent Query.
     * 
* * string query_nested_path = 1; * @param value The bytes for queryNestedPath to set. * @return This builder for chaining. */ public Builder setQueryNestedPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); queryNestedPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int startHit_ ; /** *
     * Which hit to start from (for pagination); default: 0
     * 
* * int32 start_hit = 2; * @return The startHit. */ @java.lang.Override public int getStartHit() { return startHit_; } /** *
     * Which hit to start from (for pagination); default: 0
     * 
* * int32 start_hit = 2; * @param value The startHit to set. * @return This builder for chaining. */ public Builder setStartHit(int value) { startHit_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Which hit to start from (for pagination); default: 0
     * 
* * int32 start_hit = 2; * @return This builder for chaining. */ public Builder clearStartHit() { bitField0_ = (bitField0_ & ~0x00000002); startHit_ = 0; onChanged(); return this; } private int topHits_ ; /** *
     * How many top hits to retrieve; default: 3. It limits the hits returned, starting from index 0. For pagination: set it to startHit + window_size.
     * 
* * int32 top_hits = 3; * @return The topHits. */ @java.lang.Override public int getTopHits() { return topHits_; } /** *
     * How many top hits to retrieve; default: 3. It limits the hits returned, starting from index 0. For pagination: set it to startHit + window_size.
     * 
* * int32 top_hits = 3; * @param value The topHits to set. * @return This builder for chaining. */ public Builder setTopHits(int value) { topHits_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * How many top hits to retrieve; default: 3. It limits the hits returned, starting from index 0. For pagination: set it to startHit + window_size.
     * 
* * int32 top_hits = 3; * @return This builder for chaining. */ public Builder clearTopHits() { bitField0_ = (bitField0_ & ~0x00000004); topHits_ = 0; onChanged(); return this; } private com.yelp.nrtsearch.server.grpc.Query innerQuery_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Query, com.yelp.nrtsearch.server.grpc.Query.Builder, com.yelp.nrtsearch.server.grpc.QueryOrBuilder> innerQueryBuilder_; /** *
     * InnerHit query to query against the nested documents specified by queryNestedPath.
     * 
* * .luceneserver.Query inner_query = 4; * @return Whether the innerQuery field is set. */ public boolean hasInnerQuery() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * InnerHit query to query against the nested documents specified by queryNestedPath.
     * 
* * .luceneserver.Query inner_query = 4; * @return The innerQuery. */ public com.yelp.nrtsearch.server.grpc.Query getInnerQuery() { if (innerQueryBuilder_ == null) { return innerQuery_ == null ? com.yelp.nrtsearch.server.grpc.Query.getDefaultInstance() : innerQuery_; } else { return innerQueryBuilder_.getMessage(); } } /** *
     * InnerHit query to query against the nested documents specified by queryNestedPath.
     * 
* * .luceneserver.Query inner_query = 4; */ public Builder setInnerQuery(com.yelp.nrtsearch.server.grpc.Query value) { if (innerQueryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } innerQuery_ = value; } else { innerQueryBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * InnerHit query to query against the nested documents specified by queryNestedPath.
     * 
* * .luceneserver.Query inner_query = 4; */ public Builder setInnerQuery( com.yelp.nrtsearch.server.grpc.Query.Builder builderForValue) { if (innerQueryBuilder_ == null) { innerQuery_ = builderForValue.build(); } else { innerQueryBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * InnerHit query to query against the nested documents specified by queryNestedPath.
     * 
* * .luceneserver.Query inner_query = 4; */ public Builder mergeInnerQuery(com.yelp.nrtsearch.server.grpc.Query value) { if (innerQueryBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && innerQuery_ != null && innerQuery_ != com.yelp.nrtsearch.server.grpc.Query.getDefaultInstance()) { getInnerQueryBuilder().mergeFrom(value); } else { innerQuery_ = value; } } else { innerQueryBuilder_.mergeFrom(value); } if (innerQuery_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** *
     * InnerHit query to query against the nested documents specified by queryNestedPath.
     * 
* * .luceneserver.Query inner_query = 4; */ public Builder clearInnerQuery() { bitField0_ = (bitField0_ & ~0x00000008); innerQuery_ = null; if (innerQueryBuilder_ != null) { innerQueryBuilder_.dispose(); innerQueryBuilder_ = null; } onChanged(); return this; } /** *
     * InnerHit query to query against the nested documents specified by queryNestedPath.
     * 
* * .luceneserver.Query inner_query = 4; */ public com.yelp.nrtsearch.server.grpc.Query.Builder getInnerQueryBuilder() { bitField0_ |= 0x00000008; onChanged(); return getInnerQueryFieldBuilder().getBuilder(); } /** *
     * InnerHit query to query against the nested documents specified by queryNestedPath.
     * 
* * .luceneserver.Query inner_query = 4; */ public com.yelp.nrtsearch.server.grpc.QueryOrBuilder getInnerQueryOrBuilder() { if (innerQueryBuilder_ != null) { return innerQueryBuilder_.getMessageOrBuilder(); } else { return innerQuery_ == null ? com.yelp.nrtsearch.server.grpc.Query.getDefaultInstance() : innerQuery_; } } /** *
     * InnerHit query to query against the nested documents specified by queryNestedPath.
     * 
* * .luceneserver.Query inner_query = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Query, com.yelp.nrtsearch.server.grpc.Query.Builder, com.yelp.nrtsearch.server.grpc.QueryOrBuilder> getInnerQueryFieldBuilder() { if (innerQueryBuilder_ == null) { innerQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Query, com.yelp.nrtsearch.server.grpc.Query.Builder, com.yelp.nrtsearch.server.grpc.QueryOrBuilder>( getInnerQuery(), getParentForChildren(), isClean()); innerQuery_ = null; } return innerQueryBuilder_; } private com.google.protobuf.LazyStringArrayList retrieveFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureRetrieveFieldsIsMutable() { if (!retrieveFields_.isModifiable()) { retrieveFields_ = new com.google.protobuf.LazyStringArrayList(retrieveFields_); } bitField0_ |= 0x00000010; } /** *
     * Fields to retrieve; Parent's fields except its id field are unavailable in the innerHit.
     * 
* * repeated string retrieve_fields = 5; * @return A list containing the retrieveFields. */ public com.google.protobuf.ProtocolStringList getRetrieveFieldsList() { retrieveFields_.makeImmutable(); return retrieveFields_; } /** *
     * Fields to retrieve; Parent's fields except its id field are unavailable in the innerHit.
     * 
* * repeated string retrieve_fields = 5; * @return The count of retrieveFields. */ public int getRetrieveFieldsCount() { return retrieveFields_.size(); } /** *
     * Fields to retrieve; Parent's fields except its id field are unavailable in the innerHit.
     * 
* * repeated string retrieve_fields = 5; * @param index The index of the element to return. * @return The retrieveFields at the given index. */ public java.lang.String getRetrieveFields(int index) { return retrieveFields_.get(index); } /** *
     * Fields to retrieve; Parent's fields except its id field are unavailable in the innerHit.
     * 
* * repeated string retrieve_fields = 5; * @param index The index of the value to return. * @return The bytes of the retrieveFields at the given index. */ public com.google.protobuf.ByteString getRetrieveFieldsBytes(int index) { return retrieveFields_.getByteString(index); } /** *
     * Fields to retrieve; Parent's fields except its id field are unavailable in the innerHit.
     * 
* * repeated string retrieve_fields = 5; * @param index The index to set the value at. * @param value The retrieveFields to set. * @return This builder for chaining. */ public Builder setRetrieveFields( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRetrieveFieldsIsMutable(); retrieveFields_.set(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Fields to retrieve; Parent's fields except its id field are unavailable in the innerHit.
     * 
* * repeated string retrieve_fields = 5; * @param value The retrieveFields to add. * @return This builder for chaining. */ public Builder addRetrieveFields( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRetrieveFieldsIsMutable(); retrieveFields_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Fields to retrieve; Parent's fields except its id field are unavailable in the innerHit.
     * 
* * repeated string retrieve_fields = 5; * @param values The retrieveFields to add. * @return This builder for chaining. */ public Builder addAllRetrieveFields( java.lang.Iterable values) { ensureRetrieveFieldsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, retrieveFields_); bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Fields to retrieve; Parent's fields except its id field are unavailable in the innerHit.
     * 
* * repeated string retrieve_fields = 5; * @return This builder for chaining. */ public Builder clearRetrieveFields() { retrieveFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000010);; onChanged(); return this; } /** *
     * Fields to retrieve; Parent's fields except its id field are unavailable in the innerHit.
     * 
* * repeated string retrieve_fields = 5; * @param value The bytes of the retrieveFields to add. * @return This builder for chaining. */ public Builder addRetrieveFieldsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRetrieveFieldsIsMutable(); retrieveFields_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } private com.yelp.nrtsearch.server.grpc.QuerySortField querySort_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.QuerySortField, com.yelp.nrtsearch.server.grpc.QuerySortField.Builder, com.yelp.nrtsearch.server.grpc.QuerySortFieldOrBuilder> querySortBuilder_; /** *
     * Sort hits by field (default is by relevance).
     * 
* * .luceneserver.QuerySortField query_sort = 6; * @return Whether the querySort field is set. */ public boolean hasQuerySort() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Sort hits by field (default is by relevance).
     * 
* * .luceneserver.QuerySortField query_sort = 6; * @return The querySort. */ public com.yelp.nrtsearch.server.grpc.QuerySortField getQuerySort() { if (querySortBuilder_ == null) { return querySort_ == null ? com.yelp.nrtsearch.server.grpc.QuerySortField.getDefaultInstance() : querySort_; } else { return querySortBuilder_.getMessage(); } } /** *
     * Sort hits by field (default is by relevance).
     * 
* * .luceneserver.QuerySortField query_sort = 6; */ public Builder setQuerySort(com.yelp.nrtsearch.server.grpc.QuerySortField value) { if (querySortBuilder_ == null) { if (value == null) { throw new NullPointerException(); } querySort_ = value; } else { querySortBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Sort hits by field (default is by relevance).
     * 
* * .luceneserver.QuerySortField query_sort = 6; */ public Builder setQuerySort( com.yelp.nrtsearch.server.grpc.QuerySortField.Builder builderForValue) { if (querySortBuilder_ == null) { querySort_ = builderForValue.build(); } else { querySortBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Sort hits by field (default is by relevance).
     * 
* * .luceneserver.QuerySortField query_sort = 6; */ public Builder mergeQuerySort(com.yelp.nrtsearch.server.grpc.QuerySortField value) { if (querySortBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && querySort_ != null && querySort_ != com.yelp.nrtsearch.server.grpc.QuerySortField.getDefaultInstance()) { getQuerySortBuilder().mergeFrom(value); } else { querySort_ = value; } } else { querySortBuilder_.mergeFrom(value); } if (querySort_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** *
     * Sort hits by field (default is by relevance).
     * 
* * .luceneserver.QuerySortField query_sort = 6; */ public Builder clearQuerySort() { bitField0_ = (bitField0_ & ~0x00000020); querySort_ = null; if (querySortBuilder_ != null) { querySortBuilder_.dispose(); querySortBuilder_ = null; } onChanged(); return this; } /** *
     * Sort hits by field (default is by relevance).
     * 
* * .luceneserver.QuerySortField query_sort = 6; */ public com.yelp.nrtsearch.server.grpc.QuerySortField.Builder getQuerySortBuilder() { bitField0_ |= 0x00000020; onChanged(); return getQuerySortFieldBuilder().getBuilder(); } /** *
     * Sort hits by field (default is by relevance).
     * 
* * .luceneserver.QuerySortField query_sort = 6; */ public com.yelp.nrtsearch.server.grpc.QuerySortFieldOrBuilder getQuerySortOrBuilder() { if (querySortBuilder_ != null) { return querySortBuilder_.getMessageOrBuilder(); } else { return querySort_ == null ? com.yelp.nrtsearch.server.grpc.QuerySortField.getDefaultInstance() : querySort_; } } /** *
     * Sort hits by field (default is by relevance).
     * 
* * .luceneserver.QuerySortField query_sort = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.QuerySortField, com.yelp.nrtsearch.server.grpc.QuerySortField.Builder, com.yelp.nrtsearch.server.grpc.QuerySortFieldOrBuilder> getQuerySortFieldBuilder() { if (querySortBuilder_ == null) { querySortBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.QuerySortField, com.yelp.nrtsearch.server.grpc.QuerySortField.Builder, com.yelp.nrtsearch.server.grpc.QuerySortFieldOrBuilder>( getQuerySort(), getParentForChildren(), isClean()); querySort_ = null; } return querySortBuilder_; } private com.yelp.nrtsearch.server.grpc.Highlight highlight_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Highlight, com.yelp.nrtsearch.server.grpc.Highlight.Builder, com.yelp.nrtsearch.server.grpc.HighlightOrBuilder> highlightBuilder_; /** *
     * Highlight the children documents.
     * 
* * .luceneserver.Highlight highlight = 7; * @return Whether the highlight field is set. */ public boolean hasHighlight() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Highlight the children documents.
     * 
* * .luceneserver.Highlight highlight = 7; * @return The highlight. */ public com.yelp.nrtsearch.server.grpc.Highlight getHighlight() { if (highlightBuilder_ == null) { return highlight_ == null ? com.yelp.nrtsearch.server.grpc.Highlight.getDefaultInstance() : highlight_; } else { return highlightBuilder_.getMessage(); } } /** *
     * Highlight the children documents.
     * 
* * .luceneserver.Highlight highlight = 7; */ public Builder setHighlight(com.yelp.nrtsearch.server.grpc.Highlight value) { if (highlightBuilder_ == null) { if (value == null) { throw new NullPointerException(); } highlight_ = value; } else { highlightBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Highlight the children documents.
     * 
* * .luceneserver.Highlight highlight = 7; */ public Builder setHighlight( com.yelp.nrtsearch.server.grpc.Highlight.Builder builderForValue) { if (highlightBuilder_ == null) { highlight_ = builderForValue.build(); } else { highlightBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Highlight the children documents.
     * 
* * .luceneserver.Highlight highlight = 7; */ public Builder mergeHighlight(com.yelp.nrtsearch.server.grpc.Highlight value) { if (highlightBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && highlight_ != null && highlight_ != com.yelp.nrtsearch.server.grpc.Highlight.getDefaultInstance()) { getHighlightBuilder().mergeFrom(value); } else { highlight_ = value; } } else { highlightBuilder_.mergeFrom(value); } if (highlight_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
     * Highlight the children documents.
     * 
* * .luceneserver.Highlight highlight = 7; */ public Builder clearHighlight() { bitField0_ = (bitField0_ & ~0x00000040); highlight_ = null; if (highlightBuilder_ != null) { highlightBuilder_.dispose(); highlightBuilder_ = null; } onChanged(); return this; } /** *
     * Highlight the children documents.
     * 
* * .luceneserver.Highlight highlight = 7; */ public com.yelp.nrtsearch.server.grpc.Highlight.Builder getHighlightBuilder() { bitField0_ |= 0x00000040; onChanged(); return getHighlightFieldBuilder().getBuilder(); } /** *
     * Highlight the children documents.
     * 
* * .luceneserver.Highlight highlight = 7; */ public com.yelp.nrtsearch.server.grpc.HighlightOrBuilder getHighlightOrBuilder() { if (highlightBuilder_ != null) { return highlightBuilder_.getMessageOrBuilder(); } else { return highlight_ == null ? com.yelp.nrtsearch.server.grpc.Highlight.getDefaultInstance() : highlight_; } } /** *
     * Highlight the children documents.
     * 
* * .luceneserver.Highlight highlight = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Highlight, com.yelp.nrtsearch.server.grpc.Highlight.Builder, com.yelp.nrtsearch.server.grpc.HighlightOrBuilder> getHighlightFieldBuilder() { if (highlightBuilder_ == null) { highlightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.Highlight, com.yelp.nrtsearch.server.grpc.Highlight.Builder, com.yelp.nrtsearch.server.grpc.HighlightOrBuilder>( getHighlight(), getParentForChildren(), isClean()); highlight_ = null; } return highlightBuilder_; } @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.InnerHit) } // @@protoc_insertion_point(class_scope:luceneserver.InnerHit) private static final com.yelp.nrtsearch.server.grpc.InnerHit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.InnerHit(); } public static com.yelp.nrtsearch.server.grpc.InnerHit getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InnerHit 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.InnerHit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy