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;
/**
*
* NumberDataPoint is a single data point in a timeseries that describes the
* time-varying scalar value of a metric.
*
*
* Protobuf type {@code opentelemetry.proto.metrics.v1.NumberDataPoint}
*/
public final class NumberDataPoint extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opentelemetry.proto.metrics.v1.NumberDataPoint)
NumberDataPointOrBuilder {
private static final long serialVersionUID = 0L;
// Use NumberDataPoint.newBuilder() to construct.
private NumberDataPoint(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NumberDataPoint() {
attributes_ = java.util.Collections.emptyList();
exemplars_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NumberDataPoint();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NumberDataPoint(
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: {
value_ = input.readDouble();
valueCase_ = 4;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
exemplars_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
exemplars_.add(
input.readMessage(io.opentelemetry.proto.metrics.v1.Exemplar.parser(), extensionRegistry));
break;
}
case 49: {
value_ = input.readSFixed64();
valueCase_ = 6;
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)) {
exemplars_ = java.util.Collections.unmodifiableList(exemplars_);
}
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_NumberDataPoint_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_NumberDataPoint_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opentelemetry.proto.metrics.v1.NumberDataPoint.class, io.opentelemetry.proto.metrics.v1.NumberDataPoint.Builder.class);
}
private int valueCase_ = 0;
private java.lang.Object value_;
public enum ValueCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
AS_DOUBLE(4),
AS_INT(6),
VALUE_NOT_SET(0);
private final int value;
private ValueCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ValueCase valueOf(int value) {
return forNumber(value);
}
public static ValueCase forNumber(int value) {
switch (value) {
case 4: return AS_DOUBLE;
case 6: return AS_INT;
case 0: return VALUE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ValueCase
getValueCase() {
return ValueCase.forNumber(
valueCase_);
}
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 AS_DOUBLE_FIELD_NUMBER = 4;
/**
* double as_double = 4;
* @return Whether the asDouble field is set.
*/
@java.lang.Override
public boolean hasAsDouble() {
return valueCase_ == 4;
}
/**
* double as_double = 4;
* @return The asDouble.
*/
@java.lang.Override
public double getAsDouble() {
if (valueCase_ == 4) {
return (java.lang.Double) value_;
}
return 0D;
}
public static final int AS_INT_FIELD_NUMBER = 6;
/**
* sfixed64 as_int = 6;
* @return Whether the asInt field is set.
*/
@java.lang.Override
public boolean hasAsInt() {
return valueCase_ == 6;
}
/**
* sfixed64 as_int = 6;
* @return The asInt.
*/
@java.lang.Override
public long getAsInt() {
if (valueCase_ == 6) {
return (java.lang.Long) value_;
}
return 0L;
}
public static final int EXEMPLARS_FIELD_NUMBER = 5;
private java.util.List exemplars_;
/**
*
* (Optional) List of exemplars collected from
* measurements that were used to form the data point
*
* (Optional) List of exemplars collected from
* measurements that were used to form the data point
*
*
* repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5;
*/
@java.lang.Override
public io.opentelemetry.proto.metrics.v1.ExemplarOrBuilder getExemplarsOrBuilder(
int index) {
return exemplars_.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 (valueCase_ == 4) {
output.writeDouble(
4, (double)((java.lang.Double) value_));
}
for (int i = 0; i < exemplars_.size(); i++) {
output.writeMessage(5, exemplars_.get(i));
}
if (valueCase_ == 6) {
output.writeSFixed64(
6, (long)((java.lang.Long) value_));
}
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 (valueCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(
4, (double)((java.lang.Double) value_));
}
for (int i = 0; i < exemplars_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, exemplars_.get(i));
}
if (valueCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(
6, (long)((java.lang.Long) value_));
}
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.NumberDataPoint)) {
return super.equals(obj);
}
io.opentelemetry.proto.metrics.v1.NumberDataPoint other = (io.opentelemetry.proto.metrics.v1.NumberDataPoint) obj;
if (!getAttributesList()
.equals(other.getAttributesList())) return false;
if (getStartTimeUnixNano()
!= other.getStartTimeUnixNano()) return false;
if (getTimeUnixNano()
!= other.getTimeUnixNano()) return false;
if (!getExemplarsList()
.equals(other.getExemplarsList())) return false;
if (getFlags()
!= other.getFlags()) return false;
if (!getValueCase().equals(other.getValueCase())) return false;
switch (valueCase_) {
case 4:
if (java.lang.Double.doubleToLongBits(getAsDouble())
!= java.lang.Double.doubleToLongBits(
other.getAsDouble())) return false;
break;
case 6:
if (getAsInt()
!= other.getAsInt()) return false;
break;
case 0:
default:
}
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());
if (getExemplarsCount() > 0) {
hash = (37 * hash) + EXEMPLARS_FIELD_NUMBER;
hash = (53 * hash) + getExemplarsList().hashCode();
}
hash = (37 * hash) + FLAGS_FIELD_NUMBER;
hash = (53 * hash) + getFlags();
switch (valueCase_) {
case 4:
hash = (37 * hash) + AS_DOUBLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getAsDouble()));
break;
case 6:
hash = (37 * hash) + AS_INT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getAsInt());
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opentelemetry.proto.metrics.v1.NumberDataPoint parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.metrics.v1.NumberDataPoint 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.NumberDataPoint parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.metrics.v1.NumberDataPoint 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.NumberDataPoint parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.metrics.v1.NumberDataPoint 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.NumberDataPoint parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.metrics.v1.NumberDataPoint 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.NumberDataPoint parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.metrics.v1.NumberDataPoint 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.NumberDataPoint 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.NumberDataPoint 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.NumberDataPoint 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;
}
/**
*
* NumberDataPoint is a single data point in a timeseries that describes the
* time-varying scalar value of a 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;
}
/**
* double as_double = 4;
* @return Whether the asDouble field is set.
*/
public boolean hasAsDouble() {
return valueCase_ == 4;
}
/**
* double as_double = 4;
* @return The asDouble.
*/
public double getAsDouble() {
if (valueCase_ == 4) {
return (java.lang.Double) value_;
}
return 0D;
}
/**
* double as_double = 4;
* @param value The asDouble to set.
* @return This builder for chaining.
*/
public Builder setAsDouble(double value) {
valueCase_ = 4;
value_ = value;
onChanged();
return this;
}
/**
* double as_double = 4;
* @return This builder for chaining.
*/
public Builder clearAsDouble() {
if (valueCase_ == 4) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
/**
* sfixed64 as_int = 6;
* @return Whether the asInt field is set.
*/
public boolean hasAsInt() {
return valueCase_ == 6;
}
/**
* sfixed64 as_int = 6;
* @return The asInt.
*/
public long getAsInt() {
if (valueCase_ == 6) {
return (java.lang.Long) value_;
}
return 0L;
}
/**
* sfixed64 as_int = 6;
* @param value The asInt to set.
* @return This builder for chaining.
*/
public Builder setAsInt(long value) {
valueCase_ = 6;
value_ = value;
onChanged();
return this;
}
/**
* sfixed64 as_int = 6;
* @return This builder for chaining.
*/
public Builder clearAsInt() {
if (valueCase_ == 6) {
valueCase_ = 0;
value_ = null;
onChanged();
}
return this;
}
private java.util.List exemplars_ =
java.util.Collections.emptyList();
private void ensureExemplarsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
exemplars_ = new java.util.ArrayList(exemplars_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.opentelemetry.proto.metrics.v1.Exemplar, io.opentelemetry.proto.metrics.v1.Exemplar.Builder, io.opentelemetry.proto.metrics.v1.ExemplarOrBuilder> exemplarsBuilder_;
/**
*
* (Optional) List of exemplars collected from
* measurements that were used to form the data point
*