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;
/**
*
* Sum represents the type of a scalar metric that is calculated as a sum of all
* reported measurements over a time interval.
*
*
* Protobuf type {@code opentelemetry.proto.metrics.v1.Sum}
*/
public final class Sum extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opentelemetry.proto.metrics.v1.Sum)
SumOrBuilder {
private static final long serialVersionUID = 0L;
// Use Sum.newBuilder() to construct.
private Sum(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Sum() {
dataPoints_ = java.util.Collections.emptyList();
aggregationTemporality_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Sum();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Sum(
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;
}
case 16: {
int rawValue = input.readEnum();
aggregationTemporality_ = rawValue;
break;
}
case 24: {
isMonotonic_ = input.readBool();
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_Sum_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_Sum_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opentelemetry.proto.metrics.v1.Sum.class, io.opentelemetry.proto.metrics.v1.Sum.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);
}
public static final int AGGREGATION_TEMPORALITY_FIELD_NUMBER = 2;
private int aggregationTemporality_;
/**
*
* aggregation_temporality describes if the aggregator reports delta changes
* since last report time, or cumulative changes since a fixed start time.
*
*
* .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2;
* @return The enum numeric value on the wire for aggregationTemporality.
*/
@java.lang.Override public int getAggregationTemporalityValue() {
return aggregationTemporality_;
}
/**
*
* aggregation_temporality describes if the aggregator reports delta changes
* since last report time, or cumulative changes since a fixed start time.
*
*
* .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2;
* @return The aggregationTemporality.
*/
@java.lang.Override public io.opentelemetry.proto.metrics.v1.AggregationTemporality getAggregationTemporality() {
@SuppressWarnings("deprecation")
io.opentelemetry.proto.metrics.v1.AggregationTemporality result = io.opentelemetry.proto.metrics.v1.AggregationTemporality.valueOf(aggregationTemporality_);
return result == null ? io.opentelemetry.proto.metrics.v1.AggregationTemporality.UNRECOGNIZED : result;
}
public static final int IS_MONOTONIC_FIELD_NUMBER = 3;
private boolean isMonotonic_;
/**
*
* If "true" means that the sum is monotonic.
*
*
* bool is_monotonic = 3;
* @return The isMonotonic.
*/
@java.lang.Override
public boolean getIsMonotonic() {
return isMonotonic_;
}
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));
}
if (aggregationTemporality_ != io.opentelemetry.proto.metrics.v1.AggregationTemporality.AGGREGATION_TEMPORALITY_UNSPECIFIED.getNumber()) {
output.writeEnum(2, aggregationTemporality_);
}
if (isMonotonic_ != false) {
output.writeBool(3, isMonotonic_);
}
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));
}
if (aggregationTemporality_ != io.opentelemetry.proto.metrics.v1.AggregationTemporality.AGGREGATION_TEMPORALITY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, aggregationTemporality_);
}
if (isMonotonic_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, isMonotonic_);
}
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.Sum)) {
return super.equals(obj);
}
io.opentelemetry.proto.metrics.v1.Sum other = (io.opentelemetry.proto.metrics.v1.Sum) obj;
if (!getDataPointsList()
.equals(other.getDataPointsList())) return false;
if (aggregationTemporality_ != other.aggregationTemporality_) return false;
if (getIsMonotonic()
!= other.getIsMonotonic()) 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 = (37 * hash) + AGGREGATION_TEMPORALITY_FIELD_NUMBER;
hash = (53 * hash) + aggregationTemporality_;
hash = (37 * hash) + IS_MONOTONIC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsMonotonic());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opentelemetry.proto.metrics.v1.Sum parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.metrics.v1.Sum 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.Sum parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.metrics.v1.Sum 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.Sum parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.metrics.v1.Sum 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.Sum parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.metrics.v1.Sum 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.Sum parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.metrics.v1.Sum 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.Sum 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.Sum 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.Sum 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;
}
/**
*
* Sum represents the type of a scalar metric that is calculated as a sum of all
* reported measurements over a time interval.
*
* aggregation_temporality describes if the aggregator reports delta changes
* since last report time, or cumulative changes since a fixed start time.
*
*
* .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2;
* @return The enum numeric value on the wire for aggregationTemporality.
*/
@java.lang.Override public int getAggregationTemporalityValue() {
return aggregationTemporality_;
}
/**
*
* aggregation_temporality describes if the aggregator reports delta changes
* since last report time, or cumulative changes since a fixed start time.
*
*
* .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2;
* @param value The enum numeric value on the wire for aggregationTemporality to set.
* @return This builder for chaining.
*/
public Builder setAggregationTemporalityValue(int value) {
aggregationTemporality_ = value;
onChanged();
return this;
}
/**
*
* aggregation_temporality describes if the aggregator reports delta changes
* since last report time, or cumulative changes since a fixed start time.
*
*
* .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2;
* @return The aggregationTemporality.
*/
@java.lang.Override
public io.opentelemetry.proto.metrics.v1.AggregationTemporality getAggregationTemporality() {
@SuppressWarnings("deprecation")
io.opentelemetry.proto.metrics.v1.AggregationTemporality result = io.opentelemetry.proto.metrics.v1.AggregationTemporality.valueOf(aggregationTemporality_);
return result == null ? io.opentelemetry.proto.metrics.v1.AggregationTemporality.UNRECOGNIZED : result;
}
/**
*
* aggregation_temporality describes if the aggregator reports delta changes
* since last report time, or cumulative changes since a fixed start time.
*
*
* .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2;
* @param value The aggregationTemporality to set.
* @return This builder for chaining.
*/
public Builder setAggregationTemporality(io.opentelemetry.proto.metrics.v1.AggregationTemporality value) {
if (value == null) {
throw new NullPointerException();
}
aggregationTemporality_ = value.getNumber();
onChanged();
return this;
}
/**
*
* aggregation_temporality describes if the aggregator reports delta changes
* since last report time, or cumulative changes since a fixed start time.
*
*
* .opentelemetry.proto.metrics.v1.AggregationTemporality aggregation_temporality = 2;
* @return This builder for chaining.
*/
public Builder clearAggregationTemporality() {
aggregationTemporality_ = 0;
onChanged();
return this;
}
private boolean isMonotonic_ ;
/**
*