Class Metrics.Metric

java.lang.Object
io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_36_2.Metrics.Metric
All Implemented Interfaces:
Metrics.MetricOrBuilder, Serializable
Enclosing class:
Metrics

public static final class Metrics.Metric extends Object implements Metrics.MetricOrBuilder
Protobuf type io.prometheus.client.Metric
See Also:
  • Field Details

    • LABEL_FIELD_NUMBER

      public static final int LABEL_FIELD_NUMBER
      See Also:
    • GAUGE_FIELD_NUMBER

      public static final int GAUGE_FIELD_NUMBER
      See Also:
    • COUNTER_FIELD_NUMBER

      public static final int COUNTER_FIELD_NUMBER
      See Also:
    • SUMMARY_FIELD_NUMBER

      public static final int SUMMARY_FIELD_NUMBER
      See Also:
    • UNTYPED_FIELD_NUMBER

      public static final int UNTYPED_FIELD_NUMBER
      See Also:
    • HISTOGRAM_FIELD_NUMBER

      public static final int HISTOGRAM_FIELD_NUMBER
      See Also:
    • TIMESTAMP_MS_FIELD_NUMBER

      public static final int TIMESTAMP_MS_FIELD_NUMBER
      See Also:
    • alwaysUseFieldBuilders

      protected static boolean alwaysUseFieldBuilders
    • unknownFields

      protected com.google.protobuf.UnknownFieldSet unknownFields
    • loggedPre22TypeNames

      protected static final Set<String> loggedPre22TypeNames
    • memoizedSize

      protected int memoizedSize
    • memoizedHashCode

      protected int memoizedHashCode
  • Method Details

    • getDescriptor

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

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
    • getLabelList

      public List<Metrics.LabelPair> getLabelList()
      repeated .io.prometheus.client.LabelPair label = 1;
      Specified by:
      getLabelList in interface Metrics.MetricOrBuilder
    • getLabelOrBuilderList

      public List<? extends Metrics.LabelPairOrBuilder> getLabelOrBuilderList()
      repeated .io.prometheus.client.LabelPair label = 1;
      Specified by:
      getLabelOrBuilderList in interface Metrics.MetricOrBuilder
    • getLabelCount

      public int getLabelCount()
      repeated .io.prometheus.client.LabelPair label = 1;
      Specified by:
      getLabelCount in interface Metrics.MetricOrBuilder
    • getLabel

      public Metrics.LabelPair getLabel(int index)
      repeated .io.prometheus.client.LabelPair label = 1;
      Specified by:
      getLabel in interface Metrics.MetricOrBuilder
    • getLabelOrBuilder

      public Metrics.LabelPairOrBuilder getLabelOrBuilder(int index)
      repeated .io.prometheus.client.LabelPair label = 1;
      Specified by:
      getLabelOrBuilder in interface Metrics.MetricOrBuilder
    • hasGauge

      public boolean hasGauge()
      optional .io.prometheus.client.Gauge gauge = 2;
      Specified by:
      hasGauge in interface Metrics.MetricOrBuilder
      Returns:
      Whether the gauge field is set.
    • getGauge

      public Metrics.Gauge getGauge()
      optional .io.prometheus.client.Gauge gauge = 2;
      Specified by:
      getGauge in interface Metrics.MetricOrBuilder
      Returns:
      The gauge.
    • getGaugeOrBuilder

      public Metrics.GaugeOrBuilder getGaugeOrBuilder()
      optional .io.prometheus.client.Gauge gauge = 2;
      Specified by:
      getGaugeOrBuilder in interface Metrics.MetricOrBuilder
    • hasCounter

      public boolean hasCounter()
      optional .io.prometheus.client.Counter counter = 3;
      Specified by:
      hasCounter in interface Metrics.MetricOrBuilder
      Returns:
      Whether the counter field is set.
    • getCounter

      public Metrics.Counter getCounter()
      optional .io.prometheus.client.Counter counter = 3;
      Specified by:
      getCounter in interface Metrics.MetricOrBuilder
      Returns:
      The counter.
    • getCounterOrBuilder

      public Metrics.CounterOrBuilder getCounterOrBuilder()
      optional .io.prometheus.client.Counter counter = 3;
      Specified by:
      getCounterOrBuilder in interface Metrics.MetricOrBuilder
    • hasSummary

      public boolean hasSummary()
      optional .io.prometheus.client.Summary summary = 4;
      Specified by:
      hasSummary in interface Metrics.MetricOrBuilder
      Returns:
      Whether the summary field is set.
    • getSummary

      public Metrics.Summary getSummary()
      optional .io.prometheus.client.Summary summary = 4;
      Specified by:
      getSummary in interface Metrics.MetricOrBuilder
      Returns:
      The summary.
    • getSummaryOrBuilder

      public Metrics.SummaryOrBuilder getSummaryOrBuilder()
      optional .io.prometheus.client.Summary summary = 4;
      Specified by:
      getSummaryOrBuilder in interface Metrics.MetricOrBuilder
    • hasUntyped

      public boolean hasUntyped()
      optional .io.prometheus.client.Untyped untyped = 5;
      Specified by:
      hasUntyped in interface Metrics.MetricOrBuilder
      Returns:
      Whether the untyped field is set.
    • getUntyped

      public Metrics.Untyped getUntyped()
      optional .io.prometheus.client.Untyped untyped = 5;
      Specified by:
      getUntyped in interface Metrics.MetricOrBuilder
      Returns:
      The untyped.
    • getUntypedOrBuilder

      public Metrics.UntypedOrBuilder getUntypedOrBuilder()
      optional .io.prometheus.client.Untyped untyped = 5;
      Specified by:
      getUntypedOrBuilder in interface Metrics.MetricOrBuilder
    • hasHistogram

      public boolean hasHistogram()
      optional .io.prometheus.client.Histogram histogram = 7;
      Specified by:
      hasHistogram in interface Metrics.MetricOrBuilder
      Returns:
      Whether the histogram field is set.
    • getHistogram

      public Metrics.Histogram getHistogram()
      optional .io.prometheus.client.Histogram histogram = 7;
      Specified by:
      getHistogram in interface Metrics.MetricOrBuilder
      Returns:
      The histogram.
    • getHistogramOrBuilder

      public Metrics.HistogramOrBuilder getHistogramOrBuilder()
      optional .io.prometheus.client.Histogram histogram = 7;
      Specified by:
      getHistogramOrBuilder in interface Metrics.MetricOrBuilder
    • hasTimestampMs

      public boolean hasTimestampMs()
      optional int64 timestamp_ms = 6;
      Specified by:
      hasTimestampMs in interface Metrics.MetricOrBuilder
      Returns:
      Whether the timestampMs field is set.
    • getTimestampMs

      public long getTimestampMs()
      optional int64 timestamp_ms = 6;
      Specified by:
      getTimestampMs in interface Metrics.MetricOrBuilder
      Returns:
      The timestampMs.
    • isInitialized

      public final boolean isInitialized()
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
    • equals

      public boolean equals(Object obj)
    • hashCode

      public int hashCode()
    • parseFrom

      public static Metrics.Metric parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Metrics.Metric parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Metrics.Metric parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Metrics.Metric parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Metrics.Metric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Metrics.Metric parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Metrics.Metric parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Metrics.Metric parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Metrics.Metric parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Metrics.Metric parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Metrics.Metric parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Metrics.Metric parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Metrics.Metric.Builder newBuilderForType()
    • newBuilder

      public static Metrics.Metric.Builder newBuilder()
    • newBuilder

      public static Metrics.Metric.Builder newBuilder(Metrics.Metric prototype)
    • toBuilder

      public Metrics.Metric.Builder toBuilder()
    • newBuilderForType

      protected Metrics.Metric.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • getDefaultInstance

      public static Metrics.Metric getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Metrics.Metric> parser()
    • getParserForType

      public com.google.protobuf.Parser<Metrics.Metric> getParserForType()
    • getDefaultInstanceForType

      public Metrics.Metric getDefaultInstanceForType()
    • findInitializationErrors

      List<String> findInitializationErrors()
    • getInitializationErrorString

      String getInitializationErrorString()
    • getAllFields

      Map<com.google.protobuf.Descriptors.FieldDescriptor, Object> getAllFields()
    • hasOneof

      boolean hasOneof(com.google.protobuf.Descriptors.OneofDescriptor arg0)
    • getOneofFieldDescriptor

      com.google.protobuf.Descriptors.FieldDescriptor getOneofFieldDescriptor(com.google.protobuf.Descriptors.OneofDescriptor arg0)
    • hasField

      boolean hasField(com.google.protobuf.Descriptors.FieldDescriptor arg0)
    • getField

      Object getField(com.google.protobuf.Descriptors.FieldDescriptor arg0)
    • getRepeatedFieldCount

      int getRepeatedFieldCount(com.google.protobuf.Descriptors.FieldDescriptor arg0)
    • getRepeatedField

      Object getRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor arg0, int arg1)
    • getUnknownFields

      com.google.protobuf.UnknownFieldSet getUnknownFields()
    • getAllFields

      public Map<com.google.protobuf.Descriptors.FieldDescriptor, Object> getAllFields()
    • hasOneof

      public boolean hasOneof(com.google.protobuf.Descriptors.OneofDescriptor arg0)
    • getOneofFieldDescriptor

      public com.google.protobuf.Descriptors.FieldDescriptor getOneofFieldDescriptor(com.google.protobuf.Descriptors.OneofDescriptor arg0)
    • hasField

      public boolean hasField(com.google.protobuf.Descriptors.FieldDescriptor arg0)
    • getField

      public Object getField(com.google.protobuf.Descriptors.FieldDescriptor arg0)
    • getRepeatedFieldCount

      public int getRepeatedFieldCount(com.google.protobuf.Descriptors.FieldDescriptor arg0)
    • getRepeatedField

      public Object getRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor arg0, int arg1)
    • getUnknownFields

      public com.google.protobuf.UnknownFieldSet getUnknownFields()
    • parseUnknownField

      protected boolean parseUnknownField(com.google.protobuf.CodedInputStream arg0, com.google.protobuf.UnknownFieldSet.Builder arg1, com.google.protobuf.ExtensionRegistryLite arg2, int arg3) throws IOException
      Throws:
      IOException
    • parseUnknownFieldProto3

      protected boolean parseUnknownFieldProto3(com.google.protobuf.CodedInputStream arg0, com.google.protobuf.UnknownFieldSet.Builder arg1, com.google.protobuf.ExtensionRegistryLite arg2, int arg3) throws IOException
      Throws:
      IOException
    • parseWithIOException

      protected static <M extends com.google.protobuf.Message> M parseWithIOException(com.google.protobuf.Parser<M> arg0, InputStream arg1) throws IOException
      Throws:
      IOException
    • parseWithIOException

      protected static <M extends com.google.protobuf.Message> M parseWithIOException(com.google.protobuf.Parser<M> arg0, InputStream arg1, com.google.protobuf.ExtensionRegistryLite arg2) throws IOException
      Throws:
      IOException
    • parseWithIOException

      protected static <M extends com.google.protobuf.Message> M parseWithIOException(com.google.protobuf.Parser<M> arg0, com.google.protobuf.CodedInputStream arg1) throws IOException
      Throws:
      IOException
    • parseWithIOException

      protected static <M extends com.google.protobuf.Message> M parseWithIOException(com.google.protobuf.Parser<M> arg0, com.google.protobuf.CodedInputStream arg1, com.google.protobuf.ExtensionRegistryLite arg2) throws IOException
      Throws:
      IOException
    • parseDelimitedWithIOException

      protected static <M extends com.google.protobuf.Message> M parseDelimitedWithIOException(com.google.protobuf.Parser<M> arg0, InputStream arg1) throws IOException
      Throws:
      IOException
    • parseDelimitedWithIOException

      protected static <M extends com.google.protobuf.Message> M parseDelimitedWithIOException(com.google.protobuf.Parser<M> arg0, InputStream arg1, com.google.protobuf.ExtensionRegistryLite arg2) throws IOException
      Throws:
      IOException
    • emptyIntList

      protected static com.google.protobuf.Internal.IntList emptyIntList()
    • makeExtensionsImmutable

      protected void makeExtensionsImmutable()
    • emptyLongList

      protected static com.google.protobuf.Internal.LongList emptyLongList()
    • emptyFloatList

      protected static com.google.protobuf.Internal.FloatList emptyFloatList()
    • emptyDoubleList

      protected static com.google.protobuf.Internal.DoubleList emptyDoubleList()
    • emptyBooleanList

      protected static com.google.protobuf.Internal.BooleanList emptyBooleanList()
    • makeMutableCopy

      protected static <ListT extends com.google.protobuf.Internal.ProtobufList<?>> ListT makeMutableCopy(ListT arg0)
    • makeMutableCopy

      protected static <ListT extends com.google.protobuf.Internal.ProtobufList<?>> ListT makeMutableCopy(ListT arg0, int arg1)
    • emptyList

      protected static <T> com.google.protobuf.Internal.ProtobufList<T> emptyList(Class<T> arg0)
    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter arg0)
    • newMessageScopedGeneratedExtension

      public static <ContainingT extends com.google.protobuf.Message, T> com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T> newMessageScopedGeneratedExtension(com.google.protobuf.Message arg0, int arg1, Class<?> arg2, com.google.protobuf.Message arg3)
    • newFileScopedGeneratedExtension

      public static <ContainingT extends com.google.protobuf.Message, T> com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T> newFileScopedGeneratedExtension(Class<?> arg0, com.google.protobuf.Message arg1)
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int arg0)
    • internalGetMapField

      @Deprecated protected com.google.protobuf.MapField internalGetMapField(int arg0)
      Deprecated.
    • writeReplace

      protected Object writeReplace() throws ObjectStreamException
      Throws:
      ObjectStreamException
    • isStringEmpty

      protected static boolean isStringEmpty(Object arg0)
    • computeStringSize

      protected static int computeStringSize(int arg0, Object arg1)
    • computeStringSizeNoTag

      protected static int computeStringSizeNoTag(Object arg0)
    • writeString

      protected static void writeString(com.google.protobuf.CodedOutputStream arg0, int arg1, Object arg2) throws IOException
      Throws:
      IOException
    • writeStringNoTag

      protected static void writeStringNoTag(com.google.protobuf.CodedOutputStream arg0, Object arg1) throws IOException
      Throws:
      IOException
    • serializeIntegerMapTo

      protected static <V> void serializeIntegerMapTo(com.google.protobuf.CodedOutputStream arg0, com.google.protobuf.MapField<Integer,V> arg1, com.google.protobuf.MapEntry<Integer,V> arg2, int arg3) throws IOException
      Throws:
      IOException
    • serializeLongMapTo

      protected static <V> void serializeLongMapTo(com.google.protobuf.CodedOutputStream arg0, com.google.protobuf.MapField<Long,V> arg1, com.google.protobuf.MapEntry<Long,V> arg2, int arg3) throws IOException
      Throws:
      IOException
    • serializeStringMapTo

      protected static <V> void serializeStringMapTo(com.google.protobuf.CodedOutputStream arg0, com.google.protobuf.MapField<String,V> arg1, com.google.protobuf.MapEntry<String,V> arg2, int arg3) throws IOException
      Throws:
      IOException
    • serializeBooleanMapTo

      protected static <V> void serializeBooleanMapTo(com.google.protobuf.CodedOutputStream arg0, com.google.protobuf.MapField<Boolean,V> arg1, com.google.protobuf.MapEntry<Boolean,V> arg2, int arg3) throws IOException
      Throws:
      IOException
    • findInitializationErrors

      public List<String> findInitializationErrors()
    • getInitializationErrorString

      public String getInitializationErrorString()
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • hashFields

      protected static int hashFields(int arg0, Map<com.google.protobuf.Descriptors.FieldDescriptor, Object> arg1)
    • toByteString

      com.google.protobuf.ByteString toByteString()
    • toByteArray

      byte[] toByteArray()
    • writeTo

      void writeTo(OutputStream arg0) throws IOException
      Throws:
      IOException
    • writeDelimitedTo

      void writeDelimitedTo(OutputStream arg0) throws IOException
      Throws:
      IOException
    • toByteString

      public com.google.protobuf.ByteString toByteString()
    • toByteArray

      public byte[] toByteArray()
    • writeTo

      public void writeTo(OutputStream arg0) throws IOException
      Throws:
      IOException
    • writeDelimitedTo

      public void writeDelimitedTo(OutputStream arg0) throws IOException
      Throws:
      IOException
    • checkByteStringIsUtf8

      protected static void checkByteStringIsUtf8(com.google.protobuf.ByteString arg0) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • addAll

      protected static <T> void addAll(Iterable<T> arg0, List<? super T> arg1)