All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opentelemetry.proto.metrics.v1.NumberDataPoint Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// 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).
   * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7; */ @java.lang.Override public java.util.List getAttributesList() { return 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).
   * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7; */ @java.lang.Override public java.util.List getAttributesOrBuilderList() { return 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).
   * 
* * 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).
   * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7; */ @java.lang.Override public io.opentelemetry.proto.common.v1.KeyValue getAttributes(int index) { return attributes_.get(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; */ @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
   * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ @java.lang.Override public java.util.List getExemplarsList() { return exemplars_; } /** *
   * (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 java.util.List getExemplarsOrBuilderList() { return exemplars_; } /** *
   * (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 int getExemplarsCount() { return exemplars_.size(); } /** *
   * (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.Exemplar getExemplars(int index) { return exemplars_.get(index); } /** *
   * (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.
   * 
* * Protobuf type {@code opentelemetry.proto.metrics.v1.NumberDataPoint} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:opentelemetry.proto.metrics.v1.NumberDataPoint) io.opentelemetry.proto.metrics.v1.NumberDataPointOrBuilder { 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); } // Construct using io.opentelemetry.proto.metrics.v1.NumberDataPoint.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAttributesFieldBuilder(); getExemplarsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { attributesBuilder_.clear(); } startTimeUnixNano_ = 0L; timeUnixNano_ = 0L; if (exemplarsBuilder_ == null) { exemplars_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { exemplarsBuilder_.clear(); } flags_ = 0; valueCase_ = 0; value_ = null; 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_NumberDataPoint_descriptor; } @java.lang.Override public io.opentelemetry.proto.metrics.v1.NumberDataPoint getDefaultInstanceForType() { return io.opentelemetry.proto.metrics.v1.NumberDataPoint.getDefaultInstance(); } @java.lang.Override public io.opentelemetry.proto.metrics.v1.NumberDataPoint build() { io.opentelemetry.proto.metrics.v1.NumberDataPoint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.opentelemetry.proto.metrics.v1.NumberDataPoint buildPartial() { io.opentelemetry.proto.metrics.v1.NumberDataPoint result = new io.opentelemetry.proto.metrics.v1.NumberDataPoint(this); int from_bitField0_ = bitField0_; if (attributesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { attributes_ = java.util.Collections.unmodifiableList(attributes_); bitField0_ = (bitField0_ & ~0x00000001); } result.attributes_ = attributes_; } else { result.attributes_ = attributesBuilder_.build(); } result.startTimeUnixNano_ = startTimeUnixNano_; result.timeUnixNano_ = timeUnixNano_; if (valueCase_ == 4) { result.value_ = value_; } if (valueCase_ == 6) { result.value_ = value_; } if (exemplarsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { exemplars_ = java.util.Collections.unmodifiableList(exemplars_); bitField0_ = (bitField0_ & ~0x00000002); } result.exemplars_ = exemplars_; } else { result.exemplars_ = exemplarsBuilder_.build(); } result.flags_ = flags_; result.valueCase_ = valueCase_; 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.NumberDataPoint) { return mergeFrom((io.opentelemetry.proto.metrics.v1.NumberDataPoint)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.opentelemetry.proto.metrics.v1.NumberDataPoint other) { if (other == io.opentelemetry.proto.metrics.v1.NumberDataPoint.getDefaultInstance()) return this; if (attributesBuilder_ == null) { if (!other.attributes_.isEmpty()) { if (attributes_.isEmpty()) { attributes_ = other.attributes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAttributesIsMutable(); attributes_.addAll(other.attributes_); } onChanged(); } } else { if (!other.attributes_.isEmpty()) { if (attributesBuilder_.isEmpty()) { attributesBuilder_.dispose(); attributesBuilder_ = null; attributes_ = other.attributes_; bitField0_ = (bitField0_ & ~0x00000001); attributesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAttributesFieldBuilder() : null; } else { attributesBuilder_.addAllMessages(other.attributes_); } } } if (other.getStartTimeUnixNano() != 0L) { setStartTimeUnixNano(other.getStartTimeUnixNano()); } if (other.getTimeUnixNano() != 0L) { setTimeUnixNano(other.getTimeUnixNano()); } if (exemplarsBuilder_ == null) { if (!other.exemplars_.isEmpty()) { if (exemplars_.isEmpty()) { exemplars_ = other.exemplars_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureExemplarsIsMutable(); exemplars_.addAll(other.exemplars_); } onChanged(); } } else { if (!other.exemplars_.isEmpty()) { if (exemplarsBuilder_.isEmpty()) { exemplarsBuilder_.dispose(); exemplarsBuilder_ = null; exemplars_ = other.exemplars_; bitField0_ = (bitField0_ & ~0x00000002); exemplarsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExemplarsFieldBuilder() : null; } else { exemplarsBuilder_.addAllMessages(other.exemplars_); } } } if (other.getFlags() != 0) { setFlags(other.getFlags()); } switch (other.getValueCase()) { case AS_DOUBLE: { setAsDouble(other.getAsDouble()); break; } case AS_INT: { setAsInt(other.getAsInt()); break; } case VALUE_NOT_SET: { break; } } 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.NumberDataPoint parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.opentelemetry.proto.metrics.v1.NumberDataPoint) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int valueCase_ = 0; private java.lang.Object value_; public ValueCase getValueCase() { return ValueCase.forNumber( valueCase_); } public Builder clearValue() { valueCase_ = 0; value_ = null; onChanged(); return this; } private int bitField0_; private java.util.List attributes_ = java.util.Collections.emptyList(); private void ensureAttributesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { attributes_ = new java.util.ArrayList(attributes_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.common.v1.KeyValue, io.opentelemetry.proto.common.v1.KeyValue.Builder, io.opentelemetry.proto.common.v1.KeyValueOrBuilder> attributesBuilder_; /** *
     * 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 java.util.List getAttributesList() { if (attributesBuilder_ == null) { return java.util.Collections.unmodifiableList(attributes_); } else { return attributesBuilder_.getMessageList(); } } /** *
     * 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).
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7; */ public io.opentelemetry.proto.common.v1.KeyValue getAttributes(int index) { if (attributesBuilder_ == null) { return attributes_.get(index); } else { return attributesBuilder_.getMessage(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 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).
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7; */ public Builder setAttributes( int index, io.opentelemetry.proto.common.v1.KeyValue.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.set(index, builderForValue.build()); onChanged(); } else { attributesBuilder_.setMessage(index, builderForValue.build()); } 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(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).
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7; */ public Builder addAttributes( io.opentelemetry.proto.common.v1.KeyValue.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.add(builderForValue.build()); onChanged(); } else { attributesBuilder_.addMessage(builderForValue.build()); } 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.Builder builderForValue) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.add(index, builderForValue.build()); onChanged(); } else { attributesBuilder_.addMessage(index, builderForValue.build()); } 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 addAllAttributes( java.lang.Iterable values) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, attributes_); onChanged(); } else { attributesBuilder_.addAllMessages(values); } 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 clearAttributes() { if (attributesBuilder_ == null) { attributes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { attributesBuilder_.clear(); } 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 removeAttributes(int index) { if (attributesBuilder_ == null) { ensureAttributesIsMutable(); attributes_.remove(index); onChanged(); } else { attributesBuilder_.remove(index); } 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 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).
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7; */ public java.util.List getAttributesOrBuilderList() { if (attributesBuilder_ != null) { return attributesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(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).
     * 
* * repeated .opentelemetry.proto.common.v1.KeyValue attributes = 7; */ public io.opentelemetry.proto.common.v1.KeyValue.Builder addAttributesBuilder() { return getAttributesFieldBuilder().addBuilder( io.opentelemetry.proto.common.v1.KeyValue.getDefaultInstance()); } /** *
     * 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 addAttributesBuilder( int index) { return getAttributesFieldBuilder().addBuilder( index, io.opentelemetry.proto.common.v1.KeyValue.getDefaultInstance()); } /** *
     * 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 java.util.List getAttributesBuilderList() { return getAttributesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.common.v1.KeyValue, io.opentelemetry.proto.common.v1.KeyValue.Builder, io.opentelemetry.proto.common.v1.KeyValueOrBuilder> getAttributesFieldBuilder() { if (attributesBuilder_ == null) { attributesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.common.v1.KeyValue, io.opentelemetry.proto.common.v1.KeyValue.Builder, io.opentelemetry.proto.common.v1.KeyValueOrBuilder>( attributes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); attributes_ = null; } return attributesBuilder_; } 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_; } /** *
     * 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
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public java.util.List getExemplarsList() { if (exemplarsBuilder_ == null) { return java.util.Collections.unmodifiableList(exemplars_); } else { return exemplarsBuilder_.getMessageList(); } } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public int getExemplarsCount() { if (exemplarsBuilder_ == null) { return exemplars_.size(); } else { return exemplarsBuilder_.getCount(); } } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public io.opentelemetry.proto.metrics.v1.Exemplar getExemplars(int index) { if (exemplarsBuilder_ == null) { return exemplars_.get(index); } else { return exemplarsBuilder_.getMessage(index); } } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public Builder setExemplars( int index, io.opentelemetry.proto.metrics.v1.Exemplar value) { if (exemplarsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExemplarsIsMutable(); exemplars_.set(index, value); onChanged(); } else { exemplarsBuilder_.setMessage(index, value); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public Builder setExemplars( int index, io.opentelemetry.proto.metrics.v1.Exemplar.Builder builderForValue) { if (exemplarsBuilder_ == null) { ensureExemplarsIsMutable(); exemplars_.set(index, builderForValue.build()); onChanged(); } else { exemplarsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public Builder addExemplars(io.opentelemetry.proto.metrics.v1.Exemplar value) { if (exemplarsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExemplarsIsMutable(); exemplars_.add(value); onChanged(); } else { exemplarsBuilder_.addMessage(value); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public Builder addExemplars( int index, io.opentelemetry.proto.metrics.v1.Exemplar value) { if (exemplarsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExemplarsIsMutable(); exemplars_.add(index, value); onChanged(); } else { exemplarsBuilder_.addMessage(index, value); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public Builder addExemplars( io.opentelemetry.proto.metrics.v1.Exemplar.Builder builderForValue) { if (exemplarsBuilder_ == null) { ensureExemplarsIsMutable(); exemplars_.add(builderForValue.build()); onChanged(); } else { exemplarsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public Builder addExemplars( int index, io.opentelemetry.proto.metrics.v1.Exemplar.Builder builderForValue) { if (exemplarsBuilder_ == null) { ensureExemplarsIsMutable(); exemplars_.add(index, builderForValue.build()); onChanged(); } else { exemplarsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public Builder addAllExemplars( java.lang.Iterable values) { if (exemplarsBuilder_ == null) { ensureExemplarsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, exemplars_); onChanged(); } else { exemplarsBuilder_.addAllMessages(values); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public Builder clearExemplars() { if (exemplarsBuilder_ == null) { exemplars_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { exemplarsBuilder_.clear(); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public Builder removeExemplars(int index) { if (exemplarsBuilder_ == null) { ensureExemplarsIsMutable(); exemplars_.remove(index); onChanged(); } else { exemplarsBuilder_.remove(index); } return this; } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public io.opentelemetry.proto.metrics.v1.Exemplar.Builder getExemplarsBuilder( int index) { return getExemplarsFieldBuilder().getBuilder(index); } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public io.opentelemetry.proto.metrics.v1.ExemplarOrBuilder getExemplarsOrBuilder( int index) { if (exemplarsBuilder_ == null) { return exemplars_.get(index); } else { return exemplarsBuilder_.getMessageOrBuilder(index); } } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public java.util.List getExemplarsOrBuilderList() { if (exemplarsBuilder_ != null) { return exemplarsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(exemplars_); } } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public io.opentelemetry.proto.metrics.v1.Exemplar.Builder addExemplarsBuilder() { return getExemplarsFieldBuilder().addBuilder( io.opentelemetry.proto.metrics.v1.Exemplar.getDefaultInstance()); } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public io.opentelemetry.proto.metrics.v1.Exemplar.Builder addExemplarsBuilder( int index) { return getExemplarsFieldBuilder().addBuilder( index, io.opentelemetry.proto.metrics.v1.Exemplar.getDefaultInstance()); } /** *
     * (Optional) List of exemplars collected from
     * measurements that were used to form the data point
     * 
* * repeated .opentelemetry.proto.metrics.v1.Exemplar exemplars = 5; */ public java.util.List getExemplarsBuilderList() { return getExemplarsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.metrics.v1.Exemplar, io.opentelemetry.proto.metrics.v1.Exemplar.Builder, io.opentelemetry.proto.metrics.v1.ExemplarOrBuilder> getExemplarsFieldBuilder() { if (exemplarsBuilder_ == null) { exemplarsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.opentelemetry.proto.metrics.v1.Exemplar, io.opentelemetry.proto.metrics.v1.Exemplar.Builder, io.opentelemetry.proto.metrics.v1.ExemplarOrBuilder>( exemplars_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); exemplars_ = null; } return exemplarsBuilder_; } 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_; } /** *
     * Flags that apply to this specific data point.  See DataPointFlags
     * for the available flags and their meaning.
     * 
* * uint32 flags = 8; * @param value The flags to set. * @return This builder for chaining. */ public Builder setFlags(int value) { flags_ = value; onChanged(); return this; } /** *
     * Flags that apply to this specific data point.  See DataPointFlags
     * for the available flags and their meaning.
     * 
* * uint32 flags = 8; * @return This builder for chaining. */ public Builder clearFlags() { flags_ = 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.NumberDataPoint) } // @@protoc_insertion_point(class_scope:opentelemetry.proto.metrics.v1.NumberDataPoint) private static final io.opentelemetry.proto.metrics.v1.NumberDataPoint DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.opentelemetry.proto.metrics.v1.NumberDataPoint(); } public static io.opentelemetry.proto.metrics.v1.NumberDataPoint getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public NumberDataPoint parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NumberDataPoint(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.NumberDataPoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy