From 60482bcd4c8fa9d0fb9bbc64b0bfaa94497713ef Mon Sep 17 00:00:00 2001
From: Murali Reddy Retrieves a list of configuration items according to criteria that you specify in a filter. The filter criteria identifies the relationship requirements. Retrieves a list of servers that are one network hop away from a specified server. Instructs the specified agents or connectors to start collecting data. Export the configuration data about discovered configuration items and relationships to an S3 bucket in a specified format. Begins the export of discovered data to an S3 bucket. If you specify If you do not include an Instructs the specified agents or connectors to stop collecting data. Updates metadata about an application. Information about the status of the If true, the export of agent information exceeded the size limit for a single export and the exported data is incomplete for the requested time range. To address this, select a smaller time range for the export by using Flag to indicate if port and protocol information is needed as part of the response. Supported condition: A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes all filters as though concatenated by AND. If you specify multiple values for a particular filter, the system differentiates the values using OR. Calling either DescribeConfigurations or ListConfigurations returns attributes of matching configuration items. A URL for an Amazon S3 bucket where you can review the configuration data. The URL is displayed only if the export succeeded. A URL for an Amazon S3 bucket where you can review the exported data. The URL is displayed only if the export succeeded. A unique identifier that you can use to query the export status. A unique identifier that you can use to query the export. A unique identifier used to query the status of an export request. A unique identifier used to query an export. A unique identifier used to query the status of an export request. The file format for the returned export data. Default value is Used to select which agent's data is to be exported. A single agent ID may be selected for export using the StartExportTask action. One or more filters. If a filter is present, it selects the single Information regarding the export status of the discovered data. The value is an array of objects. Information regarding the export status of discovered data. The value is an array of objects. The time that the configuration data export was initiated. The time that the data export was initiated. The status of the configuration data export. The status can succeed, fail, or be in-progress. The status of the data export job. Helpful status messages for API callers. For example: Too many exports in the last 6 hours. Export in progress. Export was successful. A status message provided for API callers. A single A name of the tag filter. A single A string value on which to filter. For example, if you choose the Values for the tag filter. The time the configuration tag was created in Coordinated Universal Time (UTC). The time the configuration tag was created in Coordinated Universal Time (UTC). The value of The The start timestamp for exported data from the single Application Discovery Agent selected in the filters. If no value is specified, data is exported starting from the first data collected by the agent. The end timestamp for exported data from the single Application Discovery Agent selected in the filters. If no value is specified, exported data includes the most recent data collected by the agent. The desired data set type. agentId
in a filter, the task exports up to 72 hours of detailed data collected by the identified Application Discovery Agent, including network, process, and performance details. A time range for exported agent data may be set by using startTime
and endTime
. Export of detailed agent data is limited to five concurrently running exports. agentId
filter, summary data is exported that includes both AWS Agentless Discovery Connector data and summary data from AWS Discovery Agents. Export of summary data is limited to two exports per day. StartDataCollection
and StopDataCollection
operations. The system has recorded the data collection operation. The agent/connector receives this command the next time it polls for a new command. startDate
and endDate
.EQUALS
CSV
.
",
+ "StartExportTaskRequest$filters": "AgentId
- ID of the agent whose collected data will be exportedagentId
of the Application Discovery Agent for which data is exported. The agentId
can be found in the results of the DescribeAgents
API or CLI. If no filter is present, startTime
and endTime
are ignored and exported data includes both Agentless Discovery Connector data and summary data from Application Discovery agents. ExportFilter
name. Supported filters: agentId
.agentId
for a Discovery Agent. An agentId
can be found using the DescribeAgents action. Typically an ADS agentId
is in the form o-0123456789abcdef0
.destinationServer.osVersion
filter name, you could specify Ubuntu
for the value.startTime
parameter in the StartExportTask
request. If no startTime
was requested, this result does not appear in ExportInfo
.endTime
used in the StartExportTask
request. If no endTime
was requested, this result does not appear in ExportInfo
.
The desired data set type.
From 2014-07-21 to present: Available daily by 5:00 PM Pacific Time.
From 2014-07-21 to present: Available daily by 5:00 PM Pacific Time.
From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time.
From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time.
From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time.
From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time.
From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time.
From 2015-01-26 to present: Available daily by 5:00 PM Pacific Time.
From 2015-02 to 2017-06: Available monthly on the 4th day of the month by 5:00pm Pacific Time. Data includes metered transactions (e.g. hourly) from two months prior.
From 2017-07 to present: Available monthly on the 15th day of the month by 5:00pm Pacific Time. Data includes metered transactions (e.g. hourly) from one month prior.
From 2015-02 to 2017-06: Available monthly on the 4th day of the month by 5:00pm Pacific Time. Data includes up-front software charges (e.g. annual) from one month prior.
From 2017-07 to present: Available monthly on the 15th day of the month by 5:00pm Pacific Time. Data includes up-front software charges (e.g. annual) from one month prior.
From 2015-01-26 to present: Available every 30 days by 5:00 PM Pacific Time.
From 2012-04-19 to 2015-01-25: Available every 30 days by 5:00 PM Pacific Time.
From 2015-01-26 to present: This data set was split into three data sets: disbursed_amount_by_product, disbursed_amount_by_age_of_uncollected_funds, and disbursed_amount_by_age_of_disbursed_funds.
From 2012-09-04 to present: Available every 30 days by 5:00 PM Pacific Time.
From 2012-04-19 to present: Available every 30 days by 5:00 PM Pacific Time.
From 2015-01-26 to present: Available every 30 days by 5:00 PM Pacific Time.
From 2015-01-26 to present: Available every 30 days by 5:00 PM Pacific Time.
From 2015-10-01 to 2017-06-29: Available daily by 5:00 PM Pacific Time.
From 2017-06-30 to present: This data set is no longer available.
From 2015-10-01 to 2017-06-29: Available daily by 5:00 PM Pacific Time.
From 2017-06-30 to present: This data set is no longer available.
From 2015-10-01 to 2017-06-29: Available daily by 5:00 PM Pacific Time.
From 2017-06-30 to present: This data set is no longer available.
From 2016-12 to 2017-06: Available monthly on the 4th day of the month by 5:00pm Pacific Time. Data includes metered transactions (e.g. hourly) from two months prior, and up-front software charges (e.g. annual) from one month prior.
From 2017-06 to present: Available monthly on the 15th day of the month by 5:00pm Pacific Time. Data includes metered transactions (e.g. hourly) from one month prior, and up-front software charges (e.g. annual) from one month prior.
From 2017-02-15 to present: Available monthly on the 15th day of the month by 5:00 PM Pacific Time.
COUNTER = 0;
+ */
+ COUNTER(0, 0),
+ /**
+ * GAUGE = 1;
+ */
+ GAUGE(1, 1),
+ /**
+ * SUMMARY = 2;
+ */
+ SUMMARY(2, 2),
+ /**
+ * UNTYPED = 3;
+ */
+ UNTYPED(3, 3),
+ /**
+ * HISTOGRAM = 4;
+ */
+ HISTOGRAM(4, 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; }
+
+ public static MetricType valueOf(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.EnumLiteMapoptional 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.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:io.prometheus.client.LabelPair)
+ LabelPairOrBuilder {
+ // Use LabelPair.newBuilder() to construct.
+ private LabelPair(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private LabelPair(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final LabelPair defaultInstance;
+ public static LabelPair getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public LabelPair getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @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 {
+ initFields();
+ 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;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ 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;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).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;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.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);
+ }
+
+ public static com.google.protobuf.Parseroptional string name = 1;
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * 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 java.lang.Object value_;
+ /**
+ * optional string value = 2;
+ */
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * 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 void initFields() {
+ name_ = "";
+ value_ = "";
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getNameBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, getValueBytes());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, getNameBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, getValueBytes());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ 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 PARSER.parseFrom(input);
+ }
+ public static io.prometheus.client.Metrics.LabelPair parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static io.prometheus.client.Metrics.LabelPair parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static io.prometheus.client.Metrics.LabelPair parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static io.prometheus.client.Metrics.LabelPair parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static io.prometheus.client.Metrics.LabelPair parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(io.prometheus.client.Metrics.LabelPair prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builderoptional string name = 1;
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * 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) == 0x00000002);
+ }
+ /**
+ * 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;
+ }
+
+ // @@protoc_insertion_point(builder_scope:io.prometheus.client.LabelPair)
+ }
+
+ static {
+ defaultInstance = new LabelPair(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:io.prometheus.client.LabelPair)
+ }
+
+ 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.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:io.prometheus.client.Gauge)
+ GaugeOrBuilder {
+ // Use Gauge.newBuilder() to construct.
+ private Gauge(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private Gauge(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final Gauge defaultInstance;
+ public static Gauge getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public Gauge getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @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 {
+ initFields();
+ 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;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 9: {
+ bitField0_ |= 0x00000001;
+ value_ = input.readDouble();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).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;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.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);
+ }
+
+ public static com.google.protobuf.Parseroptional double value = 1;
+ */
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional double value = 1;
+ */
+ public double getValue() {
+ return value_;
+ }
+
+ private void initFields() {
+ value_ = 0D;
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeDouble(1, value_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(1, value_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ 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 PARSER.parseFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Gauge parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static io.prometheus.client.Metrics.Gauge parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Gauge parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static io.prometheus.client.Metrics.Gauge parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Gauge parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(io.prometheus.client.Metrics.Gauge prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builderoptional double value = 1;
+ */
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * 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;
+ }
+
+ // @@protoc_insertion_point(builder_scope:io.prometheus.client.Gauge)
+ }
+
+ static {
+ defaultInstance = new Gauge(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:io.prometheus.client.Gauge)
+ }
+
+ 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.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:io.prometheus.client.Counter)
+ CounterOrBuilder {
+ // Use Counter.newBuilder() to construct.
+ private Counter(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private Counter(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final Counter defaultInstance;
+ public static Counter getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public Counter getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @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 {
+ initFields();
+ 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;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 9: {
+ bitField0_ |= 0x00000001;
+ value_ = input.readDouble();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).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;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.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);
+ }
+
+ public static com.google.protobuf.Parseroptional double value = 1;
+ */
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional double value = 1;
+ */
+ public double getValue() {
+ return value_;
+ }
+
+ private void initFields() {
+ value_ = 0D;
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeDouble(1, value_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(1, value_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ 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 PARSER.parseFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Counter parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static io.prometheus.client.Metrics.Counter parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Counter parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static io.prometheus.client.Metrics.Counter parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Counter parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(io.prometheus.client.Metrics.Counter prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builderoptional double value = 1;
+ */
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * 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;
+ }
+
+ // @@protoc_insertion_point(builder_scope:io.prometheus.client.Counter)
+ }
+
+ static {
+ defaultInstance = new Counter(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:io.prometheus.client.Counter)
+ }
+
+ 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.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:io.prometheus.client.Quantile)
+ QuantileOrBuilder {
+ // Use Quantile.newBuilder() to construct.
+ private Quantile(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private Quantile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final Quantile defaultInstance;
+ public static Quantile getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public Quantile getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @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 {
+ initFields();
+ 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;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 9: {
+ bitField0_ |= 0x00000001;
+ quantile_ = input.readDouble();
+ break;
+ }
+ case 17: {
+ bitField0_ |= 0x00000002;
+ value_ = input.readDouble();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).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;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.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);
+ }
+
+ public static com.google.protobuf.Parseroptional double quantile = 1;
+ */
+ public boolean hasQuantile() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * 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) == 0x00000002);
+ }
+ /**
+ * optional double value = 2;
+ */
+ public double getValue() {
+ return value_;
+ }
+
+ private void initFields() {
+ quantile_ = 0D;
+ value_ = 0D;
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeDouble(1, quantile_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeDouble(2, value_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(1, quantile_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(2, value_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ 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 PARSER.parseFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Quantile parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static io.prometheus.client.Metrics.Quantile parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Quantile parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static io.prometheus.client.Metrics.Quantile parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Quantile parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(io.prometheus.client.Metrics.Quantile prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builderoptional double quantile = 1;
+ */
+ public boolean hasQuantile() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * 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) == 0x00000002);
+ }
+ /**
+ * 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;
+ }
+
+ // @@protoc_insertion_point(builder_scope:io.prometheus.client.Quantile)
+ }
+
+ static {
+ defaultInstance = new Quantile(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:io.prometheus.client.Quantile)
+ }
+
+ 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.Listrepeated .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 extends io.prometheus.client.Metrics.QuantileOrBuilder>
+ 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.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:io.prometheus.client.Summary)
+ SummaryOrBuilder {
+ // Use Summary.newBuilder() to construct.
+ private Summary(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private Summary(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final Summary defaultInstance;
+ public static Summary getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public Summary getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @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 {
+ initFields();
+ 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;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ 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) == 0x00000004)) {
+ quantile_ = new java.util.ArrayListoptional uint64 sample_count = 1;
+ */
+ public boolean hasSampleCount() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * 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) == 0x00000002);
+ }
+ /**
+ * optional double sample_sum = 2;
+ */
+ public double getSampleSum() {
+ return sampleSum_;
+ }
+
+ public static final int QUANTILE_FIELD_NUMBER = 3;
+ private java.util.Listrepeated .io.prometheus.client.Quantile quantile = 3;
+ */
+ public java.util.Listrepeated .io.prometheus.client.Quantile quantile = 3;
+ */
+ public java.util.List extends io.prometheus.client.Metrics.QuantileOrBuilder>
+ 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 void initFields() {
+ sampleCount_ = 0L;
+ sampleSum_ = 0D;
+ quantile_ = java.util.Collections.emptyList();
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeUInt64(1, sampleCount_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeDouble(2, sampleSum_);
+ }
+ for (int i = 0; i < quantile_.size(); i++) {
+ output.writeMessage(3, quantile_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt64Size(1, sampleCount_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ 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 += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ 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 PARSER.parseFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Summary parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static io.prometheus.client.Metrics.Summary parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Summary parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static io.prometheus.client.Metrics.Summary parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Summary parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(io.prometheus.client.Metrics.Summary prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builderoptional uint64 sample_count = 1;
+ */
+ public boolean hasSampleCount() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * 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) == 0x00000002);
+ }
+ /**
+ * 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.Listrepeated .io.prometheus.client.Quantile quantile = 3;
+ */
+ public java.util.Listrepeated .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 extends io.prometheus.client.Metrics.Quantile> 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 extends io.prometheus.client.Metrics.QuantileOrBuilder>
+ 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.Listoptional 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.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:io.prometheus.client.Untyped)
+ UntypedOrBuilder {
+ // Use Untyped.newBuilder() to construct.
+ private Untyped(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private Untyped(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final Untyped defaultInstance;
+ public static Untyped getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public Untyped getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @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 {
+ initFields();
+ 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;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 9: {
+ bitField0_ |= 0x00000001;
+ value_ = input.readDouble();
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e.getMessage()).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;
+ }
+
+ protected com.google.protobuf.GeneratedMessage.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);
+ }
+
+ public static com.google.protobuf.Parseroptional double value = 1;
+ */
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * optional double value = 1;
+ */
+ public double getValue() {
+ return value_;
+ }
+
+ private void initFields() {
+ value_ = 0D;
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeDouble(1, value_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeDoubleSize(1, value_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ 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 PARSER.parseFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Untyped parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static io.prometheus.client.Metrics.Untyped parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Untyped parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static io.prometheus.client.Metrics.Untyped parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Untyped parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(io.prometheus.client.Metrics.Untyped prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builderoptional double value = 1;
+ */
+ public boolean hasValue() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * 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;
+ }
+
+ // @@protoc_insertion_point(builder_scope:io.prometheus.client.Untyped)
+ }
+
+ static {
+ defaultInstance = new Untyped(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:io.prometheus.client.Untyped)
+ }
+
+ 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();
+
+ /**
+ * repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + java.util.List
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + io.prometheus.client.Metrics.Bucket getBucket(int index); + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + int getBucketCount(); + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + java.util.List extends io.prometheus.client.Metrics.BucketOrBuilder> + getBucketOrBuilderList(); + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + io.prometheus.client.Metrics.BucketOrBuilder getBucketOrBuilder( + int index); + } + /** + * Protobuf type {@code io.prometheus.client.Histogram} + */ + public static final class Histogram extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:io.prometheus.client.Histogram) + HistogramOrBuilder { + // Use Histogram.newBuilder() to construct. + private Histogram(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Histogram(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Histogram defaultInstance; + public static Histogram getDefaultInstance() { + return defaultInstance; + } + + public Histogram getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @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 { + initFields(); + 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; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + 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) == 0x00000004)) { + bucket_ = new java.util.ArrayList
optional uint64 sample_count = 1;
+ */
+ public boolean hasSampleCount() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * 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) == 0x00000002);
+ }
+ /**
+ * optional double sample_sum = 2;
+ */
+ public double getSampleSum() {
+ return sampleSum_;
+ }
+
+ public static final int BUCKET_FIELD_NUMBER = 3;
+ private java.util.Listrepeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + public java.util.List
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + public java.util.List extends io.prometheus.client.Metrics.BucketOrBuilder> + getBucketOrBuilderList() { + return bucket_; + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + public int getBucketCount() { + return bucket_.size(); + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + public io.prometheus.client.Metrics.Bucket getBucket(int index) { + return bucket_.get(index); + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + public io.prometheus.client.Metrics.BucketOrBuilder getBucketOrBuilder( + int index) { + return bucket_.get(index); + } + + private void initFields() { + sampleCount_ = 0L; + sampleSum_ = 0D; + bucket_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt64(1, sampleCount_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeDouble(2, sampleSum_); + } + for (int i = 0; i < bucket_.size(); i++) { + output.writeMessage(3, bucket_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, sampleCount_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + 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 += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + 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 PARSER.parseFrom(input); + } + public static io.prometheus.client.Metrics.Histogram parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.prometheus.client.Metrics.Histogram parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.prometheus.client.Metrics.Histogram parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.prometheus.client.Metrics.Histogram parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.prometheus.client.Metrics.Histogram parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(io.prometheus.client.Metrics.Histogram prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder
optional uint64 sample_count = 1;
+ */
+ public boolean hasSampleCount() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * 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) == 0x00000002);
+ }
+ /**
+ * 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.Listrepeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + public java.util.List
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + public int getBucketCount() { + if (bucketBuilder_ == null) { + return bucket_.size(); + } else { + return bucketBuilder_.getCount(); + } + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + public io.prometheus.client.Metrics.Bucket getBucket(int index) { + if (bucketBuilder_ == null) { + return bucket_.get(index); + } else { + return bucketBuilder_.getMessage(index); + } + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + 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; + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + 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; + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + 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; + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + 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; + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + 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; + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + 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; + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + public Builder addAllBucket( + java.lang.Iterable extends io.prometheus.client.Metrics.Bucket> values) { + if (bucketBuilder_ == null) { + ensureBucketIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bucket_); + onChanged(); + } else { + bucketBuilder_.addAllMessages(values); + } + return this; + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + public Builder clearBucket() { + if (bucketBuilder_ == null) { + bucket_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + bucketBuilder_.clear(); + } + return this; + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + public Builder removeBucket(int index) { + if (bucketBuilder_ == null) { + ensureBucketIsMutable(); + bucket_.remove(index); + onChanged(); + } else { + bucketBuilder_.remove(index); + } + return this; + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + public io.prometheus.client.Metrics.Bucket.Builder getBucketBuilder( + int index) { + return getBucketFieldBuilder().getBuilder(index); + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + public io.prometheus.client.Metrics.BucketOrBuilder getBucketOrBuilder( + int index) { + if (bucketBuilder_ == null) { + return bucket_.get(index); } else { + return bucketBuilder_.getMessageOrBuilder(index); + } + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + public java.util.List extends io.prometheus.client.Metrics.BucketOrBuilder> + getBucketOrBuilderList() { + if (bucketBuilder_ != null) { + return bucketBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bucket_); + } + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + public io.prometheus.client.Metrics.Bucket.Builder addBucketBuilder() { + return getBucketFieldBuilder().addBuilder( + io.prometheus.client.Metrics.Bucket.getDefaultInstance()); + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + public io.prometheus.client.Metrics.Bucket.Builder addBucketBuilder( + int index) { + return getBucketFieldBuilder().addBuilder( + index, io.prometheus.client.Metrics.Bucket.getDefaultInstance()); + } + /** + *
repeated .io.prometheus.client.Bucket bucket = 3;
+ *
+ * + * Ordered in increasing order of upper_bound, +Inf bucket is optional. + *+ */ + public java.util.List
optional uint64 cumulative_count = 1;
+ *
+ * + * Cumulative in increasing order. + *+ */ + boolean hasCumulativeCount(); + /** + *
optional uint64 cumulative_count = 1;
+ *
+ * + * Cumulative in increasing order. + *+ */ + long getCumulativeCount(); + + /** + *
optional double upper_bound = 2;
+ *
+ * + * Inclusive. + *+ */ + boolean hasUpperBound(); + /** + *
optional double upper_bound = 2;
+ *
+ * + * Inclusive. + *+ */ + double getUpperBound(); + } + /** + * Protobuf type {@code io.prometheus.client.Bucket} + */ + public static final class Bucket extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:io.prometheus.client.Bucket) + BucketOrBuilder { + // Use Bucket.newBuilder() to construct. + private Bucket(com.google.protobuf.GeneratedMessage.Builder> builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Bucket(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Bucket defaultInstance; + public static Bucket getDefaultInstance() { + return defaultInstance; + } + + public Bucket getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @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 { + initFields(); + 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; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + cumulativeCount_ = input.readUInt64(); + break; + } + case 17: { + bitField0_ |= 0x00000002; + upperBound_ = input.readDouble(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).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; + } + + protected com.google.protobuf.GeneratedMessage.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); + } + + public static com.google.protobuf.Parser
optional uint64 cumulative_count = 1;
+ *
+ * + * Cumulative in increasing order. + *+ */ + public boolean hasCumulativeCount() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
optional uint64 cumulative_count = 1;
+ *
+ * + * Cumulative in increasing order. + *+ */ + public long getCumulativeCount() { + return cumulativeCount_; + } + + public static final int UPPER_BOUND_FIELD_NUMBER = 2; + private double upperBound_; + /** + *
optional double upper_bound = 2;
+ *
+ * + * Inclusive. + *+ */ + public boolean hasUpperBound() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
optional double upper_bound = 2;
+ *
+ * + * Inclusive. + *+ */ + public double getUpperBound() { + return upperBound_; + } + + private void initFields() { + cumulativeCount_ = 0L; + upperBound_ = 0D; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeUInt64(1, cumulativeCount_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeDouble(2, upperBound_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(1, cumulativeCount_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, upperBound_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + 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 PARSER.parseFrom(input); + } + public static io.prometheus.client.Metrics.Bucket parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static io.prometheus.client.Metrics.Bucket parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static io.prometheus.client.Metrics.Bucket parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static io.prometheus.client.Metrics.Bucket parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static io.prometheus.client.Metrics.Bucket parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(io.prometheus.client.Metrics.Bucket prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder
optional uint64 cumulative_count = 1;
+ *
+ * + * Cumulative in increasing order. + *+ */ + public boolean hasCumulativeCount() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
optional uint64 cumulative_count = 1;
+ *
+ * + * Cumulative in increasing order. + *+ */ + public long getCumulativeCount() { + return cumulativeCount_; + } + /** + *
optional uint64 cumulative_count = 1;
+ *
+ * + * Cumulative in increasing order. + *+ */ + public Builder setCumulativeCount(long value) { + bitField0_ |= 0x00000001; + cumulativeCount_ = value; + onChanged(); + return this; + } + /** + *
optional uint64 cumulative_count = 1;
+ *
+ * + * Cumulative in increasing order. + *+ */ + public Builder clearCumulativeCount() { + bitField0_ = (bitField0_ & ~0x00000001); + cumulativeCount_ = 0L; + onChanged(); + return this; + } + + private double upperBound_ ; + /** + *
optional double upper_bound = 2;
+ *
+ * + * Inclusive. + *+ */ + public boolean hasUpperBound() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
optional double upper_bound = 2;
+ *
+ * + * Inclusive. + *+ */ + public double getUpperBound() { + return upperBound_; + } + /** + *
optional double upper_bound = 2;
+ *
+ * + * Inclusive. + *+ */ + public Builder setUpperBound(double value) { + bitField0_ |= 0x00000002; + upperBound_ = value; + onChanged(); + return this; + } + /** + *
optional double upper_bound = 2;
+ *
+ * + * Inclusive. + *+ */ + public Builder clearUpperBound() { + bitField0_ = (bitField0_ & ~0x00000002); + upperBound_ = 0D; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:io.prometheus.client.Bucket) + } + + static { + defaultInstance = new Bucket(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:io.prometheus.client.Bucket) + } + + 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.Listrepeated .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 extends io.prometheus.client.Metrics.LabelPairOrBuilder>
+ 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.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:io.prometheus.client.Metric)
+ MetricOrBuilder {
+ // Use Metric.newBuilder() to construct.
+ private Metric(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private Metric(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final Metric defaultInstance;
+ public static Metric getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public Metric getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @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 {
+ initFields();
+ 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;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
+ label_ = new java.util.ArrayListrepeated .io.prometheus.client.LabelPair label = 1;
+ */
+ public java.util.Listrepeated .io.prometheus.client.LabelPair label = 1;
+ */
+ public java.util.List extends io.prometheus.client.Metrics.LabelPairOrBuilder>
+ 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) == 0x00000001);
+ }
+ /**
+ * optional .io.prometheus.client.Gauge gauge = 2;
+ */
+ public io.prometheus.client.Metrics.Gauge getGauge() {
+ return gauge_;
+ }
+ /**
+ * optional .io.prometheus.client.Gauge gauge = 2;
+ */
+ public io.prometheus.client.Metrics.GaugeOrBuilder getGaugeOrBuilder() {
+ return 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) == 0x00000002);
+ }
+ /**
+ * optional .io.prometheus.client.Counter counter = 3;
+ */
+ public io.prometheus.client.Metrics.Counter getCounter() {
+ return counter_;
+ }
+ /**
+ * optional .io.prometheus.client.Counter counter = 3;
+ */
+ public io.prometheus.client.Metrics.CounterOrBuilder getCounterOrBuilder() {
+ return 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) == 0x00000004);
+ }
+ /**
+ * optional .io.prometheus.client.Summary summary = 4;
+ */
+ public io.prometheus.client.Metrics.Summary getSummary() {
+ return summary_;
+ }
+ /**
+ * optional .io.prometheus.client.Summary summary = 4;
+ */
+ public io.prometheus.client.Metrics.SummaryOrBuilder getSummaryOrBuilder() {
+ return 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) == 0x00000008);
+ }
+ /**
+ * optional .io.prometheus.client.Untyped untyped = 5;
+ */
+ public io.prometheus.client.Metrics.Untyped getUntyped() {
+ return untyped_;
+ }
+ /**
+ * optional .io.prometheus.client.Untyped untyped = 5;
+ */
+ public io.prometheus.client.Metrics.UntypedOrBuilder getUntypedOrBuilder() {
+ return 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) == 0x00000010);
+ }
+ /**
+ * optional .io.prometheus.client.Histogram histogram = 7;
+ */
+ public io.prometheus.client.Metrics.Histogram getHistogram() {
+ return histogram_;
+ }
+ /**
+ * optional .io.prometheus.client.Histogram histogram = 7;
+ */
+ public io.prometheus.client.Metrics.HistogramOrBuilder getHistogramOrBuilder() {
+ return histogram_;
+ }
+
+ public static final int TIMESTAMP_MS_FIELD_NUMBER = 6;
+ private long timestampMs_;
+ /**
+ * optional int64 timestamp_ms = 6;
+ */
+ public boolean hasTimestampMs() {
+ return ((bitField0_ & 0x00000020) == 0x00000020);
+ }
+ /**
+ * optional int64 timestamp_ms = 6;
+ */
+ public long getTimestampMs() {
+ return timestampMs_;
+ }
+
+ private void initFields() {
+ label_ = java.util.Collections.emptyList();
+ gauge_ = io.prometheus.client.Metrics.Gauge.getDefaultInstance();
+ counter_ = io.prometheus.client.Metrics.Counter.getDefaultInstance();
+ summary_ = io.prometheus.client.Metrics.Summary.getDefaultInstance();
+ untyped_ = io.prometheus.client.Metrics.Untyped.getDefaultInstance();
+ histogram_ = io.prometheus.client.Metrics.Histogram.getDefaultInstance();
+ timestampMs_ = 0L;
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ for (int i = 0; i < label_.size(); i++) {
+ output.writeMessage(1, label_.get(i));
+ }
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeMessage(2, gauge_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeMessage(3, counter_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeMessage(4, summary_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ output.writeMessage(5, untyped_);
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ output.writeInt64(6, timestampMs_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ output.writeMessage(7, histogram_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ 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) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, gauge_);
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, counter_);
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, summary_);
+ }
+ if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, untyped_);
+ }
+ if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(6, timestampMs_);
+ }
+ if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, histogram_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ 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 PARSER.parseFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Metric parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static io.prometheus.client.Metrics.Metric parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Metric parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static io.prometheus.client.Metrics.Metric parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static io.prometheus.client.Metrics.Metric parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(io.prometheus.client.Metrics.Metric prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builderrepeated .io.prometheus.client.LabelPair label = 1;
+ */
+ public java.util.Listrepeated .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 extends io.prometheus.client.Metrics.LabelPair> 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 extends io.prometheus.client.Metrics.LabelPairOrBuilder>
+ 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.Listoptional .io.prometheus.client.Gauge gauge = 2;
+ */
+ public boolean hasGauge() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * optional .io.prometheus.client.Gauge gauge = 2;
+ */
+ public io.prometheus.client.Metrics.Gauge getGauge() {
+ if (gaugeBuilder_ == null) {
+ return 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) == 0x00000002) &&
+ 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_ = io.prometheus.client.Metrics.Gauge.getDefaultInstance();
+ 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_;
+ }
+ }
+ /**
+ * optional .io.prometheus.client.Gauge gauge = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ 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.SingleFieldBuilder<
+ 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_ = io.prometheus.client.Metrics.Counter.getDefaultInstance();
+ private com.google.protobuf.SingleFieldBuilder<
+ 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) == 0x00000004);
+ }
+ /**
+ * optional .io.prometheus.client.Counter counter = 3;
+ */
+ public io.prometheus.client.Metrics.Counter getCounter() {
+ if (counterBuilder_ == null) {
+ return 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) == 0x00000004) &&
+ 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_ = io.prometheus.client.Metrics.Counter.getDefaultInstance();
+ 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_;
+ }
+ }
+ /**
+ * optional .io.prometheus.client.Counter counter = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ 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.SingleFieldBuilder<
+ 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_ = io.prometheus.client.Metrics.Summary.getDefaultInstance();
+ private com.google.protobuf.SingleFieldBuilder<
+ 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) == 0x00000008);
+ }
+ /**
+ * optional .io.prometheus.client.Summary summary = 4;
+ */
+ public io.prometheus.client.Metrics.Summary getSummary() {
+ if (summaryBuilder_ == null) {
+ return 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) == 0x00000008) &&
+ 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_ = io.prometheus.client.Metrics.Summary.getDefaultInstance();
+ 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_;
+ }
+ }
+ /**
+ * optional .io.prometheus.client.Summary summary = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ 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.SingleFieldBuilder<
+ 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_ = io.prometheus.client.Metrics.Untyped.getDefaultInstance();
+ private com.google.protobuf.SingleFieldBuilder<
+ 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) == 0x00000010);
+ }
+ /**
+ * optional .io.prometheus.client.Untyped untyped = 5;
+ */
+ public io.prometheus.client.Metrics.Untyped getUntyped() {
+ if (untypedBuilder_ == null) {
+ return 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) == 0x00000010) &&
+ 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_ = io.prometheus.client.Metrics.Untyped.getDefaultInstance();
+ 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_;
+ }
+ }
+ /**
+ * optional .io.prometheus.client.Untyped untyped = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ 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.SingleFieldBuilder<
+ 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_ = io.prometheus.client.Metrics.Histogram.getDefaultInstance();
+ private com.google.protobuf.SingleFieldBuilder<
+ 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) == 0x00000020);
+ }
+ /**
+ * optional .io.prometheus.client.Histogram histogram = 7;
+ */
+ public io.prometheus.client.Metrics.Histogram getHistogram() {
+ if (histogramBuilder_ == null) {
+ return 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) == 0x00000020) &&
+ 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_ = io.prometheus.client.Metrics.Histogram.getDefaultInstance();
+ 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_;
+ }
+ }
+ /**
+ * optional .io.prometheus.client.Histogram histogram = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ 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.SingleFieldBuilder<
+ 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) == 0x00000040);
+ }
+ /**
+ * 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;
+ }
+
+ // @@protoc_insertion_point(builder_scope:io.prometheus.client.Metric)
+ }
+
+ static {
+ defaultInstance = new Metric(true);
+ defaultInstance.initFields();
+ }
+
+ // @@protoc_insertion_point(class_scope:io.prometheus.client.Metric)
+ }
+
+ 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.Listrepeated .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 extends io.prometheus.client.Metrics.MetricOrBuilder>
+ 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.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:io.prometheus.client.MetricFamily)
+ MetricFamilyOrBuilder {
+ // Use MetricFamily.newBuilder() to construct.
+ private MetricFamily(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ this.unknownFields = builder.getUnknownFields();
+ }
+ private MetricFamily(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+ private static final MetricFamily defaultInstance;
+ public static MetricFamily getDefaultInstance() {
+ return defaultInstance;
+ }
+
+ public MetricFamily getDefaultInstanceForType() {
+ return defaultInstance;
+ }
+
+ private final com.google.protobuf.UnknownFieldSet unknownFields;
+ @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 {
+ initFields();
+ 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;
+ default: {
+ if (!parseUnknownField(input, unknownFields,
+ extensionRegistry, tag)) {
+ 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();
+ io.prometheus.client.Metrics.MetricType value = io.prometheus.client.Metrics.MetricType.valueOf(rawValue);
+ if (value == null) {
+ unknownFields.mergeVarintField(3, rawValue);
+ } else {
+ bitField0_ |= 0x00000004;
+ type_ = value;
+ }
+ break;
+ }
+ case 34: {
+ if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
+ metric_ = new java.util.ArrayListoptional string name = 1;
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * 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 java.lang.Object help_;
+ /**
+ * optional string help = 2;
+ */
+ public boolean hasHelp() {
+ return ((bitField0_ & 0x00000002) == 0x00000002);
+ }
+ /**
+ * 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 io.prometheus.client.Metrics.MetricType type_;
+ /**
+ * optional .io.prometheus.client.MetricType type = 3;
+ */
+ public boolean hasType() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * optional .io.prometheus.client.MetricType type = 3;
+ */
+ public io.prometheus.client.Metrics.MetricType getType() {
+ return type_;
+ }
+
+ public static final int METRIC_FIELD_NUMBER = 4;
+ private java.util.Listrepeated .io.prometheus.client.Metric metric = 4;
+ */
+ public java.util.Listrepeated .io.prometheus.client.Metric metric = 4;
+ */
+ public java.util.List extends io.prometheus.client.Metrics.MetricOrBuilder>
+ 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 void initFields() {
+ name_ = "";
+ help_ = "";
+ type_ = io.prometheus.client.Metrics.MetricType.COUNTER;
+ metric_ = java.util.Collections.emptyList();
+ }
+ private byte memoizedIsInitialized = -1;
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ getSerializedSize();
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ output.writeBytes(1, getNameBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ output.writeBytes(2, getHelpBytes());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ output.writeEnum(3, type_.getNumber());
+ }
+ for (int i = 0; i < metric_.size(); i++) {
+ output.writeMessage(4, metric_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ private int memoizedSerializedSize = -1;
+ public int getSerializedSize() {
+ int size = memoizedSerializedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(1, getNameBytes());
+ }
+ if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, getHelpBytes());
+ }
+ if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(3, type_.getNumber());
+ }
+ for (int i = 0; i < metric_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, metric_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSerializedSize = size;
+ return size;
+ }
+
+ private static final long serialVersionUID = 0L;
+ @java.lang.Override
+ protected java.lang.Object writeReplace()
+ throws java.io.ObjectStreamException {
+ return super.writeReplace();
+ }
+
+ 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 PARSER.parseFrom(input);
+ }
+ public static io.prometheus.client.Metrics.MetricFamily parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+ public static io.prometheus.client.Metrics.MetricFamily parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input);
+ }
+ public static io.prometheus.client.Metrics.MetricFamily parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ }
+ public static io.prometheus.client.Metrics.MetricFamily parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input);
+ }
+ public static io.prometheus.client.Metrics.MetricFamily parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return PARSER.parseFrom(input, extensionRegistry);
+ }
+
+ public static Builder newBuilder() { return Builder.create(); }
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder(io.prometheus.client.Metrics.MetricFamily prototype) {
+ return newBuilder().mergeFrom(prototype);
+ }
+ public Builder toBuilder() { return newBuilder(this); }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builderoptional string name = 1;
+ */
+ public boolean hasName() {
+ return ((bitField0_ & 0x00000001) == 0x00000001);
+ }
+ /**
+ * 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) == 0x00000002);
+ }
+ /**
+ * 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 io.prometheus.client.Metrics.MetricType type_ = io.prometheus.client.Metrics.MetricType.COUNTER;
+ /**
+ * optional .io.prometheus.client.MetricType type = 3;
+ */
+ public boolean hasType() {
+ return ((bitField0_ & 0x00000004) == 0x00000004);
+ }
+ /**
+ * optional .io.prometheus.client.MetricType type = 3;
+ */
+ public io.prometheus.client.Metrics.MetricType getType() {
+ return type_;
+ }
+ /**
+ * 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;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional .io.prometheus.client.MetricType type = 3;
+ */
+ public Builder clearType() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ type_ = io.prometheus.client.Metrics.MetricType.COUNTER;
+ onChanged();
+ return this;
+ }
+
+ private java.util.Listrepeated .io.prometheus.client.Metric metric = 4;
+ */
+ public java.util.Listrepeated .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 extends io.prometheus.client.Metrics.Metric> 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 extends io.prometheus.client.Metrics.MetricOrBuilder>
+ 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