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

com.lightstep.tracer.grpc.InternalMetrics Maven / Gradle / Ivy

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

package com.lightstep.tracer.grpc;

/**
 * Protobuf type {@code lightstep.collector.InternalMetrics}
 */
public  final class InternalMetrics extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:lightstep.collector.InternalMetrics)
    InternalMetricsOrBuilder {
private static final long serialVersionUID = 0L;
  // Use InternalMetrics.newBuilder() to construct.
  private InternalMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private InternalMetrics() {
    durationMicros_ = 0L;
    logs_ = java.util.Collections.emptyList();
    counts_ = java.util.Collections.emptyList();
    gauges_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private InternalMetrics(
      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 (startTimestamp_ != null) {
              subBuilder = startTimestamp_.toBuilder();
            }
            startTimestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(startTimestamp_);
              startTimestamp_ = subBuilder.buildPartial();
            }

            break;
          }
          case 16: {

            durationMicros_ = input.readUInt64();
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
              logs_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000004;
            }
            logs_.add(
                input.readMessage(com.lightstep.tracer.grpc.Log.parser(), extensionRegistry));
            break;
          }
          case 34: {
            if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
              counts_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000008;
            }
            counts_.add(
                input.readMessage(com.lightstep.tracer.grpc.MetricsSample.parser(), extensionRegistry));
            break;
          }
          case 42: {
            if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
              gauges_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000010;
            }
            gauges_.add(
                input.readMessage(com.lightstep.tracer.grpc.MetricsSample.parser(), extensionRegistry));
            break;
          }
          default: {
            if (!parseUnknownFieldProto3(
                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_ & 0x00000004) == 0x00000004)) {
        logs_ = java.util.Collections.unmodifiableList(logs_);
      }
      if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
        counts_ = java.util.Collections.unmodifiableList(counts_);
      }
      if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
        gauges_ = java.util.Collections.unmodifiableList(gauges_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.lightstep.tracer.grpc.Collector.internal_static_lightstep_collector_InternalMetrics_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.lightstep.tracer.grpc.Collector.internal_static_lightstep_collector_InternalMetrics_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.lightstep.tracer.grpc.InternalMetrics.class, com.lightstep.tracer.grpc.InternalMetrics.Builder.class);
  }

  private int bitField0_;
  public static final int START_TIMESTAMP_FIELD_NUMBER = 1;
  private com.google.protobuf.Timestamp startTimestamp_;
  /**
   * .google.protobuf.Timestamp start_timestamp = 1;
   */
  public boolean hasStartTimestamp() {
    return startTimestamp_ != null;
  }
  /**
   * .google.protobuf.Timestamp start_timestamp = 1;
   */
  public com.google.protobuf.Timestamp getStartTimestamp() {
    return startTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTimestamp_;
  }
  /**
   * .google.protobuf.Timestamp start_timestamp = 1;
   */
  public com.google.protobuf.TimestampOrBuilder getStartTimestampOrBuilder() {
    return getStartTimestamp();
  }

  public static final int DURATION_MICROS_FIELD_NUMBER = 2;
  private long durationMicros_;
  /**
   * uint64 duration_micros = 2;
   */
  public long getDurationMicros() {
    return durationMicros_;
  }

  public static final int LOGS_FIELD_NUMBER = 3;
  private java.util.List logs_;
  /**
   * repeated .lightstep.collector.Log logs = 3;
   */
  public java.util.List getLogsList() {
    return logs_;
  }
  /**
   * repeated .lightstep.collector.Log logs = 3;
   */
  public java.util.List 
      getLogsOrBuilderList() {
    return logs_;
  }
  /**
   * repeated .lightstep.collector.Log logs = 3;
   */
  public int getLogsCount() {
    return logs_.size();
  }
  /**
   * repeated .lightstep.collector.Log logs = 3;
   */
  public com.lightstep.tracer.grpc.Log getLogs(int index) {
    return logs_.get(index);
  }
  /**
   * repeated .lightstep.collector.Log logs = 3;
   */
  public com.lightstep.tracer.grpc.LogOrBuilder getLogsOrBuilder(
      int index) {
    return logs_.get(index);
  }

  public static final int COUNTS_FIELD_NUMBER = 4;
  private java.util.List counts_;
  /**
   * repeated .lightstep.collector.MetricsSample counts = 4;
   */
  public java.util.List getCountsList() {
    return counts_;
  }
  /**
   * repeated .lightstep.collector.MetricsSample counts = 4;
   */
  public java.util.List 
      getCountsOrBuilderList() {
    return counts_;
  }
  /**
   * repeated .lightstep.collector.MetricsSample counts = 4;
   */
  public int getCountsCount() {
    return counts_.size();
  }
  /**
   * repeated .lightstep.collector.MetricsSample counts = 4;
   */
  public com.lightstep.tracer.grpc.MetricsSample getCounts(int index) {
    return counts_.get(index);
  }
  /**
   * repeated .lightstep.collector.MetricsSample counts = 4;
   */
  public com.lightstep.tracer.grpc.MetricsSampleOrBuilder getCountsOrBuilder(
      int index) {
    return counts_.get(index);
  }

  public static final int GAUGES_FIELD_NUMBER = 5;
  private java.util.List gauges_;
  /**
   * repeated .lightstep.collector.MetricsSample gauges = 5;
   */
  public java.util.List getGaugesList() {
    return gauges_;
  }
  /**
   * repeated .lightstep.collector.MetricsSample gauges = 5;
   */
  public java.util.List 
      getGaugesOrBuilderList() {
    return gauges_;
  }
  /**
   * repeated .lightstep.collector.MetricsSample gauges = 5;
   */
  public int getGaugesCount() {
    return gauges_.size();
  }
  /**
   * repeated .lightstep.collector.MetricsSample gauges = 5;
   */
  public com.lightstep.tracer.grpc.MetricsSample getGauges(int index) {
    return gauges_.get(index);
  }
  /**
   * repeated .lightstep.collector.MetricsSample gauges = 5;
   */
  public com.lightstep.tracer.grpc.MetricsSampleOrBuilder getGaugesOrBuilder(
      int index) {
    return gauges_.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 (startTimestamp_ != null) {
      output.writeMessage(1, getStartTimestamp());
    }
    if (durationMicros_ != 0L) {
      output.writeUInt64(2, durationMicros_);
    }
    for (int i = 0; i < logs_.size(); i++) {
      output.writeMessage(3, logs_.get(i));
    }
    for (int i = 0; i < counts_.size(); i++) {
      output.writeMessage(4, counts_.get(i));
    }
    for (int i = 0; i < gauges_.size(); i++) {
      output.writeMessage(5, gauges_.get(i));
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (startTimestamp_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getStartTimestamp());
    }
    if (durationMicros_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(2, durationMicros_);
    }
    for (int i = 0; i < logs_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, logs_.get(i));
    }
    for (int i = 0; i < counts_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, counts_.get(i));
    }
    for (int i = 0; i < gauges_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(5, gauges_.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 com.lightstep.tracer.grpc.InternalMetrics)) {
      return super.equals(obj);
    }
    com.lightstep.tracer.grpc.InternalMetrics other = (com.lightstep.tracer.grpc.InternalMetrics) obj;

    boolean result = true;
    result = result && (hasStartTimestamp() == other.hasStartTimestamp());
    if (hasStartTimestamp()) {
      result = result && getStartTimestamp()
          .equals(other.getStartTimestamp());
    }
    result = result && (getDurationMicros()
        == other.getDurationMicros());
    result = result && getLogsList()
        .equals(other.getLogsList());
    result = result && getCountsList()
        .equals(other.getCountsList());
    result = result && getGaugesList()
        .equals(other.getGaugesList());
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasStartTimestamp()) {
      hash = (37 * hash) + START_TIMESTAMP_FIELD_NUMBER;
      hash = (53 * hash) + getStartTimestamp().hashCode();
    }
    hash = (37 * hash) + DURATION_MICROS_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getDurationMicros());
    if (getLogsCount() > 0) {
      hash = (37 * hash) + LOGS_FIELD_NUMBER;
      hash = (53 * hash) + getLogsList().hashCode();
    }
    if (getCountsCount() > 0) {
      hash = (37 * hash) + COUNTS_FIELD_NUMBER;
      hash = (53 * hash) + getCountsList().hashCode();
    }
    if (getGaugesCount() > 0) {
      hash = (37 * hash) + GAUGES_FIELD_NUMBER;
      hash = (53 * hash) + getGaugesList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.lightstep.tracer.grpc.InternalMetrics parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.lightstep.tracer.grpc.InternalMetrics parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.lightstep.tracer.grpc.InternalMetrics parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.lightstep.tracer.grpc.InternalMetrics parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.lightstep.tracer.grpc.InternalMetrics parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.lightstep.tracer.grpc.InternalMetrics parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.lightstep.tracer.grpc.InternalMetrics parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.lightstep.tracer.grpc.InternalMetrics parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.lightstep.tracer.grpc.InternalMetrics parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.lightstep.tracer.grpc.InternalMetrics parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.lightstep.tracer.grpc.InternalMetrics parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.lightstep.tracer.grpc.InternalMetrics parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.lightstep.tracer.grpc.InternalMetrics 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 lightstep.collector.InternalMetrics}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:lightstep.collector.InternalMetrics)
      com.lightstep.tracer.grpc.InternalMetricsOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.lightstep.tracer.grpc.Collector.internal_static_lightstep_collector_InternalMetrics_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.lightstep.tracer.grpc.Collector.internal_static_lightstep_collector_InternalMetrics_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.lightstep.tracer.grpc.InternalMetrics.class, com.lightstep.tracer.grpc.InternalMetrics.Builder.class);
    }

    // Construct using com.lightstep.tracer.grpc.InternalMetrics.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getLogsFieldBuilder();
        getCountsFieldBuilder();
        getGaugesFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (startTimestampBuilder_ == null) {
        startTimestamp_ = null;
      } else {
        startTimestamp_ = null;
        startTimestampBuilder_ = null;
      }
      durationMicros_ = 0L;

      if (logsBuilder_ == null) {
        logs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
      } else {
        logsBuilder_.clear();
      }
      if (countsBuilder_ == null) {
        counts_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
      } else {
        countsBuilder_.clear();
      }
      if (gaugesBuilder_ == null) {
        gauges_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000010);
      } else {
        gaugesBuilder_.clear();
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.lightstep.tracer.grpc.Collector.internal_static_lightstep_collector_InternalMetrics_descriptor;
    }

    @java.lang.Override
    public com.lightstep.tracer.grpc.InternalMetrics getDefaultInstanceForType() {
      return com.lightstep.tracer.grpc.InternalMetrics.getDefaultInstance();
    }

    @java.lang.Override
    public com.lightstep.tracer.grpc.InternalMetrics build() {
      com.lightstep.tracer.grpc.InternalMetrics result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.lightstep.tracer.grpc.InternalMetrics buildPartial() {
      com.lightstep.tracer.grpc.InternalMetrics result = new com.lightstep.tracer.grpc.InternalMetrics(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (startTimestampBuilder_ == null) {
        result.startTimestamp_ = startTimestamp_;
      } else {
        result.startTimestamp_ = startTimestampBuilder_.build();
      }
      result.durationMicros_ = durationMicros_;
      if (logsBuilder_ == null) {
        if (((bitField0_ & 0x00000004) == 0x00000004)) {
          logs_ = java.util.Collections.unmodifiableList(logs_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.logs_ = logs_;
      } else {
        result.logs_ = logsBuilder_.build();
      }
      if (countsBuilder_ == null) {
        if (((bitField0_ & 0x00000008) == 0x00000008)) {
          counts_ = java.util.Collections.unmodifiableList(counts_);
          bitField0_ = (bitField0_ & ~0x00000008);
        }
        result.counts_ = counts_;
      } else {
        result.counts_ = countsBuilder_.build();
      }
      if (gaugesBuilder_ == null) {
        if (((bitField0_ & 0x00000010) == 0x00000010)) {
          gauges_ = java.util.Collections.unmodifiableList(gauges_);
          bitField0_ = (bitField0_ & ~0x00000010);
        }
        result.gauges_ = gauges_;
      } else {
        result.gauges_ = gaugesBuilder_.build();
      }
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return (Builder) super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.lightstep.tracer.grpc.InternalMetrics) {
        return mergeFrom((com.lightstep.tracer.grpc.InternalMetrics)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.lightstep.tracer.grpc.InternalMetrics other) {
      if (other == com.lightstep.tracer.grpc.InternalMetrics.getDefaultInstance()) return this;
      if (other.hasStartTimestamp()) {
        mergeStartTimestamp(other.getStartTimestamp());
      }
      if (other.getDurationMicros() != 0L) {
        setDurationMicros(other.getDurationMicros());
      }
      if (logsBuilder_ == null) {
        if (!other.logs_.isEmpty()) {
          if (logs_.isEmpty()) {
            logs_ = other.logs_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureLogsIsMutable();
            logs_.addAll(other.logs_);
          }
          onChanged();
        }
      } else {
        if (!other.logs_.isEmpty()) {
          if (logsBuilder_.isEmpty()) {
            logsBuilder_.dispose();
            logsBuilder_ = null;
            logs_ = other.logs_;
            bitField0_ = (bitField0_ & ~0x00000004);
            logsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getLogsFieldBuilder() : null;
          } else {
            logsBuilder_.addAllMessages(other.logs_);
          }
        }
      }
      if (countsBuilder_ == null) {
        if (!other.counts_.isEmpty()) {
          if (counts_.isEmpty()) {
            counts_ = other.counts_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureCountsIsMutable();
            counts_.addAll(other.counts_);
          }
          onChanged();
        }
      } else {
        if (!other.counts_.isEmpty()) {
          if (countsBuilder_.isEmpty()) {
            countsBuilder_.dispose();
            countsBuilder_ = null;
            counts_ = other.counts_;
            bitField0_ = (bitField0_ & ~0x00000008);
            countsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getCountsFieldBuilder() : null;
          } else {
            countsBuilder_.addAllMessages(other.counts_);
          }
        }
      }
      if (gaugesBuilder_ == null) {
        if (!other.gauges_.isEmpty()) {
          if (gauges_.isEmpty()) {
            gauges_ = other.gauges_;
            bitField0_ = (bitField0_ & ~0x00000010);
          } else {
            ensureGaugesIsMutable();
            gauges_.addAll(other.gauges_);
          }
          onChanged();
        }
      } else {
        if (!other.gauges_.isEmpty()) {
          if (gaugesBuilder_.isEmpty()) {
            gaugesBuilder_.dispose();
            gaugesBuilder_ = null;
            gauges_ = other.gauges_;
            bitField0_ = (bitField0_ & ~0x00000010);
            gaugesBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getGaugesFieldBuilder() : null;
          } else {
            gaugesBuilder_.addAllMessages(other.gauges_);
          }
        }
      }
      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 {
      com.lightstep.tracer.grpc.InternalMetrics parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.lightstep.tracer.grpc.InternalMetrics) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private com.google.protobuf.Timestamp startTimestamp_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimestampBuilder_;
    /**
     * .google.protobuf.Timestamp start_timestamp = 1;
     */
    public boolean hasStartTimestamp() {
      return startTimestampBuilder_ != null || startTimestamp_ != null;
    }
    /**
     * .google.protobuf.Timestamp start_timestamp = 1;
     */
    public com.google.protobuf.Timestamp getStartTimestamp() {
      if (startTimestampBuilder_ == null) {
        return startTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTimestamp_;
      } else {
        return startTimestampBuilder_.getMessage();
      }
    }
    /**
     * .google.protobuf.Timestamp start_timestamp = 1;
     */
    public Builder setStartTimestamp(com.google.protobuf.Timestamp value) {
      if (startTimestampBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        startTimestamp_ = value;
        onChanged();
      } else {
        startTimestampBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .google.protobuf.Timestamp start_timestamp = 1;
     */
    public Builder setStartTimestamp(
        com.google.protobuf.Timestamp.Builder builderForValue) {
      if (startTimestampBuilder_ == null) {
        startTimestamp_ = builderForValue.build();
        onChanged();
      } else {
        startTimestampBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .google.protobuf.Timestamp start_timestamp = 1;
     */
    public Builder mergeStartTimestamp(com.google.protobuf.Timestamp value) {
      if (startTimestampBuilder_ == null) {
        if (startTimestamp_ != null) {
          startTimestamp_ =
            com.google.protobuf.Timestamp.newBuilder(startTimestamp_).mergeFrom(value).buildPartial();
        } else {
          startTimestamp_ = value;
        }
        onChanged();
      } else {
        startTimestampBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .google.protobuf.Timestamp start_timestamp = 1;
     */
    public Builder clearStartTimestamp() {
      if (startTimestampBuilder_ == null) {
        startTimestamp_ = null;
        onChanged();
      } else {
        startTimestamp_ = null;
        startTimestampBuilder_ = null;
      }

      return this;
    }
    /**
     * .google.protobuf.Timestamp start_timestamp = 1;
     */
    public com.google.protobuf.Timestamp.Builder getStartTimestampBuilder() {
      
      onChanged();
      return getStartTimestampFieldBuilder().getBuilder();
    }
    /**
     * .google.protobuf.Timestamp start_timestamp = 1;
     */
    public com.google.protobuf.TimestampOrBuilder getStartTimestampOrBuilder() {
      if (startTimestampBuilder_ != null) {
        return startTimestampBuilder_.getMessageOrBuilder();
      } else {
        return startTimestamp_ == null ?
            com.google.protobuf.Timestamp.getDefaultInstance() : startTimestamp_;
      }
    }
    /**
     * .google.protobuf.Timestamp start_timestamp = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
        getStartTimestampFieldBuilder() {
      if (startTimestampBuilder_ == null) {
        startTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                getStartTimestamp(),
                getParentForChildren(),
                isClean());
        startTimestamp_ = null;
      }
      return startTimestampBuilder_;
    }

    private long durationMicros_ ;
    /**
     * uint64 duration_micros = 2;
     */
    public long getDurationMicros() {
      return durationMicros_;
    }
    /**
     * uint64 duration_micros = 2;
     */
    public Builder setDurationMicros(long value) {
      
      durationMicros_ = value;
      onChanged();
      return this;
    }
    /**
     * uint64 duration_micros = 2;
     */
    public Builder clearDurationMicros() {
      
      durationMicros_ = 0L;
      onChanged();
      return this;
    }

    private java.util.List logs_ =
      java.util.Collections.emptyList();
    private void ensureLogsIsMutable() {
      if (!((bitField0_ & 0x00000004) == 0x00000004)) {
        logs_ = new java.util.ArrayList(logs_);
        bitField0_ |= 0x00000004;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.lightstep.tracer.grpc.Log, com.lightstep.tracer.grpc.Log.Builder, com.lightstep.tracer.grpc.LogOrBuilder> logsBuilder_;

    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public java.util.List getLogsList() {
      if (logsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(logs_);
      } else {
        return logsBuilder_.getMessageList();
      }
    }
    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public int getLogsCount() {
      if (logsBuilder_ == null) {
        return logs_.size();
      } else {
        return logsBuilder_.getCount();
      }
    }
    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public com.lightstep.tracer.grpc.Log getLogs(int index) {
      if (logsBuilder_ == null) {
        return logs_.get(index);
      } else {
        return logsBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public Builder setLogs(
        int index, com.lightstep.tracer.grpc.Log value) {
      if (logsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLogsIsMutable();
        logs_.set(index, value);
        onChanged();
      } else {
        logsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public Builder setLogs(
        int index, com.lightstep.tracer.grpc.Log.Builder builderForValue) {
      if (logsBuilder_ == null) {
        ensureLogsIsMutable();
        logs_.set(index, builderForValue.build());
        onChanged();
      } else {
        logsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public Builder addLogs(com.lightstep.tracer.grpc.Log value) {
      if (logsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLogsIsMutable();
        logs_.add(value);
        onChanged();
      } else {
        logsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public Builder addLogs(
        int index, com.lightstep.tracer.grpc.Log value) {
      if (logsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLogsIsMutable();
        logs_.add(index, value);
        onChanged();
      } else {
        logsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public Builder addLogs(
        com.lightstep.tracer.grpc.Log.Builder builderForValue) {
      if (logsBuilder_ == null) {
        ensureLogsIsMutable();
        logs_.add(builderForValue.build());
        onChanged();
      } else {
        logsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public Builder addLogs(
        int index, com.lightstep.tracer.grpc.Log.Builder builderForValue) {
      if (logsBuilder_ == null) {
        ensureLogsIsMutable();
        logs_.add(index, builderForValue.build());
        onChanged();
      } else {
        logsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public Builder addAllLogs(
        java.lang.Iterable values) {
      if (logsBuilder_ == null) {
        ensureLogsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, logs_);
        onChanged();
      } else {
        logsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public Builder clearLogs() {
      if (logsBuilder_ == null) {
        logs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        logsBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public Builder removeLogs(int index) {
      if (logsBuilder_ == null) {
        ensureLogsIsMutable();
        logs_.remove(index);
        onChanged();
      } else {
        logsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public com.lightstep.tracer.grpc.Log.Builder getLogsBuilder(
        int index) {
      return getLogsFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public com.lightstep.tracer.grpc.LogOrBuilder getLogsOrBuilder(
        int index) {
      if (logsBuilder_ == null) {
        return logs_.get(index);  } else {
        return logsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public java.util.List 
         getLogsOrBuilderList() {
      if (logsBuilder_ != null) {
        return logsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(logs_);
      }
    }
    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public com.lightstep.tracer.grpc.Log.Builder addLogsBuilder() {
      return getLogsFieldBuilder().addBuilder(
          com.lightstep.tracer.grpc.Log.getDefaultInstance());
    }
    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public com.lightstep.tracer.grpc.Log.Builder addLogsBuilder(
        int index) {
      return getLogsFieldBuilder().addBuilder(
          index, com.lightstep.tracer.grpc.Log.getDefaultInstance());
    }
    /**
     * repeated .lightstep.collector.Log logs = 3;
     */
    public java.util.List 
         getLogsBuilderList() {
      return getLogsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.lightstep.tracer.grpc.Log, com.lightstep.tracer.grpc.Log.Builder, com.lightstep.tracer.grpc.LogOrBuilder> 
        getLogsFieldBuilder() {
      if (logsBuilder_ == null) {
        logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.lightstep.tracer.grpc.Log, com.lightstep.tracer.grpc.Log.Builder, com.lightstep.tracer.grpc.LogOrBuilder>(
                logs_,
                ((bitField0_ & 0x00000004) == 0x00000004),
                getParentForChildren(),
                isClean());
        logs_ = null;
      }
      return logsBuilder_;
    }

    private java.util.List counts_ =
      java.util.Collections.emptyList();
    private void ensureCountsIsMutable() {
      if (!((bitField0_ & 0x00000008) == 0x00000008)) {
        counts_ = new java.util.ArrayList(counts_);
        bitField0_ |= 0x00000008;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.lightstep.tracer.grpc.MetricsSample, com.lightstep.tracer.grpc.MetricsSample.Builder, com.lightstep.tracer.grpc.MetricsSampleOrBuilder> countsBuilder_;

    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public java.util.List getCountsList() {
      if (countsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(counts_);
      } else {
        return countsBuilder_.getMessageList();
      }
    }
    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public int getCountsCount() {
      if (countsBuilder_ == null) {
        return counts_.size();
      } else {
        return countsBuilder_.getCount();
      }
    }
    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public com.lightstep.tracer.grpc.MetricsSample getCounts(int index) {
      if (countsBuilder_ == null) {
        return counts_.get(index);
      } else {
        return countsBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public Builder setCounts(
        int index, com.lightstep.tracer.grpc.MetricsSample value) {
      if (countsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureCountsIsMutable();
        counts_.set(index, value);
        onChanged();
      } else {
        countsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public Builder setCounts(
        int index, com.lightstep.tracer.grpc.MetricsSample.Builder builderForValue) {
      if (countsBuilder_ == null) {
        ensureCountsIsMutable();
        counts_.set(index, builderForValue.build());
        onChanged();
      } else {
        countsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public Builder addCounts(com.lightstep.tracer.grpc.MetricsSample value) {
      if (countsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureCountsIsMutable();
        counts_.add(value);
        onChanged();
      } else {
        countsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public Builder addCounts(
        int index, com.lightstep.tracer.grpc.MetricsSample value) {
      if (countsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureCountsIsMutable();
        counts_.add(index, value);
        onChanged();
      } else {
        countsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public Builder addCounts(
        com.lightstep.tracer.grpc.MetricsSample.Builder builderForValue) {
      if (countsBuilder_ == null) {
        ensureCountsIsMutable();
        counts_.add(builderForValue.build());
        onChanged();
      } else {
        countsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public Builder addCounts(
        int index, com.lightstep.tracer.grpc.MetricsSample.Builder builderForValue) {
      if (countsBuilder_ == null) {
        ensureCountsIsMutable();
        counts_.add(index, builderForValue.build());
        onChanged();
      } else {
        countsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public Builder addAllCounts(
        java.lang.Iterable values) {
      if (countsBuilder_ == null) {
        ensureCountsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, counts_);
        onChanged();
      } else {
        countsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public Builder clearCounts() {
      if (countsBuilder_ == null) {
        counts_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
      } else {
        countsBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public Builder removeCounts(int index) {
      if (countsBuilder_ == null) {
        ensureCountsIsMutable();
        counts_.remove(index);
        onChanged();
      } else {
        countsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public com.lightstep.tracer.grpc.MetricsSample.Builder getCountsBuilder(
        int index) {
      return getCountsFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public com.lightstep.tracer.grpc.MetricsSampleOrBuilder getCountsOrBuilder(
        int index) {
      if (countsBuilder_ == null) {
        return counts_.get(index);  } else {
        return countsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public java.util.List 
         getCountsOrBuilderList() {
      if (countsBuilder_ != null) {
        return countsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(counts_);
      }
    }
    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public com.lightstep.tracer.grpc.MetricsSample.Builder addCountsBuilder() {
      return getCountsFieldBuilder().addBuilder(
          com.lightstep.tracer.grpc.MetricsSample.getDefaultInstance());
    }
    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public com.lightstep.tracer.grpc.MetricsSample.Builder addCountsBuilder(
        int index) {
      return getCountsFieldBuilder().addBuilder(
          index, com.lightstep.tracer.grpc.MetricsSample.getDefaultInstance());
    }
    /**
     * repeated .lightstep.collector.MetricsSample counts = 4;
     */
    public java.util.List 
         getCountsBuilderList() {
      return getCountsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.lightstep.tracer.grpc.MetricsSample, com.lightstep.tracer.grpc.MetricsSample.Builder, com.lightstep.tracer.grpc.MetricsSampleOrBuilder> 
        getCountsFieldBuilder() {
      if (countsBuilder_ == null) {
        countsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.lightstep.tracer.grpc.MetricsSample, com.lightstep.tracer.grpc.MetricsSample.Builder, com.lightstep.tracer.grpc.MetricsSampleOrBuilder>(
                counts_,
                ((bitField0_ & 0x00000008) == 0x00000008),
                getParentForChildren(),
                isClean());
        counts_ = null;
      }
      return countsBuilder_;
    }

    private java.util.List gauges_ =
      java.util.Collections.emptyList();
    private void ensureGaugesIsMutable() {
      if (!((bitField0_ & 0x00000010) == 0x00000010)) {
        gauges_ = new java.util.ArrayList(gauges_);
        bitField0_ |= 0x00000010;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.lightstep.tracer.grpc.MetricsSample, com.lightstep.tracer.grpc.MetricsSample.Builder, com.lightstep.tracer.grpc.MetricsSampleOrBuilder> gaugesBuilder_;

    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public java.util.List getGaugesList() {
      if (gaugesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(gauges_);
      } else {
        return gaugesBuilder_.getMessageList();
      }
    }
    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public int getGaugesCount() {
      if (gaugesBuilder_ == null) {
        return gauges_.size();
      } else {
        return gaugesBuilder_.getCount();
      }
    }
    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public com.lightstep.tracer.grpc.MetricsSample getGauges(int index) {
      if (gaugesBuilder_ == null) {
        return gauges_.get(index);
      } else {
        return gaugesBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public Builder setGauges(
        int index, com.lightstep.tracer.grpc.MetricsSample value) {
      if (gaugesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureGaugesIsMutable();
        gauges_.set(index, value);
        onChanged();
      } else {
        gaugesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public Builder setGauges(
        int index, com.lightstep.tracer.grpc.MetricsSample.Builder builderForValue) {
      if (gaugesBuilder_ == null) {
        ensureGaugesIsMutable();
        gauges_.set(index, builderForValue.build());
        onChanged();
      } else {
        gaugesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public Builder addGauges(com.lightstep.tracer.grpc.MetricsSample value) {
      if (gaugesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureGaugesIsMutable();
        gauges_.add(value);
        onChanged();
      } else {
        gaugesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public Builder addGauges(
        int index, com.lightstep.tracer.grpc.MetricsSample value) {
      if (gaugesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureGaugesIsMutable();
        gauges_.add(index, value);
        onChanged();
      } else {
        gaugesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public Builder addGauges(
        com.lightstep.tracer.grpc.MetricsSample.Builder builderForValue) {
      if (gaugesBuilder_ == null) {
        ensureGaugesIsMutable();
        gauges_.add(builderForValue.build());
        onChanged();
      } else {
        gaugesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public Builder addGauges(
        int index, com.lightstep.tracer.grpc.MetricsSample.Builder builderForValue) {
      if (gaugesBuilder_ == null) {
        ensureGaugesIsMutable();
        gauges_.add(index, builderForValue.build());
        onChanged();
      } else {
        gaugesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public Builder addAllGauges(
        java.lang.Iterable values) {
      if (gaugesBuilder_ == null) {
        ensureGaugesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, gauges_);
        onChanged();
      } else {
        gaugesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public Builder clearGauges() {
      if (gaugesBuilder_ == null) {
        gauges_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000010);
        onChanged();
      } else {
        gaugesBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public Builder removeGauges(int index) {
      if (gaugesBuilder_ == null) {
        ensureGaugesIsMutable();
        gauges_.remove(index);
        onChanged();
      } else {
        gaugesBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public com.lightstep.tracer.grpc.MetricsSample.Builder getGaugesBuilder(
        int index) {
      return getGaugesFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public com.lightstep.tracer.grpc.MetricsSampleOrBuilder getGaugesOrBuilder(
        int index) {
      if (gaugesBuilder_ == null) {
        return gauges_.get(index);  } else {
        return gaugesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public java.util.List 
         getGaugesOrBuilderList() {
      if (gaugesBuilder_ != null) {
        return gaugesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(gauges_);
      }
    }
    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public com.lightstep.tracer.grpc.MetricsSample.Builder addGaugesBuilder() {
      return getGaugesFieldBuilder().addBuilder(
          com.lightstep.tracer.grpc.MetricsSample.getDefaultInstance());
    }
    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public com.lightstep.tracer.grpc.MetricsSample.Builder addGaugesBuilder(
        int index) {
      return getGaugesFieldBuilder().addBuilder(
          index, com.lightstep.tracer.grpc.MetricsSample.getDefaultInstance());
    }
    /**
     * repeated .lightstep.collector.MetricsSample gauges = 5;
     */
    public java.util.List 
         getGaugesBuilderList() {
      return getGaugesFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.lightstep.tracer.grpc.MetricsSample, com.lightstep.tracer.grpc.MetricsSample.Builder, com.lightstep.tracer.grpc.MetricsSampleOrBuilder> 
        getGaugesFieldBuilder() {
      if (gaugesBuilder_ == null) {
        gaugesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.lightstep.tracer.grpc.MetricsSample, com.lightstep.tracer.grpc.MetricsSample.Builder, com.lightstep.tracer.grpc.MetricsSampleOrBuilder>(
                gauges_,
                ((bitField0_ & 0x00000010) == 0x00000010),
                getParentForChildren(),
                isClean());
        gauges_ = null;
      }
      return gaugesBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:lightstep.collector.InternalMetrics)
  }

  // @@protoc_insertion_point(class_scope:lightstep.collector.InternalMetrics)
  private static final com.lightstep.tracer.grpc.InternalMetrics DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.lightstep.tracer.grpc.InternalMetrics();
  }

  public static com.lightstep.tracer.grpc.InternalMetrics getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public InternalMetrics parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new InternalMetrics(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 com.lightstep.tracer.grpc.InternalMetrics getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy