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

io.prometheus.client.Metrics Maven / Gradle / Ivy

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

package io.prometheus.client;

public final class Metrics {
  private Metrics() {}
  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 io.prometheus.client.MetricType}
   */
  public enum MetricType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * COUNTER = 0;
     */
    COUNTER(0),
    /**
     * GAUGE = 1;
     */
    GAUGE(1),
    /**
     * SUMMARY = 2;
     */
    SUMMARY(2),
    /**
     * UNTYPED = 3;
     */
    UNTYPED(3),
    /**
     * HISTOGRAM = 4;
     */
    HISTOGRAM(4),
    ;

    /**
     * COUNTER = 0;
     */
    public static final int COUNTER_VALUE = 0;
    /**
     * GAUGE = 1;
     */
    public static final int GAUGE_VALUE = 1;
    /**
     * SUMMARY = 2;
     */
    public static final int SUMMARY_VALUE = 2;
    /**
     * UNTYPED = 3;
     */
    public static final int UNTYPED_VALUE = 3;
    /**
     * HISTOGRAM = 4;
     */
    public static final int HISTOGRAM_VALUE = 4;


    public final int getNumber() {
      return value;
    }

    /**
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static MetricType valueOf(int value) {
      return forNumber(value);
    }

    public static MetricType forNumber(int value) {
      switch (value) {
        case 0: return COUNTER;
        case 1: return GAUGE;
        case 2: return SUMMARY;
        case 3: return UNTYPED;
        case 4: return HISTOGRAM;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        MetricType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public MetricType findValueByNumber(int number) {
              return MetricType.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 io.prometheus.client.Metrics.getDescriptor().getEnumTypes().get(0);
    }

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

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

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:io.prometheus.client.MetricType)
  }

  public interface LabelPairOrBuilder extends
      // @@protoc_insertion_point(interface_extends:io.prometheus.client.LabelPair)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional string name = 1;
     */
    boolean hasName();
    /**
     * optional string name = 1;
     */
    java.lang.String getName();
    /**
     * optional string name = 1;
     */
    com.google.protobuf.ByteString
        getNameBytes();

    /**
     * optional string value = 2;
     */
    boolean hasValue();
    /**
     * optional string value = 2;
     */
    java.lang.String getValue();
    /**
     * optional string value = 2;
     */
    com.google.protobuf.ByteString
        getValueBytes();
  }
  /**
   * Protobuf type {@code io.prometheus.client.LabelPair}
   */
  public  static final class LabelPair extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:io.prometheus.client.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();
      }
      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.ByteString bs = input.readBytes();
              bitField0_ |= 0x00000001;
              name_ = bs;
              break;
            }
            case 18: {
              com.google.protobuf.ByteString bs = input.readBytes();
              bitField0_ |= 0x00000002;
              value_ = bs;
              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 io.prometheus.client.Metrics.internal_static_io_prometheus_client_LabelPair_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.prometheus.client.Metrics.internal_static_io_prometheus_client_LabelPair_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.prometheus.client.Metrics.LabelPair.class, io.prometheus.client.Metrics.LabelPair.Builder.class);
    }

    private int bitField0_;
    public static final int NAME_FIELD_NUMBER = 1;
    private volatile java.lang.Object name_;
    /**
     * optional string name = 1;
     */
    public boolean hasName() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional string name = 1;
     */
    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();
        if (bs.isValidUtf8()) {
          name_ = s;
        }
        return s;
      }
    }
    /**
     * optional string name = 1;
     */
    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_;
    /**
     * optional string value = 2;
     */
    public boolean hasValue() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional string value = 2;
     */
    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();
        if (bs.isValidUtf8()) {
          value_ = s;
        }
        return s;
      }
    }
    /**
     * optional string value = 2;
     */
    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 (((bitField0_ & 0x00000001) != 0)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        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 (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        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 io.prometheus.client.Metrics.LabelPair)) {
        return super.equals(obj);
      }
      io.prometheus.client.Metrics.LabelPair other = (io.prometheus.client.Metrics.LabelPair) obj;

      if (hasName() != other.hasName()) return false;
      if (hasName()) {
        if (!getName()
            .equals(other.getName())) return false;
      }
      if (hasValue() != other.hasValue()) return false;
      if (hasValue()) {
        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();
      if (hasName()) {
        hash = (37 * hash) + NAME_FIELD_NUMBER;
        hash = (53 * hash) + getName().hashCode();
      }
      if (hasValue()) {
        hash = (37 * hash) + VALUE_FIELD_NUMBER;
        hash = (53 * hash) + getValue().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.prometheus.client.Metrics.internal_static_io_prometheus_client_LabelPair_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.prometheus.client.Metrics.LabelPair.class, io.prometheus.client.Metrics.LabelPair.Builder.class);
      }

      // Construct using io.prometheus.client.Metrics.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_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        value_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.prometheus.client.Metrics.internal_static_io_prometheus_client_LabelPair_descriptor;
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.LabelPair getDefaultInstanceForType() {
        return io.prometheus.client.Metrics.LabelPair.getDefaultInstance();
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.LabelPair build() {
        io.prometheus.client.Metrics.LabelPair result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.LabelPair buildPartial() {
        io.prometheus.client.Metrics.LabelPair result = new io.prometheus.client.Metrics.LabelPair(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          to_bitField0_ |= 0x00000001;
        }
        result.name_ = name_;
        if (((from_bitField0_ & 0x00000002) != 0)) {
          to_bitField0_ |= 0x00000002;
        }
        result.value_ = value_;
        result.bitField0_ = to_bitField0_;
        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 io.prometheus.client.Metrics.LabelPair) {
          return mergeFrom((io.prometheus.client.Metrics.LabelPair)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.prometheus.client.Metrics.LabelPair other) {
        if (other == io.prometheus.client.Metrics.LabelPair.getDefaultInstance()) return this;
        if (other.hasName()) {
          bitField0_ |= 0x00000001;
          name_ = other.name_;
          onChanged();
        }
        if (other.hasValue()) {
          bitField0_ |= 0x00000002;
          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 {
        io.prometheus.client.Metrics.LabelPair parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (io.prometheus.client.Metrics.LabelPair) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.lang.Object name_ = "";
      /**
       * optional string name = 1;
       */
      public boolean hasName() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * optional string name = 1;
       */
      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();
          if (bs.isValidUtf8()) {
            name_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string name = 1;
       */
      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;
        }
      }
      /**
       * optional string name = 1;
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string name = 1;
       */
      public Builder clearName() {
        bitField0_ = (bitField0_ & ~0x00000001);
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * optional string name = 1;
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        name_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object value_ = "";
      /**
       * optional string value = 2;
       */
      public boolean hasValue() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * optional string value = 2;
       */
      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();
          if (bs.isValidUtf8()) {
            value_ = s;
          }
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string value = 2;
       */
      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;
        }
      }
      /**
       * optional string value = 2;
       */
      public Builder setValue(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        value_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string value = 2;
       */
      public Builder clearValue() {
        bitField0_ = (bitField0_ & ~0x00000002);
        value_ = getDefaultInstance().getValue();
        onChanged();
        return this;
      }
      /**
       * optional string value = 2;
       */
      public Builder setValueBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        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:io.prometheus.client.LabelPair)
    }

    // @@protoc_insertion_point(class_scope:io.prometheus.client.LabelPair)
    private static final io.prometheus.client.Metrics.LabelPair DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.prometheus.client.Metrics.LabelPair();
    }

    public static io.prometheus.client.Metrics.LabelPair getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public 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 io.prometheus.client.Metrics.LabelPair getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface GaugeOrBuilder extends
      // @@protoc_insertion_point(interface_extends:io.prometheus.client.Gauge)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional double value = 1;
     */
    boolean hasValue();
    /**
     * optional double value = 1;
     */
    double getValue();
  }
  /**
   * Protobuf type {@code io.prometheus.client.Gauge}
   */
  public  static final class Gauge extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:io.prometheus.client.Gauge)
      GaugeOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Gauge.newBuilder() to construct.
    private Gauge(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private Gauge() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Gauge(
        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 9: {
              bitField0_ |= 0x00000001;
              value_ = input.readDouble();
              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 io.prometheus.client.Metrics.internal_static_io_prometheus_client_Gauge_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Gauge_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.prometheus.client.Metrics.Gauge.class, io.prometheus.client.Metrics.Gauge.Builder.class);
    }

    private int bitField0_;
    public static final int VALUE_FIELD_NUMBER = 1;
    private double value_;
    /**
     * optional double value = 1;
     */
    public boolean hasValue() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional double value = 1;
     */
    public double getValue() {
      return value_;
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeDouble(1, value_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(1, 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 io.prometheus.client.Metrics.Gauge)) {
        return super.equals(obj);
      }
      io.prometheus.client.Metrics.Gauge other = (io.prometheus.client.Metrics.Gauge) obj;

      if (hasValue() != other.hasValue()) return false;
      if (hasValue()) {
        if (java.lang.Double.doubleToLongBits(getValue())
            != java.lang.Double.doubleToLongBits(
                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();
      if (hasValue()) {
        hash = (37 * hash) + VALUE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            java.lang.Double.doubleToLongBits(getValue()));
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Gauge_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.prometheus.client.Metrics.Gauge.class, io.prometheus.client.Metrics.Gauge.Builder.class);
      }

      // Construct using io.prometheus.client.Metrics.Gauge.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();
        value_ = 0D;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Gauge_descriptor;
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.Gauge getDefaultInstanceForType() {
        return io.prometheus.client.Metrics.Gauge.getDefaultInstance();
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.Gauge build() {
        io.prometheus.client.Metrics.Gauge result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.Gauge buildPartial() {
        io.prometheus.client.Metrics.Gauge result = new io.prometheus.client.Metrics.Gauge(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.value_ = value_;
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ = to_bitField0_;
        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 io.prometheus.client.Metrics.Gauge) {
          return mergeFrom((io.prometheus.client.Metrics.Gauge)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.prometheus.client.Metrics.Gauge other) {
        if (other == io.prometheus.client.Metrics.Gauge.getDefaultInstance()) return this;
        if (other.hasValue()) {
          setValue(other.getValue());
        }
        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 {
        io.prometheus.client.Metrics.Gauge parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (io.prometheus.client.Metrics.Gauge) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private double value_ ;
      /**
       * optional double value = 1;
       */
      public boolean hasValue() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * optional double value = 1;
       */
      public double getValue() {
        return value_;
      }
      /**
       * optional double value = 1;
       */
      public Builder setValue(double value) {
        bitField0_ |= 0x00000001;
        value_ = value;
        onChanged();
        return this;
      }
      /**
       * optional double value = 1;
       */
      public Builder clearValue() {
        bitField0_ = (bitField0_ & ~0x00000001);
        value_ = 0D;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:io.prometheus.client.Gauge)
    }

    // @@protoc_insertion_point(class_scope:io.prometheus.client.Gauge)
    private static final io.prometheus.client.Metrics.Gauge DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.prometheus.client.Metrics.Gauge();
    }

    public static io.prometheus.client.Metrics.Gauge getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Gauge parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Gauge(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 io.prometheus.client.Metrics.Gauge getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface CounterOrBuilder extends
      // @@protoc_insertion_point(interface_extends:io.prometheus.client.Counter)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional double value = 1;
     */
    boolean hasValue();
    /**
     * optional double value = 1;
     */
    double getValue();
  }
  /**
   * Protobuf type {@code io.prometheus.client.Counter}
   */
  public  static final class Counter extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:io.prometheus.client.Counter)
      CounterOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Counter.newBuilder() to construct.
    private Counter(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private Counter() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Counter(
        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 9: {
              bitField0_ |= 0x00000001;
              value_ = input.readDouble();
              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 io.prometheus.client.Metrics.internal_static_io_prometheus_client_Counter_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Counter_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.prometheus.client.Metrics.Counter.class, io.prometheus.client.Metrics.Counter.Builder.class);
    }

    private int bitField0_;
    public static final int VALUE_FIELD_NUMBER = 1;
    private double value_;
    /**
     * optional double value = 1;
     */
    public boolean hasValue() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional double value = 1;
     */
    public double getValue() {
      return value_;
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeDouble(1, value_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(1, 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 io.prometheus.client.Metrics.Counter)) {
        return super.equals(obj);
      }
      io.prometheus.client.Metrics.Counter other = (io.prometheus.client.Metrics.Counter) obj;

      if (hasValue() != other.hasValue()) return false;
      if (hasValue()) {
        if (java.lang.Double.doubleToLongBits(getValue())
            != java.lang.Double.doubleToLongBits(
                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();
      if (hasValue()) {
        hash = (37 * hash) + VALUE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            java.lang.Double.doubleToLongBits(getValue()));
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Counter_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.prometheus.client.Metrics.Counter.class, io.prometheus.client.Metrics.Counter.Builder.class);
      }

      // Construct using io.prometheus.client.Metrics.Counter.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();
        value_ = 0D;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Counter_descriptor;
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.Counter getDefaultInstanceForType() {
        return io.prometheus.client.Metrics.Counter.getDefaultInstance();
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.Counter build() {
        io.prometheus.client.Metrics.Counter result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.Counter buildPartial() {
        io.prometheus.client.Metrics.Counter result = new io.prometheus.client.Metrics.Counter(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.value_ = value_;
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ = to_bitField0_;
        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 io.prometheus.client.Metrics.Counter) {
          return mergeFrom((io.prometheus.client.Metrics.Counter)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.prometheus.client.Metrics.Counter other) {
        if (other == io.prometheus.client.Metrics.Counter.getDefaultInstance()) return this;
        if (other.hasValue()) {
          setValue(other.getValue());
        }
        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 {
        io.prometheus.client.Metrics.Counter parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (io.prometheus.client.Metrics.Counter) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private double value_ ;
      /**
       * optional double value = 1;
       */
      public boolean hasValue() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * optional double value = 1;
       */
      public double getValue() {
        return value_;
      }
      /**
       * optional double value = 1;
       */
      public Builder setValue(double value) {
        bitField0_ |= 0x00000001;
        value_ = value;
        onChanged();
        return this;
      }
      /**
       * optional double value = 1;
       */
      public Builder clearValue() {
        bitField0_ = (bitField0_ & ~0x00000001);
        value_ = 0D;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:io.prometheus.client.Counter)
    }

    // @@protoc_insertion_point(class_scope:io.prometheus.client.Counter)
    private static final io.prometheus.client.Metrics.Counter DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.prometheus.client.Metrics.Counter();
    }

    public static io.prometheus.client.Metrics.Counter getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Counter parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Counter(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 io.prometheus.client.Metrics.Counter getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface QuantileOrBuilder extends
      // @@protoc_insertion_point(interface_extends:io.prometheus.client.Quantile)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional double quantile = 1;
     */
    boolean hasQuantile();
    /**
     * optional double quantile = 1;
     */
    double getQuantile();

    /**
     * optional double value = 2;
     */
    boolean hasValue();
    /**
     * optional double value = 2;
     */
    double getValue();
  }
  /**
   * Protobuf type {@code io.prometheus.client.Quantile}
   */
  public  static final class Quantile extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:io.prometheus.client.Quantile)
      QuantileOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Quantile.newBuilder() to construct.
    private Quantile(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private Quantile() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Quantile(
        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 9: {
              bitField0_ |= 0x00000001;
              quantile_ = input.readDouble();
              break;
            }
            case 17: {
              bitField0_ |= 0x00000002;
              value_ = input.readDouble();
              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 io.prometheus.client.Metrics.internal_static_io_prometheus_client_Quantile_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Quantile_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.prometheus.client.Metrics.Quantile.class, io.prometheus.client.Metrics.Quantile.Builder.class);
    }

    private int bitField0_;
    public static final int QUANTILE_FIELD_NUMBER = 1;
    private double quantile_;
    /**
     * optional double quantile = 1;
     */
    public boolean hasQuantile() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional double quantile = 1;
     */
    public double getQuantile() {
      return quantile_;
    }

    public static final int VALUE_FIELD_NUMBER = 2;
    private double value_;
    /**
     * optional double value = 2;
     */
    public boolean hasValue() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional double value = 2;
     */
    public double getValue() {
      return value_;
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeDouble(1, quantile_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeDouble(2, value_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(1, quantile_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(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 io.prometheus.client.Metrics.Quantile)) {
        return super.equals(obj);
      }
      io.prometheus.client.Metrics.Quantile other = (io.prometheus.client.Metrics.Quantile) obj;

      if (hasQuantile() != other.hasQuantile()) return false;
      if (hasQuantile()) {
        if (java.lang.Double.doubleToLongBits(getQuantile())
            != java.lang.Double.doubleToLongBits(
                other.getQuantile())) return false;
      }
      if (hasValue() != other.hasValue()) return false;
      if (hasValue()) {
        if (java.lang.Double.doubleToLongBits(getValue())
            != java.lang.Double.doubleToLongBits(
                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();
      if (hasQuantile()) {
        hash = (37 * hash) + QUANTILE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            java.lang.Double.doubleToLongBits(getQuantile()));
      }
      if (hasValue()) {
        hash = (37 * hash) + VALUE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            java.lang.Double.doubleToLongBits(getValue()));
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Quantile_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.prometheus.client.Metrics.Quantile.class, io.prometheus.client.Metrics.Quantile.Builder.class);
      }

      // Construct using io.prometheus.client.Metrics.Quantile.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();
        quantile_ = 0D;
        bitField0_ = (bitField0_ & ~0x00000001);
        value_ = 0D;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Quantile_descriptor;
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.Quantile getDefaultInstanceForType() {
        return io.prometheus.client.Metrics.Quantile.getDefaultInstance();
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.Quantile build() {
        io.prometheus.client.Metrics.Quantile result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.Quantile buildPartial() {
        io.prometheus.client.Metrics.Quantile result = new io.prometheus.client.Metrics.Quantile(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.quantile_ = quantile_;
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.value_ = value_;
          to_bitField0_ |= 0x00000002;
        }
        result.bitField0_ = to_bitField0_;
        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 io.prometheus.client.Metrics.Quantile) {
          return mergeFrom((io.prometheus.client.Metrics.Quantile)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.prometheus.client.Metrics.Quantile other) {
        if (other == io.prometheus.client.Metrics.Quantile.getDefaultInstance()) return this;
        if (other.hasQuantile()) {
          setQuantile(other.getQuantile());
        }
        if (other.hasValue()) {
          setValue(other.getValue());
        }
        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 {
        io.prometheus.client.Metrics.Quantile parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (io.prometheus.client.Metrics.Quantile) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private double quantile_ ;
      /**
       * optional double quantile = 1;
       */
      public boolean hasQuantile() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * optional double quantile = 1;
       */
      public double getQuantile() {
        return quantile_;
      }
      /**
       * optional double quantile = 1;
       */
      public Builder setQuantile(double value) {
        bitField0_ |= 0x00000001;
        quantile_ = value;
        onChanged();
        return this;
      }
      /**
       * optional double quantile = 1;
       */
      public Builder clearQuantile() {
        bitField0_ = (bitField0_ & ~0x00000001);
        quantile_ = 0D;
        onChanged();
        return this;
      }

      private double value_ ;
      /**
       * optional double value = 2;
       */
      public boolean hasValue() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * optional double value = 2;
       */
      public double getValue() {
        return value_;
      }
      /**
       * optional double value = 2;
       */
      public Builder setValue(double value) {
        bitField0_ |= 0x00000002;
        value_ = value;
        onChanged();
        return this;
      }
      /**
       * optional double value = 2;
       */
      public Builder clearValue() {
        bitField0_ = (bitField0_ & ~0x00000002);
        value_ = 0D;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:io.prometheus.client.Quantile)
    }

    // @@protoc_insertion_point(class_scope:io.prometheus.client.Quantile)
    private static final io.prometheus.client.Metrics.Quantile DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.prometheus.client.Metrics.Quantile();
    }

    public static io.prometheus.client.Metrics.Quantile getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Quantile parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Quantile(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 io.prometheus.client.Metrics.Quantile getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface SummaryOrBuilder extends
      // @@protoc_insertion_point(interface_extends:io.prometheus.client.Summary)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional uint64 sample_count = 1;
     */
    boolean hasSampleCount();
    /**
     * optional uint64 sample_count = 1;
     */
    long getSampleCount();

    /**
     * optional double sample_sum = 2;
     */
    boolean hasSampleSum();
    /**
     * optional double sample_sum = 2;
     */
    double getSampleSum();

    /**
     * repeated .io.prometheus.client.Quantile quantile = 3;
     */
    java.util.List 
        getQuantileList();
    /**
     * repeated .io.prometheus.client.Quantile quantile = 3;
     */
    io.prometheus.client.Metrics.Quantile getQuantile(int index);
    /**
     * repeated .io.prometheus.client.Quantile quantile = 3;
     */
    int getQuantileCount();
    /**
     * repeated .io.prometheus.client.Quantile quantile = 3;
     */
    java.util.List 
        getQuantileOrBuilderList();
    /**
     * repeated .io.prometheus.client.Quantile quantile = 3;
     */
    io.prometheus.client.Metrics.QuantileOrBuilder getQuantileOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code io.prometheus.client.Summary}
   */
  public  static final class Summary extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:io.prometheus.client.Summary)
      SummaryOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Summary.newBuilder() to construct.
    private Summary(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private Summary() {
      quantile_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Summary(
        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 8: {
              bitField0_ |= 0x00000001;
              sampleCount_ = input.readUInt64();
              break;
            }
            case 17: {
              bitField0_ |= 0x00000002;
              sampleSum_ = input.readDouble();
              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                quantile_ = new java.util.ArrayList();
                mutable_bitField0_ |= 0x00000004;
              }
              quantile_.add(
                  input.readMessage(io.prometheus.client.Metrics.Quantile.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_ & 0x00000004) != 0)) {
          quantile_ = java.util.Collections.unmodifiableList(quantile_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Summary_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Summary_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.prometheus.client.Metrics.Summary.class, io.prometheus.client.Metrics.Summary.Builder.class);
    }

    private int bitField0_;
    public static final int SAMPLE_COUNT_FIELD_NUMBER = 1;
    private long sampleCount_;
    /**
     * optional uint64 sample_count = 1;
     */
    public boolean hasSampleCount() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional uint64 sample_count = 1;
     */
    public long getSampleCount() {
      return sampleCount_;
    }

    public static final int SAMPLE_SUM_FIELD_NUMBER = 2;
    private double sampleSum_;
    /**
     * optional double sample_sum = 2;
     */
    public boolean hasSampleSum() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional double sample_sum = 2;
     */
    public double getSampleSum() {
      return sampleSum_;
    }

    public static final int QUANTILE_FIELD_NUMBER = 3;
    private java.util.List quantile_;
    /**
     * repeated .io.prometheus.client.Quantile quantile = 3;
     */
    public java.util.List getQuantileList() {
      return quantile_;
    }
    /**
     * repeated .io.prometheus.client.Quantile quantile = 3;
     */
    public java.util.List 
        getQuantileOrBuilderList() {
      return quantile_;
    }
    /**
     * repeated .io.prometheus.client.Quantile quantile = 3;
     */
    public int getQuantileCount() {
      return quantile_.size();
    }
    /**
     * repeated .io.prometheus.client.Quantile quantile = 3;
     */
    public io.prometheus.client.Metrics.Quantile getQuantile(int index) {
      return quantile_.get(index);
    }
    /**
     * repeated .io.prometheus.client.Quantile quantile = 3;
     */
    public io.prometheus.client.Metrics.QuantileOrBuilder getQuantileOrBuilder(
        int index) {
      return quantile_.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 (((bitField0_ & 0x00000001) != 0)) {
        output.writeUInt64(1, sampleCount_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeDouble(2, sampleSum_);
      }
      for (int i = 0; i < quantile_.size(); i++) {
        output.writeMessage(3, quantile_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt64Size(1, sampleCount_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(2, sampleSum_);
      }
      for (int i = 0; i < quantile_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, quantile_.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 io.prometheus.client.Metrics.Summary)) {
        return super.equals(obj);
      }
      io.prometheus.client.Metrics.Summary other = (io.prometheus.client.Metrics.Summary) obj;

      if (hasSampleCount() != other.hasSampleCount()) return false;
      if (hasSampleCount()) {
        if (getSampleCount()
            != other.getSampleCount()) return false;
      }
      if (hasSampleSum() != other.hasSampleSum()) return false;
      if (hasSampleSum()) {
        if (java.lang.Double.doubleToLongBits(getSampleSum())
            != java.lang.Double.doubleToLongBits(
                other.getSampleSum())) return false;
      }
      if (!getQuantileList()
          .equals(other.getQuantileList())) 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 (hasSampleCount()) {
        hash = (37 * hash) + SAMPLE_COUNT_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            getSampleCount());
      }
      if (hasSampleSum()) {
        hash = (37 * hash) + SAMPLE_SUM_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            java.lang.Double.doubleToLongBits(getSampleSum()));
      }
      if (getQuantileCount() > 0) {
        hash = (37 * hash) + QUANTILE_FIELD_NUMBER;
        hash = (53 * hash) + getQuantileList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Summary_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.prometheus.client.Metrics.Summary.class, io.prometheus.client.Metrics.Summary.Builder.class);
      }

      // Construct using io.prometheus.client.Metrics.Summary.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getQuantileFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        sampleCount_ = 0L;
        bitField0_ = (bitField0_ & ~0x00000001);
        sampleSum_ = 0D;
        bitField0_ = (bitField0_ & ~0x00000002);
        if (quantileBuilder_ == null) {
          quantile_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          quantileBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Summary_descriptor;
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.Summary getDefaultInstanceForType() {
        return io.prometheus.client.Metrics.Summary.getDefaultInstance();
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.Summary build() {
        io.prometheus.client.Metrics.Summary result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.Summary buildPartial() {
        io.prometheus.client.Metrics.Summary result = new io.prometheus.client.Metrics.Summary(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.sampleCount_ = sampleCount_;
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.sampleSum_ = sampleSum_;
          to_bitField0_ |= 0x00000002;
        }
        if (quantileBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0)) {
            quantile_ = java.util.Collections.unmodifiableList(quantile_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.quantile_ = quantile_;
        } else {
          result.quantile_ = quantileBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        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 io.prometheus.client.Metrics.Summary) {
          return mergeFrom((io.prometheus.client.Metrics.Summary)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.prometheus.client.Metrics.Summary other) {
        if (other == io.prometheus.client.Metrics.Summary.getDefaultInstance()) return this;
        if (other.hasSampleCount()) {
          setSampleCount(other.getSampleCount());
        }
        if (other.hasSampleSum()) {
          setSampleSum(other.getSampleSum());
        }
        if (quantileBuilder_ == null) {
          if (!other.quantile_.isEmpty()) {
            if (quantile_.isEmpty()) {
              quantile_ = other.quantile_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensureQuantileIsMutable();
              quantile_.addAll(other.quantile_);
            }
            onChanged();
          }
        } else {
          if (!other.quantile_.isEmpty()) {
            if (quantileBuilder_.isEmpty()) {
              quantileBuilder_.dispose();
              quantileBuilder_ = null;
              quantile_ = other.quantile_;
              bitField0_ = (bitField0_ & ~0x00000004);
              quantileBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getQuantileFieldBuilder() : null;
            } else {
              quantileBuilder_.addAllMessages(other.quantile_);
            }
          }
        }
        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 {
        io.prometheus.client.Metrics.Summary parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (io.prometheus.client.Metrics.Summary) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private long sampleCount_ ;
      /**
       * optional uint64 sample_count = 1;
       */
      public boolean hasSampleCount() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * optional uint64 sample_count = 1;
       */
      public long getSampleCount() {
        return sampleCount_;
      }
      /**
       * optional uint64 sample_count = 1;
       */
      public Builder setSampleCount(long value) {
        bitField0_ |= 0x00000001;
        sampleCount_ = value;
        onChanged();
        return this;
      }
      /**
       * optional uint64 sample_count = 1;
       */
      public Builder clearSampleCount() {
        bitField0_ = (bitField0_ & ~0x00000001);
        sampleCount_ = 0L;
        onChanged();
        return this;
      }

      private double sampleSum_ ;
      /**
       * optional double sample_sum = 2;
       */
      public boolean hasSampleSum() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * optional double sample_sum = 2;
       */
      public double getSampleSum() {
        return sampleSum_;
      }
      /**
       * optional double sample_sum = 2;
       */
      public Builder setSampleSum(double value) {
        bitField0_ |= 0x00000002;
        sampleSum_ = value;
        onChanged();
        return this;
      }
      /**
       * optional double sample_sum = 2;
       */
      public Builder clearSampleSum() {
        bitField0_ = (bitField0_ & ~0x00000002);
        sampleSum_ = 0D;
        onChanged();
        return this;
      }

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

      private com.google.protobuf.RepeatedFieldBuilderV3<
          io.prometheus.client.Metrics.Quantile, io.prometheus.client.Metrics.Quantile.Builder, io.prometheus.client.Metrics.QuantileOrBuilder> quantileBuilder_;

      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public java.util.List getQuantileList() {
        if (quantileBuilder_ == null) {
          return java.util.Collections.unmodifiableList(quantile_);
        } else {
          return quantileBuilder_.getMessageList();
        }
      }
      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public int getQuantileCount() {
        if (quantileBuilder_ == null) {
          return quantile_.size();
        } else {
          return quantileBuilder_.getCount();
        }
      }
      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public io.prometheus.client.Metrics.Quantile getQuantile(int index) {
        if (quantileBuilder_ == null) {
          return quantile_.get(index);
        } else {
          return quantileBuilder_.getMessage(index);
        }
      }
      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public Builder setQuantile(
          int index, io.prometheus.client.Metrics.Quantile value) {
        if (quantileBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureQuantileIsMutable();
          quantile_.set(index, value);
          onChanged();
        } else {
          quantileBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public Builder setQuantile(
          int index, io.prometheus.client.Metrics.Quantile.Builder builderForValue) {
        if (quantileBuilder_ == null) {
          ensureQuantileIsMutable();
          quantile_.set(index, builderForValue.build());
          onChanged();
        } else {
          quantileBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public Builder addQuantile(io.prometheus.client.Metrics.Quantile value) {
        if (quantileBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureQuantileIsMutable();
          quantile_.add(value);
          onChanged();
        } else {
          quantileBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public Builder addQuantile(
          int index, io.prometheus.client.Metrics.Quantile value) {
        if (quantileBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureQuantileIsMutable();
          quantile_.add(index, value);
          onChanged();
        } else {
          quantileBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public Builder addQuantile(
          io.prometheus.client.Metrics.Quantile.Builder builderForValue) {
        if (quantileBuilder_ == null) {
          ensureQuantileIsMutable();
          quantile_.add(builderForValue.build());
          onChanged();
        } else {
          quantileBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public Builder addQuantile(
          int index, io.prometheus.client.Metrics.Quantile.Builder builderForValue) {
        if (quantileBuilder_ == null) {
          ensureQuantileIsMutable();
          quantile_.add(index, builderForValue.build());
          onChanged();
        } else {
          quantileBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public Builder addAllQuantile(
          java.lang.Iterable values) {
        if (quantileBuilder_ == null) {
          ensureQuantileIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, quantile_);
          onChanged();
        } else {
          quantileBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public Builder clearQuantile() {
        if (quantileBuilder_ == null) {
          quantile_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
        } else {
          quantileBuilder_.clear();
        }
        return this;
      }
      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public Builder removeQuantile(int index) {
        if (quantileBuilder_ == null) {
          ensureQuantileIsMutable();
          quantile_.remove(index);
          onChanged();
        } else {
          quantileBuilder_.remove(index);
        }
        return this;
      }
      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public io.prometheus.client.Metrics.Quantile.Builder getQuantileBuilder(
          int index) {
        return getQuantileFieldBuilder().getBuilder(index);
      }
      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public io.prometheus.client.Metrics.QuantileOrBuilder getQuantileOrBuilder(
          int index) {
        if (quantileBuilder_ == null) {
          return quantile_.get(index);  } else {
          return quantileBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public java.util.List 
           getQuantileOrBuilderList() {
        if (quantileBuilder_ != null) {
          return quantileBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(quantile_);
        }
      }
      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public io.prometheus.client.Metrics.Quantile.Builder addQuantileBuilder() {
        return getQuantileFieldBuilder().addBuilder(
            io.prometheus.client.Metrics.Quantile.getDefaultInstance());
      }
      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public io.prometheus.client.Metrics.Quantile.Builder addQuantileBuilder(
          int index) {
        return getQuantileFieldBuilder().addBuilder(
            index, io.prometheus.client.Metrics.Quantile.getDefaultInstance());
      }
      /**
       * repeated .io.prometheus.client.Quantile quantile = 3;
       */
      public java.util.List 
           getQuantileBuilderList() {
        return getQuantileFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          io.prometheus.client.Metrics.Quantile, io.prometheus.client.Metrics.Quantile.Builder, io.prometheus.client.Metrics.QuantileOrBuilder> 
          getQuantileFieldBuilder() {
        if (quantileBuilder_ == null) {
          quantileBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              io.prometheus.client.Metrics.Quantile, io.prometheus.client.Metrics.Quantile.Builder, io.prometheus.client.Metrics.QuantileOrBuilder>(
                  quantile_,
                  ((bitField0_ & 0x00000004) != 0),
                  getParentForChildren(),
                  isClean());
          quantile_ = null;
        }
        return quantileBuilder_;
      }
      @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:io.prometheus.client.Summary)
    }

    // @@protoc_insertion_point(class_scope:io.prometheus.client.Summary)
    private static final io.prometheus.client.Metrics.Summary DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.prometheus.client.Metrics.Summary();
    }

    public static io.prometheus.client.Metrics.Summary getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Summary parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Summary(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 io.prometheus.client.Metrics.Summary getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface UntypedOrBuilder extends
      // @@protoc_insertion_point(interface_extends:io.prometheus.client.Untyped)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional double value = 1;
     */
    boolean hasValue();
    /**
     * optional double value = 1;
     */
    double getValue();
  }
  /**
   * Protobuf type {@code io.prometheus.client.Untyped}
   */
  public  static final class Untyped extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:io.prometheus.client.Untyped)
      UntypedOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Untyped.newBuilder() to construct.
    private Untyped(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private Untyped() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Untyped(
        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 9: {
              bitField0_ |= 0x00000001;
              value_ = input.readDouble();
              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 io.prometheus.client.Metrics.internal_static_io_prometheus_client_Untyped_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Untyped_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.prometheus.client.Metrics.Untyped.class, io.prometheus.client.Metrics.Untyped.Builder.class);
    }

    private int bitField0_;
    public static final int VALUE_FIELD_NUMBER = 1;
    private double value_;
    /**
     * optional double value = 1;
     */
    public boolean hasValue() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional double value = 1;
     */
    public double getValue() {
      return value_;
    }

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

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeDouble(1, value_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeDoubleSize(1, 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 io.prometheus.client.Metrics.Untyped)) {
        return super.equals(obj);
      }
      io.prometheus.client.Metrics.Untyped other = (io.prometheus.client.Metrics.Untyped) obj;

      if (hasValue() != other.hasValue()) return false;
      if (hasValue()) {
        if (java.lang.Double.doubleToLongBits(getValue())
            != java.lang.Double.doubleToLongBits(
                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();
      if (hasValue()) {
        hash = (37 * hash) + VALUE_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
            java.lang.Double.doubleToLongBits(getValue()));
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Untyped_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                io.prometheus.client.Metrics.Untyped.class, io.prometheus.client.Metrics.Untyped.Builder.class);
      }

      // Construct using io.prometheus.client.Metrics.Untyped.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();
        value_ = 0D;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Untyped_descriptor;
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.Untyped getDefaultInstanceForType() {
        return io.prometheus.client.Metrics.Untyped.getDefaultInstance();
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.Untyped build() {
        io.prometheus.client.Metrics.Untyped result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public io.prometheus.client.Metrics.Untyped buildPartial() {
        io.prometheus.client.Metrics.Untyped result = new io.prometheus.client.Metrics.Untyped(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.value_ = value_;
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ = to_bitField0_;
        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 io.prometheus.client.Metrics.Untyped) {
          return mergeFrom((io.prometheus.client.Metrics.Untyped)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(io.prometheus.client.Metrics.Untyped other) {
        if (other == io.prometheus.client.Metrics.Untyped.getDefaultInstance()) return this;
        if (other.hasValue()) {
          setValue(other.getValue());
        }
        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 {
        io.prometheus.client.Metrics.Untyped parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (io.prometheus.client.Metrics.Untyped) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private double value_ ;
      /**
       * optional double value = 1;
       */
      public boolean hasValue() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * optional double value = 1;
       */
      public double getValue() {
        return value_;
      }
      /**
       * optional double value = 1;
       */
      public Builder setValue(double value) {
        bitField0_ |= 0x00000001;
        value_ = value;
        onChanged();
        return this;
      }
      /**
       * optional double value = 1;
       */
      public Builder clearValue() {
        bitField0_ = (bitField0_ & ~0x00000001);
        value_ = 0D;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

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


      // @@protoc_insertion_point(builder_scope:io.prometheus.client.Untyped)
    }

    // @@protoc_insertion_point(class_scope:io.prometheus.client.Untyped)
    private static final io.prometheus.client.Metrics.Untyped DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new io.prometheus.client.Metrics.Untyped();
    }

    public static io.prometheus.client.Metrics.Untyped getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    @java.lang.Deprecated public static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Untyped parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Untyped(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 io.prometheus.client.Metrics.Untyped getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface HistogramOrBuilder extends
      // @@protoc_insertion_point(interface_extends:io.prometheus.client.Histogram)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional uint64 sample_count = 1;
     */
    boolean hasSampleCount();
    /**
     * optional uint64 sample_count = 1;
     */
    long getSampleCount();

    /**
     * optional double sample_sum = 2;
     */
    boolean hasSampleSum();
    /**
     * optional double sample_sum = 2;
     */
    double getSampleSum();

    /**
     * 
     * Ordered in increasing order of upper_bound, +Inf bucket is optional.
     * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ java.util.List getBucketList(); /** *
     * Ordered in increasing order of upper_bound, +Inf bucket is optional.
     * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ io.prometheus.client.Metrics.Bucket getBucket(int index); /** *
     * Ordered in increasing order of upper_bound, +Inf bucket is optional.
     * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ int getBucketCount(); /** *
     * Ordered in increasing order of upper_bound, +Inf bucket is optional.
     * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ java.util.List getBucketOrBuilderList(); /** *
     * Ordered in increasing order of upper_bound, +Inf bucket is optional.
     * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ io.prometheus.client.Metrics.BucketOrBuilder getBucketOrBuilder( int index); } /** * Protobuf type {@code io.prometheus.client.Histogram} */ public static final class Histogram extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.prometheus.client.Histogram) HistogramOrBuilder { private static final long serialVersionUID = 0L; // Use Histogram.newBuilder() to construct. private Histogram(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Histogram() { bucket_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Histogram(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Histogram( 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 8: { bitField0_ |= 0x00000001; sampleCount_ = input.readUInt64(); break; } case 17: { bitField0_ |= 0x00000002; sampleSum_ = input.readDouble(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { bucket_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } bucket_.add( input.readMessage(io.prometheus.client.Metrics.Bucket.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_ & 0x00000004) != 0)) { bucket_ = java.util.Collections.unmodifiableList(bucket_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Histogram_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Histogram_fieldAccessorTable .ensureFieldAccessorsInitialized( io.prometheus.client.Metrics.Histogram.class, io.prometheus.client.Metrics.Histogram.Builder.class); } private int bitField0_; public static final int SAMPLE_COUNT_FIELD_NUMBER = 1; private long sampleCount_; /** * optional uint64 sample_count = 1; */ public boolean hasSampleCount() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint64 sample_count = 1; */ public long getSampleCount() { return sampleCount_; } public static final int SAMPLE_SUM_FIELD_NUMBER = 2; private double sampleSum_; /** * optional double sample_sum = 2; */ public boolean hasSampleSum() { return ((bitField0_ & 0x00000002) != 0); } /** * optional double sample_sum = 2; */ public double getSampleSum() { return sampleSum_; } public static final int BUCKET_FIELD_NUMBER = 3; private java.util.List bucket_; /** *
     * Ordered in increasing order of upper_bound, +Inf bucket is optional.
     * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public java.util.List getBucketList() { return bucket_; } /** *
     * Ordered in increasing order of upper_bound, +Inf bucket is optional.
     * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public java.util.List getBucketOrBuilderList() { return bucket_; } /** *
     * Ordered in increasing order of upper_bound, +Inf bucket is optional.
     * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public int getBucketCount() { return bucket_.size(); } /** *
     * Ordered in increasing order of upper_bound, +Inf bucket is optional.
     * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public io.prometheus.client.Metrics.Bucket getBucket(int index) { return bucket_.get(index); } /** *
     * Ordered in increasing order of upper_bound, +Inf bucket is optional.
     * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public io.prometheus.client.Metrics.BucketOrBuilder getBucketOrBuilder( int index) { return bucket_.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 (((bitField0_ & 0x00000001) != 0)) { output.writeUInt64(1, sampleCount_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeDouble(2, sampleSum_); } for (int i = 0; i < bucket_.size(); i++) { output.writeMessage(3, bucket_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, sampleCount_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, sampleSum_); } for (int i = 0; i < bucket_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, bucket_.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 io.prometheus.client.Metrics.Histogram)) { return super.equals(obj); } io.prometheus.client.Metrics.Histogram other = (io.prometheus.client.Metrics.Histogram) obj; if (hasSampleCount() != other.hasSampleCount()) return false; if (hasSampleCount()) { if (getSampleCount() != other.getSampleCount()) return false; } if (hasSampleSum() != other.hasSampleSum()) return false; if (hasSampleSum()) { if (java.lang.Double.doubleToLongBits(getSampleSum()) != java.lang.Double.doubleToLongBits( other.getSampleSum())) return false; } if (!getBucketList() .equals(other.getBucketList())) 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 (hasSampleCount()) { hash = (37 * hash) + SAMPLE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSampleCount()); } if (hasSampleSum()) { hash = (37 * hash) + SAMPLE_SUM_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSampleSum())); } if (getBucketCount() > 0) { hash = (37 * hash) + BUCKET_FIELD_NUMBER; hash = (53 * hash) + getBucketList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.prometheus.client.Metrics.Histogram parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.prometheus.client.Metrics.Histogram parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.prometheus.client.Metrics.Histogram parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.prometheus.client.Metrics.Histogram parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.prometheus.client.Metrics.Histogram parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.prometheus.client.Metrics.Histogram parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.prometheus.client.Metrics.Histogram parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.prometheus.client.Metrics.Histogram 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 io.prometheus.client.Metrics.Histogram parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.prometheus.client.Metrics.Histogram 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 io.prometheus.client.Metrics.Histogram parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.prometheus.client.Metrics.Histogram 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(io.prometheus.client.Metrics.Histogram 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 io.prometheus.client.Histogram} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.prometheus.client.Histogram) io.prometheus.client.Metrics.HistogramOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Histogram_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Histogram_fieldAccessorTable .ensureFieldAccessorsInitialized( io.prometheus.client.Metrics.Histogram.class, io.prometheus.client.Metrics.Histogram.Builder.class); } // Construct using io.prometheus.client.Metrics.Histogram.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBucketFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); sampleCount_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); sampleSum_ = 0D; bitField0_ = (bitField0_ & ~0x00000002); if (bucketBuilder_ == null) { bucket_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { bucketBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Histogram_descriptor; } @java.lang.Override public io.prometheus.client.Metrics.Histogram getDefaultInstanceForType() { return io.prometheus.client.Metrics.Histogram.getDefaultInstance(); } @java.lang.Override public io.prometheus.client.Metrics.Histogram build() { io.prometheus.client.Metrics.Histogram result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.prometheus.client.Metrics.Histogram buildPartial() { io.prometheus.client.Metrics.Histogram result = new io.prometheus.client.Metrics.Histogram(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.sampleCount_ = sampleCount_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.sampleSum_ = sampleSum_; to_bitField0_ |= 0x00000002; } if (bucketBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { bucket_ = java.util.Collections.unmodifiableList(bucket_); bitField0_ = (bitField0_ & ~0x00000004); } result.bucket_ = bucket_; } else { result.bucket_ = bucketBuilder_.build(); } result.bitField0_ = to_bitField0_; 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 io.prometheus.client.Metrics.Histogram) { return mergeFrom((io.prometheus.client.Metrics.Histogram)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.prometheus.client.Metrics.Histogram other) { if (other == io.prometheus.client.Metrics.Histogram.getDefaultInstance()) return this; if (other.hasSampleCount()) { setSampleCount(other.getSampleCount()); } if (other.hasSampleSum()) { setSampleSum(other.getSampleSum()); } if (bucketBuilder_ == null) { if (!other.bucket_.isEmpty()) { if (bucket_.isEmpty()) { bucket_ = other.bucket_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureBucketIsMutable(); bucket_.addAll(other.bucket_); } onChanged(); } } else { if (!other.bucket_.isEmpty()) { if (bucketBuilder_.isEmpty()) { bucketBuilder_.dispose(); bucketBuilder_ = null; bucket_ = other.bucket_; bitField0_ = (bitField0_ & ~0x00000004); bucketBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBucketFieldBuilder() : null; } else { bucketBuilder_.addAllMessages(other.bucket_); } } } 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 { io.prometheus.client.Metrics.Histogram parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.prometheus.client.Metrics.Histogram) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long sampleCount_ ; /** * optional uint64 sample_count = 1; */ public boolean hasSampleCount() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint64 sample_count = 1; */ public long getSampleCount() { return sampleCount_; } /** * optional uint64 sample_count = 1; */ public Builder setSampleCount(long value) { bitField0_ |= 0x00000001; sampleCount_ = value; onChanged(); return this; } /** * optional uint64 sample_count = 1; */ public Builder clearSampleCount() { bitField0_ = (bitField0_ & ~0x00000001); sampleCount_ = 0L; onChanged(); return this; } private double sampleSum_ ; /** * optional double sample_sum = 2; */ public boolean hasSampleSum() { return ((bitField0_ & 0x00000002) != 0); } /** * optional double sample_sum = 2; */ public double getSampleSum() { return sampleSum_; } /** * optional double sample_sum = 2; */ public Builder setSampleSum(double value) { bitField0_ |= 0x00000002; sampleSum_ = value; onChanged(); return this; } /** * optional double sample_sum = 2; */ public Builder clearSampleSum() { bitField0_ = (bitField0_ & ~0x00000002); sampleSum_ = 0D; onChanged(); return this; } private java.util.List bucket_ = java.util.Collections.emptyList(); private void ensureBucketIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { bucket_ = new java.util.ArrayList(bucket_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.prometheus.client.Metrics.Bucket, io.prometheus.client.Metrics.Bucket.Builder, io.prometheus.client.Metrics.BucketOrBuilder> bucketBuilder_; /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public java.util.List getBucketList() { if (bucketBuilder_ == null) { return java.util.Collections.unmodifiableList(bucket_); } else { return bucketBuilder_.getMessageList(); } } /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public int getBucketCount() { if (bucketBuilder_ == null) { return bucket_.size(); } else { return bucketBuilder_.getCount(); } } /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public io.prometheus.client.Metrics.Bucket getBucket(int index) { if (bucketBuilder_ == null) { return bucket_.get(index); } else { return bucketBuilder_.getMessage(index); } } /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public Builder setBucket( int index, io.prometheus.client.Metrics.Bucket value) { if (bucketBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBucketIsMutable(); bucket_.set(index, value); onChanged(); } else { bucketBuilder_.setMessage(index, value); } return this; } /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public Builder setBucket( int index, io.prometheus.client.Metrics.Bucket.Builder builderForValue) { if (bucketBuilder_ == null) { ensureBucketIsMutable(); bucket_.set(index, builderForValue.build()); onChanged(); } else { bucketBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public Builder addBucket(io.prometheus.client.Metrics.Bucket value) { if (bucketBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBucketIsMutable(); bucket_.add(value); onChanged(); } else { bucketBuilder_.addMessage(value); } return this; } /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public Builder addBucket( int index, io.prometheus.client.Metrics.Bucket value) { if (bucketBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBucketIsMutable(); bucket_.add(index, value); onChanged(); } else { bucketBuilder_.addMessage(index, value); } return this; } /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public Builder addBucket( io.prometheus.client.Metrics.Bucket.Builder builderForValue) { if (bucketBuilder_ == null) { ensureBucketIsMutable(); bucket_.add(builderForValue.build()); onChanged(); } else { bucketBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public Builder addBucket( int index, io.prometheus.client.Metrics.Bucket.Builder builderForValue) { if (bucketBuilder_ == null) { ensureBucketIsMutable(); bucket_.add(index, builderForValue.build()); onChanged(); } else { bucketBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public Builder addAllBucket( java.lang.Iterable values) { if (bucketBuilder_ == null) { ensureBucketIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, bucket_); onChanged(); } else { bucketBuilder_.addAllMessages(values); } return this; } /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public Builder clearBucket() { if (bucketBuilder_ == null) { bucket_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { bucketBuilder_.clear(); } return this; } /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public Builder removeBucket(int index) { if (bucketBuilder_ == null) { ensureBucketIsMutable(); bucket_.remove(index); onChanged(); } else { bucketBuilder_.remove(index); } return this; } /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public io.prometheus.client.Metrics.Bucket.Builder getBucketBuilder( int index) { return getBucketFieldBuilder().getBuilder(index); } /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public io.prometheus.client.Metrics.BucketOrBuilder getBucketOrBuilder( int index) { if (bucketBuilder_ == null) { return bucket_.get(index); } else { return bucketBuilder_.getMessageOrBuilder(index); } } /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public java.util.List getBucketOrBuilderList() { if (bucketBuilder_ != null) { return bucketBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(bucket_); } } /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public io.prometheus.client.Metrics.Bucket.Builder addBucketBuilder() { return getBucketFieldBuilder().addBuilder( io.prometheus.client.Metrics.Bucket.getDefaultInstance()); } /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public io.prometheus.client.Metrics.Bucket.Builder addBucketBuilder( int index) { return getBucketFieldBuilder().addBuilder( index, io.prometheus.client.Metrics.Bucket.getDefaultInstance()); } /** *
       * Ordered in increasing order of upper_bound, +Inf bucket is optional.
       * 
* * repeated .io.prometheus.client.Bucket bucket = 3; */ public java.util.List getBucketBuilderList() { return getBucketFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.prometheus.client.Metrics.Bucket, io.prometheus.client.Metrics.Bucket.Builder, io.prometheus.client.Metrics.BucketOrBuilder> getBucketFieldBuilder() { if (bucketBuilder_ == null) { bucketBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.prometheus.client.Metrics.Bucket, io.prometheus.client.Metrics.Bucket.Builder, io.prometheus.client.Metrics.BucketOrBuilder>( bucket_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); bucket_ = null; } return bucketBuilder_; } @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:io.prometheus.client.Histogram) } // @@protoc_insertion_point(class_scope:io.prometheus.client.Histogram) private static final io.prometheus.client.Metrics.Histogram DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.prometheus.client.Metrics.Histogram(); } public static io.prometheus.client.Metrics.Histogram getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Histogram parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Histogram(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 io.prometheus.client.Metrics.Histogram getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BucketOrBuilder extends // @@protoc_insertion_point(interface_extends:io.prometheus.client.Bucket) com.google.protobuf.MessageOrBuilder { /** *
     * Cumulative in increasing order.
     * 
* * optional uint64 cumulative_count = 1; */ boolean hasCumulativeCount(); /** *
     * Cumulative in increasing order.
     * 
* * optional uint64 cumulative_count = 1; */ long getCumulativeCount(); /** *
     * Inclusive.
     * 
* * optional double upper_bound = 2; */ boolean hasUpperBound(); /** *
     * Inclusive.
     * 
* * optional double upper_bound = 2; */ double getUpperBound(); } /** * Protobuf type {@code io.prometheus.client.Bucket} */ public static final class Bucket extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.prometheus.client.Bucket) BucketOrBuilder { private static final long serialVersionUID = 0L; // Use Bucket.newBuilder() to construct. private Bucket(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Bucket() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Bucket(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Bucket( 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 8: { bitField0_ |= 0x00000001; cumulativeCount_ = input.readUInt64(); break; } case 17: { bitField0_ |= 0x00000002; upperBound_ = input.readDouble(); 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 io.prometheus.client.Metrics.internal_static_io_prometheus_client_Bucket_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Bucket_fieldAccessorTable .ensureFieldAccessorsInitialized( io.prometheus.client.Metrics.Bucket.class, io.prometheus.client.Metrics.Bucket.Builder.class); } private int bitField0_; public static final int CUMULATIVE_COUNT_FIELD_NUMBER = 1; private long cumulativeCount_; /** *
     * Cumulative in increasing order.
     * 
* * optional uint64 cumulative_count = 1; */ public boolean hasCumulativeCount() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Cumulative in increasing order.
     * 
* * optional uint64 cumulative_count = 1; */ public long getCumulativeCount() { return cumulativeCount_; } public static final int UPPER_BOUND_FIELD_NUMBER = 2; private double upperBound_; /** *
     * Inclusive.
     * 
* * optional double upper_bound = 2; */ public boolean hasUpperBound() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Inclusive.
     * 
* * optional double upper_bound = 2; */ public double getUpperBound() { return upperBound_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt64(1, cumulativeCount_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeDouble(2, upperBound_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, cumulativeCount_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(2, upperBound_); } 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 io.prometheus.client.Metrics.Bucket)) { return super.equals(obj); } io.prometheus.client.Metrics.Bucket other = (io.prometheus.client.Metrics.Bucket) obj; if (hasCumulativeCount() != other.hasCumulativeCount()) return false; if (hasCumulativeCount()) { if (getCumulativeCount() != other.getCumulativeCount()) return false; } if (hasUpperBound() != other.hasUpperBound()) return false; if (hasUpperBound()) { if (java.lang.Double.doubleToLongBits(getUpperBound()) != java.lang.Double.doubleToLongBits( other.getUpperBound())) 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 (hasCumulativeCount()) { hash = (37 * hash) + CUMULATIVE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getCumulativeCount()); } if (hasUpperBound()) { hash = (37 * hash) + UPPER_BOUND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getUpperBound())); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.prometheus.client.Metrics.Bucket parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.prometheus.client.Metrics.Bucket parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.prometheus.client.Metrics.Bucket parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.prometheus.client.Metrics.Bucket parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.prometheus.client.Metrics.Bucket parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.prometheus.client.Metrics.Bucket parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.prometheus.client.Metrics.Bucket parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.prometheus.client.Metrics.Bucket 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 io.prometheus.client.Metrics.Bucket parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.prometheus.client.Metrics.Bucket 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 io.prometheus.client.Metrics.Bucket parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.prometheus.client.Metrics.Bucket 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(io.prometheus.client.Metrics.Bucket 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 io.prometheus.client.Bucket} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.prometheus.client.Bucket) io.prometheus.client.Metrics.BucketOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Bucket_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Bucket_fieldAccessorTable .ensureFieldAccessorsInitialized( io.prometheus.client.Metrics.Bucket.class, io.prometheus.client.Metrics.Bucket.Builder.class); } // Construct using io.prometheus.client.Metrics.Bucket.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(); cumulativeCount_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); upperBound_ = 0D; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Bucket_descriptor; } @java.lang.Override public io.prometheus.client.Metrics.Bucket getDefaultInstanceForType() { return io.prometheus.client.Metrics.Bucket.getDefaultInstance(); } @java.lang.Override public io.prometheus.client.Metrics.Bucket build() { io.prometheus.client.Metrics.Bucket result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.prometheus.client.Metrics.Bucket buildPartial() { io.prometheus.client.Metrics.Bucket result = new io.prometheus.client.Metrics.Bucket(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.cumulativeCount_ = cumulativeCount_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.upperBound_ = upperBound_; to_bitField0_ |= 0x00000002; } result.bitField0_ = to_bitField0_; 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 io.prometheus.client.Metrics.Bucket) { return mergeFrom((io.prometheus.client.Metrics.Bucket)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.prometheus.client.Metrics.Bucket other) { if (other == io.prometheus.client.Metrics.Bucket.getDefaultInstance()) return this; if (other.hasCumulativeCount()) { setCumulativeCount(other.getCumulativeCount()); } if (other.hasUpperBound()) { setUpperBound(other.getUpperBound()); } 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 { io.prometheus.client.Metrics.Bucket parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.prometheus.client.Metrics.Bucket) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long cumulativeCount_ ; /** *
       * Cumulative in increasing order.
       * 
* * optional uint64 cumulative_count = 1; */ public boolean hasCumulativeCount() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Cumulative in increasing order.
       * 
* * optional uint64 cumulative_count = 1; */ public long getCumulativeCount() { return cumulativeCount_; } /** *
       * Cumulative in increasing order.
       * 
* * optional uint64 cumulative_count = 1; */ public Builder setCumulativeCount(long value) { bitField0_ |= 0x00000001; cumulativeCount_ = value; onChanged(); return this; } /** *
       * Cumulative in increasing order.
       * 
* * optional uint64 cumulative_count = 1; */ public Builder clearCumulativeCount() { bitField0_ = (bitField0_ & ~0x00000001); cumulativeCount_ = 0L; onChanged(); return this; } private double upperBound_ ; /** *
       * Inclusive.
       * 
* * optional double upper_bound = 2; */ public boolean hasUpperBound() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Inclusive.
       * 
* * optional double upper_bound = 2; */ public double getUpperBound() { return upperBound_; } /** *
       * Inclusive.
       * 
* * optional double upper_bound = 2; */ public Builder setUpperBound(double value) { bitField0_ |= 0x00000002; upperBound_ = value; onChanged(); return this; } /** *
       * Inclusive.
       * 
* * optional double upper_bound = 2; */ public Builder clearUpperBound() { bitField0_ = (bitField0_ & ~0x00000002); upperBound_ = 0D; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:io.prometheus.client.Bucket) } // @@protoc_insertion_point(class_scope:io.prometheus.client.Bucket) private static final io.prometheus.client.Metrics.Bucket DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.prometheus.client.Metrics.Bucket(); } public static io.prometheus.client.Metrics.Bucket getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Bucket parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Bucket(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 io.prometheus.client.Metrics.Bucket getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MetricOrBuilder extends // @@protoc_insertion_point(interface_extends:io.prometheus.client.Metric) com.google.protobuf.MessageOrBuilder { /** * repeated .io.prometheus.client.LabelPair label = 1; */ java.util.List getLabelList(); /** * repeated .io.prometheus.client.LabelPair label = 1; */ io.prometheus.client.Metrics.LabelPair getLabel(int index); /** * repeated .io.prometheus.client.LabelPair label = 1; */ int getLabelCount(); /** * repeated .io.prometheus.client.LabelPair label = 1; */ java.util.List getLabelOrBuilderList(); /** * repeated .io.prometheus.client.LabelPair label = 1; */ io.prometheus.client.Metrics.LabelPairOrBuilder getLabelOrBuilder( int index); /** * optional .io.prometheus.client.Gauge gauge = 2; */ boolean hasGauge(); /** * optional .io.prometheus.client.Gauge gauge = 2; */ io.prometheus.client.Metrics.Gauge getGauge(); /** * optional .io.prometheus.client.Gauge gauge = 2; */ io.prometheus.client.Metrics.GaugeOrBuilder getGaugeOrBuilder(); /** * optional .io.prometheus.client.Counter counter = 3; */ boolean hasCounter(); /** * optional .io.prometheus.client.Counter counter = 3; */ io.prometheus.client.Metrics.Counter getCounter(); /** * optional .io.prometheus.client.Counter counter = 3; */ io.prometheus.client.Metrics.CounterOrBuilder getCounterOrBuilder(); /** * optional .io.prometheus.client.Summary summary = 4; */ boolean hasSummary(); /** * optional .io.prometheus.client.Summary summary = 4; */ io.prometheus.client.Metrics.Summary getSummary(); /** * optional .io.prometheus.client.Summary summary = 4; */ io.prometheus.client.Metrics.SummaryOrBuilder getSummaryOrBuilder(); /** * optional .io.prometheus.client.Untyped untyped = 5; */ boolean hasUntyped(); /** * optional .io.prometheus.client.Untyped untyped = 5; */ io.prometheus.client.Metrics.Untyped getUntyped(); /** * optional .io.prometheus.client.Untyped untyped = 5; */ io.prometheus.client.Metrics.UntypedOrBuilder getUntypedOrBuilder(); /** * optional .io.prometheus.client.Histogram histogram = 7; */ boolean hasHistogram(); /** * optional .io.prometheus.client.Histogram histogram = 7; */ io.prometheus.client.Metrics.Histogram getHistogram(); /** * optional .io.prometheus.client.Histogram histogram = 7; */ io.prometheus.client.Metrics.HistogramOrBuilder getHistogramOrBuilder(); /** * optional int64 timestamp_ms = 6; */ boolean hasTimestampMs(); /** * optional int64 timestamp_ms = 6; */ long getTimestampMs(); } /** * Protobuf type {@code io.prometheus.client.Metric} */ public static final class Metric extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.prometheus.client.Metric) MetricOrBuilder { private static final long serialVersionUID = 0L; // Use Metric.newBuilder() to construct. private Metric(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Metric() { label_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Metric(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Metric( 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)) { label_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } label_.add( input.readMessage(io.prometheus.client.Metrics.LabelPair.PARSER, extensionRegistry)); break; } case 18: { io.prometheus.client.Metrics.Gauge.Builder subBuilder = null; if (((bitField0_ & 0x00000001) != 0)) { subBuilder = gauge_.toBuilder(); } gauge_ = input.readMessage(io.prometheus.client.Metrics.Gauge.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(gauge_); gauge_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 26: { io.prometheus.client.Metrics.Counter.Builder subBuilder = null; if (((bitField0_ & 0x00000002) != 0)) { subBuilder = counter_.toBuilder(); } counter_ = input.readMessage(io.prometheus.client.Metrics.Counter.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(counter_); counter_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 34: { io.prometheus.client.Metrics.Summary.Builder subBuilder = null; if (((bitField0_ & 0x00000004) != 0)) { subBuilder = summary_.toBuilder(); } summary_ = input.readMessage(io.prometheus.client.Metrics.Summary.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(summary_); summary_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 42: { io.prometheus.client.Metrics.Untyped.Builder subBuilder = null; if (((bitField0_ & 0x00000008) != 0)) { subBuilder = untyped_.toBuilder(); } untyped_ = input.readMessage(io.prometheus.client.Metrics.Untyped.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(untyped_); untyped_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 48: { bitField0_ |= 0x00000020; timestampMs_ = input.readInt64(); break; } case 58: { io.prometheus.client.Metrics.Histogram.Builder subBuilder = null; if (((bitField0_ & 0x00000010) != 0)) { subBuilder = histogram_.toBuilder(); } histogram_ = input.readMessage(io.prometheus.client.Metrics.Histogram.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(histogram_); histogram_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; 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)) { label_ = java.util.Collections.unmodifiableList(label_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Metric_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Metric_fieldAccessorTable .ensureFieldAccessorsInitialized( io.prometheus.client.Metrics.Metric.class, io.prometheus.client.Metrics.Metric.Builder.class); } private int bitField0_; public static final int LABEL_FIELD_NUMBER = 1; private java.util.List label_; /** * repeated .io.prometheus.client.LabelPair label = 1; */ public java.util.List getLabelList() { return label_; } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public java.util.List getLabelOrBuilderList() { return label_; } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public int getLabelCount() { return label_.size(); } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public io.prometheus.client.Metrics.LabelPair getLabel(int index) { return label_.get(index); } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public io.prometheus.client.Metrics.LabelPairOrBuilder getLabelOrBuilder( int index) { return label_.get(index); } public static final int GAUGE_FIELD_NUMBER = 2; private io.prometheus.client.Metrics.Gauge gauge_; /** * optional .io.prometheus.client.Gauge gauge = 2; */ public boolean hasGauge() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .io.prometheus.client.Gauge gauge = 2; */ public io.prometheus.client.Metrics.Gauge getGauge() { return gauge_ == null ? io.prometheus.client.Metrics.Gauge.getDefaultInstance() : gauge_; } /** * optional .io.prometheus.client.Gauge gauge = 2; */ public io.prometheus.client.Metrics.GaugeOrBuilder getGaugeOrBuilder() { return gauge_ == null ? io.prometheus.client.Metrics.Gauge.getDefaultInstance() : gauge_; } public static final int COUNTER_FIELD_NUMBER = 3; private io.prometheus.client.Metrics.Counter counter_; /** * optional .io.prometheus.client.Counter counter = 3; */ public boolean hasCounter() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .io.prometheus.client.Counter counter = 3; */ public io.prometheus.client.Metrics.Counter getCounter() { return counter_ == null ? io.prometheus.client.Metrics.Counter.getDefaultInstance() : counter_; } /** * optional .io.prometheus.client.Counter counter = 3; */ public io.prometheus.client.Metrics.CounterOrBuilder getCounterOrBuilder() { return counter_ == null ? io.prometheus.client.Metrics.Counter.getDefaultInstance() : counter_; } public static final int SUMMARY_FIELD_NUMBER = 4; private io.prometheus.client.Metrics.Summary summary_; /** * optional .io.prometheus.client.Summary summary = 4; */ public boolean hasSummary() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .io.prometheus.client.Summary summary = 4; */ public io.prometheus.client.Metrics.Summary getSummary() { return summary_ == null ? io.prometheus.client.Metrics.Summary.getDefaultInstance() : summary_; } /** * optional .io.prometheus.client.Summary summary = 4; */ public io.prometheus.client.Metrics.SummaryOrBuilder getSummaryOrBuilder() { return summary_ == null ? io.prometheus.client.Metrics.Summary.getDefaultInstance() : summary_; } public static final int UNTYPED_FIELD_NUMBER = 5; private io.prometheus.client.Metrics.Untyped untyped_; /** * optional .io.prometheus.client.Untyped untyped = 5; */ public boolean hasUntyped() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .io.prometheus.client.Untyped untyped = 5; */ public io.prometheus.client.Metrics.Untyped getUntyped() { return untyped_ == null ? io.prometheus.client.Metrics.Untyped.getDefaultInstance() : untyped_; } /** * optional .io.prometheus.client.Untyped untyped = 5; */ public io.prometheus.client.Metrics.UntypedOrBuilder getUntypedOrBuilder() { return untyped_ == null ? io.prometheus.client.Metrics.Untyped.getDefaultInstance() : untyped_; } public static final int HISTOGRAM_FIELD_NUMBER = 7; private io.prometheus.client.Metrics.Histogram histogram_; /** * optional .io.prometheus.client.Histogram histogram = 7; */ public boolean hasHistogram() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .io.prometheus.client.Histogram histogram = 7; */ public io.prometheus.client.Metrics.Histogram getHistogram() { return histogram_ == null ? io.prometheus.client.Metrics.Histogram.getDefaultInstance() : histogram_; } /** * optional .io.prometheus.client.Histogram histogram = 7; */ public io.prometheus.client.Metrics.HistogramOrBuilder getHistogramOrBuilder() { return histogram_ == null ? io.prometheus.client.Metrics.Histogram.getDefaultInstance() : histogram_; } public static final int TIMESTAMP_MS_FIELD_NUMBER = 6; private long timestampMs_; /** * optional int64 timestamp_ms = 6; */ public boolean hasTimestampMs() { return ((bitField0_ & 0x00000020) != 0); } /** * optional int64 timestamp_ms = 6; */ public long getTimestampMs() { return timestampMs_; } 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 < label_.size(); i++) { output.writeMessage(1, label_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getGauge()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getCounter()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getSummary()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(5, getUntyped()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeInt64(6, timestampMs_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(7, getHistogram()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < label_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, label_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getGauge()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCounter()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getSummary()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getUntyped()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(6, timestampMs_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getHistogram()); } 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 io.prometheus.client.Metrics.Metric)) { return super.equals(obj); } io.prometheus.client.Metrics.Metric other = (io.prometheus.client.Metrics.Metric) obj; if (!getLabelList() .equals(other.getLabelList())) return false; if (hasGauge() != other.hasGauge()) return false; if (hasGauge()) { if (!getGauge() .equals(other.getGauge())) return false; } if (hasCounter() != other.hasCounter()) return false; if (hasCounter()) { if (!getCounter() .equals(other.getCounter())) return false; } if (hasSummary() != other.hasSummary()) return false; if (hasSummary()) { if (!getSummary() .equals(other.getSummary())) return false; } if (hasUntyped() != other.hasUntyped()) return false; if (hasUntyped()) { if (!getUntyped() .equals(other.getUntyped())) return false; } if (hasHistogram() != other.hasHistogram()) return false; if (hasHistogram()) { if (!getHistogram() .equals(other.getHistogram())) return false; } if (hasTimestampMs() != other.hasTimestampMs()) return false; if (hasTimestampMs()) { if (getTimestampMs() != other.getTimestampMs()) 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 (getLabelCount() > 0) { hash = (37 * hash) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabelList().hashCode(); } if (hasGauge()) { hash = (37 * hash) + GAUGE_FIELD_NUMBER; hash = (53 * hash) + getGauge().hashCode(); } if (hasCounter()) { hash = (37 * hash) + COUNTER_FIELD_NUMBER; hash = (53 * hash) + getCounter().hashCode(); } if (hasSummary()) { hash = (37 * hash) + SUMMARY_FIELD_NUMBER; hash = (53 * hash) + getSummary().hashCode(); } if (hasUntyped()) { hash = (37 * hash) + UNTYPED_FIELD_NUMBER; hash = (53 * hash) + getUntyped().hashCode(); } if (hasHistogram()) { hash = (37 * hash) + HISTOGRAM_FIELD_NUMBER; hash = (53 * hash) + getHistogram().hashCode(); } if (hasTimestampMs()) { hash = (37 * hash) + TIMESTAMP_MS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestampMs()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.prometheus.client.Metrics.Metric parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.prometheus.client.Metrics.Metric parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.prometheus.client.Metrics.Metric parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.prometheus.client.Metrics.Metric parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.prometheus.client.Metrics.Metric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.prometheus.client.Metrics.Metric parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.prometheus.client.Metrics.Metric parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.prometheus.client.Metrics.Metric 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 io.prometheus.client.Metrics.Metric parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.prometheus.client.Metrics.Metric 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 io.prometheus.client.Metrics.Metric parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.prometheus.client.Metrics.Metric 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(io.prometheus.client.Metrics.Metric 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 io.prometheus.client.Metric} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.prometheus.client.Metric) io.prometheus.client.Metrics.MetricOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Metric_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Metric_fieldAccessorTable .ensureFieldAccessorsInitialized( io.prometheus.client.Metrics.Metric.class, io.prometheus.client.Metrics.Metric.Builder.class); } // Construct using io.prometheus.client.Metrics.Metric.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLabelFieldBuilder(); getGaugeFieldBuilder(); getCounterFieldBuilder(); getSummaryFieldBuilder(); getUntypedFieldBuilder(); getHistogramFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (labelBuilder_ == null) { label_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { labelBuilder_.clear(); } if (gaugeBuilder_ == null) { gauge_ = null; } else { gaugeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (counterBuilder_ == null) { counter_ = null; } else { counterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (summaryBuilder_ == null) { summary_ = null; } else { summaryBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (untypedBuilder_ == null) { untyped_ = null; } else { untypedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (histogramBuilder_ == null) { histogram_ = null; } else { histogramBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); timestampMs_ = 0L; bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_Metric_descriptor; } @java.lang.Override public io.prometheus.client.Metrics.Metric getDefaultInstanceForType() { return io.prometheus.client.Metrics.Metric.getDefaultInstance(); } @java.lang.Override public io.prometheus.client.Metrics.Metric build() { io.prometheus.client.Metrics.Metric result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.prometheus.client.Metrics.Metric buildPartial() { io.prometheus.client.Metrics.Metric result = new io.prometheus.client.Metrics.Metric(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (labelBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { label_ = java.util.Collections.unmodifiableList(label_); bitField0_ = (bitField0_ & ~0x00000001); } result.label_ = label_; } else { result.label_ = labelBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { if (gaugeBuilder_ == null) { result.gauge_ = gauge_; } else { result.gauge_ = gaugeBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { if (counterBuilder_ == null) { result.counter_ = counter_; } else { result.counter_ = counterBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { if (summaryBuilder_ == null) { result.summary_ = summary_; } else { result.summary_ = summaryBuilder_.build(); } to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { if (untypedBuilder_ == null) { result.untyped_ = untyped_; } else { result.untyped_ = untypedBuilder_.build(); } to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { if (histogramBuilder_ == null) { result.histogram_ = histogram_; } else { result.histogram_ = histogramBuilder_.build(); } to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { result.timestampMs_ = timestampMs_; to_bitField0_ |= 0x00000020; } result.bitField0_ = to_bitField0_; 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 io.prometheus.client.Metrics.Metric) { return mergeFrom((io.prometheus.client.Metrics.Metric)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.prometheus.client.Metrics.Metric other) { if (other == io.prometheus.client.Metrics.Metric.getDefaultInstance()) return this; if (labelBuilder_ == null) { if (!other.label_.isEmpty()) { if (label_.isEmpty()) { label_ = other.label_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLabelIsMutable(); label_.addAll(other.label_); } onChanged(); } } else { if (!other.label_.isEmpty()) { if (labelBuilder_.isEmpty()) { labelBuilder_.dispose(); labelBuilder_ = null; label_ = other.label_; bitField0_ = (bitField0_ & ~0x00000001); labelBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLabelFieldBuilder() : null; } else { labelBuilder_.addAllMessages(other.label_); } } } if (other.hasGauge()) { mergeGauge(other.getGauge()); } if (other.hasCounter()) { mergeCounter(other.getCounter()); } if (other.hasSummary()) { mergeSummary(other.getSummary()); } if (other.hasUntyped()) { mergeUntyped(other.getUntyped()); } if (other.hasHistogram()) { mergeHistogram(other.getHistogram()); } if (other.hasTimestampMs()) { setTimestampMs(other.getTimestampMs()); } 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 { io.prometheus.client.Metrics.Metric parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.prometheus.client.Metrics.Metric) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List label_ = java.util.Collections.emptyList(); private void ensureLabelIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { label_ = new java.util.ArrayList(label_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.prometheus.client.Metrics.LabelPair, io.prometheus.client.Metrics.LabelPair.Builder, io.prometheus.client.Metrics.LabelPairOrBuilder> labelBuilder_; /** * repeated .io.prometheus.client.LabelPair label = 1; */ public java.util.List getLabelList() { if (labelBuilder_ == null) { return java.util.Collections.unmodifiableList(label_); } else { return labelBuilder_.getMessageList(); } } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public int getLabelCount() { if (labelBuilder_ == null) { return label_.size(); } else { return labelBuilder_.getCount(); } } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public io.prometheus.client.Metrics.LabelPair getLabel(int index) { if (labelBuilder_ == null) { return label_.get(index); } else { return labelBuilder_.getMessage(index); } } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public Builder setLabel( int index, io.prometheus.client.Metrics.LabelPair value) { if (labelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelIsMutable(); label_.set(index, value); onChanged(); } else { labelBuilder_.setMessage(index, value); } return this; } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public Builder setLabel( int index, io.prometheus.client.Metrics.LabelPair.Builder builderForValue) { if (labelBuilder_ == null) { ensureLabelIsMutable(); label_.set(index, builderForValue.build()); onChanged(); } else { labelBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public Builder addLabel(io.prometheus.client.Metrics.LabelPair value) { if (labelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelIsMutable(); label_.add(value); onChanged(); } else { labelBuilder_.addMessage(value); } return this; } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public Builder addLabel( int index, io.prometheus.client.Metrics.LabelPair value) { if (labelBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLabelIsMutable(); label_.add(index, value); onChanged(); } else { labelBuilder_.addMessage(index, value); } return this; } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public Builder addLabel( io.prometheus.client.Metrics.LabelPair.Builder builderForValue) { if (labelBuilder_ == null) { ensureLabelIsMutable(); label_.add(builderForValue.build()); onChanged(); } else { labelBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public Builder addLabel( int index, io.prometheus.client.Metrics.LabelPair.Builder builderForValue) { if (labelBuilder_ == null) { ensureLabelIsMutable(); label_.add(index, builderForValue.build()); onChanged(); } else { labelBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public Builder addAllLabel( java.lang.Iterable values) { if (labelBuilder_ == null) { ensureLabelIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, label_); onChanged(); } else { labelBuilder_.addAllMessages(values); } return this; } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public Builder clearLabel() { if (labelBuilder_ == null) { label_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { labelBuilder_.clear(); } return this; } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public Builder removeLabel(int index) { if (labelBuilder_ == null) { ensureLabelIsMutable(); label_.remove(index); onChanged(); } else { labelBuilder_.remove(index); } return this; } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public io.prometheus.client.Metrics.LabelPair.Builder getLabelBuilder( int index) { return getLabelFieldBuilder().getBuilder(index); } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public io.prometheus.client.Metrics.LabelPairOrBuilder getLabelOrBuilder( int index) { if (labelBuilder_ == null) { return label_.get(index); } else { return labelBuilder_.getMessageOrBuilder(index); } } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public java.util.List getLabelOrBuilderList() { if (labelBuilder_ != null) { return labelBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(label_); } } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public io.prometheus.client.Metrics.LabelPair.Builder addLabelBuilder() { return getLabelFieldBuilder().addBuilder( io.prometheus.client.Metrics.LabelPair.getDefaultInstance()); } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public io.prometheus.client.Metrics.LabelPair.Builder addLabelBuilder( int index) { return getLabelFieldBuilder().addBuilder( index, io.prometheus.client.Metrics.LabelPair.getDefaultInstance()); } /** * repeated .io.prometheus.client.LabelPair label = 1; */ public java.util.List getLabelBuilderList() { return getLabelFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.prometheus.client.Metrics.LabelPair, io.prometheus.client.Metrics.LabelPair.Builder, io.prometheus.client.Metrics.LabelPairOrBuilder> getLabelFieldBuilder() { if (labelBuilder_ == null) { labelBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.prometheus.client.Metrics.LabelPair, io.prometheus.client.Metrics.LabelPair.Builder, io.prometheus.client.Metrics.LabelPairOrBuilder>( label_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); label_ = null; } return labelBuilder_; } private io.prometheus.client.Metrics.Gauge gauge_; private com.google.protobuf.SingleFieldBuilderV3< io.prometheus.client.Metrics.Gauge, io.prometheus.client.Metrics.Gauge.Builder, io.prometheus.client.Metrics.GaugeOrBuilder> gaugeBuilder_; /** * optional .io.prometheus.client.Gauge gauge = 2; */ public boolean hasGauge() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .io.prometheus.client.Gauge gauge = 2; */ public io.prometheus.client.Metrics.Gauge getGauge() { if (gaugeBuilder_ == null) { return gauge_ == null ? io.prometheus.client.Metrics.Gauge.getDefaultInstance() : gauge_; } else { return gaugeBuilder_.getMessage(); } } /** * optional .io.prometheus.client.Gauge gauge = 2; */ public Builder setGauge(io.prometheus.client.Metrics.Gauge value) { if (gaugeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } gauge_ = value; onChanged(); } else { gaugeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .io.prometheus.client.Gauge gauge = 2; */ public Builder setGauge( io.prometheus.client.Metrics.Gauge.Builder builderForValue) { if (gaugeBuilder_ == null) { gauge_ = builderForValue.build(); onChanged(); } else { gaugeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .io.prometheus.client.Gauge gauge = 2; */ public Builder mergeGauge(io.prometheus.client.Metrics.Gauge value) { if (gaugeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && gauge_ != null && gauge_ != io.prometheus.client.Metrics.Gauge.getDefaultInstance()) { gauge_ = io.prometheus.client.Metrics.Gauge.newBuilder(gauge_).mergeFrom(value).buildPartial(); } else { gauge_ = value; } onChanged(); } else { gaugeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .io.prometheus.client.Gauge gauge = 2; */ public Builder clearGauge() { if (gaugeBuilder_ == null) { gauge_ = null; onChanged(); } else { gaugeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .io.prometheus.client.Gauge gauge = 2; */ public io.prometheus.client.Metrics.Gauge.Builder getGaugeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getGaugeFieldBuilder().getBuilder(); } /** * optional .io.prometheus.client.Gauge gauge = 2; */ public io.prometheus.client.Metrics.GaugeOrBuilder getGaugeOrBuilder() { if (gaugeBuilder_ != null) { return gaugeBuilder_.getMessageOrBuilder(); } else { return gauge_ == null ? io.prometheus.client.Metrics.Gauge.getDefaultInstance() : gauge_; } } /** * optional .io.prometheus.client.Gauge gauge = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.prometheus.client.Metrics.Gauge, io.prometheus.client.Metrics.Gauge.Builder, io.prometheus.client.Metrics.GaugeOrBuilder> getGaugeFieldBuilder() { if (gaugeBuilder_ == null) { gaugeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.prometheus.client.Metrics.Gauge, io.prometheus.client.Metrics.Gauge.Builder, io.prometheus.client.Metrics.GaugeOrBuilder>( getGauge(), getParentForChildren(), isClean()); gauge_ = null; } return gaugeBuilder_; } private io.prometheus.client.Metrics.Counter counter_; private com.google.protobuf.SingleFieldBuilderV3< io.prometheus.client.Metrics.Counter, io.prometheus.client.Metrics.Counter.Builder, io.prometheus.client.Metrics.CounterOrBuilder> counterBuilder_; /** * optional .io.prometheus.client.Counter counter = 3; */ public boolean hasCounter() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .io.prometheus.client.Counter counter = 3; */ public io.prometheus.client.Metrics.Counter getCounter() { if (counterBuilder_ == null) { return counter_ == null ? io.prometheus.client.Metrics.Counter.getDefaultInstance() : counter_; } else { return counterBuilder_.getMessage(); } } /** * optional .io.prometheus.client.Counter counter = 3; */ public Builder setCounter(io.prometheus.client.Metrics.Counter value) { if (counterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } counter_ = value; onChanged(); } else { counterBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .io.prometheus.client.Counter counter = 3; */ public Builder setCounter( io.prometheus.client.Metrics.Counter.Builder builderForValue) { if (counterBuilder_ == null) { counter_ = builderForValue.build(); onChanged(); } else { counterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .io.prometheus.client.Counter counter = 3; */ public Builder mergeCounter(io.prometheus.client.Metrics.Counter value) { if (counterBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && counter_ != null && counter_ != io.prometheus.client.Metrics.Counter.getDefaultInstance()) { counter_ = io.prometheus.client.Metrics.Counter.newBuilder(counter_).mergeFrom(value).buildPartial(); } else { counter_ = value; } onChanged(); } else { counterBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .io.prometheus.client.Counter counter = 3; */ public Builder clearCounter() { if (counterBuilder_ == null) { counter_ = null; onChanged(); } else { counterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .io.prometheus.client.Counter counter = 3; */ public io.prometheus.client.Metrics.Counter.Builder getCounterBuilder() { bitField0_ |= 0x00000004; onChanged(); return getCounterFieldBuilder().getBuilder(); } /** * optional .io.prometheus.client.Counter counter = 3; */ public io.prometheus.client.Metrics.CounterOrBuilder getCounterOrBuilder() { if (counterBuilder_ != null) { return counterBuilder_.getMessageOrBuilder(); } else { return counter_ == null ? io.prometheus.client.Metrics.Counter.getDefaultInstance() : counter_; } } /** * optional .io.prometheus.client.Counter counter = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.prometheus.client.Metrics.Counter, io.prometheus.client.Metrics.Counter.Builder, io.prometheus.client.Metrics.CounterOrBuilder> getCounterFieldBuilder() { if (counterBuilder_ == null) { counterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.prometheus.client.Metrics.Counter, io.prometheus.client.Metrics.Counter.Builder, io.prometheus.client.Metrics.CounterOrBuilder>( getCounter(), getParentForChildren(), isClean()); counter_ = null; } return counterBuilder_; } private io.prometheus.client.Metrics.Summary summary_; private com.google.protobuf.SingleFieldBuilderV3< io.prometheus.client.Metrics.Summary, io.prometheus.client.Metrics.Summary.Builder, io.prometheus.client.Metrics.SummaryOrBuilder> summaryBuilder_; /** * optional .io.prometheus.client.Summary summary = 4; */ public boolean hasSummary() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .io.prometheus.client.Summary summary = 4; */ public io.prometheus.client.Metrics.Summary getSummary() { if (summaryBuilder_ == null) { return summary_ == null ? io.prometheus.client.Metrics.Summary.getDefaultInstance() : summary_; } else { return summaryBuilder_.getMessage(); } } /** * optional .io.prometheus.client.Summary summary = 4; */ public Builder setSummary(io.prometheus.client.Metrics.Summary value) { if (summaryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } summary_ = value; onChanged(); } else { summaryBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .io.prometheus.client.Summary summary = 4; */ public Builder setSummary( io.prometheus.client.Metrics.Summary.Builder builderForValue) { if (summaryBuilder_ == null) { summary_ = builderForValue.build(); onChanged(); } else { summaryBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .io.prometheus.client.Summary summary = 4; */ public Builder mergeSummary(io.prometheus.client.Metrics.Summary value) { if (summaryBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && summary_ != null && summary_ != io.prometheus.client.Metrics.Summary.getDefaultInstance()) { summary_ = io.prometheus.client.Metrics.Summary.newBuilder(summary_).mergeFrom(value).buildPartial(); } else { summary_ = value; } onChanged(); } else { summaryBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .io.prometheus.client.Summary summary = 4; */ public Builder clearSummary() { if (summaryBuilder_ == null) { summary_ = null; onChanged(); } else { summaryBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .io.prometheus.client.Summary summary = 4; */ public io.prometheus.client.Metrics.Summary.Builder getSummaryBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSummaryFieldBuilder().getBuilder(); } /** * optional .io.prometheus.client.Summary summary = 4; */ public io.prometheus.client.Metrics.SummaryOrBuilder getSummaryOrBuilder() { if (summaryBuilder_ != null) { return summaryBuilder_.getMessageOrBuilder(); } else { return summary_ == null ? io.prometheus.client.Metrics.Summary.getDefaultInstance() : summary_; } } /** * optional .io.prometheus.client.Summary summary = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.prometheus.client.Metrics.Summary, io.prometheus.client.Metrics.Summary.Builder, io.prometheus.client.Metrics.SummaryOrBuilder> getSummaryFieldBuilder() { if (summaryBuilder_ == null) { summaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.prometheus.client.Metrics.Summary, io.prometheus.client.Metrics.Summary.Builder, io.prometheus.client.Metrics.SummaryOrBuilder>( getSummary(), getParentForChildren(), isClean()); summary_ = null; } return summaryBuilder_; } private io.prometheus.client.Metrics.Untyped untyped_; private com.google.protobuf.SingleFieldBuilderV3< io.prometheus.client.Metrics.Untyped, io.prometheus.client.Metrics.Untyped.Builder, io.prometheus.client.Metrics.UntypedOrBuilder> untypedBuilder_; /** * optional .io.prometheus.client.Untyped untyped = 5; */ public boolean hasUntyped() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .io.prometheus.client.Untyped untyped = 5; */ public io.prometheus.client.Metrics.Untyped getUntyped() { if (untypedBuilder_ == null) { return untyped_ == null ? io.prometheus.client.Metrics.Untyped.getDefaultInstance() : untyped_; } else { return untypedBuilder_.getMessage(); } } /** * optional .io.prometheus.client.Untyped untyped = 5; */ public Builder setUntyped(io.prometheus.client.Metrics.Untyped value) { if (untypedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } untyped_ = value; onChanged(); } else { untypedBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .io.prometheus.client.Untyped untyped = 5; */ public Builder setUntyped( io.prometheus.client.Metrics.Untyped.Builder builderForValue) { if (untypedBuilder_ == null) { untyped_ = builderForValue.build(); onChanged(); } else { untypedBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .io.prometheus.client.Untyped untyped = 5; */ public Builder mergeUntyped(io.prometheus.client.Metrics.Untyped value) { if (untypedBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && untyped_ != null && untyped_ != io.prometheus.client.Metrics.Untyped.getDefaultInstance()) { untyped_ = io.prometheus.client.Metrics.Untyped.newBuilder(untyped_).mergeFrom(value).buildPartial(); } else { untyped_ = value; } onChanged(); } else { untypedBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .io.prometheus.client.Untyped untyped = 5; */ public Builder clearUntyped() { if (untypedBuilder_ == null) { untyped_ = null; onChanged(); } else { untypedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .io.prometheus.client.Untyped untyped = 5; */ public io.prometheus.client.Metrics.Untyped.Builder getUntypedBuilder() { bitField0_ |= 0x00000010; onChanged(); return getUntypedFieldBuilder().getBuilder(); } /** * optional .io.prometheus.client.Untyped untyped = 5; */ public io.prometheus.client.Metrics.UntypedOrBuilder getUntypedOrBuilder() { if (untypedBuilder_ != null) { return untypedBuilder_.getMessageOrBuilder(); } else { return untyped_ == null ? io.prometheus.client.Metrics.Untyped.getDefaultInstance() : untyped_; } } /** * optional .io.prometheus.client.Untyped untyped = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.prometheus.client.Metrics.Untyped, io.prometheus.client.Metrics.Untyped.Builder, io.prometheus.client.Metrics.UntypedOrBuilder> getUntypedFieldBuilder() { if (untypedBuilder_ == null) { untypedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.prometheus.client.Metrics.Untyped, io.prometheus.client.Metrics.Untyped.Builder, io.prometheus.client.Metrics.UntypedOrBuilder>( getUntyped(), getParentForChildren(), isClean()); untyped_ = null; } return untypedBuilder_; } private io.prometheus.client.Metrics.Histogram histogram_; private com.google.protobuf.SingleFieldBuilderV3< io.prometheus.client.Metrics.Histogram, io.prometheus.client.Metrics.Histogram.Builder, io.prometheus.client.Metrics.HistogramOrBuilder> histogramBuilder_; /** * optional .io.prometheus.client.Histogram histogram = 7; */ public boolean hasHistogram() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .io.prometheus.client.Histogram histogram = 7; */ public io.prometheus.client.Metrics.Histogram getHistogram() { if (histogramBuilder_ == null) { return histogram_ == null ? io.prometheus.client.Metrics.Histogram.getDefaultInstance() : histogram_; } else { return histogramBuilder_.getMessage(); } } /** * optional .io.prometheus.client.Histogram histogram = 7; */ public Builder setHistogram(io.prometheus.client.Metrics.Histogram value) { if (histogramBuilder_ == null) { if (value == null) { throw new NullPointerException(); } histogram_ = value; onChanged(); } else { histogramBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * optional .io.prometheus.client.Histogram histogram = 7; */ public Builder setHistogram( io.prometheus.client.Metrics.Histogram.Builder builderForValue) { if (histogramBuilder_ == null) { histogram_ = builderForValue.build(); onChanged(); } else { histogramBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * optional .io.prometheus.client.Histogram histogram = 7; */ public Builder mergeHistogram(io.prometheus.client.Metrics.Histogram value) { if (histogramBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && histogram_ != null && histogram_ != io.prometheus.client.Metrics.Histogram.getDefaultInstance()) { histogram_ = io.prometheus.client.Metrics.Histogram.newBuilder(histogram_).mergeFrom(value).buildPartial(); } else { histogram_ = value; } onChanged(); } else { histogramBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * optional .io.prometheus.client.Histogram histogram = 7; */ public Builder clearHistogram() { if (histogramBuilder_ == null) { histogram_ = null; onChanged(); } else { histogramBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * optional .io.prometheus.client.Histogram histogram = 7; */ public io.prometheus.client.Metrics.Histogram.Builder getHistogramBuilder() { bitField0_ |= 0x00000020; onChanged(); return getHistogramFieldBuilder().getBuilder(); } /** * optional .io.prometheus.client.Histogram histogram = 7; */ public io.prometheus.client.Metrics.HistogramOrBuilder getHistogramOrBuilder() { if (histogramBuilder_ != null) { return histogramBuilder_.getMessageOrBuilder(); } else { return histogram_ == null ? io.prometheus.client.Metrics.Histogram.getDefaultInstance() : histogram_; } } /** * optional .io.prometheus.client.Histogram histogram = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.prometheus.client.Metrics.Histogram, io.prometheus.client.Metrics.Histogram.Builder, io.prometheus.client.Metrics.HistogramOrBuilder> getHistogramFieldBuilder() { if (histogramBuilder_ == null) { histogramBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.prometheus.client.Metrics.Histogram, io.prometheus.client.Metrics.Histogram.Builder, io.prometheus.client.Metrics.HistogramOrBuilder>( getHistogram(), getParentForChildren(), isClean()); histogram_ = null; } return histogramBuilder_; } private long timestampMs_ ; /** * optional int64 timestamp_ms = 6; */ public boolean hasTimestampMs() { return ((bitField0_ & 0x00000040) != 0); } /** * optional int64 timestamp_ms = 6; */ public long getTimestampMs() { return timestampMs_; } /** * optional int64 timestamp_ms = 6; */ public Builder setTimestampMs(long value) { bitField0_ |= 0x00000040; timestampMs_ = value; onChanged(); return this; } /** * optional int64 timestamp_ms = 6; */ public Builder clearTimestampMs() { bitField0_ = (bitField0_ & ~0x00000040); timestampMs_ = 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:io.prometheus.client.Metric) } // @@protoc_insertion_point(class_scope:io.prometheus.client.Metric) private static final io.prometheus.client.Metrics.Metric DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.prometheus.client.Metrics.Metric(); } public static io.prometheus.client.Metrics.Metric getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Metric parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Metric(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 io.prometheus.client.Metrics.Metric getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MetricFamilyOrBuilder extends // @@protoc_insertion_point(interface_extends:io.prometheus.client.MetricFamily) com.google.protobuf.MessageOrBuilder { /** * optional string name = 1; */ boolean hasName(); /** * optional string name = 1; */ java.lang.String getName(); /** * optional string name = 1; */ com.google.protobuf.ByteString getNameBytes(); /** * optional string help = 2; */ boolean hasHelp(); /** * optional string help = 2; */ java.lang.String getHelp(); /** * optional string help = 2; */ com.google.protobuf.ByteString getHelpBytes(); /** * optional .io.prometheus.client.MetricType type = 3; */ boolean hasType(); /** * optional .io.prometheus.client.MetricType type = 3; */ io.prometheus.client.Metrics.MetricType getType(); /** * repeated .io.prometheus.client.Metric metric = 4; */ java.util.List getMetricList(); /** * repeated .io.prometheus.client.Metric metric = 4; */ io.prometheus.client.Metrics.Metric getMetric(int index); /** * repeated .io.prometheus.client.Metric metric = 4; */ int getMetricCount(); /** * repeated .io.prometheus.client.Metric metric = 4; */ java.util.List getMetricOrBuilderList(); /** * repeated .io.prometheus.client.Metric metric = 4; */ io.prometheus.client.Metrics.MetricOrBuilder getMetricOrBuilder( int index); } /** * Protobuf type {@code io.prometheus.client.MetricFamily} */ public static final class MetricFamily extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.prometheus.client.MetricFamily) MetricFamilyOrBuilder { private static final long serialVersionUID = 0L; // Use MetricFamily.newBuilder() to construct. private MetricFamily(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MetricFamily() { name_ = ""; help_ = ""; type_ = 0; metric_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MetricFamily(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MetricFamily( 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.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; name_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; help_ = bs; break; } case 24: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") io.prometheus.client.Metrics.MetricType value = io.prometheus.client.Metrics.MetricType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000004; type_ = rawValue; } break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { metric_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } metric_.add( input.readMessage(io.prometheus.client.Metrics.Metric.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_ & 0x00000008) != 0)) { metric_ = java.util.Collections.unmodifiableList(metric_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_MetricFamily_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_MetricFamily_fieldAccessorTable .ensureFieldAccessorsInitialized( io.prometheus.client.Metrics.MetricFamily.class, io.prometheus.client.Metrics.MetricFamily.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string name = 1; */ 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(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * optional string name = 1; */ 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 HELP_FIELD_NUMBER = 2; private volatile java.lang.Object help_; /** * optional string help = 2; */ public boolean hasHelp() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string help = 2; */ public java.lang.String getHelp() { java.lang.Object ref = help_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { help_ = s; } return s; } } /** * optional string help = 2; */ public com.google.protobuf.ByteString getHelpBytes() { java.lang.Object ref = help_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); help_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** * optional .io.prometheus.client.MetricType type = 3; */ public boolean hasType() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .io.prometheus.client.MetricType type = 3; */ public io.prometheus.client.Metrics.MetricType getType() { @SuppressWarnings("deprecation") io.prometheus.client.Metrics.MetricType result = io.prometheus.client.Metrics.MetricType.valueOf(type_); return result == null ? io.prometheus.client.Metrics.MetricType.COUNTER : result; } public static final int METRIC_FIELD_NUMBER = 4; private java.util.List metric_; /** * repeated .io.prometheus.client.Metric metric = 4; */ public java.util.List getMetricList() { return metric_; } /** * repeated .io.prometheus.client.Metric metric = 4; */ public java.util.List getMetricOrBuilderList() { return metric_; } /** * repeated .io.prometheus.client.Metric metric = 4; */ public int getMetricCount() { return metric_.size(); } /** * repeated .io.prometheus.client.Metric metric = 4; */ public io.prometheus.client.Metrics.Metric getMetric(int index) { return metric_.get(index); } /** * repeated .io.prometheus.client.Metric metric = 4; */ public io.prometheus.client.Metrics.MetricOrBuilder getMetricOrBuilder( int index) { return metric_.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 (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, help_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(3, type_); } for (int i = 0; i < metric_.size(); i++) { output.writeMessage(4, metric_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, help_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_); } for (int i = 0; i < metric_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, metric_.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 io.prometheus.client.Metrics.MetricFamily)) { return super.equals(obj); } io.prometheus.client.Metrics.MetricFamily other = (io.prometheus.client.Metrics.MetricFamily) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasHelp() != other.hasHelp()) return false; if (hasHelp()) { if (!getHelp() .equals(other.getHelp())) return false; } if (hasType() != other.hasType()) return false; if (hasType()) { if (type_ != other.type_) return false; } if (!getMetricList() .equals(other.getMetricList())) 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 (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasHelp()) { hash = (37 * hash) + HELP_FIELD_NUMBER; hash = (53 * hash) + getHelp().hashCode(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (getMetricCount() > 0) { hash = (37 * hash) + METRIC_FIELD_NUMBER; hash = (53 * hash) + getMetricList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.prometheus.client.Metrics.MetricFamily parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.prometheus.client.Metrics.MetricFamily parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.prometheus.client.Metrics.MetricFamily parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.prometheus.client.Metrics.MetricFamily parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.prometheus.client.Metrics.MetricFamily parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.prometheus.client.Metrics.MetricFamily parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.prometheus.client.Metrics.MetricFamily parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.prometheus.client.Metrics.MetricFamily 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 io.prometheus.client.Metrics.MetricFamily parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.prometheus.client.Metrics.MetricFamily 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 io.prometheus.client.Metrics.MetricFamily parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.prometheus.client.Metrics.MetricFamily 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(io.prometheus.client.Metrics.MetricFamily 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 io.prometheus.client.MetricFamily} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.prometheus.client.MetricFamily) io.prometheus.client.Metrics.MetricFamilyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_MetricFamily_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_MetricFamily_fieldAccessorTable .ensureFieldAccessorsInitialized( io.prometheus.client.Metrics.MetricFamily.class, io.prometheus.client.Metrics.MetricFamily.Builder.class); } // Construct using io.prometheus.client.Metrics.MetricFamily.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMetricFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); help_ = ""; bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; bitField0_ = (bitField0_ & ~0x00000004); if (metricBuilder_ == null) { metric_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { metricBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.prometheus.client.Metrics.internal_static_io_prometheus_client_MetricFamily_descriptor; } @java.lang.Override public io.prometheus.client.Metrics.MetricFamily getDefaultInstanceForType() { return io.prometheus.client.Metrics.MetricFamily.getDefaultInstance(); } @java.lang.Override public io.prometheus.client.Metrics.MetricFamily build() { io.prometheus.client.Metrics.MetricFamily result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.prometheus.client.Metrics.MetricFamily buildPartial() { io.prometheus.client.Metrics.MetricFamily result = new io.prometheus.client.Metrics.MetricFamily(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.help_ = help_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.type_ = type_; if (metricBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { metric_ = java.util.Collections.unmodifiableList(metric_); bitField0_ = (bitField0_ & ~0x00000008); } result.metric_ = metric_; } else { result.metric_ = metricBuilder_.build(); } result.bitField0_ = to_bitField0_; 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 io.prometheus.client.Metrics.MetricFamily) { return mergeFrom((io.prometheus.client.Metrics.MetricFamily)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.prometheus.client.Metrics.MetricFamily other) { if (other == io.prometheus.client.Metrics.MetricFamily.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasHelp()) { bitField0_ |= 0x00000002; help_ = other.help_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (metricBuilder_ == null) { if (!other.metric_.isEmpty()) { if (metric_.isEmpty()) { metric_ = other.metric_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureMetricIsMutable(); metric_.addAll(other.metric_); } onChanged(); } } else { if (!other.metric_.isEmpty()) { if (metricBuilder_.isEmpty()) { metricBuilder_.dispose(); metricBuilder_ = null; metric_ = other.metric_; bitField0_ = (bitField0_ & ~0x00000008); metricBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMetricFieldBuilder() : null; } else { metricBuilder_.addAllMessages(other.metric_); } } } 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 { io.prometheus.client.Metrics.MetricFamily parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.prometheus.client.Metrics.MetricFamily) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * optional string name = 1; */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string name = 1; */ 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(); if (bs.isValidUtf8()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string name = 1; */ 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; } } /** * optional string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * optional string name = 1; */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private java.lang.Object help_ = ""; /** * optional string help = 2; */ public boolean hasHelp() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string help = 2; */ public java.lang.String getHelp() { java.lang.Object ref = help_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { help_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string help = 2; */ public com.google.protobuf.ByteString getHelpBytes() { java.lang.Object ref = help_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); help_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string help = 2; */ public Builder setHelp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; help_ = value; onChanged(); return this; } /** * optional string help = 2; */ public Builder clearHelp() { bitField0_ = (bitField0_ & ~0x00000002); help_ = getDefaultInstance().getHelp(); onChanged(); return this; } /** * optional string help = 2; */ public Builder setHelpBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; help_ = value; onChanged(); return this; } private int type_ = 0; /** * optional .io.prometheus.client.MetricType type = 3; */ public boolean hasType() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .io.prometheus.client.MetricType type = 3; */ public io.prometheus.client.Metrics.MetricType getType() { @SuppressWarnings("deprecation") io.prometheus.client.Metrics.MetricType result = io.prometheus.client.Metrics.MetricType.valueOf(type_); return result == null ? io.prometheus.client.Metrics.MetricType.COUNTER : result; } /** * optional .io.prometheus.client.MetricType type = 3; */ public Builder setType(io.prometheus.client.Metrics.MetricType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value.getNumber(); onChanged(); return this; } /** * optional .io.prometheus.client.MetricType type = 3; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = 0; onChanged(); return this; } private java.util.List metric_ = java.util.Collections.emptyList(); private void ensureMetricIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { metric_ = new java.util.ArrayList(metric_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.prometheus.client.Metrics.Metric, io.prometheus.client.Metrics.Metric.Builder, io.prometheus.client.Metrics.MetricOrBuilder> metricBuilder_; /** * repeated .io.prometheus.client.Metric metric = 4; */ public java.util.List getMetricList() { if (metricBuilder_ == null) { return java.util.Collections.unmodifiableList(metric_); } else { return metricBuilder_.getMessageList(); } } /** * repeated .io.prometheus.client.Metric metric = 4; */ public int getMetricCount() { if (metricBuilder_ == null) { return metric_.size(); } else { return metricBuilder_.getCount(); } } /** * repeated .io.prometheus.client.Metric metric = 4; */ public io.prometheus.client.Metrics.Metric getMetric(int index) { if (metricBuilder_ == null) { return metric_.get(index); } else { return metricBuilder_.getMessage(index); } } /** * repeated .io.prometheus.client.Metric metric = 4; */ public Builder setMetric( int index, io.prometheus.client.Metrics.Metric value) { if (metricBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricIsMutable(); metric_.set(index, value); onChanged(); } else { metricBuilder_.setMessage(index, value); } return this; } /** * repeated .io.prometheus.client.Metric metric = 4; */ public Builder setMetric( int index, io.prometheus.client.Metrics.Metric.Builder builderForValue) { if (metricBuilder_ == null) { ensureMetricIsMutable(); metric_.set(index, builderForValue.build()); onChanged(); } else { metricBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .io.prometheus.client.Metric metric = 4; */ public Builder addMetric(io.prometheus.client.Metrics.Metric value) { if (metricBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricIsMutable(); metric_.add(value); onChanged(); } else { metricBuilder_.addMessage(value); } return this; } /** * repeated .io.prometheus.client.Metric metric = 4; */ public Builder addMetric( int index, io.prometheus.client.Metrics.Metric value) { if (metricBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMetricIsMutable(); metric_.add(index, value); onChanged(); } else { metricBuilder_.addMessage(index, value); } return this; } /** * repeated .io.prometheus.client.Metric metric = 4; */ public Builder addMetric( io.prometheus.client.Metrics.Metric.Builder builderForValue) { if (metricBuilder_ == null) { ensureMetricIsMutable(); metric_.add(builderForValue.build()); onChanged(); } else { metricBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .io.prometheus.client.Metric metric = 4; */ public Builder addMetric( int index, io.prometheus.client.Metrics.Metric.Builder builderForValue) { if (metricBuilder_ == null) { ensureMetricIsMutable(); metric_.add(index, builderForValue.build()); onChanged(); } else { metricBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .io.prometheus.client.Metric metric = 4; */ public Builder addAllMetric( java.lang.Iterable values) { if (metricBuilder_ == null) { ensureMetricIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, metric_); onChanged(); } else { metricBuilder_.addAllMessages(values); } return this; } /** * repeated .io.prometheus.client.Metric metric = 4; */ public Builder clearMetric() { if (metricBuilder_ == null) { metric_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { metricBuilder_.clear(); } return this; } /** * repeated .io.prometheus.client.Metric metric = 4; */ public Builder removeMetric(int index) { if (metricBuilder_ == null) { ensureMetricIsMutable(); metric_.remove(index); onChanged(); } else { metricBuilder_.remove(index); } return this; } /** * repeated .io.prometheus.client.Metric metric = 4; */ public io.prometheus.client.Metrics.Metric.Builder getMetricBuilder( int index) { return getMetricFieldBuilder().getBuilder(index); } /** * repeated .io.prometheus.client.Metric metric = 4; */ public io.prometheus.client.Metrics.MetricOrBuilder getMetricOrBuilder( int index) { if (metricBuilder_ == null) { return metric_.get(index); } else { return metricBuilder_.getMessageOrBuilder(index); } } /** * repeated .io.prometheus.client.Metric metric = 4; */ public java.util.List getMetricOrBuilderList() { if (metricBuilder_ != null) { return metricBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(metric_); } } /** * repeated .io.prometheus.client.Metric metric = 4; */ public io.prometheus.client.Metrics.Metric.Builder addMetricBuilder() { return getMetricFieldBuilder().addBuilder( io.prometheus.client.Metrics.Metric.getDefaultInstance()); } /** * repeated .io.prometheus.client.Metric metric = 4; */ public io.prometheus.client.Metrics.Metric.Builder addMetricBuilder( int index) { return getMetricFieldBuilder().addBuilder( index, io.prometheus.client.Metrics.Metric.getDefaultInstance()); } /** * repeated .io.prometheus.client.Metric metric = 4; */ public java.util.List getMetricBuilderList() { return getMetricFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.prometheus.client.Metrics.Metric, io.prometheus.client.Metrics.Metric.Builder, io.prometheus.client.Metrics.MetricOrBuilder> getMetricFieldBuilder() { if (metricBuilder_ == null) { metricBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.prometheus.client.Metrics.Metric, io.prometheus.client.Metrics.Metric.Builder, io.prometheus.client.Metrics.MetricOrBuilder>( metric_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); metric_ = null; } return metricBuilder_; } @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:io.prometheus.client.MetricFamily) } // @@protoc_insertion_point(class_scope:io.prometheus.client.MetricFamily) private static final io.prometheus.client.Metrics.MetricFamily DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.prometheus.client.Metrics.MetricFamily(); } public static io.prometheus.client.Metrics.MetricFamily getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MetricFamily parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MetricFamily(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 io.prometheus.client.Metrics.MetricFamily getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_prometheus_client_LabelPair_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_prometheus_client_LabelPair_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_prometheus_client_Gauge_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_prometheus_client_Gauge_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_prometheus_client_Counter_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_prometheus_client_Counter_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_prometheus_client_Quantile_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_prometheus_client_Quantile_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_prometheus_client_Summary_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_prometheus_client_Summary_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_prometheus_client_Untyped_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_prometheus_client_Untyped_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_prometheus_client_Histogram_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_prometheus_client_Histogram_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_prometheus_client_Bucket_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_prometheus_client_Bucket_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_prometheus_client_Metric_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_prometheus_client_Metric_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_io_prometheus_client_MetricFamily_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_io_prometheus_client_MetricFamily_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\rmetrics.proto\022\024io.prometheus.client\"(\n" + "\tLabelPair\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"" + "\026\n\005Gauge\022\r\n\005value\030\001 \001(\001\"\030\n\007Counter\022\r\n\005va" + "lue\030\001 \001(\001\"+\n\010Quantile\022\020\n\010quantile\030\001 \001(\001\022" + "\r\n\005value\030\002 \001(\001\"e\n\007Summary\022\024\n\014sample_coun" + "t\030\001 \001(\004\022\022\n\nsample_sum\030\002 \001(\001\0220\n\010quantile\030" + "\003 \003(\0132\036.io.prometheus.client.Quantile\"\030\n" + "\007Untyped\022\r\n\005value\030\001 \001(\001\"c\n\tHistogram\022\024\n\014" + "sample_count\030\001 \001(\004\022\022\n\nsample_sum\030\002 \001(\001\022," + "\n\006bucket\030\003 \003(\0132\034.io.prometheus.client.Bu" + "cket\"7\n\006Bucket\022\030\n\020cumulative_count\030\001 \001(\004" + "\022\023\n\013upper_bound\030\002 \001(\001\"\276\002\n\006Metric\022.\n\005labe" + "l\030\001 \003(\0132\037.io.prometheus.client.LabelPair" + "\022*\n\005gauge\030\002 \001(\0132\033.io.prometheus.client.G" + "auge\022.\n\007counter\030\003 \001(\0132\035.io.prometheus.cl" + "ient.Counter\022.\n\007summary\030\004 \001(\0132\035.io.prome" + "theus.client.Summary\022.\n\007untyped\030\005 \001(\0132\035." + "io.prometheus.client.Untyped\0222\n\thistogra" + "m\030\007 \001(\0132\037.io.prometheus.client.Histogram" + "\022\024\n\014timestamp_ms\030\006 \001(\003\"\210\001\n\014MetricFamily\022" + "\014\n\004name\030\001 \001(\t\022\014\n\004help\030\002 \001(\t\022.\n\004type\030\003 \001(" + "\0162 .io.prometheus.client.MetricType\022,\n\006m" + "etric\030\004 \003(\0132\034.io.prometheus.client.Metri" + "c*M\n\nMetricType\022\013\n\007COUNTER\020\000\022\t\n\005GAUGE\020\001\022" + "\013\n\007SUMMARY\020\002\022\013\n\007UNTYPED\020\003\022\r\n\tHISTOGRAM\020\004" + "B\026\n\024io.prometheus.client" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_io_prometheus_client_LabelPair_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_io_prometheus_client_LabelPair_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_prometheus_client_LabelPair_descriptor, new java.lang.String[] { "Name", "Value", }); internal_static_io_prometheus_client_Gauge_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_io_prometheus_client_Gauge_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_prometheus_client_Gauge_descriptor, new java.lang.String[] { "Value", }); internal_static_io_prometheus_client_Counter_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_io_prometheus_client_Counter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_prometheus_client_Counter_descriptor, new java.lang.String[] { "Value", }); internal_static_io_prometheus_client_Quantile_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_io_prometheus_client_Quantile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_prometheus_client_Quantile_descriptor, new java.lang.String[] { "Quantile", "Value", }); internal_static_io_prometheus_client_Summary_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_io_prometheus_client_Summary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_prometheus_client_Summary_descriptor, new java.lang.String[] { "SampleCount", "SampleSum", "Quantile", }); internal_static_io_prometheus_client_Untyped_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_io_prometheus_client_Untyped_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_prometheus_client_Untyped_descriptor, new java.lang.String[] { "Value", }); internal_static_io_prometheus_client_Histogram_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_io_prometheus_client_Histogram_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_prometheus_client_Histogram_descriptor, new java.lang.String[] { "SampleCount", "SampleSum", "Bucket", }); internal_static_io_prometheus_client_Bucket_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_io_prometheus_client_Bucket_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_prometheus_client_Bucket_descriptor, new java.lang.String[] { "CumulativeCount", "UpperBound", }); internal_static_io_prometheus_client_Metric_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_io_prometheus_client_Metric_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_prometheus_client_Metric_descriptor, new java.lang.String[] { "Label", "Gauge", "Counter", "Summary", "Untyped", "Histogram", "TimestampMs", }); internal_static_io_prometheus_client_MetricFamily_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_io_prometheus_client_MetricFamily_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_io_prometheus_client_MetricFamily_descriptor, new java.lang.String[] { "Name", "Help", "Type", "Metric", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy