Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: opentelemetry/proto/metrics/v1/metrics.proto
package io.opentelemetry.proto.metrics.v1;
/**
*
* SummaryDataPoint is a single data point in a timeseries that describes the
* time-varying values of a Summary metric.
*
*
* Protobuf type {@code opentelemetry.proto.metrics.v1.SummaryDataPoint}
*/
public final class SummaryDataPoint extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opentelemetry.proto.metrics.v1.SummaryDataPoint)
SummaryDataPointOrBuilder {
private static final long serialVersionUID = 0L;
// Use SummaryDataPoint.newBuilder() to construct.
private SummaryDataPoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SummaryDataPoint() {
attributes_ = java.util.Collections.emptyList();
quantileValues_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SummaryDataPoint();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SummaryDataPoint(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 17: {
startTimeUnixNano_ = input.readFixed64();
break;
}
case 25: {
timeUnixNano_ = input.readFixed64();
break;
}
case 33: {
count_ = input.readFixed64();
break;
}
case 41: {
sum_ = input.readDouble();
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
quantileValues_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
quantileValues_.add(
input.readMessage(io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.parser(), extensionRegistry));
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
attributes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
attributes_.add(
input.readMessage(io.opentelemetry.proto.common.v1.KeyValue.parser(), extensionRegistry));
break;
}
case 64: {
flags_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) != 0)) {
quantileValues_ = java.util.Collections.unmodifiableList(quantileValues_);
}
if (((mutable_bitField0_ & 0x00000001) != 0)) {
attributes_ = java.util.Collections.unmodifiableList(attributes_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_SummaryDataPoint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_SummaryDataPoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opentelemetry.proto.metrics.v1.SummaryDataPoint.class, io.opentelemetry.proto.metrics.v1.SummaryDataPoint.Builder.class);
}
public interface ValueAtQuantileOrBuilder extends
// @@protoc_insertion_point(interface_extends:opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)
com.google.protobuf.MessageOrBuilder {
/**
*
* The quantile of a distribution. Must be in the interval
* [0.0, 1.0].
*
* The value at the given quantile of a distribution.
* Quantile values must NOT be negative.
*
*
* double value = 2;
* @return The value.
*/
double getValue();
}
/**
*
* Represents the value at a given quantile of a distribution.
* To record Min and Max values following conventions are used:
* - The 1.0 quantile is equivalent to the maximum value observed.
* - The 0.0 quantile is equivalent to the minimum value observed.
* See the following issue for more context:
* https://github.com/open-telemetry/opentelemetry-proto/issues/125
*
*
* Protobuf type {@code opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile}
*/
public static final class ValueAtQuantile extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)
ValueAtQuantileOrBuilder {
private static final long serialVersionUID = 0L;
// Use ValueAtQuantile.newBuilder() to construct.
private ValueAtQuantile(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ValueAtQuantile() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ValueAtQuantile();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ValueAtQuantile(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 9: {
quantile_ = input.readDouble();
break;
}
case 17: {
value_ = input.readDouble();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_SummaryDataPoint_ValueAtQuantile_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_SummaryDataPoint_ValueAtQuantile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.class, io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.Builder.class);
}
public static final int QUANTILE_FIELD_NUMBER = 1;
private double quantile_;
/**
*
* The quantile of a distribution. Must be in the interval
* [0.0, 1.0].
*
*
* double quantile = 1;
* @return The quantile.
*/
@java.lang.Override
public double getQuantile() {
return quantile_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private double value_;
/**
*
* The value at the given quantile of a distribution.
* Quantile values must NOT be negative.
*
* Represents the value at a given quantile of a distribution.
* To record Min and Max values following conventions are used:
* - The 1.0 quantile is equivalent to the maximum value observed.
* - The 0.0 quantile is equivalent to the minimum value observed.
* See the following issue for more context:
* https://github.com/open-telemetry/opentelemetry-proto/issues/125
*
*
* Protobuf type {@code opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)
io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_SummaryDataPoint_ValueAtQuantile_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_SummaryDataPoint_ValueAtQuantile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.class, io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.Builder.class);
}
// Construct using io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
quantile_ = 0D;
value_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_SummaryDataPoint_ValueAtQuantile_descriptor;
}
@java.lang.Override
public io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile getDefaultInstanceForType() {
return io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.getDefaultInstance();
}
@java.lang.Override
public io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile build() {
io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile buildPartial() {
io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile result = new io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile(this);
result.quantile_ = quantile_;
result.value_ = value_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile) {
return mergeFrom((io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile other) {
if (other == io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.getDefaultInstance()) return this;
if (other.getQuantile() != 0D) {
setQuantile(other.getQuantile());
}
if (other.getValue() != 0D) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private double quantile_ ;
/**
*
* The quantile of a distribution. Must be in the interval
* [0.0, 1.0].
*
* The quantile of a distribution. Must be in the interval
* [0.0, 1.0].
*
*
* double quantile = 1;
* @param value The quantile to set.
* @return This builder for chaining.
*/
public Builder setQuantile(double value) {
quantile_ = value;
onChanged();
return this;
}
/**
*
* The quantile of a distribution. Must be in the interval
* [0.0, 1.0].
*
*
* double quantile = 1;
* @return This builder for chaining.
*/
public Builder clearQuantile() {
quantile_ = 0D;
onChanged();
return this;
}
private double value_ ;
/**
*
* The value at the given quantile of a distribution.
* Quantile values must NOT be negative.
*
*
* double value = 2;
* @return The value.
*/
@java.lang.Override
public double getValue() {
return value_;
}
/**
*
* The value at the given quantile of a distribution.
* Quantile values must NOT be negative.
*
*
* double value = 2;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(double value) {
value_ = value;
onChanged();
return this;
}
/**
*
* The value at the given quantile of a distribution.
* Quantile values must NOT be negative.
*
*
* double value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
value_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)
}
// @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)
private static final io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile();
}
public static io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ValueAtQuantile parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ValueAtQuantile(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ATTRIBUTES_FIELD_NUMBER = 7;
private java.util.List attributes_;
/**
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
*
* repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
*/
@java.lang.Override
public int getAttributesCount() {
return attributes_.size();
}
/**
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
*
* repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
*/
@java.lang.Override
public io.opentelemetry.proto.common.v1.KeyValueOrBuilder getAttributesOrBuilder(
int index) {
return attributes_.get(index);
}
public static final int START_TIME_UNIX_NANO_FIELD_NUMBER = 2;
private long startTimeUnixNano_;
/**
*
* StartTimeUnixNano is optional but strongly encouraged, see the
* the detailed comments above Metric.
* Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
* 1970.
*
*
* fixed64 start_time_unix_nano = 2;
* @return The startTimeUnixNano.
*/
@java.lang.Override
public long getStartTimeUnixNano() {
return startTimeUnixNano_;
}
public static final int TIME_UNIX_NANO_FIELD_NUMBER = 3;
private long timeUnixNano_;
/**
*
* TimeUnixNano is required, see the detailed comments above Metric.
* Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
* 1970.
*
*
* fixed64 time_unix_nano = 3;
* @return The timeUnixNano.
*/
@java.lang.Override
public long getTimeUnixNano() {
return timeUnixNano_;
}
public static final int COUNT_FIELD_NUMBER = 4;
private long count_;
/**
*
* count is the number of values in the population. Must be non-negative.
*
*
* fixed64 count = 4;
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
public static final int SUM_FIELD_NUMBER = 5;
private double sum_;
/**
*
* sum of the values in the population. If count is zero then this field
* must be zero.
* Note: Sum should only be filled out when measuring non-negative discrete
* events, and is assumed to be monotonic over the values of these events.
* Negative events *can* be recorded, but sum should not be filled out when
* doing so. This is specifically to enforce compatibility w/ OpenMetrics,
* see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#summary
*
*
* double sum = 5;
* @return The sum.
*/
@java.lang.Override
public double getSum() {
return sum_;
}
public static final int QUANTILE_VALUES_FIELD_NUMBER = 6;
private java.util.List quantileValues_;
/**
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
*
* repeated .opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile quantile_values = 6;
*/
@java.lang.Override
public int getQuantileValuesCount() {
return quantileValues_.size();
}
/**
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
*
* repeated .opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile quantile_values = 6;
*/
@java.lang.Override
public io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantileOrBuilder getQuantileValuesOrBuilder(
int index) {
return quantileValues_.get(index);
}
public static final int FLAGS_FIELD_NUMBER = 8;
private int flags_;
/**
*
* Flags that apply to this specific data point. See DataPointFlags
* for the available flags and their meaning.
*
*
* uint32 flags = 8;
* @return The flags.
*/
@java.lang.Override
public int getFlags() {
return flags_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (startTimeUnixNano_ != 0L) {
output.writeFixed64(2, startTimeUnixNano_);
}
if (timeUnixNano_ != 0L) {
output.writeFixed64(3, timeUnixNano_);
}
if (count_ != 0L) {
output.writeFixed64(4, count_);
}
if (java.lang.Double.doubleToRawLongBits(sum_) != 0) {
output.writeDouble(5, sum_);
}
for (int i = 0; i < quantileValues_.size(); i++) {
output.writeMessage(6, quantileValues_.get(i));
}
for (int i = 0; i < attributes_.size(); i++) {
output.writeMessage(7, attributes_.get(i));
}
if (flags_ != 0) {
output.writeUInt32(8, flags_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (startTimeUnixNano_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(2, startTimeUnixNano_);
}
if (timeUnixNano_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(3, timeUnixNano_);
}
if (count_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(4, count_);
}
if (java.lang.Double.doubleToRawLongBits(sum_) != 0) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, sum_);
}
for (int i = 0; i < quantileValues_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, quantileValues_.get(i));
}
for (int i = 0; i < attributes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, attributes_.get(i));
}
if (flags_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, flags_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.opentelemetry.proto.metrics.v1.SummaryDataPoint)) {
return super.equals(obj);
}
io.opentelemetry.proto.metrics.v1.SummaryDataPoint other = (io.opentelemetry.proto.metrics.v1.SummaryDataPoint) obj;
if (!getAttributesList()
.equals(other.getAttributesList())) return false;
if (getStartTimeUnixNano()
!= other.getStartTimeUnixNano()) return false;
if (getTimeUnixNano()
!= other.getTimeUnixNano()) return false;
if (getCount()
!= other.getCount()) return false;
if (java.lang.Double.doubleToLongBits(getSum())
!= java.lang.Double.doubleToLongBits(
other.getSum())) return false;
if (!getQuantileValuesList()
.equals(other.getQuantileValuesList())) return false;
if (getFlags()
!= other.getFlags()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getAttributesCount() > 0) {
hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER;
hash = (53 * hash) + getAttributesList().hashCode();
}
hash = (37 * hash) + START_TIME_UNIX_NANO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getStartTimeUnixNano());
hash = (37 * hash) + TIME_UNIX_NANO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimeUnixNano());
hash = (37 * hash) + COUNT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getCount());
hash = (37 * hash) + SUM_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getSum()));
if (getQuantileValuesCount() > 0) {
hash = (37 * hash) + QUANTILE_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getQuantileValuesList().hashCode();
}
hash = (37 * hash) + FLAGS_FIELD_NUMBER;
hash = (53 * hash) + getFlags();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opentelemetry.proto.metrics.v1.SummaryDataPoint parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.metrics.v1.SummaryDataPoint parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opentelemetry.proto.metrics.v1.SummaryDataPoint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.metrics.v1.SummaryDataPoint parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opentelemetry.proto.metrics.v1.SummaryDataPoint parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.metrics.v1.SummaryDataPoint parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opentelemetry.proto.metrics.v1.SummaryDataPoint parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.metrics.v1.SummaryDataPoint parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.opentelemetry.proto.metrics.v1.SummaryDataPoint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.metrics.v1.SummaryDataPoint parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.opentelemetry.proto.metrics.v1.SummaryDataPoint parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.metrics.v1.SummaryDataPoint parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.opentelemetry.proto.metrics.v1.SummaryDataPoint prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* SummaryDataPoint is a single data point in a timeseries that describes the
* time-varying values of a Summary metric.
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
*
* repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
*/
public int getAttributesCount() {
if (attributesBuilder_ == null) {
return attributes_.size();
} else {
return attributesBuilder_.getCount();
}
}
/**
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
*
* repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
*/
public Builder setAttributes(
int index, io.opentelemetry.proto.common.v1.KeyValue value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.set(index, value);
onChanged();
} else {
attributesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
*
* repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
*/
public Builder addAttributes(io.opentelemetry.proto.common.v1.KeyValue value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.add(value);
onChanged();
} else {
attributesBuilder_.addMessage(value);
}
return this;
}
/**
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
*
* repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
*/
public Builder addAttributes(
int index, io.opentelemetry.proto.common.v1.KeyValue value) {
if (attributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributesIsMutable();
attributes_.add(index, value);
onChanged();
} else {
attributesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
*
* repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
*/
public io.opentelemetry.proto.common.v1.KeyValue.Builder getAttributesBuilder(
int index) {
return getAttributesFieldBuilder().getBuilder(index);
}
/**
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
*
* repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7;
*/
public io.opentelemetry.proto.common.v1.KeyValueOrBuilder getAttributesOrBuilder(
int index) {
if (attributesBuilder_ == null) {
return attributes_.get(index); } else {
return attributesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
* The set of key/value pairs that uniquely identify the timeseries from
* where this point belongs. The list may be empty (may contain 0 elements).
* Attribute keys MUST be unique (it is not allowed to have more than one
* attribute with the same key).
*
* StartTimeUnixNano is optional but strongly encouraged, see the
* the detailed comments above Metric.
* Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
* 1970.
*
*
* fixed64 start_time_unix_nano = 2;
* @return The startTimeUnixNano.
*/
@java.lang.Override
public long getStartTimeUnixNano() {
return startTimeUnixNano_;
}
/**
*
* StartTimeUnixNano is optional but strongly encouraged, see the
* the detailed comments above Metric.
* Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
* 1970.
*
*
* fixed64 start_time_unix_nano = 2;
* @param value The startTimeUnixNano to set.
* @return This builder for chaining.
*/
public Builder setStartTimeUnixNano(long value) {
startTimeUnixNano_ = value;
onChanged();
return this;
}
/**
*
* StartTimeUnixNano is optional but strongly encouraged, see the
* the detailed comments above Metric.
* Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
* 1970.
*
*
* fixed64 start_time_unix_nano = 2;
* @return This builder for chaining.
*/
public Builder clearStartTimeUnixNano() {
startTimeUnixNano_ = 0L;
onChanged();
return this;
}
private long timeUnixNano_ ;
/**
*
* TimeUnixNano is required, see the detailed comments above Metric.
* Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
* 1970.
*
*
* fixed64 time_unix_nano = 3;
* @return The timeUnixNano.
*/
@java.lang.Override
public long getTimeUnixNano() {
return timeUnixNano_;
}
/**
*
* TimeUnixNano is required, see the detailed comments above Metric.
* Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
* 1970.
*
*
* fixed64 time_unix_nano = 3;
* @param value The timeUnixNano to set.
* @return This builder for chaining.
*/
public Builder setTimeUnixNano(long value) {
timeUnixNano_ = value;
onChanged();
return this;
}
/**
*
* TimeUnixNano is required, see the detailed comments above Metric.
* Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
* 1970.
*
*
* fixed64 time_unix_nano = 3;
* @return This builder for chaining.
*/
public Builder clearTimeUnixNano() {
timeUnixNano_ = 0L;
onChanged();
return this;
}
private long count_ ;
/**
*
* count is the number of values in the population. Must be non-negative.
*
*
* fixed64 count = 4;
* @return The count.
*/
@java.lang.Override
public long getCount() {
return count_;
}
/**
*
* count is the number of values in the population. Must be non-negative.
*
*
* fixed64 count = 4;
* @param value The count to set.
* @return This builder for chaining.
*/
public Builder setCount(long value) {
count_ = value;
onChanged();
return this;
}
/**
*
* count is the number of values in the population. Must be non-negative.
*
*
* fixed64 count = 4;
* @return This builder for chaining.
*/
public Builder clearCount() {
count_ = 0L;
onChanged();
return this;
}
private double sum_ ;
/**
*
* sum of the values in the population. If count is zero then this field
* must be zero.
* Note: Sum should only be filled out when measuring non-negative discrete
* events, and is assumed to be monotonic over the values of these events.
* Negative events *can* be recorded, but sum should not be filled out when
* doing so. This is specifically to enforce compatibility w/ OpenMetrics,
* see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#summary
*
*
* double sum = 5;
* @return The sum.
*/
@java.lang.Override
public double getSum() {
return sum_;
}
/**
*
* sum of the values in the population. If count is zero then this field
* must be zero.
* Note: Sum should only be filled out when measuring non-negative discrete
* events, and is assumed to be monotonic over the values of these events.
* Negative events *can* be recorded, but sum should not be filled out when
* doing so. This is specifically to enforce compatibility w/ OpenMetrics,
* see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#summary
*
*
* double sum = 5;
* @param value The sum to set.
* @return This builder for chaining.
*/
public Builder setSum(double value) {
sum_ = value;
onChanged();
return this;
}
/**
*
* sum of the values in the population. If count is zero then this field
* must be zero.
* Note: Sum should only be filled out when measuring non-negative discrete
* events, and is assumed to be monotonic over the values of these events.
* Negative events *can* be recorded, but sum should not be filled out when
* doing so. This is specifically to enforce compatibility w/ OpenMetrics,
* see: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#summary
*
*
* double sum = 5;
* @return This builder for chaining.
*/
public Builder clearSum() {
sum_ = 0D;
onChanged();
return this;
}
private java.util.List quantileValues_ =
java.util.Collections.emptyList();
private void ensureQuantileValuesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
quantileValues_ = new java.util.ArrayList(quantileValues_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile, io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.Builder, io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantileOrBuilder> quantileValuesBuilder_;
/**
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
*
* repeated .opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile quantile_values = 6;
*/
public int getQuantileValuesCount() {
if (quantileValuesBuilder_ == null) {
return quantileValues_.size();
} else {
return quantileValuesBuilder_.getCount();
}
}
/**
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
*
* repeated .opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile quantile_values = 6;
*/
public Builder setQuantileValues(
int index, io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile value) {
if (quantileValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQuantileValuesIsMutable();
quantileValues_.set(index, value);
onChanged();
} else {
quantileValuesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
*
* repeated .opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile quantile_values = 6;
*/
public Builder addQuantileValues(io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile value) {
if (quantileValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQuantileValuesIsMutable();
quantileValues_.add(value);
onChanged();
} else {
quantileValuesBuilder_.addMessage(value);
}
return this;
}
/**
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
*
* repeated .opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile quantile_values = 6;
*/
public Builder addQuantileValues(
int index, io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile value) {
if (quantileValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQuantileValuesIsMutable();
quantileValues_.add(index, value);
onChanged();
} else {
quantileValuesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
*
* repeated .opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile quantile_values = 6;
*/
public io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.Builder getQuantileValuesBuilder(
int index) {
return getQuantileValuesFieldBuilder().getBuilder(index);
}
/**
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
*
* repeated .opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile quantile_values = 6;
*/
public io.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantileOrBuilder getQuantileValuesOrBuilder(
int index) {
if (quantileValuesBuilder_ == null) {
return quantileValues_.get(index); } else {
return quantileValuesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*
* (Optional) list of values at different quantiles of the distribution calculated
* from the current snapshot. The quantiles must be strictly increasing.
*