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

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

/**
 * 
 * Defines detailed profiling stats for queries that set profile=true
 * 
* * Protobuf type {@code luceneserver.ProfileResult} */ public final class ProfileResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.ProfileResult) ProfileResultOrBuilder { private static final long serialVersionUID = 0L; // Use ProfileResult.newBuilder() to construct. private ProfileResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProfileResult() { parsedQuery_ = ""; rewrittenQuery_ = ""; drillDownQuery_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProfileResult(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.ProfileResult.class, com.yelp.nrtsearch.server.grpc.ProfileResult.Builder.class); } public interface AdditionalCollectorStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:luceneserver.ProfileResult.AdditionalCollectorStats) com.google.protobuf.MessageOrBuilder { /** *
     * Sum of all collection time
     * 
* * double collectTimeMs = 1; * @return The collectTimeMs. */ double getCollectTimeMs(); } /** * Protobuf type {@code luceneserver.ProfileResult.AdditionalCollectorStats} */ public static final class AdditionalCollectorStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.ProfileResult.AdditionalCollectorStats) AdditionalCollectorStatsOrBuilder { private static final long serialVersionUID = 0L; // Use AdditionalCollectorStats.newBuilder() to construct. private AdditionalCollectorStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AdditionalCollectorStats() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AdditionalCollectorStats(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_AdditionalCollectorStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_AdditionalCollectorStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats.class, com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats.Builder.class); } public static final int COLLECTTIMEMS_FIELD_NUMBER = 1; private double collectTimeMs_ = 0D; /** *
     * Sum of all collection time
     * 
* * double collectTimeMs = 1; * @return The collectTimeMs. */ @java.lang.Override public double getCollectTimeMs() { return collectTimeMs_; } 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(collectTimeMs_) != 0) { output.writeDouble(1, collectTimeMs_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (java.lang.Double.doubleToRawLongBits(collectTimeMs_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, collectTimeMs_); } 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.ProfileResult.AdditionalCollectorStats)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats other = (com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats) obj; if (java.lang.Double.doubleToLongBits(getCollectTimeMs()) != java.lang.Double.doubleToLongBits( other.getCollectTimeMs())) 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) + COLLECTTIMEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCollectTimeMs())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats 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.ProfileResult.AdditionalCollectorStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats 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.ProfileResult.AdditionalCollectorStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats 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.ProfileResult.AdditionalCollectorStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats 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.ProfileResult.AdditionalCollectorStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats 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.ProfileResult.AdditionalCollectorStats 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.ProfileResult.AdditionalCollectorStats 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.ProfileResult.AdditionalCollectorStats 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.ProfileResult.AdditionalCollectorStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.ProfileResult.AdditionalCollectorStats) com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_AdditionalCollectorStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_AdditionalCollectorStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats.class, com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; collectTimeMs_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_AdditionalCollectorStats_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats build() { com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats buildPartial() { com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats result = new com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.collectTimeMs_ = collectTimeMs_; } } @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.ProfileResult.AdditionalCollectorStats) { return mergeFrom((com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats other) { if (other == com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats.getDefaultInstance()) return this; if (other.getCollectTimeMs() != 0D) { setCollectTimeMs(other.getCollectTimeMs()); } 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: { collectTimeMs_ = input.readDouble(); bitField0_ |= 0x00000001; break; } // case 9 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 collectTimeMs_ ; /** *
       * Sum of all collection time
       * 
* * double collectTimeMs = 1; * @return The collectTimeMs. */ @java.lang.Override public double getCollectTimeMs() { return collectTimeMs_; } /** *
       * Sum of all collection time
       * 
* * double collectTimeMs = 1; * @param value The collectTimeMs to set. * @return This builder for chaining. */ public Builder setCollectTimeMs(double value) { collectTimeMs_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Sum of all collection time
       * 
* * double collectTimeMs = 1; * @return This builder for chaining. */ public Builder clearCollectTimeMs() { bitField0_ = (bitField0_ & ~0x00000001); collectTimeMs_ = 0D; 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.ProfileResult.AdditionalCollectorStats) } // @@protoc_insertion_point(class_scope:luceneserver.ProfileResult.AdditionalCollectorStats) private static final com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats(); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AdditionalCollectorStats 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.ProfileResult.AdditionalCollectorStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CollectorStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:luceneserver.ProfileResult.CollectorStats) com.google.protobuf.MessageOrBuilder { /** *
     * If collection for this index slice was terminated early, such as by a timeout.
     * 
* * bool terminated = 1; * @return The terminated. */ boolean getTerminated(); /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ java.util.List getSegmentStatsList(); /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats getSegmentStats(int index); /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ int getSegmentStatsCount(); /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ java.util.List getSegmentStatsOrBuilderList(); /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStatsOrBuilder getSegmentStatsOrBuilder( int index); /** *
     * Total docs collected by this collector
     * 
* * int32 totalCollectedCount = 3; * @return The totalCollectedCount. */ int getTotalCollectedCount(); /** *
     * Sum of all segment collection time
     * 
* * double totalCollectTimeMs = 4; * @return The totalCollectTimeMs. */ double getTotalCollectTimeMs(); /** *
     * Stats for additional collection operations
     * 
* * map<string, .luceneserver.ProfileResult.AdditionalCollectorStats> additionalCollectorStats = 5; */ int getAdditionalCollectorStatsCount(); /** *
     * Stats for additional collection operations
     * 
* * map<string, .luceneserver.ProfileResult.AdditionalCollectorStats> additionalCollectorStats = 5; */ boolean containsAdditionalCollectorStats( java.lang.String key); /** * Use {@link #getAdditionalCollectorStatsMap()} instead. */ @java.lang.Deprecated java.util.Map getAdditionalCollectorStats(); /** *
     * Stats for additional collection operations
     * 
* * map<string, .luceneserver.ProfileResult.AdditionalCollectorStats> additionalCollectorStats = 5; */ java.util.Map getAdditionalCollectorStatsMap(); /** *
     * Stats for additional collection operations
     * 
* * map<string, .luceneserver.ProfileResult.AdditionalCollectorStats> additionalCollectorStats = 5; */ /* nullable */ com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats getAdditionalCollectorStatsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats defaultValue); /** *
     * Stats for additional collection operations
     * 
* * map<string, .luceneserver.ProfileResult.AdditionalCollectorStats> additionalCollectorStats = 5; */ com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats getAdditionalCollectorStatsOrThrow( java.lang.String key); } /** * Protobuf type {@code luceneserver.ProfileResult.CollectorStats} */ public static final class CollectorStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.ProfileResult.CollectorStats) CollectorStatsOrBuilder { private static final long serialVersionUID = 0L; // Use CollectorStats.newBuilder() to construct. private CollectorStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CollectorStats() { segmentStats_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CollectorStats(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_CollectorStats_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 5: return internalGetAdditionalCollectorStats(); 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_ProfileResult_CollectorStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.class, com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.Builder.class); } public static final int TERMINATED_FIELD_NUMBER = 1; private boolean terminated_ = false; /** *
     * If collection for this index slice was terminated early, such as by a timeout.
     * 
* * bool terminated = 1; * @return The terminated. */ @java.lang.Override public boolean getTerminated() { return terminated_; } public static final int SEGMENTSTATS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List segmentStats_; /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ @java.lang.Override public java.util.List getSegmentStatsList() { return segmentStats_; } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ @java.lang.Override public java.util.List getSegmentStatsOrBuilderList() { return segmentStats_; } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ @java.lang.Override public int getSegmentStatsCount() { return segmentStats_.size(); } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats getSegmentStats(int index) { return segmentStats_.get(index); } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStatsOrBuilder getSegmentStatsOrBuilder( int index) { return segmentStats_.get(index); } public static final int TOTALCOLLECTEDCOUNT_FIELD_NUMBER = 3; private int totalCollectedCount_ = 0; /** *
     * Total docs collected by this collector
     * 
* * int32 totalCollectedCount = 3; * @return The totalCollectedCount. */ @java.lang.Override public int getTotalCollectedCount() { return totalCollectedCount_; } public static final int TOTALCOLLECTTIMEMS_FIELD_NUMBER = 4; private double totalCollectTimeMs_ = 0D; /** *
     * Sum of all segment collection time
     * 
* * double totalCollectTimeMs = 4; * @return The totalCollectTimeMs. */ @java.lang.Override public double getTotalCollectTimeMs() { return totalCollectTimeMs_; } public static final int ADDITIONALCOLLECTORSTATS_FIELD_NUMBER = 5; private static final class AdditionalCollectorStatsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_CollectorStats_AdditionalCollectorStatsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats> additionalCollectorStats_; private com.google.protobuf.MapField internalGetAdditionalCollectorStats() { if (additionalCollectorStats_ == null) { return com.google.protobuf.MapField.emptyMapField( AdditionalCollectorStatsDefaultEntryHolder.defaultEntry); } return additionalCollectorStats_; } public int getAdditionalCollectorStatsCount() { return internalGetAdditionalCollectorStats().getMap().size(); } /** *
     * Stats for additional collection operations
     * 
* * map<string, .luceneserver.ProfileResult.AdditionalCollectorStats> additionalCollectorStats = 5; */ @java.lang.Override public boolean containsAdditionalCollectorStats( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAdditionalCollectorStats().getMap().containsKey(key); } /** * Use {@link #getAdditionalCollectorStatsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAdditionalCollectorStats() { return getAdditionalCollectorStatsMap(); } /** *
     * Stats for additional collection operations
     * 
* * map<string, .luceneserver.ProfileResult.AdditionalCollectorStats> additionalCollectorStats = 5; */ @java.lang.Override public java.util.Map getAdditionalCollectorStatsMap() { return internalGetAdditionalCollectorStats().getMap(); } /** *
     * Stats for additional collection operations
     * 
* * map<string, .luceneserver.ProfileResult.AdditionalCollectorStats> additionalCollectorStats = 5; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats getAdditionalCollectorStatsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAdditionalCollectorStats().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Stats for additional collection operations
     * 
* * map<string, .luceneserver.ProfileResult.AdditionalCollectorStats> additionalCollectorStats = 5; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats getAdditionalCollectorStatsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAdditionalCollectorStats().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 (terminated_ != false) { output.writeBool(1, terminated_); } for (int i = 0; i < segmentStats_.size(); i++) { output.writeMessage(2, segmentStats_.get(i)); } if (totalCollectedCount_ != 0) { output.writeInt32(3, totalCollectedCount_); } if (java.lang.Double.doubleToRawLongBits(totalCollectTimeMs_) != 0) { output.writeDouble(4, totalCollectTimeMs_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetAdditionalCollectorStats(), AdditionalCollectorStatsDefaultEntryHolder.defaultEntry, 5); getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (terminated_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, terminated_); } for (int i = 0; i < segmentStats_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, segmentStats_.get(i)); } if (totalCollectedCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, totalCollectedCount_); } if (java.lang.Double.doubleToRawLongBits(totalCollectTimeMs_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, totalCollectTimeMs_); } for (java.util.Map.Entry entry : internalGetAdditionalCollectorStats().getMap().entrySet()) { com.google.protobuf.MapEntry additionalCollectorStats__ = AdditionalCollectorStatsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, additionalCollectorStats__); } 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.ProfileResult.CollectorStats)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats other = (com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats) obj; if (getTerminated() != other.getTerminated()) return false; if (!getSegmentStatsList() .equals(other.getSegmentStatsList())) return false; if (getTotalCollectedCount() != other.getTotalCollectedCount()) return false; if (java.lang.Double.doubleToLongBits(getTotalCollectTimeMs()) != java.lang.Double.doubleToLongBits( other.getTotalCollectTimeMs())) return false; if (!internalGetAdditionalCollectorStats().equals( other.internalGetAdditionalCollectorStats())) 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) + TERMINATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTerminated()); if (getSegmentStatsCount() > 0) { hash = (37 * hash) + SEGMENTSTATS_FIELD_NUMBER; hash = (53 * hash) + getSegmentStatsList().hashCode(); } hash = (37 * hash) + TOTALCOLLECTEDCOUNT_FIELD_NUMBER; hash = (53 * hash) + getTotalCollectedCount(); hash = (37 * hash) + TOTALCOLLECTTIMEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTotalCollectTimeMs())); if (!internalGetAdditionalCollectorStats().getMap().isEmpty()) { hash = (37 * hash) + ADDITIONALCOLLECTORSTATS_FIELD_NUMBER; hash = (53 * hash) + internalGetAdditionalCollectorStats().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats 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.ProfileResult.CollectorStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats 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.ProfileResult.CollectorStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats 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.ProfileResult.CollectorStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats 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.ProfileResult.CollectorStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats 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.ProfileResult.CollectorStats 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.ProfileResult.CollectorStats 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.ProfileResult.CollectorStats 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.ProfileResult.CollectorStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.ProfileResult.CollectorStats) com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_CollectorStats_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 5: return internalGetAdditionalCollectorStats(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 5: return internalGetMutableAdditionalCollectorStats(); 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_ProfileResult_CollectorStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.class, com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; terminated_ = false; if (segmentStatsBuilder_ == null) { segmentStats_ = java.util.Collections.emptyList(); } else { segmentStats_ = null; segmentStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); totalCollectedCount_ = 0; totalCollectTimeMs_ = 0D; internalGetMutableAdditionalCollectorStats().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_CollectorStats_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats build() { com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats buildPartial() { com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats result = new com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats result) { if (segmentStatsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { segmentStats_ = java.util.Collections.unmodifiableList(segmentStats_); bitField0_ = (bitField0_ & ~0x00000002); } result.segmentStats_ = segmentStats_; } else { result.segmentStats_ = segmentStatsBuilder_.build(); } } private void buildPartial0(com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.terminated_ = terminated_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.totalCollectedCount_ = totalCollectedCount_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.totalCollectTimeMs_ = totalCollectTimeMs_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.additionalCollectorStats_ = internalGetAdditionalCollectorStats().build(AdditionalCollectorStatsDefaultEntryHolder.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.ProfileResult.CollectorStats) { return mergeFrom((com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats other) { if (other == com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.getDefaultInstance()) return this; if (other.getTerminated() != false) { setTerminated(other.getTerminated()); } if (segmentStatsBuilder_ == null) { if (!other.segmentStats_.isEmpty()) { if (segmentStats_.isEmpty()) { segmentStats_ = other.segmentStats_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSegmentStatsIsMutable(); segmentStats_.addAll(other.segmentStats_); } onChanged(); } } else { if (!other.segmentStats_.isEmpty()) { if (segmentStatsBuilder_.isEmpty()) { segmentStatsBuilder_.dispose(); segmentStatsBuilder_ = null; segmentStats_ = other.segmentStats_; bitField0_ = (bitField0_ & ~0x00000002); segmentStatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSegmentStatsFieldBuilder() : null; } else { segmentStatsBuilder_.addAllMessages(other.segmentStats_); } } } if (other.getTotalCollectedCount() != 0) { setTotalCollectedCount(other.getTotalCollectedCount()); } if (other.getTotalCollectTimeMs() != 0D) { setTotalCollectTimeMs(other.getTotalCollectTimeMs()); } internalGetMutableAdditionalCollectorStats().mergeFrom( other.internalGetAdditionalCollectorStats()); bitField0_ |= 0x00000010; 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: { terminated_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats m = input.readMessage( com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.parser(), extensionRegistry); if (segmentStatsBuilder_ == null) { ensureSegmentStatsIsMutable(); segmentStats_.add(m); } else { segmentStatsBuilder_.addMessage(m); } break; } // case 18 case 24: { totalCollectedCount_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 33: { totalCollectTimeMs_ = input.readDouble(); bitField0_ |= 0x00000008; break; } // case 33 case 42: { com.google.protobuf.MapEntry additionalCollectorStats__ = input.readMessage( AdditionalCollectorStatsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableAdditionalCollectorStats().ensureBuilderMap().put( additionalCollectorStats__.getKey(), additionalCollectorStats__.getValue()); bitField0_ |= 0x00000010; break; } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private boolean terminated_ ; /** *
       * If collection for this index slice was terminated early, such as by a timeout.
       * 
* * bool terminated = 1; * @return The terminated. */ @java.lang.Override public boolean getTerminated() { return terminated_; } /** *
       * If collection for this index slice was terminated early, such as by a timeout.
       * 
* * bool terminated = 1; * @param value The terminated to set. * @return This builder for chaining. */ public Builder setTerminated(boolean value) { terminated_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * If collection for this index slice was terminated early, such as by a timeout.
       * 
* * bool terminated = 1; * @return This builder for chaining. */ public Builder clearTerminated() { bitField0_ = (bitField0_ & ~0x00000001); terminated_ = false; onChanged(); return this; } private java.util.List segmentStats_ = java.util.Collections.emptyList(); private void ensureSegmentStatsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { segmentStats_ = new java.util.ArrayList(segmentStats_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats, com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.Builder, com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStatsOrBuilder> segmentStatsBuilder_; /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public java.util.List getSegmentStatsList() { if (segmentStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(segmentStats_); } else { return segmentStatsBuilder_.getMessageList(); } } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public int getSegmentStatsCount() { if (segmentStatsBuilder_ == null) { return segmentStats_.size(); } else { return segmentStatsBuilder_.getCount(); } } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats getSegmentStats(int index) { if (segmentStatsBuilder_ == null) { return segmentStats_.get(index); } else { return segmentStatsBuilder_.getMessage(index); } } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public Builder setSegmentStats( int index, com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats value) { if (segmentStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSegmentStatsIsMutable(); segmentStats_.set(index, value); onChanged(); } else { segmentStatsBuilder_.setMessage(index, value); } return this; } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public Builder setSegmentStats( int index, com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.Builder builderForValue) { if (segmentStatsBuilder_ == null) { ensureSegmentStatsIsMutable(); segmentStats_.set(index, builderForValue.build()); onChanged(); } else { segmentStatsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public Builder addSegmentStats(com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats value) { if (segmentStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSegmentStatsIsMutable(); segmentStats_.add(value); onChanged(); } else { segmentStatsBuilder_.addMessage(value); } return this; } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public Builder addSegmentStats( int index, com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats value) { if (segmentStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSegmentStatsIsMutable(); segmentStats_.add(index, value); onChanged(); } else { segmentStatsBuilder_.addMessage(index, value); } return this; } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public Builder addSegmentStats( com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.Builder builderForValue) { if (segmentStatsBuilder_ == null) { ensureSegmentStatsIsMutable(); segmentStats_.add(builderForValue.build()); onChanged(); } else { segmentStatsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public Builder addSegmentStats( int index, com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.Builder builderForValue) { if (segmentStatsBuilder_ == null) { ensureSegmentStatsIsMutable(); segmentStats_.add(index, builderForValue.build()); onChanged(); } else { segmentStatsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public Builder addAllSegmentStats( java.lang.Iterable values) { if (segmentStatsBuilder_ == null) { ensureSegmentStatsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, segmentStats_); onChanged(); } else { segmentStatsBuilder_.addAllMessages(values); } return this; } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public Builder clearSegmentStats() { if (segmentStatsBuilder_ == null) { segmentStats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { segmentStatsBuilder_.clear(); } return this; } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public Builder removeSegmentStats(int index) { if (segmentStatsBuilder_ == null) { ensureSegmentStatsIsMutable(); segmentStats_.remove(index); onChanged(); } else { segmentStatsBuilder_.remove(index); } return this; } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.Builder getSegmentStatsBuilder( int index) { return getSegmentStatsFieldBuilder().getBuilder(index); } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStatsOrBuilder getSegmentStatsOrBuilder( int index) { if (segmentStatsBuilder_ == null) { return segmentStats_.get(index); } else { return segmentStatsBuilder_.getMessageOrBuilder(index); } } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public java.util.List getSegmentStatsOrBuilderList() { if (segmentStatsBuilder_ != null) { return segmentStatsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(segmentStats_); } } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.Builder addSegmentStatsBuilder() { return getSegmentStatsFieldBuilder().addBuilder( com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.getDefaultInstance()); } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.Builder addSegmentStatsBuilder( int index) { return getSegmentStatsFieldBuilder().addBuilder( index, com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.getDefaultInstance()); } /** * repeated .luceneserver.ProfileResult.SegmentStats segmentStats = 2; */ public java.util.List getSegmentStatsBuilderList() { return getSegmentStatsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats, com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.Builder, com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStatsOrBuilder> getSegmentStatsFieldBuilder() { if (segmentStatsBuilder_ == null) { segmentStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats, com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.Builder, com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStatsOrBuilder>( segmentStats_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); segmentStats_ = null; } return segmentStatsBuilder_; } private int totalCollectedCount_ ; /** *
       * Total docs collected by this collector
       * 
* * int32 totalCollectedCount = 3; * @return The totalCollectedCount. */ @java.lang.Override public int getTotalCollectedCount() { return totalCollectedCount_; } /** *
       * Total docs collected by this collector
       * 
* * int32 totalCollectedCount = 3; * @param value The totalCollectedCount to set. * @return This builder for chaining. */ public Builder setTotalCollectedCount(int value) { totalCollectedCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * Total docs collected by this collector
       * 
* * int32 totalCollectedCount = 3; * @return This builder for chaining. */ public Builder clearTotalCollectedCount() { bitField0_ = (bitField0_ & ~0x00000004); totalCollectedCount_ = 0; onChanged(); return this; } private double totalCollectTimeMs_ ; /** *
       * Sum of all segment collection time
       * 
* * double totalCollectTimeMs = 4; * @return The totalCollectTimeMs. */ @java.lang.Override public double getTotalCollectTimeMs() { return totalCollectTimeMs_; } /** *
       * Sum of all segment collection time
       * 
* * double totalCollectTimeMs = 4; * @param value The totalCollectTimeMs to set. * @return This builder for chaining. */ public Builder setTotalCollectTimeMs(double value) { totalCollectTimeMs_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Sum of all segment collection time
       * 
* * double totalCollectTimeMs = 4; * @return This builder for chaining. */ public Builder clearTotalCollectTimeMs() { bitField0_ = (bitField0_ & ~0x00000008); totalCollectTimeMs_ = 0D; onChanged(); return this; } private static final class AdditionalCollectorStatsConverter implements com.google.protobuf.MapFieldBuilder.Converter { @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats build(com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStatsOrBuilder val) { if (val instanceof com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats) { return (com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats) val; } return ((com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return AdditionalCollectorStatsDefaultEntryHolder.defaultEntry; } }; private static final AdditionalCollectorStatsConverter additionalCollectorStatsConverter = new AdditionalCollectorStatsConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStatsOrBuilder, com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats, com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats.Builder> additionalCollectorStats_; private com.google.protobuf.MapFieldBuilder internalGetAdditionalCollectorStats() { if (additionalCollectorStats_ == null) { return new com.google.protobuf.MapFieldBuilder<>(additionalCollectorStatsConverter); } return additionalCollectorStats_; } private com.google.protobuf.MapFieldBuilder internalGetMutableAdditionalCollectorStats() { if (additionalCollectorStats_ == null) { additionalCollectorStats_ = new com.google.protobuf.MapFieldBuilder<>(additionalCollectorStatsConverter); } bitField0_ |= 0x00000010; onChanged(); return additionalCollectorStats_; } public int getAdditionalCollectorStatsCount() { return internalGetAdditionalCollectorStats().ensureBuilderMap().size(); } /** *
       * Stats for additional collection operations
       * 
* * map<string, .luceneserver.ProfileResult.AdditionalCollectorStats> additionalCollectorStats = 5; */ @java.lang.Override public boolean containsAdditionalCollectorStats( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetAdditionalCollectorStats().ensureBuilderMap().containsKey(key); } /** * Use {@link #getAdditionalCollectorStatsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAdditionalCollectorStats() { return getAdditionalCollectorStatsMap(); } /** *
       * Stats for additional collection operations
       * 
* * map<string, .luceneserver.ProfileResult.AdditionalCollectorStats> additionalCollectorStats = 5; */ @java.lang.Override public java.util.Map getAdditionalCollectorStatsMap() { return internalGetAdditionalCollectorStats().getImmutableMap(); } /** *
       * Stats for additional collection operations
       * 
* * map<string, .luceneserver.ProfileResult.AdditionalCollectorStats> additionalCollectorStats = 5; */ @java.lang.Override public /* nullable */ com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats getAdditionalCollectorStatsOrDefault( java.lang.String key, /* nullable */ com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableAdditionalCollectorStats().ensureBuilderMap(); return map.containsKey(key) ? additionalCollectorStatsConverter.build(map.get(key)) : defaultValue; } /** *
       * Stats for additional collection operations
       * 
* * map<string, .luceneserver.ProfileResult.AdditionalCollectorStats> additionalCollectorStats = 5; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats getAdditionalCollectorStatsOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableAdditionalCollectorStats().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return additionalCollectorStatsConverter.build(map.get(key)); } public Builder clearAdditionalCollectorStats() { bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableAdditionalCollectorStats().clear(); return this; } /** *
       * Stats for additional collection operations
       * 
* * map<string, .luceneserver.ProfileResult.AdditionalCollectorStats> additionalCollectorStats = 5; */ public Builder removeAdditionalCollectorStats( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableAdditionalCollectorStats().ensureBuilderMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAdditionalCollectorStats() { bitField0_ |= 0x00000010; return internalGetMutableAdditionalCollectorStats().ensureMessageMap(); } /** *
       * Stats for additional collection operations
       * 
* * map<string, .luceneserver.ProfileResult.AdditionalCollectorStats> additionalCollectorStats = 5; */ public Builder putAdditionalCollectorStats( java.lang.String key, com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableAdditionalCollectorStats().ensureBuilderMap() .put(key, value); bitField0_ |= 0x00000010; return this; } /** *
       * Stats for additional collection operations
       * 
* * map<string, .luceneserver.ProfileResult.AdditionalCollectorStats> additionalCollectorStats = 5; */ public Builder putAllAdditionalCollectorStats( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableAdditionalCollectorStats().ensureBuilderMap() .putAll(values); bitField0_ |= 0x00000010; return this; } /** *
       * Stats for additional collection operations
       * 
* * map<string, .luceneserver.ProfileResult.AdditionalCollectorStats> additionalCollectorStats = 5; */ public com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats.Builder putAdditionalCollectorStatsBuilderIfAbsent( java.lang.String key) { java.util.Map builderMap = internalGetMutableAdditionalCollectorStats().ensureBuilderMap(); com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStatsOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats.newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats) { entry = ((com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats) entry).toBuilder(); builderMap.put(key, entry); } return (com.yelp.nrtsearch.server.grpc.ProfileResult.AdditionalCollectorStats.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.ProfileResult.CollectorStats) } // @@protoc_insertion_point(class_scope:luceneserver.ProfileResult.CollectorStats) private static final com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats(); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CollectorStats 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.ProfileResult.CollectorStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SegmentStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:luceneserver.ProfileResult.SegmentStats) com.google.protobuf.MessageOrBuilder { /** *
     * Total docs in segment
     * 
* * int32 maxDoc = 1; * @return The maxDoc. */ int getMaxDoc(); /** *
     * Total live docs in segment
     * 
* * int32 numDocs = 2; * @return The numDocs. */ int getNumDocs(); /** *
     * How many docs were collected
     * 
* * int32 collectedCount = 3; * @return The collectedCount. */ int getCollectedCount(); /** *
     * Start time of segment processing in relation to the start of the search phase
     * 
* * double relativeStartTimeMs = 4; * @return The relativeStartTimeMs. */ double getRelativeStartTimeMs(); /** *
     * Collection duration
     * 
* * double collectTimeMs = 5; * @return The collectTimeMs. */ double getCollectTimeMs(); } /** * Protobuf type {@code luceneserver.ProfileResult.SegmentStats} */ public static final class SegmentStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.ProfileResult.SegmentStats) SegmentStatsOrBuilder { private static final long serialVersionUID = 0L; // Use SegmentStats.newBuilder() to construct. private SegmentStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SegmentStats() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SegmentStats(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_SegmentStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_SegmentStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.class, com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.Builder.class); } public static final int MAXDOC_FIELD_NUMBER = 1; private int maxDoc_ = 0; /** *
     * Total docs in segment
     * 
* * int32 maxDoc = 1; * @return The maxDoc. */ @java.lang.Override public int getMaxDoc() { return maxDoc_; } public static final int NUMDOCS_FIELD_NUMBER = 2; private int numDocs_ = 0; /** *
     * Total live docs in segment
     * 
* * int32 numDocs = 2; * @return The numDocs. */ @java.lang.Override public int getNumDocs() { return numDocs_; } public static final int COLLECTEDCOUNT_FIELD_NUMBER = 3; private int collectedCount_ = 0; /** *
     * How many docs were collected
     * 
* * int32 collectedCount = 3; * @return The collectedCount. */ @java.lang.Override public int getCollectedCount() { return collectedCount_; } public static final int RELATIVESTARTTIMEMS_FIELD_NUMBER = 4; private double relativeStartTimeMs_ = 0D; /** *
     * Start time of segment processing in relation to the start of the search phase
     * 
* * double relativeStartTimeMs = 4; * @return The relativeStartTimeMs. */ @java.lang.Override public double getRelativeStartTimeMs() { return relativeStartTimeMs_; } public static final int COLLECTTIMEMS_FIELD_NUMBER = 5; private double collectTimeMs_ = 0D; /** *
     * Collection duration
     * 
* * double collectTimeMs = 5; * @return The collectTimeMs. */ @java.lang.Override public double getCollectTimeMs() { return collectTimeMs_; } 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 (maxDoc_ != 0) { output.writeInt32(1, maxDoc_); } if (numDocs_ != 0) { output.writeInt32(2, numDocs_); } if (collectedCount_ != 0) { output.writeInt32(3, collectedCount_); } if (java.lang.Double.doubleToRawLongBits(relativeStartTimeMs_) != 0) { output.writeDouble(4, relativeStartTimeMs_); } if (java.lang.Double.doubleToRawLongBits(collectTimeMs_) != 0) { output.writeDouble(5, collectTimeMs_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (maxDoc_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, maxDoc_); } if (numDocs_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, numDocs_); } if (collectedCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, collectedCount_); } if (java.lang.Double.doubleToRawLongBits(relativeStartTimeMs_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(4, relativeStartTimeMs_); } if (java.lang.Double.doubleToRawLongBits(collectTimeMs_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, collectTimeMs_); } 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.ProfileResult.SegmentStats)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats other = (com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats) obj; if (getMaxDoc() != other.getMaxDoc()) return false; if (getNumDocs() != other.getNumDocs()) return false; if (getCollectedCount() != other.getCollectedCount()) return false; if (java.lang.Double.doubleToLongBits(getRelativeStartTimeMs()) != java.lang.Double.doubleToLongBits( other.getRelativeStartTimeMs())) return false; if (java.lang.Double.doubleToLongBits(getCollectTimeMs()) != java.lang.Double.doubleToLongBits( other.getCollectTimeMs())) 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) + MAXDOC_FIELD_NUMBER; hash = (53 * hash) + getMaxDoc(); hash = (37 * hash) + NUMDOCS_FIELD_NUMBER; hash = (53 * hash) + getNumDocs(); hash = (37 * hash) + COLLECTEDCOUNT_FIELD_NUMBER; hash = (53 * hash) + getCollectedCount(); hash = (37 * hash) + RELATIVESTARTTIMEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getRelativeStartTimeMs())); hash = (37 * hash) + COLLECTTIMEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCollectTimeMs())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats 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.ProfileResult.SegmentStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats 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.ProfileResult.SegmentStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats 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.ProfileResult.SegmentStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats 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.ProfileResult.SegmentStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats 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.ProfileResult.SegmentStats 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.ProfileResult.SegmentStats 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.ProfileResult.SegmentStats 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.ProfileResult.SegmentStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.ProfileResult.SegmentStats) com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_SegmentStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_SegmentStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.class, com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; maxDoc_ = 0; numDocs_ = 0; collectedCount_ = 0; relativeStartTimeMs_ = 0D; collectTimeMs_ = 0D; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_SegmentStats_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats build() { com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats buildPartial() { com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats result = new com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.maxDoc_ = maxDoc_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.numDocs_ = numDocs_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.collectedCount_ = collectedCount_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.relativeStartTimeMs_ = relativeStartTimeMs_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.collectTimeMs_ = collectTimeMs_; } } @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.ProfileResult.SegmentStats) { return mergeFrom((com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats other) { if (other == com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats.getDefaultInstance()) return this; if (other.getMaxDoc() != 0) { setMaxDoc(other.getMaxDoc()); } if (other.getNumDocs() != 0) { setNumDocs(other.getNumDocs()); } if (other.getCollectedCount() != 0) { setCollectedCount(other.getCollectedCount()); } if (other.getRelativeStartTimeMs() != 0D) { setRelativeStartTimeMs(other.getRelativeStartTimeMs()); } if (other.getCollectTimeMs() != 0D) { setCollectTimeMs(other.getCollectTimeMs()); } 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: { maxDoc_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { numDocs_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { collectedCount_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 33: { relativeStartTimeMs_ = input.readDouble(); bitField0_ |= 0x00000008; break; } // case 33 case 41: { collectTimeMs_ = input.readDouble(); bitField0_ |= 0x00000010; break; } // case 41 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 maxDoc_ ; /** *
       * Total docs in segment
       * 
* * int32 maxDoc = 1; * @return The maxDoc. */ @java.lang.Override public int getMaxDoc() { return maxDoc_; } /** *
       * Total docs in segment
       * 
* * int32 maxDoc = 1; * @param value The maxDoc to set. * @return This builder for chaining. */ public Builder setMaxDoc(int value) { maxDoc_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Total docs in segment
       * 
* * int32 maxDoc = 1; * @return This builder for chaining. */ public Builder clearMaxDoc() { bitField0_ = (bitField0_ & ~0x00000001); maxDoc_ = 0; onChanged(); return this; } private int numDocs_ ; /** *
       * Total live docs in segment
       * 
* * int32 numDocs = 2; * @return The numDocs. */ @java.lang.Override public int getNumDocs() { return numDocs_; } /** *
       * Total live docs in segment
       * 
* * int32 numDocs = 2; * @param value The numDocs to set. * @return This builder for chaining. */ public Builder setNumDocs(int value) { numDocs_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Total live docs in segment
       * 
* * int32 numDocs = 2; * @return This builder for chaining. */ public Builder clearNumDocs() { bitField0_ = (bitField0_ & ~0x00000002); numDocs_ = 0; onChanged(); return this; } private int collectedCount_ ; /** *
       * How many docs were collected
       * 
* * int32 collectedCount = 3; * @return The collectedCount. */ @java.lang.Override public int getCollectedCount() { return collectedCount_; } /** *
       * How many docs were collected
       * 
* * int32 collectedCount = 3; * @param value The collectedCount to set. * @return This builder for chaining. */ public Builder setCollectedCount(int value) { collectedCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
       * How many docs were collected
       * 
* * int32 collectedCount = 3; * @return This builder for chaining. */ public Builder clearCollectedCount() { bitField0_ = (bitField0_ & ~0x00000004); collectedCount_ = 0; onChanged(); return this; } private double relativeStartTimeMs_ ; /** *
       * Start time of segment processing in relation to the start of the search phase
       * 
* * double relativeStartTimeMs = 4; * @return The relativeStartTimeMs. */ @java.lang.Override public double getRelativeStartTimeMs() { return relativeStartTimeMs_; } /** *
       * Start time of segment processing in relation to the start of the search phase
       * 
* * double relativeStartTimeMs = 4; * @param value The relativeStartTimeMs to set. * @return This builder for chaining. */ public Builder setRelativeStartTimeMs(double value) { relativeStartTimeMs_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
       * Start time of segment processing in relation to the start of the search phase
       * 
* * double relativeStartTimeMs = 4; * @return This builder for chaining. */ public Builder clearRelativeStartTimeMs() { bitField0_ = (bitField0_ & ~0x00000008); relativeStartTimeMs_ = 0D; onChanged(); return this; } private double collectTimeMs_ ; /** *
       * Collection duration
       * 
* * double collectTimeMs = 5; * @return The collectTimeMs. */ @java.lang.Override public double getCollectTimeMs() { return collectTimeMs_; } /** *
       * Collection duration
       * 
* * double collectTimeMs = 5; * @param value The collectTimeMs to set. * @return This builder for chaining. */ public Builder setCollectTimeMs(double value) { collectTimeMs_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
       * Collection duration
       * 
* * double collectTimeMs = 5; * @return This builder for chaining. */ public Builder clearCollectTimeMs() { bitField0_ = (bitField0_ & ~0x00000010); collectTimeMs_ = 0D; 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.ProfileResult.SegmentStats) } // @@protoc_insertion_point(class_scope:luceneserver.ProfileResult.SegmentStats) private static final com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats(); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.SegmentStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SegmentStats 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.ProfileResult.SegmentStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SearchStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:luceneserver.ProfileResult.SearchStats) com.google.protobuf.MessageOrBuilder { /** *
     * Total time for all document collection
     * 
* * double totalCollectTimeMs = 1; * @return The totalCollectTimeMs. */ double getTotalCollectTimeMs(); /** *
     * Total time to reduce results from all parallel search slices
     * 
* * double totalReduceTimeMs = 2; * @return The totalReduceTimeMs. */ double getTotalReduceTimeMs(); /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ java.util.List getCollectorStatsList(); /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats getCollectorStats(int index); /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ int getCollectorStatsCount(); /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ java.util.List getCollectorStatsOrBuilderList(); /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStatsOrBuilder getCollectorStatsOrBuilder( int index); } /** * Protobuf type {@code luceneserver.ProfileResult.SearchStats} */ public static final class SearchStats extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:luceneserver.ProfileResult.SearchStats) SearchStatsOrBuilder { private static final long serialVersionUID = 0L; // Use SearchStats.newBuilder() to construct. private SearchStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SearchStats() { collectorStats_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SearchStats(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_SearchStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_SearchStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats.class, com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats.Builder.class); } public static final int TOTALCOLLECTTIMEMS_FIELD_NUMBER = 1; private double totalCollectTimeMs_ = 0D; /** *
     * Total time for all document collection
     * 
* * double totalCollectTimeMs = 1; * @return The totalCollectTimeMs. */ @java.lang.Override public double getTotalCollectTimeMs() { return totalCollectTimeMs_; } public static final int TOTALREDUCETIMEMS_FIELD_NUMBER = 2; private double totalReduceTimeMs_ = 0D; /** *
     * Total time to reduce results from all parallel search slices
     * 
* * double totalReduceTimeMs = 2; * @return The totalReduceTimeMs. */ @java.lang.Override public double getTotalReduceTimeMs() { return totalReduceTimeMs_; } public static final int COLLECTORSTATS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List collectorStats_; /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ @java.lang.Override public java.util.List getCollectorStatsList() { return collectorStats_; } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ @java.lang.Override public java.util.List getCollectorStatsOrBuilderList() { return collectorStats_; } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ @java.lang.Override public int getCollectorStatsCount() { return collectorStats_.size(); } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats getCollectorStats(int index) { return collectorStats_.get(index); } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStatsOrBuilder getCollectorStatsOrBuilder( int index) { return collectorStats_.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 (java.lang.Double.doubleToRawLongBits(totalCollectTimeMs_) != 0) { output.writeDouble(1, totalCollectTimeMs_); } if (java.lang.Double.doubleToRawLongBits(totalReduceTimeMs_) != 0) { output.writeDouble(2, totalReduceTimeMs_); } for (int i = 0; i < collectorStats_.size(); i++) { output.writeMessage(3, collectorStats_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (java.lang.Double.doubleToRawLongBits(totalCollectTimeMs_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(1, totalCollectTimeMs_); } if (java.lang.Double.doubleToRawLongBits(totalReduceTimeMs_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, totalReduceTimeMs_); } for (int i = 0; i < collectorStats_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, collectorStats_.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.ProfileResult.SearchStats)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats other = (com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats) obj; if (java.lang.Double.doubleToLongBits(getTotalCollectTimeMs()) != java.lang.Double.doubleToLongBits( other.getTotalCollectTimeMs())) return false; if (java.lang.Double.doubleToLongBits(getTotalReduceTimeMs()) != java.lang.Double.doubleToLongBits( other.getTotalReduceTimeMs())) return false; if (!getCollectorStatsList() .equals(other.getCollectorStatsList())) 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) + TOTALCOLLECTTIMEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTotalCollectTimeMs())); hash = (37 * hash) + TOTALREDUCETIMEMS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTotalReduceTimeMs())); if (getCollectorStatsCount() > 0) { hash = (37 * hash) + COLLECTORSTATS_FIELD_NUMBER; hash = (53 * hash) + getCollectorStatsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats 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.ProfileResult.SearchStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats 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.ProfileResult.SearchStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats 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.ProfileResult.SearchStats parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats 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.ProfileResult.SearchStats parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats 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.ProfileResult.SearchStats 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.ProfileResult.SearchStats 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.ProfileResult.SearchStats 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.ProfileResult.SearchStats} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.ProfileResult.SearchStats) com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStatsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_SearchStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_SearchStats_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats.class, com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; totalCollectTimeMs_ = 0D; totalReduceTimeMs_ = 0D; if (collectorStatsBuilder_ == null) { collectorStats_ = java.util.Collections.emptyList(); } else { collectorStats_ = null; collectorStatsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_SearchStats_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats build() { com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats buildPartial() { com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats result = new com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats result) { if (collectorStatsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { collectorStats_ = java.util.Collections.unmodifiableList(collectorStats_); bitField0_ = (bitField0_ & ~0x00000004); } result.collectorStats_ = collectorStats_; } else { result.collectorStats_ = collectorStatsBuilder_.build(); } } private void buildPartial0(com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.totalCollectTimeMs_ = totalCollectTimeMs_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.totalReduceTimeMs_ = totalReduceTimeMs_; } } @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.ProfileResult.SearchStats) { return mergeFrom((com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats other) { if (other == com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats.getDefaultInstance()) return this; if (other.getTotalCollectTimeMs() != 0D) { setTotalCollectTimeMs(other.getTotalCollectTimeMs()); } if (other.getTotalReduceTimeMs() != 0D) { setTotalReduceTimeMs(other.getTotalReduceTimeMs()); } if (collectorStatsBuilder_ == null) { if (!other.collectorStats_.isEmpty()) { if (collectorStats_.isEmpty()) { collectorStats_ = other.collectorStats_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureCollectorStatsIsMutable(); collectorStats_.addAll(other.collectorStats_); } onChanged(); } } else { if (!other.collectorStats_.isEmpty()) { if (collectorStatsBuilder_.isEmpty()) { collectorStatsBuilder_.dispose(); collectorStatsBuilder_ = null; collectorStats_ = other.collectorStats_; bitField0_ = (bitField0_ & ~0x00000004); collectorStatsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCollectorStatsFieldBuilder() : null; } else { collectorStatsBuilder_.addAllMessages(other.collectorStats_); } } } 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: { totalCollectTimeMs_ = input.readDouble(); bitField0_ |= 0x00000001; break; } // case 9 case 17: { totalReduceTimeMs_ = input.readDouble(); bitField0_ |= 0x00000002; break; } // case 17 case 26: { com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats m = input.readMessage( com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.parser(), extensionRegistry); if (collectorStatsBuilder_ == null) { ensureCollectorStatsIsMutable(); collectorStats_.add(m); } else { collectorStatsBuilder_.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 double totalCollectTimeMs_ ; /** *
       * Total time for all document collection
       * 
* * double totalCollectTimeMs = 1; * @return The totalCollectTimeMs. */ @java.lang.Override public double getTotalCollectTimeMs() { return totalCollectTimeMs_; } /** *
       * Total time for all document collection
       * 
* * double totalCollectTimeMs = 1; * @param value The totalCollectTimeMs to set. * @return This builder for chaining. */ public Builder setTotalCollectTimeMs(double value) { totalCollectTimeMs_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
       * Total time for all document collection
       * 
* * double totalCollectTimeMs = 1; * @return This builder for chaining. */ public Builder clearTotalCollectTimeMs() { bitField0_ = (bitField0_ & ~0x00000001); totalCollectTimeMs_ = 0D; onChanged(); return this; } private double totalReduceTimeMs_ ; /** *
       * Total time to reduce results from all parallel search slices
       * 
* * double totalReduceTimeMs = 2; * @return The totalReduceTimeMs. */ @java.lang.Override public double getTotalReduceTimeMs() { return totalReduceTimeMs_; } /** *
       * Total time to reduce results from all parallel search slices
       * 
* * double totalReduceTimeMs = 2; * @param value The totalReduceTimeMs to set. * @return This builder for chaining. */ public Builder setTotalReduceTimeMs(double value) { totalReduceTimeMs_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
       * Total time to reduce results from all parallel search slices
       * 
* * double totalReduceTimeMs = 2; * @return This builder for chaining. */ public Builder clearTotalReduceTimeMs() { bitField0_ = (bitField0_ & ~0x00000002); totalReduceTimeMs_ = 0D; onChanged(); return this; } private java.util.List collectorStats_ = java.util.Collections.emptyList(); private void ensureCollectorStatsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { collectorStats_ = new java.util.ArrayList(collectorStats_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats, com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.Builder, com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStatsOrBuilder> collectorStatsBuilder_; /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public java.util.List getCollectorStatsList() { if (collectorStatsBuilder_ == null) { return java.util.Collections.unmodifiableList(collectorStats_); } else { return collectorStatsBuilder_.getMessageList(); } } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public int getCollectorStatsCount() { if (collectorStatsBuilder_ == null) { return collectorStats_.size(); } else { return collectorStatsBuilder_.getCount(); } } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats getCollectorStats(int index) { if (collectorStatsBuilder_ == null) { return collectorStats_.get(index); } else { return collectorStatsBuilder_.getMessage(index); } } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public Builder setCollectorStats( int index, com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats value) { if (collectorStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCollectorStatsIsMutable(); collectorStats_.set(index, value); onChanged(); } else { collectorStatsBuilder_.setMessage(index, value); } return this; } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public Builder setCollectorStats( int index, com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.Builder builderForValue) { if (collectorStatsBuilder_ == null) { ensureCollectorStatsIsMutable(); collectorStats_.set(index, builderForValue.build()); onChanged(); } else { collectorStatsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public Builder addCollectorStats(com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats value) { if (collectorStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCollectorStatsIsMutable(); collectorStats_.add(value); onChanged(); } else { collectorStatsBuilder_.addMessage(value); } return this; } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public Builder addCollectorStats( int index, com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats value) { if (collectorStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCollectorStatsIsMutable(); collectorStats_.add(index, value); onChanged(); } else { collectorStatsBuilder_.addMessage(index, value); } return this; } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public Builder addCollectorStats( com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.Builder builderForValue) { if (collectorStatsBuilder_ == null) { ensureCollectorStatsIsMutable(); collectorStats_.add(builderForValue.build()); onChanged(); } else { collectorStatsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public Builder addCollectorStats( int index, com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.Builder builderForValue) { if (collectorStatsBuilder_ == null) { ensureCollectorStatsIsMutable(); collectorStats_.add(index, builderForValue.build()); onChanged(); } else { collectorStatsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public Builder addAllCollectorStats( java.lang.Iterable values) { if (collectorStatsBuilder_ == null) { ensureCollectorStatsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, collectorStats_); onChanged(); } else { collectorStatsBuilder_.addAllMessages(values); } return this; } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public Builder clearCollectorStats() { if (collectorStatsBuilder_ == null) { collectorStats_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { collectorStatsBuilder_.clear(); } return this; } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public Builder removeCollectorStats(int index) { if (collectorStatsBuilder_ == null) { ensureCollectorStatsIsMutable(); collectorStats_.remove(index); onChanged(); } else { collectorStatsBuilder_.remove(index); } return this; } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.Builder getCollectorStatsBuilder( int index) { return getCollectorStatsFieldBuilder().getBuilder(index); } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStatsOrBuilder getCollectorStatsOrBuilder( int index) { if (collectorStatsBuilder_ == null) { return collectorStats_.get(index); } else { return collectorStatsBuilder_.getMessageOrBuilder(index); } } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public java.util.List getCollectorStatsOrBuilderList() { if (collectorStatsBuilder_ != null) { return collectorStatsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(collectorStats_); } } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.Builder addCollectorStatsBuilder() { return getCollectorStatsFieldBuilder().addBuilder( com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.getDefaultInstance()); } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.Builder addCollectorStatsBuilder( int index) { return getCollectorStatsFieldBuilder().addBuilder( index, com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.getDefaultInstance()); } /** * repeated .luceneserver.ProfileResult.CollectorStats collectorStats = 3; */ public java.util.List getCollectorStatsBuilderList() { return getCollectorStatsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats, com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.Builder, com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStatsOrBuilder> getCollectorStatsFieldBuilder() { if (collectorStatsBuilder_ == null) { collectorStatsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats, com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStats.Builder, com.yelp.nrtsearch.server.grpc.ProfileResult.CollectorStatsOrBuilder>( collectorStats_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); collectorStats_ = null; } return collectorStatsBuilder_; } @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.ProfileResult.SearchStats) } // @@protoc_insertion_point(class_scope:luceneserver.ProfileResult.SearchStats) private static final com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats(); } public static com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SearchStats 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.ProfileResult.SearchStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int SEARCHSTATS_FIELD_NUMBER = 1; private com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats searchStats_; /** * .luceneserver.ProfileResult.SearchStats searchStats = 1; * @return Whether the searchStats field is set. */ @java.lang.Override public boolean hasSearchStats() { return ((bitField0_ & 0x00000001) != 0); } /** * .luceneserver.ProfileResult.SearchStats searchStats = 1; * @return The searchStats. */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats getSearchStats() { return searchStats_ == null ? com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats.getDefaultInstance() : searchStats_; } /** * .luceneserver.ProfileResult.SearchStats searchStats = 1; */ @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStatsOrBuilder getSearchStatsOrBuilder() { return searchStats_ == null ? com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats.getDefaultInstance() : searchStats_; } public static final int PARSEDQUERY_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object parsedQuery_ = ""; /** * string parsedQuery = 2; * @return The parsedQuery. */ @java.lang.Override 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; } } /** * string parsedQuery = 2; * @return The bytes for parsedQuery. */ @java.lang.Override 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 = 3; @SuppressWarnings("serial") private volatile java.lang.Object rewrittenQuery_ = ""; /** * string rewrittenQuery = 3; * @return The rewrittenQuery. */ @java.lang.Override 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 = 3; * @return The bytes for rewrittenQuery. */ @java.lang.Override 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 = 4; @SuppressWarnings("serial") private volatile java.lang.Object drillDownQuery_ = ""; /** * string drillDownQuery = 4; * @return The drillDownQuery. */ @java.lang.Override 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 = 4; * @return The bytes for drillDownQuery. */ @java.lang.Override 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; } } 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, getSearchStats()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parsedQuery_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parsedQuery_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewrittenQuery_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, rewrittenQuery_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(drillDownQuery_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, drillDownQuery_); } 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, getSearchStats()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parsedQuery_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parsedQuery_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rewrittenQuery_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, rewrittenQuery_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(drillDownQuery_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, drillDownQuery_); } 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.ProfileResult)) { return super.equals(obj); } com.yelp.nrtsearch.server.grpc.ProfileResult other = (com.yelp.nrtsearch.server.grpc.ProfileResult) obj; if (hasSearchStats() != other.hasSearchStats()) return false; if (hasSearchStats()) { if (!getSearchStats() .equals(other.getSearchStats())) return false; } if (!getParsedQuery() .equals(other.getParsedQuery())) return false; if (!getRewrittenQuery() .equals(other.getRewrittenQuery())) return false; if (!getDrillDownQuery() .equals(other.getDrillDownQuery())) 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 (hasSearchStats()) { hash = (37 * hash) + SEARCHSTATS_FIELD_NUMBER; hash = (53 * hash) + getSearchStats().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 = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.yelp.nrtsearch.server.grpc.ProfileResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.ProfileResult 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.ProfileResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.ProfileResult 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.ProfileResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yelp.nrtsearch.server.grpc.ProfileResult 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.ProfileResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.ProfileResult 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.ProfileResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yelp.nrtsearch.server.grpc.ProfileResult 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.ProfileResult 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.ProfileResult 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.ProfileResult 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; } /** *
   * Defines detailed profiling stats for queries that set profile=true
   * 
* * Protobuf type {@code luceneserver.ProfileResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:luceneserver.ProfileResult) com.yelp.nrtsearch.server.grpc.ProfileResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yelp.nrtsearch.server.grpc.ProfileResult.class, com.yelp.nrtsearch.server.grpc.ProfileResult.Builder.class); } // Construct using com.yelp.nrtsearch.server.grpc.ProfileResult.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSearchStatsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; searchStats_ = null; if (searchStatsBuilder_ != null) { searchStatsBuilder_.dispose(); searchStatsBuilder_ = null; } parsedQuery_ = ""; rewrittenQuery_ = ""; drillDownQuery_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yelp.nrtsearch.server.grpc.SearchResponseProto.internal_static_luceneserver_ProfileResult_descriptor; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult getDefaultInstanceForType() { return com.yelp.nrtsearch.server.grpc.ProfileResult.getDefaultInstance(); } @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult build() { com.yelp.nrtsearch.server.grpc.ProfileResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yelp.nrtsearch.server.grpc.ProfileResult buildPartial() { com.yelp.nrtsearch.server.grpc.ProfileResult result = new com.yelp.nrtsearch.server.grpc.ProfileResult(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.yelp.nrtsearch.server.grpc.ProfileResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.searchStats_ = searchStatsBuilder_ == null ? searchStats_ : searchStatsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.parsedQuery_ = parsedQuery_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.rewrittenQuery_ = rewrittenQuery_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.drillDownQuery_ = drillDownQuery_; } 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.ProfileResult) { return mergeFrom((com.yelp.nrtsearch.server.grpc.ProfileResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yelp.nrtsearch.server.grpc.ProfileResult other) { if (other == com.yelp.nrtsearch.server.grpc.ProfileResult.getDefaultInstance()) return this; if (other.hasSearchStats()) { mergeSearchStats(other.getSearchStats()); } if (!other.getParsedQuery().isEmpty()) { parsedQuery_ = other.parsedQuery_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getRewrittenQuery().isEmpty()) { rewrittenQuery_ = other.rewrittenQuery_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getDrillDownQuery().isEmpty()) { drillDownQuery_ = other.drillDownQuery_; bitField0_ |= 0x00000008; 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: { input.readMessage( getSearchStatsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { parsedQuery_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { rewrittenQuery_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { drillDownQuery_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 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.ProfileResult.SearchStats searchStats_; private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats, com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats.Builder, com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStatsOrBuilder> searchStatsBuilder_; /** * .luceneserver.ProfileResult.SearchStats searchStats = 1; * @return Whether the searchStats field is set. */ public boolean hasSearchStats() { return ((bitField0_ & 0x00000001) != 0); } /** * .luceneserver.ProfileResult.SearchStats searchStats = 1; * @return The searchStats. */ public com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats getSearchStats() { if (searchStatsBuilder_ == null) { return searchStats_ == null ? com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats.getDefaultInstance() : searchStats_; } else { return searchStatsBuilder_.getMessage(); } } /** * .luceneserver.ProfileResult.SearchStats searchStats = 1; */ public Builder setSearchStats(com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats value) { if (searchStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } searchStats_ = value; } else { searchStatsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .luceneserver.ProfileResult.SearchStats searchStats = 1; */ public Builder setSearchStats( com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats.Builder builderForValue) { if (searchStatsBuilder_ == null) { searchStats_ = builderForValue.build(); } else { searchStatsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .luceneserver.ProfileResult.SearchStats searchStats = 1; */ public Builder mergeSearchStats(com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats value) { if (searchStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && searchStats_ != null && searchStats_ != com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats.getDefaultInstance()) { getSearchStatsBuilder().mergeFrom(value); } else { searchStats_ = value; } } else { searchStatsBuilder_.mergeFrom(value); } if (searchStats_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .luceneserver.ProfileResult.SearchStats searchStats = 1; */ public Builder clearSearchStats() { bitField0_ = (bitField0_ & ~0x00000001); searchStats_ = null; if (searchStatsBuilder_ != null) { searchStatsBuilder_.dispose(); searchStatsBuilder_ = null; } onChanged(); return this; } /** * .luceneserver.ProfileResult.SearchStats searchStats = 1; */ public com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats.Builder getSearchStatsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSearchStatsFieldBuilder().getBuilder(); } /** * .luceneserver.ProfileResult.SearchStats searchStats = 1; */ public com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStatsOrBuilder getSearchStatsOrBuilder() { if (searchStatsBuilder_ != null) { return searchStatsBuilder_.getMessageOrBuilder(); } else { return searchStats_ == null ? com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats.getDefaultInstance() : searchStats_; } } /** * .luceneserver.ProfileResult.SearchStats searchStats = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats, com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats.Builder, com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStatsOrBuilder> getSearchStatsFieldBuilder() { if (searchStatsBuilder_ == null) { searchStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats, com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStats.Builder, com.yelp.nrtsearch.server.grpc.ProfileResult.SearchStatsOrBuilder>( getSearchStats(), getParentForChildren(), isClean()); searchStats_ = null; } return searchStatsBuilder_; } private java.lang.Object parsedQuery_ = ""; /** * string parsedQuery = 2; * @return The parsedQuery. */ 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; } } /** * string parsedQuery = 2; * @return The bytes for parsedQuery. */ 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; } } /** * string parsedQuery = 2; * @param value The parsedQuery to set. * @return This builder for chaining. */ public Builder setParsedQuery( java.lang.String value) { if (value == null) { throw new NullPointerException(); } parsedQuery_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * string parsedQuery = 2; * @return This builder for chaining. */ public Builder clearParsedQuery() { parsedQuery_ = getDefaultInstance().getParsedQuery(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * string parsedQuery = 2; * @param value The bytes for parsedQuery to set. * @return This builder for chaining. */ public Builder setParsedQueryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parsedQuery_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object rewrittenQuery_ = ""; /** * string rewrittenQuery = 3; * @return The rewrittenQuery. */ 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 = 3; * @return The bytes for rewrittenQuery. */ 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 = 3; * @param value The rewrittenQuery to set. * @return This builder for chaining. */ public Builder setRewrittenQuery( java.lang.String value) { if (value == null) { throw new NullPointerException(); } rewrittenQuery_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * string rewrittenQuery = 3; * @return This builder for chaining. */ public Builder clearRewrittenQuery() { rewrittenQuery_ = getDefaultInstance().getRewrittenQuery(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * string rewrittenQuery = 3; * @param value The bytes for rewrittenQuery to set. * @return This builder for chaining. */ public Builder setRewrittenQueryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rewrittenQuery_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object drillDownQuery_ = ""; /** * string drillDownQuery = 4; * @return The drillDownQuery. */ 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 = 4; * @return The bytes for drillDownQuery. */ 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 = 4; * @param value The drillDownQuery to set. * @return This builder for chaining. */ public Builder setDrillDownQuery( java.lang.String value) { if (value == null) { throw new NullPointerException(); } drillDownQuery_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * string drillDownQuery = 4; * @return This builder for chaining. */ public Builder clearDrillDownQuery() { drillDownQuery_ = getDefaultInstance().getDrillDownQuery(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * string drillDownQuery = 4; * @param value The bytes for drillDownQuery to set. * @return This builder for chaining. */ public Builder setDrillDownQueryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); drillDownQuery_ = value; bitField0_ |= 0x00000008; 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.ProfileResult) } // @@protoc_insertion_point(class_scope:luceneserver.ProfileResult) private static final com.yelp.nrtsearch.server.grpc.ProfileResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yelp.nrtsearch.server.grpc.ProfileResult(); } public static com.yelp.nrtsearch.server.grpc.ProfileResult getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProfileResult 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.ProfileResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy