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

com.yelp.nrtsearch.server.grpc.SearchResponse 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;

/**
 * Protobuf type {@code luceneserver.SearchResponse}
 */
public final class SearchResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:luceneserver.SearchResponse)
    SearchResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use SearchResponse.newBuilder() to construct.
  private SearchResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private SearchResponse() {
    hits_ = java.util.Collections.emptyList();
    facetResult_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new SearchResponse();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
      int number) {
    switch (number) {
      case 8:
        return internalGetCollectorResults();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.yelp.nrtsearch.server.grpc.SearchResponse.class, com.yelp.nrtsearch.server.grpc.SearchResponse.Builder.class);
  }

  public interface DiagnosticsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:luceneserver.SearchResponse.Diagnostics)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Query debug has been moved to ProfileResult
     * 
* * string parsedQuery = 1 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.parsedQuery is deprecated. * See yelp/nrtsearch/search.proto;l=770 * @return The parsedQuery. */ @java.lang.Deprecated java.lang.String getParsedQuery(); /** *
     * Query debug has been moved to ProfileResult
     * 
* * string parsedQuery = 1 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.parsedQuery is deprecated. * See yelp/nrtsearch/search.proto;l=770 * @return The bytes for parsedQuery. */ @java.lang.Deprecated com.google.protobuf.ByteString getParsedQueryBytes(); /** * string rewrittenQuery = 2 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.rewrittenQuery is deprecated. * See yelp/nrtsearch/search.proto;l=771 * @return The rewrittenQuery. */ @java.lang.Deprecated java.lang.String getRewrittenQuery(); /** * string rewrittenQuery = 2 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.rewrittenQuery is deprecated. * See yelp/nrtsearch/search.proto;l=771 * @return The bytes for rewrittenQuery. */ @java.lang.Deprecated com.google.protobuf.ByteString getRewrittenQueryBytes(); /** * string drillDownQuery = 3 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.drillDownQuery is deprecated. * See yelp/nrtsearch/search.proto;l=772 * @return The drillDownQuery. */ @java.lang.Deprecated java.lang.String getDrillDownQuery(); /** * string drillDownQuery = 3 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.drillDownQuery is deprecated. * See yelp/nrtsearch/search.proto;l=772 * @return The bytes for drillDownQuery. */ @java.lang.Deprecated com.google.protobuf.ByteString getDrillDownQueryBytes(); /** * double firstPassSearchTimeMs = 4; * @return The firstPassSearchTimeMs. */ double getFirstPassSearchTimeMs(); /** * double highlightTimeMs = 5; * @return The highlightTimeMs. */ double getHighlightTimeMs(); /** * double getFieldsTimeMs = 6; * @return The getFieldsTimeMs. */ double getGetFieldsTimeMs(); /** * double newSnapshotSearcherOpenMs = 7; * @return The newSnapshotSearcherOpenMs. */ double getNewSnapshotSearcherOpenMs(); /** * double nrtWaitTimeMs = 8; * @return The nrtWaitTimeMs. */ double getNrtWaitTimeMs(); /** * map<string, double> facetTimeMs = 9; */ int getFacetTimeMsCount(); /** * map<string, double> facetTimeMs = 9; */ boolean containsFacetTimeMs( java.lang.String key); /** * Use {@link #getFacetTimeMsMap()} instead. */ @java.lang.Deprecated java.util.Map getFacetTimeMs(); /** * map<string, double> facetTimeMs = 9; */ java.util.Map getFacetTimeMsMap(); /** * map<string, double> facetTimeMs = 9; */ double getFacetTimeMsOrDefault( java.lang.String key, double defaultValue); /** * map<string, double> facetTimeMs = 9; */ double getFacetTimeMsOrThrow( java.lang.String key); /** * double rescoreTimeMs = 10; * @return The rescoreTimeMs. */ double getRescoreTimeMs(); /** * map<string, double> rescorersTimeMs = 11; */ int getRescorersTimeMsCount(); /** * map<string, double> rescorersTimeMs = 11; */ boolean containsRescorersTimeMs( java.lang.String key); /** * Use {@link #getRescorersTimeMsMap()} instead. */ @java.lang.Deprecated java.util.Map getRescorersTimeMs(); /** * map<string, double> rescorersTimeMs = 11; */ java.util.Map getRescorersTimeMsMap(); /** * map<string, double> rescorersTimeMs = 11; */ double getRescorersTimeMsOrDefault( java.lang.String key, double defaultValue); /** * map<string, double> rescorersTimeMs = 11; */ double getRescorersTimeMsOrThrow( java.lang.String key); /** * map<string, .luceneserver.SearchResponse.Diagnostics> innerHitsDiagnostics = 12; */ int getInnerHitsDiagnosticsCount(); /** * map<string, .luceneserver.SearchResponse.Diagnostics> innerHitsDiagnostics = 12; */ boolean containsInnerHitsDiagnostics( java.lang.String key); /** * Use {@link #getInnerHitsDiagnosticsMap()} instead. */ @java.lang.Deprecated java.util.Map getInnerHitsDiagnostics(); /** * map<string, .luceneserver.SearchResponse.Diagnostics> innerHitsDiagnostics = 12; */ java.util.Map getInnerHitsDiagnosticsMap(); /** * map<string, .luceneserver.SearchResponse.Diagnostics> innerHitsDiagnostics = 12; */ /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics getInnerHitsDiagnosticsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics defaultValue); /** * map<string, .luceneserver.SearchResponse.Diagnostics> innerHitsDiagnostics = 12; */ com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics getInnerHitsDiagnosticsOrThrow( java.lang.String key); /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ java.util.List getVectorDiagnosticsList(); /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics getVectorDiagnostics(int index); /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ int getVectorDiagnosticsCount(); /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ java.util.List getVectorDiagnosticsOrBuilderList(); /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnosticsOrBuilder getVectorDiagnosticsOrBuilder( int index); } /** * Protobuf type {@code luceneserver.SearchResponse.Diagnostics} */ public static final class Diagnostics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.SearchResponse.Diagnostics) DiagnosticsOrBuilder { private static final long serialVersionUID = 0L; // Use Diagnostics.newBuilder() to construct. private Diagnostics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Diagnostics() { parsedQuery_ = ""; rewrittenQuery_ = ""; drillDownQuery_ = ""; vectorDiagnostics_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Diagnostics(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Diagnostics_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 9: return internalGetFacetTimeMs(); case 11: return internalGetRescorersTimeMs(); case 12: return internalGetInnerHitsDiagnostics(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Diagnostics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.class, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.Builder.class); } public interface VectorDiagnosticsOrBuilder extends // @@protoc_insertion_point(interface_extends:luceneserver.SearchResponse.Diagnostics.VectorDiagnostics) com.google.protobuf.MessageOrBuilder { /** *
       * Time to do kNN search
       * 
* * double searchTimeMs = 1; * @return The searchTimeMs. */ double getSearchTimeMs(); /** *
       * Total hits from kNN execution
       * 
* * .luceneserver.TotalHits totalHits = 2; * @return Whether the totalHits field is set. */ boolean hasTotalHits(); /** *
       * Total hits from kNN execution
       * 
* * .luceneserver.TotalHits totalHits = 2; * @return The totalHits. */ com.yelp.nrtsearch.server.grpc.TotalHits getTotalHits(); /** *
       * Total hits from kNN execution
       * 
* * .luceneserver.TotalHits totalHits = 2; */ com.yelp.nrtsearch.server.grpc.TotalHitsOrBuilder getTotalHitsOrBuilder(); } /** *
     * Diagnostic info related kNN vector search queries
     * 
* * Protobuf type {@code luceneserver.SearchResponse.Diagnostics.VectorDiagnostics} */ public static final class VectorDiagnostics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.SearchResponse.Diagnostics.VectorDiagnostics) VectorDiagnosticsOrBuilder { private static final long serialVersionUID = 0L; // Use VectorDiagnostics.newBuilder() to construct. private VectorDiagnostics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private VectorDiagnostics() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new VectorDiagnostics(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Diagnostics_VectorDiagnostics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Diagnostics_VectorDiagnostics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.class, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.Builder.class); } private int bitField0_; public static final int SEARCHTIMEMS_FIELD_NUMBER = 1; private double searchTimeMs_ = 0D; /** *
       * Time to do kNN search
       * 
* * double searchTimeMs = 1; * @return The searchTimeMs. */ @java.lang.Override public double getSearchTimeMs() { return searchTimeMs_; } public static final int TOTALHITS_FIELD_NUMBER = 2; private com.yelp.nrtsearch.server.grpc.TotalHits totalHits_; /** *
       * Total hits from kNN execution
       * 
* * .luceneserver.TotalHits totalHits = 2; * @return Whether the totalHits field is set. */ @java.lang.Override public boolean hasTotalHits() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Total hits from kNN execution
       * 
* * .luceneserver.TotalHits totalHits = 2; * @return The totalHits. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.TotalHits getTotalHits() { return totalHits_ == null ? com.yelp.nrtsearch.server.grpc.TotalHits.getDefaultInstance() : totalHits_; } /** *
       * Total hits from kNN execution
       * 
* * .luceneserver.TotalHits totalHits = 2; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.TotalHitsOrBuilder getTotalHitsOrBuilder() { return totalHits_ == null ? com.yelp.nrtsearch.server.grpc.TotalHits.getDefaultInstance() : totalHits_; } 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 (java.lang.Double.doubleToRawLongBits(searchTimeMs_) != 0) { output.writeDouble(1, searchTimeMs_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getTotalHits()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (java.lang.Double.doubleToRawLongBits(searchTimeMs_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, searchTimeMs_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTotalHits()); } 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.SearchResponse.Diagnostics.VectorDiagnostics)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics other = (com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics) obj; if (java.lang.Double.doubleToLongBits(getSearchTimeMs()) != java.lang.Double.doubleToLongBits( other.getSearchTimeMs())) return false; if (hasTotalHits() != other.hasTotalHits()) return false; if (hasTotalHits()) { if (!getTotalHits() .equals(other.getTotalHits())) 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) + SEARCHTIMEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSearchTimeMs())); if (hasTotalHits()) { hash = (37 * hash) + TOTALHITS_FIELD_NUMBER; hash = (53 * hash) + getTotalHits().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics 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.SearchResponse.Diagnostics.VectorDiagnostics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics 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.SearchResponse.Diagnostics.VectorDiagnostics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics 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.SearchResponse.Diagnostics.VectorDiagnostics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics 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.SearchResponse.Diagnostics.VectorDiagnostics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics 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.SearchResponse.Diagnostics.VectorDiagnostics 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.SearchResponse.Diagnostics.VectorDiagnostics 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.SearchResponse.Diagnostics.VectorDiagnostics 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; } /** *
       * Diagnostic info related kNN vector search queries
       * 
* * Protobuf type {@code luceneserver.SearchResponse.Diagnostics.VectorDiagnostics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.SearchResponse.Diagnostics.VectorDiagnostics) com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnosticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Diagnostics_VectorDiagnostics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Diagnostics_VectorDiagnostics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.class, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTotalHitsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; searchTimeMs_ = 0D; totalHits_ = null; if (totalHitsBuilder_ != null) { totalHitsBuilder_.dispose(); totalHitsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Diagnostics_VectorDiagnostics_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics build() { com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics buildPartial() { com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics result = new com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.searchTimeMs_ = searchTimeMs_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.totalHits_ = totalHitsBuilder_ == null ? totalHits_ : totalHitsBuilder_.build(); to_bitField0_ |= 0x00000001; } 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.SearchResponse.Diagnostics.VectorDiagnostics) { return mergeFrom((com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics other) { if (other == com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.getDefaultInstance()) return this; if (other.getSearchTimeMs() != 0D) { setSearchTimeMs(other.getSearchTimeMs()); } if (other.hasTotalHits()) { mergeTotalHits(other.getTotalHits()); } 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 9: { searchTimeMs_ = input.readDouble(); bitField0_ |= 0x00000001; break; } // case 9 case 18: { input.readMessage( getTotalHitsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 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 double searchTimeMs_ ; /** *
         * Time to do kNN search
         * 
* * double searchTimeMs = 1; * @return The searchTimeMs. */ @java.lang.Override public double getSearchTimeMs() { return searchTimeMs_; } /** *
         * Time to do kNN search
         * 
* * double searchTimeMs = 1; * @param value The searchTimeMs to set. * @return This builder for chaining. */ public Builder setSearchTimeMs(double value) { searchTimeMs_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Time to do kNN search
         * 
* * double searchTimeMs = 1; * @return This builder for chaining. */ public Builder clearSearchTimeMs() { bitField0_ = (bitField0_ & ~0x00000001); searchTimeMs_ = 0D; onChanged(); return this; } private com.yelp.nrtsearch.server.grpc.TotalHits totalHits_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.TotalHits, com.yelp.nrtsearch.server.grpc.TotalHits.Builder, com.yelp.nrtsearch.server.grpc.TotalHitsOrBuilder> totalHitsBuilder_; /** *
         * Total hits from kNN execution
         * 
* * .luceneserver.TotalHits totalHits = 2; * @return Whether the totalHits field is set. */ public boolean hasTotalHits() { return ((bitField0_ & 0x00000002) != 0); } /** *
         * Total hits from kNN execution
         * 
* * .luceneserver.TotalHits totalHits = 2; * @return The totalHits. */ public com.yelp.nrtsearch.server.grpc.TotalHits getTotalHits() { if (totalHitsBuilder_ == null) { return totalHits_ == null ? com.yelp.nrtsearch.server.grpc.TotalHits.getDefaultInstance() : totalHits_; } else { return totalHitsBuilder_.getMessage(); } } /** *
         * Total hits from kNN execution
         * 
* * .luceneserver.TotalHits totalHits = 2; */ public Builder setTotalHits(com.yelp.nrtsearch.server.grpc.TotalHits value) { if (totalHitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalHits_ = value; } else { totalHitsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Total hits from kNN execution
         * 
* * .luceneserver.TotalHits totalHits = 2; */ public Builder setTotalHits( com.yelp.nrtsearch.server.grpc.TotalHits.Builder builderForValue) { if (totalHitsBuilder_ == null) { totalHits_ = builderForValue.build(); } else { totalHitsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
         * Total hits from kNN execution
         * 
* * .luceneserver.TotalHits totalHits = 2; */ public Builder mergeTotalHits(com.yelp.nrtsearch.server.grpc.TotalHits value) { if (totalHitsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && totalHits_ != null && totalHits_ != com.yelp.nrtsearch.server.grpc.TotalHits.getDefaultInstance()) { getTotalHitsBuilder().mergeFrom(value); } else { totalHits_ = value; } } else { totalHitsBuilder_.mergeFrom(value); } if (totalHits_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
         * Total hits from kNN execution
         * 
* * .luceneserver.TotalHits totalHits = 2; */ public Builder clearTotalHits() { bitField0_ = (bitField0_ & ~0x00000002); totalHits_ = null; if (totalHitsBuilder_ != null) { totalHitsBuilder_.dispose(); totalHitsBuilder_ = null; } onChanged(); return this; } /** *
         * Total hits from kNN execution
         * 
* * .luceneserver.TotalHits totalHits = 2; */ public com.yelp.nrtsearch.server.grpc.TotalHits.Builder getTotalHitsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTotalHitsFieldBuilder().getBuilder(); } /** *
         * Total hits from kNN execution
         * 
* * .luceneserver.TotalHits totalHits = 2; */ public com.yelp.nrtsearch.server.grpc.TotalHitsOrBuilder getTotalHitsOrBuilder() { if (totalHitsBuilder_ != null) { return totalHitsBuilder_.getMessageOrBuilder(); } else { return totalHits_ == null ? com.yelp.nrtsearch.server.grpc.TotalHits.getDefaultInstance() : totalHits_; } } /** *
         * Total hits from kNN execution
         * 
* * .luceneserver.TotalHits totalHits = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.TotalHits, com.yelp.nrtsearch.server.grpc.TotalHits.Builder, com.yelp.nrtsearch.server.grpc.TotalHitsOrBuilder> getTotalHitsFieldBuilder() { if (totalHitsBuilder_ == null) { totalHitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.TotalHits, com.yelp.nrtsearch.server.grpc.TotalHits.Builder, com.yelp.nrtsearch.server.grpc.TotalHitsOrBuilder>( getTotalHits(), getParentForChildren(), isClean()); totalHits_ = null; } return totalHitsBuilder_; } @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.SearchResponse.Diagnostics.VectorDiagnostics) } // @@protoc_insertion_point(class_scope:luceneserver.SearchResponse.Diagnostics.VectorDiagnostics) private static final com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics(); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public VectorDiagnostics 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.SearchResponse.Diagnostics.VectorDiagnostics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int PARSEDQUERY_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object parsedQuery_ = ""; /** *
     * Query debug has been moved to ProfileResult
     * 
* * string parsedQuery = 1 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.parsedQuery is deprecated. * See yelp/nrtsearch/search.proto;l=770 * @return The parsedQuery. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getParsedQuery() { java.lang.Object ref = parsedQuery_; 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(); parsedQuery_ = s; return s; } } /** *
     * Query debug has been moved to ProfileResult
     * 
* * string parsedQuery = 1 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.parsedQuery is deprecated. * See yelp/nrtsearch/search.proto;l=770 * @return The bytes for parsedQuery. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getParsedQueryBytes() { java.lang.Object ref = parsedQuery_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); parsedQuery_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REWRITTENQUERY_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object rewrittenQuery_ = ""; /** * string rewrittenQuery = 2 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.rewrittenQuery is deprecated. * See yelp/nrtsearch/search.proto;l=771 * @return The rewrittenQuery. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getRewrittenQuery() { java.lang.Object ref = rewrittenQuery_; 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(); rewrittenQuery_ = s; return s; } } /** * string rewrittenQuery = 2 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.rewrittenQuery is deprecated. * See yelp/nrtsearch/search.proto;l=771 * @return The bytes for rewrittenQuery. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getRewrittenQueryBytes() { java.lang.Object ref = rewrittenQuery_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); rewrittenQuery_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DRILLDOWNQUERY_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object drillDownQuery_ = ""; /** * string drillDownQuery = 3 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.drillDownQuery is deprecated. * See yelp/nrtsearch/search.proto;l=772 * @return The drillDownQuery. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getDrillDownQuery() { java.lang.Object ref = drillDownQuery_; 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(); drillDownQuery_ = s; return s; } } /** * string drillDownQuery = 3 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.drillDownQuery is deprecated. * See yelp/nrtsearch/search.proto;l=772 * @return The bytes for drillDownQuery. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getDrillDownQueryBytes() { java.lang.Object ref = drillDownQuery_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); drillDownQuery_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIRSTPASSSEARCHTIMEMS_FIELD_NUMBER = 4; private double firstPassSearchTimeMs_ = 0D; /** * double firstPassSearchTimeMs = 4; * @return The firstPassSearchTimeMs. */ @java.lang.Override public double getFirstPassSearchTimeMs() { return firstPassSearchTimeMs_; } public static final int HIGHLIGHTTIMEMS_FIELD_NUMBER = 5; private double highlightTimeMs_ = 0D; /** * double highlightTimeMs = 5; * @return The highlightTimeMs. */ @java.lang.Override public double getHighlightTimeMs() { return highlightTimeMs_; } public static final int GETFIELDSTIMEMS_FIELD_NUMBER = 6; private double getFieldsTimeMs_ = 0D; /** * double getFieldsTimeMs = 6; * @return The getFieldsTimeMs. */ @java.lang.Override public double getGetFieldsTimeMs() { return getFieldsTimeMs_; } public static final int NEWSNAPSHOTSEARCHEROPENMS_FIELD_NUMBER = 7; private double newSnapshotSearcherOpenMs_ = 0D; /** * double newSnapshotSearcherOpenMs = 7; * @return The newSnapshotSearcherOpenMs. */ @java.lang.Override public double getNewSnapshotSearcherOpenMs() { return newSnapshotSearcherOpenMs_; } public static final int NRTWAITTIMEMS_FIELD_NUMBER = 8; private double nrtWaitTimeMs_ = 0D; /** * double nrtWaitTimeMs = 8; * @return The nrtWaitTimeMs. */ @java.lang.Override public double getNrtWaitTimeMs() { return nrtWaitTimeMs_; } public static final int FACETTIMEMS_FIELD_NUMBER = 9; private static final class FacetTimeMsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Double> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Diagnostics_FacetTimeMsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.DOUBLE, 0D); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.Double> facetTimeMs_; private com.google.protobuf.MapField internalGetFacetTimeMs() { if (facetTimeMs_ == null) { return com.google.protobuf.MapField.emptyMapField( FacetTimeMsDefaultEntryHolder.defaultEntry); } return facetTimeMs_; } public int getFacetTimeMsCount() { return internalGetFacetTimeMs().getMap().size(); } /** * map<string, double> facetTimeMs = 9; */ @java.lang.Override public boolean containsFacetTimeMs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFacetTimeMs().getMap().containsKey(key); } /** * Use {@link #getFacetTimeMsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFacetTimeMs() { return getFacetTimeMsMap(); } /** * map<string, double> facetTimeMs = 9; */ @java.lang.Override public java.util.Map getFacetTimeMsMap() { return internalGetFacetTimeMs().getMap(); } /** * map<string, double> facetTimeMs = 9; */ @java.lang.Override public double getFacetTimeMsOrDefault( java.lang.String key, double defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFacetTimeMs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, double> facetTimeMs = 9; */ @java.lang.Override public double getFacetTimeMsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFacetTimeMs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int RESCORETIMEMS_FIELD_NUMBER = 10; private double rescoreTimeMs_ = 0D; /** * double rescoreTimeMs = 10; * @return The rescoreTimeMs. */ @java.lang.Override public double getRescoreTimeMs() { return rescoreTimeMs_; } public static final int RESCORERSTIMEMS_FIELD_NUMBER = 11; private static final class RescorersTimeMsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.Double> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Diagnostics_RescorersTimeMsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.DOUBLE, 0D); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, java.lang.Double> rescorersTimeMs_; private com.google.protobuf.MapField internalGetRescorersTimeMs() { if (rescorersTimeMs_ == null) { return com.google.protobuf.MapField.emptyMapField( RescorersTimeMsDefaultEntryHolder.defaultEntry); } return rescorersTimeMs_; } public int getRescorersTimeMsCount() { return internalGetRescorersTimeMs().getMap().size(); } /** * map<string, double> rescorersTimeMs = 11; */ @java.lang.Override public boolean containsRescorersTimeMs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetRescorersTimeMs().getMap().containsKey(key); } /** * Use {@link #getRescorersTimeMsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getRescorersTimeMs() { return getRescorersTimeMsMap(); } /** * map<string, double> rescorersTimeMs = 11; */ @java.lang.Override public java.util.Map getRescorersTimeMsMap() { return internalGetRescorersTimeMs().getMap(); } /** * map<string, double> rescorersTimeMs = 11; */ @java.lang.Override public double getRescorersTimeMsOrDefault( java.lang.String key, double defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetRescorersTimeMs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, double> rescorersTimeMs = 11; */ @java.lang.Override public double getRescorersTimeMsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetRescorersTimeMs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int INNERHITSDIAGNOSTICS_FIELD_NUMBER = 12; private static final class InnerHitsDiagnosticsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Diagnostics_InnerHitsDiagnosticsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics> innerHitsDiagnostics_; private com.google.protobuf.MapField internalGetInnerHitsDiagnostics() { if (innerHitsDiagnostics_ == null) { return com.google.protobuf.MapField.emptyMapField( InnerHitsDiagnosticsDefaultEntryHolder.defaultEntry); } return innerHitsDiagnostics_; } public int getInnerHitsDiagnosticsCount() { return internalGetInnerHitsDiagnostics().getMap().size(); } /** * map<string, .luceneserver.SearchResponse.Diagnostics> innerHitsDiagnostics = 12; */ @java.lang.Override public boolean containsInnerHitsDiagnostics( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetInnerHitsDiagnostics().getMap().containsKey(key); } /** * Use {@link #getInnerHitsDiagnosticsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getInnerHitsDiagnostics() { return getInnerHitsDiagnosticsMap(); } /** * map<string, .luceneserver.SearchResponse.Diagnostics> innerHitsDiagnostics = 12; */ @java.lang.Override public java.util.Map getInnerHitsDiagnosticsMap() { return internalGetInnerHitsDiagnostics().getMap(); } /** * map<string, .luceneserver.SearchResponse.Diagnostics> innerHitsDiagnostics = 12; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics getInnerHitsDiagnosticsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetInnerHitsDiagnostics().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .luceneserver.SearchResponse.Diagnostics> innerHitsDiagnostics = 12; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics getInnerHitsDiagnosticsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetInnerHitsDiagnostics().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int VECTORDIAGNOSTICS_FIELD_NUMBER = 13; @SuppressWarnings("serial") private java.util.List vectorDiagnostics_; /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ @java.lang.Override public java.util.List getVectorDiagnosticsList() { return vectorDiagnostics_; } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ @java.lang.Override public java.util.List getVectorDiagnosticsOrBuilderList() { return vectorDiagnostics_; } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ @java.lang.Override public int getVectorDiagnosticsCount() { return vectorDiagnostics_.size(); } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics getVectorDiagnostics(int index) { return vectorDiagnostics_.get(index); } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnosticsOrBuilder getVectorDiagnosticsOrBuilder( int index) { return vectorDiagnostics_.get(index); } 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(parsedQuery_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parsedQuery_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewrittenQuery_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rewrittenQuery_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(drillDownQuery_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, drillDownQuery_); } if (java.lang.Double.doubleToRawLongBits(firstPassSearchTimeMs_) != 0) { output.writeDouble(4, firstPassSearchTimeMs_); } if (java.lang.Double.doubleToRawLongBits(highlightTimeMs_) != 0) { output.writeDouble(5, highlightTimeMs_); } if (java.lang.Double.doubleToRawLongBits(getFieldsTimeMs_) != 0) { output.writeDouble(6, getFieldsTimeMs_); } if (java.lang.Double.doubleToRawLongBits(newSnapshotSearcherOpenMs_) != 0) { output.writeDouble(7, newSnapshotSearcherOpenMs_); } if (java.lang.Double.doubleToRawLongBits(nrtWaitTimeMs_) != 0) { output.writeDouble(8, nrtWaitTimeMs_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetFacetTimeMs(), FacetTimeMsDefaultEntryHolder.defaultEntry, 9); if (java.lang.Double.doubleToRawLongBits(rescoreTimeMs_) != 0) { output.writeDouble(10, rescoreTimeMs_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetRescorersTimeMs(), RescorersTimeMsDefaultEntryHolder.defaultEntry, 11); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetInnerHitsDiagnostics(), InnerHitsDiagnosticsDefaultEntryHolder.defaultEntry, 12); for (int i = 0; i < vectorDiagnostics_.size(); i++) { output.writeMessage(13, vectorDiagnostics_.get(i)); } 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(parsedQuery_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parsedQuery_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewrittenQuery_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rewrittenQuery_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(drillDownQuery_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, drillDownQuery_); } if (java.lang.Double.doubleToRawLongBits(firstPassSearchTimeMs_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, firstPassSearchTimeMs_); } if (java.lang.Double.doubleToRawLongBits(highlightTimeMs_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, highlightTimeMs_); } if (java.lang.Double.doubleToRawLongBits(getFieldsTimeMs_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, getFieldsTimeMs_); } if (java.lang.Double.doubleToRawLongBits(newSnapshotSearcherOpenMs_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(7, newSnapshotSearcherOpenMs_); } if (java.lang.Double.doubleToRawLongBits(nrtWaitTimeMs_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(8, nrtWaitTimeMs_); } for (java.util.Map.Entry entry : internalGetFacetTimeMs().getMap().entrySet()) { com.google.protobuf.MapEntry facetTimeMs__ = FacetTimeMsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, facetTimeMs__); } if (java.lang.Double.doubleToRawLongBits(rescoreTimeMs_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(10, rescoreTimeMs_); } for (java.util.Map.Entry entry : internalGetRescorersTimeMs().getMap().entrySet()) { com.google.protobuf.MapEntry rescorersTimeMs__ = RescorersTimeMsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, rescorersTimeMs__); } for (java.util.Map.Entry entry : internalGetInnerHitsDiagnostics().getMap().entrySet()) { com.google.protobuf.MapEntry innerHitsDiagnostics__ = InnerHitsDiagnosticsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, innerHitsDiagnostics__); } for (int i = 0; i < vectorDiagnostics_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, vectorDiagnostics_.get(i)); } 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.SearchResponse.Diagnostics)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics other = (com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics) obj; if (!getParsedQuery() .equals(other.getParsedQuery())) return false; if (!getRewrittenQuery() .equals(other.getRewrittenQuery())) return false; if (!getDrillDownQuery() .equals(other.getDrillDownQuery())) return false; if (java.lang.Double.doubleToLongBits(getFirstPassSearchTimeMs()) != java.lang.Double.doubleToLongBits( other.getFirstPassSearchTimeMs())) return false; if (java.lang.Double.doubleToLongBits(getHighlightTimeMs()) != java.lang.Double.doubleToLongBits( other.getHighlightTimeMs())) return false; if (java.lang.Double.doubleToLongBits(getGetFieldsTimeMs()) != java.lang.Double.doubleToLongBits( other.getGetFieldsTimeMs())) return false; if (java.lang.Double.doubleToLongBits(getNewSnapshotSearcherOpenMs()) != java.lang.Double.doubleToLongBits( other.getNewSnapshotSearcherOpenMs())) return false; if (java.lang.Double.doubleToLongBits(getNrtWaitTimeMs()) != java.lang.Double.doubleToLongBits( other.getNrtWaitTimeMs())) return false; if (!internalGetFacetTimeMs().equals( other.internalGetFacetTimeMs())) return false; if (java.lang.Double.doubleToLongBits(getRescoreTimeMs()) != java.lang.Double.doubleToLongBits( other.getRescoreTimeMs())) return false; if (!internalGetRescorersTimeMs().equals( other.internalGetRescorersTimeMs())) return false; if (!internalGetInnerHitsDiagnostics().equals( other.internalGetInnerHitsDiagnostics())) return false; if (!getVectorDiagnosticsList() .equals(other.getVectorDiagnosticsList())) 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) + PARSEDQUERY_FIELD_NUMBER; hash = (53 * hash) + getParsedQuery().hashCode(); hash = (37 * hash) + REWRITTENQUERY_FIELD_NUMBER; hash = (53 * hash) + getRewrittenQuery().hashCode(); hash = (37 * hash) + DRILLDOWNQUERY_FIELD_NUMBER; hash = (53 * hash) + getDrillDownQuery().hashCode(); hash = (37 * hash) + FIRSTPASSSEARCHTIMEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getFirstPassSearchTimeMs())); hash = (37 * hash) + HIGHLIGHTTIMEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getHighlightTimeMs())); hash = (37 * hash) + GETFIELDSTIMEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getGetFieldsTimeMs())); hash = (37 * hash) + NEWSNAPSHOTSEARCHEROPENMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getNewSnapshotSearcherOpenMs())); hash = (37 * hash) + NRTWAITTIMEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getNrtWaitTimeMs())); if (!internalGetFacetTimeMs().getMap().isEmpty()) { hash = (37 * hash) + FACETTIMEMS_FIELD_NUMBER; hash = (53 * hash) + internalGetFacetTimeMs().hashCode(); } hash = (37 * hash) + RESCORETIMEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getRescoreTimeMs())); if (!internalGetRescorersTimeMs().getMap().isEmpty()) { hash = (37 * hash) + RESCORERSTIMEMS_FIELD_NUMBER; hash = (53 * hash) + internalGetRescorersTimeMs().hashCode(); } if (!internalGetInnerHitsDiagnostics().getMap().isEmpty()) { hash = (37 * hash) + INNERHITSDIAGNOSTICS_FIELD_NUMBER; hash = (53 * hash) + internalGetInnerHitsDiagnostics().hashCode(); } if (getVectorDiagnosticsCount() > 0) { hash = (37 * hash) + VECTORDIAGNOSTICS_FIELD_NUMBER; hash = (53 * hash) + getVectorDiagnosticsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics 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.SearchResponse.Diagnostics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics 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.SearchResponse.Diagnostics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics 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.SearchResponse.Diagnostics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics 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.SearchResponse.Diagnostics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics 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.SearchResponse.Diagnostics 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.SearchResponse.Diagnostics 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.SearchResponse.Diagnostics 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.SearchResponse.Diagnostics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.SearchResponse.Diagnostics) com.yelp.nrtsearch.server.grpc.SearchResponse.DiagnosticsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Diagnostics_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 9: return internalGetFacetTimeMs(); case 11: return internalGetRescorersTimeMs(); case 12: return internalGetInnerHitsDiagnostics(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 9: return internalGetMutableFacetTimeMs(); case 11: return internalGetMutableRescorersTimeMs(); case 12: return internalGetMutableInnerHitsDiagnostics(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Diagnostics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.class, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parsedQuery_ = ""; rewrittenQuery_ = ""; drillDownQuery_ = ""; firstPassSearchTimeMs_ = 0D; highlightTimeMs_ = 0D; getFieldsTimeMs_ = 0D; newSnapshotSearcherOpenMs_ = 0D; nrtWaitTimeMs_ = 0D; internalGetMutableFacetTimeMs().clear(); rescoreTimeMs_ = 0D; internalGetMutableRescorersTimeMs().clear(); internalGetMutableInnerHitsDiagnostics().clear(); if (vectorDiagnosticsBuilder_ == null) { vectorDiagnostics_ = java.util.Collections.emptyList(); } else { vectorDiagnostics_ = null; vectorDiagnosticsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00001000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Diagnostics_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics build() { com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics buildPartial() { com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics result = new com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics result) { if (vectorDiagnosticsBuilder_ == null) { if (((bitField0_ & 0x00001000) != 0)) { vectorDiagnostics_ = java.util.Collections.unmodifiableList(vectorDiagnostics_); bitField0_ = (bitField0_ & ~0x00001000); } result.vectorDiagnostics_ = vectorDiagnostics_; } else { result.vectorDiagnostics_ = vectorDiagnosticsBuilder_.build(); } } private void buildPartial0(com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parsedQuery_ = parsedQuery_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.rewrittenQuery_ = rewrittenQuery_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.drillDownQuery_ = drillDownQuery_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.firstPassSearchTimeMs_ = firstPassSearchTimeMs_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.highlightTimeMs_ = highlightTimeMs_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.getFieldsTimeMs_ = getFieldsTimeMs_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.newSnapshotSearcherOpenMs_ = newSnapshotSearcherOpenMs_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.nrtWaitTimeMs_ = nrtWaitTimeMs_; } if (((from_bitField0_ & 0x00000100) != 0)) { result.facetTimeMs_ = internalGetFacetTimeMs(); result.facetTimeMs_.makeImmutable(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.rescoreTimeMs_ = rescoreTimeMs_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.rescorersTimeMs_ = internalGetRescorersTimeMs(); result.rescorersTimeMs_.makeImmutable(); } if (((from_bitField0_ & 0x00000800) != 0)) { result.innerHitsDiagnostics_ = internalGetInnerHitsDiagnostics().build(InnerHitsDiagnosticsDefaultEntryHolder.defaultEntry); } } @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.SearchResponse.Diagnostics) { return mergeFrom((com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics other) { if (other == com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.getDefaultInstance()) return this; if (!other.getParsedQuery().isEmpty()) { parsedQuery_ = other.parsedQuery_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getRewrittenQuery().isEmpty()) { rewrittenQuery_ = other.rewrittenQuery_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getDrillDownQuery().isEmpty()) { drillDownQuery_ = other.drillDownQuery_; bitField0_ |= 0x00000004; onChanged(); } if (other.getFirstPassSearchTimeMs() != 0D) { setFirstPassSearchTimeMs(other.getFirstPassSearchTimeMs()); } if (other.getHighlightTimeMs() != 0D) { setHighlightTimeMs(other.getHighlightTimeMs()); } if (other.getGetFieldsTimeMs() != 0D) { setGetFieldsTimeMs(other.getGetFieldsTimeMs()); } if (other.getNewSnapshotSearcherOpenMs() != 0D) { setNewSnapshotSearcherOpenMs(other.getNewSnapshotSearcherOpenMs()); } if (other.getNrtWaitTimeMs() != 0D) { setNrtWaitTimeMs(other.getNrtWaitTimeMs()); } internalGetMutableFacetTimeMs().mergeFrom( other.internalGetFacetTimeMs()); bitField0_ |= 0x00000100; if (other.getRescoreTimeMs() != 0D) { setRescoreTimeMs(other.getRescoreTimeMs()); } internalGetMutableRescorersTimeMs().mergeFrom( other.internalGetRescorersTimeMs()); bitField0_ |= 0x00000400; internalGetMutableInnerHitsDiagnostics().mergeFrom( other.internalGetInnerHitsDiagnostics()); bitField0_ |= 0x00000800; if (vectorDiagnosticsBuilder_ == null) { if (!other.vectorDiagnostics_.isEmpty()) { if (vectorDiagnostics_.isEmpty()) { vectorDiagnostics_ = other.vectorDiagnostics_; bitField0_ = (bitField0_ & ~0x00001000); } else { ensureVectorDiagnosticsIsMutable(); vectorDiagnostics_.addAll(other.vectorDiagnostics_); } onChanged(); } } else { if (!other.vectorDiagnostics_.isEmpty()) { if (vectorDiagnosticsBuilder_.isEmpty()) { vectorDiagnosticsBuilder_.dispose(); vectorDiagnosticsBuilder_ = null; vectorDiagnostics_ = other.vectorDiagnostics_; bitField0_ = (bitField0_ & ~0x00001000); vectorDiagnosticsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVectorDiagnosticsFieldBuilder() : null; } else { vectorDiagnosticsBuilder_.addAllMessages(other.vectorDiagnostics_); } } } 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: { parsedQuery_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { rewrittenQuery_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { drillDownQuery_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 33: { firstPassSearchTimeMs_ = input.readDouble(); bitField0_ |= 0x00000008; break; } // case 33 case 41: { highlightTimeMs_ = input.readDouble(); bitField0_ |= 0x00000010; break; } // case 41 case 49: { getFieldsTimeMs_ = input.readDouble(); bitField0_ |= 0x00000020; break; } // case 49 case 57: { newSnapshotSearcherOpenMs_ = input.readDouble(); bitField0_ |= 0x00000040; break; } // case 57 case 65: { nrtWaitTimeMs_ = input.readDouble(); bitField0_ |= 0x00000080; break; } // case 65 case 74: { com.google.protobuf.MapEntry facetTimeMs__ = input.readMessage( FacetTimeMsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableFacetTimeMs().getMutableMap().put( facetTimeMs__.getKey(), facetTimeMs__.getValue()); bitField0_ |= 0x00000100; break; } // case 74 case 81: { rescoreTimeMs_ = input.readDouble(); bitField0_ |= 0x00000200; break; } // case 81 case 90: { com.google.protobuf.MapEntry rescorersTimeMs__ = input.readMessage( RescorersTimeMsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableRescorersTimeMs().getMutableMap().put( rescorersTimeMs__.getKey(), rescorersTimeMs__.getValue()); bitField0_ |= 0x00000400; break; } // case 90 case 98: { com.google.protobuf.MapEntry innerHitsDiagnostics__ = input.readMessage( InnerHitsDiagnosticsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableInnerHitsDiagnostics().ensureBuilderMap().put( innerHitsDiagnostics__.getKey(), innerHitsDiagnostics__.getValue()); bitField0_ |= 0x00000800; break; } // case 98 case 106: { com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics m = input.readMessage( com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.parser(), extensionRegistry); if (vectorDiagnosticsBuilder_ == null) { ensureVectorDiagnosticsIsMutable(); vectorDiagnostics_.add(m); } else { vectorDiagnosticsBuilder_.addMessage(m); } break; } // case 106 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 parsedQuery_ = ""; /** *
       * Query debug has been moved to ProfileResult
       * 
* * string parsedQuery = 1 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.parsedQuery is deprecated. * See yelp/nrtsearch/search.proto;l=770 * @return The parsedQuery. */ @java.lang.Deprecated public java.lang.String getParsedQuery() { java.lang.Object ref = parsedQuery_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parsedQuery_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Query debug has been moved to ProfileResult
       * 
* * string parsedQuery = 1 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.parsedQuery is deprecated. * See yelp/nrtsearch/search.proto;l=770 * @return The bytes for parsedQuery. */ @java.lang.Deprecated public com.google.protobuf.ByteString getParsedQueryBytes() { java.lang.Object ref = parsedQuery_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); parsedQuery_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Query debug has been moved to ProfileResult
       * 
* * string parsedQuery = 1 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.parsedQuery is deprecated. * See yelp/nrtsearch/search.proto;l=770 * @param value The parsedQuery to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setParsedQuery( java.lang.String value) { if (value == null) { throw new NullPointerException(); } parsedQuery_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Query debug has been moved to ProfileResult
       * 
* * string parsedQuery = 1 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.parsedQuery is deprecated. * See yelp/nrtsearch/search.proto;l=770 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearParsedQuery() { parsedQuery_ = getDefaultInstance().getParsedQuery(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Query debug has been moved to ProfileResult
       * 
* * string parsedQuery = 1 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.parsedQuery is deprecated. * See yelp/nrtsearch/search.proto;l=770 * @param value The bytes for parsedQuery to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setParsedQueryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parsedQuery_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object rewrittenQuery_ = ""; /** * string rewrittenQuery = 2 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.rewrittenQuery is deprecated. * See yelp/nrtsearch/search.proto;l=771 * @return The rewrittenQuery. */ @java.lang.Deprecated public java.lang.String getRewrittenQuery() { java.lang.Object ref = rewrittenQuery_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rewrittenQuery_ = s; return s; } else { return (java.lang.String) ref; } } /** * string rewrittenQuery = 2 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.rewrittenQuery is deprecated. * See yelp/nrtsearch/search.proto;l=771 * @return The bytes for rewrittenQuery. */ @java.lang.Deprecated public com.google.protobuf.ByteString getRewrittenQueryBytes() { java.lang.Object ref = rewrittenQuery_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); rewrittenQuery_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string rewrittenQuery = 2 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.rewrittenQuery is deprecated. * See yelp/nrtsearch/search.proto;l=771 * @param value The rewrittenQuery to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setRewrittenQuery( java.lang.String value) { if (value == null) { throw new NullPointerException(); } rewrittenQuery_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string rewrittenQuery = 2 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.rewrittenQuery is deprecated. * See yelp/nrtsearch/search.proto;l=771 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearRewrittenQuery() { rewrittenQuery_ = getDefaultInstance().getRewrittenQuery(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string rewrittenQuery = 2 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.rewrittenQuery is deprecated. * See yelp/nrtsearch/search.proto;l=771 * @param value The bytes for rewrittenQuery to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setRewrittenQueryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rewrittenQuery_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object drillDownQuery_ = ""; /** * string drillDownQuery = 3 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.drillDownQuery is deprecated. * See yelp/nrtsearch/search.proto;l=772 * @return The drillDownQuery. */ @java.lang.Deprecated public java.lang.String getDrillDownQuery() { java.lang.Object ref = drillDownQuery_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); drillDownQuery_ = s; return s; } else { return (java.lang.String) ref; } } /** * string drillDownQuery = 3 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.drillDownQuery is deprecated. * See yelp/nrtsearch/search.proto;l=772 * @return The bytes for drillDownQuery. */ @java.lang.Deprecated public com.google.protobuf.ByteString getDrillDownQueryBytes() { java.lang.Object ref = drillDownQuery_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); drillDownQuery_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string drillDownQuery = 3 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.drillDownQuery is deprecated. * See yelp/nrtsearch/search.proto;l=772 * @param value The drillDownQuery to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setDrillDownQuery( java.lang.String value) { if (value == null) { throw new NullPointerException(); } drillDownQuery_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string drillDownQuery = 3 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.drillDownQuery is deprecated. * See yelp/nrtsearch/search.proto;l=772 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearDrillDownQuery() { drillDownQuery_ = getDefaultInstance().getDrillDownQuery(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string drillDownQuery = 3 [deprecated = true]; * @deprecated luceneserver.SearchResponse.Diagnostics.drillDownQuery is deprecated. * See yelp/nrtsearch/search.proto;l=772 * @param value The bytes for drillDownQuery to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setDrillDownQueryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); drillDownQuery_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private double firstPassSearchTimeMs_ ; /** * double firstPassSearchTimeMs = 4; * @return The firstPassSearchTimeMs. */ @java.lang.Override public double getFirstPassSearchTimeMs() { return firstPassSearchTimeMs_; } /** * double firstPassSearchTimeMs = 4; * @param value The firstPassSearchTimeMs to set. * @return This builder for chaining. */ public Builder setFirstPassSearchTimeMs(double value) { firstPassSearchTimeMs_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * double firstPassSearchTimeMs = 4; * @return This builder for chaining. */ public Builder clearFirstPassSearchTimeMs() { bitField0_ = (bitField0_ & ~0x00000008); firstPassSearchTimeMs_ = 0D; onChanged(); return this; } private double highlightTimeMs_ ; /** * double highlightTimeMs = 5; * @return The highlightTimeMs. */ @java.lang.Override public double getHighlightTimeMs() { return highlightTimeMs_; } /** * double highlightTimeMs = 5; * @param value The highlightTimeMs to set. * @return This builder for chaining. */ public Builder setHighlightTimeMs(double value) { highlightTimeMs_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * double highlightTimeMs = 5; * @return This builder for chaining. */ public Builder clearHighlightTimeMs() { bitField0_ = (bitField0_ & ~0x00000010); highlightTimeMs_ = 0D; onChanged(); return this; } private double getFieldsTimeMs_ ; /** * double getFieldsTimeMs = 6; * @return The getFieldsTimeMs. */ @java.lang.Override public double getGetFieldsTimeMs() { return getFieldsTimeMs_; } /** * double getFieldsTimeMs = 6; * @param value The getFieldsTimeMs to set. * @return This builder for chaining. */ public Builder setGetFieldsTimeMs(double value) { getFieldsTimeMs_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * double getFieldsTimeMs = 6; * @return This builder for chaining. */ public Builder clearGetFieldsTimeMs() { bitField0_ = (bitField0_ & ~0x00000020); getFieldsTimeMs_ = 0D; onChanged(); return this; } private double newSnapshotSearcherOpenMs_ ; /** * double newSnapshotSearcherOpenMs = 7; * @return The newSnapshotSearcherOpenMs. */ @java.lang.Override public double getNewSnapshotSearcherOpenMs() { return newSnapshotSearcherOpenMs_; } /** * double newSnapshotSearcherOpenMs = 7; * @param value The newSnapshotSearcherOpenMs to set. * @return This builder for chaining. */ public Builder setNewSnapshotSearcherOpenMs(double value) { newSnapshotSearcherOpenMs_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * double newSnapshotSearcherOpenMs = 7; * @return This builder for chaining. */ public Builder clearNewSnapshotSearcherOpenMs() { bitField0_ = (bitField0_ & ~0x00000040); newSnapshotSearcherOpenMs_ = 0D; onChanged(); return this; } private double nrtWaitTimeMs_ ; /** * double nrtWaitTimeMs = 8; * @return The nrtWaitTimeMs. */ @java.lang.Override public double getNrtWaitTimeMs() { return nrtWaitTimeMs_; } /** * double nrtWaitTimeMs = 8; * @param value The nrtWaitTimeMs to set. * @return This builder for chaining. */ public Builder setNrtWaitTimeMs(double value) { nrtWaitTimeMs_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * double nrtWaitTimeMs = 8; * @return This builder for chaining. */ public Builder clearNrtWaitTimeMs() { bitField0_ = (bitField0_ & ~0x00000080); nrtWaitTimeMs_ = 0D; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Double> facetTimeMs_; private com.google.protobuf.MapField internalGetFacetTimeMs() { if (facetTimeMs_ == null) { return com.google.protobuf.MapField.emptyMapField( FacetTimeMsDefaultEntryHolder.defaultEntry); } return facetTimeMs_; } private com.google.protobuf.MapField internalGetMutableFacetTimeMs() { if (facetTimeMs_ == null) { facetTimeMs_ = com.google.protobuf.MapField.newMapField( FacetTimeMsDefaultEntryHolder.defaultEntry); } if (!facetTimeMs_.isMutable()) { facetTimeMs_ = facetTimeMs_.copy(); } bitField0_ |= 0x00000100; onChanged(); return facetTimeMs_; } public int getFacetTimeMsCount() { return internalGetFacetTimeMs().getMap().size(); } /** * map<string, double> facetTimeMs = 9; */ @java.lang.Override public boolean containsFacetTimeMs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFacetTimeMs().getMap().containsKey(key); } /** * Use {@link #getFacetTimeMsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFacetTimeMs() { return getFacetTimeMsMap(); } /** * map<string, double> facetTimeMs = 9; */ @java.lang.Override public java.util.Map getFacetTimeMsMap() { return internalGetFacetTimeMs().getMap(); } /** * map<string, double> facetTimeMs = 9; */ @java.lang.Override public double getFacetTimeMsOrDefault( java.lang.String key, double defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFacetTimeMs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, double> facetTimeMs = 9; */ @java.lang.Override public double getFacetTimeMsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFacetTimeMs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearFacetTimeMs() { bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableFacetTimeMs().getMutableMap() .clear(); return this; } /** * map<string, double> facetTimeMs = 9; */ public Builder removeFacetTimeMs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableFacetTimeMs().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableFacetTimeMs() { bitField0_ |= 0x00000100; return internalGetMutableFacetTimeMs().getMutableMap(); } /** * map<string, double> facetTimeMs = 9; */ public Builder putFacetTimeMs( java.lang.String key, double value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableFacetTimeMs().getMutableMap() .put(key, value); bitField0_ |= 0x00000100; return this; } /** * map<string, double> facetTimeMs = 9; */ public Builder putAllFacetTimeMs( java.util.Map values) { internalGetMutableFacetTimeMs().getMutableMap() .putAll(values); bitField0_ |= 0x00000100; return this; } private double rescoreTimeMs_ ; /** * double rescoreTimeMs = 10; * @return The rescoreTimeMs. */ @java.lang.Override public double getRescoreTimeMs() { return rescoreTimeMs_; } /** * double rescoreTimeMs = 10; * @param value The rescoreTimeMs to set. * @return This builder for chaining. */ public Builder setRescoreTimeMs(double value) { rescoreTimeMs_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * double rescoreTimeMs = 10; * @return This builder for chaining. */ public Builder clearRescoreTimeMs() { bitField0_ = (bitField0_ & ~0x00000200); rescoreTimeMs_ = 0D; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.Double> rescorersTimeMs_; private com.google.protobuf.MapField internalGetRescorersTimeMs() { if (rescorersTimeMs_ == null) { return com.google.protobuf.MapField.emptyMapField( RescorersTimeMsDefaultEntryHolder.defaultEntry); } return rescorersTimeMs_; } private com.google.protobuf.MapField internalGetMutableRescorersTimeMs() { if (rescorersTimeMs_ == null) { rescorersTimeMs_ = com.google.protobuf.MapField.newMapField( RescorersTimeMsDefaultEntryHolder.defaultEntry); } if (!rescorersTimeMs_.isMutable()) { rescorersTimeMs_ = rescorersTimeMs_.copy(); } bitField0_ |= 0x00000400; onChanged(); return rescorersTimeMs_; } public int getRescorersTimeMsCount() { return internalGetRescorersTimeMs().getMap().size(); } /** * map<string, double> rescorersTimeMs = 11; */ @java.lang.Override public boolean containsRescorersTimeMs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetRescorersTimeMs().getMap().containsKey(key); } /** * Use {@link #getRescorersTimeMsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getRescorersTimeMs() { return getRescorersTimeMsMap(); } /** * map<string, double> rescorersTimeMs = 11; */ @java.lang.Override public java.util.Map getRescorersTimeMsMap() { return internalGetRescorersTimeMs().getMap(); } /** * map<string, double> rescorersTimeMs = 11; */ @java.lang.Override public double getRescorersTimeMsOrDefault( java.lang.String key, double defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetRescorersTimeMs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, double> rescorersTimeMs = 11; */ @java.lang.Override public double getRescorersTimeMsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetRescorersTimeMs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearRescorersTimeMs() { bitField0_ = (bitField0_ & ~0x00000400); internalGetMutableRescorersTimeMs().getMutableMap() .clear(); return this; } /** * map<string, double> rescorersTimeMs = 11; */ public Builder removeRescorersTimeMs( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableRescorersTimeMs().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableRescorersTimeMs() { bitField0_ |= 0x00000400; return internalGetMutableRescorersTimeMs().getMutableMap(); } /** * map<string, double> rescorersTimeMs = 11; */ public Builder putRescorersTimeMs( java.lang.String key, double value) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableRescorersTimeMs().getMutableMap() .put(key, value); bitField0_ |= 0x00000400; return this; } /** * map<string, double> rescorersTimeMs = 11; */ public Builder putAllRescorersTimeMs( java.util.Map values) { internalGetMutableRescorersTimeMs().getMutableMap() .putAll(values); bitField0_ |= 0x00000400; return this; } private static final class InnerHitsDiagnosticsConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics build(com.yelp.nrtsearch.server.grpc.SearchResponse.DiagnosticsOrBuilder val) { if (val instanceof com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics) { return (com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics) val; } return ((com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return InnerHitsDiagnosticsDefaultEntryHolder.defaultEntry; } }; private static final InnerHitsDiagnosticsConverter innerHitsDiagnosticsConverter = new InnerHitsDiagnosticsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, com.yelp.nrtsearch.server.grpc.SearchResponse.DiagnosticsOrBuilder, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.Builder> innerHitsDiagnostics_; private com.google.protobuf.MapFieldBuilder internalGetInnerHitsDiagnostics() { if (innerHitsDiagnostics_ == null) { return new com.google.protobuf.MapFieldBuilder<>(innerHitsDiagnosticsConverter); } return innerHitsDiagnostics_; } private com.google.protobuf.MapFieldBuilder internalGetMutableInnerHitsDiagnostics() { if (innerHitsDiagnostics_ == null) { innerHitsDiagnostics_ = new com.google.protobuf.MapFieldBuilder<>(innerHitsDiagnosticsConverter); } bitField0_ |= 0x00000800; onChanged(); return innerHitsDiagnostics_; } public int getInnerHitsDiagnosticsCount() { return internalGetInnerHitsDiagnostics().ensureBuilderMap().size(); } /** * map<string, .luceneserver.SearchResponse.Diagnostics> innerHitsDiagnostics = 12; */ @java.lang.Override public boolean containsInnerHitsDiagnostics( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetInnerHitsDiagnostics().ensureBuilderMap().containsKey(key); } /** * Use {@link #getInnerHitsDiagnosticsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getInnerHitsDiagnostics() { return getInnerHitsDiagnosticsMap(); } /** * map<string, .luceneserver.SearchResponse.Diagnostics> innerHitsDiagnostics = 12; */ @java.lang.Override public java.util.Map getInnerHitsDiagnosticsMap() { return internalGetInnerHitsDiagnostics().getImmutableMap(); } /** * map<string, .luceneserver.SearchResponse.Diagnostics> innerHitsDiagnostics = 12; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics getInnerHitsDiagnosticsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableInnerHitsDiagnostics().ensureBuilderMap(); return map.containsKey(key) ? innerHitsDiagnosticsConverter.build(map.get(key)) : defaultValue; } /** * map<string, .luceneserver.SearchResponse.Diagnostics> innerHitsDiagnostics = 12; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics getInnerHitsDiagnosticsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableInnerHitsDiagnostics().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return innerHitsDiagnosticsConverter.build(map.get(key)); } public Builder clearInnerHitsDiagnostics() { bitField0_ = (bitField0_ & ~0x00000800); internalGetMutableInnerHitsDiagnostics().clear(); return this; } /** * map<string, .luceneserver.SearchResponse.Diagnostics> innerHitsDiagnostics = 12; */ public Builder removeInnerHitsDiagnostics( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableInnerHitsDiagnostics().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableInnerHitsDiagnostics() { bitField0_ |= 0x00000800; return internalGetMutableInnerHitsDiagnostics().ensureMessageMap(); } /** * map<string, .luceneserver.SearchResponse.Diagnostics> innerHitsDiagnostics = 12; */ public Builder putInnerHitsDiagnostics( java.lang.String key, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableInnerHitsDiagnostics().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000800; return this; } /** * map<string, .luceneserver.SearchResponse.Diagnostics> innerHitsDiagnostics = 12; */ public Builder putAllInnerHitsDiagnostics( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableInnerHitsDiagnostics().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000800; return this; } /** * map<string, .luceneserver.SearchResponse.Diagnostics> innerHitsDiagnostics = 12; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.Builder putInnerHitsDiagnosticsBuilderIfAbsent( java.lang.String key) { java.util.Map builderMap = internalGetMutableInnerHitsDiagnostics().ensureBuilderMap(); com.yelp.nrtsearch.server.grpc.SearchResponse.DiagnosticsOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics) { entry = ((com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics) entry).toBuilder(); builderMap.put(key, entry); } return (com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.Builder) entry; } private java.util.List vectorDiagnostics_ = java.util.Collections.emptyList(); private void ensureVectorDiagnosticsIsMutable() { if (!((bitField0_ & 0x00001000) != 0)) { vectorDiagnostics_ = new java.util.ArrayList(vectorDiagnostics_); bitField0_ |= 0x00001000; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnosticsOrBuilder> vectorDiagnosticsBuilder_; /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public java.util.List getVectorDiagnosticsList() { if (vectorDiagnosticsBuilder_ == null) { return java.util.Collections.unmodifiableList(vectorDiagnostics_); } else { return vectorDiagnosticsBuilder_.getMessageList(); } } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public int getVectorDiagnosticsCount() { if (vectorDiagnosticsBuilder_ == null) { return vectorDiagnostics_.size(); } else { return vectorDiagnosticsBuilder_.getCount(); } } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics getVectorDiagnostics(int index) { if (vectorDiagnosticsBuilder_ == null) { return vectorDiagnostics_.get(index); } else { return vectorDiagnosticsBuilder_.getMessage(index); } } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public Builder setVectorDiagnostics( int index, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics value) { if (vectorDiagnosticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVectorDiagnosticsIsMutable(); vectorDiagnostics_.set(index, value); onChanged(); } else { vectorDiagnosticsBuilder_.setMessage(index, value); } return this; } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public Builder setVectorDiagnostics( int index, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.Builder builderForValue) { if (vectorDiagnosticsBuilder_ == null) { ensureVectorDiagnosticsIsMutable(); vectorDiagnostics_.set(index, builderForValue.build()); onChanged(); } else { vectorDiagnosticsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public Builder addVectorDiagnostics(com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics value) { if (vectorDiagnosticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVectorDiagnosticsIsMutable(); vectorDiagnostics_.add(value); onChanged(); } else { vectorDiagnosticsBuilder_.addMessage(value); } return this; } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public Builder addVectorDiagnostics( int index, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics value) { if (vectorDiagnosticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureVectorDiagnosticsIsMutable(); vectorDiagnostics_.add(index, value); onChanged(); } else { vectorDiagnosticsBuilder_.addMessage(index, value); } return this; } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public Builder addVectorDiagnostics( com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.Builder builderForValue) { if (vectorDiagnosticsBuilder_ == null) { ensureVectorDiagnosticsIsMutable(); vectorDiagnostics_.add(builderForValue.build()); onChanged(); } else { vectorDiagnosticsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public Builder addVectorDiagnostics( int index, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.Builder builderForValue) { if (vectorDiagnosticsBuilder_ == null) { ensureVectorDiagnosticsIsMutable(); vectorDiagnostics_.add(index, builderForValue.build()); onChanged(); } else { vectorDiagnosticsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public Builder addAllVectorDiagnostics( java.lang.Iterable values) { if (vectorDiagnosticsBuilder_ == null) { ensureVectorDiagnosticsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, vectorDiagnostics_); onChanged(); } else { vectorDiagnosticsBuilder_.addAllMessages(values); } return this; } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public Builder clearVectorDiagnostics() { if (vectorDiagnosticsBuilder_ == null) { vectorDiagnostics_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { vectorDiagnosticsBuilder_.clear(); } return this; } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public Builder removeVectorDiagnostics(int index) { if (vectorDiagnosticsBuilder_ == null) { ensureVectorDiagnosticsIsMutable(); vectorDiagnostics_.remove(index); onChanged(); } else { vectorDiagnosticsBuilder_.remove(index); } return this; } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.Builder getVectorDiagnosticsBuilder( int index) { return getVectorDiagnosticsFieldBuilder().getBuilder(index); } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnosticsOrBuilder getVectorDiagnosticsOrBuilder( int index) { if (vectorDiagnosticsBuilder_ == null) { return vectorDiagnostics_.get(index); } else { return vectorDiagnosticsBuilder_.getMessageOrBuilder(index); } } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public java.util.List getVectorDiagnosticsOrBuilderList() { if (vectorDiagnosticsBuilder_ != null) { return vectorDiagnosticsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(vectorDiagnostics_); } } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.Builder addVectorDiagnosticsBuilder() { return getVectorDiagnosticsFieldBuilder().addBuilder( com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.getDefaultInstance()); } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.Builder addVectorDiagnosticsBuilder( int index) { return getVectorDiagnosticsFieldBuilder().addBuilder( index, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.getDefaultInstance()); } /** * repeated .luceneserver.SearchResponse.Diagnostics.VectorDiagnostics vectorDiagnostics = 13; */ public java.util.List getVectorDiagnosticsBuilderList() { return getVectorDiagnosticsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnosticsOrBuilder> getVectorDiagnosticsFieldBuilder() { if (vectorDiagnosticsBuilder_ == null) { vectorDiagnosticsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnostics.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.VectorDiagnosticsOrBuilder>( vectorDiagnostics_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); vectorDiagnostics_ = null; } return vectorDiagnosticsBuilder_; } @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.SearchResponse.Diagnostics) } // @@protoc_insertion_point(class_scope:luceneserver.SearchResponse.Diagnostics) private static final com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics(); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Diagnostics 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.SearchResponse.Diagnostics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HitOrBuilder extends // @@protoc_insertion_point(interface_extends:luceneserver.SearchResponse.Hit) com.google.protobuf.MessageOrBuilder { /** * int32 luceneDocId = 1; * @return The luceneDocId. */ int getLuceneDocId(); /** * double score = 2; * @return The score. */ double getScore(); /** *
     * Field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> fields = 3; */ int getFieldsCount(); /** *
     * Field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> fields = 3; */ boolean containsFields( java.lang.String key); /** * Use {@link #getFieldsMap()} instead. */ @java.lang.Deprecated java.util.Map getFields(); /** *
     * Field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> fields = 3; */ java.util.Map getFieldsMap(); /** *
     * Field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> fields = 3; */ /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue getFieldsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue defaultValue); /** *
     * Field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> fields = 3; */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue getFieldsOrThrow( java.lang.String key); /** *
     * Sorted field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> sortedFields = 4; */ int getSortedFieldsCount(); /** *
     * Sorted field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> sortedFields = 4; */ boolean containsSortedFields( java.lang.String key); /** * Use {@link #getSortedFieldsMap()} instead. */ @java.lang.Deprecated java.util.Map getSortedFields(); /** *
     * Sorted field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> sortedFields = 4; */ java.util.Map getSortedFieldsMap(); /** *
     * Sorted field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> sortedFields = 4; */ /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue getSortedFieldsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue defaultValue); /** *
     * Sorted field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> sortedFields = 4; */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue getSortedFieldsOrThrow( java.lang.String key); /** *
     * Field name to highlighted text fragments
     * 
* * map<string, .luceneserver.SearchResponse.Hit.Highlights> highlights = 5; */ int getHighlightsCount(); /** *
     * Field name to highlighted text fragments
     * 
* * map<string, .luceneserver.SearchResponse.Hit.Highlights> highlights = 5; */ boolean containsHighlights( java.lang.String key); /** * Use {@link #getHighlightsMap()} instead. */ @java.lang.Deprecated java.util.Map getHighlights(); /** *
     * Field name to highlighted text fragments
     * 
* * map<string, .luceneserver.SearchResponse.Hit.Highlights> highlights = 5; */ java.util.Map getHighlightsMap(); /** *
     * Field name to highlighted text fragments
     * 
* * map<string, .luceneserver.SearchResponse.Hit.Highlights> highlights = 5; */ /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights getHighlightsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights defaultValue); /** *
     * Field name to highlighted text fragments
     * 
* * map<string, .luceneserver.SearchResponse.Hit.Highlights> highlights = 5; */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights getHighlightsOrThrow( java.lang.String key); /** *
     * Lucene explanation of the hit
     * 
* * string explain = 6; * @return The explain. */ java.lang.String getExplain(); /** *
     * Lucene explanation of the hit
     * 
* * string explain = 6; * @return The bytes for explain. */ com.google.protobuf.ByteString getExplainBytes(); /** *
     * InnerHits for each hit
     * 
* * map<string, .luceneserver.HitsResult> innerHits = 7; */ int getInnerHitsCount(); /** *
     * InnerHits for each hit
     * 
* * map<string, .luceneserver.HitsResult> innerHits = 7; */ boolean containsInnerHits( java.lang.String key); /** * Use {@link #getInnerHitsMap()} instead. */ @java.lang.Deprecated java.util.Map getInnerHits(); /** *
     * InnerHits for each hit
     * 
* * map<string, .luceneserver.HitsResult> innerHits = 7; */ java.util.Map getInnerHitsMap(); /** *
     * InnerHits for each hit
     * 
* * map<string, .luceneserver.HitsResult> innerHits = 7; */ /* nullable */ com.yelp.nrtsearch.server.grpc.HitsResult getInnerHitsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.HitsResult defaultValue); /** *
     * InnerHits for each hit
     * 
* * map<string, .luceneserver.HitsResult> innerHits = 7; */ com.yelp.nrtsearch.server.grpc.HitsResult getInnerHitsOrThrow( java.lang.String key); } /** * Protobuf type {@code luceneserver.SearchResponse.Hit} */ public static final class Hit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.SearchResponse.Hit) HitOrBuilder { private static final long serialVersionUID = 0L; // Use Hit.newBuilder() to construct. private Hit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Hit() { explain_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Hit(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 3: return internalGetFields(); case 4: return internalGetSortedFields(); case 5: return internalGetHighlights(); case 7: return internalGetInnerHits(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.class, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Builder.class); } public interface FieldValueOrBuilder extends // @@protoc_insertion_point(interface_extends:luceneserver.SearchResponse.Hit.FieldValue) com.google.protobuf.MessageOrBuilder { /** *
       * Value for ATOM and TEXT  FieldType
       * 
* * string textValue = 1; * @return Whether the textValue field is set. */ boolean hasTextValue(); /** *
       * Value for ATOM and TEXT  FieldType
       * 
* * string textValue = 1; * @return The textValue. */ java.lang.String getTextValue(); /** *
       * Value for ATOM and TEXT  FieldType
       * 
* * string textValue = 1; * @return The bytes for textValue. */ com.google.protobuf.ByteString getTextValueBytes(); /** *
       * Value for BOOLEAN FieldType
       * 
* * bool booleanValue = 2; * @return Whether the booleanValue field is set. */ boolean hasBooleanValue(); /** *
       * Value for BOOLEAN FieldType
       * 
* * bool booleanValue = 2; * @return The booleanValue. */ boolean getBooleanValue(); /** *
       * Value for INT FieldType
       * 
* * int32 intValue = 3; * @return Whether the intValue field is set. */ boolean hasIntValue(); /** *
       * Value for INT FieldType
       * 
* * int32 intValue = 3; * @return The intValue. */ int getIntValue(); /** *
       * Value for LONG and DATE_TIME (as milliseconds since epoch in UTC zone) FieldType
       * 
* * int64 longValue = 4; * @return Whether the longValue field is set. */ boolean hasLongValue(); /** *
       * Value for LONG and DATE_TIME (as milliseconds since epoch in UTC zone) FieldType
       * 
* * int64 longValue = 4; * @return The longValue. */ long getLongValue(); /** *
       * Value for FLOAT FieldType
       * 
* * float floatValue = 5; * @return Whether the floatValue field is set. */ boolean hasFloatValue(); /** *
       * Value for FLOAT FieldType
       * 
* * float floatValue = 5; * @return The floatValue. */ float getFloatValue(); /** *
       * Value for DOUBLE FieldType
       * 
* * double doubleValue = 6; * @return Whether the doubleValue field is set. */ boolean hasDoubleValue(); /** *
       * Value for DOUBLE FieldType
       * 
* * double doubleValue = 6; * @return The doubleValue. */ double getDoubleValue(); /** *
       * Value for LAT_LON FieldType
       * 
* * .google.type.LatLng latLngValue = 7; * @return Whether the latLngValue field is set. */ boolean hasLatLngValue(); /** *
       * Value for LAT_LON FieldType
       * 
* * .google.type.LatLng latLngValue = 7; * @return The latLngValue. */ com.google.type.LatLng getLatLngValue(); /** *
       * Value for LAT_LON FieldType
       * 
* * .google.type.LatLng latLngValue = 7; */ com.google.type.LatLngOrBuilder getLatLngValueOrBuilder(); /** *
       * Value for structured data
       * 
* * .google.protobuf.Struct structValue = 8; * @return Whether the structValue field is set. */ boolean hasStructValue(); /** *
       * Value for structured data
       * 
* * .google.protobuf.Struct structValue = 8; * @return The structValue. */ com.google.protobuf.Struct getStructValue(); /** *
       * Value for structured data
       * 
* * .google.protobuf.Struct structValue = 8; */ com.google.protobuf.StructOrBuilder getStructValueOrBuilder(); /** *
       * Value for VECTOR FieldType
       * 
* * .luceneserver.SearchResponse.Hit.FieldValue.Vector vectorValue = 9; * @return Whether the vectorValue field is set. */ boolean hasVectorValue(); /** *
       * Value for VECTOR FieldType
       * 
* * .luceneserver.SearchResponse.Hit.FieldValue.Vector vectorValue = 9; * @return The vectorValue. */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector getVectorValue(); /** *
       * Value for VECTOR FieldType
       * 
* * .luceneserver.SearchResponse.Hit.FieldValue.Vector vectorValue = 9; */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.VectorOrBuilder getVectorValueOrBuilder(); /** * .google.protobuf.ListValue listValue = 10; * @return Whether the listValue field is set. */ boolean hasListValue(); /** * .google.protobuf.ListValue listValue = 10; * @return The listValue. */ com.google.protobuf.ListValue getListValue(); /** * .google.protobuf.ListValue listValue = 10; */ com.google.protobuf.ListValueOrBuilder getListValueOrBuilder(); com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.FieldValuesCase getFieldValuesCase(); } /** * Protobuf type {@code luceneserver.SearchResponse.Hit.FieldValue} */ public static final class FieldValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.SearchResponse.Hit.FieldValue) FieldValueOrBuilder { private static final long serialVersionUID = 0L; // Use FieldValue.newBuilder() to construct. private FieldValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FieldValue() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FieldValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_FieldValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_FieldValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.class, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Builder.class); } public interface VectorOrBuilder extends // @@protoc_insertion_point(interface_extends:luceneserver.SearchResponse.Hit.FieldValue.Vector) com.google.protobuf.MessageOrBuilder { /** *
         * Float vector value
         * 
* * repeated float value = 1; * @return A list containing the value. */ java.util.List getValueList(); /** *
         * Float vector value
         * 
* * repeated float value = 1; * @return The count of value. */ int getValueCount(); /** *
         * Float vector value
         * 
* * repeated float value = 1; * @param index The index of the element to return. * @return The value at the given index. */ float getValue(int index); /** *
         * Byte vector value
         * 
* * bytes bytes_value = 2; * @return The bytesValue. */ com.google.protobuf.ByteString getBytesValue(); } /** * Protobuf type {@code luceneserver.SearchResponse.Hit.FieldValue.Vector} */ public static final class Vector extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.SearchResponse.Hit.FieldValue.Vector) VectorOrBuilder { private static final long serialVersionUID = 0L; // Use Vector.newBuilder() to construct. private Vector(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Vector() { value_ = emptyFloatList(); bytesValue_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Vector(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_FieldValue_Vector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_FieldValue_Vector_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.class, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.Internal.FloatList value_ = emptyFloatList(); /** *
         * Float vector value
         * 
* * repeated float value = 1; * @return A list containing the value. */ @java.lang.Override public java.util.List getValueList() { return value_; } /** *
         * Float vector value
         * 
* * repeated float value = 1; * @return The count of value. */ public int getValueCount() { return value_.size(); } /** *
         * Float vector value
         * 
* * repeated float value = 1; * @param index The index of the element to return. * @return The value at the given index. */ public float getValue(int index) { return value_.getFloat(index); } private int valueMemoizedSerializedSize = -1; public static final int BYTES_VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString bytesValue_ = com.google.protobuf.ByteString.EMPTY; /** *
         * Byte vector value
         * 
* * bytes bytes_value = 2; * @return The bytesValue. */ @java.lang.Override public com.google.protobuf.ByteString getBytesValue() { return bytesValue_; } 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 { getSerializedSize(); if (getValueList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(valueMemoizedSerializedSize); } for (int i = 0; i < value_.size(); i++) { output.writeFloatNoTag(value_.getFloat(i)); } if (!bytesValue_.isEmpty()) { output.writeBytes(2, bytesValue_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; dataSize = 4 * getValueList().size(); size += dataSize; if (!getValueList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } valueMemoizedSerializedSize = dataSize; } if (!bytesValue_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, bytesValue_); } 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.SearchResponse.Hit.FieldValue.Vector)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector other = (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector) obj; if (!getValueList() .equals(other.getValueList())) return false; if (!getBytesValue() .equals(other.getBytesValue())) 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 (getValueCount() > 0) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValueList().hashCode(); } hash = (37 * hash) + BYTES_VALUE_FIELD_NUMBER; hash = (53 * hash) + getBytesValue().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector 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.SearchResponse.Hit.FieldValue.Vector parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector 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.SearchResponse.Hit.FieldValue.Vector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector 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.SearchResponse.Hit.FieldValue.Vector parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector 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.SearchResponse.Hit.FieldValue.Vector parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector 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.SearchResponse.Hit.FieldValue.Vector 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.SearchResponse.Hit.FieldValue.Vector 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.SearchResponse.Hit.FieldValue.Vector 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.SearchResponse.Hit.FieldValue.Vector} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.SearchResponse.Hit.FieldValue.Vector) com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.VectorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_FieldValue_Vector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_FieldValue_Vector_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.class, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; value_ = emptyFloatList(); bytesValue_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_FieldValue_Vector_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector build() { com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector buildPartial() { com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector result = new com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { value_.makeImmutable(); result.value_ = value_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.bytesValue_ = bytesValue_; } } @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.SearchResponse.Hit.FieldValue.Vector) { return mergeFrom((com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector other) { if (other == com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.getDefaultInstance()) return this; if (!other.value_.isEmpty()) { if (value_.isEmpty()) { value_ = other.value_; value_.makeImmutable(); bitField0_ |= 0x00000001; } else { ensureValueIsMutable(); value_.addAll(other.value_); } onChanged(); } if (other.getBytesValue() != com.google.protobuf.ByteString.EMPTY) { setBytesValue(other.getBytesValue()); } 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 13: { float v = input.readFloat(); ensureValueIsMutable(); value_.addFloat(v); break; } // case 13 case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); int alloc = length > 4096 ? 4096 : length; ensureValueIsMutable(alloc / 4); while (input.getBytesUntilLimit() > 0) { value_.addFloat(input.readFloat()); } input.popLimit(limit); break; } // case 10 case 18: { bytesValue_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Internal.FloatList value_ = emptyFloatList(); private void ensureValueIsMutable() { if (!value_.isModifiable()) { value_ = makeMutableCopy(value_); } bitField0_ |= 0x00000001; } private void ensureValueIsMutable(int capacity) { if (!value_.isModifiable()) { value_ = makeMutableCopy(value_, capacity); } bitField0_ |= 0x00000001; } /** *
           * Float vector value
           * 
* * repeated float value = 1; * @return A list containing the value. */ public java.util.List getValueList() { value_.makeImmutable(); return value_; } /** *
           * Float vector value
           * 
* * repeated float value = 1; * @return The count of value. */ public int getValueCount() { return value_.size(); } /** *
           * Float vector value
           * 
* * repeated float value = 1; * @param index The index of the element to return. * @return The value at the given index. */ public float getValue(int index) { return value_.getFloat(index); } /** *
           * Float vector value
           * 
* * repeated float value = 1; * @param index The index to set the value at. * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( int index, float value) { ensureValueIsMutable(); value_.setFloat(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
           * Float vector value
           * 
* * repeated float value = 1; * @param value The value to add. * @return This builder for chaining. */ public Builder addValue(float value) { ensureValueIsMutable(); value_.addFloat(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
           * Float vector value
           * 
* * repeated float value = 1; * @param values The value to add. * @return This builder for chaining. */ public Builder addAllValue( java.lang.Iterable values) { ensureValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, value_); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
           * Float vector value
           * 
* * repeated float value = 1; * @return This builder for chaining. */ public Builder clearValue() { value_ = emptyFloatList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private com.google.protobuf.ByteString bytesValue_ = com.google.protobuf.ByteString.EMPTY; /** *
           * Byte vector value
           * 
* * bytes bytes_value = 2; * @return The bytesValue. */ @java.lang.Override public com.google.protobuf.ByteString getBytesValue() { return bytesValue_; } /** *
           * Byte vector value
           * 
* * bytes bytes_value = 2; * @param value The bytesValue to set. * @return This builder for chaining. */ public Builder setBytesValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bytesValue_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
           * Byte vector value
           * 
* * bytes bytes_value = 2; * @return This builder for chaining. */ public Builder clearBytesValue() { bitField0_ = (bitField0_ & ~0x00000002); bytesValue_ = getDefaultInstance().getBytesValue(); 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.SearchResponse.Hit.FieldValue.Vector) } // @@protoc_insertion_point(class_scope:luceneserver.SearchResponse.Hit.FieldValue.Vector) private static final com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector(); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Vector 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.SearchResponse.Hit.FieldValue.Vector getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int fieldValuesCase_ = 0; @SuppressWarnings("serial") private java.lang.Object fieldValues_; public enum FieldValuesCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TEXTVALUE(1), BOOLEANVALUE(2), INTVALUE(3), LONGVALUE(4), FLOATVALUE(5), DOUBLEVALUE(6), LATLNGVALUE(7), STRUCTVALUE(8), VECTORVALUE(9), LISTVALUE(10), FIELDVALUES_NOT_SET(0); private final int value; private FieldValuesCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static FieldValuesCase valueOf(int value) { return forNumber(value); } public static FieldValuesCase forNumber(int value) { switch (value) { case 1: return TEXTVALUE; case 2: return BOOLEANVALUE; case 3: return INTVALUE; case 4: return LONGVALUE; case 5: return FLOATVALUE; case 6: return DOUBLEVALUE; case 7: return LATLNGVALUE; case 8: return STRUCTVALUE; case 9: return VECTORVALUE; case 10: return LISTVALUE; case 0: return FIELDVALUES_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public FieldValuesCase getFieldValuesCase() { return FieldValuesCase.forNumber( fieldValuesCase_); } public static final int TEXTVALUE_FIELD_NUMBER = 1; /** *
       * Value for ATOM and TEXT  FieldType
       * 
* * string textValue = 1; * @return Whether the textValue field is set. */ public boolean hasTextValue() { return fieldValuesCase_ == 1; } /** *
       * Value for ATOM and TEXT  FieldType
       * 
* * string textValue = 1; * @return The textValue. */ public java.lang.String getTextValue() { java.lang.Object ref = ""; if (fieldValuesCase_ == 1) { ref = fieldValues_; } 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(); if (fieldValuesCase_ == 1) { fieldValues_ = s; } return s; } } /** *
       * Value for ATOM and TEXT  FieldType
       * 
* * string textValue = 1; * @return The bytes for textValue. */ public com.google.protobuf.ByteString getTextValueBytes() { java.lang.Object ref = ""; if (fieldValuesCase_ == 1) { ref = fieldValues_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldValuesCase_ == 1) { fieldValues_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BOOLEANVALUE_FIELD_NUMBER = 2; /** *
       * Value for BOOLEAN FieldType
       * 
* * bool booleanValue = 2; * @return Whether the booleanValue field is set. */ @java.lang.Override public boolean hasBooleanValue() { return fieldValuesCase_ == 2; } /** *
       * Value for BOOLEAN FieldType
       * 
* * bool booleanValue = 2; * @return The booleanValue. */ @java.lang.Override public boolean getBooleanValue() { if (fieldValuesCase_ == 2) { return (java.lang.Boolean) fieldValues_; } return false; } public static final int INTVALUE_FIELD_NUMBER = 3; /** *
       * Value for INT FieldType
       * 
* * int32 intValue = 3; * @return Whether the intValue field is set. */ @java.lang.Override public boolean hasIntValue() { return fieldValuesCase_ == 3; } /** *
       * Value for INT FieldType
       * 
* * int32 intValue = 3; * @return The intValue. */ @java.lang.Override public int getIntValue() { if (fieldValuesCase_ == 3) { return (java.lang.Integer) fieldValues_; } return 0; } public static final int LONGVALUE_FIELD_NUMBER = 4; /** *
       * Value for LONG and DATE_TIME (as milliseconds since epoch in UTC zone) FieldType
       * 
* * int64 longValue = 4; * @return Whether the longValue field is set. */ @java.lang.Override public boolean hasLongValue() { return fieldValuesCase_ == 4; } /** *
       * Value for LONG and DATE_TIME (as milliseconds since epoch in UTC zone) FieldType
       * 
* * int64 longValue = 4; * @return The longValue. */ @java.lang.Override public long getLongValue() { if (fieldValuesCase_ == 4) { return (java.lang.Long) fieldValues_; } return 0L; } public static final int FLOATVALUE_FIELD_NUMBER = 5; /** *
       * Value for FLOAT FieldType
       * 
* * float floatValue = 5; * @return Whether the floatValue field is set. */ @java.lang.Override public boolean hasFloatValue() { return fieldValuesCase_ == 5; } /** *
       * Value for FLOAT FieldType
       * 
* * float floatValue = 5; * @return The floatValue. */ @java.lang.Override public float getFloatValue() { if (fieldValuesCase_ == 5) { return (java.lang.Float) fieldValues_; } return 0F; } public static final int DOUBLEVALUE_FIELD_NUMBER = 6; /** *
       * Value for DOUBLE FieldType
       * 
* * double doubleValue = 6; * @return Whether the doubleValue field is set. */ @java.lang.Override public boolean hasDoubleValue() { return fieldValuesCase_ == 6; } /** *
       * Value for DOUBLE FieldType
       * 
* * double doubleValue = 6; * @return The doubleValue. */ @java.lang.Override public double getDoubleValue() { if (fieldValuesCase_ == 6) { return (java.lang.Double) fieldValues_; } return 0D; } public static final int LATLNGVALUE_FIELD_NUMBER = 7; /** *
       * Value for LAT_LON FieldType
       * 
* * .google.type.LatLng latLngValue = 7; * @return Whether the latLngValue field is set. */ @java.lang.Override public boolean hasLatLngValue() { return fieldValuesCase_ == 7; } /** *
       * Value for LAT_LON FieldType
       * 
* * .google.type.LatLng latLngValue = 7; * @return The latLngValue. */ @java.lang.Override public com.google.type.LatLng getLatLngValue() { if (fieldValuesCase_ == 7) { return (com.google.type.LatLng) fieldValues_; } return com.google.type.LatLng.getDefaultInstance(); } /** *
       * Value for LAT_LON FieldType
       * 
* * .google.type.LatLng latLngValue = 7; */ @java.lang.Override public com.google.type.LatLngOrBuilder getLatLngValueOrBuilder() { if (fieldValuesCase_ == 7) { return (com.google.type.LatLng) fieldValues_; } return com.google.type.LatLng.getDefaultInstance(); } public static final int STRUCTVALUE_FIELD_NUMBER = 8; /** *
       * Value for structured data
       * 
* * .google.protobuf.Struct structValue = 8; * @return Whether the structValue field is set. */ @java.lang.Override public boolean hasStructValue() { return fieldValuesCase_ == 8; } /** *
       * Value for structured data
       * 
* * .google.protobuf.Struct structValue = 8; * @return The structValue. */ @java.lang.Override public com.google.protobuf.Struct getStructValue() { if (fieldValuesCase_ == 8) { return (com.google.protobuf.Struct) fieldValues_; } return com.google.protobuf.Struct.getDefaultInstance(); } /** *
       * Value for structured data
       * 
* * .google.protobuf.Struct structValue = 8; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getStructValueOrBuilder() { if (fieldValuesCase_ == 8) { return (com.google.protobuf.Struct) fieldValues_; } return com.google.protobuf.Struct.getDefaultInstance(); } public static final int VECTORVALUE_FIELD_NUMBER = 9; /** *
       * Value for VECTOR FieldType
       * 
* * .luceneserver.SearchResponse.Hit.FieldValue.Vector vectorValue = 9; * @return Whether the vectorValue field is set. */ @java.lang.Override public boolean hasVectorValue() { return fieldValuesCase_ == 9; } /** *
       * Value for VECTOR FieldType
       * 
* * .luceneserver.SearchResponse.Hit.FieldValue.Vector vectorValue = 9; * @return The vectorValue. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector getVectorValue() { if (fieldValuesCase_ == 9) { return (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector) fieldValues_; } return com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.getDefaultInstance(); } /** *
       * Value for VECTOR FieldType
       * 
* * .luceneserver.SearchResponse.Hit.FieldValue.Vector vectorValue = 9; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.VectorOrBuilder getVectorValueOrBuilder() { if (fieldValuesCase_ == 9) { return (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector) fieldValues_; } return com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.getDefaultInstance(); } public static final int LISTVALUE_FIELD_NUMBER = 10; /** * .google.protobuf.ListValue listValue = 10; * @return Whether the listValue field is set. */ @java.lang.Override public boolean hasListValue() { return fieldValuesCase_ == 10; } /** * .google.protobuf.ListValue listValue = 10; * @return The listValue. */ @java.lang.Override public com.google.protobuf.ListValue getListValue() { if (fieldValuesCase_ == 10) { return (com.google.protobuf.ListValue) fieldValues_; } return com.google.protobuf.ListValue.getDefaultInstance(); } /** * .google.protobuf.ListValue listValue = 10; */ @java.lang.Override public com.google.protobuf.ListValueOrBuilder getListValueOrBuilder() { if (fieldValuesCase_ == 10) { return (com.google.protobuf.ListValue) fieldValues_; } return com.google.protobuf.ListValue.getDefaultInstance(); } 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 (fieldValuesCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldValues_); } if (fieldValuesCase_ == 2) { output.writeBool( 2, (boolean)((java.lang.Boolean) fieldValues_)); } if (fieldValuesCase_ == 3) { output.writeInt32( 3, (int)((java.lang.Integer) fieldValues_)); } if (fieldValuesCase_ == 4) { output.writeInt64( 4, (long)((java.lang.Long) fieldValues_)); } if (fieldValuesCase_ == 5) { output.writeFloat( 5, (float)((java.lang.Float) fieldValues_)); } if (fieldValuesCase_ == 6) { output.writeDouble( 6, (double)((java.lang.Double) fieldValues_)); } if (fieldValuesCase_ == 7) { output.writeMessage(7, (com.google.type.LatLng) fieldValues_); } if (fieldValuesCase_ == 8) { output.writeMessage(8, (com.google.protobuf.Struct) fieldValues_); } if (fieldValuesCase_ == 9) { output.writeMessage(9, (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector) fieldValues_); } if (fieldValuesCase_ == 10) { output.writeMessage(10, (com.google.protobuf.ListValue) fieldValues_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (fieldValuesCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldValues_); } if (fieldValuesCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeBoolSize( 2, (boolean)((java.lang.Boolean) fieldValues_)); } if (fieldValuesCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeInt32Size( 3, (int)((java.lang.Integer) fieldValues_)); } if (fieldValuesCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeInt64Size( 4, (long)((java.lang.Long) fieldValues_)); } if (fieldValuesCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeFloatSize( 5, (float)((java.lang.Float) fieldValues_)); } if (fieldValuesCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize( 6, (double)((java.lang.Double) fieldValues_)); } if (fieldValuesCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (com.google.type.LatLng) fieldValues_); } if (fieldValuesCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (com.google.protobuf.Struct) fieldValues_); } if (fieldValuesCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector) fieldValues_); } if (fieldValuesCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (com.google.protobuf.ListValue) fieldValues_); } 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.SearchResponse.Hit.FieldValue)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue other = (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue) obj; if (!getFieldValuesCase().equals(other.getFieldValuesCase())) return false; switch (fieldValuesCase_) { case 1: if (!getTextValue() .equals(other.getTextValue())) return false; break; case 2: if (getBooleanValue() != other.getBooleanValue()) return false; break; case 3: if (getIntValue() != other.getIntValue()) return false; break; case 4: if (getLongValue() != other.getLongValue()) return false; break; case 5: if (java.lang.Float.floatToIntBits(getFloatValue()) != java.lang.Float.floatToIntBits( other.getFloatValue())) return false; break; case 6: if (java.lang.Double.doubleToLongBits(getDoubleValue()) != java.lang.Double.doubleToLongBits( other.getDoubleValue())) return false; break; case 7: if (!getLatLngValue() .equals(other.getLatLngValue())) return false; break; case 8: if (!getStructValue() .equals(other.getStructValue())) return false; break; case 9: if (!getVectorValue() .equals(other.getVectorValue())) return false; break; case 10: if (!getListValue() .equals(other.getListValue())) return false; break; case 0: default: } 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(); switch (fieldValuesCase_) { case 1: hash = (37 * hash) + TEXTVALUE_FIELD_NUMBER; hash = (53 * hash) + getTextValue().hashCode(); break; case 2: hash = (37 * hash) + BOOLEANVALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBooleanValue()); break; case 3: hash = (37 * hash) + INTVALUE_FIELD_NUMBER; hash = (53 * hash) + getIntValue(); break; case 4: hash = (37 * hash) + LONGVALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getLongValue()); break; case 5: hash = (37 * hash) + FLOATVALUE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getFloatValue()); break; case 6: hash = (37 * hash) + DOUBLEVALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDoubleValue())); break; case 7: hash = (37 * hash) + LATLNGVALUE_FIELD_NUMBER; hash = (53 * hash) + getLatLngValue().hashCode(); break; case 8: hash = (37 * hash) + STRUCTVALUE_FIELD_NUMBER; hash = (53 * hash) + getStructValue().hashCode(); break; case 9: hash = (37 * hash) + VECTORVALUE_FIELD_NUMBER; hash = (53 * hash) + getVectorValue().hashCode(); break; case 10: hash = (37 * hash) + LISTVALUE_FIELD_NUMBER; hash = (53 * hash) + getListValue().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue 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.SearchResponse.Hit.FieldValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue 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.SearchResponse.Hit.FieldValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue 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.SearchResponse.Hit.FieldValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue 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.SearchResponse.Hit.FieldValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue 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.SearchResponse.Hit.FieldValue 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.SearchResponse.Hit.FieldValue 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.SearchResponse.Hit.FieldValue 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.SearchResponse.Hit.FieldValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.SearchResponse.Hit.FieldValue) com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_FieldValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_FieldValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.class, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (latLngValueBuilder_ != null) { latLngValueBuilder_.clear(); } if (structValueBuilder_ != null) { structValueBuilder_.clear(); } if (vectorValueBuilder_ != null) { vectorValueBuilder_.clear(); } if (listValueBuilder_ != null) { listValueBuilder_.clear(); } fieldValuesCase_ = 0; fieldValues_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_FieldValue_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue build() { com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue buildPartial() { com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue result = new com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue result) { int from_bitField0_ = bitField0_; } private void buildPartialOneofs(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue result) { result.fieldValuesCase_ = fieldValuesCase_; result.fieldValues_ = this.fieldValues_; if (fieldValuesCase_ == 7 && latLngValueBuilder_ != null) { result.fieldValues_ = latLngValueBuilder_.build(); } if (fieldValuesCase_ == 8 && structValueBuilder_ != null) { result.fieldValues_ = structValueBuilder_.build(); } if (fieldValuesCase_ == 9 && vectorValueBuilder_ != null) { result.fieldValues_ = vectorValueBuilder_.build(); } if (fieldValuesCase_ == 10 && listValueBuilder_ != null) { result.fieldValues_ = listValueBuilder_.build(); } } @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.SearchResponse.Hit.FieldValue) { return mergeFrom((com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue other) { if (other == com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.getDefaultInstance()) return this; switch (other.getFieldValuesCase()) { case TEXTVALUE: { fieldValuesCase_ = 1; fieldValues_ = other.fieldValues_; onChanged(); break; } case BOOLEANVALUE: { setBooleanValue(other.getBooleanValue()); break; } case INTVALUE: { setIntValue(other.getIntValue()); break; } case LONGVALUE: { setLongValue(other.getLongValue()); break; } case FLOATVALUE: { setFloatValue(other.getFloatValue()); break; } case DOUBLEVALUE: { setDoubleValue(other.getDoubleValue()); break; } case LATLNGVALUE: { mergeLatLngValue(other.getLatLngValue()); break; } case STRUCTVALUE: { mergeStructValue(other.getStructValue()); break; } case VECTORVALUE: { mergeVectorValue(other.getVectorValue()); break; } case LISTVALUE: { mergeListValue(other.getListValue()); break; } case FIELDVALUES_NOT_SET: { break; } } 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: { java.lang.String s = input.readStringRequireUtf8(); fieldValuesCase_ = 1; fieldValues_ = s; break; } // case 10 case 16: { fieldValues_ = input.readBool(); fieldValuesCase_ = 2; break; } // case 16 case 24: { fieldValues_ = input.readInt32(); fieldValuesCase_ = 3; break; } // case 24 case 32: { fieldValues_ = input.readInt64(); fieldValuesCase_ = 4; break; } // case 32 case 45: { fieldValues_ = input.readFloat(); fieldValuesCase_ = 5; break; } // case 45 case 49: { fieldValues_ = input.readDouble(); fieldValuesCase_ = 6; break; } // case 49 case 58: { input.readMessage( getLatLngValueFieldBuilder().getBuilder(), extensionRegistry); fieldValuesCase_ = 7; break; } // case 58 case 66: { input.readMessage( getStructValueFieldBuilder().getBuilder(), extensionRegistry); fieldValuesCase_ = 8; break; } // case 66 case 74: { input.readMessage( getVectorValueFieldBuilder().getBuilder(), extensionRegistry); fieldValuesCase_ = 9; break; } // case 74 case 82: { input.readMessage( getListValueFieldBuilder().getBuilder(), extensionRegistry); fieldValuesCase_ = 10; break; } // case 82 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 fieldValuesCase_ = 0; private java.lang.Object fieldValues_; public FieldValuesCase getFieldValuesCase() { return FieldValuesCase.forNumber( fieldValuesCase_); } public Builder clearFieldValues() { fieldValuesCase_ = 0; fieldValues_ = null; onChanged(); return this; } private int bitField0_; /** *
         * Value for ATOM and TEXT  FieldType
         * 
* * string textValue = 1; * @return Whether the textValue field is set. */ @java.lang.Override public boolean hasTextValue() { return fieldValuesCase_ == 1; } /** *
         * Value for ATOM and TEXT  FieldType
         * 
* * string textValue = 1; * @return The textValue. */ @java.lang.Override public java.lang.String getTextValue() { java.lang.Object ref = ""; if (fieldValuesCase_ == 1) { ref = fieldValues_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (fieldValuesCase_ == 1) { fieldValues_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
         * Value for ATOM and TEXT  FieldType
         * 
* * string textValue = 1; * @return The bytes for textValue. */ @java.lang.Override public com.google.protobuf.ByteString getTextValueBytes() { java.lang.Object ref = ""; if (fieldValuesCase_ == 1) { ref = fieldValues_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (fieldValuesCase_ == 1) { fieldValues_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
         * Value for ATOM and TEXT  FieldType
         * 
* * string textValue = 1; * @param value The textValue to set. * @return This builder for chaining. */ public Builder setTextValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fieldValuesCase_ = 1; fieldValues_ = value; onChanged(); return this; } /** *
         * Value for ATOM and TEXT  FieldType
         * 
* * string textValue = 1; * @return This builder for chaining. */ public Builder clearTextValue() { if (fieldValuesCase_ == 1) { fieldValuesCase_ = 0; fieldValues_ = null; onChanged(); } return this; } /** *
         * Value for ATOM and TEXT  FieldType
         * 
* * string textValue = 1; * @param value The bytes for textValue to set. * @return This builder for chaining. */ public Builder setTextValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fieldValuesCase_ = 1; fieldValues_ = value; onChanged(); return this; } /** *
         * Value for BOOLEAN FieldType
         * 
* * bool booleanValue = 2; * @return Whether the booleanValue field is set. */ public boolean hasBooleanValue() { return fieldValuesCase_ == 2; } /** *
         * Value for BOOLEAN FieldType
         * 
* * bool booleanValue = 2; * @return The booleanValue. */ public boolean getBooleanValue() { if (fieldValuesCase_ == 2) { return (java.lang.Boolean) fieldValues_; } return false; } /** *
         * Value for BOOLEAN FieldType
         * 
* * bool booleanValue = 2; * @param value The booleanValue to set. * @return This builder for chaining. */ public Builder setBooleanValue(boolean value) { fieldValuesCase_ = 2; fieldValues_ = value; onChanged(); return this; } /** *
         * Value for BOOLEAN FieldType
         * 
* * bool booleanValue = 2; * @return This builder for chaining. */ public Builder clearBooleanValue() { if (fieldValuesCase_ == 2) { fieldValuesCase_ = 0; fieldValues_ = null; onChanged(); } return this; } /** *
         * Value for INT FieldType
         * 
* * int32 intValue = 3; * @return Whether the intValue field is set. */ public boolean hasIntValue() { return fieldValuesCase_ == 3; } /** *
         * Value for INT FieldType
         * 
* * int32 intValue = 3; * @return The intValue. */ public int getIntValue() { if (fieldValuesCase_ == 3) { return (java.lang.Integer) fieldValues_; } return 0; } /** *
         * Value for INT FieldType
         * 
* * int32 intValue = 3; * @param value The intValue to set. * @return This builder for chaining. */ public Builder setIntValue(int value) { fieldValuesCase_ = 3; fieldValues_ = value; onChanged(); return this; } /** *
         * Value for INT FieldType
         * 
* * int32 intValue = 3; * @return This builder for chaining. */ public Builder clearIntValue() { if (fieldValuesCase_ == 3) { fieldValuesCase_ = 0; fieldValues_ = null; onChanged(); } return this; } /** *
         * Value for LONG and DATE_TIME (as milliseconds since epoch in UTC zone) FieldType
         * 
* * int64 longValue = 4; * @return Whether the longValue field is set. */ public boolean hasLongValue() { return fieldValuesCase_ == 4; } /** *
         * Value for LONG and DATE_TIME (as milliseconds since epoch in UTC zone) FieldType
         * 
* * int64 longValue = 4; * @return The longValue. */ public long getLongValue() { if (fieldValuesCase_ == 4) { return (java.lang.Long) fieldValues_; } return 0L; } /** *
         * Value for LONG and DATE_TIME (as milliseconds since epoch in UTC zone) FieldType
         * 
* * int64 longValue = 4; * @param value The longValue to set. * @return This builder for chaining. */ public Builder setLongValue(long value) { fieldValuesCase_ = 4; fieldValues_ = value; onChanged(); return this; } /** *
         * Value for LONG and DATE_TIME (as milliseconds since epoch in UTC zone) FieldType
         * 
* * int64 longValue = 4; * @return This builder for chaining. */ public Builder clearLongValue() { if (fieldValuesCase_ == 4) { fieldValuesCase_ = 0; fieldValues_ = null; onChanged(); } return this; } /** *
         * Value for FLOAT FieldType
         * 
* * float floatValue = 5; * @return Whether the floatValue field is set. */ public boolean hasFloatValue() { return fieldValuesCase_ == 5; } /** *
         * Value for FLOAT FieldType
         * 
* * float floatValue = 5; * @return The floatValue. */ public float getFloatValue() { if (fieldValuesCase_ == 5) { return (java.lang.Float) fieldValues_; } return 0F; } /** *
         * Value for FLOAT FieldType
         * 
* * float floatValue = 5; * @param value The floatValue to set. * @return This builder for chaining. */ public Builder setFloatValue(float value) { fieldValuesCase_ = 5; fieldValues_ = value; onChanged(); return this; } /** *
         * Value for FLOAT FieldType
         * 
* * float floatValue = 5; * @return This builder for chaining. */ public Builder clearFloatValue() { if (fieldValuesCase_ == 5) { fieldValuesCase_ = 0; fieldValues_ = null; onChanged(); } return this; } /** *
         * Value for DOUBLE FieldType
         * 
* * double doubleValue = 6; * @return Whether the doubleValue field is set. */ public boolean hasDoubleValue() { return fieldValuesCase_ == 6; } /** *
         * Value for DOUBLE FieldType
         * 
* * double doubleValue = 6; * @return The doubleValue. */ public double getDoubleValue() { if (fieldValuesCase_ == 6) { return (java.lang.Double) fieldValues_; } return 0D; } /** *
         * Value for DOUBLE FieldType
         * 
* * double doubleValue = 6; * @param value The doubleValue to set. * @return This builder for chaining. */ public Builder setDoubleValue(double value) { fieldValuesCase_ = 6; fieldValues_ = value; onChanged(); return this; } /** *
         * Value for DOUBLE FieldType
         * 
* * double doubleValue = 6; * @return This builder for chaining. */ public Builder clearDoubleValue() { if (fieldValuesCase_ == 6) { fieldValuesCase_ = 0; fieldValues_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> latLngValueBuilder_; /** *
         * Value for LAT_LON FieldType
         * 
* * .google.type.LatLng latLngValue = 7; * @return Whether the latLngValue field is set. */ @java.lang.Override public boolean hasLatLngValue() { return fieldValuesCase_ == 7; } /** *
         * Value for LAT_LON FieldType
         * 
* * .google.type.LatLng latLngValue = 7; * @return The latLngValue. */ @java.lang.Override public com.google.type.LatLng getLatLngValue() { if (latLngValueBuilder_ == null) { if (fieldValuesCase_ == 7) { return (com.google.type.LatLng) fieldValues_; } return com.google.type.LatLng.getDefaultInstance(); } else { if (fieldValuesCase_ == 7) { return latLngValueBuilder_.getMessage(); } return com.google.type.LatLng.getDefaultInstance(); } } /** *
         * Value for LAT_LON FieldType
         * 
* * .google.type.LatLng latLngValue = 7; */ public Builder setLatLngValue(com.google.type.LatLng value) { if (latLngValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fieldValues_ = value; onChanged(); } else { latLngValueBuilder_.setMessage(value); } fieldValuesCase_ = 7; return this; } /** *
         * Value for LAT_LON FieldType
         * 
* * .google.type.LatLng latLngValue = 7; */ public Builder setLatLngValue( com.google.type.LatLng.Builder builderForValue) { if (latLngValueBuilder_ == null) { fieldValues_ = builderForValue.build(); onChanged(); } else { latLngValueBuilder_.setMessage(builderForValue.build()); } fieldValuesCase_ = 7; return this; } /** *
         * Value for LAT_LON FieldType
         * 
* * .google.type.LatLng latLngValue = 7; */ public Builder mergeLatLngValue(com.google.type.LatLng value) { if (latLngValueBuilder_ == null) { if (fieldValuesCase_ == 7 && fieldValues_ != com.google.type.LatLng.getDefaultInstance()) { fieldValues_ = com.google.type.LatLng.newBuilder((com.google.type.LatLng) fieldValues_) .mergeFrom(value).buildPartial(); } else { fieldValues_ = value; } onChanged(); } else { if (fieldValuesCase_ == 7) { latLngValueBuilder_.mergeFrom(value); } else { latLngValueBuilder_.setMessage(value); } } fieldValuesCase_ = 7; return this; } /** *
         * Value for LAT_LON FieldType
         * 
* * .google.type.LatLng latLngValue = 7; */ public Builder clearLatLngValue() { if (latLngValueBuilder_ == null) { if (fieldValuesCase_ == 7) { fieldValuesCase_ = 0; fieldValues_ = null; onChanged(); } } else { if (fieldValuesCase_ == 7) { fieldValuesCase_ = 0; fieldValues_ = null; } latLngValueBuilder_.clear(); } return this; } /** *
         * Value for LAT_LON FieldType
         * 
* * .google.type.LatLng latLngValue = 7; */ public com.google.type.LatLng.Builder getLatLngValueBuilder() { return getLatLngValueFieldBuilder().getBuilder(); } /** *
         * Value for LAT_LON FieldType
         * 
* * .google.type.LatLng latLngValue = 7; */ @java.lang.Override public com.google.type.LatLngOrBuilder getLatLngValueOrBuilder() { if ((fieldValuesCase_ == 7) && (latLngValueBuilder_ != null)) { return latLngValueBuilder_.getMessageOrBuilder(); } else { if (fieldValuesCase_ == 7) { return (com.google.type.LatLng) fieldValues_; } return com.google.type.LatLng.getDefaultInstance(); } } /** *
         * Value for LAT_LON FieldType
         * 
* * .google.type.LatLng latLngValue = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder> getLatLngValueFieldBuilder() { if (latLngValueBuilder_ == null) { if (!(fieldValuesCase_ == 7)) { fieldValues_ = com.google.type.LatLng.getDefaultInstance(); } latLngValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.LatLng, com.google.type.LatLng.Builder, com.google.type.LatLngOrBuilder>( (com.google.type.LatLng) fieldValues_, getParentForChildren(), isClean()); fieldValues_ = null; } fieldValuesCase_ = 7; onChanged(); return latLngValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> structValueBuilder_; /** *
         * Value for structured data
         * 
* * .google.protobuf.Struct structValue = 8; * @return Whether the structValue field is set. */ @java.lang.Override public boolean hasStructValue() { return fieldValuesCase_ == 8; } /** *
         * Value for structured data
         * 
* * .google.protobuf.Struct structValue = 8; * @return The structValue. */ @java.lang.Override public com.google.protobuf.Struct getStructValue() { if (structValueBuilder_ == null) { if (fieldValuesCase_ == 8) { return (com.google.protobuf.Struct) fieldValues_; } return com.google.protobuf.Struct.getDefaultInstance(); } else { if (fieldValuesCase_ == 8) { return structValueBuilder_.getMessage(); } return com.google.protobuf.Struct.getDefaultInstance(); } } /** *
         * Value for structured data
         * 
* * .google.protobuf.Struct structValue = 8; */ public Builder setStructValue(com.google.protobuf.Struct value) { if (structValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fieldValues_ = value; onChanged(); } else { structValueBuilder_.setMessage(value); } fieldValuesCase_ = 8; return this; } /** *
         * Value for structured data
         * 
* * .google.protobuf.Struct structValue = 8; */ public Builder setStructValue( com.google.protobuf.Struct.Builder builderForValue) { if (structValueBuilder_ == null) { fieldValues_ = builderForValue.build(); onChanged(); } else { structValueBuilder_.setMessage(builderForValue.build()); } fieldValuesCase_ = 8; return this; } /** *
         * Value for structured data
         * 
* * .google.protobuf.Struct structValue = 8; */ public Builder mergeStructValue(com.google.protobuf.Struct value) { if (structValueBuilder_ == null) { if (fieldValuesCase_ == 8 && fieldValues_ != com.google.protobuf.Struct.getDefaultInstance()) { fieldValues_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) fieldValues_) .mergeFrom(value).buildPartial(); } else { fieldValues_ = value; } onChanged(); } else { if (fieldValuesCase_ == 8) { structValueBuilder_.mergeFrom(value); } else { structValueBuilder_.setMessage(value); } } fieldValuesCase_ = 8; return this; } /** *
         * Value for structured data
         * 
* * .google.protobuf.Struct structValue = 8; */ public Builder clearStructValue() { if (structValueBuilder_ == null) { if (fieldValuesCase_ == 8) { fieldValuesCase_ = 0; fieldValues_ = null; onChanged(); } } else { if (fieldValuesCase_ == 8) { fieldValuesCase_ = 0; fieldValues_ = null; } structValueBuilder_.clear(); } return this; } /** *
         * Value for structured data
         * 
* * .google.protobuf.Struct structValue = 8; */ public com.google.protobuf.Struct.Builder getStructValueBuilder() { return getStructValueFieldBuilder().getBuilder(); } /** *
         * Value for structured data
         * 
* * .google.protobuf.Struct structValue = 8; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getStructValueOrBuilder() { if ((fieldValuesCase_ == 8) && (structValueBuilder_ != null)) { return structValueBuilder_.getMessageOrBuilder(); } else { if (fieldValuesCase_ == 8) { return (com.google.protobuf.Struct) fieldValues_; } return com.google.protobuf.Struct.getDefaultInstance(); } } /** *
         * Value for structured data
         * 
* * .google.protobuf.Struct structValue = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getStructValueFieldBuilder() { if (structValueBuilder_ == null) { if (!(fieldValuesCase_ == 8)) { fieldValues_ = com.google.protobuf.Struct.getDefaultInstance(); } structValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( (com.google.protobuf.Struct) fieldValues_, getParentForChildren(), isClean()); fieldValues_ = null; } fieldValuesCase_ = 8; onChanged(); return structValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.VectorOrBuilder> vectorValueBuilder_; /** *
         * Value for VECTOR FieldType
         * 
* * .luceneserver.SearchResponse.Hit.FieldValue.Vector vectorValue = 9; * @return Whether the vectorValue field is set. */ @java.lang.Override public boolean hasVectorValue() { return fieldValuesCase_ == 9; } /** *
         * Value for VECTOR FieldType
         * 
* * .luceneserver.SearchResponse.Hit.FieldValue.Vector vectorValue = 9; * @return The vectorValue. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector getVectorValue() { if (vectorValueBuilder_ == null) { if (fieldValuesCase_ == 9) { return (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector) fieldValues_; } return com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.getDefaultInstance(); } else { if (fieldValuesCase_ == 9) { return vectorValueBuilder_.getMessage(); } return com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.getDefaultInstance(); } } /** *
         * Value for VECTOR FieldType
         * 
* * .luceneserver.SearchResponse.Hit.FieldValue.Vector vectorValue = 9; */ public Builder setVectorValue(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector value) { if (vectorValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fieldValues_ = value; onChanged(); } else { vectorValueBuilder_.setMessage(value); } fieldValuesCase_ = 9; return this; } /** *
         * Value for VECTOR FieldType
         * 
* * .luceneserver.SearchResponse.Hit.FieldValue.Vector vectorValue = 9; */ public Builder setVectorValue( com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.Builder builderForValue) { if (vectorValueBuilder_ == null) { fieldValues_ = builderForValue.build(); onChanged(); } else { vectorValueBuilder_.setMessage(builderForValue.build()); } fieldValuesCase_ = 9; return this; } /** *
         * Value for VECTOR FieldType
         * 
* * .luceneserver.SearchResponse.Hit.FieldValue.Vector vectorValue = 9; */ public Builder mergeVectorValue(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector value) { if (vectorValueBuilder_ == null) { if (fieldValuesCase_ == 9 && fieldValues_ != com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.getDefaultInstance()) { fieldValues_ = com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.newBuilder((com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector) fieldValues_) .mergeFrom(value).buildPartial(); } else { fieldValues_ = value; } onChanged(); } else { if (fieldValuesCase_ == 9) { vectorValueBuilder_.mergeFrom(value); } else { vectorValueBuilder_.setMessage(value); } } fieldValuesCase_ = 9; return this; } /** *
         * Value for VECTOR FieldType
         * 
* * .luceneserver.SearchResponse.Hit.FieldValue.Vector vectorValue = 9; */ public Builder clearVectorValue() { if (vectorValueBuilder_ == null) { if (fieldValuesCase_ == 9) { fieldValuesCase_ = 0; fieldValues_ = null; onChanged(); } } else { if (fieldValuesCase_ == 9) { fieldValuesCase_ = 0; fieldValues_ = null; } vectorValueBuilder_.clear(); } return this; } /** *
         * Value for VECTOR FieldType
         * 
* * .luceneserver.SearchResponse.Hit.FieldValue.Vector vectorValue = 9; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.Builder getVectorValueBuilder() { return getVectorValueFieldBuilder().getBuilder(); } /** *
         * Value for VECTOR FieldType
         * 
* * .luceneserver.SearchResponse.Hit.FieldValue.Vector vectorValue = 9; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.VectorOrBuilder getVectorValueOrBuilder() { if ((fieldValuesCase_ == 9) && (vectorValueBuilder_ != null)) { return vectorValueBuilder_.getMessageOrBuilder(); } else { if (fieldValuesCase_ == 9) { return (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector) fieldValues_; } return com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.getDefaultInstance(); } } /** *
         * Value for VECTOR FieldType
         * 
* * .luceneserver.SearchResponse.Hit.FieldValue.Vector vectorValue = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.VectorOrBuilder> getVectorValueFieldBuilder() { if (vectorValueBuilder_ == null) { if (!(fieldValuesCase_ == 9)) { fieldValues_ = com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.getDefaultInstance(); } vectorValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.VectorOrBuilder>( (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Vector) fieldValues_, getParentForChildren(), isClean()); fieldValues_ = null; } fieldValuesCase_ = 9; onChanged(); return vectorValueBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> listValueBuilder_; /** * .google.protobuf.ListValue listValue = 10; * @return Whether the listValue field is set. */ @java.lang.Override public boolean hasListValue() { return fieldValuesCase_ == 10; } /** * .google.protobuf.ListValue listValue = 10; * @return The listValue. */ @java.lang.Override public com.google.protobuf.ListValue getListValue() { if (listValueBuilder_ == null) { if (fieldValuesCase_ == 10) { return (com.google.protobuf.ListValue) fieldValues_; } return com.google.protobuf.ListValue.getDefaultInstance(); } else { if (fieldValuesCase_ == 10) { return listValueBuilder_.getMessage(); } return com.google.protobuf.ListValue.getDefaultInstance(); } } /** * .google.protobuf.ListValue listValue = 10; */ public Builder setListValue(com.google.protobuf.ListValue value) { if (listValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fieldValues_ = value; onChanged(); } else { listValueBuilder_.setMessage(value); } fieldValuesCase_ = 10; return this; } /** * .google.protobuf.ListValue listValue = 10; */ public Builder setListValue( com.google.protobuf.ListValue.Builder builderForValue) { if (listValueBuilder_ == null) { fieldValues_ = builderForValue.build(); onChanged(); } else { listValueBuilder_.setMessage(builderForValue.build()); } fieldValuesCase_ = 10; return this; } /** * .google.protobuf.ListValue listValue = 10; */ public Builder mergeListValue(com.google.protobuf.ListValue value) { if (listValueBuilder_ == null) { if (fieldValuesCase_ == 10 && fieldValues_ != com.google.protobuf.ListValue.getDefaultInstance()) { fieldValues_ = com.google.protobuf.ListValue.newBuilder((com.google.protobuf.ListValue) fieldValues_) .mergeFrom(value).buildPartial(); } else { fieldValues_ = value; } onChanged(); } else { if (fieldValuesCase_ == 10) { listValueBuilder_.mergeFrom(value); } else { listValueBuilder_.setMessage(value); } } fieldValuesCase_ = 10; return this; } /** * .google.protobuf.ListValue listValue = 10; */ public Builder clearListValue() { if (listValueBuilder_ == null) { if (fieldValuesCase_ == 10) { fieldValuesCase_ = 0; fieldValues_ = null; onChanged(); } } else { if (fieldValuesCase_ == 10) { fieldValuesCase_ = 0; fieldValues_ = null; } listValueBuilder_.clear(); } return this; } /** * .google.protobuf.ListValue listValue = 10; */ public com.google.protobuf.ListValue.Builder getListValueBuilder() { return getListValueFieldBuilder().getBuilder(); } /** * .google.protobuf.ListValue listValue = 10; */ @java.lang.Override public com.google.protobuf.ListValueOrBuilder getListValueOrBuilder() { if ((fieldValuesCase_ == 10) && (listValueBuilder_ != null)) { return listValueBuilder_.getMessageOrBuilder(); } else { if (fieldValuesCase_ == 10) { return (com.google.protobuf.ListValue) fieldValues_; } return com.google.protobuf.ListValue.getDefaultInstance(); } } /** * .google.protobuf.ListValue listValue = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> getListValueFieldBuilder() { if (listValueBuilder_ == null) { if (!(fieldValuesCase_ == 10)) { fieldValues_ = com.google.protobuf.ListValue.getDefaultInstance(); } listValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder>( (com.google.protobuf.ListValue) fieldValues_, getParentForChildren(), isClean()); fieldValues_ = null; } fieldValuesCase_ = 10; onChanged(); return listValueBuilder_; } @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.SearchResponse.Hit.FieldValue) } // @@protoc_insertion_point(class_scope:luceneserver.SearchResponse.Hit.FieldValue) private static final com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue(); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FieldValue 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.SearchResponse.Hit.FieldValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CompositeFieldValueOrBuilder extends // @@protoc_insertion_point(interface_extends:luceneserver.SearchResponse.Hit.CompositeFieldValue) com.google.protobuf.MessageOrBuilder { /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ java.util.List getFieldValueList(); /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue getFieldValue(int index); /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ int getFieldValueCount(); /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ java.util.List getFieldValueOrBuilderList(); /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValueOrBuilder getFieldValueOrBuilder( int index); } /** * Protobuf type {@code luceneserver.SearchResponse.Hit.CompositeFieldValue} */ public static final class CompositeFieldValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.SearchResponse.Hit.CompositeFieldValue) CompositeFieldValueOrBuilder { private static final long serialVersionUID = 0L; // Use CompositeFieldValue.newBuilder() to construct. private CompositeFieldValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CompositeFieldValue() { fieldValue_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CompositeFieldValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_CompositeFieldValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_CompositeFieldValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.class, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.Builder.class); } public static final int FIELDVALUE_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List fieldValue_; /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ @java.lang.Override public java.util.List getFieldValueList() { return fieldValue_; } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ @java.lang.Override public java.util.List getFieldValueOrBuilderList() { return fieldValue_; } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ @java.lang.Override public int getFieldValueCount() { return fieldValue_.size(); } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue getFieldValue(int index) { return fieldValue_.get(index); } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValueOrBuilder getFieldValueOrBuilder( int index) { return fieldValue_.get(index); } 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 < fieldValue_.size(); i++) { output.writeMessage(3, fieldValue_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < fieldValue_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, fieldValue_.get(i)); } 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.SearchResponse.Hit.CompositeFieldValue)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue other = (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue) obj; if (!getFieldValueList() .equals(other.getFieldValueList())) 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 (getFieldValueCount() > 0) { hash = (37 * hash) + FIELDVALUE_FIELD_NUMBER; hash = (53 * hash) + getFieldValueList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue 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.SearchResponse.Hit.CompositeFieldValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue 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.SearchResponse.Hit.CompositeFieldValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue 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.SearchResponse.Hit.CompositeFieldValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue 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.SearchResponse.Hit.CompositeFieldValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue 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.SearchResponse.Hit.CompositeFieldValue 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.SearchResponse.Hit.CompositeFieldValue 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.SearchResponse.Hit.CompositeFieldValue 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.SearchResponse.Hit.CompositeFieldValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.SearchResponse.Hit.CompositeFieldValue) com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_CompositeFieldValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_CompositeFieldValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.class, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (fieldValueBuilder_ == null) { fieldValue_ = java.util.Collections.emptyList(); } else { fieldValue_ = null; fieldValueBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_CompositeFieldValue_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue build() { com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue buildPartial() { com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue result = new com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue result) { if (fieldValueBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { fieldValue_ = java.util.Collections.unmodifiableList(fieldValue_); bitField0_ = (bitField0_ & ~0x00000001); } result.fieldValue_ = fieldValue_; } else { result.fieldValue_ = fieldValueBuilder_.build(); } } private void buildPartial0(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue result) { int from_bitField0_ = 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.SearchResponse.Hit.CompositeFieldValue) { return mergeFrom((com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue other) { if (other == com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.getDefaultInstance()) return this; if (fieldValueBuilder_ == null) { if (!other.fieldValue_.isEmpty()) { if (fieldValue_.isEmpty()) { fieldValue_ = other.fieldValue_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFieldValueIsMutable(); fieldValue_.addAll(other.fieldValue_); } onChanged(); } } else { if (!other.fieldValue_.isEmpty()) { if (fieldValueBuilder_.isEmpty()) { fieldValueBuilder_.dispose(); fieldValueBuilder_ = null; fieldValue_ = other.fieldValue_; bitField0_ = (bitField0_ & ~0x00000001); fieldValueBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFieldValueFieldBuilder() : null; } else { fieldValueBuilder_.addAllMessages(other.fieldValue_); } } } 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 26: { com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue m = input.readMessage( com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.parser(), extensionRegistry); if (fieldValueBuilder_ == null) { ensureFieldValueIsMutable(); fieldValue_.add(m); } else { fieldValueBuilder_.addMessage(m); } break; } // case 26 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 fieldValue_ = java.util.Collections.emptyList(); private void ensureFieldValueIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { fieldValue_ = new java.util.ArrayList(fieldValue_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValueOrBuilder> fieldValueBuilder_; /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public java.util.List getFieldValueList() { if (fieldValueBuilder_ == null) { return java.util.Collections.unmodifiableList(fieldValue_); } else { return fieldValueBuilder_.getMessageList(); } } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public int getFieldValueCount() { if (fieldValueBuilder_ == null) { return fieldValue_.size(); } else { return fieldValueBuilder_.getCount(); } } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue getFieldValue(int index) { if (fieldValueBuilder_ == null) { return fieldValue_.get(index); } else { return fieldValueBuilder_.getMessage(index); } } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public Builder setFieldValue( int index, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue value) { if (fieldValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldValueIsMutable(); fieldValue_.set(index, value); onChanged(); } else { fieldValueBuilder_.setMessage(index, value); } return this; } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public Builder setFieldValue( int index, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Builder builderForValue) { if (fieldValueBuilder_ == null) { ensureFieldValueIsMutable(); fieldValue_.set(index, builderForValue.build()); onChanged(); } else { fieldValueBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public Builder addFieldValue(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue value) { if (fieldValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldValueIsMutable(); fieldValue_.add(value); onChanged(); } else { fieldValueBuilder_.addMessage(value); } return this; } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public Builder addFieldValue( int index, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue value) { if (fieldValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFieldValueIsMutable(); fieldValue_.add(index, value); onChanged(); } else { fieldValueBuilder_.addMessage(index, value); } return this; } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public Builder addFieldValue( com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Builder builderForValue) { if (fieldValueBuilder_ == null) { ensureFieldValueIsMutable(); fieldValue_.add(builderForValue.build()); onChanged(); } else { fieldValueBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public Builder addFieldValue( int index, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Builder builderForValue) { if (fieldValueBuilder_ == null) { ensureFieldValueIsMutable(); fieldValue_.add(index, builderForValue.build()); onChanged(); } else { fieldValueBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public Builder addAllFieldValue( java.lang.Iterable values) { if (fieldValueBuilder_ == null) { ensureFieldValueIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fieldValue_); onChanged(); } else { fieldValueBuilder_.addAllMessages(values); } return this; } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public Builder clearFieldValue() { if (fieldValueBuilder_ == null) { fieldValue_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { fieldValueBuilder_.clear(); } return this; } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public Builder removeFieldValue(int index) { if (fieldValueBuilder_ == null) { ensureFieldValueIsMutable(); fieldValue_.remove(index); onChanged(); } else { fieldValueBuilder_.remove(index); } return this; } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Builder getFieldValueBuilder( int index) { return getFieldValueFieldBuilder().getBuilder(index); } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValueOrBuilder getFieldValueOrBuilder( int index) { if (fieldValueBuilder_ == null) { return fieldValue_.get(index); } else { return fieldValueBuilder_.getMessageOrBuilder(index); } } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public java.util.List getFieldValueOrBuilderList() { if (fieldValueBuilder_ != null) { return fieldValueBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fieldValue_); } } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Builder addFieldValueBuilder() { return getFieldValueFieldBuilder().addBuilder( com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.getDefaultInstance()); } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Builder addFieldValueBuilder( int index) { return getFieldValueFieldBuilder().addBuilder( index, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.getDefaultInstance()); } /** * repeated .luceneserver.SearchResponse.Hit.FieldValue fieldValue = 3; */ public java.util.List getFieldValueBuilderList() { return getFieldValueFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValueOrBuilder> getFieldValueFieldBuilder() { if (fieldValueBuilder_ == null) { fieldValueBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValue.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.FieldValueOrBuilder>( fieldValue_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); fieldValue_ = null; } return fieldValueBuilder_; } @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.SearchResponse.Hit.CompositeFieldValue) } // @@protoc_insertion_point(class_scope:luceneserver.SearchResponse.Hit.CompositeFieldValue) private static final com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue(); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CompositeFieldValue 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.SearchResponse.Hit.CompositeFieldValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface HighlightsOrBuilder extends // @@protoc_insertion_point(interface_extends:luceneserver.SearchResponse.Hit.Highlights) com.google.protobuf.MessageOrBuilder { /** *
       * Highlighted text fragments
       * 
* * repeated string fragments = 1; * @return A list containing the fragments. */ java.util.List getFragmentsList(); /** *
       * Highlighted text fragments
       * 
* * repeated string fragments = 1; * @return The count of fragments. */ int getFragmentsCount(); /** *
       * Highlighted text fragments
       * 
* * repeated string fragments = 1; * @param index The index of the element to return. * @return The fragments at the given index. */ java.lang.String getFragments(int index); /** *
       * Highlighted text fragments
       * 
* * repeated string fragments = 1; * @param index The index of the value to return. * @return The bytes of the fragments at the given index. */ com.google.protobuf.ByteString getFragmentsBytes(int index); } /** * Protobuf type {@code luceneserver.SearchResponse.Hit.Highlights} */ public static final class Highlights extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.SearchResponse.Hit.Highlights) HighlightsOrBuilder { private static final long serialVersionUID = 0L; // Use Highlights.newBuilder() to construct. private Highlights(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Highlights() { fragments_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Highlights(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_Highlights_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_Highlights_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights.class, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights.Builder.class); } public static final int FRAGMENTS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList fragments_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
       * Highlighted text fragments
       * 
* * repeated string fragments = 1; * @return A list containing the fragments. */ public com.google.protobuf.ProtocolStringList getFragmentsList() { return fragments_; } /** *
       * Highlighted text fragments
       * 
* * repeated string fragments = 1; * @return The count of fragments. */ public int getFragmentsCount() { return fragments_.size(); } /** *
       * Highlighted text fragments
       * 
* * repeated string fragments = 1; * @param index The index of the element to return. * @return The fragments at the given index. */ public java.lang.String getFragments(int index) { return fragments_.get(index); } /** *
       * Highlighted text fragments
       * 
* * repeated string fragments = 1; * @param index The index of the value to return. * @return The bytes of the fragments at the given index. */ public com.google.protobuf.ByteString getFragmentsBytes(int index) { return fragments_.getByteString(index); } 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 < fragments_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fragments_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < fragments_.size(); i++) { dataSize += computeStringSizeNoTag(fragments_.getRaw(i)); } size += dataSize; size += 1 * getFragmentsList().size(); } 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.SearchResponse.Hit.Highlights)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights other = (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights) obj; if (!getFragmentsList() .equals(other.getFragmentsList())) 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 (getFragmentsCount() > 0) { hash = (37 * hash) + FRAGMENTS_FIELD_NUMBER; hash = (53 * hash) + getFragmentsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights 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.SearchResponse.Hit.Highlights parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights 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.SearchResponse.Hit.Highlights parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights 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.SearchResponse.Hit.Highlights parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights 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.SearchResponse.Hit.Highlights parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights 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.SearchResponse.Hit.Highlights 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.SearchResponse.Hit.Highlights 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.SearchResponse.Hit.Highlights 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.SearchResponse.Hit.Highlights} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.SearchResponse.Hit.Highlights) com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.HighlightsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_Highlights_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_Highlights_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights.class, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; fragments_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_Highlights_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights build() { com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights buildPartial() { com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights result = new com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { fragments_.makeImmutable(); result.fragments_ = fragments_; } } @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.SearchResponse.Hit.Highlights) { return mergeFrom((com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights other) { if (other == com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights.getDefaultInstance()) return this; if (!other.fragments_.isEmpty()) { if (fragments_.isEmpty()) { fragments_ = other.fragments_; bitField0_ |= 0x00000001; } else { ensureFragmentsIsMutable(); fragments_.addAll(other.fragments_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); ensureFragmentsIsMutable(); fragments_.add(s); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringArrayList fragments_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureFragmentsIsMutable() { if (!fragments_.isModifiable()) { fragments_ = new com.google.protobuf.LazyStringArrayList(fragments_); } bitField0_ |= 0x00000001; } /** *
         * Highlighted text fragments
         * 
* * repeated string fragments = 1; * @return A list containing the fragments. */ public com.google.protobuf.ProtocolStringList getFragmentsList() { fragments_.makeImmutable(); return fragments_; } /** *
         * Highlighted text fragments
         * 
* * repeated string fragments = 1; * @return The count of fragments. */ public int getFragmentsCount() { return fragments_.size(); } /** *
         * Highlighted text fragments
         * 
* * repeated string fragments = 1; * @param index The index of the element to return. * @return The fragments at the given index. */ public java.lang.String getFragments(int index) { return fragments_.get(index); } /** *
         * Highlighted text fragments
         * 
* * repeated string fragments = 1; * @param index The index of the value to return. * @return The bytes of the fragments at the given index. */ public com.google.protobuf.ByteString getFragmentsBytes(int index) { return fragments_.getByteString(index); } /** *
         * Highlighted text fragments
         * 
* * repeated string fragments = 1; * @param index The index to set the value at. * @param value The fragments to set. * @return This builder for chaining. */ public Builder setFragments( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFragmentsIsMutable(); fragments_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Highlighted text fragments
         * 
* * repeated string fragments = 1; * @param value The fragments to add. * @return This builder for chaining. */ public Builder addFragments( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureFragmentsIsMutable(); fragments_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Highlighted text fragments
         * 
* * repeated string fragments = 1; * @param values The fragments to add. * @return This builder for chaining. */ public Builder addAllFragments( java.lang.Iterable values) { ensureFragmentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, fragments_); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
         * Highlighted text fragments
         * 
* * repeated string fragments = 1; * @return This builder for chaining. */ public Builder clearFragments() { fragments_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } /** *
         * Highlighted text fragments
         * 
* * repeated string fragments = 1; * @param value The bytes of the fragments to add. * @return This builder for chaining. */ public Builder addFragmentsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFragmentsIsMutable(); fragments_.add(value); bitField0_ |= 0x00000001; 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.SearchResponse.Hit.Highlights) } // @@protoc_insertion_point(class_scope:luceneserver.SearchResponse.Hit.Highlights) private static final com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights(); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Highlights 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.SearchResponse.Hit.Highlights getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int LUCENEDOCID_FIELD_NUMBER = 1; private int luceneDocId_ = 0; /** * int32 luceneDocId = 1; * @return The luceneDocId. */ @java.lang.Override public int getLuceneDocId() { return luceneDocId_; } public static final int SCORE_FIELD_NUMBER = 2; private double score_ = 0D; /** * double score = 2; * @return The score. */ @java.lang.Override public double getScore() { return score_; } public static final int FIELDS_FIELD_NUMBER = 3; private static final class FieldsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_FieldsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue> fields_; private com.google.protobuf.MapField internalGetFields() { if (fields_ == null) { return com.google.protobuf.MapField.emptyMapField( FieldsDefaultEntryHolder.defaultEntry); } return fields_; } public int getFieldsCount() { return internalGetFields().getMap().size(); } /** *
     * Field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> fields = 3; */ @java.lang.Override public boolean containsFields( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFields().getMap().containsKey(key); } /** * Use {@link #getFieldsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFields() { return getFieldsMap(); } /** *
     * Field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> fields = 3; */ @java.lang.Override public java.util.Map getFieldsMap() { return internalGetFields().getMap(); } /** *
     * Field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> fields = 3; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue getFieldsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFields().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> fields = 3; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue getFieldsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetFields().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int SORTEDFIELDS_FIELD_NUMBER = 4; private static final class SortedFieldsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_SortedFieldsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue> sortedFields_; private com.google.protobuf.MapField internalGetSortedFields() { if (sortedFields_ == null) { return com.google.protobuf.MapField.emptyMapField( SortedFieldsDefaultEntryHolder.defaultEntry); } return sortedFields_; } public int getSortedFieldsCount() { return internalGetSortedFields().getMap().size(); } /** *
     * Sorted field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> sortedFields = 4; */ @java.lang.Override public boolean containsSortedFields( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetSortedFields().getMap().containsKey(key); } /** * Use {@link #getSortedFieldsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getSortedFields() { return getSortedFieldsMap(); } /** *
     * Sorted field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> sortedFields = 4; */ @java.lang.Override public java.util.Map getSortedFieldsMap() { return internalGetSortedFields().getMap(); } /** *
     * Sorted field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> sortedFields = 4; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue getSortedFieldsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetSortedFields().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Sorted field name to value
     * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> sortedFields = 4; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue getSortedFieldsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetSortedFields().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int HIGHLIGHTS_FIELD_NUMBER = 5; private static final class HighlightsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_HighlightsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights> highlights_; private com.google.protobuf.MapField internalGetHighlights() { if (highlights_ == null) { return com.google.protobuf.MapField.emptyMapField( HighlightsDefaultEntryHolder.defaultEntry); } return highlights_; } public int getHighlightsCount() { return internalGetHighlights().getMap().size(); } /** *
     * Field name to highlighted text fragments
     * 
* * map<string, .luceneserver.SearchResponse.Hit.Highlights> highlights = 5; */ @java.lang.Override public boolean containsHighlights( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetHighlights().getMap().containsKey(key); } /** * Use {@link #getHighlightsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHighlights() { return getHighlightsMap(); } /** *
     * Field name to highlighted text fragments
     * 
* * map<string, .luceneserver.SearchResponse.Hit.Highlights> highlights = 5; */ @java.lang.Override public java.util.Map getHighlightsMap() { return internalGetHighlights().getMap(); } /** *
     * Field name to highlighted text fragments
     * 
* * map<string, .luceneserver.SearchResponse.Hit.Highlights> highlights = 5; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights getHighlightsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHighlights().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Field name to highlighted text fragments
     * 
* * map<string, .luceneserver.SearchResponse.Hit.Highlights> highlights = 5; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights getHighlightsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetHighlights().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int EXPLAIN_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object explain_ = ""; /** *
     * Lucene explanation of the hit
     * 
* * string explain = 6; * @return The explain. */ @java.lang.Override public java.lang.String getExplain() { java.lang.Object ref = explain_; 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(); explain_ = s; return s; } } /** *
     * Lucene explanation of the hit
     * 
* * string explain = 6; * @return The bytes for explain. */ @java.lang.Override public com.google.protobuf.ByteString getExplainBytes() { java.lang.Object ref = explain_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); explain_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INNERHITS_FIELD_NUMBER = 7; private static final class InnerHitsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.yelp.nrtsearch.server.grpc.HitsResult> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_InnerHitsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.yelp.nrtsearch.server.grpc.HitsResult.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.yelp.nrtsearch.server.grpc.HitsResult> innerHits_; private com.google.protobuf.MapField internalGetInnerHits() { if (innerHits_ == null) { return com.google.protobuf.MapField.emptyMapField( InnerHitsDefaultEntryHolder.defaultEntry); } return innerHits_; } public int getInnerHitsCount() { return internalGetInnerHits().getMap().size(); } /** *
     * InnerHits for each hit
     * 
* * map<string, .luceneserver.HitsResult> innerHits = 7; */ @java.lang.Override public boolean containsInnerHits( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetInnerHits().getMap().containsKey(key); } /** * Use {@link #getInnerHitsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getInnerHits() { return getInnerHitsMap(); } /** *
     * InnerHits for each hit
     * 
* * map<string, .luceneserver.HitsResult> innerHits = 7; */ @java.lang.Override public java.util.Map getInnerHitsMap() { return internalGetInnerHits().getMap(); } /** *
     * InnerHits for each hit
     * 
* * map<string, .luceneserver.HitsResult> innerHits = 7; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.HitsResult getInnerHitsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.HitsResult defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetInnerHits().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * InnerHits for each hit
     * 
* * map<string, .luceneserver.HitsResult> innerHits = 7; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.HitsResult getInnerHitsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetInnerHits().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 (luceneDocId_ != 0) { output.writeInt32(1, luceneDocId_); } if (java.lang.Double.doubleToRawLongBits(score_) != 0) { output.writeDouble(2, score_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 3); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetSortedFields(), SortedFieldsDefaultEntryHolder.defaultEntry, 4); com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetHighlights(), HighlightsDefaultEntryHolder.defaultEntry, 5); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(explain_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, explain_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetInnerHits(), InnerHitsDefaultEntryHolder.defaultEntry, 7); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (luceneDocId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, luceneDocId_); } if (java.lang.Double.doubleToRawLongBits(score_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, score_); } for (java.util.Map.Entry entry : internalGetFields().getMap().entrySet()) { com.google.protobuf.MapEntry fields__ = FieldsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, fields__); } for (java.util.Map.Entry entry : internalGetSortedFields().getMap().entrySet()) { com.google.protobuf.MapEntry sortedFields__ = SortedFieldsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, sortedFields__); } for (java.util.Map.Entry entry : internalGetHighlights().getMap().entrySet()) { com.google.protobuf.MapEntry highlights__ = HighlightsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, highlights__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(explain_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, explain_); } for (java.util.Map.Entry entry : internalGetInnerHits().getMap().entrySet()) { com.google.protobuf.MapEntry innerHits__ = InnerHitsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, innerHits__); } 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.SearchResponse.Hit)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.SearchResponse.Hit other = (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit) obj; if (getLuceneDocId() != other.getLuceneDocId()) return false; if (java.lang.Double.doubleToLongBits(getScore()) != java.lang.Double.doubleToLongBits( other.getScore())) return false; if (!internalGetFields().equals( other.internalGetFields())) return false; if (!internalGetSortedFields().equals( other.internalGetSortedFields())) return false; if (!internalGetHighlights().equals( other.internalGetHighlights())) return false; if (!getExplain() .equals(other.getExplain())) return false; if (!internalGetInnerHits().equals( other.internalGetInnerHits())) 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) + LUCENEDOCID_FIELD_NUMBER; hash = (53 * hash) + getLuceneDocId(); hash = (37 * hash) + SCORE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getScore())); if (!internalGetFields().getMap().isEmpty()) { hash = (37 * hash) + FIELDS_FIELD_NUMBER; hash = (53 * hash) + internalGetFields().hashCode(); } if (!internalGetSortedFields().getMap().isEmpty()) { hash = (37 * hash) + SORTEDFIELDS_FIELD_NUMBER; hash = (53 * hash) + internalGetSortedFields().hashCode(); } if (!internalGetHighlights().getMap().isEmpty()) { hash = (37 * hash) + HIGHLIGHTS_FIELD_NUMBER; hash = (53 * hash) + internalGetHighlights().hashCode(); } hash = (37 * hash) + EXPLAIN_FIELD_NUMBER; hash = (53 * hash) + getExplain().hashCode(); if (!internalGetInnerHits().getMap().isEmpty()) { hash = (37 * hash) + INNERHITS_FIELD_NUMBER; hash = (53 * hash) + internalGetInnerHits().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit 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.SearchResponse.Hit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit 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.SearchResponse.Hit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit 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.SearchResponse.Hit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit 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.SearchResponse.Hit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit 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.SearchResponse.Hit 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.SearchResponse.Hit 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.SearchResponse.Hit 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.SearchResponse.Hit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.SearchResponse.Hit) com.yelp.nrtsearch.server.grpc.SearchResponse.HitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 3: return internalGetFields(); case 4: return internalGetSortedFields(); case 5: return internalGetHighlights(); case 7: return internalGetInnerHits(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 3: return internalGetMutableFields(); case 4: return internalGetMutableSortedFields(); case 5: return internalGetMutableHighlights(); case 7: return internalGetMutableInnerHits(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.class, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; luceneDocId_ = 0; score_ = 0D; internalGetMutableFields().clear(); internalGetMutableSortedFields().clear(); internalGetMutableHighlights().clear(); explain_ = ""; internalGetMutableInnerHits().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_Hit_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit build() { com.yelp.nrtsearch.server.grpc.SearchResponse.Hit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit buildPartial() { com.yelp.nrtsearch.server.grpc.SearchResponse.Hit result = new com.yelp.nrtsearch.server.grpc.SearchResponse.Hit(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.luceneDocId_ = luceneDocId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.score_ = score_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.fields_ = internalGetFields().build(FieldsDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00000008) != 0)) { result.sortedFields_ = internalGetSortedFields().build(SortedFieldsDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00000010) != 0)) { result.highlights_ = internalGetHighlights().build(HighlightsDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00000020) != 0)) { result.explain_ = explain_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.innerHits_ = internalGetInnerHits().build(InnerHitsDefaultEntryHolder.defaultEntry); } } @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.SearchResponse.Hit) { return mergeFrom((com.yelp.nrtsearch.server.grpc.SearchResponse.Hit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit other) { if (other == com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.getDefaultInstance()) return this; if (other.getLuceneDocId() != 0) { setLuceneDocId(other.getLuceneDocId()); } if (other.getScore() != 0D) { setScore(other.getScore()); } internalGetMutableFields().mergeFrom( other.internalGetFields()); bitField0_ |= 0x00000004; internalGetMutableSortedFields().mergeFrom( other.internalGetSortedFields()); bitField0_ |= 0x00000008; internalGetMutableHighlights().mergeFrom( other.internalGetHighlights()); bitField0_ |= 0x00000010; if (!other.getExplain().isEmpty()) { explain_ = other.explain_; bitField0_ |= 0x00000020; onChanged(); } internalGetMutableInnerHits().mergeFrom( other.internalGetInnerHits()); bitField0_ |= 0x00000040; 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: { luceneDocId_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 17: { score_ = input.readDouble(); bitField0_ |= 0x00000002; break; } // case 17 case 26: { com.google.protobuf.MapEntry fields__ = input.readMessage( FieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableFields().ensureBuilderMap().put( fields__.getKey(), fields__.getValue()); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.protobuf.MapEntry sortedFields__ = input.readMessage( SortedFieldsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableSortedFields().ensureBuilderMap().put( sortedFields__.getKey(), sortedFields__.getValue()); bitField0_ |= 0x00000008; break; } // case 34 case 42: { com.google.protobuf.MapEntry highlights__ = input.readMessage( HighlightsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableHighlights().ensureBuilderMap().put( highlights__.getKey(), highlights__.getValue()); bitField0_ |= 0x00000010; break; } // case 42 case 50: { explain_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { com.google.protobuf.MapEntry innerHits__ = input.readMessage( InnerHitsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableInnerHits().ensureBuilderMap().put( innerHits__.getKey(), innerHits__.getValue()); 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 int luceneDocId_ ; /** * int32 luceneDocId = 1; * @return The luceneDocId. */ @java.lang.Override public int getLuceneDocId() { return luceneDocId_; } /** * int32 luceneDocId = 1; * @param value The luceneDocId to set. * @return This builder for chaining. */ public Builder setLuceneDocId(int value) { luceneDocId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int32 luceneDocId = 1; * @return This builder for chaining. */ public Builder clearLuceneDocId() { bitField0_ = (bitField0_ & ~0x00000001); luceneDocId_ = 0; onChanged(); return this; } private double score_ ; /** * double score = 2; * @return The score. */ @java.lang.Override public double getScore() { return score_; } /** * double score = 2; * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(double value) { score_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * double score = 2; * @return This builder for chaining. */ public Builder clearScore() { bitField0_ = (bitField0_ & ~0x00000002); score_ = 0D; onChanged(); return this; } private static final class FieldsConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue build(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValueOrBuilder val) { if (val instanceof com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue) { return (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue) val; } return ((com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return FieldsDefaultEntryHolder.defaultEntry; } }; private static final FieldsConverter fieldsConverter = new FieldsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValueOrBuilder, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.Builder> fields_; private com.google.protobuf.MapFieldBuilder internalGetFields() { if (fields_ == null) { return new com.google.protobuf.MapFieldBuilder<>(fieldsConverter); } return fields_; } private com.google.protobuf.MapFieldBuilder internalGetMutableFields() { if (fields_ == null) { fields_ = new com.google.protobuf.MapFieldBuilder<>(fieldsConverter); } bitField0_ |= 0x00000004; onChanged(); return fields_; } public int getFieldsCount() { return internalGetFields().ensureBuilderMap().size(); } /** *
       * Field name to value
       * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> fields = 3; */ @java.lang.Override public boolean containsFields( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetFields().ensureBuilderMap().containsKey(key); } /** * Use {@link #getFieldsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getFields() { return getFieldsMap(); } /** *
       * Field name to value
       * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> fields = 3; */ @java.lang.Override public java.util.Map getFieldsMap() { return internalGetFields().getImmutableMap(); } /** *
       * Field name to value
       * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> fields = 3; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue getFieldsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableFields().ensureBuilderMap(); return map.containsKey(key) ? fieldsConverter.build(map.get(key)) : defaultValue; } /** *
       * Field name to value
       * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> fields = 3; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue getFieldsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableFields().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return fieldsConverter.build(map.get(key)); } public Builder clearFields() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableFields().clear(); return this; } /** *
       * Field name to value
       * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> fields = 3; */ public Builder removeFields( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableFields().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableFields() { bitField0_ |= 0x00000004; return internalGetMutableFields().ensureMessageMap(); } /** *
       * Field name to value
       * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> fields = 3; */ public Builder putFields( java.lang.String key, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableFields().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000004; return this; } /** *
       * Field name to value
       * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> fields = 3; */ public Builder putAllFields( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableFields().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000004; return this; } /** *
       * Field name to value
       * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> fields = 3; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.Builder putFieldsBuilderIfAbsent( java.lang.String key) { java.util.Map builderMap = internalGetMutableFields().ensureBuilderMap(); com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValueOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue) { entry = ((com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue) entry).toBuilder(); builderMap.put(key, entry); } return (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.Builder) entry; } private static final class SortedFieldsConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue build(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValueOrBuilder val) { if (val instanceof com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue) { return (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue) val; } return ((com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return SortedFieldsDefaultEntryHolder.defaultEntry; } }; private static final SortedFieldsConverter sortedFieldsConverter = new SortedFieldsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValueOrBuilder, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.Builder> sortedFields_; private com.google.protobuf.MapFieldBuilder internalGetSortedFields() { if (sortedFields_ == null) { return new com.google.protobuf.MapFieldBuilder<>(sortedFieldsConverter); } return sortedFields_; } private com.google.protobuf.MapFieldBuilder internalGetMutableSortedFields() { if (sortedFields_ == null) { sortedFields_ = new com.google.protobuf.MapFieldBuilder<>(sortedFieldsConverter); } bitField0_ |= 0x00000008; onChanged(); return sortedFields_; } public int getSortedFieldsCount() { return internalGetSortedFields().ensureBuilderMap().size(); } /** *
       * Sorted field name to value
       * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> sortedFields = 4; */ @java.lang.Override public boolean containsSortedFields( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetSortedFields().ensureBuilderMap().containsKey(key); } /** * Use {@link #getSortedFieldsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getSortedFields() { return getSortedFieldsMap(); } /** *
       * Sorted field name to value
       * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> sortedFields = 4; */ @java.lang.Override public java.util.Map getSortedFieldsMap() { return internalGetSortedFields().getImmutableMap(); } /** *
       * Sorted field name to value
       * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> sortedFields = 4; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue getSortedFieldsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableSortedFields().ensureBuilderMap(); return map.containsKey(key) ? sortedFieldsConverter.build(map.get(key)) : defaultValue; } /** *
       * Sorted field name to value
       * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> sortedFields = 4; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue getSortedFieldsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableSortedFields().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return sortedFieldsConverter.build(map.get(key)); } public Builder clearSortedFields() { bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableSortedFields().clear(); return this; } /** *
       * Sorted field name to value
       * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> sortedFields = 4; */ public Builder removeSortedFields( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableSortedFields().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableSortedFields() { bitField0_ |= 0x00000008; return internalGetMutableSortedFields().ensureMessageMap(); } /** *
       * Sorted field name to value
       * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> sortedFields = 4; */ public Builder putSortedFields( java.lang.String key, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableSortedFields().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000008; return this; } /** *
       * Sorted field name to value
       * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> sortedFields = 4; */ public Builder putAllSortedFields( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableSortedFields().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000008; return this; } /** *
       * Sorted field name to value
       * 
* * map<string, .luceneserver.SearchResponse.Hit.CompositeFieldValue> sortedFields = 4; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.Builder putSortedFieldsBuilderIfAbsent( java.lang.String key) { java.util.Map builderMap = internalGetMutableSortedFields().ensureBuilderMap(); com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValueOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue) { entry = ((com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue) entry).toBuilder(); builderMap.put(key, entry); } return (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.CompositeFieldValue.Builder) entry; } private static final class HighlightsConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights build(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.HighlightsOrBuilder val) { if (val instanceof com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights) { return (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights) val; } return ((com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return HighlightsDefaultEntryHolder.defaultEntry; } }; private static final HighlightsConverter highlightsConverter = new HighlightsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.HighlightsOrBuilder, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights.Builder> highlights_; private com.google.protobuf.MapFieldBuilder internalGetHighlights() { if (highlights_ == null) { return new com.google.protobuf.MapFieldBuilder<>(highlightsConverter); } return highlights_; } private com.google.protobuf.MapFieldBuilder internalGetMutableHighlights() { if (highlights_ == null) { highlights_ = new com.google.protobuf.MapFieldBuilder<>(highlightsConverter); } bitField0_ |= 0x00000010; onChanged(); return highlights_; } public int getHighlightsCount() { return internalGetHighlights().ensureBuilderMap().size(); } /** *
       * Field name to highlighted text fragments
       * 
* * map<string, .luceneserver.SearchResponse.Hit.Highlights> highlights = 5; */ @java.lang.Override public boolean containsHighlights( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetHighlights().ensureBuilderMap().containsKey(key); } /** * Use {@link #getHighlightsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHighlights() { return getHighlightsMap(); } /** *
       * Field name to highlighted text fragments
       * 
* * map<string, .luceneserver.SearchResponse.Hit.Highlights> highlights = 5; */ @java.lang.Override public java.util.Map getHighlightsMap() { return internalGetHighlights().getImmutableMap(); } /** *
       * Field name to highlighted text fragments
       * 
* * map<string, .luceneserver.SearchResponse.Hit.Highlights> highlights = 5; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights getHighlightsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableHighlights().ensureBuilderMap(); return map.containsKey(key) ? highlightsConverter.build(map.get(key)) : defaultValue; } /** *
       * Field name to highlighted text fragments
       * 
* * map<string, .luceneserver.SearchResponse.Hit.Highlights> highlights = 5; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights getHighlightsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableHighlights().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return highlightsConverter.build(map.get(key)); } public Builder clearHighlights() { bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableHighlights().clear(); return this; } /** *
       * Field name to highlighted text fragments
       * 
* * map<string, .luceneserver.SearchResponse.Hit.Highlights> highlights = 5; */ public Builder removeHighlights( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableHighlights().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableHighlights() { bitField0_ |= 0x00000010; return internalGetMutableHighlights().ensureMessageMap(); } /** *
       * Field name to highlighted text fragments
       * 
* * map<string, .luceneserver.SearchResponse.Hit.Highlights> highlights = 5; */ public Builder putHighlights( java.lang.String key, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableHighlights().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000010; return this; } /** *
       * Field name to highlighted text fragments
       * 
* * map<string, .luceneserver.SearchResponse.Hit.Highlights> highlights = 5; */ public Builder putAllHighlights( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableHighlights().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000010; return this; } /** *
       * Field name to highlighted text fragments
       * 
* * map<string, .luceneserver.SearchResponse.Hit.Highlights> highlights = 5; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights.Builder putHighlightsBuilderIfAbsent( java.lang.String key) { java.util.Map builderMap = internalGetMutableHighlights().ensureBuilderMap(); com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.HighlightsOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights.newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights) { entry = ((com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights) entry).toBuilder(); builderMap.put(key, entry); } return (com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Highlights.Builder) entry; } private java.lang.Object explain_ = ""; /** *
       * Lucene explanation of the hit
       * 
* * string explain = 6; * @return The explain. */ public java.lang.String getExplain() { java.lang.Object ref = explain_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); explain_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Lucene explanation of the hit
       * 
* * string explain = 6; * @return The bytes for explain. */ public com.google.protobuf.ByteString getExplainBytes() { java.lang.Object ref = explain_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); explain_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Lucene explanation of the hit
       * 
* * string explain = 6; * @param value The explain to set. * @return This builder for chaining. */ public Builder setExplain( java.lang.String value) { if (value == null) { throw new NullPointerException(); } explain_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
       * Lucene explanation of the hit
       * 
* * string explain = 6; * @return This builder for chaining. */ public Builder clearExplain() { explain_ = getDefaultInstance().getExplain(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
       * Lucene explanation of the hit
       * 
* * string explain = 6; * @param value The bytes for explain to set. * @return This builder for chaining. */ public Builder setExplainBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); explain_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private static final class InnerHitsConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public com.yelp.nrtsearch.server.grpc.HitsResult build(com.yelp.nrtsearch.server.grpc.HitsResultOrBuilder val) { if (val instanceof com.yelp.nrtsearch.server.grpc.HitsResult) { return (com.yelp.nrtsearch.server.grpc.HitsResult) val; } return ((com.yelp.nrtsearch.server.grpc.HitsResult.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return InnerHitsDefaultEntryHolder.defaultEntry; } }; private static final InnerHitsConverter innerHitsConverter = new InnerHitsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, com.yelp.nrtsearch.server.grpc.HitsResultOrBuilder, com.yelp.nrtsearch.server.grpc.HitsResult, com.yelp.nrtsearch.server.grpc.HitsResult.Builder> innerHits_; private com.google.protobuf.MapFieldBuilder internalGetInnerHits() { if (innerHits_ == null) { return new com.google.protobuf.MapFieldBuilder<>(innerHitsConverter); } return innerHits_; } private com.google.protobuf.MapFieldBuilder internalGetMutableInnerHits() { if (innerHits_ == null) { innerHits_ = new com.google.protobuf.MapFieldBuilder<>(innerHitsConverter); } bitField0_ |= 0x00000040; onChanged(); return innerHits_; } public int getInnerHitsCount() { return internalGetInnerHits().ensureBuilderMap().size(); } /** *
       * InnerHits for each hit
       * 
* * map<string, .luceneserver.HitsResult> innerHits = 7; */ @java.lang.Override public boolean containsInnerHits( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetInnerHits().ensureBuilderMap().containsKey(key); } /** * Use {@link #getInnerHitsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getInnerHits() { return getInnerHitsMap(); } /** *
       * InnerHits for each hit
       * 
* * map<string, .luceneserver.HitsResult> innerHits = 7; */ @java.lang.Override public java.util.Map getInnerHitsMap() { return internalGetInnerHits().getImmutableMap(); } /** *
       * InnerHits for each hit
       * 
* * map<string, .luceneserver.HitsResult> innerHits = 7; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.HitsResult getInnerHitsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.HitsResult defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableInnerHits().ensureBuilderMap(); return map.containsKey(key) ? innerHitsConverter.build(map.get(key)) : defaultValue; } /** *
       * InnerHits for each hit
       * 
* * map<string, .luceneserver.HitsResult> innerHits = 7; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.HitsResult getInnerHitsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableInnerHits().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return innerHitsConverter.build(map.get(key)); } public Builder clearInnerHits() { bitField0_ = (bitField0_ & ~0x00000040); internalGetMutableInnerHits().clear(); return this; } /** *
       * InnerHits for each hit
       * 
* * map<string, .luceneserver.HitsResult> innerHits = 7; */ public Builder removeInnerHits( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableInnerHits().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableInnerHits() { bitField0_ |= 0x00000040; return internalGetMutableInnerHits().ensureMessageMap(); } /** *
       * InnerHits for each hit
       * 
* * map<string, .luceneserver.HitsResult> innerHits = 7; */ public Builder putInnerHits( java.lang.String key, com.yelp.nrtsearch.server.grpc.HitsResult value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableInnerHits().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000040; return this; } /** *
       * InnerHits for each hit
       * 
* * map<string, .luceneserver.HitsResult> innerHits = 7; */ public Builder putAllInnerHits( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableInnerHits().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000040; return this; } /** *
       * InnerHits for each hit
       * 
* * map<string, .luceneserver.HitsResult> innerHits = 7; */ public com.yelp.nrtsearch.server.grpc.HitsResult.Builder putInnerHitsBuilderIfAbsent( java.lang.String key) { java.util.Map builderMap = internalGetMutableInnerHits().ensureBuilderMap(); com.yelp.nrtsearch.server.grpc.HitsResultOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.yelp.nrtsearch.server.grpc.HitsResult.newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.yelp.nrtsearch.server.grpc.HitsResult) { entry = ((com.yelp.nrtsearch.server.grpc.HitsResult) entry).toBuilder(); builderMap.put(key, entry); } return (com.yelp.nrtsearch.server.grpc.HitsResult.Builder) entry; } @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.SearchResponse.Hit) } // @@protoc_insertion_point(class_scope:luceneserver.SearchResponse.Hit) private static final com.yelp.nrtsearch.server.grpc.SearchResponse.Hit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.SearchResponse.Hit(); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.Hit getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Hit 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.SearchResponse.Hit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SearchStateOrBuilder extends // @@protoc_insertion_point(interface_extends:luceneserver.SearchResponse.SearchState) com.google.protobuf.MessageOrBuilder { /** * int64 timestamp = 1; * @return The timestamp. */ long getTimestamp(); /** * int64 searcherVersion = 2; * @return The searcherVersion. */ long getSearcherVersion(); /** *
     * replaced by lastHitInfo
     * 
* * int32 lastDocId = 3 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastDocId is deprecated. * See yelp/nrtsearch/search.proto;l=833 * @return The lastDocId. */ @java.lang.Deprecated int getLastDocId(); /** *
     * replaced by lastHitInfo
     * 
* * repeated string lastFieldValues = 4 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastFieldValues is deprecated. * See yelp/nrtsearch/search.proto;l=834 * @return A list containing the lastFieldValues. */ @java.lang.Deprecated java.util.List getLastFieldValuesList(); /** *
     * replaced by lastHitInfo
     * 
* * repeated string lastFieldValues = 4 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastFieldValues is deprecated. * See yelp/nrtsearch/search.proto;l=834 * @return The count of lastFieldValues. */ @java.lang.Deprecated int getLastFieldValuesCount(); /** *
     * replaced by lastHitInfo
     * 
* * repeated string lastFieldValues = 4 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastFieldValues is deprecated. * See yelp/nrtsearch/search.proto;l=834 * @param index The index of the element to return. * @return The lastFieldValues at the given index. */ @java.lang.Deprecated java.lang.String getLastFieldValues(int index); /** *
     * replaced by lastHitInfo
     * 
* * repeated string lastFieldValues = 4 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastFieldValues is deprecated. * See yelp/nrtsearch/search.proto;l=834 * @param index The index of the value to return. * @return The bytes of the lastFieldValues at the given index. */ @java.lang.Deprecated com.google.protobuf.ByteString getLastFieldValuesBytes(int index); /** *
     * replaced by lastHitInfo
     * 
* * float lastScore = 5 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastScore is deprecated. * See yelp/nrtsearch/search.proto;l=835 * @return The lastScore. */ @java.lang.Deprecated float getLastScore(); /** * .luceneserver.LastHitInfo lastHitInfo = 6; * @return Whether the lastHitInfo field is set. */ boolean hasLastHitInfo(); /** * .luceneserver.LastHitInfo lastHitInfo = 6; * @return The lastHitInfo. */ com.yelp.nrtsearch.server.grpc.LastHitInfo getLastHitInfo(); /** * .luceneserver.LastHitInfo lastHitInfo = 6; */ com.yelp.nrtsearch.server.grpc.LastHitInfoOrBuilder getLastHitInfoOrBuilder(); } /** * Protobuf type {@code luceneserver.SearchResponse.SearchState} */ public static final class SearchState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.SearchResponse.SearchState) SearchStateOrBuilder { private static final long serialVersionUID = 0L; // Use SearchState.newBuilder() to construct. private SearchState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SearchState() { lastFieldValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SearchState(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_SearchState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_SearchState_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState.class, com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState.Builder.class); } private int bitField0_; public static final int TIMESTAMP_FIELD_NUMBER = 1; private long timestamp_ = 0L; /** * int64 timestamp = 1; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } public static final int SEARCHERVERSION_FIELD_NUMBER = 2; private long searcherVersion_ = 0L; /** * int64 searcherVersion = 2; * @return The searcherVersion. */ @java.lang.Override public long getSearcherVersion() { return searcherVersion_; } public static final int LASTDOCID_FIELD_NUMBER = 3; private int lastDocId_ = 0; /** *
     * replaced by lastHitInfo
     * 
* * int32 lastDocId = 3 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastDocId is deprecated. * See yelp/nrtsearch/search.proto;l=833 * @return The lastDocId. */ @java.lang.Override @java.lang.Deprecated public int getLastDocId() { return lastDocId_; } public static final int LASTFIELDVALUES_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList lastFieldValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
     * replaced by lastHitInfo
     * 
* * repeated string lastFieldValues = 4 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastFieldValues is deprecated. * See yelp/nrtsearch/search.proto;l=834 * @return A list containing the lastFieldValues. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getLastFieldValuesList() { return lastFieldValues_; } /** *
     * replaced by lastHitInfo
     * 
* * repeated string lastFieldValues = 4 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastFieldValues is deprecated. * See yelp/nrtsearch/search.proto;l=834 * @return The count of lastFieldValues. */ @java.lang.Deprecated public int getLastFieldValuesCount() { return lastFieldValues_.size(); } /** *
     * replaced by lastHitInfo
     * 
* * repeated string lastFieldValues = 4 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastFieldValues is deprecated. * See yelp/nrtsearch/search.proto;l=834 * @param index The index of the element to return. * @return The lastFieldValues at the given index. */ @java.lang.Deprecated public java.lang.String getLastFieldValues(int index) { return lastFieldValues_.get(index); } /** *
     * replaced by lastHitInfo
     * 
* * repeated string lastFieldValues = 4 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastFieldValues is deprecated. * See yelp/nrtsearch/search.proto;l=834 * @param index The index of the value to return. * @return The bytes of the lastFieldValues at the given index. */ @java.lang.Deprecated public com.google.protobuf.ByteString getLastFieldValuesBytes(int index) { return lastFieldValues_.getByteString(index); } public static final int LASTSCORE_FIELD_NUMBER = 5; private float lastScore_ = 0F; /** *
     * replaced by lastHitInfo
     * 
* * float lastScore = 5 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastScore is deprecated. * See yelp/nrtsearch/search.proto;l=835 * @return The lastScore. */ @java.lang.Override @java.lang.Deprecated public float getLastScore() { return lastScore_; } public static final int LASTHITINFO_FIELD_NUMBER = 6; private com.yelp.nrtsearch.server.grpc.LastHitInfo lastHitInfo_; /** * .luceneserver.LastHitInfo lastHitInfo = 6; * @return Whether the lastHitInfo field is set. */ @java.lang.Override public boolean hasLastHitInfo() { return ((bitField0_ & 0x00000001) != 0); } /** * .luceneserver.LastHitInfo lastHitInfo = 6; * @return The lastHitInfo. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.LastHitInfo getLastHitInfo() { return lastHitInfo_ == null ? com.yelp.nrtsearch.server.grpc.LastHitInfo.getDefaultInstance() : lastHitInfo_; } /** * .luceneserver.LastHitInfo lastHitInfo = 6; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.LastHitInfoOrBuilder getLastHitInfoOrBuilder() { return lastHitInfo_ == null ? com.yelp.nrtsearch.server.grpc.LastHitInfo.getDefaultInstance() : lastHitInfo_; } 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 (timestamp_ != 0L) { output.writeInt64(1, timestamp_); } if (searcherVersion_ != 0L) { output.writeInt64(2, searcherVersion_); } if (lastDocId_ != 0) { output.writeInt32(3, lastDocId_); } for (int i = 0; i < lastFieldValues_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lastFieldValues_.getRaw(i)); } if (java.lang.Float.floatToRawIntBits(lastScore_) != 0) { output.writeFloat(5, lastScore_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getLastHitInfo()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, timestamp_); } if (searcherVersion_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, searcherVersion_); } if (lastDocId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, lastDocId_); } { int dataSize = 0; for (int i = 0; i < lastFieldValues_.size(); i++) { dataSize += computeStringSizeNoTag(lastFieldValues_.getRaw(i)); } size += dataSize; size += 1 * getLastFieldValuesList().size(); } if (java.lang.Float.floatToRawIntBits(lastScore_) != 0) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(5, lastScore_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getLastHitInfo()); } 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.SearchResponse.SearchState)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState other = (com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState) obj; if (getTimestamp() != other.getTimestamp()) return false; if (getSearcherVersion() != other.getSearcherVersion()) return false; if (getLastDocId() != other.getLastDocId()) return false; if (!getLastFieldValuesList() .equals(other.getLastFieldValuesList())) return false; if (java.lang.Float.floatToIntBits(getLastScore()) != java.lang.Float.floatToIntBits( other.getLastScore())) return false; if (hasLastHitInfo() != other.hasLastHitInfo()) return false; if (hasLastHitInfo()) { if (!getLastHitInfo() .equals(other.getLastHitInfo())) 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) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); hash = (37 * hash) + SEARCHERVERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSearcherVersion()); hash = (37 * hash) + LASTDOCID_FIELD_NUMBER; hash = (53 * hash) + getLastDocId(); if (getLastFieldValuesCount() > 0) { hash = (37 * hash) + LASTFIELDVALUES_FIELD_NUMBER; hash = (53 * hash) + getLastFieldValuesList().hashCode(); } hash = (37 * hash) + LASTSCORE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getLastScore()); if (hasLastHitInfo()) { hash = (37 * hash) + LASTHITINFO_FIELD_NUMBER; hash = (53 * hash) + getLastHitInfo().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState 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.SearchResponse.SearchState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState 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.SearchResponse.SearchState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState 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.SearchResponse.SearchState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState 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.SearchResponse.SearchState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState 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.SearchResponse.SearchState 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.SearchResponse.SearchState 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.SearchResponse.SearchState 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.SearchResponse.SearchState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.SearchResponse.SearchState) com.yelp.nrtsearch.server.grpc.SearchResponse.SearchStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_SearchState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_SearchState_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState.class, com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLastHitInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; timestamp_ = 0L; searcherVersion_ = 0L; lastDocId_ = 0; lastFieldValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); lastScore_ = 0F; lastHitInfo_ = null; if (lastHitInfoBuilder_ != null) { lastHitInfoBuilder_.dispose(); lastHitInfoBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_SearchState_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState build() { com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState buildPartial() { com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState result = new com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.timestamp_ = timestamp_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.searcherVersion_ = searcherVersion_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.lastDocId_ = lastDocId_; } if (((from_bitField0_ & 0x00000008) != 0)) { lastFieldValues_.makeImmutable(); result.lastFieldValues_ = lastFieldValues_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.lastScore_ = lastScore_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { result.lastHitInfo_ = lastHitInfoBuilder_ == null ? lastHitInfo_ : lastHitInfoBuilder_.build(); to_bitField0_ |= 0x00000001; } 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.SearchResponse.SearchState) { return mergeFrom((com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState other) { if (other == com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState.getDefaultInstance()) return this; if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } if (other.getSearcherVersion() != 0L) { setSearcherVersion(other.getSearcherVersion()); } if (other.getLastDocId() != 0) { setLastDocId(other.getLastDocId()); } if (!other.lastFieldValues_.isEmpty()) { if (lastFieldValues_.isEmpty()) { lastFieldValues_ = other.lastFieldValues_; bitField0_ |= 0x00000008; } else { ensureLastFieldValuesIsMutable(); lastFieldValues_.addAll(other.lastFieldValues_); } onChanged(); } if (other.getLastScore() != 0F) { setLastScore(other.getLastScore()); } if (other.hasLastHitInfo()) { mergeLastHitInfo(other.getLastHitInfo()); } 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: { timestamp_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { searcherVersion_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { lastDocId_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureLastFieldValuesIsMutable(); lastFieldValues_.add(s); break; } // case 34 case 45: { lastScore_ = input.readFloat(); bitField0_ |= 0x00000010; break; } // case 45 case 50: { input.readMessage( getLastHitInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 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 timestamp_ ; /** * int64 timestamp = 1; * @return The timestamp. */ @java.lang.Override public long getTimestamp() { return timestamp_; } /** * int64 timestamp = 1; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { timestamp_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * int64 timestamp = 1; * @return This builder for chaining. */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000001); timestamp_ = 0L; onChanged(); return this; } private long searcherVersion_ ; /** * int64 searcherVersion = 2; * @return The searcherVersion. */ @java.lang.Override public long getSearcherVersion() { return searcherVersion_; } /** * int64 searcherVersion = 2; * @param value The searcherVersion to set. * @return This builder for chaining. */ public Builder setSearcherVersion(long value) { searcherVersion_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * int64 searcherVersion = 2; * @return This builder for chaining. */ public Builder clearSearcherVersion() { bitField0_ = (bitField0_ & ~0x00000002); searcherVersion_ = 0L; onChanged(); return this; } private int lastDocId_ ; /** *
       * replaced by lastHitInfo
       * 
* * int32 lastDocId = 3 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastDocId is deprecated. * See yelp/nrtsearch/search.proto;l=833 * @return The lastDocId. */ @java.lang.Override @java.lang.Deprecated public int getLastDocId() { return lastDocId_; } /** *
       * replaced by lastHitInfo
       * 
* * int32 lastDocId = 3 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastDocId is deprecated. * See yelp/nrtsearch/search.proto;l=833 * @param value The lastDocId to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setLastDocId(int value) { lastDocId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * replaced by lastHitInfo
       * 
* * int32 lastDocId = 3 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastDocId is deprecated. * See yelp/nrtsearch/search.proto;l=833 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearLastDocId() { bitField0_ = (bitField0_ & ~0x00000004); lastDocId_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList lastFieldValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureLastFieldValuesIsMutable() { if (!lastFieldValues_.isModifiable()) { lastFieldValues_ = new com.google.protobuf.LazyStringArrayList(lastFieldValues_); } bitField0_ |= 0x00000008; } /** *
       * replaced by lastHitInfo
       * 
* * repeated string lastFieldValues = 4 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastFieldValues is deprecated. * See yelp/nrtsearch/search.proto;l=834 * @return A list containing the lastFieldValues. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getLastFieldValuesList() { lastFieldValues_.makeImmutable(); return lastFieldValues_; } /** *
       * replaced by lastHitInfo
       * 
* * repeated string lastFieldValues = 4 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastFieldValues is deprecated. * See yelp/nrtsearch/search.proto;l=834 * @return The count of lastFieldValues. */ @java.lang.Deprecated public int getLastFieldValuesCount() { return lastFieldValues_.size(); } /** *
       * replaced by lastHitInfo
       * 
* * repeated string lastFieldValues = 4 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastFieldValues is deprecated. * See yelp/nrtsearch/search.proto;l=834 * @param index The index of the element to return. * @return The lastFieldValues at the given index. */ @java.lang.Deprecated public java.lang.String getLastFieldValues(int index) { return lastFieldValues_.get(index); } /** *
       * replaced by lastHitInfo
       * 
* * repeated string lastFieldValues = 4 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastFieldValues is deprecated. * See yelp/nrtsearch/search.proto;l=834 * @param index The index of the value to return. * @return The bytes of the lastFieldValues at the given index. */ @java.lang.Deprecated public com.google.protobuf.ByteString getLastFieldValuesBytes(int index) { return lastFieldValues_.getByteString(index); } /** *
       * replaced by lastHitInfo
       * 
* * repeated string lastFieldValues = 4 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastFieldValues is deprecated. * See yelp/nrtsearch/search.proto;l=834 * @param index The index to set the value at. * @param value The lastFieldValues to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setLastFieldValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLastFieldValuesIsMutable(); lastFieldValues_.set(index, value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * replaced by lastHitInfo
       * 
* * repeated string lastFieldValues = 4 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastFieldValues is deprecated. * See yelp/nrtsearch/search.proto;l=834 * @param value The lastFieldValues to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addLastFieldValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLastFieldValuesIsMutable(); lastFieldValues_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * replaced by lastHitInfo
       * 
* * repeated string lastFieldValues = 4 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastFieldValues is deprecated. * See yelp/nrtsearch/search.proto;l=834 * @param values The lastFieldValues to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addAllLastFieldValues( java.lang.Iterable values) { ensureLastFieldValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, lastFieldValues_); bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * replaced by lastHitInfo
       * 
* * repeated string lastFieldValues = 4 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastFieldValues is deprecated. * See yelp/nrtsearch/search.proto;l=834 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearLastFieldValues() { lastFieldValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** *
       * replaced by lastHitInfo
       * 
* * repeated string lastFieldValues = 4 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastFieldValues is deprecated. * See yelp/nrtsearch/search.proto;l=834 * @param value The bytes of the lastFieldValues to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addLastFieldValuesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLastFieldValuesIsMutable(); lastFieldValues_.add(value); bitField0_ |= 0x00000008; onChanged(); return this; } private float lastScore_ ; /** *
       * replaced by lastHitInfo
       * 
* * float lastScore = 5 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastScore is deprecated. * See yelp/nrtsearch/search.proto;l=835 * @return The lastScore. */ @java.lang.Override @java.lang.Deprecated public float getLastScore() { return lastScore_; } /** *
       * replaced by lastHitInfo
       * 
* * float lastScore = 5 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastScore is deprecated. * See yelp/nrtsearch/search.proto;l=835 * @param value The lastScore to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setLastScore(float value) { lastScore_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * replaced by lastHitInfo
       * 
* * float lastScore = 5 [deprecated = true]; * @deprecated luceneserver.SearchResponse.SearchState.lastScore is deprecated. * See yelp/nrtsearch/search.proto;l=835 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearLastScore() { bitField0_ = (bitField0_ & ~0x00000010); lastScore_ = 0F; onChanged(); return this; } private com.yelp.nrtsearch.server.grpc.LastHitInfo lastHitInfo_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.LastHitInfo, com.yelp.nrtsearch.server.grpc.LastHitInfo.Builder, com.yelp.nrtsearch.server.grpc.LastHitInfoOrBuilder> lastHitInfoBuilder_; /** * .luceneserver.LastHitInfo lastHitInfo = 6; * @return Whether the lastHitInfo field is set. */ public boolean hasLastHitInfo() { return ((bitField0_ & 0x00000020) != 0); } /** * .luceneserver.LastHitInfo lastHitInfo = 6; * @return The lastHitInfo. */ public com.yelp.nrtsearch.server.grpc.LastHitInfo getLastHitInfo() { if (lastHitInfoBuilder_ == null) { return lastHitInfo_ == null ? com.yelp.nrtsearch.server.grpc.LastHitInfo.getDefaultInstance() : lastHitInfo_; } else { return lastHitInfoBuilder_.getMessage(); } } /** * .luceneserver.LastHitInfo lastHitInfo = 6; */ public Builder setLastHitInfo(com.yelp.nrtsearch.server.grpc.LastHitInfo value) { if (lastHitInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastHitInfo_ = value; } else { lastHitInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * .luceneserver.LastHitInfo lastHitInfo = 6; */ public Builder setLastHitInfo( com.yelp.nrtsearch.server.grpc.LastHitInfo.Builder builderForValue) { if (lastHitInfoBuilder_ == null) { lastHitInfo_ = builderForValue.build(); } else { lastHitInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * .luceneserver.LastHitInfo lastHitInfo = 6; */ public Builder mergeLastHitInfo(com.yelp.nrtsearch.server.grpc.LastHitInfo value) { if (lastHitInfoBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && lastHitInfo_ != null && lastHitInfo_ != com.yelp.nrtsearch.server.grpc.LastHitInfo.getDefaultInstance()) { getLastHitInfoBuilder().mergeFrom(value); } else { lastHitInfo_ = value; } } else { lastHitInfoBuilder_.mergeFrom(value); } if (lastHitInfo_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * .luceneserver.LastHitInfo lastHitInfo = 6; */ public Builder clearLastHitInfo() { bitField0_ = (bitField0_ & ~0x00000020); lastHitInfo_ = null; if (lastHitInfoBuilder_ != null) { lastHitInfoBuilder_.dispose(); lastHitInfoBuilder_ = null; } onChanged(); return this; } /** * .luceneserver.LastHitInfo lastHitInfo = 6; */ public com.yelp.nrtsearch.server.grpc.LastHitInfo.Builder getLastHitInfoBuilder() { bitField0_ |= 0x00000020; onChanged(); return getLastHitInfoFieldBuilder().getBuilder(); } /** * .luceneserver.LastHitInfo lastHitInfo = 6; */ public com.yelp.nrtsearch.server.grpc.LastHitInfoOrBuilder getLastHitInfoOrBuilder() { if (lastHitInfoBuilder_ != null) { return lastHitInfoBuilder_.getMessageOrBuilder(); } else { return lastHitInfo_ == null ? com.yelp.nrtsearch.server.grpc.LastHitInfo.getDefaultInstance() : lastHitInfo_; } } /** * .luceneserver.LastHitInfo lastHitInfo = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.LastHitInfo, com.yelp.nrtsearch.server.grpc.LastHitInfo.Builder, com.yelp.nrtsearch.server.grpc.LastHitInfoOrBuilder> getLastHitInfoFieldBuilder() { if (lastHitInfoBuilder_ == null) { lastHitInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.LastHitInfo, com.yelp.nrtsearch.server.grpc.LastHitInfo.Builder, com.yelp.nrtsearch.server.grpc.LastHitInfoOrBuilder>( getLastHitInfo(), getParentForChildren(), isClean()); lastHitInfo_ = null; } return lastHitInfoBuilder_; } @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.SearchResponse.SearchState) } // @@protoc_insertion_point(class_scope:luceneserver.SearchResponse.SearchState) private static final com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState(); } public static com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SearchState 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.SearchResponse.SearchState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int DIAGNOSTICS_FIELD_NUMBER = 1; private com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics diagnostics_; /** * .luceneserver.SearchResponse.Diagnostics diagnostics = 1; * @return Whether the diagnostics field is set. */ @java.lang.Override public boolean hasDiagnostics() { return ((bitField0_ & 0x00000001) != 0); } /** * .luceneserver.SearchResponse.Diagnostics diagnostics = 1; * @return The diagnostics. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics getDiagnostics() { return diagnostics_ == null ? com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.getDefaultInstance() : diagnostics_; } /** * .luceneserver.SearchResponse.Diagnostics diagnostics = 1; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.DiagnosticsOrBuilder getDiagnosticsOrBuilder() { return diagnostics_ == null ? com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.getDefaultInstance() : diagnostics_; } public static final int HITTIMEOUT_FIELD_NUMBER = 2; private boolean hitTimeout_ = false; /** *
   * Set to true if search times out and a degraded response is returned
   * 
* * bool hitTimeout = 2; * @return The hitTimeout. */ @java.lang.Override public boolean getHitTimeout() { return hitTimeout_; } public static final int TOTALHITS_FIELD_NUMBER = 3; private com.yelp.nrtsearch.server.grpc.TotalHits totalHits_; /** * .luceneserver.TotalHits totalHits = 3; * @return Whether the totalHits field is set. */ @java.lang.Override public boolean hasTotalHits() { return ((bitField0_ & 0x00000002) != 0); } /** * .luceneserver.TotalHits totalHits = 3; * @return The totalHits. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.TotalHits getTotalHits() { return totalHits_ == null ? com.yelp.nrtsearch.server.grpc.TotalHits.getDefaultInstance() : totalHits_; } /** * .luceneserver.TotalHits totalHits = 3; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.TotalHitsOrBuilder getTotalHitsOrBuilder() { return totalHits_ == null ? com.yelp.nrtsearch.server.grpc.TotalHits.getDefaultInstance() : totalHits_; } public static final int HITS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List hits_; /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ @java.lang.Override public java.util.List getHitsList() { return hits_; } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ @java.lang.Override public java.util.List getHitsOrBuilderList() { return hits_; } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ @java.lang.Override public int getHitsCount() { return hits_.size(); } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit getHits(int index) { return hits_.get(index); } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.HitOrBuilder getHitsOrBuilder( int index) { return hits_.get(index); } public static final int SEARCHSTATE_FIELD_NUMBER = 5; private com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState searchState_; /** * .luceneserver.SearchResponse.SearchState searchState = 5; * @return Whether the searchState field is set. */ @java.lang.Override public boolean hasSearchState() { return ((bitField0_ & 0x00000004) != 0); } /** * .luceneserver.SearchResponse.SearchState searchState = 5; * @return The searchState. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState getSearchState() { return searchState_ == null ? com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState.getDefaultInstance() : searchState_; } /** * .luceneserver.SearchResponse.SearchState searchState = 5; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse.SearchStateOrBuilder getSearchStateOrBuilder() { return searchState_ == null ? com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState.getDefaultInstance() : searchState_; } public static final int FACETRESULT_FIELD_NUMBER = 6; @SuppressWarnings("serial") private java.util.List facetResult_; /** *
   *//Counts or aggregates for a single dimension
   * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ @java.lang.Override public java.util.List getFacetResultList() { return facetResult_; } /** *
   *//Counts or aggregates for a single dimension
   * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ @java.lang.Override public java.util.List getFacetResultOrBuilderList() { return facetResult_; } /** *
   *//Counts or aggregates for a single dimension
   * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ @java.lang.Override public int getFacetResultCount() { return facetResult_.size(); } /** *
   *//Counts or aggregates for a single dimension
   * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.FacetResult getFacetResult(int index) { return facetResult_.get(index); } /** *
   *//Counts or aggregates for a single dimension
   * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.FacetResultOrBuilder getFacetResultOrBuilder( int index) { return facetResult_.get(index); } public static final int PROFILERESULT_FIELD_NUMBER = 7; private com.yelp.nrtsearch.server.grpc.ProfileResult profileResult_; /** *
   * Detailed stats returned when profile=true in request
   * 
* * .luceneserver.ProfileResult profileResult = 7; * @return Whether the profileResult field is set. */ @java.lang.Override public boolean hasProfileResult() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Detailed stats returned when profile=true in request
   * 
* * .luceneserver.ProfileResult profileResult = 7; * @return The profileResult. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult getProfileResult() { return profileResult_ == null ? com.yelp.nrtsearch.server.grpc.ProfileResult.getDefaultInstance() : profileResult_; } /** *
   * Detailed stats returned when profile=true in request
   * 
* * .luceneserver.ProfileResult profileResult = 7; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResultOrBuilder getProfileResultOrBuilder() { return profileResult_ == null ? com.yelp.nrtsearch.server.grpc.ProfileResult.getDefaultInstance() : profileResult_; } public static final int COLLECTORRESULTS_FIELD_NUMBER = 8; private static final class CollectorResultsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.yelp.nrtsearch.server.grpc.CollectorResult> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_CollectorResultsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.yelp.nrtsearch.server.grpc.CollectorResult.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.yelp.nrtsearch.server.grpc.CollectorResult> collectorResults_; private com.google.protobuf.MapField internalGetCollectorResults() { if (collectorResults_ == null) { return com.google.protobuf.MapField.emptyMapField( CollectorResultsDefaultEntryHolder.defaultEntry); } return collectorResults_; } public int getCollectorResultsCount() { return internalGetCollectorResults().getMap().size(); } /** *
   * Results from any additional document collectors
   * 
* * map<string, .luceneserver.CollectorResult> collectorResults = 8; */ @java.lang.Override public boolean containsCollectorResults( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetCollectorResults().getMap().containsKey(key); } /** * Use {@link #getCollectorResultsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getCollectorResults() { return getCollectorResultsMap(); } /** *
   * Results from any additional document collectors
   * 
* * map<string, .luceneserver.CollectorResult> collectorResults = 8; */ @java.lang.Override public java.util.Map getCollectorResultsMap() { return internalGetCollectorResults().getMap(); } /** *
   * Results from any additional document collectors
   * 
* * map<string, .luceneserver.CollectorResult> collectorResults = 8; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.CollectorResult getCollectorResultsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.CollectorResult defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCollectorResults().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * Results from any additional document collectors
   * 
* * map<string, .luceneserver.CollectorResult> collectorResults = 8; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.CollectorResult getCollectorResultsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetCollectorResults().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int TERMINATEDEARLY_FIELD_NUMBER = 9; private boolean terminatedEarly_ = false; /** *
   * If this query hit the terminateAfter threshold specified in the request
   * 
* * bool terminatedEarly = 9; * @return The terminatedEarly. */ @java.lang.Override public boolean getTerminatedEarly() { return terminatedEarly_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getDiagnostics()); } if (hitTimeout_ != false) { output.writeBool(2, hitTimeout_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getTotalHits()); } for (int i = 0; i < hits_.size(); i++) { output.writeMessage(4, hits_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getSearchState()); } for (int i = 0; i < facetResult_.size(); i++) { output.writeMessage(6, facetResult_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(7, getProfileResult()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetCollectorResults(), CollectorResultsDefaultEntryHolder.defaultEntry, 8); if (terminatedEarly_ != false) { output.writeBool(9, terminatedEarly_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getDiagnostics()); } if (hitTimeout_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, hitTimeout_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTotalHits()); } for (int i = 0; i < hits_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, hits_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getSearchState()); } for (int i = 0; i < facetResult_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, facetResult_.get(i)); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getProfileResult()); } for (java.util.Map.Entry entry : internalGetCollectorResults().getMap().entrySet()) { com.google.protobuf.MapEntry collectorResults__ = CollectorResultsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, collectorResults__); } if (terminatedEarly_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, terminatedEarly_); } 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.SearchResponse)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.SearchResponse other = (com.yelp.nrtsearch.server.grpc.SearchResponse) obj; if (hasDiagnostics() != other.hasDiagnostics()) return false; if (hasDiagnostics()) { if (!getDiagnostics() .equals(other.getDiagnostics())) return false; } if (getHitTimeout() != other.getHitTimeout()) return false; if (hasTotalHits() != other.hasTotalHits()) return false; if (hasTotalHits()) { if (!getTotalHits() .equals(other.getTotalHits())) return false; } if (!getHitsList() .equals(other.getHitsList())) return false; if (hasSearchState() != other.hasSearchState()) return false; if (hasSearchState()) { if (!getSearchState() .equals(other.getSearchState())) return false; } if (!getFacetResultList() .equals(other.getFacetResultList())) return false; if (hasProfileResult() != other.hasProfileResult()) return false; if (hasProfileResult()) { if (!getProfileResult() .equals(other.getProfileResult())) return false; } if (!internalGetCollectorResults().equals( other.internalGetCollectorResults())) return false; if (getTerminatedEarly() != other.getTerminatedEarly()) 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 (hasDiagnostics()) { hash = (37 * hash) + DIAGNOSTICS_FIELD_NUMBER; hash = (53 * hash) + getDiagnostics().hashCode(); } hash = (37 * hash) + HITTIMEOUT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHitTimeout()); if (hasTotalHits()) { hash = (37 * hash) + TOTALHITS_FIELD_NUMBER; hash = (53 * hash) + getTotalHits().hashCode(); } if (getHitsCount() > 0) { hash = (37 * hash) + HITS_FIELD_NUMBER; hash = (53 * hash) + getHitsList().hashCode(); } if (hasSearchState()) { hash = (37 * hash) + SEARCHSTATE_FIELD_NUMBER; hash = (53 * hash) + getSearchState().hashCode(); } if (getFacetResultCount() > 0) { hash = (37 * hash) + FACETRESULT_FIELD_NUMBER; hash = (53 * hash) + getFacetResultList().hashCode(); } if (hasProfileResult()) { hash = (37 * hash) + PROFILERESULT_FIELD_NUMBER; hash = (53 * hash) + getProfileResult().hashCode(); } if (!internalGetCollectorResults().getMap().isEmpty()) { hash = (37 * hash) + COLLECTORRESULTS_FIELD_NUMBER; hash = (53 * hash) + internalGetCollectorResults().hashCode(); } hash = (37 * hash) + TERMINATEDEARLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTerminatedEarly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.SearchResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse 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.SearchResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse 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.SearchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.SearchResponse 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.SearchResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse 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.SearchResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.SearchResponse 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.SearchResponse 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.SearchResponse 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.SearchResponse 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.SearchResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.SearchResponse) com.yelp.nrtsearch.server.grpc.SearchResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 8: return internalGetCollectorResults(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 8: return internalGetMutableCollectorResults(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.SearchResponse.class, com.yelp.nrtsearch.server.grpc.SearchResponse.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.SearchResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDiagnosticsFieldBuilder(); getTotalHitsFieldBuilder(); getHitsFieldBuilder(); getSearchStateFieldBuilder(); getFacetResultFieldBuilder(); getProfileResultFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; diagnostics_ = null; if (diagnosticsBuilder_ != null) { diagnosticsBuilder_.dispose(); diagnosticsBuilder_ = null; } hitTimeout_ = false; totalHits_ = null; if (totalHitsBuilder_ != null) { totalHitsBuilder_.dispose(); totalHitsBuilder_ = null; } if (hitsBuilder_ == null) { hits_ = java.util.Collections.emptyList(); } else { hits_ = null; hitsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); searchState_ = null; if (searchStateBuilder_ != null) { searchStateBuilder_.dispose(); searchStateBuilder_ = null; } if (facetResultBuilder_ == null) { facetResult_ = java.util.Collections.emptyList(); } else { facetResult_ = null; facetResultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); profileResult_ = null; if (profileResultBuilder_ != null) { profileResultBuilder_.dispose(); profileResultBuilder_ = null; } internalGetMutableCollectorResults().clear(); terminatedEarly_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_SearchResponse_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.SearchResponse.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse build() { com.yelp.nrtsearch.server.grpc.SearchResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.SearchResponse buildPartial() { com.yelp.nrtsearch.server.grpc.SearchResponse result = new com.yelp.nrtsearch.server.grpc.SearchResponse(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.yelp.nrtsearch.server.grpc.SearchResponse result) { if (hitsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { hits_ = java.util.Collections.unmodifiableList(hits_); bitField0_ = (bitField0_ & ~0x00000008); } result.hits_ = hits_; } else { result.hits_ = hitsBuilder_.build(); } if (facetResultBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { facetResult_ = java.util.Collections.unmodifiableList(facetResult_); bitField0_ = (bitField0_ & ~0x00000020); } result.facetResult_ = facetResult_; } else { result.facetResult_ = facetResultBuilder_.build(); } } private void buildPartial0(com.yelp.nrtsearch.server.grpc.SearchResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.diagnostics_ = diagnosticsBuilder_ == null ? diagnostics_ : diagnosticsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.hitTimeout_ = hitTimeout_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.totalHits_ = totalHitsBuilder_ == null ? totalHits_ : totalHitsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.searchState_ = searchStateBuilder_ == null ? searchState_ : searchStateBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000040) != 0)) { result.profileResult_ = profileResultBuilder_ == null ? profileResult_ : profileResultBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000080) != 0)) { result.collectorResults_ = internalGetCollectorResults().build(CollectorResultsDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00000100) != 0)) { result.terminatedEarly_ = terminatedEarly_; } 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.SearchResponse) { return mergeFrom((com.yelp.nrtsearch.server.grpc.SearchResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.SearchResponse other) { if (other == com.yelp.nrtsearch.server.grpc.SearchResponse.getDefaultInstance()) return this; if (other.hasDiagnostics()) { mergeDiagnostics(other.getDiagnostics()); } if (other.getHitTimeout() != false) { setHitTimeout(other.getHitTimeout()); } if (other.hasTotalHits()) { mergeTotalHits(other.getTotalHits()); } if (hitsBuilder_ == null) { if (!other.hits_.isEmpty()) { if (hits_.isEmpty()) { hits_ = other.hits_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureHitsIsMutable(); hits_.addAll(other.hits_); } onChanged(); } } else { if (!other.hits_.isEmpty()) { if (hitsBuilder_.isEmpty()) { hitsBuilder_.dispose(); hitsBuilder_ = null; hits_ = other.hits_; bitField0_ = (bitField0_ & ~0x00000008); hitsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHitsFieldBuilder() : null; } else { hitsBuilder_.addAllMessages(other.hits_); } } } if (other.hasSearchState()) { mergeSearchState(other.getSearchState()); } if (facetResultBuilder_ == null) { if (!other.facetResult_.isEmpty()) { if (facetResult_.isEmpty()) { facetResult_ = other.facetResult_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureFacetResultIsMutable(); facetResult_.addAll(other.facetResult_); } onChanged(); } } else { if (!other.facetResult_.isEmpty()) { if (facetResultBuilder_.isEmpty()) { facetResultBuilder_.dispose(); facetResultBuilder_ = null; facetResult_ = other.facetResult_; bitField0_ = (bitField0_ & ~0x00000020); facetResultBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFacetResultFieldBuilder() : null; } else { facetResultBuilder_.addAllMessages(other.facetResult_); } } } if (other.hasProfileResult()) { mergeProfileResult(other.getProfileResult()); } internalGetMutableCollectorResults().mergeFrom( other.internalGetCollectorResults()); bitField0_ |= 0x00000080; if (other.getTerminatedEarly() != false) { setTerminatedEarly(other.getTerminatedEarly()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getDiagnosticsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { hitTimeout_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getTotalHitsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.yelp.nrtsearch.server.grpc.SearchResponse.Hit m = input.readMessage( com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.parser(), extensionRegistry); if (hitsBuilder_ == null) { ensureHitsIsMutable(); hits_.add(m); } else { hitsBuilder_.addMessage(m); } break; } // case 34 case 42: { input.readMessage( getSearchStateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { com.yelp.nrtsearch.server.grpc.FacetResult m = input.readMessage( com.yelp.nrtsearch.server.grpc.FacetResult.parser(), extensionRegistry); if (facetResultBuilder_ == null) { ensureFacetResultIsMutable(); facetResult_.add(m); } else { facetResultBuilder_.addMessage(m); } break; } // case 50 case 58: { input.readMessage( getProfileResultFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 case 66: { com.google.protobuf.MapEntry collectorResults__ = input.readMessage( CollectorResultsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableCollectorResults().ensureBuilderMap().put( collectorResults__.getKey(), collectorResults__.getValue()); bitField0_ |= 0x00000080; break; } // case 66 case 72: { terminatedEarly_ = input.readBool(); bitField0_ |= 0x00000100; break; } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics diagnostics_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.DiagnosticsOrBuilder> diagnosticsBuilder_; /** * .luceneserver.SearchResponse.Diagnostics diagnostics = 1; * @return Whether the diagnostics field is set. */ public boolean hasDiagnostics() { return ((bitField0_ & 0x00000001) != 0); } /** * .luceneserver.SearchResponse.Diagnostics diagnostics = 1; * @return The diagnostics. */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics getDiagnostics() { if (diagnosticsBuilder_ == null) { return diagnostics_ == null ? com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.getDefaultInstance() : diagnostics_; } else { return diagnosticsBuilder_.getMessage(); } } /** * .luceneserver.SearchResponse.Diagnostics diagnostics = 1; */ public Builder setDiagnostics(com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics value) { if (diagnosticsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } diagnostics_ = value; } else { diagnosticsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .luceneserver.SearchResponse.Diagnostics diagnostics = 1; */ public Builder setDiagnostics( com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.Builder builderForValue) { if (diagnosticsBuilder_ == null) { diagnostics_ = builderForValue.build(); } else { diagnosticsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .luceneserver.SearchResponse.Diagnostics diagnostics = 1; */ public Builder mergeDiagnostics(com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics value) { if (diagnosticsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && diagnostics_ != null && diagnostics_ != com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.getDefaultInstance()) { getDiagnosticsBuilder().mergeFrom(value); } else { diagnostics_ = value; } } else { diagnosticsBuilder_.mergeFrom(value); } if (diagnostics_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .luceneserver.SearchResponse.Diagnostics diagnostics = 1; */ public Builder clearDiagnostics() { bitField0_ = (bitField0_ & ~0x00000001); diagnostics_ = null; if (diagnosticsBuilder_ != null) { diagnosticsBuilder_.dispose(); diagnosticsBuilder_ = null; } onChanged(); return this; } /** * .luceneserver.SearchResponse.Diagnostics diagnostics = 1; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.Builder getDiagnosticsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDiagnosticsFieldBuilder().getBuilder(); } /** * .luceneserver.SearchResponse.Diagnostics diagnostics = 1; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.DiagnosticsOrBuilder getDiagnosticsOrBuilder() { if (diagnosticsBuilder_ != null) { return diagnosticsBuilder_.getMessageOrBuilder(); } else { return diagnostics_ == null ? com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.getDefaultInstance() : diagnostics_; } } /** * .luceneserver.SearchResponse.Diagnostics diagnostics = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.DiagnosticsOrBuilder> getDiagnosticsFieldBuilder() { if (diagnosticsBuilder_ == null) { diagnosticsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics, com.yelp.nrtsearch.server.grpc.SearchResponse.Diagnostics.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.DiagnosticsOrBuilder>( getDiagnostics(), getParentForChildren(), isClean()); diagnostics_ = null; } return diagnosticsBuilder_; } private boolean hitTimeout_ ; /** *
     * Set to true if search times out and a degraded response is returned
     * 
* * bool hitTimeout = 2; * @return The hitTimeout. */ @java.lang.Override public boolean getHitTimeout() { return hitTimeout_; } /** *
     * Set to true if search times out and a degraded response is returned
     * 
* * bool hitTimeout = 2; * @param value The hitTimeout to set. * @return This builder for chaining. */ public Builder setHitTimeout(boolean value) { hitTimeout_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Set to true if search times out and a degraded response is returned
     * 
* * bool hitTimeout = 2; * @return This builder for chaining. */ public Builder clearHitTimeout() { bitField0_ = (bitField0_ & ~0x00000002); hitTimeout_ = false; onChanged(); return this; } private com.yelp.nrtsearch.server.grpc.TotalHits totalHits_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.TotalHits, com.yelp.nrtsearch.server.grpc.TotalHits.Builder, com.yelp.nrtsearch.server.grpc.TotalHitsOrBuilder> totalHitsBuilder_; /** * .luceneserver.TotalHits totalHits = 3; * @return Whether the totalHits field is set. */ public boolean hasTotalHits() { return ((bitField0_ & 0x00000004) != 0); } /** * .luceneserver.TotalHits totalHits = 3; * @return The totalHits. */ public com.yelp.nrtsearch.server.grpc.TotalHits getTotalHits() { if (totalHitsBuilder_ == null) { return totalHits_ == null ? com.yelp.nrtsearch.server.grpc.TotalHits.getDefaultInstance() : totalHits_; } else { return totalHitsBuilder_.getMessage(); } } /** * .luceneserver.TotalHits totalHits = 3; */ public Builder setTotalHits(com.yelp.nrtsearch.server.grpc.TotalHits value) { if (totalHitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } totalHits_ = value; } else { totalHitsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .luceneserver.TotalHits totalHits = 3; */ public Builder setTotalHits( com.yelp.nrtsearch.server.grpc.TotalHits.Builder builderForValue) { if (totalHitsBuilder_ == null) { totalHits_ = builderForValue.build(); } else { totalHitsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * .luceneserver.TotalHits totalHits = 3; */ public Builder mergeTotalHits(com.yelp.nrtsearch.server.grpc.TotalHits value) { if (totalHitsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && totalHits_ != null && totalHits_ != com.yelp.nrtsearch.server.grpc.TotalHits.getDefaultInstance()) { getTotalHitsBuilder().mergeFrom(value); } else { totalHits_ = value; } } else { totalHitsBuilder_.mergeFrom(value); } if (totalHits_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * .luceneserver.TotalHits totalHits = 3; */ public Builder clearTotalHits() { bitField0_ = (bitField0_ & ~0x00000004); totalHits_ = null; if (totalHitsBuilder_ != null) { totalHitsBuilder_.dispose(); totalHitsBuilder_ = null; } onChanged(); return this; } /** * .luceneserver.TotalHits totalHits = 3; */ public com.yelp.nrtsearch.server.grpc.TotalHits.Builder getTotalHitsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTotalHitsFieldBuilder().getBuilder(); } /** * .luceneserver.TotalHits totalHits = 3; */ public com.yelp.nrtsearch.server.grpc.TotalHitsOrBuilder getTotalHitsOrBuilder() { if (totalHitsBuilder_ != null) { return totalHitsBuilder_.getMessageOrBuilder(); } else { return totalHits_ == null ? com.yelp.nrtsearch.server.grpc.TotalHits.getDefaultInstance() : totalHits_; } } /** * .luceneserver.TotalHits totalHits = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.TotalHits, com.yelp.nrtsearch.server.grpc.TotalHits.Builder, com.yelp.nrtsearch.server.grpc.TotalHitsOrBuilder> getTotalHitsFieldBuilder() { if (totalHitsBuilder_ == null) { totalHitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.TotalHits, com.yelp.nrtsearch.server.grpc.TotalHits.Builder, com.yelp.nrtsearch.server.grpc.TotalHitsOrBuilder>( getTotalHits(), getParentForChildren(), isClean()); totalHits_ = null; } return totalHitsBuilder_; } private java.util.List hits_ = java.util.Collections.emptyList(); private void ensureHitsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { hits_ = new java.util.ArrayList(hits_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.Hit, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.HitOrBuilder> hitsBuilder_; /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public java.util.List getHitsList() { if (hitsBuilder_ == null) { return java.util.Collections.unmodifiableList(hits_); } else { return hitsBuilder_.getMessageList(); } } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public int getHitsCount() { if (hitsBuilder_ == null) { return hits_.size(); } else { return hitsBuilder_.getCount(); } } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit getHits(int index) { if (hitsBuilder_ == null) { return hits_.get(index); } else { return hitsBuilder_.getMessage(index); } } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public Builder setHits( int index, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit value) { if (hitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHitsIsMutable(); hits_.set(index, value); onChanged(); } else { hitsBuilder_.setMessage(index, value); } return this; } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public Builder setHits( int index, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Builder builderForValue) { if (hitsBuilder_ == null) { ensureHitsIsMutable(); hits_.set(index, builderForValue.build()); onChanged(); } else { hitsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public Builder addHits(com.yelp.nrtsearch.server.grpc.SearchResponse.Hit value) { if (hitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHitsIsMutable(); hits_.add(value); onChanged(); } else { hitsBuilder_.addMessage(value); } return this; } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public Builder addHits( int index, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit value) { if (hitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHitsIsMutable(); hits_.add(index, value); onChanged(); } else { hitsBuilder_.addMessage(index, value); } return this; } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public Builder addHits( com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Builder builderForValue) { if (hitsBuilder_ == null) { ensureHitsIsMutable(); hits_.add(builderForValue.build()); onChanged(); } else { hitsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public Builder addHits( int index, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Builder builderForValue) { if (hitsBuilder_ == null) { ensureHitsIsMutable(); hits_.add(index, builderForValue.build()); onChanged(); } else { hitsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public Builder addAllHits( java.lang.Iterable values) { if (hitsBuilder_ == null) { ensureHitsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, hits_); onChanged(); } else { hitsBuilder_.addAllMessages(values); } return this; } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public Builder clearHits() { if (hitsBuilder_ == null) { hits_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { hitsBuilder_.clear(); } return this; } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public Builder removeHits(int index) { if (hitsBuilder_ == null) { ensureHitsIsMutable(); hits_.remove(index); onChanged(); } else { hitsBuilder_.remove(index); } return this; } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Builder getHitsBuilder( int index) { return getHitsFieldBuilder().getBuilder(index); } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.HitOrBuilder getHitsOrBuilder( int index) { if (hitsBuilder_ == null) { return hits_.get(index); } else { return hitsBuilder_.getMessageOrBuilder(index); } } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public java.util.List getHitsOrBuilderList() { if (hitsBuilder_ != null) { return hitsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(hits_); } } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Builder addHitsBuilder() { return getHitsFieldBuilder().addBuilder( com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.getDefaultInstance()); } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Builder addHitsBuilder( int index) { return getHitsFieldBuilder().addBuilder( index, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.getDefaultInstance()); } /** * repeated .luceneserver.SearchResponse.Hit hits = 4; */ public java.util.List getHitsBuilderList() { return getHitsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.Hit, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.HitOrBuilder> getHitsFieldBuilder() { if (hitsBuilder_ == null) { hitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.Hit, com.yelp.nrtsearch.server.grpc.SearchResponse.Hit.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.HitOrBuilder>( hits_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); hits_ = null; } return hitsBuilder_; } private com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState searchState_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState, com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.SearchStateOrBuilder> searchStateBuilder_; /** * .luceneserver.SearchResponse.SearchState searchState = 5; * @return Whether the searchState field is set. */ public boolean hasSearchState() { return ((bitField0_ & 0x00000010) != 0); } /** * .luceneserver.SearchResponse.SearchState searchState = 5; * @return The searchState. */ public com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState getSearchState() { if (searchStateBuilder_ == null) { return searchState_ == null ? com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState.getDefaultInstance() : searchState_; } else { return searchStateBuilder_.getMessage(); } } /** * .luceneserver.SearchResponse.SearchState searchState = 5; */ public Builder setSearchState(com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState value) { if (searchStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } searchState_ = value; } else { searchStateBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * .luceneserver.SearchResponse.SearchState searchState = 5; */ public Builder setSearchState( com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState.Builder builderForValue) { if (searchStateBuilder_ == null) { searchState_ = builderForValue.build(); } else { searchStateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * .luceneserver.SearchResponse.SearchState searchState = 5; */ public Builder mergeSearchState(com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState value) { if (searchStateBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && searchState_ != null && searchState_ != com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState.getDefaultInstance()) { getSearchStateBuilder().mergeFrom(value); } else { searchState_ = value; } } else { searchStateBuilder_.mergeFrom(value); } if (searchState_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * .luceneserver.SearchResponse.SearchState searchState = 5; */ public Builder clearSearchState() { bitField0_ = (bitField0_ & ~0x00000010); searchState_ = null; if (searchStateBuilder_ != null) { searchStateBuilder_.dispose(); searchStateBuilder_ = null; } onChanged(); return this; } /** * .luceneserver.SearchResponse.SearchState searchState = 5; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState.Builder getSearchStateBuilder() { bitField0_ |= 0x00000010; onChanged(); return getSearchStateFieldBuilder().getBuilder(); } /** * .luceneserver.SearchResponse.SearchState searchState = 5; */ public com.yelp.nrtsearch.server.grpc.SearchResponse.SearchStateOrBuilder getSearchStateOrBuilder() { if (searchStateBuilder_ != null) { return searchStateBuilder_.getMessageOrBuilder(); } else { return searchState_ == null ? com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState.getDefaultInstance() : searchState_; } } /** * .luceneserver.SearchResponse.SearchState searchState = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState, com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.SearchStateOrBuilder> getSearchStateFieldBuilder() { if (searchStateBuilder_ == null) { searchStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState, com.yelp.nrtsearch.server.grpc.SearchResponse.SearchState.Builder, com.yelp.nrtsearch.server.grpc.SearchResponse.SearchStateOrBuilder>( getSearchState(), getParentForChildren(), isClean()); searchState_ = null; } return searchStateBuilder_; } private java.util.List facetResult_ = java.util.Collections.emptyList(); private void ensureFacetResultIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { facetResult_ = new java.util.ArrayList(facetResult_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.FacetResult, com.yelp.nrtsearch.server.grpc.FacetResult.Builder, com.yelp.nrtsearch.server.grpc.FacetResultOrBuilder> facetResultBuilder_; /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public java.util.List getFacetResultList() { if (facetResultBuilder_ == null) { return java.util.Collections.unmodifiableList(facetResult_); } else { return facetResultBuilder_.getMessageList(); } } /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public int getFacetResultCount() { if (facetResultBuilder_ == null) { return facetResult_.size(); } else { return facetResultBuilder_.getCount(); } } /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public com.yelp.nrtsearch.server.grpc.FacetResult getFacetResult(int index) { if (facetResultBuilder_ == null) { return facetResult_.get(index); } else { return facetResultBuilder_.getMessage(index); } } /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public Builder setFacetResult( int index, com.yelp.nrtsearch.server.grpc.FacetResult value) { if (facetResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacetResultIsMutable(); facetResult_.set(index, value); onChanged(); } else { facetResultBuilder_.setMessage(index, value); } return this; } /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public Builder setFacetResult( int index, com.yelp.nrtsearch.server.grpc.FacetResult.Builder builderForValue) { if (facetResultBuilder_ == null) { ensureFacetResultIsMutable(); facetResult_.set(index, builderForValue.build()); onChanged(); } else { facetResultBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public Builder addFacetResult(com.yelp.nrtsearch.server.grpc.FacetResult value) { if (facetResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacetResultIsMutable(); facetResult_.add(value); onChanged(); } else { facetResultBuilder_.addMessage(value); } return this; } /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public Builder addFacetResult( int index, com.yelp.nrtsearch.server.grpc.FacetResult value) { if (facetResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFacetResultIsMutable(); facetResult_.add(index, value); onChanged(); } else { facetResultBuilder_.addMessage(index, value); } return this; } /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public Builder addFacetResult( com.yelp.nrtsearch.server.grpc.FacetResult.Builder builderForValue) { if (facetResultBuilder_ == null) { ensureFacetResultIsMutable(); facetResult_.add(builderForValue.build()); onChanged(); } else { facetResultBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public Builder addFacetResult( int index, com.yelp.nrtsearch.server.grpc.FacetResult.Builder builderForValue) { if (facetResultBuilder_ == null) { ensureFacetResultIsMutable(); facetResult_.add(index, builderForValue.build()); onChanged(); } else { facetResultBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public Builder addAllFacetResult( java.lang.Iterable values) { if (facetResultBuilder_ == null) { ensureFacetResultIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, facetResult_); onChanged(); } else { facetResultBuilder_.addAllMessages(values); } return this; } /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public Builder clearFacetResult() { if (facetResultBuilder_ == null) { facetResult_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { facetResultBuilder_.clear(); } return this; } /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public Builder removeFacetResult(int index) { if (facetResultBuilder_ == null) { ensureFacetResultIsMutable(); facetResult_.remove(index); onChanged(); } else { facetResultBuilder_.remove(index); } return this; } /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public com.yelp.nrtsearch.server.grpc.FacetResult.Builder getFacetResultBuilder( int index) { return getFacetResultFieldBuilder().getBuilder(index); } /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public com.yelp.nrtsearch.server.grpc.FacetResultOrBuilder getFacetResultOrBuilder( int index) { if (facetResultBuilder_ == null) { return facetResult_.get(index); } else { return facetResultBuilder_.getMessageOrBuilder(index); } } /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public java.util.List getFacetResultOrBuilderList() { if (facetResultBuilder_ != null) { return facetResultBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(facetResult_); } } /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public com.yelp.nrtsearch.server.grpc.FacetResult.Builder addFacetResultBuilder() { return getFacetResultFieldBuilder().addBuilder( com.yelp.nrtsearch.server.grpc.FacetResult.getDefaultInstance()); } /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public com.yelp.nrtsearch.server.grpc.FacetResult.Builder addFacetResultBuilder( int index) { return getFacetResultFieldBuilder().addBuilder( index, com.yelp.nrtsearch.server.grpc.FacetResult.getDefaultInstance()); } /** *
     *//Counts or aggregates for a single dimension
     * 
* * repeated .luceneserver.FacetResult facetResult = 6; */ public java.util.List getFacetResultBuilderList() { return getFacetResultFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.FacetResult, com.yelp.nrtsearch.server.grpc.FacetResult.Builder, com.yelp.nrtsearch.server.grpc.FacetResultOrBuilder> getFacetResultFieldBuilder() { if (facetResultBuilder_ == null) { facetResultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.FacetResult, com.yelp.nrtsearch.server.grpc.FacetResult.Builder, com.yelp.nrtsearch.server.grpc.FacetResultOrBuilder>( facetResult_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); facetResult_ = null; } return facetResultBuilder_; } private com.yelp.nrtsearch.server.grpc.ProfileResult profileResult_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.ProfileResult, com.yelp.nrtsearch.server.grpc.ProfileResult.Builder, com.yelp.nrtsearch.server.grpc.ProfileResultOrBuilder> profileResultBuilder_; /** *
     * Detailed stats returned when profile=true in request
     * 
* * .luceneserver.ProfileResult profileResult = 7; * @return Whether the profileResult field is set. */ public boolean hasProfileResult() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Detailed stats returned when profile=true in request
     * 
* * .luceneserver.ProfileResult profileResult = 7; * @return The profileResult. */ public com.yelp.nrtsearch.server.grpc.ProfileResult getProfileResult() { if (profileResultBuilder_ == null) { return profileResult_ == null ? com.yelp.nrtsearch.server.grpc.ProfileResult.getDefaultInstance() : profileResult_; } else { return profileResultBuilder_.getMessage(); } } /** *
     * Detailed stats returned when profile=true in request
     * 
* * .luceneserver.ProfileResult profileResult = 7; */ public Builder setProfileResult(com.yelp.nrtsearch.server.grpc.ProfileResult value) { if (profileResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } profileResult_ = value; } else { profileResultBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Detailed stats returned when profile=true in request
     * 
* * .luceneserver.ProfileResult profileResult = 7; */ public Builder setProfileResult( com.yelp.nrtsearch.server.grpc.ProfileResult.Builder builderForValue) { if (profileResultBuilder_ == null) { profileResult_ = builderForValue.build(); } else { profileResultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Detailed stats returned when profile=true in request
     * 
* * .luceneserver.ProfileResult profileResult = 7; */ public Builder mergeProfileResult(com.yelp.nrtsearch.server.grpc.ProfileResult value) { if (profileResultBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && profileResult_ != null && profileResult_ != com.yelp.nrtsearch.server.grpc.ProfileResult.getDefaultInstance()) { getProfileResultBuilder().mergeFrom(value); } else { profileResult_ = value; } } else { profileResultBuilder_.mergeFrom(value); } if (profileResult_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** *
     * Detailed stats returned when profile=true in request
     * 
* * .luceneserver.ProfileResult profileResult = 7; */ public Builder clearProfileResult() { bitField0_ = (bitField0_ & ~0x00000040); profileResult_ = null; if (profileResultBuilder_ != null) { profileResultBuilder_.dispose(); profileResultBuilder_ = null; } onChanged(); return this; } /** *
     * Detailed stats returned when profile=true in request
     * 
* * .luceneserver.ProfileResult profileResult = 7; */ public com.yelp.nrtsearch.server.grpc.ProfileResult.Builder getProfileResultBuilder() { bitField0_ |= 0x00000040; onChanged(); return getProfileResultFieldBuilder().getBuilder(); } /** *
     * Detailed stats returned when profile=true in request
     * 
* * .luceneserver.ProfileResult profileResult = 7; */ public com.yelp.nrtsearch.server.grpc.ProfileResultOrBuilder getProfileResultOrBuilder() { if (profileResultBuilder_ != null) { return profileResultBuilder_.getMessageOrBuilder(); } else { return profileResult_ == null ? com.yelp.nrtsearch.server.grpc.ProfileResult.getDefaultInstance() : profileResult_; } } /** *
     * Detailed stats returned when profile=true in request
     * 
* * .luceneserver.ProfileResult profileResult = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.ProfileResult, com.yelp.nrtsearch.server.grpc.ProfileResult.Builder, com.yelp.nrtsearch.server.grpc.ProfileResultOrBuilder> getProfileResultFieldBuilder() { if (profileResultBuilder_ == null) { profileResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.ProfileResult, com.yelp.nrtsearch.server.grpc.ProfileResult.Builder, com.yelp.nrtsearch.server.grpc.ProfileResultOrBuilder>( getProfileResult(), getParentForChildren(), isClean()); profileResult_ = null; } return profileResultBuilder_; } private static final class CollectorResultsConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public com.yelp.nrtsearch.server.grpc.CollectorResult build(com.yelp.nrtsearch.server.grpc.CollectorResultOrBuilder val) { if (val instanceof com.yelp.nrtsearch.server.grpc.CollectorResult) { return (com.yelp.nrtsearch.server.grpc.CollectorResult) val; } return ((com.yelp.nrtsearch.server.grpc.CollectorResult.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return CollectorResultsDefaultEntryHolder.defaultEntry; } }; private static final CollectorResultsConverter collectorResultsConverter = new CollectorResultsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, com.yelp.nrtsearch.server.grpc.CollectorResultOrBuilder, com.yelp.nrtsearch.server.grpc.CollectorResult, com.yelp.nrtsearch.server.grpc.CollectorResult.Builder> collectorResults_; private com.google.protobuf.MapFieldBuilder internalGetCollectorResults() { if (collectorResults_ == null) { return new com.google.protobuf.MapFieldBuilder<>(collectorResultsConverter); } return collectorResults_; } private com.google.protobuf.MapFieldBuilder internalGetMutableCollectorResults() { if (collectorResults_ == null) { collectorResults_ = new com.google.protobuf.MapFieldBuilder<>(collectorResultsConverter); } bitField0_ |= 0x00000080; onChanged(); return collectorResults_; } public int getCollectorResultsCount() { return internalGetCollectorResults().ensureBuilderMap().size(); } /** *
     * Results from any additional document collectors
     * 
* * map<string, .luceneserver.CollectorResult> collectorResults = 8; */ @java.lang.Override public boolean containsCollectorResults( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetCollectorResults().ensureBuilderMap().containsKey(key); } /** * Use {@link #getCollectorResultsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getCollectorResults() { return getCollectorResultsMap(); } /** *
     * Results from any additional document collectors
     * 
* * map<string, .luceneserver.CollectorResult> collectorResults = 8; */ @java.lang.Override public java.util.Map getCollectorResultsMap() { return internalGetCollectorResults().getImmutableMap(); } /** *
     * Results from any additional document collectors
     * 
* * map<string, .luceneserver.CollectorResult> collectorResults = 8; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.CollectorResult getCollectorResultsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.CollectorResult defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableCollectorResults().ensureBuilderMap(); return map.containsKey(key) ? collectorResultsConverter.build(map.get(key)) : defaultValue; } /** *
     * Results from any additional document collectors
     * 
* * map<string, .luceneserver.CollectorResult> collectorResults = 8; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.CollectorResult getCollectorResultsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableCollectorResults().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return collectorResultsConverter.build(map.get(key)); } public Builder clearCollectorResults() { bitField0_ = (bitField0_ & ~0x00000080); internalGetMutableCollectorResults().clear(); return this; } /** *
     * Results from any additional document collectors
     * 
* * map<string, .luceneserver.CollectorResult> collectorResults = 8; */ public Builder removeCollectorResults( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableCollectorResults().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableCollectorResults() { bitField0_ |= 0x00000080; return internalGetMutableCollectorResults().ensureMessageMap(); } /** *
     * Results from any additional document collectors
     * 
* * map<string, .luceneserver.CollectorResult> collectorResults = 8; */ public Builder putCollectorResults( java.lang.String key, com.yelp.nrtsearch.server.grpc.CollectorResult value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableCollectorResults().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000080; return this; } /** *
     * Results from any additional document collectors
     * 
* * map<string, .luceneserver.CollectorResult> collectorResults = 8; */ public Builder putAllCollectorResults( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableCollectorResults().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000080; return this; } /** *
     * Results from any additional document collectors
     * 
* * map<string, .luceneserver.CollectorResult> collectorResults = 8; */ public com.yelp.nrtsearch.server.grpc.CollectorResult.Builder putCollectorResultsBuilderIfAbsent( java.lang.String key) { java.util.Map builderMap = internalGetMutableCollectorResults().ensureBuilderMap(); com.yelp.nrtsearch.server.grpc.CollectorResultOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.yelp.nrtsearch.server.grpc.CollectorResult.newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.yelp.nrtsearch.server.grpc.CollectorResult) { entry = ((com.yelp.nrtsearch.server.grpc.CollectorResult) entry).toBuilder(); builderMap.put(key, entry); } return (com.yelp.nrtsearch.server.grpc.CollectorResult.Builder) entry; } private boolean terminatedEarly_ ; /** *
     * If this query hit the terminateAfter threshold specified in the request
     * 
* * bool terminatedEarly = 9; * @return The terminatedEarly. */ @java.lang.Override public boolean getTerminatedEarly() { return terminatedEarly_; } /** *
     * If this query hit the terminateAfter threshold specified in the request
     * 
* * bool terminatedEarly = 9; * @param value The terminatedEarly to set. * @return This builder for chaining. */ public Builder setTerminatedEarly(boolean value) { terminatedEarly_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * If this query hit the terminateAfter threshold specified in the request
     * 
* * bool terminatedEarly = 9; * @return This builder for chaining. */ public Builder clearTerminatedEarly() { bitField0_ = (bitField0_ & ~0x00000100); terminatedEarly_ = false; 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.SearchResponse) } // @@protoc_insertion_point(class_scope:luceneserver.SearchResponse) private static final com.yelp.nrtsearch.server.grpc.SearchResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.SearchResponse(); } public static com.yelp.nrtsearch.server.grpc.SearchResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SearchResponse 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.SearchResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy