Class IntExemplar.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, IntExemplarOrBuilder, Cloneable
    Enclosing class:
    IntExemplar

    public static final class IntExemplar.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<IntExemplar.Builder>
    implements IntExemplarOrBuilder
     IntExemplar is deprecated. Use Exemplar with as_int for value
     
    Protobuf type opentelemetry.proto.metrics.v1.IntExemplar
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<IntExemplar.Builder>
      • clear

        public IntExemplar.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<IntExemplar.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<IntExemplar.Builder>
      • getDefaultInstanceForType

        public IntExemplar getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public IntExemplar build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public IntExemplar buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public IntExemplar.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<IntExemplar.Builder>
      • setField

        public IntExemplar.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<IntExemplar.Builder>
      • clearField

        public IntExemplar.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<IntExemplar.Builder>
      • clearOneof

        public IntExemplar.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<IntExemplar.Builder>
      • setRepeatedField

        public IntExemplar.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IntExemplar.Builder>
      • addRepeatedField

        public IntExemplar.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IntExemplar.Builder>
      • mergeFrom

        public IntExemplar.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IntExemplar.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<IntExemplar.Builder>
      • mergeFrom

        public IntExemplar.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<IntExemplar.Builder>
        Throws:
        IOException
      • getFilteredLabelsList

        public List<StringKeyValue> getFilteredLabelsList()
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
        Specified by:
        getFilteredLabelsList in interface IntExemplarOrBuilder
      • getFilteredLabelsCount

        public int getFilteredLabelsCount()
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
        Specified by:
        getFilteredLabelsCount in interface IntExemplarOrBuilder
      • getFilteredLabels

        public StringKeyValue getFilteredLabels​(int index)
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
        Specified by:
        getFilteredLabels in interface IntExemplarOrBuilder
      • setFilteredLabels

        public IntExemplar.Builder setFilteredLabels​(int index,
                                                     StringKeyValue value)
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
      • setFilteredLabels

        public IntExemplar.Builder setFilteredLabels​(int index,
                                                     StringKeyValue.Builder builderForValue)
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
      • addFilteredLabels

        public IntExemplar.Builder addFilteredLabels​(StringKeyValue value)
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
      • addFilteredLabels

        public IntExemplar.Builder addFilteredLabels​(int index,
                                                     StringKeyValue value)
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
      • addFilteredLabels

        public IntExemplar.Builder addFilteredLabels​(StringKeyValue.Builder builderForValue)
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
      • addFilteredLabels

        public IntExemplar.Builder addFilteredLabels​(int index,
                                                     StringKeyValue.Builder builderForValue)
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
      • addAllFilteredLabels

        public IntExemplar.Builder addAllFilteredLabels​(Iterable<? extends StringKeyValue> values)
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
      • clearFilteredLabels

        public IntExemplar.Builder clearFilteredLabels()
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
      • removeFilteredLabels

        public IntExemplar.Builder removeFilteredLabels​(int index)
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
      • getFilteredLabelsBuilder

        public StringKeyValue.Builder getFilteredLabelsBuilder​(int index)
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
      • getFilteredLabelsOrBuilder

        public StringKeyValueOrBuilder getFilteredLabelsOrBuilder​(int index)
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
        Specified by:
        getFilteredLabelsOrBuilder in interface IntExemplarOrBuilder
      • getFilteredLabelsOrBuilderList

        public List<? extends StringKeyValueOrBuilder> getFilteredLabelsOrBuilderList()
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
        Specified by:
        getFilteredLabelsOrBuilderList in interface IntExemplarOrBuilder
      • addFilteredLabelsBuilder

        public StringKeyValue.Builder addFilteredLabelsBuilder()
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
      • addFilteredLabelsBuilder

        public StringKeyValue.Builder addFilteredLabelsBuilder​(int index)
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
      • getFilteredLabelsBuilderList

        public List<StringKeyValue.Builder> getFilteredLabelsBuilderList()
         The set of labels that were filtered out by the aggregator, but recorded
         alongside the original measurement. Only labels that were filtered out
         by the aggregator should be included
         
        repeated .opentelemetry.proto.common.v1.StringKeyValue filtered_labels = 1;
      • getTimeUnixNano

        public long getTimeUnixNano()
         time_unix_nano is the exact time when this exemplar was recorded
         Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
         1970.
         
        fixed64 time_unix_nano = 2;
        Specified by:
        getTimeUnixNano in interface IntExemplarOrBuilder
      • setTimeUnixNano

        public IntExemplar.Builder setTimeUnixNano​(long value)
         time_unix_nano is the exact time when this exemplar was recorded
         Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
         1970.
         
        fixed64 time_unix_nano = 2;
      • clearTimeUnixNano

        public IntExemplar.Builder clearTimeUnixNano()
         time_unix_nano is the exact time when this exemplar was recorded
         Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January
         1970.
         
        fixed64 time_unix_nano = 2;
      • getValue

        public long getValue()
         Numerical int value of the measurement that was recorded.
         
        sfixed64 value = 3;
        Specified by:
        getValue in interface IntExemplarOrBuilder
      • setValue

        public IntExemplar.Builder setValue​(long value)
         Numerical int value of the measurement that was recorded.
         
        sfixed64 value = 3;
      • clearValue

        public IntExemplar.Builder clearValue()
         Numerical int value of the measurement that was recorded.
         
        sfixed64 value = 3;
      • getSpanId

        public com.google.protobuf.ByteString getSpanId()
         (Optional) Span ID of the exemplar trace.
         span_id may be missing if the measurement is not recorded inside a trace
         or if the trace is not sampled.
         
        bytes span_id = 4;
        Specified by:
        getSpanId in interface IntExemplarOrBuilder
      • setSpanId

        public IntExemplar.Builder setSpanId​(com.google.protobuf.ByteString value)
         (Optional) Span ID of the exemplar trace.
         span_id may be missing if the measurement is not recorded inside a trace
         or if the trace is not sampled.
         
        bytes span_id = 4;
      • clearSpanId

        public IntExemplar.Builder clearSpanId()
         (Optional) Span ID of the exemplar trace.
         span_id may be missing if the measurement is not recorded inside a trace
         or if the trace is not sampled.
         
        bytes span_id = 4;
      • getTraceId

        public com.google.protobuf.ByteString getTraceId()
         (Optional) Trace ID of the exemplar trace.
         trace_id may be missing if the measurement is not recorded inside a trace
         or if the trace is not sampled.
         
        bytes trace_id = 5;
        Specified by:
        getTraceId in interface IntExemplarOrBuilder
      • setTraceId

        public IntExemplar.Builder setTraceId​(com.google.protobuf.ByteString value)
         (Optional) Trace ID of the exemplar trace.
         trace_id may be missing if the measurement is not recorded inside a trace
         or if the trace is not sampled.
         
        bytes trace_id = 5;
      • clearTraceId

        public IntExemplar.Builder clearTraceId()
         (Optional) Trace ID of the exemplar trace.
         trace_id may be missing if the measurement is not recorded inside a trace
         or if the trace is not sampled.
         
        bytes trace_id = 5;
      • setUnknownFields

        public final IntExemplar.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IntExemplar.Builder>
      • mergeUnknownFields

        public final IntExemplar.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IntExemplar.Builder>