Package io.prometheus.client
Class Metrics.Metric
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.prometheus.client.Metrics.Metric
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Metrics.MetricOrBuilder,Serializable
- Enclosing class:
- Metrics
public static final class Metrics.Metric extends com.google.protobuf.GeneratedMessageV3 implements Metrics.MetricOrBuilder
Protobuf typeio.prometheus.client.Metric- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetrics.Metric.BuilderProtobuf typeio.prometheus.client.Metric-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCOUNTER_FIELD_NUMBERstatic intGAUGE_FIELD_NUMBERstatic intHISTOGRAM_FIELD_NUMBERstatic intLABEL_FIELD_NUMBERstatic com.google.protobuf.Parser<Metrics.Metric>PARSERDeprecated.static intSUMMARY_FIELD_NUMBERstatic intTIMESTAMP_MS_FIELD_NUMBERstatic intUNTYPED_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Metrics.CountergetCounter()optional .io.prometheus.client.Counter counter = 3;Metrics.CounterOrBuildergetCounterOrBuilder()optional .io.prometheus.client.Counter counter = 3;static Metrics.MetricgetDefaultInstance()Metrics.MetricgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Metrics.GaugegetGauge()optional .io.prometheus.client.Gauge gauge = 2;Metrics.GaugeOrBuildergetGaugeOrBuilder()optional .io.prometheus.client.Gauge gauge = 2;Metrics.HistogramgetHistogram()optional .io.prometheus.client.Histogram histogram = 7;Metrics.HistogramOrBuildergetHistogramOrBuilder()optional .io.prometheus.client.Histogram histogram = 7;Metrics.LabelPairgetLabel(int index)repeated .io.prometheus.client.LabelPair label = 1;intgetLabelCount()repeated .io.prometheus.client.LabelPair label = 1;List<Metrics.LabelPair>getLabelList()repeated .io.prometheus.client.LabelPair label = 1;Metrics.LabelPairOrBuildergetLabelOrBuilder(int index)repeated .io.prometheus.client.LabelPair label = 1;List<? extends Metrics.LabelPairOrBuilder>getLabelOrBuilderList()repeated .io.prometheus.client.LabelPair label = 1;com.google.protobuf.Parser<Metrics.Metric>getParserForType()intgetSerializedSize()Metrics.SummarygetSummary()optional .io.prometheus.client.Summary summary = 4;Metrics.SummaryOrBuildergetSummaryOrBuilder()optional .io.prometheus.client.Summary summary = 4;longgetTimestampMs()optional int64 timestamp_ms = 6;com.google.protobuf.UnknownFieldSetgetUnknownFields()Metrics.UntypedgetUntyped()optional .io.prometheus.client.Untyped untyped = 5;Metrics.UntypedOrBuildergetUntypedOrBuilder()optional .io.prometheus.client.Untyped untyped = 5;booleanhasCounter()optional .io.prometheus.client.Counter counter = 3;booleanhasGauge()optional .io.prometheus.client.Gauge gauge = 2;inthashCode()booleanhasHistogram()optional .io.prometheus.client.Histogram histogram = 7;booleanhasSummary()optional .io.prometheus.client.Summary summary = 4;booleanhasTimestampMs()optional int64 timestamp_ms = 6;booleanhasUntyped()optional .io.prometheus.client.Untyped untyped = 5;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Metrics.Metric.BuildernewBuilder()static Metrics.Metric.BuildernewBuilder(Metrics.Metric prototype)Metrics.Metric.BuildernewBuilderForType()protected Metrics.Metric.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Metrics.MetricparseDelimitedFrom(InputStream input)static Metrics.MetricparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Metrics.MetricparseFrom(byte[] data)static Metrics.MetricparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Metrics.MetricparseFrom(com.google.protobuf.ByteString data)static Metrics.MetricparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Metrics.MetricparseFrom(com.google.protobuf.CodedInputStream input)static Metrics.MetricparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Metrics.MetricparseFrom(InputStream input)static Metrics.MetricparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Metrics.MetricparseFrom(ByteBuffer data)static Metrics.MetricparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Metrics.Metric>parser()Metrics.Metric.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
LABEL_FIELD_NUMBER
public static final int LABEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GAUGE_FIELD_NUMBER
public static final int GAUGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COUNTER_FIELD_NUMBER
public static final int COUNTER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUMMARY_FIELD_NUMBER
public static final int SUMMARY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UNTYPED_FIELD_NUMBER
public static final int UNTYPED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HISTOGRAM_FIELD_NUMBER
public static final int HISTOGRAM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMESTAMP_MS_FIELD_NUMBER
public static final int TIMESTAMP_MS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<Metrics.Metric> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getLabelList
public List<Metrics.LabelPair> getLabelList()
repeated .io.prometheus.client.LabelPair label = 1;- Specified by:
getLabelListin interfaceMetrics.MetricOrBuilder
-
getLabelOrBuilderList
public List<? extends Metrics.LabelPairOrBuilder> getLabelOrBuilderList()
repeated .io.prometheus.client.LabelPair label = 1;- Specified by:
getLabelOrBuilderListin interfaceMetrics.MetricOrBuilder
-
getLabelCount
public int getLabelCount()
repeated .io.prometheus.client.LabelPair label = 1;- Specified by:
getLabelCountin interfaceMetrics.MetricOrBuilder
-
getLabel
public Metrics.LabelPair getLabel(int index)
repeated .io.prometheus.client.LabelPair label = 1;- Specified by:
getLabelin interfaceMetrics.MetricOrBuilder
-
getLabelOrBuilder
public Metrics.LabelPairOrBuilder getLabelOrBuilder(int index)
repeated .io.prometheus.client.LabelPair label = 1;- Specified by:
getLabelOrBuilderin interfaceMetrics.MetricOrBuilder
-
hasGauge
public boolean hasGauge()
optional .io.prometheus.client.Gauge gauge = 2;- Specified by:
hasGaugein interfaceMetrics.MetricOrBuilder- Returns:
- Whether the gauge field is set.
-
getGauge
public Metrics.Gauge getGauge()
optional .io.prometheus.client.Gauge gauge = 2;- Specified by:
getGaugein interfaceMetrics.MetricOrBuilder- Returns:
- The gauge.
-
getGaugeOrBuilder
public Metrics.GaugeOrBuilder getGaugeOrBuilder()
optional .io.prometheus.client.Gauge gauge = 2;- Specified by:
getGaugeOrBuilderin interfaceMetrics.MetricOrBuilder
-
hasCounter
public boolean hasCounter()
optional .io.prometheus.client.Counter counter = 3;- Specified by:
hasCounterin interfaceMetrics.MetricOrBuilder- Returns:
- Whether the counter field is set.
-
getCounter
public Metrics.Counter getCounter()
optional .io.prometheus.client.Counter counter = 3;- Specified by:
getCounterin interfaceMetrics.MetricOrBuilder- Returns:
- The counter.
-
getCounterOrBuilder
public Metrics.CounterOrBuilder getCounterOrBuilder()
optional .io.prometheus.client.Counter counter = 3;- Specified by:
getCounterOrBuilderin interfaceMetrics.MetricOrBuilder
-
hasSummary
public boolean hasSummary()
optional .io.prometheus.client.Summary summary = 4;- Specified by:
hasSummaryin interfaceMetrics.MetricOrBuilder- Returns:
- Whether the summary field is set.
-
getSummary
public Metrics.Summary getSummary()
optional .io.prometheus.client.Summary summary = 4;- Specified by:
getSummaryin interfaceMetrics.MetricOrBuilder- Returns:
- The summary.
-
getSummaryOrBuilder
public Metrics.SummaryOrBuilder getSummaryOrBuilder()
optional .io.prometheus.client.Summary summary = 4;- Specified by:
getSummaryOrBuilderin interfaceMetrics.MetricOrBuilder
-
hasUntyped
public boolean hasUntyped()
optional .io.prometheus.client.Untyped untyped = 5;- Specified by:
hasUntypedin interfaceMetrics.MetricOrBuilder- Returns:
- Whether the untyped field is set.
-
getUntyped
public Metrics.Untyped getUntyped()
optional .io.prometheus.client.Untyped untyped = 5;- Specified by:
getUntypedin interfaceMetrics.MetricOrBuilder- Returns:
- The untyped.
-
getUntypedOrBuilder
public Metrics.UntypedOrBuilder getUntypedOrBuilder()
optional .io.prometheus.client.Untyped untyped = 5;- Specified by:
getUntypedOrBuilderin interfaceMetrics.MetricOrBuilder
-
hasHistogram
public boolean hasHistogram()
optional .io.prometheus.client.Histogram histogram = 7;- Specified by:
hasHistogramin interfaceMetrics.MetricOrBuilder- Returns:
- Whether the histogram field is set.
-
getHistogram
public Metrics.Histogram getHistogram()
optional .io.prometheus.client.Histogram histogram = 7;- Specified by:
getHistogramin interfaceMetrics.MetricOrBuilder- Returns:
- The histogram.
-
getHistogramOrBuilder
public Metrics.HistogramOrBuilder getHistogramOrBuilder()
optional .io.prometheus.client.Histogram histogram = 7;- Specified by:
getHistogramOrBuilderin interfaceMetrics.MetricOrBuilder
-
hasTimestampMs
public boolean hasTimestampMs()
optional int64 timestamp_ms = 6;- Specified by:
hasTimestampMsin interfaceMetrics.MetricOrBuilder- Returns:
- Whether the timestampMs field is set.
-
getTimestampMs
public long getTimestampMs()
optional int64 timestamp_ms = 6;- Specified by:
getTimestampMsin interfaceMetrics.MetricOrBuilder- Returns:
- The timestampMs.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
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()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Metrics.Metric.Builder newBuilder()
-
newBuilder
public static Metrics.Metric.Builder newBuilder(Metrics.Metric prototype)
-
toBuilder
public Metrics.Metric.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Metrics.Metric.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
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()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Metrics.Metric getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-