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;
/**
*
* Histogram represents the type of a metric that is calculated by aggregating
* as a Histogram of all reported measurements over a time interval.
*
*
* Protobuf type {@code opentelemetry.proto.metrics.v1.Histogram}
*/
public final class Histogram extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:opentelemetry.proto.metrics.v1.Histogram)
HistogramOrBuilder {
private static final long serialVersionUID = 0L;
// Use Histogram.newBuilder() to construct.
private Histogram(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Histogram() {
dataPoints_ = java.util.Collections.emptyList();
aggregationTemporality_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Histogram();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Histogram(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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.HistogramDataPoint.parser(), extensionRegistry));
break;
}
case 16: {
int rawValue = input.readEnum();
aggregationTemporality_ = rawValue;
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_Histogram_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.opentelemetry.proto.metrics.v1.MetricsProto.internal_static_opentelemetry_proto_metrics_v1_Histogram_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.opentelemetry.proto.metrics.v1.Histogram.class, io.opentelemetry.proto.metrics.v1.Histogram.Builder.class);
}
public static final int DATA_POINTS_FIELD_NUMBER = 1;
private java.util.List dataPoints_;
/**
* repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1;
*/
@java.lang.Override
public java.util.List getDataPointsList() {
return dataPoints_;
}
/**
* repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1;
*/
@java.lang.Override
public java.util.List extends io.opentelemetry.proto.metrics.v1.HistogramDataPointOrBuilder>
getDataPointsOrBuilderList() {
return dataPoints_;
}
/**
* repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1;
*/
@java.lang.Override
public int getDataPointsCount() {
return dataPoints_.size();
}
/**
* repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1;
*/
@java.lang.Override
public io.opentelemetry.proto.metrics.v1.HistogramDataPoint getDataPoints(int index) {
return dataPoints_.get(index);
}
/**
* repeated .opentelemetry.proto.metrics.v1.HistogramDataPoint data_points = 1;
*/
@java.lang.Override
public io.opentelemetry.proto.metrics.v1.HistogramDataPointOrBuilder 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;
}
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_);
}
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_);
}
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.Histogram)) {
return super.equals(obj);
}
io.opentelemetry.proto.metrics.v1.Histogram other = (io.opentelemetry.proto.metrics.v1.Histogram) obj;
if (!getDataPointsList()
.equals(other.getDataPointsList())) return false;
if (aggregationTemporality_ != other.aggregationTemporality_) 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 = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.opentelemetry.proto.metrics.v1.Histogram parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.metrics.v1.Histogram 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.Histogram parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.metrics.v1.Histogram parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.opentelemetry.proto.metrics.v1.Histogram parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.opentelemetry.proto.metrics.v1.Histogram 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.Histogram parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.metrics.v1.Histogram 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.Histogram parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.opentelemetry.proto.metrics.v1.Histogram 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.Histogram 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.Histogram 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.Histogram 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;
}
/**
*
* Histogram represents the type of a metric that is calculated by aggregating
* as a Histogram 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;
}
@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.Histogram)
}
// @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.Histogram)
private static final io.opentelemetry.proto.metrics.v1.Histogram DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.opentelemetry.proto.metrics.v1.Histogram();
}
public static io.opentelemetry.proto.metrics.v1.Histogram getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Histogram parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Histogram(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.Histogram getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}