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

logproto.Logproto Maven / Gradle / Ivy

There is a newer version: 0.9.32
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: logproto.proto

package logproto;

public final class Logproto {
  private Logproto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code logproto.Direction}
   */
  public enum Direction
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * FORWARD = 0;
     */
    FORWARD(0),
    /**
     * BACKWARD = 1;
     */
    BACKWARD(1),
    UNRECOGNIZED(-1),
    ;

    /**
     * FORWARD = 0;
     */
    public static final int FORWARD_VALUE = 0;
    /**
     * BACKWARD = 1;
     */
    public static final int BACKWARD_VALUE = 1;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static Direction valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static Direction forNumber(int value) {
      switch (value) {
        case 0: return FORWARD;
        case 1: return BACKWARD;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        Direction> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public Direction findValueByNumber(int number) {
              return Direction.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return logproto.Logproto.getDescriptor().getEnumTypes().get(0);
    }

    private static final Direction[] VALUES = values();

    public static Direction valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private Direction(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:logproto.Direction)
  }

  public interface PushRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:logproto.PushRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
     */
    java.util.List 
        getStreamsList();
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
     */
    logproto.Logproto.StreamAdapter getStreams(int index);
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
     */
    int getStreamsCount();
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
     */
    java.util.List 
        getStreamsOrBuilderList();
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
     */
    logproto.Logproto.StreamAdapterOrBuilder getStreamsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code logproto.PushRequest}
   */
  public  static final class PushRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:logproto.PushRequest)
      PushRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PushRequest.newBuilder() to construct.
    private PushRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private PushRequest() {
      streams_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PushRequest(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                streams_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              streams_.add(
                  input.readMessage(logproto.Logproto.StreamAdapter.parser(), extensionRegistry));
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          streams_ = java.util.Collections.unmodifiableList(streams_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return logproto.Logproto.internal_static_logproto_PushRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return logproto.Logproto.internal_static_logproto_PushRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              logproto.Logproto.PushRequest.class, logproto.Logproto.PushRequest.Builder.class);
    }

    public static final int STREAMS_FIELD_NUMBER = 1;
    private java.util.List streams_;
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
     */
    public java.util.List getStreamsList() {
      return streams_;
    }
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
     */
    public java.util.List 
        getStreamsOrBuilderList() {
      return streams_;
    }
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
     */
    public int getStreamsCount() {
      return streams_.size();
    }
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
     */
    public logproto.Logproto.StreamAdapter getStreams(int index) {
      return streams_.get(index);
    }
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
     */
    public logproto.Logproto.StreamAdapterOrBuilder getStreamsOrBuilder(
        int index) {
      return streams_.get(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (int i = 0; i < streams_.size(); i++) {
        output.writeMessage(1, streams_.get(i));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      for (int i = 0; i < streams_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, streams_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof logproto.Logproto.PushRequest)) {
        return super.equals(obj);
      }
      logproto.Logproto.PushRequest other = (logproto.Logproto.PushRequest) obj;

      if (!getStreamsList()
          .equals(other.getStreamsList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getStreamsCount() > 0) {
        hash = (37 * hash) + STREAMS_FIELD_NUMBER;
        hash = (53 * hash) + getStreamsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static logproto.Logproto.PushRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.PushRequest parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.PushRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.PushRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.PushRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.PushRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.PushRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static logproto.Logproto.PushRequest 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 logproto.Logproto.PushRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static logproto.Logproto.PushRequest 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 logproto.Logproto.PushRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static logproto.Logproto.PushRequest 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(logproto.Logproto.PushRequest 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 logproto.PushRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:logproto.PushRequest)
        logproto.Logproto.PushRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return logproto.Logproto.internal_static_logproto_PushRequest_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return logproto.Logproto.internal_static_logproto_PushRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                logproto.Logproto.PushRequest.class, logproto.Logproto.PushRequest.Builder.class);
      }

      // Construct using logproto.Logproto.PushRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getStreamsFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (streamsBuilder_ == null) {
          streams_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          streamsBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return logproto.Logproto.internal_static_logproto_PushRequest_descriptor;
      }

      @java.lang.Override
      public logproto.Logproto.PushRequest getDefaultInstanceForType() {
        return logproto.Logproto.PushRequest.getDefaultInstance();
      }

      @java.lang.Override
      public logproto.Logproto.PushRequest build() {
        logproto.Logproto.PushRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public logproto.Logproto.PushRequest buildPartial() {
        logproto.Logproto.PushRequest result = new logproto.Logproto.PushRequest(this);
        int from_bitField0_ = bitField0_;
        if (streamsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            streams_ = java.util.Collections.unmodifiableList(streams_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.streams_ = streams_;
        } else {
          result.streams_ = streamsBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @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 logproto.Logproto.PushRequest) {
          return mergeFrom((logproto.Logproto.PushRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(logproto.Logproto.PushRequest other) {
        if (other == logproto.Logproto.PushRequest.getDefaultInstance()) return this;
        if (streamsBuilder_ == null) {
          if (!other.streams_.isEmpty()) {
            if (streams_.isEmpty()) {
              streams_ = other.streams_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureStreamsIsMutable();
              streams_.addAll(other.streams_);
            }
            onChanged();
          }
        } else {
          if (!other.streams_.isEmpty()) {
            if (streamsBuilder_.isEmpty()) {
              streamsBuilder_.dispose();
              streamsBuilder_ = null;
              streams_ = other.streams_;
              bitField0_ = (bitField0_ & ~0x00000001);
              streamsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getStreamsFieldBuilder() : null;
            } else {
              streamsBuilder_.addAllMessages(other.streams_);
            }
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        logproto.Logproto.PushRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (logproto.Logproto.PushRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List streams_ =
        java.util.Collections.emptyList();
      private void ensureStreamsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          streams_ = new java.util.ArrayList(streams_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          logproto.Logproto.StreamAdapter, logproto.Logproto.StreamAdapter.Builder, logproto.Logproto.StreamAdapterOrBuilder> streamsBuilder_;

      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public java.util.List getStreamsList() {
        if (streamsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(streams_);
        } else {
          return streamsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public int getStreamsCount() {
        if (streamsBuilder_ == null) {
          return streams_.size();
        } else {
          return streamsBuilder_.getCount();
        }
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public logproto.Logproto.StreamAdapter getStreams(int index) {
        if (streamsBuilder_ == null) {
          return streams_.get(index);
        } else {
          return streamsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public Builder setStreams(
          int index, logproto.Logproto.StreamAdapter value) {
        if (streamsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureStreamsIsMutable();
          streams_.set(index, value);
          onChanged();
        } else {
          streamsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public Builder setStreams(
          int index, logproto.Logproto.StreamAdapter.Builder builderForValue) {
        if (streamsBuilder_ == null) {
          ensureStreamsIsMutable();
          streams_.set(index, builderForValue.build());
          onChanged();
        } else {
          streamsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public Builder addStreams(logproto.Logproto.StreamAdapter value) {
        if (streamsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureStreamsIsMutable();
          streams_.add(value);
          onChanged();
        } else {
          streamsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public Builder addStreams(
          int index, logproto.Logproto.StreamAdapter value) {
        if (streamsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureStreamsIsMutable();
          streams_.add(index, value);
          onChanged();
        } else {
          streamsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public Builder addStreams(
          logproto.Logproto.StreamAdapter.Builder builderForValue) {
        if (streamsBuilder_ == null) {
          ensureStreamsIsMutable();
          streams_.add(builderForValue.build());
          onChanged();
        } else {
          streamsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public Builder addStreams(
          int index, logproto.Logproto.StreamAdapter.Builder builderForValue) {
        if (streamsBuilder_ == null) {
          ensureStreamsIsMutable();
          streams_.add(index, builderForValue.build());
          onChanged();
        } else {
          streamsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public Builder addAllStreams(
          java.lang.Iterable values) {
        if (streamsBuilder_ == null) {
          ensureStreamsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, streams_);
          onChanged();
        } else {
          streamsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public Builder clearStreams() {
        if (streamsBuilder_ == null) {
          streams_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          streamsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public Builder removeStreams(int index) {
        if (streamsBuilder_ == null) {
          ensureStreamsIsMutable();
          streams_.remove(index);
          onChanged();
        } else {
          streamsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public logproto.Logproto.StreamAdapter.Builder getStreamsBuilder(
          int index) {
        return getStreamsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public logproto.Logproto.StreamAdapterOrBuilder getStreamsOrBuilder(
          int index) {
        if (streamsBuilder_ == null) {
          return streams_.get(index);  } else {
          return streamsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public java.util.List 
           getStreamsOrBuilderList() {
        if (streamsBuilder_ != null) {
          return streamsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(streams_);
        }
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public logproto.Logproto.StreamAdapter.Builder addStreamsBuilder() {
        return getStreamsFieldBuilder().addBuilder(
            logproto.Logproto.StreamAdapter.getDefaultInstance());
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public logproto.Logproto.StreamAdapter.Builder addStreamsBuilder(
          int index) {
        return getStreamsFieldBuilder().addBuilder(
            index, logproto.Logproto.StreamAdapter.getDefaultInstance());
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.customtype) = "Stream", (.gogoproto.jsontag) = "streams"];
       */
      public java.util.List 
           getStreamsBuilderList() {
        return getStreamsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          logproto.Logproto.StreamAdapter, logproto.Logproto.StreamAdapter.Builder, logproto.Logproto.StreamAdapterOrBuilder> 
          getStreamsFieldBuilder() {
        if (streamsBuilder_ == null) {
          streamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              logproto.Logproto.StreamAdapter, logproto.Logproto.StreamAdapter.Builder, logproto.Logproto.StreamAdapterOrBuilder>(
                  streams_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          streams_ = null;
        }
        return streamsBuilder_;
      }
      @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:logproto.PushRequest)
    }

    // @@protoc_insertion_point(class_scope:logproto.PushRequest)
    private static final logproto.Logproto.PushRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new logproto.Logproto.PushRequest();
    }

    public static logproto.Logproto.PushRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public PushRequest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new PushRequest(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public logproto.Logproto.PushRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PushResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:logproto.PushResponse)
      com.google.protobuf.MessageOrBuilder {
  }
  /**
   * Protobuf type {@code logproto.PushResponse}
   */
  public  static final class PushResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:logproto.PushResponse)
      PushResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PushResponse.newBuilder() to construct.
    private PushResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private PushResponse() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PushResponse(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return logproto.Logproto.internal_static_logproto_PushResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return logproto.Logproto.internal_static_logproto_PushResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              logproto.Logproto.PushResponse.class, logproto.Logproto.PushResponse.Builder.class);
    }

    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 {
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof logproto.Logproto.PushResponse)) {
        return super.equals(obj);
      }
      logproto.Logproto.PushResponse other = (logproto.Logproto.PushResponse) obj;

      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static logproto.Logproto.PushResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.PushResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.PushResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.PushResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.PushResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.PushResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.PushResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static logproto.Logproto.PushResponse 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 logproto.Logproto.PushResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static logproto.Logproto.PushResponse 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 logproto.Logproto.PushResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static logproto.Logproto.PushResponse 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(logproto.Logproto.PushResponse 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 logproto.PushResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:logproto.PushResponse)
        logproto.Logproto.PushResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return logproto.Logproto.internal_static_logproto_PushResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return logproto.Logproto.internal_static_logproto_PushResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                logproto.Logproto.PushResponse.class, logproto.Logproto.PushResponse.Builder.class);
      }

      // Construct using logproto.Logproto.PushResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return logproto.Logproto.internal_static_logproto_PushResponse_descriptor;
      }

      @java.lang.Override
      public logproto.Logproto.PushResponse getDefaultInstanceForType() {
        return logproto.Logproto.PushResponse.getDefaultInstance();
      }

      @java.lang.Override
      public logproto.Logproto.PushResponse build() {
        logproto.Logproto.PushResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public logproto.Logproto.PushResponse buildPartial() {
        logproto.Logproto.PushResponse result = new logproto.Logproto.PushResponse(this);
        onBuilt();
        return result;
      }

      @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 logproto.Logproto.PushResponse) {
          return mergeFrom((logproto.Logproto.PushResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(logproto.Logproto.PushResponse other) {
        if (other == logproto.Logproto.PushResponse.getDefaultInstance()) return this;
        this.mergeUnknownFields(other.unknownFields);
        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 {
        logproto.Logproto.PushResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (logproto.Logproto.PushResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        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:logproto.PushResponse)
    }

    // @@protoc_insertion_point(class_scope:logproto.PushResponse)
    private static final logproto.Logproto.PushResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new logproto.Logproto.PushResponse();
    }

    public static logproto.Logproto.PushResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public PushResponse parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new PushResponse(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public logproto.Logproto.PushResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface QueryRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:logproto.QueryRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string selector = 1;
     * @return The selector.
     */
    java.lang.String getSelector();
    /**
     * string selector = 1;
     * @return The bytes for selector.
     */
    com.google.protobuf.ByteString
        getSelectorBytes();

    /**
     * uint32 limit = 2;
     * @return The limit.
     */
    int getLimit();

    /**
     * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     * @return Whether the start field is set.
     */
    boolean hasStart();
    /**
     * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     * @return The start.
     */
    com.google.protobuf.Timestamp getStart();
    /**
     * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     */
    com.google.protobuf.TimestampOrBuilder getStartOrBuilder();

    /**
     * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     * @return Whether the end field is set.
     */
    boolean hasEnd();
    /**
     * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     * @return The end.
     */
    com.google.protobuf.Timestamp getEnd();
    /**
     * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     */
    com.google.protobuf.TimestampOrBuilder getEndOrBuilder();

    /**
     * .logproto.Direction direction = 5;
     * @return The enum numeric value on the wire for direction.
     */
    int getDirectionValue();
    /**
     * .logproto.Direction direction = 5;
     * @return The direction.
     */
    logproto.Logproto.Direction getDirection();

    /**
     * repeated string shards = 7 [(.gogoproto.jsontag) = "shards,omitempty"];
     * @return A list containing the shards.
     */
    java.util.List
        getShardsList();
    /**
     * repeated string shards = 7 [(.gogoproto.jsontag) = "shards,omitempty"];
     * @return The count of shards.
     */
    int getShardsCount();
    /**
     * repeated string shards = 7 [(.gogoproto.jsontag) = "shards,omitempty"];
     * @param index The index of the element to return.
     * @return The shards at the given index.
     */
    java.lang.String getShards(int index);
    /**
     * repeated string shards = 7 [(.gogoproto.jsontag) = "shards,omitempty"];
     * @param index The index of the value to return.
     * @return The bytes of the shards at the given index.
     */
    com.google.protobuf.ByteString
        getShardsBytes(int index);
  }
  /**
   * Protobuf type {@code logproto.QueryRequest}
   */
  public  static final class QueryRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:logproto.QueryRequest)
      QueryRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use QueryRequest.newBuilder() to construct.
    private QueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private QueryRequest() {
      selector_ = "";
      direction_ = 0;
      shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private QueryRequest(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();

              selector_ = s;
              break;
            }
            case 16: {

              limit_ = input.readUInt32();
              break;
            }
            case 26: {
              com.google.protobuf.Timestamp.Builder subBuilder = null;
              if (start_ != null) {
                subBuilder = start_.toBuilder();
              }
              start_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(start_);
                start_ = subBuilder.buildPartial();
              }

              break;
            }
            case 34: {
              com.google.protobuf.Timestamp.Builder subBuilder = null;
              if (end_ != null) {
                subBuilder = end_.toBuilder();
              }
              end_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(end_);
                end_ = subBuilder.buildPartial();
              }

              break;
            }
            case 40: {
              int rawValue = input.readEnum();

              direction_ = rawValue;
              break;
            }
            case 58: {
              java.lang.String s = input.readStringRequireUtf8();
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                shards_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              shards_.add(s);
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          shards_ = shards_.getUnmodifiableView();
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return logproto.Logproto.internal_static_logproto_QueryRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return logproto.Logproto.internal_static_logproto_QueryRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              logproto.Logproto.QueryRequest.class, logproto.Logproto.QueryRequest.Builder.class);
    }

    public static final int SELECTOR_FIELD_NUMBER = 1;
    private volatile java.lang.Object selector_;
    /**
     * string selector = 1;
     * @return The selector.
     */
    public java.lang.String getSelector() {
      java.lang.Object ref = selector_;
      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();
        selector_ = s;
        return s;
      }
    }
    /**
     * string selector = 1;
     * @return The bytes for selector.
     */
    public com.google.protobuf.ByteString
        getSelectorBytes() {
      java.lang.Object ref = selector_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        selector_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int LIMIT_FIELD_NUMBER = 2;
    private int limit_;
    /**
     * uint32 limit = 2;
     * @return The limit.
     */
    public int getLimit() {
      return limit_;
    }

    public static final int START_FIELD_NUMBER = 3;
    private com.google.protobuf.Timestamp start_;
    /**
     * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     * @return Whether the start field is set.
     */
    public boolean hasStart() {
      return start_ != null;
    }
    /**
     * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     * @return The start.
     */
    public com.google.protobuf.Timestamp getStart() {
      return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_;
    }
    /**
     * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     */
    public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() {
      return getStart();
    }

    public static final int END_FIELD_NUMBER = 4;
    private com.google.protobuf.Timestamp end_;
    /**
     * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     * @return Whether the end field is set.
     */
    public boolean hasEnd() {
      return end_ != null;
    }
    /**
     * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     * @return The end.
     */
    public com.google.protobuf.Timestamp getEnd() {
      return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_;
    }
    /**
     * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     */
    public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() {
      return getEnd();
    }

    public static final int DIRECTION_FIELD_NUMBER = 5;
    private int direction_;
    /**
     * .logproto.Direction direction = 5;
     * @return The enum numeric value on the wire for direction.
     */
    public int getDirectionValue() {
      return direction_;
    }
    /**
     * .logproto.Direction direction = 5;
     * @return The direction.
     */
    public logproto.Logproto.Direction getDirection() {
      @SuppressWarnings("deprecation")
      logproto.Logproto.Direction result = logproto.Logproto.Direction.valueOf(direction_);
      return result == null ? logproto.Logproto.Direction.UNRECOGNIZED : result;
    }

    public static final int SHARDS_FIELD_NUMBER = 7;
    private com.google.protobuf.LazyStringList shards_;
    /**
     * repeated string shards = 7 [(.gogoproto.jsontag) = "shards,omitempty"];
     * @return A list containing the shards.
     */
    public com.google.protobuf.ProtocolStringList
        getShardsList() {
      return shards_;
    }
    /**
     * repeated string shards = 7 [(.gogoproto.jsontag) = "shards,omitempty"];
     * @return The count of shards.
     */
    public int getShardsCount() {
      return shards_.size();
    }
    /**
     * repeated string shards = 7 [(.gogoproto.jsontag) = "shards,omitempty"];
     * @param index The index of the element to return.
     * @return The shards at the given index.
     */
    public java.lang.String getShards(int index) {
      return shards_.get(index);
    }
    /**
     * repeated string shards = 7 [(.gogoproto.jsontag) = "shards,omitempty"];
     * @param index The index of the value to return.
     * @return The bytes of the shards at the given index.
     */
    public com.google.protobuf.ByteString
        getShardsBytes(int index) {
      return shards_.getByteString(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!getSelectorBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_);
      }
      if (limit_ != 0) {
        output.writeUInt32(2, limit_);
      }
      if (start_ != null) {
        output.writeMessage(3, getStart());
      }
      if (end_ != null) {
        output.writeMessage(4, getEnd());
      }
      if (direction_ != logproto.Logproto.Direction.FORWARD.getNumber()) {
        output.writeEnum(5, direction_);
      }
      for (int i = 0; i < shards_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 7, shards_.getRaw(i));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!getSelectorBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selector_);
      }
      if (limit_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(2, limit_);
      }
      if (start_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, getStart());
      }
      if (end_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, getEnd());
      }
      if (direction_ != logproto.Logproto.Direction.FORWARD.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(5, direction_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < shards_.size(); i++) {
          dataSize += computeStringSizeNoTag(shards_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getShardsList().size();
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof logproto.Logproto.QueryRequest)) {
        return super.equals(obj);
      }
      logproto.Logproto.QueryRequest other = (logproto.Logproto.QueryRequest) obj;

      if (!getSelector()
          .equals(other.getSelector())) return false;
      if (getLimit()
          != other.getLimit()) return false;
      if (hasStart() != other.hasStart()) return false;
      if (hasStart()) {
        if (!getStart()
            .equals(other.getStart())) return false;
      }
      if (hasEnd() != other.hasEnd()) return false;
      if (hasEnd()) {
        if (!getEnd()
            .equals(other.getEnd())) return false;
      }
      if (direction_ != other.direction_) return false;
      if (!getShardsList()
          .equals(other.getShardsList())) return false;
      if (!unknownFields.equals(other.unknownFields)) 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) + SELECTOR_FIELD_NUMBER;
      hash = (53 * hash) + getSelector().hashCode();
      hash = (37 * hash) + LIMIT_FIELD_NUMBER;
      hash = (53 * hash) + getLimit();
      if (hasStart()) {
        hash = (37 * hash) + START_FIELD_NUMBER;
        hash = (53 * hash) + getStart().hashCode();
      }
      if (hasEnd()) {
        hash = (37 * hash) + END_FIELD_NUMBER;
        hash = (53 * hash) + getEnd().hashCode();
      }
      hash = (37 * hash) + DIRECTION_FIELD_NUMBER;
      hash = (53 * hash) + direction_;
      if (getShardsCount() > 0) {
        hash = (37 * hash) + SHARDS_FIELD_NUMBER;
        hash = (53 * hash) + getShardsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static logproto.Logproto.QueryRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.QueryRequest parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.QueryRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.QueryRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.QueryRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.QueryRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.QueryRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static logproto.Logproto.QueryRequest 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 logproto.Logproto.QueryRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static logproto.Logproto.QueryRequest 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 logproto.Logproto.QueryRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static logproto.Logproto.QueryRequest 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(logproto.Logproto.QueryRequest 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 logproto.QueryRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:logproto.QueryRequest)
        logproto.Logproto.QueryRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return logproto.Logproto.internal_static_logproto_QueryRequest_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return logproto.Logproto.internal_static_logproto_QueryRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                logproto.Logproto.QueryRequest.class, logproto.Logproto.QueryRequest.Builder.class);
      }

      // Construct using logproto.Logproto.QueryRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        selector_ = "";

        limit_ = 0;

        if (startBuilder_ == null) {
          start_ = null;
        } else {
          start_ = null;
          startBuilder_ = null;
        }
        if (endBuilder_ == null) {
          end_ = null;
        } else {
          end_ = null;
          endBuilder_ = null;
        }
        direction_ = 0;

        shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return logproto.Logproto.internal_static_logproto_QueryRequest_descriptor;
      }

      @java.lang.Override
      public logproto.Logproto.QueryRequest getDefaultInstanceForType() {
        return logproto.Logproto.QueryRequest.getDefaultInstance();
      }

      @java.lang.Override
      public logproto.Logproto.QueryRequest build() {
        logproto.Logproto.QueryRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public logproto.Logproto.QueryRequest buildPartial() {
        logproto.Logproto.QueryRequest result = new logproto.Logproto.QueryRequest(this);
        int from_bitField0_ = bitField0_;
        result.selector_ = selector_;
        result.limit_ = limit_;
        if (startBuilder_ == null) {
          result.start_ = start_;
        } else {
          result.start_ = startBuilder_.build();
        }
        if (endBuilder_ == null) {
          result.end_ = end_;
        } else {
          result.end_ = endBuilder_.build();
        }
        result.direction_ = direction_;
        if (((bitField0_ & 0x00000001) != 0)) {
          shards_ = shards_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.shards_ = shards_;
        onBuilt();
        return result;
      }

      @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 logproto.Logproto.QueryRequest) {
          return mergeFrom((logproto.Logproto.QueryRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(logproto.Logproto.QueryRequest other) {
        if (other == logproto.Logproto.QueryRequest.getDefaultInstance()) return this;
        if (!other.getSelector().isEmpty()) {
          selector_ = other.selector_;
          onChanged();
        }
        if (other.getLimit() != 0) {
          setLimit(other.getLimit());
        }
        if (other.hasStart()) {
          mergeStart(other.getStart());
        }
        if (other.hasEnd()) {
          mergeEnd(other.getEnd());
        }
        if (other.direction_ != 0) {
          setDirectionValue(other.getDirectionValue());
        }
        if (!other.shards_.isEmpty()) {
          if (shards_.isEmpty()) {
            shards_ = other.shards_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureShardsIsMutable();
            shards_.addAll(other.shards_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        logproto.Logproto.QueryRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (logproto.Logproto.QueryRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.lang.Object selector_ = "";
      /**
       * string selector = 1;
       * @return The selector.
       */
      public java.lang.String getSelector() {
        java.lang.Object ref = selector_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          selector_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string selector = 1;
       * @return The bytes for selector.
       */
      public com.google.protobuf.ByteString
          getSelectorBytes() {
        java.lang.Object ref = selector_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          selector_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string selector = 1;
       * @param value The selector to set.
       * @return This builder for chaining.
       */
      public Builder setSelector(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        selector_ = value;
        onChanged();
        return this;
      }
      /**
       * string selector = 1;
       * @return This builder for chaining.
       */
      public Builder clearSelector() {
        
        selector_ = getDefaultInstance().getSelector();
        onChanged();
        return this;
      }
      /**
       * string selector = 1;
       * @param value The bytes for selector to set.
       * @return This builder for chaining.
       */
      public Builder setSelectorBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        selector_ = value;
        onChanged();
        return this;
      }

      private int limit_ ;
      /**
       * uint32 limit = 2;
       * @return The limit.
       */
      public int getLimit() {
        return limit_;
      }
      /**
       * uint32 limit = 2;
       * @param value The limit to set.
       * @return This builder for chaining.
       */
      public Builder setLimit(int value) {
        
        limit_ = value;
        onChanged();
        return this;
      }
      /**
       * uint32 limit = 2;
       * @return This builder for chaining.
       */
      public Builder clearLimit() {
        
        limit_ = 0;
        onChanged();
        return this;
      }

      private com.google.protobuf.Timestamp start_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startBuilder_;
      /**
       * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       * @return Whether the start field is set.
       */
      public boolean hasStart() {
        return startBuilder_ != null || start_ != null;
      }
      /**
       * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       * @return The start.
       */
      public com.google.protobuf.Timestamp getStart() {
        if (startBuilder_ == null) {
          return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_;
        } else {
          return startBuilder_.getMessage();
        }
      }
      /**
       * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public Builder setStart(com.google.protobuf.Timestamp value) {
        if (startBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          start_ = value;
          onChanged();
        } else {
          startBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public Builder setStart(
          com.google.protobuf.Timestamp.Builder builderForValue) {
        if (startBuilder_ == null) {
          start_ = builderForValue.build();
          onChanged();
        } else {
          startBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public Builder mergeStart(com.google.protobuf.Timestamp value) {
        if (startBuilder_ == null) {
          if (start_ != null) {
            start_ =
              com.google.protobuf.Timestamp.newBuilder(start_).mergeFrom(value).buildPartial();
          } else {
            start_ = value;
          }
          onChanged();
        } else {
          startBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public Builder clearStart() {
        if (startBuilder_ == null) {
          start_ = null;
          onChanged();
        } else {
          start_ = null;
          startBuilder_ = null;
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public com.google.protobuf.Timestamp.Builder getStartBuilder() {
        
        onChanged();
        return getStartFieldBuilder().getBuilder();
      }
      /**
       * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() {
        if (startBuilder_ != null) {
          return startBuilder_.getMessageOrBuilder();
        } else {
          return start_ == null ?
              com.google.protobuf.Timestamp.getDefaultInstance() : start_;
        }
      }
      /**
       * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
          getStartFieldBuilder() {
        if (startBuilder_ == null) {
          startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                  getStart(),
                  getParentForChildren(),
                  isClean());
          start_ = null;
        }
        return startBuilder_;
      }

      private com.google.protobuf.Timestamp end_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endBuilder_;
      /**
       * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       * @return Whether the end field is set.
       */
      public boolean hasEnd() {
        return endBuilder_ != null || end_ != null;
      }
      /**
       * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       * @return The end.
       */
      public com.google.protobuf.Timestamp getEnd() {
        if (endBuilder_ == null) {
          return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_;
        } else {
          return endBuilder_.getMessage();
        }
      }
      /**
       * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public Builder setEnd(com.google.protobuf.Timestamp value) {
        if (endBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          end_ = value;
          onChanged();
        } else {
          endBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public Builder setEnd(
          com.google.protobuf.Timestamp.Builder builderForValue) {
        if (endBuilder_ == null) {
          end_ = builderForValue.build();
          onChanged();
        } else {
          endBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public Builder mergeEnd(com.google.protobuf.Timestamp value) {
        if (endBuilder_ == null) {
          if (end_ != null) {
            end_ =
              com.google.protobuf.Timestamp.newBuilder(end_).mergeFrom(value).buildPartial();
          } else {
            end_ = value;
          }
          onChanged();
        } else {
          endBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public Builder clearEnd() {
        if (endBuilder_ == null) {
          end_ = null;
          onChanged();
        } else {
          end_ = null;
          endBuilder_ = null;
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public com.google.protobuf.Timestamp.Builder getEndBuilder() {
        
        onChanged();
        return getEndFieldBuilder().getBuilder();
      }
      /**
       * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() {
        if (endBuilder_ != null) {
          return endBuilder_.getMessageOrBuilder();
        } else {
          return end_ == null ?
              com.google.protobuf.Timestamp.getDefaultInstance() : end_;
        }
      }
      /**
       * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
          getEndFieldBuilder() {
        if (endBuilder_ == null) {
          endBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                  getEnd(),
                  getParentForChildren(),
                  isClean());
          end_ = null;
        }
        return endBuilder_;
      }

      private int direction_ = 0;
      /**
       * .logproto.Direction direction = 5;
       * @return The enum numeric value on the wire for direction.
       */
      public int getDirectionValue() {
        return direction_;
      }
      /**
       * .logproto.Direction direction = 5;
       * @param value The enum numeric value on the wire for direction to set.
       * @return This builder for chaining.
       */
      public Builder setDirectionValue(int value) {
        direction_ = value;
        onChanged();
        return this;
      }
      /**
       * .logproto.Direction direction = 5;
       * @return The direction.
       */
      public logproto.Logproto.Direction getDirection() {
        @SuppressWarnings("deprecation")
        logproto.Logproto.Direction result = logproto.Logproto.Direction.valueOf(direction_);
        return result == null ? logproto.Logproto.Direction.UNRECOGNIZED : result;
      }
      /**
       * .logproto.Direction direction = 5;
       * @param value The direction to set.
       * @return This builder for chaining.
       */
      public Builder setDirection(logproto.Logproto.Direction value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        direction_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * .logproto.Direction direction = 5;
       * @return This builder for chaining.
       */
      public Builder clearDirection() {
        
        direction_ = 0;
        onChanged();
        return this;
      }

      private com.google.protobuf.LazyStringList shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      private void ensureShardsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          shards_ = new com.google.protobuf.LazyStringArrayList(shards_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * repeated string shards = 7 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @return A list containing the shards.
       */
      public com.google.protobuf.ProtocolStringList
          getShardsList() {
        return shards_.getUnmodifiableView();
      }
      /**
       * repeated string shards = 7 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @return The count of shards.
       */
      public int getShardsCount() {
        return shards_.size();
      }
      /**
       * repeated string shards = 7 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @param index The index of the element to return.
       * @return The shards at the given index.
       */
      public java.lang.String getShards(int index) {
        return shards_.get(index);
      }
      /**
       * repeated string shards = 7 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @param index The index of the value to return.
       * @return The bytes of the shards at the given index.
       */
      public com.google.protobuf.ByteString
          getShardsBytes(int index) {
        return shards_.getByteString(index);
      }
      /**
       * repeated string shards = 7 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @param index The index to set the value at.
       * @param value The shards to set.
       * @return This builder for chaining.
       */
      public Builder setShards(
          int index, java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureShardsIsMutable();
        shards_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * repeated string shards = 7 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @param value The shards to add.
       * @return This builder for chaining.
       */
      public Builder addShards(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureShardsIsMutable();
        shards_.add(value);
        onChanged();
        return this;
      }
      /**
       * repeated string shards = 7 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @param values The shards to add.
       * @return This builder for chaining.
       */
      public Builder addAllShards(
          java.lang.Iterable values) {
        ensureShardsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, shards_);
        onChanged();
        return this;
      }
      /**
       * repeated string shards = 7 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @return This builder for chaining.
       */
      public Builder clearShards() {
        shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * repeated string shards = 7 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @param value The bytes of the shards to add.
       * @return This builder for chaining.
       */
      public Builder addShardsBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        ensureShardsIsMutable();
        shards_.add(value);
        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:logproto.QueryRequest)
    }

    // @@protoc_insertion_point(class_scope:logproto.QueryRequest)
    private static final logproto.Logproto.QueryRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new logproto.Logproto.QueryRequest();
    }

    public static logproto.Logproto.QueryRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public QueryRequest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new QueryRequest(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public logproto.Logproto.QueryRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface SampleQueryRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:logproto.SampleQueryRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string selector = 1;
     * @return The selector.
     */
    java.lang.String getSelector();
    /**
     * string selector = 1;
     * @return The bytes for selector.
     */
    com.google.protobuf.ByteString
        getSelectorBytes();

    /**
     * .google.protobuf.Timestamp start = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     * @return Whether the start field is set.
     */
    boolean hasStart();
    /**
     * .google.protobuf.Timestamp start = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     * @return The start.
     */
    com.google.protobuf.Timestamp getStart();
    /**
     * .google.protobuf.Timestamp start = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     */
    com.google.protobuf.TimestampOrBuilder getStartOrBuilder();

    /**
     * .google.protobuf.Timestamp end = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     * @return Whether the end field is set.
     */
    boolean hasEnd();
    /**
     * .google.protobuf.Timestamp end = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     * @return The end.
     */
    com.google.protobuf.Timestamp getEnd();
    /**
     * .google.protobuf.Timestamp end = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     */
    com.google.protobuf.TimestampOrBuilder getEndOrBuilder();

    /**
     * repeated string shards = 4 [(.gogoproto.jsontag) = "shards,omitempty"];
     * @return A list containing the shards.
     */
    java.util.List
        getShardsList();
    /**
     * repeated string shards = 4 [(.gogoproto.jsontag) = "shards,omitempty"];
     * @return The count of shards.
     */
    int getShardsCount();
    /**
     * repeated string shards = 4 [(.gogoproto.jsontag) = "shards,omitempty"];
     * @param index The index of the element to return.
     * @return The shards at the given index.
     */
    java.lang.String getShards(int index);
    /**
     * repeated string shards = 4 [(.gogoproto.jsontag) = "shards,omitempty"];
     * @param index The index of the value to return.
     * @return The bytes of the shards at the given index.
     */
    com.google.protobuf.ByteString
        getShardsBytes(int index);
  }
  /**
   * Protobuf type {@code logproto.SampleQueryRequest}
   */
  public  static final class SampleQueryRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:logproto.SampleQueryRequest)
      SampleQueryRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use SampleQueryRequest.newBuilder() to construct.
    private SampleQueryRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private SampleQueryRequest() {
      selector_ = "";
      shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private SampleQueryRequest(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();

              selector_ = s;
              break;
            }
            case 18: {
              com.google.protobuf.Timestamp.Builder subBuilder = null;
              if (start_ != null) {
                subBuilder = start_.toBuilder();
              }
              start_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(start_);
                start_ = subBuilder.buildPartial();
              }

              break;
            }
            case 26: {
              com.google.protobuf.Timestamp.Builder subBuilder = null;
              if (end_ != null) {
                subBuilder = end_.toBuilder();
              }
              end_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(end_);
                end_ = subBuilder.buildPartial();
              }

              break;
            }
            case 34: {
              java.lang.String s = input.readStringRequireUtf8();
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                shards_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              shards_.add(s);
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          shards_ = shards_.getUnmodifiableView();
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return logproto.Logproto.internal_static_logproto_SampleQueryRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return logproto.Logproto.internal_static_logproto_SampleQueryRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              logproto.Logproto.SampleQueryRequest.class, logproto.Logproto.SampleQueryRequest.Builder.class);
    }

    public static final int SELECTOR_FIELD_NUMBER = 1;
    private volatile java.lang.Object selector_;
    /**
     * string selector = 1;
     * @return The selector.
     */
    public java.lang.String getSelector() {
      java.lang.Object ref = selector_;
      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();
        selector_ = s;
        return s;
      }
    }
    /**
     * string selector = 1;
     * @return The bytes for selector.
     */
    public com.google.protobuf.ByteString
        getSelectorBytes() {
      java.lang.Object ref = selector_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        selector_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int START_FIELD_NUMBER = 2;
    private com.google.protobuf.Timestamp start_;
    /**
     * .google.protobuf.Timestamp start = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     * @return Whether the start field is set.
     */
    public boolean hasStart() {
      return start_ != null;
    }
    /**
     * .google.protobuf.Timestamp start = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     * @return The start.
     */
    public com.google.protobuf.Timestamp getStart() {
      return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_;
    }
    /**
     * .google.protobuf.Timestamp start = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     */
    public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() {
      return getStart();
    }

    public static final int END_FIELD_NUMBER = 3;
    private com.google.protobuf.Timestamp end_;
    /**
     * .google.protobuf.Timestamp end = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     * @return Whether the end field is set.
     */
    public boolean hasEnd() {
      return end_ != null;
    }
    /**
     * .google.protobuf.Timestamp end = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     * @return The end.
     */
    public com.google.protobuf.Timestamp getEnd() {
      return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_;
    }
    /**
     * .google.protobuf.Timestamp end = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
     */
    public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() {
      return getEnd();
    }

    public static final int SHARDS_FIELD_NUMBER = 4;
    private com.google.protobuf.LazyStringList shards_;
    /**
     * repeated string shards = 4 [(.gogoproto.jsontag) = "shards,omitempty"];
     * @return A list containing the shards.
     */
    public com.google.protobuf.ProtocolStringList
        getShardsList() {
      return shards_;
    }
    /**
     * repeated string shards = 4 [(.gogoproto.jsontag) = "shards,omitempty"];
     * @return The count of shards.
     */
    public int getShardsCount() {
      return shards_.size();
    }
    /**
     * repeated string shards = 4 [(.gogoproto.jsontag) = "shards,omitempty"];
     * @param index The index of the element to return.
     * @return The shards at the given index.
     */
    public java.lang.String getShards(int index) {
      return shards_.get(index);
    }
    /**
     * repeated string shards = 4 [(.gogoproto.jsontag) = "shards,omitempty"];
     * @param index The index of the value to return.
     * @return The bytes of the shards at the given index.
     */
    public com.google.protobuf.ByteString
        getShardsBytes(int index) {
      return shards_.getByteString(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!getSelectorBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_);
      }
      if (start_ != null) {
        output.writeMessage(2, getStart());
      }
      if (end_ != null) {
        output.writeMessage(3, getEnd());
      }
      for (int i = 0; i < shards_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, shards_.getRaw(i));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!getSelectorBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selector_);
      }
      if (start_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getStart());
      }
      if (end_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, getEnd());
      }
      {
        int dataSize = 0;
        for (int i = 0; i < shards_.size(); i++) {
          dataSize += computeStringSizeNoTag(shards_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getShardsList().size();
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof logproto.Logproto.SampleQueryRequest)) {
        return super.equals(obj);
      }
      logproto.Logproto.SampleQueryRequest other = (logproto.Logproto.SampleQueryRequest) obj;

      if (!getSelector()
          .equals(other.getSelector())) return false;
      if (hasStart() != other.hasStart()) return false;
      if (hasStart()) {
        if (!getStart()
            .equals(other.getStart())) return false;
      }
      if (hasEnd() != other.hasEnd()) return false;
      if (hasEnd()) {
        if (!getEnd()
            .equals(other.getEnd())) return false;
      }
      if (!getShardsList()
          .equals(other.getShardsList())) return false;
      if (!unknownFields.equals(other.unknownFields)) 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) + SELECTOR_FIELD_NUMBER;
      hash = (53 * hash) + getSelector().hashCode();
      if (hasStart()) {
        hash = (37 * hash) + START_FIELD_NUMBER;
        hash = (53 * hash) + getStart().hashCode();
      }
      if (hasEnd()) {
        hash = (37 * hash) + END_FIELD_NUMBER;
        hash = (53 * hash) + getEnd().hashCode();
      }
      if (getShardsCount() > 0) {
        hash = (37 * hash) + SHARDS_FIELD_NUMBER;
        hash = (53 * hash) + getShardsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static logproto.Logproto.SampleQueryRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.SampleQueryRequest parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.SampleQueryRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.SampleQueryRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.SampleQueryRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.SampleQueryRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.SampleQueryRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static logproto.Logproto.SampleQueryRequest 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 logproto.Logproto.SampleQueryRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static logproto.Logproto.SampleQueryRequest 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 logproto.Logproto.SampleQueryRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static logproto.Logproto.SampleQueryRequest 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(logproto.Logproto.SampleQueryRequest 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 logproto.SampleQueryRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:logproto.SampleQueryRequest)
        logproto.Logproto.SampleQueryRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return logproto.Logproto.internal_static_logproto_SampleQueryRequest_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return logproto.Logproto.internal_static_logproto_SampleQueryRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                logproto.Logproto.SampleQueryRequest.class, logproto.Logproto.SampleQueryRequest.Builder.class);
      }

      // Construct using logproto.Logproto.SampleQueryRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        selector_ = "";

        if (startBuilder_ == null) {
          start_ = null;
        } else {
          start_ = null;
          startBuilder_ = null;
        }
        if (endBuilder_ == null) {
          end_ = null;
        } else {
          end_ = null;
          endBuilder_ = null;
        }
        shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return logproto.Logproto.internal_static_logproto_SampleQueryRequest_descriptor;
      }

      @java.lang.Override
      public logproto.Logproto.SampleQueryRequest getDefaultInstanceForType() {
        return logproto.Logproto.SampleQueryRequest.getDefaultInstance();
      }

      @java.lang.Override
      public logproto.Logproto.SampleQueryRequest build() {
        logproto.Logproto.SampleQueryRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public logproto.Logproto.SampleQueryRequest buildPartial() {
        logproto.Logproto.SampleQueryRequest result = new logproto.Logproto.SampleQueryRequest(this);
        int from_bitField0_ = bitField0_;
        result.selector_ = selector_;
        if (startBuilder_ == null) {
          result.start_ = start_;
        } else {
          result.start_ = startBuilder_.build();
        }
        if (endBuilder_ == null) {
          result.end_ = end_;
        } else {
          result.end_ = endBuilder_.build();
        }
        if (((bitField0_ & 0x00000001) != 0)) {
          shards_ = shards_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.shards_ = shards_;
        onBuilt();
        return result;
      }

      @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 logproto.Logproto.SampleQueryRequest) {
          return mergeFrom((logproto.Logproto.SampleQueryRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(logproto.Logproto.SampleQueryRequest other) {
        if (other == logproto.Logproto.SampleQueryRequest.getDefaultInstance()) return this;
        if (!other.getSelector().isEmpty()) {
          selector_ = other.selector_;
          onChanged();
        }
        if (other.hasStart()) {
          mergeStart(other.getStart());
        }
        if (other.hasEnd()) {
          mergeEnd(other.getEnd());
        }
        if (!other.shards_.isEmpty()) {
          if (shards_.isEmpty()) {
            shards_ = other.shards_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureShardsIsMutable();
            shards_.addAll(other.shards_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        logproto.Logproto.SampleQueryRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (logproto.Logproto.SampleQueryRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.lang.Object selector_ = "";
      /**
       * string selector = 1;
       * @return The selector.
       */
      public java.lang.String getSelector() {
        java.lang.Object ref = selector_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          selector_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string selector = 1;
       * @return The bytes for selector.
       */
      public com.google.protobuf.ByteString
          getSelectorBytes() {
        java.lang.Object ref = selector_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          selector_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string selector = 1;
       * @param value The selector to set.
       * @return This builder for chaining.
       */
      public Builder setSelector(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        selector_ = value;
        onChanged();
        return this;
      }
      /**
       * string selector = 1;
       * @return This builder for chaining.
       */
      public Builder clearSelector() {
        
        selector_ = getDefaultInstance().getSelector();
        onChanged();
        return this;
      }
      /**
       * string selector = 1;
       * @param value The bytes for selector to set.
       * @return This builder for chaining.
       */
      public Builder setSelectorBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        selector_ = value;
        onChanged();
        return this;
      }

      private com.google.protobuf.Timestamp start_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startBuilder_;
      /**
       * .google.protobuf.Timestamp start = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       * @return Whether the start field is set.
       */
      public boolean hasStart() {
        return startBuilder_ != null || start_ != null;
      }
      /**
       * .google.protobuf.Timestamp start = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       * @return The start.
       */
      public com.google.protobuf.Timestamp getStart() {
        if (startBuilder_ == null) {
          return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_;
        } else {
          return startBuilder_.getMessage();
        }
      }
      /**
       * .google.protobuf.Timestamp start = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public Builder setStart(com.google.protobuf.Timestamp value) {
        if (startBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          start_ = value;
          onChanged();
        } else {
          startBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp start = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public Builder setStart(
          com.google.protobuf.Timestamp.Builder builderForValue) {
        if (startBuilder_ == null) {
          start_ = builderForValue.build();
          onChanged();
        } else {
          startBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp start = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public Builder mergeStart(com.google.protobuf.Timestamp value) {
        if (startBuilder_ == null) {
          if (start_ != null) {
            start_ =
              com.google.protobuf.Timestamp.newBuilder(start_).mergeFrom(value).buildPartial();
          } else {
            start_ = value;
          }
          onChanged();
        } else {
          startBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp start = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public Builder clearStart() {
        if (startBuilder_ == null) {
          start_ = null;
          onChanged();
        } else {
          start_ = null;
          startBuilder_ = null;
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp start = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public com.google.protobuf.Timestamp.Builder getStartBuilder() {
        
        onChanged();
        return getStartFieldBuilder().getBuilder();
      }
      /**
       * .google.protobuf.Timestamp start = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() {
        if (startBuilder_ != null) {
          return startBuilder_.getMessageOrBuilder();
        } else {
          return start_ == null ?
              com.google.protobuf.Timestamp.getDefaultInstance() : start_;
        }
      }
      /**
       * .google.protobuf.Timestamp start = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
          getStartFieldBuilder() {
        if (startBuilder_ == null) {
          startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                  getStart(),
                  getParentForChildren(),
                  isClean());
          start_ = null;
        }
        return startBuilder_;
      }

      private com.google.protobuf.Timestamp end_;
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endBuilder_;
      /**
       * .google.protobuf.Timestamp end = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       * @return Whether the end field is set.
       */
      public boolean hasEnd() {
        return endBuilder_ != null || end_ != null;
      }
      /**
       * .google.protobuf.Timestamp end = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       * @return The end.
       */
      public com.google.protobuf.Timestamp getEnd() {
        if (endBuilder_ == null) {
          return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_;
        } else {
          return endBuilder_.getMessage();
        }
      }
      /**
       * .google.protobuf.Timestamp end = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public Builder setEnd(com.google.protobuf.Timestamp value) {
        if (endBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          end_ = value;
          onChanged();
        } else {
          endBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp end = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public Builder setEnd(
          com.google.protobuf.Timestamp.Builder builderForValue) {
        if (endBuilder_ == null) {
          end_ = builderForValue.build();
          onChanged();
        } else {
          endBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp end = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public Builder mergeEnd(com.google.protobuf.Timestamp value) {
        if (endBuilder_ == null) {
          if (end_ != null) {
            end_ =
              com.google.protobuf.Timestamp.newBuilder(end_).mergeFrom(value).buildPartial();
          } else {
            end_ = value;
          }
          onChanged();
        } else {
          endBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp end = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public Builder clearEnd() {
        if (endBuilder_ == null) {
          end_ = null;
          onChanged();
        } else {
          end_ = null;
          endBuilder_ = null;
        }

        return this;
      }
      /**
       * .google.protobuf.Timestamp end = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public com.google.protobuf.Timestamp.Builder getEndBuilder() {
        
        onChanged();
        return getEndFieldBuilder().getBuilder();
      }
      /**
       * .google.protobuf.Timestamp end = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() {
        if (endBuilder_ != null) {
          return endBuilder_.getMessageOrBuilder();
        } else {
          return end_ == null ?
              com.google.protobuf.Timestamp.getDefaultInstance() : end_;
        }
      }
      /**
       * .google.protobuf.Timestamp end = 3 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true];
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
          getEndFieldBuilder() {
        if (endBuilder_ == null) {
          endBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                  getEnd(),
                  getParentForChildren(),
                  isClean());
          end_ = null;
        }
        return endBuilder_;
      }

      private com.google.protobuf.LazyStringList shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      private void ensureShardsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          shards_ = new com.google.protobuf.LazyStringArrayList(shards_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * repeated string shards = 4 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @return A list containing the shards.
       */
      public com.google.protobuf.ProtocolStringList
          getShardsList() {
        return shards_.getUnmodifiableView();
      }
      /**
       * repeated string shards = 4 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @return The count of shards.
       */
      public int getShardsCount() {
        return shards_.size();
      }
      /**
       * repeated string shards = 4 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @param index The index of the element to return.
       * @return The shards at the given index.
       */
      public java.lang.String getShards(int index) {
        return shards_.get(index);
      }
      /**
       * repeated string shards = 4 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @param index The index of the value to return.
       * @return The bytes of the shards at the given index.
       */
      public com.google.protobuf.ByteString
          getShardsBytes(int index) {
        return shards_.getByteString(index);
      }
      /**
       * repeated string shards = 4 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @param index The index to set the value at.
       * @param value The shards to set.
       * @return This builder for chaining.
       */
      public Builder setShards(
          int index, java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureShardsIsMutable();
        shards_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * repeated string shards = 4 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @param value The shards to add.
       * @return This builder for chaining.
       */
      public Builder addShards(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureShardsIsMutable();
        shards_.add(value);
        onChanged();
        return this;
      }
      /**
       * repeated string shards = 4 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @param values The shards to add.
       * @return This builder for chaining.
       */
      public Builder addAllShards(
          java.lang.Iterable values) {
        ensureShardsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, shards_);
        onChanged();
        return this;
      }
      /**
       * repeated string shards = 4 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @return This builder for chaining.
       */
      public Builder clearShards() {
        shards_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * repeated string shards = 4 [(.gogoproto.jsontag) = "shards,omitempty"];
       * @param value The bytes of the shards to add.
       * @return This builder for chaining.
       */
      public Builder addShardsBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        ensureShardsIsMutable();
        shards_.add(value);
        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:logproto.SampleQueryRequest)
    }

    // @@protoc_insertion_point(class_scope:logproto.SampleQueryRequest)
    private static final logproto.Logproto.SampleQueryRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new logproto.Logproto.SampleQueryRequest();
    }

    public static logproto.Logproto.SampleQueryRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public SampleQueryRequest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new SampleQueryRequest(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public logproto.Logproto.SampleQueryRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface SampleQueryResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:logproto.SampleQueryResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
     */
    java.util.List 
        getSeriesList();
    /**
     * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
     */
    logproto.Logproto.Series getSeries(int index);
    /**
     * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
     */
    int getSeriesCount();
    /**
     * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
     */
    java.util.List 
        getSeriesOrBuilderList();
    /**
     * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
     */
    logproto.Logproto.SeriesOrBuilder getSeriesOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code logproto.SampleQueryResponse}
   */
  public  static final class SampleQueryResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:logproto.SampleQueryResponse)
      SampleQueryResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use SampleQueryResponse.newBuilder() to construct.
    private SampleQueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private SampleQueryResponse() {
      series_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private SampleQueryResponse(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                series_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              series_.add(
                  input.readMessage(logproto.Logproto.Series.parser(), extensionRegistry));
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          series_ = java.util.Collections.unmodifiableList(series_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return logproto.Logproto.internal_static_logproto_SampleQueryResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return logproto.Logproto.internal_static_logproto_SampleQueryResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              logproto.Logproto.SampleQueryResponse.class, logproto.Logproto.SampleQueryResponse.Builder.class);
    }

    public static final int SERIES_FIELD_NUMBER = 1;
    private java.util.List series_;
    /**
     * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
     */
    public java.util.List getSeriesList() {
      return series_;
    }
    /**
     * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
     */
    public java.util.List 
        getSeriesOrBuilderList() {
      return series_;
    }
    /**
     * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
     */
    public int getSeriesCount() {
      return series_.size();
    }
    /**
     * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
     */
    public logproto.Logproto.Series getSeries(int index) {
      return series_.get(index);
    }
    /**
     * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
     */
    public logproto.Logproto.SeriesOrBuilder getSeriesOrBuilder(
        int index) {
      return series_.get(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (int i = 0; i < series_.size(); i++) {
        output.writeMessage(1, series_.get(i));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      for (int i = 0; i < series_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, series_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof logproto.Logproto.SampleQueryResponse)) {
        return super.equals(obj);
      }
      logproto.Logproto.SampleQueryResponse other = (logproto.Logproto.SampleQueryResponse) obj;

      if (!getSeriesList()
          .equals(other.getSeriesList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getSeriesCount() > 0) {
        hash = (37 * hash) + SERIES_FIELD_NUMBER;
        hash = (53 * hash) + getSeriesList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static logproto.Logproto.SampleQueryResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.SampleQueryResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.SampleQueryResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.SampleQueryResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.SampleQueryResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.SampleQueryResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.SampleQueryResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static logproto.Logproto.SampleQueryResponse 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 logproto.Logproto.SampleQueryResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static logproto.Logproto.SampleQueryResponse 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 logproto.Logproto.SampleQueryResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static logproto.Logproto.SampleQueryResponse 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(logproto.Logproto.SampleQueryResponse 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 logproto.SampleQueryResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:logproto.SampleQueryResponse)
        logproto.Logproto.SampleQueryResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return logproto.Logproto.internal_static_logproto_SampleQueryResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return logproto.Logproto.internal_static_logproto_SampleQueryResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                logproto.Logproto.SampleQueryResponse.class, logproto.Logproto.SampleQueryResponse.Builder.class);
      }

      // Construct using logproto.Logproto.SampleQueryResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getSeriesFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (seriesBuilder_ == null) {
          series_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          seriesBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return logproto.Logproto.internal_static_logproto_SampleQueryResponse_descriptor;
      }

      @java.lang.Override
      public logproto.Logproto.SampleQueryResponse getDefaultInstanceForType() {
        return logproto.Logproto.SampleQueryResponse.getDefaultInstance();
      }

      @java.lang.Override
      public logproto.Logproto.SampleQueryResponse build() {
        logproto.Logproto.SampleQueryResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public logproto.Logproto.SampleQueryResponse buildPartial() {
        logproto.Logproto.SampleQueryResponse result = new logproto.Logproto.SampleQueryResponse(this);
        int from_bitField0_ = bitField0_;
        if (seriesBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            series_ = java.util.Collections.unmodifiableList(series_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.series_ = series_;
        } else {
          result.series_ = seriesBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @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 logproto.Logproto.SampleQueryResponse) {
          return mergeFrom((logproto.Logproto.SampleQueryResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(logproto.Logproto.SampleQueryResponse other) {
        if (other == logproto.Logproto.SampleQueryResponse.getDefaultInstance()) return this;
        if (seriesBuilder_ == null) {
          if (!other.series_.isEmpty()) {
            if (series_.isEmpty()) {
              series_ = other.series_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureSeriesIsMutable();
              series_.addAll(other.series_);
            }
            onChanged();
          }
        } else {
          if (!other.series_.isEmpty()) {
            if (seriesBuilder_.isEmpty()) {
              seriesBuilder_.dispose();
              seriesBuilder_ = null;
              series_ = other.series_;
              bitField0_ = (bitField0_ & ~0x00000001);
              seriesBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getSeriesFieldBuilder() : null;
            } else {
              seriesBuilder_.addAllMessages(other.series_);
            }
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        logproto.Logproto.SampleQueryResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (logproto.Logproto.SampleQueryResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List series_ =
        java.util.Collections.emptyList();
      private void ensureSeriesIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          series_ = new java.util.ArrayList(series_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          logproto.Logproto.Series, logproto.Logproto.Series.Builder, logproto.Logproto.SeriesOrBuilder> seriesBuilder_;

      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public java.util.List getSeriesList() {
        if (seriesBuilder_ == null) {
          return java.util.Collections.unmodifiableList(series_);
        } else {
          return seriesBuilder_.getMessageList();
        }
      }
      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public int getSeriesCount() {
        if (seriesBuilder_ == null) {
          return series_.size();
        } else {
          return seriesBuilder_.getCount();
        }
      }
      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public logproto.Logproto.Series getSeries(int index) {
        if (seriesBuilder_ == null) {
          return series_.get(index);
        } else {
          return seriesBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public Builder setSeries(
          int index, logproto.Logproto.Series value) {
        if (seriesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSeriesIsMutable();
          series_.set(index, value);
          onChanged();
        } else {
          seriesBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public Builder setSeries(
          int index, logproto.Logproto.Series.Builder builderForValue) {
        if (seriesBuilder_ == null) {
          ensureSeriesIsMutable();
          series_.set(index, builderForValue.build());
          onChanged();
        } else {
          seriesBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public Builder addSeries(logproto.Logproto.Series value) {
        if (seriesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSeriesIsMutable();
          series_.add(value);
          onChanged();
        } else {
          seriesBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public Builder addSeries(
          int index, logproto.Logproto.Series value) {
        if (seriesBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureSeriesIsMutable();
          series_.add(index, value);
          onChanged();
        } else {
          seriesBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public Builder addSeries(
          logproto.Logproto.Series.Builder builderForValue) {
        if (seriesBuilder_ == null) {
          ensureSeriesIsMutable();
          series_.add(builderForValue.build());
          onChanged();
        } else {
          seriesBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public Builder addSeries(
          int index, logproto.Logproto.Series.Builder builderForValue) {
        if (seriesBuilder_ == null) {
          ensureSeriesIsMutable();
          series_.add(index, builderForValue.build());
          onChanged();
        } else {
          seriesBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public Builder addAllSeries(
          java.lang.Iterable values) {
        if (seriesBuilder_ == null) {
          ensureSeriesIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, series_);
          onChanged();
        } else {
          seriesBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public Builder clearSeries() {
        if (seriesBuilder_ == null) {
          series_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          seriesBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public Builder removeSeries(int index) {
        if (seriesBuilder_ == null) {
          ensureSeriesIsMutable();
          series_.remove(index);
          onChanged();
        } else {
          seriesBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public logproto.Logproto.Series.Builder getSeriesBuilder(
          int index) {
        return getSeriesFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public logproto.Logproto.SeriesOrBuilder getSeriesOrBuilder(
          int index) {
        if (seriesBuilder_ == null) {
          return series_.get(index);  } else {
          return seriesBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public java.util.List 
           getSeriesOrBuilderList() {
        if (seriesBuilder_ != null) {
          return seriesBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(series_);
        }
      }
      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public logproto.Logproto.Series.Builder addSeriesBuilder() {
        return getSeriesFieldBuilder().addBuilder(
            logproto.Logproto.Series.getDefaultInstance());
      }
      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public logproto.Logproto.Series.Builder addSeriesBuilder(
          int index) {
        return getSeriesFieldBuilder().addBuilder(
            index, logproto.Logproto.Series.getDefaultInstance());
      }
      /**
       * repeated .logproto.Series series = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Series"];
       */
      public java.util.List 
           getSeriesBuilderList() {
        return getSeriesFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          logproto.Logproto.Series, logproto.Logproto.Series.Builder, logproto.Logproto.SeriesOrBuilder> 
          getSeriesFieldBuilder() {
        if (seriesBuilder_ == null) {
          seriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              logproto.Logproto.Series, logproto.Logproto.Series.Builder, logproto.Logproto.SeriesOrBuilder>(
                  series_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          series_ = null;
        }
        return seriesBuilder_;
      }
      @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:logproto.SampleQueryResponse)
    }

    // @@protoc_insertion_point(class_scope:logproto.SampleQueryResponse)
    private static final logproto.Logproto.SampleQueryResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new logproto.Logproto.SampleQueryResponse();
    }

    public static logproto.Logproto.SampleQueryResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public SampleQueryResponse parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new SampleQueryResponse(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public logproto.Logproto.SampleQueryResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface QueryResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:logproto.QueryResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
     */
    java.util.List 
        getStreamsList();
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
     */
    logproto.Logproto.StreamAdapter getStreams(int index);
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
     */
    int getStreamsCount();
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
     */
    java.util.List 
        getStreamsOrBuilderList();
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
     */
    logproto.Logproto.StreamAdapterOrBuilder getStreamsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code logproto.QueryResponse}
   */
  public  static final class QueryResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:logproto.QueryResponse)
      QueryResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use QueryResponse.newBuilder() to construct.
    private QueryResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private QueryResponse() {
      streams_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private QueryResponse(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                streams_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              streams_.add(
                  input.readMessage(logproto.Logproto.StreamAdapter.parser(), extensionRegistry));
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          streams_ = java.util.Collections.unmodifiableList(streams_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return logproto.Logproto.internal_static_logproto_QueryResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return logproto.Logproto.internal_static_logproto_QueryResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              logproto.Logproto.QueryResponse.class, logproto.Logproto.QueryResponse.Builder.class);
    }

    public static final int STREAMS_FIELD_NUMBER = 1;
    private java.util.List streams_;
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
     */
    public java.util.List getStreamsList() {
      return streams_;
    }
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
     */
    public java.util.List 
        getStreamsOrBuilderList() {
      return streams_;
    }
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
     */
    public int getStreamsCount() {
      return streams_.size();
    }
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
     */
    public logproto.Logproto.StreamAdapter getStreams(int index) {
      return streams_.get(index);
    }
    /**
     * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
     */
    public logproto.Logproto.StreamAdapterOrBuilder getStreamsOrBuilder(
        int index) {
      return streams_.get(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (int i = 0; i < streams_.size(); i++) {
        output.writeMessage(1, streams_.get(i));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      for (int i = 0; i < streams_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, streams_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof logproto.Logproto.QueryResponse)) {
        return super.equals(obj);
      }
      logproto.Logproto.QueryResponse other = (logproto.Logproto.QueryResponse) obj;

      if (!getStreamsList()
          .equals(other.getStreamsList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getStreamsCount() > 0) {
        hash = (37 * hash) + STREAMS_FIELD_NUMBER;
        hash = (53 * hash) + getStreamsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static logproto.Logproto.QueryResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.QueryResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.QueryResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.QueryResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.QueryResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static logproto.Logproto.QueryResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static logproto.Logproto.QueryResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static logproto.Logproto.QueryResponse 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 logproto.Logproto.QueryResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static logproto.Logproto.QueryResponse 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 logproto.Logproto.QueryResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static logproto.Logproto.QueryResponse 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(logproto.Logproto.QueryResponse 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 logproto.QueryResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:logproto.QueryResponse)
        logproto.Logproto.QueryResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return logproto.Logproto.internal_static_logproto_QueryResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return logproto.Logproto.internal_static_logproto_QueryResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                logproto.Logproto.QueryResponse.class, logproto.Logproto.QueryResponse.Builder.class);
      }

      // Construct using logproto.Logproto.QueryResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getStreamsFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (streamsBuilder_ == null) {
          streams_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          streamsBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return logproto.Logproto.internal_static_logproto_QueryResponse_descriptor;
      }

      @java.lang.Override
      public logproto.Logproto.QueryResponse getDefaultInstanceForType() {
        return logproto.Logproto.QueryResponse.getDefaultInstance();
      }

      @java.lang.Override
      public logproto.Logproto.QueryResponse build() {
        logproto.Logproto.QueryResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public logproto.Logproto.QueryResponse buildPartial() {
        logproto.Logproto.QueryResponse result = new logproto.Logproto.QueryResponse(this);
        int from_bitField0_ = bitField0_;
        if (streamsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            streams_ = java.util.Collections.unmodifiableList(streams_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.streams_ = streams_;
        } else {
          result.streams_ = streamsBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @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 logproto.Logproto.QueryResponse) {
          return mergeFrom((logproto.Logproto.QueryResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(logproto.Logproto.QueryResponse other) {
        if (other == logproto.Logproto.QueryResponse.getDefaultInstance()) return this;
        if (streamsBuilder_ == null) {
          if (!other.streams_.isEmpty()) {
            if (streams_.isEmpty()) {
              streams_ = other.streams_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureStreamsIsMutable();
              streams_.addAll(other.streams_);
            }
            onChanged();
          }
        } else {
          if (!other.streams_.isEmpty()) {
            if (streamsBuilder_.isEmpty()) {
              streamsBuilder_.dispose();
              streamsBuilder_ = null;
              streams_ = other.streams_;
              bitField0_ = (bitField0_ & ~0x00000001);
              streamsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getStreamsFieldBuilder() : null;
            } else {
              streamsBuilder_.addAllMessages(other.streams_);
            }
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        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 {
        logproto.Logproto.QueryResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (logproto.Logproto.QueryResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List streams_ =
        java.util.Collections.emptyList();
      private void ensureStreamsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          streams_ = new java.util.ArrayList(streams_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          logproto.Logproto.StreamAdapter, logproto.Logproto.StreamAdapter.Builder, logproto.Logproto.StreamAdapterOrBuilder> streamsBuilder_;

      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public java.util.List getStreamsList() {
        if (streamsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(streams_);
        } else {
          return streamsBuilder_.getMessageList();
        }
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public int getStreamsCount() {
        if (streamsBuilder_ == null) {
          return streams_.size();
        } else {
          return streamsBuilder_.getCount();
        }
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public logproto.Logproto.StreamAdapter getStreams(int index) {
        if (streamsBuilder_ == null) {
          return streams_.get(index);
        } else {
          return streamsBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public Builder setStreams(
          int index, logproto.Logproto.StreamAdapter value) {
        if (streamsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureStreamsIsMutable();
          streams_.set(index, value);
          onChanged();
        } else {
          streamsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public Builder setStreams(
          int index, logproto.Logproto.StreamAdapter.Builder builderForValue) {
        if (streamsBuilder_ == null) {
          ensureStreamsIsMutable();
          streams_.set(index, builderForValue.build());
          onChanged();
        } else {
          streamsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public Builder addStreams(logproto.Logproto.StreamAdapter value) {
        if (streamsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureStreamsIsMutable();
          streams_.add(value);
          onChanged();
        } else {
          streamsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public Builder addStreams(
          int index, logproto.Logproto.StreamAdapter value) {
        if (streamsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureStreamsIsMutable();
          streams_.add(index, value);
          onChanged();
        } else {
          streamsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public Builder addStreams(
          logproto.Logproto.StreamAdapter.Builder builderForValue) {
        if (streamsBuilder_ == null) {
          ensureStreamsIsMutable();
          streams_.add(builderForValue.build());
          onChanged();
        } else {
          streamsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public Builder addStreams(
          int index, logproto.Logproto.StreamAdapter.Builder builderForValue) {
        if (streamsBuilder_ == null) {
          ensureStreamsIsMutable();
          streams_.add(index, builderForValue.build());
          onChanged();
        } else {
          streamsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public Builder addAllStreams(
          java.lang.Iterable values) {
        if (streamsBuilder_ == null) {
          ensureStreamsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, streams_);
          onChanged();
        } else {
          streamsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public Builder clearStreams() {
        if (streamsBuilder_ == null) {
          streams_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          streamsBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public Builder removeStreams(int index) {
        if (streamsBuilder_ == null) {
          ensureStreamsIsMutable();
          streams_.remove(index);
          onChanged();
        } else {
          streamsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public logproto.Logproto.StreamAdapter.Builder getStreamsBuilder(
          int index) {
        return getStreamsFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public logproto.Logproto.StreamAdapterOrBuilder getStreamsOrBuilder(
          int index) {
        if (streamsBuilder_ == null) {
          return streams_.get(index);  } else {
          return streamsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public java.util.List 
           getStreamsOrBuilderList() {
        if (streamsBuilder_ != null) {
          return streamsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(streams_);
        }
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public logproto.Logproto.StreamAdapter.Builder addStreamsBuilder() {
        return getStreamsFieldBuilder().addBuilder(
            logproto.Logproto.StreamAdapter.getDefaultInstance());
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public logproto.Logproto.StreamAdapter.Builder addStreamsBuilder(
          int index) {
        return getStreamsFieldBuilder().addBuilder(
            index, logproto.Logproto.StreamAdapter.getDefaultInstance());
      }
      /**
       * repeated .logproto.StreamAdapter streams = 1 [(.gogoproto.nullable) = true, (.gogoproto.customtype) = "Stream"];
       */
      public java.util.List 
           getStreamsBuilderList() {
        return getStreamsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          logproto.Logproto.StreamAdapter, logproto.Logproto.StreamAdapter.Builder, logproto.Logproto.StreamAdapterOrBuilder> 
          getStreamsFieldBuilder() {
        if (streamsBuilder_ == null) {
          streamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              logproto.Logproto.StreamAdapter, logproto.Logproto.StreamAdapter.Builder, logproto.Logproto.StreamAdapterOrBuilder>(
                  streams_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          streams_ = null;
        }
        return streamsBuilder_;
      }
      @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:logproto.QueryResponse)
    }

    // @@protoc_insertion_point(class_scope:logproto.QueryResponse)
    private static final logproto.Logproto.QueryResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new logproto.Logproto.QueryResponse();
    }

    public static logproto.Logproto.QueryResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public QueryResponse parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new QueryResponse(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public logproto.Logproto.QueryResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface LabelRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:logproto.LabelRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string name = 1;
     * @return The name.
     */
    java.lang.String getName();
    /**
     * string name = 1;
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString
        getNameBytes();

    /**
     * 
     * True to fetch label values, false for fetch labels names.
     * 
* * bool values = 2; * @return The values. */ boolean getValues(); /** * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; * @return Whether the start field is set. */ boolean hasStart(); /** * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; * @return The start. */ com.google.protobuf.Timestamp getStart(); /** * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ com.google.protobuf.TimestampOrBuilder getStartOrBuilder(); /** * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; * @return Whether the end field is set. */ boolean hasEnd(); /** * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; * @return The end. */ com.google.protobuf.Timestamp getEnd(); /** * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ com.google.protobuf.TimestampOrBuilder getEndOrBuilder(); } /** * Protobuf type {@code logproto.LabelRequest} */ public static final class LabelRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.LabelRequest) LabelRequestOrBuilder { private static final long serialVersionUID = 0L; // Use LabelRequest.newBuilder() to construct. private LabelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LabelRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LabelRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LabelRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 16: { values_ = input.readBool(); break; } case 26: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (start_ != null) { subBuilder = start_.toBuilder(); } start_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(start_); start_ = subBuilder.buildPartial(); } break; } case 34: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (end_ != null) { subBuilder = end_.toBuilder(); } end_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(end_); end_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_LabelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_LabelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.LabelRequest.class, logproto.Logproto.LabelRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUES_FIELD_NUMBER = 2; private boolean values_; /** *
     * True to fetch label values, false for fetch labels names.
     * 
* * bool values = 2; * @return The values. */ public boolean getValues() { return values_; } public static final int START_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp start_; /** * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; * @return Whether the start field is set. */ public boolean hasStart() { return start_ != null; } /** * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; * @return The start. */ public com.google.protobuf.Timestamp getStart() { return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_; } /** * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() { return getStart(); } public static final int END_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp end_; /** * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; * @return Whether the end field is set. */ public boolean hasEnd() { return end_ != null; } /** * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; * @return The end. */ public com.google.protobuf.Timestamp getEnd() { return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_; } /** * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() { return getEnd(); } 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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (values_ != false) { output.writeBool(2, values_); } if (start_ != null) { output.writeMessage(3, getStart()); } if (end_ != null) { output.writeMessage(4, getEnd()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (values_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, values_); } if (start_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getStart()); } if (end_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getEnd()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.LabelRequest)) { return super.equals(obj); } logproto.Logproto.LabelRequest other = (logproto.Logproto.LabelRequest) obj; if (!getName() .equals(other.getName())) return false; if (getValues() != other.getValues()) return false; if (hasStart() != other.hasStart()) return false; if (hasStart()) { if (!getStart() .equals(other.getStart())) return false; } if (hasEnd() != other.hasEnd()) return false; if (hasEnd()) { if (!getEnd() .equals(other.getEnd())) return false; } if (!unknownFields.equals(other.unknownFields)) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getValues()); if (hasStart()) { hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + getStart().hashCode(); } if (hasEnd()) { hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + getEnd().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.LabelRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.LabelRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.LabelRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.LabelRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.LabelRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.LabelRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.LabelRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.LabelRequest 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 logproto.Logproto.LabelRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.LabelRequest 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 logproto.Logproto.LabelRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.LabelRequest 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(logproto.Logproto.LabelRequest 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 logproto.LabelRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.LabelRequest) logproto.Logproto.LabelRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_LabelRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_LabelRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.LabelRequest.class, logproto.Logproto.LabelRequest.Builder.class); } // Construct using logproto.Logproto.LabelRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; values_ = false; if (startBuilder_ == null) { start_ = null; } else { start_ = null; startBuilder_ = null; } if (endBuilder_ == null) { end_ = null; } else { end_ = null; endBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_LabelRequest_descriptor; } @java.lang.Override public logproto.Logproto.LabelRequest getDefaultInstanceForType() { return logproto.Logproto.LabelRequest.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.LabelRequest build() { logproto.Logproto.LabelRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.LabelRequest buildPartial() { logproto.Logproto.LabelRequest result = new logproto.Logproto.LabelRequest(this); result.name_ = name_; result.values_ = values_; if (startBuilder_ == null) { result.start_ = start_; } else { result.start_ = startBuilder_.build(); } if (endBuilder_ == null) { result.end_ = end_; } else { result.end_ = endBuilder_.build(); } onBuilt(); return result; } @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 logproto.Logproto.LabelRequest) { return mergeFrom((logproto.Logproto.LabelRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.LabelRequest other) { if (other == logproto.Logproto.LabelRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getValues() != false) { setValues(other.getValues()); } if (other.hasStart()) { mergeStart(other.getStart()); } if (other.hasEnd()) { mergeEnd(other.getEnd()); } this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.LabelRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.LabelRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private boolean values_ ; /** *
       * True to fetch label values, false for fetch labels names.
       * 
* * bool values = 2; * @return The values. */ public boolean getValues() { return values_; } /** *
       * True to fetch label values, false for fetch labels names.
       * 
* * bool values = 2; * @param value The values to set. * @return This builder for chaining. */ public Builder setValues(boolean value) { values_ = value; onChanged(); return this; } /** *
       * True to fetch label values, false for fetch labels names.
       * 
* * bool values = 2; * @return This builder for chaining. */ public Builder clearValues() { values_ = false; onChanged(); return this; } private com.google.protobuf.Timestamp start_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startBuilder_; /** * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; * @return Whether the start field is set. */ public boolean hasStart() { return startBuilder_ != null || start_ != null; } /** * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; * @return The start. */ public com.google.protobuf.Timestamp getStart() { if (startBuilder_ == null) { return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_; } else { return startBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ public Builder setStart(com.google.protobuf.Timestamp value) { if (startBuilder_ == null) { if (value == null) { throw new NullPointerException(); } start_ = value; onChanged(); } else { startBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ public Builder setStart( com.google.protobuf.Timestamp.Builder builderForValue) { if (startBuilder_ == null) { start_ = builderForValue.build(); onChanged(); } else { startBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ public Builder mergeStart(com.google.protobuf.Timestamp value) { if (startBuilder_ == null) { if (start_ != null) { start_ = com.google.protobuf.Timestamp.newBuilder(start_).mergeFrom(value).buildPartial(); } else { start_ = value; } onChanged(); } else { startBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ public Builder clearStart() { if (startBuilder_ == null) { start_ = null; onChanged(); } else { start_ = null; startBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getStartBuilder() { onChanged(); return getStartFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() { if (startBuilder_ != null) { return startBuilder_.getMessageOrBuilder(); } else { return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_; } } /** * .google.protobuf.Timestamp start = 3 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartFieldBuilder() { if (startBuilder_ == null) { startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStart(), getParentForChildren(), isClean()); start_ = null; } return startBuilder_; } private com.google.protobuf.Timestamp end_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endBuilder_; /** * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; * @return Whether the end field is set. */ public boolean hasEnd() { return endBuilder_ != null || end_ != null; } /** * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; * @return The end. */ public com.google.protobuf.Timestamp getEnd() { if (endBuilder_ == null) { return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_; } else { return endBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ public Builder setEnd(com.google.protobuf.Timestamp value) { if (endBuilder_ == null) { if (value == null) { throw new NullPointerException(); } end_ = value; onChanged(); } else { endBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ public Builder setEnd( com.google.protobuf.Timestamp.Builder builderForValue) { if (endBuilder_ == null) { end_ = builderForValue.build(); onChanged(); } else { endBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ public Builder mergeEnd(com.google.protobuf.Timestamp value) { if (endBuilder_ == null) { if (end_ != null) { end_ = com.google.protobuf.Timestamp.newBuilder(end_).mergeFrom(value).buildPartial(); } else { end_ = value; } onChanged(); } else { endBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ public Builder clearEnd() { if (endBuilder_ == null) { end_ = null; onChanged(); } else { end_ = null; endBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getEndBuilder() { onChanged(); return getEndFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() { if (endBuilder_ != null) { return endBuilder_.getMessageOrBuilder(); } else { return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_; } } /** * .google.protobuf.Timestamp end = 4 [(.gogoproto.nullable) = true, (.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndFieldBuilder() { if (endBuilder_ == null) { endBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getEnd(), getParentForChildren(), isClean()); end_ = null; } return endBuilder_; } @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:logproto.LabelRequest) } // @@protoc_insertion_point(class_scope:logproto.LabelRequest) private static final logproto.Logproto.LabelRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.LabelRequest(); } public static logproto.Logproto.LabelRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LabelRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LabelRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.LabelRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LabelResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:logproto.LabelResponse) com.google.protobuf.MessageOrBuilder { /** * repeated string values = 1; * @return A list containing the values. */ java.util.List getValuesList(); /** * repeated string values = 1; * @return The count of values. */ int getValuesCount(); /** * repeated string values = 1; * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** * repeated string values = 1; * @param index The index of the value to return. * @return The bytes of the values at the given index. */ com.google.protobuf.ByteString getValuesBytes(int index); } /** * Protobuf type {@code logproto.LabelResponse} */ public static final class LabelResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.LabelResponse) LabelResponseOrBuilder { private static final long serialVersionUID = 0L; // Use LabelResponse.newBuilder() to construct. private LabelResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LabelResponse() { values_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LabelResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LabelResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } values_.add(s); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_LabelResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_LabelResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.LabelResponse.class, logproto.Logproto.LabelResponse.Builder.class); } public static final int VALUES_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList values_; /** * repeated string values = 1; * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** * repeated string values = 1; * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** * repeated string values = 1; * @param index The index of the element to return. * @return The values at the given index. */ public java.lang.String getValues(int index) { return values_.get(index); } /** * repeated string values = 1; * @param index The index of the value to return. * @return The bytes of the values at the given index. */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < values_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < values_.size(); i++) { dataSize += computeStringSizeNoTag(values_.getRaw(i)); } size += dataSize; size += 1 * getValuesList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.LabelResponse)) { return super.equals(obj); } logproto.Logproto.LabelResponse other = (logproto.Logproto.LabelResponse) obj; if (!getValuesList() .equals(other.getValuesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.LabelResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.LabelResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.LabelResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.LabelResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.LabelResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.LabelResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.LabelResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.LabelResponse 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 logproto.Logproto.LabelResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.LabelResponse 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 logproto.Logproto.LabelResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.LabelResponse 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(logproto.Logproto.LabelResponse 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 logproto.LabelResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.LabelResponse) logproto.Logproto.LabelResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_LabelResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_LabelResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.LabelResponse.class, logproto.Logproto.LabelResponse.Builder.class); } // Construct using logproto.Logproto.LabelResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_LabelResponse_descriptor; } @java.lang.Override public logproto.Logproto.LabelResponse getDefaultInstanceForType() { return logproto.Logproto.LabelResponse.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.LabelResponse build() { logproto.Logproto.LabelResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.LabelResponse buildPartial() { logproto.Logproto.LabelResponse result = new logproto.Logproto.LabelResponse(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { values_ = values_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; onBuilt(); return result; } @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 logproto.Logproto.LabelResponse) { return mergeFrom((logproto.Logproto.LabelResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.LabelResponse other) { if (other == logproto.Logproto.LabelResponse.getDefaultInstance()) return this; if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.LabelResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.LabelResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); bitField0_ |= 0x00000001; } } /** * repeated string values = 1; * @return A list containing the values. */ public com.google.protobuf.ProtocolStringList getValuesList() { return values_.getUnmodifiableView(); } /** * repeated string values = 1; * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** * repeated string values = 1; * @param index The index of the element to return. * @return The values at the given index. */ public java.lang.String getValues(int index) { return values_.get(index); } /** * repeated string values = 1; * @param index The index of the value to return. * @return The bytes of the values at the given index. */ public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** * repeated string values = 1; * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ public Builder setValues( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** * repeated string values = 1; * @param value The values to add. * @return This builder for chaining. */ public Builder addValues( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** * repeated string values = 1; * @param values The values to add. * @return This builder for chaining. */ public Builder addAllValues( java.lang.Iterable values) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, values_); onChanged(); return this; } /** * repeated string values = 1; * @return This builder for chaining. */ public Builder clearValues() { values_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string values = 1; * @param value The bytes of the values to add. * @return This builder for chaining. */ public Builder addValuesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); 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:logproto.LabelResponse) } // @@protoc_insertion_point(class_scope:logproto.LabelResponse) private static final logproto.Logproto.LabelResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.LabelResponse(); } public static logproto.Logproto.LabelResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LabelResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LabelResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.LabelResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StreamAdapterOrBuilder extends // @@protoc_insertion_point(interface_extends:logproto.StreamAdapter) com.google.protobuf.MessageOrBuilder { /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @return The labels. */ java.lang.String getLabels(); /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @return The bytes for labels. */ com.google.protobuf.ByteString getLabelsBytes(); /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ java.util.List getEntriesList(); /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ logproto.Logproto.EntryAdapter getEntries(int index); /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ int getEntriesCount(); /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ java.util.List getEntriesOrBuilderList(); /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ logproto.Logproto.EntryAdapterOrBuilder getEntriesOrBuilder( int index); } /** * Protobuf type {@code logproto.StreamAdapter} */ public static final class StreamAdapter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.StreamAdapter) StreamAdapterOrBuilder { private static final long serialVersionUID = 0L; // Use StreamAdapter.newBuilder() to construct. private StreamAdapter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreamAdapter() { labels_ = ""; entries_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StreamAdapter(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StreamAdapter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); labels_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } entries_.add( input.readMessage(logproto.Logproto.EntryAdapter.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_StreamAdapter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_StreamAdapter_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.StreamAdapter.class, logproto.Logproto.StreamAdapter.Builder.class); } public static final int LABELS_FIELD_NUMBER = 1; private volatile java.lang.Object labels_; /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @return The labels. */ public java.lang.String getLabels() { java.lang.Object ref = labels_; 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(); labels_ = s; return s; } } /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @return The bytes for labels. */ public com.google.protobuf.ByteString getLabelsBytes() { java.lang.Object ref = labels_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); labels_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENTRIES_FIELD_NUMBER = 2; private java.util.List entries_; /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public java.util.List getEntriesList() { return entries_; } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public java.util.List getEntriesOrBuilderList() { return entries_; } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public int getEntriesCount() { return entries_.size(); } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public logproto.Logproto.EntryAdapter getEntries(int index) { return entries_.get(index); } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public logproto.Logproto.EntryAdapterOrBuilder getEntriesOrBuilder( int index) { return entries_.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 (!getLabelsBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, labels_); } for (int i = 0; i < entries_.size(); i++) { output.writeMessage(2, entries_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getLabelsBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, labels_); } for (int i = 0; i < entries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, entries_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.StreamAdapter)) { return super.equals(obj); } logproto.Logproto.StreamAdapter other = (logproto.Logproto.StreamAdapter) obj; if (!getLabels() .equals(other.getLabels())) return false; if (!getEntriesList() .equals(other.getEntriesList())) return false; if (!unknownFields.equals(other.unknownFields)) 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) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabels().hashCode(); if (getEntriesCount() > 0) { hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntriesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.StreamAdapter parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.StreamAdapter parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.StreamAdapter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.StreamAdapter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.StreamAdapter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.StreamAdapter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.StreamAdapter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.StreamAdapter 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 logproto.Logproto.StreamAdapter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.StreamAdapter 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 logproto.Logproto.StreamAdapter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.StreamAdapter 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(logproto.Logproto.StreamAdapter 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 logproto.StreamAdapter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.StreamAdapter) logproto.Logproto.StreamAdapterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_StreamAdapter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_StreamAdapter_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.StreamAdapter.class, logproto.Logproto.StreamAdapter.Builder.class); } // Construct using logproto.Logproto.StreamAdapter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEntriesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); labels_ = ""; if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { entriesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_StreamAdapter_descriptor; } @java.lang.Override public logproto.Logproto.StreamAdapter getDefaultInstanceForType() { return logproto.Logproto.StreamAdapter.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.StreamAdapter build() { logproto.Logproto.StreamAdapter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.StreamAdapter buildPartial() { logproto.Logproto.StreamAdapter result = new logproto.Logproto.StreamAdapter(this); int from_bitField0_ = bitField0_; result.labels_ = labels_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000001); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.build(); } onBuilt(); return result; } @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 logproto.Logproto.StreamAdapter) { return mergeFrom((logproto.Logproto.StreamAdapter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.StreamAdapter other) { if (other == logproto.Logproto.StreamAdapter.getDefaultInstance()) return this; if (!other.getLabels().isEmpty()) { labels_ = other.labels_; onChanged(); } if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntriesIsMutable(); entries_.addAll(other.entries_); } onChanged(); } } else { if (!other.entries_.isEmpty()) { if (entriesBuilder_.isEmpty()) { entriesBuilder_.dispose(); entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); entriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } } } this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.StreamAdapter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.StreamAdapter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object labels_ = ""; /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @return The labels. */ public java.lang.String getLabels() { java.lang.Object ref = labels_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); labels_ = s; return s; } else { return (java.lang.String) ref; } } /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @return The bytes for labels. */ public com.google.protobuf.ByteString getLabelsBytes() { java.lang.Object ref = labels_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); labels_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @param value The labels to set. * @return This builder for chaining. */ public Builder setLabels( java.lang.String value) { if (value == null) { throw new NullPointerException(); } labels_ = value; onChanged(); return this; } /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @return This builder for chaining. */ public Builder clearLabels() { labels_ = getDefaultInstance().getLabels(); onChanged(); return this; } /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @param value The bytes for labels to set. * @return This builder for chaining. */ public Builder setLabelsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); labels_ = value; onChanged(); return this; } private java.util.List entries_ = java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.EntryAdapter, logproto.Logproto.EntryAdapter.Builder, logproto.Logproto.EntryAdapterOrBuilder> entriesBuilder_; /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { return entriesBuilder_.getMessageList(); } } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public int getEntriesCount() { if (entriesBuilder_ == null) { return entries_.size(); } else { return entriesBuilder_.getCount(); } } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public logproto.Logproto.EntryAdapter getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessage(index); } } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public Builder setEntries( int index, logproto.Logproto.EntryAdapter value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); } else { entriesBuilder_.setMessage(index, value); } return this; } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public Builder setEntries( int index, logproto.Logproto.EntryAdapter.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public Builder addEntries(logproto.Logproto.EntryAdapter value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(value); onChanged(); } else { entriesBuilder_.addMessage(value); } return this; } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public Builder addEntries( int index, logproto.Logproto.EntryAdapter value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(index, value); onChanged(); } else { entriesBuilder_.addMessage(index, value); } return this; } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public Builder addEntries( logproto.Logproto.EntryAdapter.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public Builder addEntries( int index, logproto.Logproto.EntryAdapter.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public Builder addAllEntries( java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); } return this; } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public Builder clearEntries() { if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entriesBuilder_.clear(); } return this; } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.remove(index); onChanged(); } else { entriesBuilder_.remove(index); } return this; } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public logproto.Logproto.EntryAdapter.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(index); } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public logproto.Logproto.EntryAdapterOrBuilder getEntriesOrBuilder( int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public java.util.List getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entries_); } } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public logproto.Logproto.EntryAdapter.Builder addEntriesBuilder() { return getEntriesFieldBuilder().addBuilder( logproto.Logproto.EntryAdapter.getDefaultInstance()); } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public logproto.Logproto.EntryAdapter.Builder addEntriesBuilder( int index) { return getEntriesFieldBuilder().addBuilder( index, logproto.Logproto.EntryAdapter.getDefaultInstance()); } /** * repeated .logproto.EntryAdapter entries = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "entries"]; */ public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.EntryAdapter, logproto.Logproto.EntryAdapter.Builder, logproto.Logproto.EntryAdapterOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.EntryAdapter, logproto.Logproto.EntryAdapter.Builder, logproto.Logproto.EntryAdapterOrBuilder>( entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } @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:logproto.StreamAdapter) } // @@protoc_insertion_point(class_scope:logproto.StreamAdapter) private static final logproto.Logproto.StreamAdapter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.StreamAdapter(); } public static logproto.Logproto.StreamAdapter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StreamAdapter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StreamAdapter(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.StreamAdapter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EntryAdapterOrBuilder extends // @@protoc_insertion_point(interface_extends:logproto.EntryAdapter) com.google.protobuf.MessageOrBuilder { /** * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "ts", (.gogoproto.stdtime) = true]; * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "ts", (.gogoproto.stdtime) = true]; * @return The timestamp. */ com.google.protobuf.Timestamp getTimestamp(); /** * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "ts", (.gogoproto.stdtime) = true]; */ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); /** * string line = 2 [(.gogoproto.jsontag) = "line"]; * @return The line. */ java.lang.String getLine(); /** * string line = 2 [(.gogoproto.jsontag) = "line"]; * @return The bytes for line. */ com.google.protobuf.ByteString getLineBytes(); } /** * Protobuf type {@code logproto.EntryAdapter} */ public static final class EntryAdapter extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.EntryAdapter) EntryAdapterOrBuilder { private static final long serialVersionUID = 0L; // Use EntryAdapter.newBuilder() to construct. private EntryAdapter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EntryAdapter() { line_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EntryAdapter(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EntryAdapter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); line_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_EntryAdapter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_EntryAdapter_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.EntryAdapter.class, logproto.Logproto.EntryAdapter.Builder.class); } public static final int TIMESTAMP_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp timestamp_; /** * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "ts", (.gogoproto.stdtime) = true]; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return timestamp_ != null; } /** * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "ts", (.gogoproto.stdtime) = true]; * @return The timestamp. */ public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "ts", (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { return getTimestamp(); } public static final int LINE_FIELD_NUMBER = 2; private volatile java.lang.Object line_; /** * string line = 2 [(.gogoproto.jsontag) = "line"]; * @return The line. */ public java.lang.String getLine() { java.lang.Object ref = line_; 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(); line_ = s; return s; } } /** * string line = 2 [(.gogoproto.jsontag) = "line"]; * @return The bytes for line. */ public com.google.protobuf.ByteString getLineBytes() { java.lang.Object ref = line_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); line_ = 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 (timestamp_ != null) { output.writeMessage(1, getTimestamp()); } if (!getLineBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, line_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTimestamp()); } if (!getLineBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, line_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.EntryAdapter)) { return super.equals(obj); } logproto.Logproto.EntryAdapter other = (logproto.Logproto.EntryAdapter) obj; if (hasTimestamp() != other.hasTimestamp()) return false; if (hasTimestamp()) { if (!getTimestamp() .equals(other.getTimestamp())) return false; } if (!getLine() .equals(other.getLine())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (37 * hash) + LINE_FIELD_NUMBER; hash = (53 * hash) + getLine().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.EntryAdapter parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.EntryAdapter parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.EntryAdapter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.EntryAdapter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.EntryAdapter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.EntryAdapter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.EntryAdapter parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.EntryAdapter 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 logproto.Logproto.EntryAdapter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.EntryAdapter 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 logproto.Logproto.EntryAdapter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.EntryAdapter 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(logproto.Logproto.EntryAdapter 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 logproto.EntryAdapter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.EntryAdapter) logproto.Logproto.EntryAdapterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_EntryAdapter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_EntryAdapter_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.EntryAdapter.class, logproto.Logproto.EntryAdapter.Builder.class); } // Construct using logproto.Logproto.EntryAdapter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } line_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_EntryAdapter_descriptor; } @java.lang.Override public logproto.Logproto.EntryAdapter getDefaultInstanceForType() { return logproto.Logproto.EntryAdapter.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.EntryAdapter build() { logproto.Logproto.EntryAdapter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.EntryAdapter buildPartial() { logproto.Logproto.EntryAdapter result = new logproto.Logproto.EntryAdapter(this); if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } result.line_ = line_; onBuilt(); return result; } @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 logproto.Logproto.EntryAdapter) { return mergeFrom((logproto.Logproto.EntryAdapter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.EntryAdapter other) { if (other == logproto.Logproto.EntryAdapter.getDefaultInstance()) return this; if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (!other.getLine().isEmpty()) { line_ = other.line_; onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.EntryAdapter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.EntryAdapter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Timestamp timestamp_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; /** * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "ts", (.gogoproto.stdtime) = true]; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "ts", (.gogoproto.stdtime) = true]; * @return The timestamp. */ public com.google.protobuf.Timestamp getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "ts", (.gogoproto.stdtime) = true]; */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "ts", (.gogoproto.stdtime) = true]; */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "ts", (.gogoproto.stdtime) = true]; */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "ts", (.gogoproto.stdtime) = true]; */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "ts", (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "ts", (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** * .google.protobuf.Timestamp timestamp = 1 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "ts", (.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private java.lang.Object line_ = ""; /** * string line = 2 [(.gogoproto.jsontag) = "line"]; * @return The line. */ public java.lang.String getLine() { java.lang.Object ref = line_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); line_ = s; return s; } else { return (java.lang.String) ref; } } /** * string line = 2 [(.gogoproto.jsontag) = "line"]; * @return The bytes for line. */ public com.google.protobuf.ByteString getLineBytes() { java.lang.Object ref = line_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); line_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string line = 2 [(.gogoproto.jsontag) = "line"]; * @param value The line to set. * @return This builder for chaining. */ public Builder setLine( java.lang.String value) { if (value == null) { throw new NullPointerException(); } line_ = value; onChanged(); return this; } /** * string line = 2 [(.gogoproto.jsontag) = "line"]; * @return This builder for chaining. */ public Builder clearLine() { line_ = getDefaultInstance().getLine(); onChanged(); return this; } /** * string line = 2 [(.gogoproto.jsontag) = "line"]; * @param value The bytes for line to set. * @return This builder for chaining. */ public Builder setLineBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); line_ = value; 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:logproto.EntryAdapter) } // @@protoc_insertion_point(class_scope:logproto.EntryAdapter) private static final logproto.Logproto.EntryAdapter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.EntryAdapter(); } public static logproto.Logproto.EntryAdapter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EntryAdapter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EntryAdapter(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.EntryAdapter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SampleOrBuilder extends // @@protoc_insertion_point(interface_extends:logproto.Sample) com.google.protobuf.MessageOrBuilder { /** * int64 timestamp = 1 [(.gogoproto.jsontag) = "ts"]; * @return The timestamp. */ long getTimestamp(); /** * double value = 2 [(.gogoproto.jsontag) = "value"]; * @return The value. */ double getValue(); /** * uint64 hash = 3 [(.gogoproto.jsontag) = "hash"]; * @return The hash. */ long getHash(); } /** * Protobuf type {@code logproto.Sample} */ public static final class Sample extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.Sample) SampleOrBuilder { private static final long serialVersionUID = 0L; // Use Sample.newBuilder() to construct. private Sample(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Sample() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Sample(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Sample( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { timestamp_ = input.readInt64(); break; } case 17: { value_ = input.readDouble(); break; } case 24: { hash_ = input.readUInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_Sample_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_Sample_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.Sample.class, logproto.Logproto.Sample.Builder.class); } public static final int TIMESTAMP_FIELD_NUMBER = 1; private long timestamp_; /** * int64 timestamp = 1 [(.gogoproto.jsontag) = "ts"]; * @return The timestamp. */ public long getTimestamp() { return timestamp_; } public static final int VALUE_FIELD_NUMBER = 2; private double value_; /** * double value = 2 [(.gogoproto.jsontag) = "value"]; * @return The value. */ public double getValue() { return value_; } public static final int HASH_FIELD_NUMBER = 3; private long hash_; /** * uint64 hash = 3 [(.gogoproto.jsontag) = "hash"]; * @return The hash. */ public long getHash() { return hash_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (timestamp_ != 0L) { output.writeInt64(1, timestamp_); } if (value_ != 0D) { output.writeDouble(2, value_); } if (hash_ != 0L) { output.writeUInt64(3, hash_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, timestamp_); } if (value_ != 0D) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, value_); } if (hash_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, hash_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.Sample)) { return super.equals(obj); } logproto.Logproto.Sample other = (logproto.Logproto.Sample) obj; if (getTimestamp() != other.getTimestamp()) return false; if (java.lang.Double.doubleToLongBits(getValue()) != java.lang.Double.doubleToLongBits( other.getValue())) return false; if (getHash() != other.getHash()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getValue())); hash = (37 * hash) + HASH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getHash()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.Sample parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.Sample parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.Sample parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.Sample parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.Sample parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.Sample parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.Sample parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.Sample 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 logproto.Logproto.Sample parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.Sample 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 logproto.Logproto.Sample parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.Sample 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(logproto.Logproto.Sample 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 logproto.Sample} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.Sample) logproto.Logproto.SampleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_Sample_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_Sample_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.Sample.class, logproto.Logproto.Sample.Builder.class); } // Construct using logproto.Logproto.Sample.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); timestamp_ = 0L; value_ = 0D; hash_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_Sample_descriptor; } @java.lang.Override public logproto.Logproto.Sample getDefaultInstanceForType() { return logproto.Logproto.Sample.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.Sample build() { logproto.Logproto.Sample result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.Sample buildPartial() { logproto.Logproto.Sample result = new logproto.Logproto.Sample(this); result.timestamp_ = timestamp_; result.value_ = value_; result.hash_ = hash_; onBuilt(); return result; } @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 logproto.Logproto.Sample) { return mergeFrom((logproto.Logproto.Sample)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.Sample other) { if (other == logproto.Logproto.Sample.getDefaultInstance()) return this; if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } if (other.getValue() != 0D) { setValue(other.getValue()); } if (other.getHash() != 0L) { setHash(other.getHash()); } this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.Sample parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.Sample) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long timestamp_ ; /** * int64 timestamp = 1 [(.gogoproto.jsontag) = "ts"]; * @return The timestamp. */ public long getTimestamp() { return timestamp_; } /** * int64 timestamp = 1 [(.gogoproto.jsontag) = "ts"]; * @param value The timestamp to set. * @return This builder for chaining. */ public Builder setTimestamp(long value) { timestamp_ = value; onChanged(); return this; } /** * int64 timestamp = 1 [(.gogoproto.jsontag) = "ts"]; * @return This builder for chaining. */ public Builder clearTimestamp() { timestamp_ = 0L; onChanged(); return this; } private double value_ ; /** * double value = 2 [(.gogoproto.jsontag) = "value"]; * @return The value. */ public double getValue() { return value_; } /** * double value = 2 [(.gogoproto.jsontag) = "value"]; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(double value) { value_ = value; onChanged(); return this; } /** * double value = 2 [(.gogoproto.jsontag) = "value"]; * @return This builder for chaining. */ public Builder clearValue() { value_ = 0D; onChanged(); return this; } private long hash_ ; /** * uint64 hash = 3 [(.gogoproto.jsontag) = "hash"]; * @return The hash. */ public long getHash() { return hash_; } /** * uint64 hash = 3 [(.gogoproto.jsontag) = "hash"]; * @param value The hash to set. * @return This builder for chaining. */ public Builder setHash(long value) { hash_ = value; onChanged(); return this; } /** * uint64 hash = 3 [(.gogoproto.jsontag) = "hash"]; * @return This builder for chaining. */ public Builder clearHash() { hash_ = 0L; 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:logproto.Sample) } // @@protoc_insertion_point(class_scope:logproto.Sample) private static final logproto.Logproto.Sample DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.Sample(); } public static logproto.Logproto.Sample getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Sample parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Sample(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.Sample getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SeriesOrBuilder extends // @@protoc_insertion_point(interface_extends:logproto.Series) com.google.protobuf.MessageOrBuilder { /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @return The labels. */ java.lang.String getLabels(); /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @return The bytes for labels. */ com.google.protobuf.ByteString getLabelsBytes(); /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ java.util.List getSamplesList(); /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ logproto.Logproto.Sample getSamples(int index); /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ int getSamplesCount(); /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ java.util.List getSamplesOrBuilderList(); /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ logproto.Logproto.SampleOrBuilder getSamplesOrBuilder( int index); } /** * Protobuf type {@code logproto.Series} */ public static final class Series extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.Series) SeriesOrBuilder { private static final long serialVersionUID = 0L; // Use Series.newBuilder() to construct. private Series(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Series() { labels_ = ""; samples_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Series(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Series( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); labels_ = s; break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { samples_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } samples_.add( input.readMessage(logproto.Logproto.Sample.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { samples_ = java.util.Collections.unmodifiableList(samples_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_Series_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_Series_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.Series.class, logproto.Logproto.Series.Builder.class); } public static final int LABELS_FIELD_NUMBER = 1; private volatile java.lang.Object labels_; /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @return The labels. */ public java.lang.String getLabels() { java.lang.Object ref = labels_; 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(); labels_ = s; return s; } } /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @return The bytes for labels. */ public com.google.protobuf.ByteString getLabelsBytes() { java.lang.Object ref = labels_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); labels_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SAMPLES_FIELD_NUMBER = 2; private java.util.List samples_; /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public java.util.List getSamplesList() { return samples_; } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public java.util.List getSamplesOrBuilderList() { return samples_; } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public int getSamplesCount() { return samples_.size(); } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public logproto.Logproto.Sample getSamples(int index) { return samples_.get(index); } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public logproto.Logproto.SampleOrBuilder getSamplesOrBuilder( int index) { return samples_.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 (!getLabelsBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, labels_); } for (int i = 0; i < samples_.size(); i++) { output.writeMessage(2, samples_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getLabelsBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, labels_); } for (int i = 0; i < samples_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, samples_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.Series)) { return super.equals(obj); } logproto.Logproto.Series other = (logproto.Logproto.Series) obj; if (!getLabels() .equals(other.getLabels())) return false; if (!getSamplesList() .equals(other.getSamplesList())) return false; if (!unknownFields.equals(other.unknownFields)) 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) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabels().hashCode(); if (getSamplesCount() > 0) { hash = (37 * hash) + SAMPLES_FIELD_NUMBER; hash = (53 * hash) + getSamplesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.Series parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.Series parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.Series parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.Series parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.Series parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.Series parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.Series parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.Series 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 logproto.Logproto.Series parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.Series 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 logproto.Logproto.Series parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.Series 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(logproto.Logproto.Series 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 logproto.Series} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.Series) logproto.Logproto.SeriesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_Series_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_Series_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.Series.class, logproto.Logproto.Series.Builder.class); } // Construct using logproto.Logproto.Series.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSamplesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); labels_ = ""; if (samplesBuilder_ == null) { samples_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { samplesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_Series_descriptor; } @java.lang.Override public logproto.Logproto.Series getDefaultInstanceForType() { return logproto.Logproto.Series.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.Series build() { logproto.Logproto.Series result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.Series buildPartial() { logproto.Logproto.Series result = new logproto.Logproto.Series(this); int from_bitField0_ = bitField0_; result.labels_ = labels_; if (samplesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { samples_ = java.util.Collections.unmodifiableList(samples_); bitField0_ = (bitField0_ & ~0x00000001); } result.samples_ = samples_; } else { result.samples_ = samplesBuilder_.build(); } onBuilt(); return result; } @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 logproto.Logproto.Series) { return mergeFrom((logproto.Logproto.Series)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.Series other) { if (other == logproto.Logproto.Series.getDefaultInstance()) return this; if (!other.getLabels().isEmpty()) { labels_ = other.labels_; onChanged(); } if (samplesBuilder_ == null) { if (!other.samples_.isEmpty()) { if (samples_.isEmpty()) { samples_ = other.samples_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSamplesIsMutable(); samples_.addAll(other.samples_); } onChanged(); } } else { if (!other.samples_.isEmpty()) { if (samplesBuilder_.isEmpty()) { samplesBuilder_.dispose(); samplesBuilder_ = null; samples_ = other.samples_; bitField0_ = (bitField0_ & ~0x00000001); samplesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSamplesFieldBuilder() : null; } else { samplesBuilder_.addAllMessages(other.samples_); } } } this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.Series parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.Series) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object labels_ = ""; /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @return The labels. */ public java.lang.String getLabels() { java.lang.Object ref = labels_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); labels_ = s; return s; } else { return (java.lang.String) ref; } } /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @return The bytes for labels. */ public com.google.protobuf.ByteString getLabelsBytes() { java.lang.Object ref = labels_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); labels_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @param value The labels to set. * @return This builder for chaining. */ public Builder setLabels( java.lang.String value) { if (value == null) { throw new NullPointerException(); } labels_ = value; onChanged(); return this; } /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @return This builder for chaining. */ public Builder clearLabels() { labels_ = getDefaultInstance().getLabels(); onChanged(); return this; } /** * string labels = 1 [(.gogoproto.jsontag) = "labels"]; * @param value The bytes for labels to set. * @return This builder for chaining. */ public Builder setLabelsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); labels_ = value; onChanged(); return this; } private java.util.List samples_ = java.util.Collections.emptyList(); private void ensureSamplesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { samples_ = new java.util.ArrayList(samples_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.Sample, logproto.Logproto.Sample.Builder, logproto.Logproto.SampleOrBuilder> samplesBuilder_; /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public java.util.List getSamplesList() { if (samplesBuilder_ == null) { return java.util.Collections.unmodifiableList(samples_); } else { return samplesBuilder_.getMessageList(); } } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public int getSamplesCount() { if (samplesBuilder_ == null) { return samples_.size(); } else { return samplesBuilder_.getCount(); } } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public logproto.Logproto.Sample getSamples(int index) { if (samplesBuilder_ == null) { return samples_.get(index); } else { return samplesBuilder_.getMessage(index); } } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public Builder setSamples( int index, logproto.Logproto.Sample value) { if (samplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSamplesIsMutable(); samples_.set(index, value); onChanged(); } else { samplesBuilder_.setMessage(index, value); } return this; } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public Builder setSamples( int index, logproto.Logproto.Sample.Builder builderForValue) { if (samplesBuilder_ == null) { ensureSamplesIsMutable(); samples_.set(index, builderForValue.build()); onChanged(); } else { samplesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public Builder addSamples(logproto.Logproto.Sample value) { if (samplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSamplesIsMutable(); samples_.add(value); onChanged(); } else { samplesBuilder_.addMessage(value); } return this; } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public Builder addSamples( int index, logproto.Logproto.Sample value) { if (samplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSamplesIsMutable(); samples_.add(index, value); onChanged(); } else { samplesBuilder_.addMessage(index, value); } return this; } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public Builder addSamples( logproto.Logproto.Sample.Builder builderForValue) { if (samplesBuilder_ == null) { ensureSamplesIsMutable(); samples_.add(builderForValue.build()); onChanged(); } else { samplesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public Builder addSamples( int index, logproto.Logproto.Sample.Builder builderForValue) { if (samplesBuilder_ == null) { ensureSamplesIsMutable(); samples_.add(index, builderForValue.build()); onChanged(); } else { samplesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public Builder addAllSamples( java.lang.Iterable values) { if (samplesBuilder_ == null) { ensureSamplesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, samples_); onChanged(); } else { samplesBuilder_.addAllMessages(values); } return this; } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public Builder clearSamples() { if (samplesBuilder_ == null) { samples_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { samplesBuilder_.clear(); } return this; } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public Builder removeSamples(int index) { if (samplesBuilder_ == null) { ensureSamplesIsMutable(); samples_.remove(index); onChanged(); } else { samplesBuilder_.remove(index); } return this; } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public logproto.Logproto.Sample.Builder getSamplesBuilder( int index) { return getSamplesFieldBuilder().getBuilder(index); } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public logproto.Logproto.SampleOrBuilder getSamplesOrBuilder( int index) { if (samplesBuilder_ == null) { return samples_.get(index); } else { return samplesBuilder_.getMessageOrBuilder(index); } } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public java.util.List getSamplesOrBuilderList() { if (samplesBuilder_ != null) { return samplesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(samples_); } } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public logproto.Logproto.Sample.Builder addSamplesBuilder() { return getSamplesFieldBuilder().addBuilder( logproto.Logproto.Sample.getDefaultInstance()); } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public logproto.Logproto.Sample.Builder addSamplesBuilder( int index) { return getSamplesFieldBuilder().addBuilder( index, logproto.Logproto.Sample.getDefaultInstance()); } /** * repeated .logproto.Sample samples = 2 [(.gogoproto.nullable) = false, (.gogoproto.jsontag) = "samples"]; */ public java.util.List getSamplesBuilderList() { return getSamplesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.Sample, logproto.Logproto.Sample.Builder, logproto.Logproto.SampleOrBuilder> getSamplesFieldBuilder() { if (samplesBuilder_ == null) { samplesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.Sample, logproto.Logproto.Sample.Builder, logproto.Logproto.SampleOrBuilder>( samples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); samples_ = null; } return samplesBuilder_; } @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:logproto.Series) } // @@protoc_insertion_point(class_scope:logproto.Series) private static final logproto.Logproto.Series DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.Series(); } public static logproto.Logproto.Series getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Series parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Series(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.Series getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TailRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:logproto.TailRequest) com.google.protobuf.MessageOrBuilder { /** * string query = 1; * @return The query. */ java.lang.String getQuery(); /** * string query = 1; * @return The bytes for query. */ com.google.protobuf.ByteString getQueryBytes(); /** * uint32 delayFor = 3; * @return The delayFor. */ int getDelayFor(); /** * uint32 limit = 4; * @return The limit. */ int getLimit(); /** * .google.protobuf.Timestamp start = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the start field is set. */ boolean hasStart(); /** * .google.protobuf.Timestamp start = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The start. */ com.google.protobuf.Timestamp getStart(); /** * .google.protobuf.Timestamp start = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ com.google.protobuf.TimestampOrBuilder getStartOrBuilder(); } /** * Protobuf type {@code logproto.TailRequest} */ public static final class TailRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.TailRequest) TailRequestOrBuilder { private static final long serialVersionUID = 0L; // Use TailRequest.newBuilder() to construct. private TailRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TailRequest() { query_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TailRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TailRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); query_ = s; break; } case 24: { delayFor_ = input.readUInt32(); break; } case 32: { limit_ = input.readUInt32(); break; } case 42: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (start_ != null) { subBuilder = start_.toBuilder(); } start_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(start_); start_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_TailRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_TailRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.TailRequest.class, logproto.Logproto.TailRequest.Builder.class); } public static final int QUERY_FIELD_NUMBER = 1; private volatile java.lang.Object query_; /** * string query = 1; * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; 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(); query_ = s; return s; } } /** * string query = 1; * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); query_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DELAYFOR_FIELD_NUMBER = 3; private int delayFor_; /** * uint32 delayFor = 3; * @return The delayFor. */ public int getDelayFor() { return delayFor_; } public static final int LIMIT_FIELD_NUMBER = 4; private int limit_; /** * uint32 limit = 4; * @return The limit. */ public int getLimit() { return limit_; } public static final int START_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp start_; /** * .google.protobuf.Timestamp start = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the start field is set. */ public boolean hasStart() { return start_ != null; } /** * .google.protobuf.Timestamp start = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The start. */ public com.google.protobuf.Timestamp getStart() { return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_; } /** * .google.protobuf.Timestamp start = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() { return getStart(); } 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 (!getQueryBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); } if (delayFor_ != 0) { output.writeUInt32(3, delayFor_); } if (limit_ != 0) { output.writeUInt32(4, limit_); } if (start_ != null) { output.writeMessage(5, getStart()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getQueryBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); } if (delayFor_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, delayFor_); } if (limit_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, limit_); } if (start_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getStart()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.TailRequest)) { return super.equals(obj); } logproto.Logproto.TailRequest other = (logproto.Logproto.TailRequest) obj; if (!getQuery() .equals(other.getQuery())) return false; if (getDelayFor() != other.getDelayFor()) return false; if (getLimit() != other.getLimit()) return false; if (hasStart() != other.hasStart()) return false; if (hasStart()) { if (!getStart() .equals(other.getStart())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); hash = (37 * hash) + DELAYFOR_FIELD_NUMBER; hash = (53 * hash) + getDelayFor(); hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + getLimit(); if (hasStart()) { hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + getStart().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.TailRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TailRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TailRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TailRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TailRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TailRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TailRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.TailRequest 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 logproto.Logproto.TailRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.TailRequest 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 logproto.Logproto.TailRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.TailRequest 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(logproto.Logproto.TailRequest 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 logproto.TailRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.TailRequest) logproto.Logproto.TailRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_TailRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_TailRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.TailRequest.class, logproto.Logproto.TailRequest.Builder.class); } // Construct using logproto.Logproto.TailRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); query_ = ""; delayFor_ = 0; limit_ = 0; if (startBuilder_ == null) { start_ = null; } else { start_ = null; startBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_TailRequest_descriptor; } @java.lang.Override public logproto.Logproto.TailRequest getDefaultInstanceForType() { return logproto.Logproto.TailRequest.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.TailRequest build() { logproto.Logproto.TailRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.TailRequest buildPartial() { logproto.Logproto.TailRequest result = new logproto.Logproto.TailRequest(this); result.query_ = query_; result.delayFor_ = delayFor_; result.limit_ = limit_; if (startBuilder_ == null) { result.start_ = start_; } else { result.start_ = startBuilder_.build(); } onBuilt(); return result; } @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 logproto.Logproto.TailRequest) { return mergeFrom((logproto.Logproto.TailRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.TailRequest other) { if (other == logproto.Logproto.TailRequest.getDefaultInstance()) return this; if (!other.getQuery().isEmpty()) { query_ = other.query_; onChanged(); } if (other.getDelayFor() != 0) { setDelayFor(other.getDelayFor()); } if (other.getLimit() != 0) { setLimit(other.getLimit()); } if (other.hasStart()) { mergeStart(other.getStart()); } this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.TailRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.TailRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object query_ = ""; /** * string query = 1; * @return The query. */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); query_ = s; return s; } else { return (java.lang.String) ref; } } /** * string query = 1; * @return The bytes for query. */ public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); query_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string query = 1; * @param value The query to set. * @return This builder for chaining. */ public Builder setQuery( java.lang.String value) { if (value == null) { throw new NullPointerException(); } query_ = value; onChanged(); return this; } /** * string query = 1; * @return This builder for chaining. */ public Builder clearQuery() { query_ = getDefaultInstance().getQuery(); onChanged(); return this; } /** * string query = 1; * @param value The bytes for query to set. * @return This builder for chaining. */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); query_ = value; onChanged(); return this; } private int delayFor_ ; /** * uint32 delayFor = 3; * @return The delayFor. */ public int getDelayFor() { return delayFor_; } /** * uint32 delayFor = 3; * @param value The delayFor to set. * @return This builder for chaining. */ public Builder setDelayFor(int value) { delayFor_ = value; onChanged(); return this; } /** * uint32 delayFor = 3; * @return This builder for chaining. */ public Builder clearDelayFor() { delayFor_ = 0; onChanged(); return this; } private int limit_ ; /** * uint32 limit = 4; * @return The limit. */ public int getLimit() { return limit_; } /** * uint32 limit = 4; * @param value The limit to set. * @return This builder for chaining. */ public Builder setLimit(int value) { limit_ = value; onChanged(); return this; } /** * uint32 limit = 4; * @return This builder for chaining. */ public Builder clearLimit() { limit_ = 0; onChanged(); return this; } private com.google.protobuf.Timestamp start_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startBuilder_; /** * .google.protobuf.Timestamp start = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the start field is set. */ public boolean hasStart() { return startBuilder_ != null || start_ != null; } /** * .google.protobuf.Timestamp start = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The start. */ public com.google.protobuf.Timestamp getStart() { if (startBuilder_ == null) { return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_; } else { return startBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp start = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setStart(com.google.protobuf.Timestamp value) { if (startBuilder_ == null) { if (value == null) { throw new NullPointerException(); } start_ = value; onChanged(); } else { startBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp start = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setStart( com.google.protobuf.Timestamp.Builder builderForValue) { if (startBuilder_ == null) { start_ = builderForValue.build(); onChanged(); } else { startBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp start = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder mergeStart(com.google.protobuf.Timestamp value) { if (startBuilder_ == null) { if (start_ != null) { start_ = com.google.protobuf.Timestamp.newBuilder(start_).mergeFrom(value).buildPartial(); } else { start_ = value; } onChanged(); } else { startBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp start = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder clearStart() { if (startBuilder_ == null) { start_ = null; onChanged(); } else { start_ = null; startBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp start = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getStartBuilder() { onChanged(); return getStartFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp start = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() { if (startBuilder_ != null) { return startBuilder_.getMessageOrBuilder(); } else { return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_; } } /** * .google.protobuf.Timestamp start = 5 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartFieldBuilder() { if (startBuilder_ == null) { startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStart(), getParentForChildren(), isClean()); start_ = null; } return startBuilder_; } @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:logproto.TailRequest) } // @@protoc_insertion_point(class_scope:logproto.TailRequest) private static final logproto.Logproto.TailRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.TailRequest(); } public static logproto.Logproto.TailRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TailRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TailRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.TailRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TailResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:logproto.TailResponse) com.google.protobuf.MessageOrBuilder { /** * .logproto.StreamAdapter stream = 1 [(.gogoproto.customtype) = "Stream"]; * @return Whether the stream field is set. */ boolean hasStream(); /** * .logproto.StreamAdapter stream = 1 [(.gogoproto.customtype) = "Stream"]; * @return The stream. */ logproto.Logproto.StreamAdapter getStream(); /** * .logproto.StreamAdapter stream = 1 [(.gogoproto.customtype) = "Stream"]; */ logproto.Logproto.StreamAdapterOrBuilder getStreamOrBuilder(); /** * repeated .logproto.DroppedStream droppedStreams = 2; */ java.util.List getDroppedStreamsList(); /** * repeated .logproto.DroppedStream droppedStreams = 2; */ logproto.Logproto.DroppedStream getDroppedStreams(int index); /** * repeated .logproto.DroppedStream droppedStreams = 2; */ int getDroppedStreamsCount(); /** * repeated .logproto.DroppedStream droppedStreams = 2; */ java.util.List getDroppedStreamsOrBuilderList(); /** * repeated .logproto.DroppedStream droppedStreams = 2; */ logproto.Logproto.DroppedStreamOrBuilder getDroppedStreamsOrBuilder( int index); } /** * Protobuf type {@code logproto.TailResponse} */ public static final class TailResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.TailResponse) TailResponseOrBuilder { private static final long serialVersionUID = 0L; // Use TailResponse.newBuilder() to construct. private TailResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TailResponse() { droppedStreams_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TailResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TailResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { logproto.Logproto.StreamAdapter.Builder subBuilder = null; if (stream_ != null) { subBuilder = stream_.toBuilder(); } stream_ = input.readMessage(logproto.Logproto.StreamAdapter.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(stream_); stream_ = subBuilder.buildPartial(); } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { droppedStreams_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } droppedStreams_.add( input.readMessage(logproto.Logproto.DroppedStream.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { droppedStreams_ = java.util.Collections.unmodifiableList(droppedStreams_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_TailResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_TailResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.TailResponse.class, logproto.Logproto.TailResponse.Builder.class); } public static final int STREAM_FIELD_NUMBER = 1; private logproto.Logproto.StreamAdapter stream_; /** * .logproto.StreamAdapter stream = 1 [(.gogoproto.customtype) = "Stream"]; * @return Whether the stream field is set. */ public boolean hasStream() { return stream_ != null; } /** * .logproto.StreamAdapter stream = 1 [(.gogoproto.customtype) = "Stream"]; * @return The stream. */ public logproto.Logproto.StreamAdapter getStream() { return stream_ == null ? logproto.Logproto.StreamAdapter.getDefaultInstance() : stream_; } /** * .logproto.StreamAdapter stream = 1 [(.gogoproto.customtype) = "Stream"]; */ public logproto.Logproto.StreamAdapterOrBuilder getStreamOrBuilder() { return getStream(); } public static final int DROPPEDSTREAMS_FIELD_NUMBER = 2; private java.util.List droppedStreams_; /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public java.util.List getDroppedStreamsList() { return droppedStreams_; } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public java.util.List getDroppedStreamsOrBuilderList() { return droppedStreams_; } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public int getDroppedStreamsCount() { return droppedStreams_.size(); } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public logproto.Logproto.DroppedStream getDroppedStreams(int index) { return droppedStreams_.get(index); } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public logproto.Logproto.DroppedStreamOrBuilder getDroppedStreamsOrBuilder( int index) { return droppedStreams_.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 (stream_ != null) { output.writeMessage(1, getStream()); } for (int i = 0; i < droppedStreams_.size(); i++) { output.writeMessage(2, droppedStreams_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (stream_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStream()); } for (int i = 0; i < droppedStreams_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, droppedStreams_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.TailResponse)) { return super.equals(obj); } logproto.Logproto.TailResponse other = (logproto.Logproto.TailResponse) obj; if (hasStream() != other.hasStream()) return false; if (hasStream()) { if (!getStream() .equals(other.getStream())) return false; } if (!getDroppedStreamsList() .equals(other.getDroppedStreamsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStream()) { hash = (37 * hash) + STREAM_FIELD_NUMBER; hash = (53 * hash) + getStream().hashCode(); } if (getDroppedStreamsCount() > 0) { hash = (37 * hash) + DROPPEDSTREAMS_FIELD_NUMBER; hash = (53 * hash) + getDroppedStreamsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.TailResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TailResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TailResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TailResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TailResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TailResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TailResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.TailResponse 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 logproto.Logproto.TailResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.TailResponse 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 logproto.Logproto.TailResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.TailResponse 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(logproto.Logproto.TailResponse 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 logproto.TailResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.TailResponse) logproto.Logproto.TailResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_TailResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_TailResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.TailResponse.class, logproto.Logproto.TailResponse.Builder.class); } // Construct using logproto.Logproto.TailResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDroppedStreamsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (streamBuilder_ == null) { stream_ = null; } else { stream_ = null; streamBuilder_ = null; } if (droppedStreamsBuilder_ == null) { droppedStreams_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { droppedStreamsBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_TailResponse_descriptor; } @java.lang.Override public logproto.Logproto.TailResponse getDefaultInstanceForType() { return logproto.Logproto.TailResponse.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.TailResponse build() { logproto.Logproto.TailResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.TailResponse buildPartial() { logproto.Logproto.TailResponse result = new logproto.Logproto.TailResponse(this); int from_bitField0_ = bitField0_; if (streamBuilder_ == null) { result.stream_ = stream_; } else { result.stream_ = streamBuilder_.build(); } if (droppedStreamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { droppedStreams_ = java.util.Collections.unmodifiableList(droppedStreams_); bitField0_ = (bitField0_ & ~0x00000001); } result.droppedStreams_ = droppedStreams_; } else { result.droppedStreams_ = droppedStreamsBuilder_.build(); } onBuilt(); return result; } @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 logproto.Logproto.TailResponse) { return mergeFrom((logproto.Logproto.TailResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.TailResponse other) { if (other == logproto.Logproto.TailResponse.getDefaultInstance()) return this; if (other.hasStream()) { mergeStream(other.getStream()); } if (droppedStreamsBuilder_ == null) { if (!other.droppedStreams_.isEmpty()) { if (droppedStreams_.isEmpty()) { droppedStreams_ = other.droppedStreams_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDroppedStreamsIsMutable(); droppedStreams_.addAll(other.droppedStreams_); } onChanged(); } } else { if (!other.droppedStreams_.isEmpty()) { if (droppedStreamsBuilder_.isEmpty()) { droppedStreamsBuilder_.dispose(); droppedStreamsBuilder_ = null; droppedStreams_ = other.droppedStreams_; bitField0_ = (bitField0_ & ~0x00000001); droppedStreamsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDroppedStreamsFieldBuilder() : null; } else { droppedStreamsBuilder_.addAllMessages(other.droppedStreams_); } } } this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.TailResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.TailResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private logproto.Logproto.StreamAdapter stream_; private com.google.protobuf.SingleFieldBuilderV3< logproto.Logproto.StreamAdapter, logproto.Logproto.StreamAdapter.Builder, logproto.Logproto.StreamAdapterOrBuilder> streamBuilder_; /** * .logproto.StreamAdapter stream = 1 [(.gogoproto.customtype) = "Stream"]; * @return Whether the stream field is set. */ public boolean hasStream() { return streamBuilder_ != null || stream_ != null; } /** * .logproto.StreamAdapter stream = 1 [(.gogoproto.customtype) = "Stream"]; * @return The stream. */ public logproto.Logproto.StreamAdapter getStream() { if (streamBuilder_ == null) { return stream_ == null ? logproto.Logproto.StreamAdapter.getDefaultInstance() : stream_; } else { return streamBuilder_.getMessage(); } } /** * .logproto.StreamAdapter stream = 1 [(.gogoproto.customtype) = "Stream"]; */ public Builder setStream(logproto.Logproto.StreamAdapter value) { if (streamBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stream_ = value; onChanged(); } else { streamBuilder_.setMessage(value); } return this; } /** * .logproto.StreamAdapter stream = 1 [(.gogoproto.customtype) = "Stream"]; */ public Builder setStream( logproto.Logproto.StreamAdapter.Builder builderForValue) { if (streamBuilder_ == null) { stream_ = builderForValue.build(); onChanged(); } else { streamBuilder_.setMessage(builderForValue.build()); } return this; } /** * .logproto.StreamAdapter stream = 1 [(.gogoproto.customtype) = "Stream"]; */ public Builder mergeStream(logproto.Logproto.StreamAdapter value) { if (streamBuilder_ == null) { if (stream_ != null) { stream_ = logproto.Logproto.StreamAdapter.newBuilder(stream_).mergeFrom(value).buildPartial(); } else { stream_ = value; } onChanged(); } else { streamBuilder_.mergeFrom(value); } return this; } /** * .logproto.StreamAdapter stream = 1 [(.gogoproto.customtype) = "Stream"]; */ public Builder clearStream() { if (streamBuilder_ == null) { stream_ = null; onChanged(); } else { stream_ = null; streamBuilder_ = null; } return this; } /** * .logproto.StreamAdapter stream = 1 [(.gogoproto.customtype) = "Stream"]; */ public logproto.Logproto.StreamAdapter.Builder getStreamBuilder() { onChanged(); return getStreamFieldBuilder().getBuilder(); } /** * .logproto.StreamAdapter stream = 1 [(.gogoproto.customtype) = "Stream"]; */ public logproto.Logproto.StreamAdapterOrBuilder getStreamOrBuilder() { if (streamBuilder_ != null) { return streamBuilder_.getMessageOrBuilder(); } else { return stream_ == null ? logproto.Logproto.StreamAdapter.getDefaultInstance() : stream_; } } /** * .logproto.StreamAdapter stream = 1 [(.gogoproto.customtype) = "Stream"]; */ private com.google.protobuf.SingleFieldBuilderV3< logproto.Logproto.StreamAdapter, logproto.Logproto.StreamAdapter.Builder, logproto.Logproto.StreamAdapterOrBuilder> getStreamFieldBuilder() { if (streamBuilder_ == null) { streamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< logproto.Logproto.StreamAdapter, logproto.Logproto.StreamAdapter.Builder, logproto.Logproto.StreamAdapterOrBuilder>( getStream(), getParentForChildren(), isClean()); stream_ = null; } return streamBuilder_; } private java.util.List droppedStreams_ = java.util.Collections.emptyList(); private void ensureDroppedStreamsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { droppedStreams_ = new java.util.ArrayList(droppedStreams_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.DroppedStream, logproto.Logproto.DroppedStream.Builder, logproto.Logproto.DroppedStreamOrBuilder> droppedStreamsBuilder_; /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public java.util.List getDroppedStreamsList() { if (droppedStreamsBuilder_ == null) { return java.util.Collections.unmodifiableList(droppedStreams_); } else { return droppedStreamsBuilder_.getMessageList(); } } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public int getDroppedStreamsCount() { if (droppedStreamsBuilder_ == null) { return droppedStreams_.size(); } else { return droppedStreamsBuilder_.getCount(); } } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public logproto.Logproto.DroppedStream getDroppedStreams(int index) { if (droppedStreamsBuilder_ == null) { return droppedStreams_.get(index); } else { return droppedStreamsBuilder_.getMessage(index); } } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public Builder setDroppedStreams( int index, logproto.Logproto.DroppedStream value) { if (droppedStreamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDroppedStreamsIsMutable(); droppedStreams_.set(index, value); onChanged(); } else { droppedStreamsBuilder_.setMessage(index, value); } return this; } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public Builder setDroppedStreams( int index, logproto.Logproto.DroppedStream.Builder builderForValue) { if (droppedStreamsBuilder_ == null) { ensureDroppedStreamsIsMutable(); droppedStreams_.set(index, builderForValue.build()); onChanged(); } else { droppedStreamsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public Builder addDroppedStreams(logproto.Logproto.DroppedStream value) { if (droppedStreamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDroppedStreamsIsMutable(); droppedStreams_.add(value); onChanged(); } else { droppedStreamsBuilder_.addMessage(value); } return this; } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public Builder addDroppedStreams( int index, logproto.Logproto.DroppedStream value) { if (droppedStreamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDroppedStreamsIsMutable(); droppedStreams_.add(index, value); onChanged(); } else { droppedStreamsBuilder_.addMessage(index, value); } return this; } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public Builder addDroppedStreams( logproto.Logproto.DroppedStream.Builder builderForValue) { if (droppedStreamsBuilder_ == null) { ensureDroppedStreamsIsMutable(); droppedStreams_.add(builderForValue.build()); onChanged(); } else { droppedStreamsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public Builder addDroppedStreams( int index, logproto.Logproto.DroppedStream.Builder builderForValue) { if (droppedStreamsBuilder_ == null) { ensureDroppedStreamsIsMutable(); droppedStreams_.add(index, builderForValue.build()); onChanged(); } else { droppedStreamsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public Builder addAllDroppedStreams( java.lang.Iterable values) { if (droppedStreamsBuilder_ == null) { ensureDroppedStreamsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, droppedStreams_); onChanged(); } else { droppedStreamsBuilder_.addAllMessages(values); } return this; } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public Builder clearDroppedStreams() { if (droppedStreamsBuilder_ == null) { droppedStreams_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { droppedStreamsBuilder_.clear(); } return this; } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public Builder removeDroppedStreams(int index) { if (droppedStreamsBuilder_ == null) { ensureDroppedStreamsIsMutable(); droppedStreams_.remove(index); onChanged(); } else { droppedStreamsBuilder_.remove(index); } return this; } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public logproto.Logproto.DroppedStream.Builder getDroppedStreamsBuilder( int index) { return getDroppedStreamsFieldBuilder().getBuilder(index); } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public logproto.Logproto.DroppedStreamOrBuilder getDroppedStreamsOrBuilder( int index) { if (droppedStreamsBuilder_ == null) { return droppedStreams_.get(index); } else { return droppedStreamsBuilder_.getMessageOrBuilder(index); } } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public java.util.List getDroppedStreamsOrBuilderList() { if (droppedStreamsBuilder_ != null) { return droppedStreamsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(droppedStreams_); } } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public logproto.Logproto.DroppedStream.Builder addDroppedStreamsBuilder() { return getDroppedStreamsFieldBuilder().addBuilder( logproto.Logproto.DroppedStream.getDefaultInstance()); } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public logproto.Logproto.DroppedStream.Builder addDroppedStreamsBuilder( int index) { return getDroppedStreamsFieldBuilder().addBuilder( index, logproto.Logproto.DroppedStream.getDefaultInstance()); } /** * repeated .logproto.DroppedStream droppedStreams = 2; */ public java.util.List getDroppedStreamsBuilderList() { return getDroppedStreamsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.DroppedStream, logproto.Logproto.DroppedStream.Builder, logproto.Logproto.DroppedStreamOrBuilder> getDroppedStreamsFieldBuilder() { if (droppedStreamsBuilder_ == null) { droppedStreamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.DroppedStream, logproto.Logproto.DroppedStream.Builder, logproto.Logproto.DroppedStreamOrBuilder>( droppedStreams_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); droppedStreams_ = null; } return droppedStreamsBuilder_; } @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:logproto.TailResponse) } // @@protoc_insertion_point(class_scope:logproto.TailResponse) private static final logproto.Logproto.TailResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.TailResponse(); } public static logproto.Logproto.TailResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TailResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TailResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.TailResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SeriesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:logproto.SeriesRequest) com.google.protobuf.MessageOrBuilder { /** * .google.protobuf.Timestamp start = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the start field is set. */ boolean hasStart(); /** * .google.protobuf.Timestamp start = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The start. */ com.google.protobuf.Timestamp getStart(); /** * .google.protobuf.Timestamp start = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ com.google.protobuf.TimestampOrBuilder getStartOrBuilder(); /** * .google.protobuf.Timestamp end = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the end field is set. */ boolean hasEnd(); /** * .google.protobuf.Timestamp end = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The end. */ com.google.protobuf.Timestamp getEnd(); /** * .google.protobuf.Timestamp end = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ com.google.protobuf.TimestampOrBuilder getEndOrBuilder(); /** * repeated string groups = 3; * @return A list containing the groups. */ java.util.List getGroupsList(); /** * repeated string groups = 3; * @return The count of groups. */ int getGroupsCount(); /** * repeated string groups = 3; * @param index The index of the element to return. * @return The groups at the given index. */ java.lang.String getGroups(int index); /** * repeated string groups = 3; * @param index The index of the value to return. * @return The bytes of the groups at the given index. */ com.google.protobuf.ByteString getGroupsBytes(int index); } /** * Protobuf type {@code logproto.SeriesRequest} */ public static final class SeriesRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.SeriesRequest) SeriesRequestOrBuilder { private static final long serialVersionUID = 0L; // Use SeriesRequest.newBuilder() to construct. private SeriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SeriesRequest() { groups_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SeriesRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SeriesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (start_ != null) { subBuilder = start_.toBuilder(); } start_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(start_); start_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (end_ != null) { subBuilder = end_.toBuilder(); } end_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(end_); end_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { groups_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } groups_.add(s); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { groups_ = groups_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_SeriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_SeriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.SeriesRequest.class, logproto.Logproto.SeriesRequest.Builder.class); } public static final int START_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp start_; /** * .google.protobuf.Timestamp start = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the start field is set. */ public boolean hasStart() { return start_ != null; } /** * .google.protobuf.Timestamp start = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The start. */ public com.google.protobuf.Timestamp getStart() { return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_; } /** * .google.protobuf.Timestamp start = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() { return getStart(); } public static final int END_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp end_; /** * .google.protobuf.Timestamp end = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the end field is set. */ public boolean hasEnd() { return end_ != null; } /** * .google.protobuf.Timestamp end = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The end. */ public com.google.protobuf.Timestamp getEnd() { return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_; } /** * .google.protobuf.Timestamp end = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() { return getEnd(); } public static final int GROUPS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList groups_; /** * repeated string groups = 3; * @return A list containing the groups. */ public com.google.protobuf.ProtocolStringList getGroupsList() { return groups_; } /** * repeated string groups = 3; * @return The count of groups. */ public int getGroupsCount() { return groups_.size(); } /** * repeated string groups = 3; * @param index The index of the element to return. * @return The groups at the given index. */ public java.lang.String getGroups(int index) { return groups_.get(index); } /** * repeated string groups = 3; * @param index The index of the value to return. * @return The bytes of the groups at the given index. */ public com.google.protobuf.ByteString getGroupsBytes(int index) { return groups_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (start_ != null) { output.writeMessage(1, getStart()); } if (end_ != null) { output.writeMessage(2, getEnd()); } for (int i = 0; i < groups_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, groups_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (start_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStart()); } if (end_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getEnd()); } { int dataSize = 0; for (int i = 0; i < groups_.size(); i++) { dataSize += computeStringSizeNoTag(groups_.getRaw(i)); } size += dataSize; size += 1 * getGroupsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.SeriesRequest)) { return super.equals(obj); } logproto.Logproto.SeriesRequest other = (logproto.Logproto.SeriesRequest) obj; if (hasStart() != other.hasStart()) return false; if (hasStart()) { if (!getStart() .equals(other.getStart())) return false; } if (hasEnd() != other.hasEnd()) return false; if (hasEnd()) { if (!getEnd() .equals(other.getEnd())) return false; } if (!getGroupsList() .equals(other.getGroupsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStart()) { hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + getStart().hashCode(); } if (hasEnd()) { hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + getEnd().hashCode(); } if (getGroupsCount() > 0) { hash = (37 * hash) + GROUPS_FIELD_NUMBER; hash = (53 * hash) + getGroupsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.SeriesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.SeriesRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.SeriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.SeriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.SeriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.SeriesRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.SeriesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.SeriesRequest 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 logproto.Logproto.SeriesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.SeriesRequest 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 logproto.Logproto.SeriesRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.SeriesRequest 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(logproto.Logproto.SeriesRequest 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 logproto.SeriesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.SeriesRequest) logproto.Logproto.SeriesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_SeriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_SeriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.SeriesRequest.class, logproto.Logproto.SeriesRequest.Builder.class); } // Construct using logproto.Logproto.SeriesRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (startBuilder_ == null) { start_ = null; } else { start_ = null; startBuilder_ = null; } if (endBuilder_ == null) { end_ = null; } else { end_ = null; endBuilder_ = null; } groups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_SeriesRequest_descriptor; } @java.lang.Override public logproto.Logproto.SeriesRequest getDefaultInstanceForType() { return logproto.Logproto.SeriesRequest.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.SeriesRequest build() { logproto.Logproto.SeriesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.SeriesRequest buildPartial() { logproto.Logproto.SeriesRequest result = new logproto.Logproto.SeriesRequest(this); int from_bitField0_ = bitField0_; if (startBuilder_ == null) { result.start_ = start_; } else { result.start_ = startBuilder_.build(); } if (endBuilder_ == null) { result.end_ = end_; } else { result.end_ = endBuilder_.build(); } if (((bitField0_ & 0x00000001) != 0)) { groups_ = groups_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.groups_ = groups_; onBuilt(); return result; } @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 logproto.Logproto.SeriesRequest) { return mergeFrom((logproto.Logproto.SeriesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.SeriesRequest other) { if (other == logproto.Logproto.SeriesRequest.getDefaultInstance()) return this; if (other.hasStart()) { mergeStart(other.getStart()); } if (other.hasEnd()) { mergeEnd(other.getEnd()); } if (!other.groups_.isEmpty()) { if (groups_.isEmpty()) { groups_ = other.groups_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureGroupsIsMutable(); groups_.addAll(other.groups_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.SeriesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.SeriesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.Timestamp start_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startBuilder_; /** * .google.protobuf.Timestamp start = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the start field is set. */ public boolean hasStart() { return startBuilder_ != null || start_ != null; } /** * .google.protobuf.Timestamp start = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The start. */ public com.google.protobuf.Timestamp getStart() { if (startBuilder_ == null) { return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_; } else { return startBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp start = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setStart(com.google.protobuf.Timestamp value) { if (startBuilder_ == null) { if (value == null) { throw new NullPointerException(); } start_ = value; onChanged(); } else { startBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp start = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setStart( com.google.protobuf.Timestamp.Builder builderForValue) { if (startBuilder_ == null) { start_ = builderForValue.build(); onChanged(); } else { startBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp start = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder mergeStart(com.google.protobuf.Timestamp value) { if (startBuilder_ == null) { if (start_ != null) { start_ = com.google.protobuf.Timestamp.newBuilder(start_).mergeFrom(value).buildPartial(); } else { start_ = value; } onChanged(); } else { startBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp start = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder clearStart() { if (startBuilder_ == null) { start_ = null; onChanged(); } else { start_ = null; startBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp start = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getStartBuilder() { onChanged(); return getStartFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp start = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() { if (startBuilder_ != null) { return startBuilder_.getMessageOrBuilder(); } else { return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_; } } /** * .google.protobuf.Timestamp start = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartFieldBuilder() { if (startBuilder_ == null) { startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStart(), getParentForChildren(), isClean()); start_ = null; } return startBuilder_; } private com.google.protobuf.Timestamp end_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endBuilder_; /** * .google.protobuf.Timestamp end = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the end field is set. */ public boolean hasEnd() { return endBuilder_ != null || end_ != null; } /** * .google.protobuf.Timestamp end = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The end. */ public com.google.protobuf.Timestamp getEnd() { if (endBuilder_ == null) { return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_; } else { return endBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp end = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setEnd(com.google.protobuf.Timestamp value) { if (endBuilder_ == null) { if (value == null) { throw new NullPointerException(); } end_ = value; onChanged(); } else { endBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp end = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setEnd( com.google.protobuf.Timestamp.Builder builderForValue) { if (endBuilder_ == null) { end_ = builderForValue.build(); onChanged(); } else { endBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp end = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder mergeEnd(com.google.protobuf.Timestamp value) { if (endBuilder_ == null) { if (end_ != null) { end_ = com.google.protobuf.Timestamp.newBuilder(end_).mergeFrom(value).buildPartial(); } else { end_ = value; } onChanged(); } else { endBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp end = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder clearEnd() { if (endBuilder_ == null) { end_ = null; onChanged(); } else { end_ = null; endBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp end = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getEndBuilder() { onChanged(); return getEndFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp end = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() { if (endBuilder_ != null) { return endBuilder_.getMessageOrBuilder(); } else { return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_; } } /** * .google.protobuf.Timestamp end = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndFieldBuilder() { if (endBuilder_ == null) { endBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getEnd(), getParentForChildren(), isClean()); end_ = null; } return endBuilder_; } private com.google.protobuf.LazyStringList groups_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureGroupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { groups_ = new com.google.protobuf.LazyStringArrayList(groups_); bitField0_ |= 0x00000001; } } /** * repeated string groups = 3; * @return A list containing the groups. */ public com.google.protobuf.ProtocolStringList getGroupsList() { return groups_.getUnmodifiableView(); } /** * repeated string groups = 3; * @return The count of groups. */ public int getGroupsCount() { return groups_.size(); } /** * repeated string groups = 3; * @param index The index of the element to return. * @return The groups at the given index. */ public java.lang.String getGroups(int index) { return groups_.get(index); } /** * repeated string groups = 3; * @param index The index of the value to return. * @return The bytes of the groups at the given index. */ public com.google.protobuf.ByteString getGroupsBytes(int index) { return groups_.getByteString(index); } /** * repeated string groups = 3; * @param index The index to set the value at. * @param value The groups to set. * @return This builder for chaining. */ public Builder setGroups( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.set(index, value); onChanged(); return this; } /** * repeated string groups = 3; * @param value The groups to add. * @return This builder for chaining. */ public Builder addGroups( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureGroupsIsMutable(); groups_.add(value); onChanged(); return this; } /** * repeated string groups = 3; * @param values The groups to add. * @return This builder for chaining. */ public Builder addAllGroups( java.lang.Iterable values) { ensureGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, groups_); onChanged(); return this; } /** * repeated string groups = 3; * @return This builder for chaining. */ public Builder clearGroups() { groups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * repeated string groups = 3; * @param value The bytes of the groups to add. * @return This builder for chaining. */ public Builder addGroupsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureGroupsIsMutable(); groups_.add(value); 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:logproto.SeriesRequest) } // @@protoc_insertion_point(class_scope:logproto.SeriesRequest) private static final logproto.Logproto.SeriesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.SeriesRequest(); } public static logproto.Logproto.SeriesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SeriesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SeriesRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.SeriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SeriesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:logproto.SeriesResponse) com.google.protobuf.MessageOrBuilder { /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ java.util.List getSeriesList(); /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ logproto.Logproto.SeriesIdentifier getSeries(int index); /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ int getSeriesCount(); /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ java.util.List getSeriesOrBuilderList(); /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ logproto.Logproto.SeriesIdentifierOrBuilder getSeriesOrBuilder( int index); } /** * Protobuf type {@code logproto.SeriesResponse} */ public static final class SeriesResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.SeriesResponse) SeriesResponseOrBuilder { private static final long serialVersionUID = 0L; // Use SeriesResponse.newBuilder() to construct. private SeriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SeriesResponse() { series_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SeriesResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SeriesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { series_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } series_.add( input.readMessage(logproto.Logproto.SeriesIdentifier.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { series_ = java.util.Collections.unmodifiableList(series_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_SeriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_SeriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.SeriesResponse.class, logproto.Logproto.SeriesResponse.Builder.class); } public static final int SERIES_FIELD_NUMBER = 1; private java.util.List series_; /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getSeriesList() { return series_; } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getSeriesOrBuilderList() { return series_; } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public int getSeriesCount() { return series_.size(); } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public logproto.Logproto.SeriesIdentifier getSeries(int index) { return series_.get(index); } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public logproto.Logproto.SeriesIdentifierOrBuilder getSeriesOrBuilder( int index) { return series_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < series_.size(); i++) { output.writeMessage(1, series_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < series_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, series_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.SeriesResponse)) { return super.equals(obj); } logproto.Logproto.SeriesResponse other = (logproto.Logproto.SeriesResponse) obj; if (!getSeriesList() .equals(other.getSeriesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getSeriesCount() > 0) { hash = (37 * hash) + SERIES_FIELD_NUMBER; hash = (53 * hash) + getSeriesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.SeriesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.SeriesResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.SeriesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.SeriesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.SeriesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.SeriesResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.SeriesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.SeriesResponse 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 logproto.Logproto.SeriesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.SeriesResponse 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 logproto.Logproto.SeriesResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.SeriesResponse 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(logproto.Logproto.SeriesResponse 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 logproto.SeriesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.SeriesResponse) logproto.Logproto.SeriesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_SeriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_SeriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.SeriesResponse.class, logproto.Logproto.SeriesResponse.Builder.class); } // Construct using logproto.Logproto.SeriesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSeriesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (seriesBuilder_ == null) { series_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { seriesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_SeriesResponse_descriptor; } @java.lang.Override public logproto.Logproto.SeriesResponse getDefaultInstanceForType() { return logproto.Logproto.SeriesResponse.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.SeriesResponse build() { logproto.Logproto.SeriesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.SeriesResponse buildPartial() { logproto.Logproto.SeriesResponse result = new logproto.Logproto.SeriesResponse(this); int from_bitField0_ = bitField0_; if (seriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { series_ = java.util.Collections.unmodifiableList(series_); bitField0_ = (bitField0_ & ~0x00000001); } result.series_ = series_; } else { result.series_ = seriesBuilder_.build(); } onBuilt(); return result; } @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 logproto.Logproto.SeriesResponse) { return mergeFrom((logproto.Logproto.SeriesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.SeriesResponse other) { if (other == logproto.Logproto.SeriesResponse.getDefaultInstance()) return this; if (seriesBuilder_ == null) { if (!other.series_.isEmpty()) { if (series_.isEmpty()) { series_ = other.series_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSeriesIsMutable(); series_.addAll(other.series_); } onChanged(); } } else { if (!other.series_.isEmpty()) { if (seriesBuilder_.isEmpty()) { seriesBuilder_.dispose(); seriesBuilder_ = null; series_ = other.series_; bitField0_ = (bitField0_ & ~0x00000001); seriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSeriesFieldBuilder() : null; } else { seriesBuilder_.addAllMessages(other.series_); } } } this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.SeriesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.SeriesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List series_ = java.util.Collections.emptyList(); private void ensureSeriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { series_ = new java.util.ArrayList(series_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.SeriesIdentifier, logproto.Logproto.SeriesIdentifier.Builder, logproto.Logproto.SeriesIdentifierOrBuilder> seriesBuilder_; /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getSeriesList() { if (seriesBuilder_ == null) { return java.util.Collections.unmodifiableList(series_); } else { return seriesBuilder_.getMessageList(); } } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public int getSeriesCount() { if (seriesBuilder_ == null) { return series_.size(); } else { return seriesBuilder_.getCount(); } } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public logproto.Logproto.SeriesIdentifier getSeries(int index) { if (seriesBuilder_ == null) { return series_.get(index); } else { return seriesBuilder_.getMessage(index); } } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public Builder setSeries( int index, logproto.Logproto.SeriesIdentifier value) { if (seriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSeriesIsMutable(); series_.set(index, value); onChanged(); } else { seriesBuilder_.setMessage(index, value); } return this; } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public Builder setSeries( int index, logproto.Logproto.SeriesIdentifier.Builder builderForValue) { if (seriesBuilder_ == null) { ensureSeriesIsMutable(); series_.set(index, builderForValue.build()); onChanged(); } else { seriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public Builder addSeries(logproto.Logproto.SeriesIdentifier value) { if (seriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSeriesIsMutable(); series_.add(value); onChanged(); } else { seriesBuilder_.addMessage(value); } return this; } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public Builder addSeries( int index, logproto.Logproto.SeriesIdentifier value) { if (seriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSeriesIsMutable(); series_.add(index, value); onChanged(); } else { seriesBuilder_.addMessage(index, value); } return this; } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public Builder addSeries( logproto.Logproto.SeriesIdentifier.Builder builderForValue) { if (seriesBuilder_ == null) { ensureSeriesIsMutable(); series_.add(builderForValue.build()); onChanged(); } else { seriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public Builder addSeries( int index, logproto.Logproto.SeriesIdentifier.Builder builderForValue) { if (seriesBuilder_ == null) { ensureSeriesIsMutable(); series_.add(index, builderForValue.build()); onChanged(); } else { seriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public Builder addAllSeries( java.lang.Iterable values) { if (seriesBuilder_ == null) { ensureSeriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, series_); onChanged(); } else { seriesBuilder_.addAllMessages(values); } return this; } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public Builder clearSeries() { if (seriesBuilder_ == null) { series_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { seriesBuilder_.clear(); } return this; } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public Builder removeSeries(int index) { if (seriesBuilder_ == null) { ensureSeriesIsMutable(); series_.remove(index); onChanged(); } else { seriesBuilder_.remove(index); } return this; } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public logproto.Logproto.SeriesIdentifier.Builder getSeriesBuilder( int index) { return getSeriesFieldBuilder().getBuilder(index); } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public logproto.Logproto.SeriesIdentifierOrBuilder getSeriesOrBuilder( int index) { if (seriesBuilder_ == null) { return series_.get(index); } else { return seriesBuilder_.getMessageOrBuilder(index); } } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getSeriesOrBuilderList() { if (seriesBuilder_ != null) { return seriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(series_); } } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public logproto.Logproto.SeriesIdentifier.Builder addSeriesBuilder() { return getSeriesFieldBuilder().addBuilder( logproto.Logproto.SeriesIdentifier.getDefaultInstance()); } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public logproto.Logproto.SeriesIdentifier.Builder addSeriesBuilder( int index) { return getSeriesFieldBuilder().addBuilder( index, logproto.Logproto.SeriesIdentifier.getDefaultInstance()); } /** * repeated .logproto.SeriesIdentifier series = 1 [(.gogoproto.nullable) = false]; */ public java.util.List getSeriesBuilderList() { return getSeriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.SeriesIdentifier, logproto.Logproto.SeriesIdentifier.Builder, logproto.Logproto.SeriesIdentifierOrBuilder> getSeriesFieldBuilder() { if (seriesBuilder_ == null) { seriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.SeriesIdentifier, logproto.Logproto.SeriesIdentifier.Builder, logproto.Logproto.SeriesIdentifierOrBuilder>( series_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); series_ = null; } return seriesBuilder_; } @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:logproto.SeriesResponse) } // @@protoc_insertion_point(class_scope:logproto.SeriesResponse) private static final logproto.Logproto.SeriesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.SeriesResponse(); } public static logproto.Logproto.SeriesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SeriesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SeriesResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.SeriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SeriesIdentifierOrBuilder extends // @@protoc_insertion_point(interface_extends:logproto.SeriesIdentifier) com.google.protobuf.MessageOrBuilder { /** * map<string, string> labels = 1; */ int getLabelsCount(); /** * map<string, string> labels = 1; */ boolean containsLabels( java.lang.String key); /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated java.util.Map getLabels(); /** * map<string, string> labels = 1; */ java.util.Map getLabelsMap(); /** * map<string, string> labels = 1; */ java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue); /** * map<string, string> labels = 1; */ java.lang.String getLabelsOrThrow( java.lang.String key); } /** * Protobuf type {@code logproto.SeriesIdentifier} */ public static final class SeriesIdentifier extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.SeriesIdentifier) SeriesIdentifierOrBuilder { private static final long serialVersionUID = 0L; // Use SeriesIdentifier.newBuilder() to construct. private SeriesIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SeriesIdentifier() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SeriesIdentifier(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SeriesIdentifier( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry labels__ = input.readMessage( LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); labels_.getMutableMap().put( labels__.getKey(), labels__.getValue()); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_SeriesIdentifier_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_SeriesIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.SeriesIdentifier.class, logproto.Logproto.SeriesIdentifier.Builder.class); } public static final int LABELS_FIELD_NUMBER = 1; private static final class LabelsDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( logproto.Logproto.internal_static_logproto_SeriesIdentifier_LabelsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * map<string, string> labels = 1; */ public boolean containsLabels( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * map<string, string> labels = 1; */ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * map<string, string> labels = 1; */ public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> labels = 1; */ public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLabels().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 { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 1); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetLabels().getMap().entrySet()) { com.google.protobuf.MapEntry labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, labels__); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.SeriesIdentifier)) { return super.equals(obj); } logproto.Logproto.SeriesIdentifier other = (logproto.Logproto.SeriesIdentifier) obj; if (!internalGetLabels().equals( other.internalGetLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.SeriesIdentifier parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.SeriesIdentifier parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.SeriesIdentifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.SeriesIdentifier parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.SeriesIdentifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.SeriesIdentifier parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.SeriesIdentifier parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.SeriesIdentifier 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 logproto.Logproto.SeriesIdentifier parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.SeriesIdentifier 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 logproto.Logproto.SeriesIdentifier parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.SeriesIdentifier 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(logproto.Logproto.SeriesIdentifier 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 logproto.SeriesIdentifier} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.SeriesIdentifier) logproto.Logproto.SeriesIdentifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_SeriesIdentifier_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableLabels(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_SeriesIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.SeriesIdentifier.class, logproto.Logproto.SeriesIdentifier.Builder.class); } // Construct using logproto.Logproto.SeriesIdentifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); internalGetMutableLabels().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_SeriesIdentifier_descriptor; } @java.lang.Override public logproto.Logproto.SeriesIdentifier getDefaultInstanceForType() { return logproto.Logproto.SeriesIdentifier.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.SeriesIdentifier build() { logproto.Logproto.SeriesIdentifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.SeriesIdentifier buildPartial() { logproto.Logproto.SeriesIdentifier result = new logproto.Logproto.SeriesIdentifier(this); int from_bitField0_ = bitField0_; result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); onBuilt(); return result; } @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 logproto.Logproto.SeriesIdentifier) { return mergeFrom((logproto.Logproto.SeriesIdentifier)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.SeriesIdentifier other) { if (other == logproto.Logproto.SeriesIdentifier.getDefaultInstance()) return this; internalGetMutableLabels().mergeFrom( other.internalGetLabels()); this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.SeriesIdentifier parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.SeriesIdentifier) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, java.lang.String> labels_; private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelsDefaultEntryHolder.defaultEntry); } return labels_; } private com.google.protobuf.MapField internalGetMutableLabels() { onChanged();; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField( LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } return labels_; } public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** * map<string, string> labels = 1; */ public boolean containsLabels( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } /** * Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** * map<string, string> labels = 1; */ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** * map<string, string> labels = 1; */ public java.lang.String getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> labels = 1; */ public java.lang.String getLabelsOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearLabels() { internalGetMutableLabels().getMutableMap() .clear(); return this; } /** * map<string, string> labels = 1; */ public Builder removeLabels( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableLabels().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** * map<string, string> labels = 1; */ public Builder putLabels( java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableLabels().getMutableMap() .put(key, value); return this; } /** * map<string, string> labels = 1; */ public Builder putAllLabels( java.util.Map values) { internalGetMutableLabels().getMutableMap() .putAll(values); 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:logproto.SeriesIdentifier) } // @@protoc_insertion_point(class_scope:logproto.SeriesIdentifier) private static final logproto.Logproto.SeriesIdentifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.SeriesIdentifier(); } public static logproto.Logproto.SeriesIdentifier getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SeriesIdentifier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SeriesIdentifier(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.SeriesIdentifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DroppedStreamOrBuilder extends // @@protoc_insertion_point(interface_extends:logproto.DroppedStream) com.google.protobuf.MessageOrBuilder { /** * .google.protobuf.Timestamp from = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the from field is set. */ boolean hasFrom(); /** * .google.protobuf.Timestamp from = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The from. */ com.google.protobuf.Timestamp getFrom(); /** * .google.protobuf.Timestamp from = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ com.google.protobuf.TimestampOrBuilder getFromOrBuilder(); /** * .google.protobuf.Timestamp to = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the to field is set. */ boolean hasTo(); /** * .google.protobuf.Timestamp to = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The to. */ com.google.protobuf.Timestamp getTo(); /** * .google.protobuf.Timestamp to = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ com.google.protobuf.TimestampOrBuilder getToOrBuilder(); /** * string labels = 3; * @return The labels. */ java.lang.String getLabels(); /** * string labels = 3; * @return The bytes for labels. */ com.google.protobuf.ByteString getLabelsBytes(); } /** * Protobuf type {@code logproto.DroppedStream} */ public static final class DroppedStream extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.DroppedStream) DroppedStreamOrBuilder { private static final long serialVersionUID = 0L; // Use DroppedStream.newBuilder() to construct. private DroppedStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DroppedStream() { labels_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DroppedStream(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DroppedStream( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (from_ != null) { subBuilder = from_.toBuilder(); } from_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(from_); from_ = subBuilder.buildPartial(); } break; } case 18: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (to_ != null) { subBuilder = to_.toBuilder(); } to_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(to_); to_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); labels_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_DroppedStream_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_DroppedStream_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.DroppedStream.class, logproto.Logproto.DroppedStream.Builder.class); } public static final int FROM_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp from_; /** * .google.protobuf.Timestamp from = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the from field is set. */ public boolean hasFrom() { return from_ != null; } /** * .google.protobuf.Timestamp from = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The from. */ public com.google.protobuf.Timestamp getFrom() { return from_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : from_; } /** * .google.protobuf.Timestamp from = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getFromOrBuilder() { return getFrom(); } public static final int TO_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp to_; /** * .google.protobuf.Timestamp to = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the to field is set. */ public boolean hasTo() { return to_ != null; } /** * .google.protobuf.Timestamp to = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The to. */ public com.google.protobuf.Timestamp getTo() { return to_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : to_; } /** * .google.protobuf.Timestamp to = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getToOrBuilder() { return getTo(); } public static final int LABELS_FIELD_NUMBER = 3; private volatile java.lang.Object labels_; /** * string labels = 3; * @return The labels. */ public java.lang.String getLabels() { java.lang.Object ref = labels_; 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(); labels_ = s; return s; } } /** * string labels = 3; * @return The bytes for labels. */ public com.google.protobuf.ByteString getLabelsBytes() { java.lang.Object ref = labels_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); labels_ = 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 (from_ != null) { output.writeMessage(1, getFrom()); } if (to_ != null) { output.writeMessage(2, getTo()); } if (!getLabelsBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, labels_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (from_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFrom()); } if (to_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTo()); } if (!getLabelsBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, labels_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.DroppedStream)) { return super.equals(obj); } logproto.Logproto.DroppedStream other = (logproto.Logproto.DroppedStream) obj; if (hasFrom() != other.hasFrom()) return false; if (hasFrom()) { if (!getFrom() .equals(other.getFrom())) return false; } if (hasTo() != other.hasTo()) return false; if (hasTo()) { if (!getTo() .equals(other.getTo())) return false; } if (!getLabels() .equals(other.getLabels())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFrom()) { hash = (37 * hash) + FROM_FIELD_NUMBER; hash = (53 * hash) + getFrom().hashCode(); } if (hasTo()) { hash = (37 * hash) + TO_FIELD_NUMBER; hash = (53 * hash) + getTo().hashCode(); } hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabels().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.DroppedStream parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.DroppedStream parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.DroppedStream parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.DroppedStream parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.DroppedStream parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.DroppedStream parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.DroppedStream parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.DroppedStream 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 logproto.Logproto.DroppedStream parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.DroppedStream 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 logproto.Logproto.DroppedStream parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.DroppedStream 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(logproto.Logproto.DroppedStream 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 logproto.DroppedStream} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.DroppedStream) logproto.Logproto.DroppedStreamOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_DroppedStream_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_DroppedStream_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.DroppedStream.class, logproto.Logproto.DroppedStream.Builder.class); } // Construct using logproto.Logproto.DroppedStream.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (fromBuilder_ == null) { from_ = null; } else { from_ = null; fromBuilder_ = null; } if (toBuilder_ == null) { to_ = null; } else { to_ = null; toBuilder_ = null; } labels_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_DroppedStream_descriptor; } @java.lang.Override public logproto.Logproto.DroppedStream getDefaultInstanceForType() { return logproto.Logproto.DroppedStream.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.DroppedStream build() { logproto.Logproto.DroppedStream result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.DroppedStream buildPartial() { logproto.Logproto.DroppedStream result = new logproto.Logproto.DroppedStream(this); if (fromBuilder_ == null) { result.from_ = from_; } else { result.from_ = fromBuilder_.build(); } if (toBuilder_ == null) { result.to_ = to_; } else { result.to_ = toBuilder_.build(); } result.labels_ = labels_; onBuilt(); return result; } @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 logproto.Logproto.DroppedStream) { return mergeFrom((logproto.Logproto.DroppedStream)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.DroppedStream other) { if (other == logproto.Logproto.DroppedStream.getDefaultInstance()) return this; if (other.hasFrom()) { mergeFrom(other.getFrom()); } if (other.hasTo()) { mergeTo(other.getTo()); } if (!other.getLabels().isEmpty()) { labels_ = other.labels_; onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.DroppedStream parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.DroppedStream) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Timestamp from_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> fromBuilder_; /** * .google.protobuf.Timestamp from = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the from field is set. */ public boolean hasFrom() { return fromBuilder_ != null || from_ != null; } /** * .google.protobuf.Timestamp from = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The from. */ public com.google.protobuf.Timestamp getFrom() { if (fromBuilder_ == null) { return from_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : from_; } else { return fromBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp from = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setFrom(com.google.protobuf.Timestamp value) { if (fromBuilder_ == null) { if (value == null) { throw new NullPointerException(); } from_ = value; onChanged(); } else { fromBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp from = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setFrom( com.google.protobuf.Timestamp.Builder builderForValue) { if (fromBuilder_ == null) { from_ = builderForValue.build(); onChanged(); } else { fromBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp from = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder mergeFrom(com.google.protobuf.Timestamp value) { if (fromBuilder_ == null) { if (from_ != null) { from_ = com.google.protobuf.Timestamp.newBuilder(from_).mergeFrom(value).buildPartial(); } else { from_ = value; } onChanged(); } else { fromBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp from = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder clearFrom() { if (fromBuilder_ == null) { from_ = null; onChanged(); } else { from_ = null; fromBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp from = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getFromBuilder() { onChanged(); return getFromFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp from = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getFromOrBuilder() { if (fromBuilder_ != null) { return fromBuilder_.getMessageOrBuilder(); } else { return from_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : from_; } } /** * .google.protobuf.Timestamp from = 1 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getFromFieldBuilder() { if (fromBuilder_ == null) { fromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getFrom(), getParentForChildren(), isClean()); from_ = null; } return fromBuilder_; } private com.google.protobuf.Timestamp to_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> toBuilder_; /** * .google.protobuf.Timestamp to = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return Whether the to field is set. */ public boolean hasTo() { return toBuilder_ != null || to_ != null; } /** * .google.protobuf.Timestamp to = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; * @return The to. */ public com.google.protobuf.Timestamp getTo() { if (toBuilder_ == null) { return to_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : to_; } else { return toBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp to = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setTo(com.google.protobuf.Timestamp value) { if (toBuilder_ == null) { if (value == null) { throw new NullPointerException(); } to_ = value; onChanged(); } else { toBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp to = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder setTo( com.google.protobuf.Timestamp.Builder builderForValue) { if (toBuilder_ == null) { to_ = builderForValue.build(); onChanged(); } else { toBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp to = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder mergeTo(com.google.protobuf.Timestamp value) { if (toBuilder_ == null) { if (to_ != null) { to_ = com.google.protobuf.Timestamp.newBuilder(to_).mergeFrom(value).buildPartial(); } else { to_ = value; } onChanged(); } else { toBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp to = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public Builder clearTo() { if (toBuilder_ == null) { to_ = null; onChanged(); } else { to_ = null; toBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp to = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.Timestamp.Builder getToBuilder() { onChanged(); return getToFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp to = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ public com.google.protobuf.TimestampOrBuilder getToOrBuilder() { if (toBuilder_ != null) { return toBuilder_.getMessageOrBuilder(); } else { return to_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : to_; } } /** * .google.protobuf.Timestamp to = 2 [(.gogoproto.nullable) = false, (.gogoproto.stdtime) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getToFieldBuilder() { if (toBuilder_ == null) { toBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTo(), getParentForChildren(), isClean()); to_ = null; } return toBuilder_; } private java.lang.Object labels_ = ""; /** * string labels = 3; * @return The labels. */ public java.lang.String getLabels() { java.lang.Object ref = labels_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); labels_ = s; return s; } else { return (java.lang.String) ref; } } /** * string labels = 3; * @return The bytes for labels. */ public com.google.protobuf.ByteString getLabelsBytes() { java.lang.Object ref = labels_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); labels_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string labels = 3; * @param value The labels to set. * @return This builder for chaining. */ public Builder setLabels( java.lang.String value) { if (value == null) { throw new NullPointerException(); } labels_ = value; onChanged(); return this; } /** * string labels = 3; * @return This builder for chaining. */ public Builder clearLabels() { labels_ = getDefaultInstance().getLabels(); onChanged(); return this; } /** * string labels = 3; * @param value The bytes for labels to set. * @return This builder for chaining. */ public Builder setLabelsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); labels_ = value; 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:logproto.DroppedStream) } // @@protoc_insertion_point(class_scope:logproto.DroppedStream) private static final logproto.Logproto.DroppedStream DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.DroppedStream(); } public static logproto.Logproto.DroppedStream getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DroppedStream parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DroppedStream(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.DroppedStream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TimeSeriesChunkOrBuilder extends // @@protoc_insertion_point(interface_extends:logproto.TimeSeriesChunk) com.google.protobuf.MessageOrBuilder { /** * string from_ingester_id = 1; * @return The fromIngesterId. */ java.lang.String getFromIngesterId(); /** * string from_ingester_id = 1; * @return The bytes for fromIngesterId. */ com.google.protobuf.ByteString getFromIngesterIdBytes(); /** * string user_id = 2; * @return The userId. */ java.lang.String getUserId(); /** * string user_id = 2; * @return The bytes for userId. */ com.google.protobuf.ByteString getUserIdBytes(); /** * repeated .logproto.LabelPair labels = 3; */ java.util.List getLabelsList(); /** * repeated .logproto.LabelPair labels = 3; */ logproto.Logproto.LabelPair getLabels(int index); /** * repeated .logproto.LabelPair labels = 3; */ int getLabelsCount(); /** * repeated .logproto.LabelPair labels = 3; */ java.util.List getLabelsOrBuilderList(); /** * repeated .logproto.LabelPair labels = 3; */ logproto.Logproto.LabelPairOrBuilder getLabelsOrBuilder( int index); /** * repeated .logproto.Chunk chunks = 4; */ java.util.List getChunksList(); /** * repeated .logproto.Chunk chunks = 4; */ logproto.Logproto.Chunk getChunks(int index); /** * repeated .logproto.Chunk chunks = 4; */ int getChunksCount(); /** * repeated .logproto.Chunk chunks = 4; */ java.util.List getChunksOrBuilderList(); /** * repeated .logproto.Chunk chunks = 4; */ logproto.Logproto.ChunkOrBuilder getChunksOrBuilder( int index); } /** * Protobuf type {@code logproto.TimeSeriesChunk} */ public static final class TimeSeriesChunk extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.TimeSeriesChunk) TimeSeriesChunkOrBuilder { private static final long serialVersionUID = 0L; // Use TimeSeriesChunk.newBuilder() to construct. private TimeSeriesChunk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TimeSeriesChunk() { fromIngesterId_ = ""; userId_ = ""; labels_ = java.util.Collections.emptyList(); chunks_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TimeSeriesChunk(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TimeSeriesChunk( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); fromIngesterId_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); userId_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } labels_.add( input.readMessage(logproto.Logproto.LabelPair.parser(), extensionRegistry)); break; } case 34: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { chunks_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } chunks_.add( input.readMessage(logproto.Logproto.Chunk.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { labels_ = java.util.Collections.unmodifiableList(labels_); } if (((mutable_bitField0_ & 0x00000002) != 0)) { chunks_ = java.util.Collections.unmodifiableList(chunks_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_TimeSeriesChunk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_TimeSeriesChunk_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.TimeSeriesChunk.class, logproto.Logproto.TimeSeriesChunk.Builder.class); } public static final int FROM_INGESTER_ID_FIELD_NUMBER = 1; private volatile java.lang.Object fromIngesterId_; /** * string from_ingester_id = 1; * @return The fromIngesterId. */ public java.lang.String getFromIngesterId() { java.lang.Object ref = fromIngesterId_; 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(); fromIngesterId_ = s; return s; } } /** * string from_ingester_id = 1; * @return The bytes for fromIngesterId. */ public com.google.protobuf.ByteString getFromIngesterIdBytes() { java.lang.Object ref = fromIngesterId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fromIngesterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object userId_; /** * string user_id = 2; * @return The userId. */ public java.lang.String getUserId() { java.lang.Object ref = userId_; 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(); userId_ = s; return s; } } /** * string user_id = 2; * @return The bytes for userId. */ public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABELS_FIELD_NUMBER = 3; private java.util.List labels_; /** * repeated .logproto.LabelPair labels = 3; */ public java.util.List getLabelsList() { return labels_; } /** * repeated .logproto.LabelPair labels = 3; */ public java.util.List getLabelsOrBuilderList() { return labels_; } /** * repeated .logproto.LabelPair labels = 3; */ public int getLabelsCount() { return labels_.size(); } /** * repeated .logproto.LabelPair labels = 3; */ public logproto.Logproto.LabelPair getLabels(int index) { return labels_.get(index); } /** * repeated .logproto.LabelPair labels = 3; */ public logproto.Logproto.LabelPairOrBuilder getLabelsOrBuilder( int index) { return labels_.get(index); } public static final int CHUNKS_FIELD_NUMBER = 4; private java.util.List chunks_; /** * repeated .logproto.Chunk chunks = 4; */ public java.util.List getChunksList() { return chunks_; } /** * repeated .logproto.Chunk chunks = 4; */ public java.util.List getChunksOrBuilderList() { return chunks_; } /** * repeated .logproto.Chunk chunks = 4; */ public int getChunksCount() { return chunks_.size(); } /** * repeated .logproto.Chunk chunks = 4; */ public logproto.Logproto.Chunk getChunks(int index) { return chunks_.get(index); } /** * repeated .logproto.Chunk chunks = 4; */ public logproto.Logproto.ChunkOrBuilder getChunksOrBuilder( int index) { return chunks_.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 (!getFromIngesterIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fromIngesterId_); } if (!getUserIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, userId_); } for (int i = 0; i < labels_.size(); i++) { output.writeMessage(3, labels_.get(i)); } for (int i = 0; i < chunks_.size(); i++) { output.writeMessage(4, chunks_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getFromIngesterIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fromIngesterId_); } if (!getUserIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, userId_); } for (int i = 0; i < labels_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, labels_.get(i)); } for (int i = 0; i < chunks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, chunks_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.TimeSeriesChunk)) { return super.equals(obj); } logproto.Logproto.TimeSeriesChunk other = (logproto.Logproto.TimeSeriesChunk) obj; if (!getFromIngesterId() .equals(other.getFromIngesterId())) return false; if (!getUserId() .equals(other.getUserId())) return false; if (!getLabelsList() .equals(other.getLabelsList())) return false; if (!getChunksList() .equals(other.getChunksList())) return false; if (!unknownFields.equals(other.unknownFields)) 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) + FROM_INGESTER_ID_FIELD_NUMBER; hash = (53 * hash) + getFromIngesterId().hashCode(); hash = (37 * hash) + USER_ID_FIELD_NUMBER; hash = (53 * hash) + getUserId().hashCode(); if (getLabelsCount() > 0) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + getLabelsList().hashCode(); } if (getChunksCount() > 0) { hash = (37 * hash) + CHUNKS_FIELD_NUMBER; hash = (53 * hash) + getChunksList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.TimeSeriesChunk parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TimeSeriesChunk parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TimeSeriesChunk parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TimeSeriesChunk parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TimeSeriesChunk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TimeSeriesChunk parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TimeSeriesChunk parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.TimeSeriesChunk 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 logproto.Logproto.TimeSeriesChunk parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.TimeSeriesChunk 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 logproto.Logproto.TimeSeriesChunk parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.TimeSeriesChunk 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(logproto.Logproto.TimeSeriesChunk 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 logproto.TimeSeriesChunk} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.TimeSeriesChunk) logproto.Logproto.TimeSeriesChunkOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_TimeSeriesChunk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_TimeSeriesChunk_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.TimeSeriesChunk.class, logproto.Logproto.TimeSeriesChunk.Builder.class); } // Construct using logproto.Logproto.TimeSeriesChunk.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLabelsFieldBuilder(); getChunksFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); fromIngesterId_ = ""; userId_ = ""; if (labelsBuilder_ == null) { labels_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { labelsBuilder_.clear(); } if (chunksBuilder_ == null) { chunks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { chunksBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_TimeSeriesChunk_descriptor; } @java.lang.Override public logproto.Logproto.TimeSeriesChunk getDefaultInstanceForType() { return logproto.Logproto.TimeSeriesChunk.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.TimeSeriesChunk build() { logproto.Logproto.TimeSeriesChunk result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.TimeSeriesChunk buildPartial() { logproto.Logproto.TimeSeriesChunk result = new logproto.Logproto.TimeSeriesChunk(this); int from_bitField0_ = bitField0_; result.fromIngesterId_ = fromIngesterId_; result.userId_ = userId_; if (labelsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { labels_ = java.util.Collections.unmodifiableList(labels_); bitField0_ = (bitField0_ & ~0x00000001); } result.labels_ = labels_; } else { result.labels_ = labelsBuilder_.build(); } if (chunksBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { chunks_ = java.util.Collections.unmodifiableList(chunks_); bitField0_ = (bitField0_ & ~0x00000002); } result.chunks_ = chunks_; } else { result.chunks_ = chunksBuilder_.build(); } onBuilt(); return result; } @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 logproto.Logproto.TimeSeriesChunk) { return mergeFrom((logproto.Logproto.TimeSeriesChunk)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.TimeSeriesChunk other) { if (other == logproto.Logproto.TimeSeriesChunk.getDefaultInstance()) return this; if (!other.getFromIngesterId().isEmpty()) { fromIngesterId_ = other.fromIngesterId_; onChanged(); } if (!other.getUserId().isEmpty()) { userId_ = other.userId_; onChanged(); } if (labelsBuilder_ == null) { if (!other.labels_.isEmpty()) { if (labels_.isEmpty()) { labels_ = other.labels_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLabelsIsMutable(); labels_.addAll(other.labels_); } onChanged(); } } else { if (!other.labels_.isEmpty()) { if (labelsBuilder_.isEmpty()) { labelsBuilder_.dispose(); labelsBuilder_ = null; labels_ = other.labels_; bitField0_ = (bitField0_ & ~0x00000001); labelsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLabelsFieldBuilder() : null; } else { labelsBuilder_.addAllMessages(other.labels_); } } } if (chunksBuilder_ == null) { if (!other.chunks_.isEmpty()) { if (chunks_.isEmpty()) { chunks_ = other.chunks_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureChunksIsMutable(); chunks_.addAll(other.chunks_); } onChanged(); } } else { if (!other.chunks_.isEmpty()) { if (chunksBuilder_.isEmpty()) { chunksBuilder_.dispose(); chunksBuilder_ = null; chunks_ = other.chunks_; bitField0_ = (bitField0_ & ~0x00000002); chunksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChunksFieldBuilder() : null; } else { chunksBuilder_.addAllMessages(other.chunks_); } } } this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.TimeSeriesChunk parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.TimeSeriesChunk) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object fromIngesterId_ = ""; /** * string from_ingester_id = 1; * @return The fromIngesterId. */ public java.lang.String getFromIngesterId() { java.lang.Object ref = fromIngesterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fromIngesterId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string from_ingester_id = 1; * @return The bytes for fromIngesterId. */ public com.google.protobuf.ByteString getFromIngesterIdBytes() { java.lang.Object ref = fromIngesterId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fromIngesterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string from_ingester_id = 1; * @param value The fromIngesterId to set. * @return This builder for chaining. */ public Builder setFromIngesterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fromIngesterId_ = value; onChanged(); return this; } /** * string from_ingester_id = 1; * @return This builder for chaining. */ public Builder clearFromIngesterId() { fromIngesterId_ = getDefaultInstance().getFromIngesterId(); onChanged(); return this; } /** * string from_ingester_id = 1; * @param value The bytes for fromIngesterId to set. * @return This builder for chaining. */ public Builder setFromIngesterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fromIngesterId_ = value; onChanged(); return this; } private java.lang.Object userId_ = ""; /** * string user_id = 2; * @return The userId. */ public java.lang.String getUserId() { java.lang.Object ref = userId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string user_id = 2; * @return The bytes for userId. */ public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string user_id = 2; * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } userId_ = value; onChanged(); return this; } /** * string user_id = 2; * @return This builder for chaining. */ public Builder clearUserId() { userId_ = getDefaultInstance().getUserId(); onChanged(); return this; } /** * string user_id = 2; * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userId_ = value; onChanged(); return this; } private java.util.List labels_ = java.util.Collections.emptyList(); private void ensureLabelsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { labels_ = new java.util.ArrayList(labels_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.LabelPair, logproto.Logproto.LabelPair.Builder, logproto.Logproto.LabelPairOrBuilder> labelsBuilder_; /** * repeated .logproto.LabelPair labels = 3; */ public java.util.List getLabelsList() { if (labelsBuilder_ == null) { return java.util.Collections.unmodifiableList(labels_); } else { return labelsBuilder_.getMessageList(); } } /** * repeated .logproto.LabelPair labels = 3; */ public int getLabelsCount() { if (labelsBuilder_ == null) { return labels_.size(); } else { return labelsBuilder_.getCount(); } } /** * repeated .logproto.LabelPair labels = 3; */ public logproto.Logproto.LabelPair getLabels(int index) { if (labelsBuilder_ == null) { return labels_.get(index); } else { return labelsBuilder_.getMessage(index); } } /** * repeated .logproto.LabelPair labels = 3; */ public Builder setLabels( int index, logproto.Logproto.LabelPair value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelsIsMutable(); labels_.set(index, value); onChanged(); } else { labelsBuilder_.setMessage(index, value); } return this; } /** * repeated .logproto.LabelPair labels = 3; */ public Builder setLabels( int index, logproto.Logproto.LabelPair.Builder builderForValue) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); labels_.set(index, builderForValue.build()); onChanged(); } else { labelsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .logproto.LabelPair labels = 3; */ public Builder addLabels(logproto.Logproto.LabelPair value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelsIsMutable(); labels_.add(value); onChanged(); } else { labelsBuilder_.addMessage(value); } return this; } /** * repeated .logproto.LabelPair labels = 3; */ public Builder addLabels( int index, logproto.Logproto.LabelPair value) { if (labelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelsIsMutable(); labels_.add(index, value); onChanged(); } else { labelsBuilder_.addMessage(index, value); } return this; } /** * repeated .logproto.LabelPair labels = 3; */ public Builder addLabels( logproto.Logproto.LabelPair.Builder builderForValue) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); labels_.add(builderForValue.build()); onChanged(); } else { labelsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .logproto.LabelPair labels = 3; */ public Builder addLabels( int index, logproto.Logproto.LabelPair.Builder builderForValue) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); labels_.add(index, builderForValue.build()); onChanged(); } else { labelsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .logproto.LabelPair labels = 3; */ public Builder addAllLabels( java.lang.Iterable values) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, labels_); onChanged(); } else { labelsBuilder_.addAllMessages(values); } return this; } /** * repeated .logproto.LabelPair labels = 3; */ public Builder clearLabels() { if (labelsBuilder_ == null) { labels_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { labelsBuilder_.clear(); } return this; } /** * repeated .logproto.LabelPair labels = 3; */ public Builder removeLabels(int index) { if (labelsBuilder_ == null) { ensureLabelsIsMutable(); labels_.remove(index); onChanged(); } else { labelsBuilder_.remove(index); } return this; } /** * repeated .logproto.LabelPair labels = 3; */ public logproto.Logproto.LabelPair.Builder getLabelsBuilder( int index) { return getLabelsFieldBuilder().getBuilder(index); } /** * repeated .logproto.LabelPair labels = 3; */ public logproto.Logproto.LabelPairOrBuilder getLabelsOrBuilder( int index) { if (labelsBuilder_ == null) { return labels_.get(index); } else { return labelsBuilder_.getMessageOrBuilder(index); } } /** * repeated .logproto.LabelPair labels = 3; */ public java.util.List getLabelsOrBuilderList() { if (labelsBuilder_ != null) { return labelsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(labels_); } } /** * repeated .logproto.LabelPair labels = 3; */ public logproto.Logproto.LabelPair.Builder addLabelsBuilder() { return getLabelsFieldBuilder().addBuilder( logproto.Logproto.LabelPair.getDefaultInstance()); } /** * repeated .logproto.LabelPair labels = 3; */ public logproto.Logproto.LabelPair.Builder addLabelsBuilder( int index) { return getLabelsFieldBuilder().addBuilder( index, logproto.Logproto.LabelPair.getDefaultInstance()); } /** * repeated .logproto.LabelPair labels = 3; */ public java.util.List getLabelsBuilderList() { return getLabelsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.LabelPair, logproto.Logproto.LabelPair.Builder, logproto.Logproto.LabelPairOrBuilder> getLabelsFieldBuilder() { if (labelsBuilder_ == null) { labelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.LabelPair, logproto.Logproto.LabelPair.Builder, logproto.Logproto.LabelPairOrBuilder>( labels_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); labels_ = null; } return labelsBuilder_; } private java.util.List chunks_ = java.util.Collections.emptyList(); private void ensureChunksIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { chunks_ = new java.util.ArrayList(chunks_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.Chunk, logproto.Logproto.Chunk.Builder, logproto.Logproto.ChunkOrBuilder> chunksBuilder_; /** * repeated .logproto.Chunk chunks = 4; */ public java.util.List getChunksList() { if (chunksBuilder_ == null) { return java.util.Collections.unmodifiableList(chunks_); } else { return chunksBuilder_.getMessageList(); } } /** * repeated .logproto.Chunk chunks = 4; */ public int getChunksCount() { if (chunksBuilder_ == null) { return chunks_.size(); } else { return chunksBuilder_.getCount(); } } /** * repeated .logproto.Chunk chunks = 4; */ public logproto.Logproto.Chunk getChunks(int index) { if (chunksBuilder_ == null) { return chunks_.get(index); } else { return chunksBuilder_.getMessage(index); } } /** * repeated .logproto.Chunk chunks = 4; */ public Builder setChunks( int index, logproto.Logproto.Chunk value) { if (chunksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChunksIsMutable(); chunks_.set(index, value); onChanged(); } else { chunksBuilder_.setMessage(index, value); } return this; } /** * repeated .logproto.Chunk chunks = 4; */ public Builder setChunks( int index, logproto.Logproto.Chunk.Builder builderForValue) { if (chunksBuilder_ == null) { ensureChunksIsMutable(); chunks_.set(index, builderForValue.build()); onChanged(); } else { chunksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .logproto.Chunk chunks = 4; */ public Builder addChunks(logproto.Logproto.Chunk value) { if (chunksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChunksIsMutable(); chunks_.add(value); onChanged(); } else { chunksBuilder_.addMessage(value); } return this; } /** * repeated .logproto.Chunk chunks = 4; */ public Builder addChunks( int index, logproto.Logproto.Chunk value) { if (chunksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChunksIsMutable(); chunks_.add(index, value); onChanged(); } else { chunksBuilder_.addMessage(index, value); } return this; } /** * repeated .logproto.Chunk chunks = 4; */ public Builder addChunks( logproto.Logproto.Chunk.Builder builderForValue) { if (chunksBuilder_ == null) { ensureChunksIsMutable(); chunks_.add(builderForValue.build()); onChanged(); } else { chunksBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .logproto.Chunk chunks = 4; */ public Builder addChunks( int index, logproto.Logproto.Chunk.Builder builderForValue) { if (chunksBuilder_ == null) { ensureChunksIsMutable(); chunks_.add(index, builderForValue.build()); onChanged(); } else { chunksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .logproto.Chunk chunks = 4; */ public Builder addAllChunks( java.lang.Iterable values) { if (chunksBuilder_ == null) { ensureChunksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, chunks_); onChanged(); } else { chunksBuilder_.addAllMessages(values); } return this; } /** * repeated .logproto.Chunk chunks = 4; */ public Builder clearChunks() { if (chunksBuilder_ == null) { chunks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { chunksBuilder_.clear(); } return this; } /** * repeated .logproto.Chunk chunks = 4; */ public Builder removeChunks(int index) { if (chunksBuilder_ == null) { ensureChunksIsMutable(); chunks_.remove(index); onChanged(); } else { chunksBuilder_.remove(index); } return this; } /** * repeated .logproto.Chunk chunks = 4; */ public logproto.Logproto.Chunk.Builder getChunksBuilder( int index) { return getChunksFieldBuilder().getBuilder(index); } /** * repeated .logproto.Chunk chunks = 4; */ public logproto.Logproto.ChunkOrBuilder getChunksOrBuilder( int index) { if (chunksBuilder_ == null) { return chunks_.get(index); } else { return chunksBuilder_.getMessageOrBuilder(index); } } /** * repeated .logproto.Chunk chunks = 4; */ public java.util.List getChunksOrBuilderList() { if (chunksBuilder_ != null) { return chunksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(chunks_); } } /** * repeated .logproto.Chunk chunks = 4; */ public logproto.Logproto.Chunk.Builder addChunksBuilder() { return getChunksFieldBuilder().addBuilder( logproto.Logproto.Chunk.getDefaultInstance()); } /** * repeated .logproto.Chunk chunks = 4; */ public logproto.Logproto.Chunk.Builder addChunksBuilder( int index) { return getChunksFieldBuilder().addBuilder( index, logproto.Logproto.Chunk.getDefaultInstance()); } /** * repeated .logproto.Chunk chunks = 4; */ public java.util.List getChunksBuilderList() { return getChunksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.Chunk, logproto.Logproto.Chunk.Builder, logproto.Logproto.ChunkOrBuilder> getChunksFieldBuilder() { if (chunksBuilder_ == null) { chunksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< logproto.Logproto.Chunk, logproto.Logproto.Chunk.Builder, logproto.Logproto.ChunkOrBuilder>( chunks_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); chunks_ = null; } return chunksBuilder_; } @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:logproto.TimeSeriesChunk) } // @@protoc_insertion_point(class_scope:logproto.TimeSeriesChunk) private static final logproto.Logproto.TimeSeriesChunk DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.TimeSeriesChunk(); } public static logproto.Logproto.TimeSeriesChunk getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TimeSeriesChunk parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TimeSeriesChunk(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.TimeSeriesChunk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LabelPairOrBuilder extends // @@protoc_insertion_point(interface_extends:logproto.LabelPair) com.google.protobuf.MessageOrBuilder { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * string value = 2; * @return The value. */ java.lang.String getValue(); /** * string value = 2; * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code logproto.LabelPair} */ public static final class LabelPair extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.LabelPair) LabelPairOrBuilder { private static final long serialVersionUID = 0L; // Use LabelPair.newBuilder() to construct. private LabelPair(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LabelPair() { name_ = ""; value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LabelPair(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LabelPair( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); value_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_LabelPair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_LabelPair_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.LabelPair.class, logproto.Logproto.LabelPair.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_FIELD_NUMBER = 2; private volatile java.lang.Object value_; /** * string value = 2; * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; 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(); value_ = s; return s; } } /** * string value = 2; * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = 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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getValueBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getValueBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.LabelPair)) { return super.equals(obj); } logproto.Logproto.LabelPair other = (logproto.Logproto.LabelPair) obj; if (!getName() .equals(other.getName())) return false; if (!getValue() .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.LabelPair parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.LabelPair parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.LabelPair parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.LabelPair parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.LabelPair parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.LabelPair parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.LabelPair parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.LabelPair 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 logproto.Logproto.LabelPair parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.LabelPair 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 logproto.Logproto.LabelPair parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.LabelPair 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(logproto.Logproto.LabelPair 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 logproto.LabelPair} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.LabelPair) logproto.Logproto.LabelPairOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_LabelPair_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_LabelPair_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.LabelPair.class, logproto.Logproto.LabelPair.Builder.class); } // Construct using logproto.Logproto.LabelPair.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; value_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_LabelPair_descriptor; } @java.lang.Override public logproto.Logproto.LabelPair getDefaultInstanceForType() { return logproto.Logproto.LabelPair.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.LabelPair build() { logproto.Logproto.LabelPair result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.LabelPair buildPartial() { logproto.Logproto.LabelPair result = new logproto.Logproto.LabelPair(this); result.name_ = name_; result.value_ = value_; onBuilt(); return result; } @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 logproto.Logproto.LabelPair) { return mergeFrom((logproto.Logproto.LabelPair)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.LabelPair other) { if (other == logproto.Logproto.LabelPair.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.LabelPair parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.LabelPair) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object value_ = ""; /** * string value = 2; * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * string value = 2; * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string value = 2; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** * string value = 2; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * string value = 2; * @param value The bytes for value to set. * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; 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:logproto.LabelPair) } // @@protoc_insertion_point(class_scope:logproto.LabelPair) private static final logproto.Logproto.LabelPair DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.LabelPair(); } public static logproto.Logproto.LabelPair getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LabelPair parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LabelPair(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.LabelPair getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChunkOrBuilder extends // @@protoc_insertion_point(interface_extends:logproto.Chunk) com.google.protobuf.MessageOrBuilder { /** * bytes data = 1; * @return The data. */ com.google.protobuf.ByteString getData(); } /** * Protobuf type {@code logproto.Chunk} */ public static final class Chunk extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.Chunk) ChunkOrBuilder { private static final long serialVersionUID = 0L; // Use Chunk.newBuilder() to construct. private Chunk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Chunk() { data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Chunk(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Chunk( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { data_ = input.readBytes(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_Chunk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_Chunk_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.Chunk.class, logproto.Logproto.Chunk.Builder.class); } public static final int DATA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString data_; /** * bytes data = 1; * @return The data. */ public com.google.protobuf.ByteString getData() { return data_; } 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 (!data_.isEmpty()) { output.writeBytes(1, data_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, data_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.Chunk)) { return super.equals(obj); } logproto.Logproto.Chunk other = (logproto.Logproto.Chunk) obj; if (!getData() .equals(other.getData())) return false; if (!unknownFields.equals(other.unknownFields)) 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) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.Chunk parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.Chunk parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.Chunk parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.Chunk parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.Chunk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.Chunk parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.Chunk parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.Chunk 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 logproto.Logproto.Chunk parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.Chunk 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 logproto.Logproto.Chunk parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.Chunk 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(logproto.Logproto.Chunk 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 logproto.Chunk} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.Chunk) logproto.Logproto.ChunkOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_Chunk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_Chunk_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.Chunk.class, logproto.Logproto.Chunk.Builder.class); } // Construct using logproto.Logproto.Chunk.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); data_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_Chunk_descriptor; } @java.lang.Override public logproto.Logproto.Chunk getDefaultInstanceForType() { return logproto.Logproto.Chunk.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.Chunk build() { logproto.Logproto.Chunk result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.Chunk buildPartial() { logproto.Logproto.Chunk result = new logproto.Logproto.Chunk(this); result.data_ = data_; onBuilt(); return result; } @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 logproto.Logproto.Chunk) { return mergeFrom((logproto.Logproto.Chunk)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.Chunk other) { if (other == logproto.Logproto.Chunk.getDefaultInstance()) return this; if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.Chunk parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.Chunk) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * bytes data = 1; * @return The data. */ public com.google.protobuf.ByteString getData() { return data_; } /** * bytes data = 1; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** * bytes data = 1; * @return This builder for chaining. */ public Builder clearData() { data_ = getDefaultInstance().getData(); 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:logproto.Chunk) } // @@protoc_insertion_point(class_scope:logproto.Chunk) private static final logproto.Logproto.Chunk DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.Chunk(); } public static logproto.Logproto.Chunk getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Chunk parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Chunk(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.Chunk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TransferChunksResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:logproto.TransferChunksResponse) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code logproto.TransferChunksResponse} */ public static final class TransferChunksResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.TransferChunksResponse) TransferChunksResponseOrBuilder { private static final long serialVersionUID = 0L; // Use TransferChunksResponse.newBuilder() to construct. private TransferChunksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransferChunksResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransferChunksResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransferChunksResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_TransferChunksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_TransferChunksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.TransferChunksResponse.class, logproto.Logproto.TransferChunksResponse.Builder.class); } 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 { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.TransferChunksResponse)) { return super.equals(obj); } logproto.Logproto.TransferChunksResponse other = (logproto.Logproto.TransferChunksResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.TransferChunksResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TransferChunksResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TransferChunksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TransferChunksResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TransferChunksResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TransferChunksResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TransferChunksResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.TransferChunksResponse 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 logproto.Logproto.TransferChunksResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.TransferChunksResponse 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 logproto.Logproto.TransferChunksResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.TransferChunksResponse 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(logproto.Logproto.TransferChunksResponse 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 logproto.TransferChunksResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.TransferChunksResponse) logproto.Logproto.TransferChunksResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_TransferChunksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_TransferChunksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.TransferChunksResponse.class, logproto.Logproto.TransferChunksResponse.Builder.class); } // Construct using logproto.Logproto.TransferChunksResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_TransferChunksResponse_descriptor; } @java.lang.Override public logproto.Logproto.TransferChunksResponse getDefaultInstanceForType() { return logproto.Logproto.TransferChunksResponse.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.TransferChunksResponse build() { logproto.Logproto.TransferChunksResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.TransferChunksResponse buildPartial() { logproto.Logproto.TransferChunksResponse result = new logproto.Logproto.TransferChunksResponse(this); onBuilt(); return result; } @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 logproto.Logproto.TransferChunksResponse) { return mergeFrom((logproto.Logproto.TransferChunksResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.TransferChunksResponse other) { if (other == logproto.Logproto.TransferChunksResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.TransferChunksResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.TransferChunksResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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:logproto.TransferChunksResponse) } // @@protoc_insertion_point(class_scope:logproto.TransferChunksResponse) private static final logproto.Logproto.TransferChunksResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.TransferChunksResponse(); } public static logproto.Logproto.TransferChunksResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransferChunksResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransferChunksResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.TransferChunksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TailersCountRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:logproto.TailersCountRequest) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code logproto.TailersCountRequest} */ public static final class TailersCountRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.TailersCountRequest) TailersCountRequestOrBuilder { private static final long serialVersionUID = 0L; // Use TailersCountRequest.newBuilder() to construct. private TailersCountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TailersCountRequest() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TailersCountRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TailersCountRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_TailersCountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_TailersCountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.TailersCountRequest.class, logproto.Logproto.TailersCountRequest.Builder.class); } 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 { unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.TailersCountRequest)) { return super.equals(obj); } logproto.Logproto.TailersCountRequest other = (logproto.Logproto.TailersCountRequest) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.TailersCountRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TailersCountRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TailersCountRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TailersCountRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TailersCountRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TailersCountRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TailersCountRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.TailersCountRequest 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 logproto.Logproto.TailersCountRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.TailersCountRequest 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 logproto.Logproto.TailersCountRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.TailersCountRequest 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(logproto.Logproto.TailersCountRequest 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 logproto.TailersCountRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.TailersCountRequest) logproto.Logproto.TailersCountRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_TailersCountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_TailersCountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.TailersCountRequest.class, logproto.Logproto.TailersCountRequest.Builder.class); } // Construct using logproto.Logproto.TailersCountRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_TailersCountRequest_descriptor; } @java.lang.Override public logproto.Logproto.TailersCountRequest getDefaultInstanceForType() { return logproto.Logproto.TailersCountRequest.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.TailersCountRequest build() { logproto.Logproto.TailersCountRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.TailersCountRequest buildPartial() { logproto.Logproto.TailersCountRequest result = new logproto.Logproto.TailersCountRequest(this); onBuilt(); return result; } @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 logproto.Logproto.TailersCountRequest) { return mergeFrom((logproto.Logproto.TailersCountRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.TailersCountRequest other) { if (other == logproto.Logproto.TailersCountRequest.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.TailersCountRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.TailersCountRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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:logproto.TailersCountRequest) } // @@protoc_insertion_point(class_scope:logproto.TailersCountRequest) private static final logproto.Logproto.TailersCountRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.TailersCountRequest(); } public static logproto.Logproto.TailersCountRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TailersCountRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TailersCountRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.TailersCountRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface TailersCountResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:logproto.TailersCountResponse) com.google.protobuf.MessageOrBuilder { /** * uint32 count = 1; * @return The count. */ int getCount(); } /** * Protobuf type {@code logproto.TailersCountResponse} */ public static final class TailersCountResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:logproto.TailersCountResponse) TailersCountResponseOrBuilder { private static final long serialVersionUID = 0L; // Use TailersCountResponse.newBuilder() to construct. private TailersCountResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TailersCountResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TailersCountResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TailersCountResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { count_ = input.readUInt32(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_TailersCountResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_TailersCountResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.TailersCountResponse.class, logproto.Logproto.TailersCountResponse.Builder.class); } public static final int COUNT_FIELD_NUMBER = 1; private int count_; /** * uint32 count = 1; * @return The count. */ public int getCount() { return count_; } 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 (count_ != 0) { output.writeUInt32(1, count_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (count_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, count_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof logproto.Logproto.TailersCountResponse)) { return super.equals(obj); } logproto.Logproto.TailersCountResponse other = (logproto.Logproto.TailersCountResponse) obj; if (getCount() != other.getCount()) return false; if (!unknownFields.equals(other.unknownFields)) 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) + COUNT_FIELD_NUMBER; hash = (53 * hash) + getCount(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static logproto.Logproto.TailersCountResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TailersCountResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TailersCountResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TailersCountResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TailersCountResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static logproto.Logproto.TailersCountResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static logproto.Logproto.TailersCountResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.TailersCountResponse 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 logproto.Logproto.TailersCountResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static logproto.Logproto.TailersCountResponse 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 logproto.Logproto.TailersCountResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static logproto.Logproto.TailersCountResponse 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(logproto.Logproto.TailersCountResponse 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 logproto.TailersCountResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:logproto.TailersCountResponse) logproto.Logproto.TailersCountResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return logproto.Logproto.internal_static_logproto_TailersCountResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return logproto.Logproto.internal_static_logproto_TailersCountResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( logproto.Logproto.TailersCountResponse.class, logproto.Logproto.TailersCountResponse.Builder.class); } // Construct using logproto.Logproto.TailersCountResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); count_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return logproto.Logproto.internal_static_logproto_TailersCountResponse_descriptor; } @java.lang.Override public logproto.Logproto.TailersCountResponse getDefaultInstanceForType() { return logproto.Logproto.TailersCountResponse.getDefaultInstance(); } @java.lang.Override public logproto.Logproto.TailersCountResponse build() { logproto.Logproto.TailersCountResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public logproto.Logproto.TailersCountResponse buildPartial() { logproto.Logproto.TailersCountResponse result = new logproto.Logproto.TailersCountResponse(this); result.count_ = count_; onBuilt(); return result; } @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 logproto.Logproto.TailersCountResponse) { return mergeFrom((logproto.Logproto.TailersCountResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(logproto.Logproto.TailersCountResponse other) { if (other == logproto.Logproto.TailersCountResponse.getDefaultInstance()) return this; if (other.getCount() != 0) { setCount(other.getCount()); } this.mergeUnknownFields(other.unknownFields); 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 { logproto.Logproto.TailersCountResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (logproto.Logproto.TailersCountResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int count_ ; /** * uint32 count = 1; * @return The count. */ public int getCount() { return count_; } /** * uint32 count = 1; * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(int value) { count_ = value; onChanged(); return this; } /** * uint32 count = 1; * @return This builder for chaining. */ public Builder clearCount() { count_ = 0; 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:logproto.TailersCountResponse) } // @@protoc_insertion_point(class_scope:logproto.TailersCountResponse) private static final logproto.Logproto.TailersCountResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new logproto.Logproto.TailersCountResponse(); } public static logproto.Logproto.TailersCountResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TailersCountResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TailersCountResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public logproto.Logproto.TailersCountResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_PushRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_PushRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_PushResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_PushResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_QueryRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_QueryRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_SampleQueryRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_SampleQueryRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_SampleQueryResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_SampleQueryResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_QueryResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_QueryResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_LabelRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_LabelRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_LabelResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_LabelResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_StreamAdapter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_StreamAdapter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_EntryAdapter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_EntryAdapter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_Sample_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_Sample_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_Series_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_Series_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_TailRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_TailRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_TailResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_TailResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_SeriesRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_SeriesRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_SeriesResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_SeriesResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_SeriesIdentifier_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_SeriesIdentifier_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_SeriesIdentifier_LabelsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_SeriesIdentifier_LabelsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_DroppedStream_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_DroppedStream_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_TimeSeriesChunk_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_TimeSeriesChunk_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_LabelPair_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_LabelPair_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_Chunk_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_Chunk_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_TransferChunksResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_TransferChunksResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_TailersCountRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_TailersCountRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_logproto_TailersCountResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_logproto_TailersCountResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\016logproto.proto\022\010logproto\032\037google/proto" + "buf/timestamp.proto\032-github.com/gogo/pro" + "tobuf/gogoproto/gogo.proto\"N\n\013PushReques" + "t\022?\n\007streams\030\001 \003(\0132\027.logproto.StreamAdap" + "terB\025\352\336\037\007streams\332\336\037\006Stream\"\016\n\014PushRespon" + "se\"\353\001\n\014QueryRequest\022\020\n\010selector\030\001 \001(\t\022\r\n" + "\005limit\030\002 \001(\r\0223\n\005start\030\003 \001(\0132\032.google.pro" + "tobuf.TimestampB\010\220\337\037\001\310\336\037\000\0221\n\003end\030\004 \001(\0132\032" + ".google.protobuf.TimestampB\010\220\337\037\001\310\336\037\000\022&\n\t" + "direction\030\005 \001(\0162\023.logproto.Direction\022$\n\006" + "shards\030\007 \003(\tB\024\352\336\037\020shards,omitemptyJ\004\010\006\020\007" + "\"\264\001\n\022SampleQueryRequest\022\020\n\010selector\030\001 \001(" + "\t\0223\n\005start\030\002 \001(\0132\032.google.protobuf.Times" + "tampB\010\220\337\037\001\310\336\037\000\0221\n\003end\030\003 \001(\0132\032.google.pro" + "tobuf.TimestampB\010\220\337\037\001\310\336\037\000\022$\n\006shards\030\004 \003(" + "\tB\024\352\336\037\020shards,omitempty\"G\n\023SampleQueryRe" + "sponse\0220\n\006series\030\001 \003(\0132\020.logproto.Series" + "B\016\332\336\037\006Series\310\336\037\001\"I\n\rQueryResponse\0228\n\007str" + "eams\030\001 \003(\0132\027.logproto.StreamAdapterB\016\332\336\037" + "\006Stream\310\336\037\001\"\224\001\n\014LabelRequest\022\014\n\004name\030\001 \001" + "(\t\022\016\n\006values\030\002 \001(\010\0223\n\005start\030\003 \001(\0132\032.goog" + "le.protobuf.TimestampB\010\220\337\037\001\310\336\037\001\0221\n\003end\030\004" + " \001(\0132\032.google.protobuf.TimestampB\010\220\337\037\001\310\336" + "\037\001\"\037\n\rLabelResponse\022\016\n\006values\030\001 \003(\t\"e\n\rS" + "treamAdapter\022\032\n\006labels\030\001 \001(\tB\n\352\336\037\006labels" + "\0228\n\007entries\030\002 \003(\0132\026.logproto.EntryAdapte" + "rB\017\310\336\037\000\352\336\037\007entries\"e\n\014EntryAdapter\022=\n\tti" + "mestamp\030\001 \001(\0132\032.google.protobuf.Timestam" + "pB\016\220\337\037\001\310\336\037\000\352\336\037\002ts\022\026\n\004line\030\002 \001(\tB\010\352\336\037\004lin" + "e\"U\n\006Sample\022\031\n\ttimestamp\030\001 \001(\003B\006\352\336\037\002ts\022\030" + "\n\005value\030\002 \001(\001B\t\352\336\037\005value\022\026\n\004hash\030\003 \001(\004B\010" + "\352\336\037\004hash\"X\n\006Series\022\032\n\006labels\030\001 \001(\tB\n\352\336\037\006" + "labels\0222\n\007samples\030\002 \003(\0132\020.logproto.Sampl" + "eB\017\310\336\037\000\352\336\037\007samples\"x\n\013TailRequest\022\r\n\005que" + "ry\030\001 \001(\t\022\020\n\010delayFor\030\003 \001(\r\022\r\n\005limit\030\004 \001(" + "\r\0223\n\005start\030\005 \001(\0132\032.google.protobuf.Times" + "tampB\010\220\337\037\001\310\336\037\000J\004\010\002\020\003\"t\n\014TailResponse\0223\n\006" + "stream\030\001 \001(\0132\027.logproto.StreamAdapterB\n\332" + "\336\037\006Stream\022/\n\016droppedStreams\030\002 \003(\0132\027.logp" + "roto.DroppedStream\"\207\001\n\rSeriesRequest\0223\n\005" + "start\030\001 \001(\0132\032.google.protobuf.TimestampB" + "\010\220\337\037\001\310\336\037\000\0221\n\003end\030\002 \001(\0132\032.google.protobuf" + ".TimestampB\010\220\337\037\001\310\336\037\000\022\016\n\006groups\030\003 \003(\t\"B\n\016" + "SeriesResponse\0220\n\006series\030\001 \003(\0132\032.logprot" + "o.SeriesIdentifierB\004\310\336\037\000\"y\n\020SeriesIdenti" + "fier\0226\n\006labels\030\001 \003(\0132&.logproto.SeriesId" + "entifier.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003k" + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\205\001\n\rDroppedS" + "tream\0222\n\004from\030\001 \001(\0132\032.google.protobuf.Ti" + "mestampB\010\220\337\037\001\310\336\037\000\0220\n\002to\030\002 \001(\0132\032.google.p" + "rotobuf.TimestampB\010\220\337\037\001\310\336\037\000\022\016\n\006labels\030\003 " + "\001(\t\"\202\001\n\017TimeSeriesChunk\022\030\n\020from_ingester" + "_id\030\001 \001(\t\022\017\n\007user_id\030\002 \001(\t\022#\n\006labels\030\003 \003" + "(\0132\023.logproto.LabelPair\022\037\n\006chunks\030\004 \003(\0132" + "\017.logproto.Chunk\"(\n\tLabelPair\022\014\n\004name\030\001 " + "\001(\t\022\r\n\005value\030\002 \001(\t\"\025\n\005Chunk\022\014\n\004data\030\001 \001(" + "\014\"\030\n\026TransferChunksResponse\"\025\n\023TailersCo" + "untRequest\"%\n\024TailersCountResponse\022\r\n\005co" + "unt\030\001 \001(\r*&\n\tDirection\022\013\n\007FORWARD\020\000\022\014\n\010B" + "ACKWARD\020\0012A\n\006Pusher\0227\n\004Push\022\025.logproto.P" + "ushRequest\032\026.logproto.PushResponse\"\0002\236\003\n" + "\007Querier\022<\n\005Query\022\026.logproto.QueryReques" + "t\032\027.logproto.QueryResponse\"\0000\001\022N\n\013QueryS" + "ample\022\034.logproto.SampleQueryRequest\032\035.lo" + "gproto.SampleQueryResponse\"\0000\001\022:\n\005Label\022" + "\026.logproto.LabelRequest\032\027.logproto.Label" + "Response\"\000\0229\n\004Tail\022\025.logproto.TailReques" + "t\032\026.logproto.TailResponse\"\0000\001\022=\n\006Series\022" + "\027.logproto.SeriesRequest\032\030.logproto.Seri" + "esResponse\"\000\022O\n\014TailersCount\022\035.logproto." + "TailersCountRequest\032\036.logproto.TailersCo" + "untResponse\"\0002]\n\010Ingester\022Q\n\016TransferChu" + "nks\022\031.logproto.TimeSeriesChunk\032 .logprot" + "o.TransferChunksResponse\"\000(\001B&Z$github.c" + "om/grafana/loki/pkg/logprotob\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.GoGoProtos.getDescriptor(), }); internal_static_logproto_PushRequest_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_logproto_PushRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_PushRequest_descriptor, new java.lang.String[] { "Streams", }); internal_static_logproto_PushResponse_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_logproto_PushResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_PushResponse_descriptor, new java.lang.String[] { }); internal_static_logproto_QueryRequest_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_logproto_QueryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_QueryRequest_descriptor, new java.lang.String[] { "Selector", "Limit", "Start", "End", "Direction", "Shards", }); internal_static_logproto_SampleQueryRequest_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_logproto_SampleQueryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_SampleQueryRequest_descriptor, new java.lang.String[] { "Selector", "Start", "End", "Shards", }); internal_static_logproto_SampleQueryResponse_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_logproto_SampleQueryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_SampleQueryResponse_descriptor, new java.lang.String[] { "Series", }); internal_static_logproto_QueryResponse_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_logproto_QueryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_QueryResponse_descriptor, new java.lang.String[] { "Streams", }); internal_static_logproto_LabelRequest_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_logproto_LabelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_LabelRequest_descriptor, new java.lang.String[] { "Name", "Values", "Start", "End", }); internal_static_logproto_LabelResponse_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_logproto_LabelResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_LabelResponse_descriptor, new java.lang.String[] { "Values", }); internal_static_logproto_StreamAdapter_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_logproto_StreamAdapter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_StreamAdapter_descriptor, new java.lang.String[] { "Labels", "Entries", }); internal_static_logproto_EntryAdapter_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_logproto_EntryAdapter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_EntryAdapter_descriptor, new java.lang.String[] { "Timestamp", "Line", }); internal_static_logproto_Sample_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_logproto_Sample_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_Sample_descriptor, new java.lang.String[] { "Timestamp", "Value", "Hash", }); internal_static_logproto_Series_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_logproto_Series_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_Series_descriptor, new java.lang.String[] { "Labels", "Samples", }); internal_static_logproto_TailRequest_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_logproto_TailRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_TailRequest_descriptor, new java.lang.String[] { "Query", "DelayFor", "Limit", "Start", }); internal_static_logproto_TailResponse_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_logproto_TailResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_TailResponse_descriptor, new java.lang.String[] { "Stream", "DroppedStreams", }); internal_static_logproto_SeriesRequest_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_logproto_SeriesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_SeriesRequest_descriptor, new java.lang.String[] { "Start", "End", "Groups", }); internal_static_logproto_SeriesResponse_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_logproto_SeriesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_SeriesResponse_descriptor, new java.lang.String[] { "Series", }); internal_static_logproto_SeriesIdentifier_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_logproto_SeriesIdentifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_SeriesIdentifier_descriptor, new java.lang.String[] { "Labels", }); internal_static_logproto_SeriesIdentifier_LabelsEntry_descriptor = internal_static_logproto_SeriesIdentifier_descriptor.getNestedTypes().get(0); internal_static_logproto_SeriesIdentifier_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_SeriesIdentifier_LabelsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_logproto_DroppedStream_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_logproto_DroppedStream_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_DroppedStream_descriptor, new java.lang.String[] { "From", "To", "Labels", }); internal_static_logproto_TimeSeriesChunk_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_logproto_TimeSeriesChunk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_TimeSeriesChunk_descriptor, new java.lang.String[] { "FromIngesterId", "UserId", "Labels", "Chunks", }); internal_static_logproto_LabelPair_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_logproto_LabelPair_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_LabelPair_descriptor, new java.lang.String[] { "Name", "Value", }); internal_static_logproto_Chunk_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_logproto_Chunk_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_Chunk_descriptor, new java.lang.String[] { "Data", }); internal_static_logproto_TransferChunksResponse_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_logproto_TransferChunksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_TransferChunksResponse_descriptor, new java.lang.String[] { }); internal_static_logproto_TailersCountRequest_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_logproto_TailersCountRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_TailersCountRequest_descriptor, new java.lang.String[] { }); internal_static_logproto_TailersCountResponse_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_logproto_TailersCountResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_logproto_TailersCountResponse_descriptor, new java.lang.String[] { "Count", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.protobuf.GoGoProtos.customtype); registry.add(com.google.protobuf.GoGoProtos.jsontag); registry.add(com.google.protobuf.GoGoProtos.nullable); registry.add(com.google.protobuf.GoGoProtos.stdtime); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.GoGoProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy