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;
/**
*
* Gauge represents the type of a scalar metric that always exports the
* "current value" for every data point. It should be used for an "unknown"
* aggregation.
* A Gauge does not support different aggregation temporalities. Given the
* aggregation is unknown, points cannot be combined using the same
* aggregation, regardless of aggregation temporalities. Therefore,
* AggregationTemporality is not included. Consequently, this also means
* "StartTimeUnixNano" is ignored for all data points.
*
*
* Protobuf type {@code opentelemetry.proto.metrics.v1.Gauge}
*/
public final class Gauge extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opentelemetry.proto.metrics.v1.Gauge)
GaugeOrBuilder {
private static final long serialVersionUID = 0L;
// Use Gauge.newBuilder() to construct.
private Gauge(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Gauge() {
dataPoints_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Gauge();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Gauge(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
dataPoints_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
dataPoints_.add(
input.readMessage(io.opentelemetry.proto.metrics.v1.NumberDataPoint.parser(), extensionRegistry));
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_ & 0x00000001) != 0)) {
dataPoints_ = java.util.Collections.unmodifiableList(dataPoints_);
}
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_Gauge_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_Gauge_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opentelemetry.proto.metrics.v1.Gauge.class, io.opentelemetry.proto.metrics.v1.Gauge.Builder.class);
}
public static final int DATA_POINTS_FIELD_NUMBER = 1;
private java.util.List dataPoints_;
/**
* repeated .opentelemetry.proto.metrics.v1.NumberDataPoint data_points = 1;
*/
@java.lang.Override
public java.util.List getDataPointsList() {
return dataPoints_;
}
/**
* repeated .opentelemetry.proto.metrics.v1.NumberDataPoint data_points = 1;
*/
@java.lang.Override
public java.util.List extends io.opentelemetry.proto.metrics.v1.NumberDataPointOrBuilder>
getDataPointsOrBuilderList() {
return dataPoints_;
}
/**
* repeated .opentelemetry.proto.metrics.v1.NumberDataPoint data_points = 1;
*/
@java.lang.Override
public int getDataPointsCount() {
return dataPoints_.size();
}
/**
* repeated .opentelemetry.proto.metrics.v1.NumberDataPoint data_points = 1;
*/
@java.lang.Override
public io.opentelemetry.proto.metrics.v1.NumberDataPoint getDataPoints(int index) {
return dataPoints_.get(index);
}
/**
* repeated .opentelemetry.proto.metrics.v1.NumberDataPoint data_points = 1;
*/
@java.lang.Override
public io.opentelemetry.proto.metrics.v1.NumberDataPointOrBuilder getDataPointsOrBuilder(
int index) {
return dataPoints_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < dataPoints_.size(); i++) {
output.writeMessage(1, dataPoints_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < dataPoints_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, dataPoints_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.opentelemetry.proto.metrics.v1.Gauge)) {
return super.equals(obj);
}
io.opentelemetry.proto.metrics.v1.Gauge other = (io.opentelemetry.proto.metrics.v1.Gauge) obj;
if (!getDataPointsList()
.equals(other.getDataPointsList())) 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 (getDataPointsCount() > 0) {
hash = (37 * hash) + DATA_POINTS_FIELD_NUMBER;
hash = (53 * hash) + getDataPointsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opentelemetry.proto.metrics.v1.Gauge parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.metrics.v1.Gauge 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.Gauge parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.metrics.v1.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.opentelemetry.proto.metrics.v1.Gauge parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.metrics.v1.Gauge 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.Gauge parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.metrics.v1.Gauge parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.opentelemetry.proto.metrics.v1.Gauge parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.metrics.v1.Gauge parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.opentelemetry.proto.metrics.v1.Gauge 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.Gauge parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.opentelemetry.proto.metrics.v1.Gauge prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Gauge represents the type of a scalar metric that always exports the
* "current value" for every data point. It should be used for an "unknown"
* aggregation.
* A Gauge does not support different aggregation temporalities. Given the
* aggregation is unknown, points cannot be combined using the same
* aggregation, regardless of aggregation temporalities. Therefore,
* AggregationTemporality is not included. Consequently, this also means
* "StartTimeUnixNano" is ignored for all data points.
*