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 class
Metrics.Metric.Builder
Protobuf 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 int
COUNTER_FIELD_NUMBER
static int
GAUGE_FIELD_NUMBER
static int
HISTOGRAM_FIELD_NUMBER
static int
LABEL_FIELD_NUMBER
static com.google.protobuf.Parser<Metrics.Metric>
PARSER
Deprecated.static int
SUMMARY_FIELD_NUMBER
static int
TIMESTAMP_MS_FIELD_NUMBER
static int
UNTYPED_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Metrics.Counter
getCounter()
optional .io.prometheus.client.Counter counter = 3;
Metrics.CounterOrBuilder
getCounterOrBuilder()
optional .io.prometheus.client.Counter counter = 3;
static Metrics.Metric
getDefaultInstance()
Metrics.Metric
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Metrics.Gauge
getGauge()
optional .io.prometheus.client.Gauge gauge = 2;
Metrics.GaugeOrBuilder
getGaugeOrBuilder()
optional .io.prometheus.client.Gauge gauge = 2;
Metrics.Histogram
getHistogram()
optional .io.prometheus.client.Histogram histogram = 7;
Metrics.HistogramOrBuilder
getHistogramOrBuilder()
optional .io.prometheus.client.Histogram histogram = 7;
Metrics.LabelPair
getLabel(int index)
repeated .io.prometheus.client.LabelPair label = 1;
int
getLabelCount()
repeated .io.prometheus.client.LabelPair label = 1;
List<Metrics.LabelPair>
getLabelList()
repeated .io.prometheus.client.LabelPair label = 1;
Metrics.LabelPairOrBuilder
getLabelOrBuilder(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()
int
getSerializedSize()
Metrics.Summary
getSummary()
optional .io.prometheus.client.Summary summary = 4;
Metrics.SummaryOrBuilder
getSummaryOrBuilder()
optional .io.prometheus.client.Summary summary = 4;
long
getTimestampMs()
optional int64 timestamp_ms = 6;
com.google.protobuf.UnknownFieldSet
getUnknownFields()
Metrics.Untyped
getUntyped()
optional .io.prometheus.client.Untyped untyped = 5;
Metrics.UntypedOrBuilder
getUntypedOrBuilder()
optional .io.prometheus.client.Untyped untyped = 5;
boolean
hasCounter()
optional .io.prometheus.client.Counter counter = 3;
boolean
hasGauge()
optional .io.prometheus.client.Gauge gauge = 2;
int
hashCode()
boolean
hasHistogram()
optional .io.prometheus.client.Histogram histogram = 7;
boolean
hasSummary()
optional .io.prometheus.client.Summary summary = 4;
boolean
hasTimestampMs()
optional int64 timestamp_ms = 6;
boolean
hasUntyped()
optional .io.prometheus.client.Untyped untyped = 5;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Metrics.Metric.Builder
newBuilder()
static Metrics.Metric.Builder
newBuilder(Metrics.Metric prototype)
Metrics.Metric.Builder
newBuilderForType()
protected Metrics.Metric.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Metrics.Metric
parseDelimitedFrom(InputStream input)
static Metrics.Metric
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Metrics.Metric
parseFrom(byte[] data)
static Metrics.Metric
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Metrics.Metric
parseFrom(com.google.protobuf.ByteString data)
static Metrics.Metric
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Metrics.Metric
parseFrom(com.google.protobuf.CodedInputStream input)
static Metrics.Metric
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Metrics.Metric
parseFrom(InputStream input)
static Metrics.Metric
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Metrics.Metric
parseFrom(ByteBuffer data)
static Metrics.Metric
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Metrics.Metric>
parser()
Metrics.Metric.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getUnknownFields
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getLabelList
public List<Metrics.LabelPair> getLabelList()
repeated .io.prometheus.client.LabelPair label = 1;
- Specified by:
getLabelList
in interfaceMetrics.MetricOrBuilder
-
getLabelOrBuilderList
public List<? extends Metrics.LabelPairOrBuilder> getLabelOrBuilderList()
repeated .io.prometheus.client.LabelPair label = 1;
- Specified by:
getLabelOrBuilderList
in interfaceMetrics.MetricOrBuilder
-
getLabelCount
public int getLabelCount()
repeated .io.prometheus.client.LabelPair label = 1;
- Specified by:
getLabelCount
in interfaceMetrics.MetricOrBuilder
-
getLabel
public Metrics.LabelPair getLabel(int index)
repeated .io.prometheus.client.LabelPair label = 1;
- Specified by:
getLabel
in interfaceMetrics.MetricOrBuilder
-
getLabelOrBuilder
public Metrics.LabelPairOrBuilder getLabelOrBuilder(int index)
repeated .io.prometheus.client.LabelPair label = 1;
- Specified by:
getLabelOrBuilder
in interfaceMetrics.MetricOrBuilder
-
hasGauge
public boolean hasGauge()
optional .io.prometheus.client.Gauge gauge = 2;
- Specified by:
hasGauge
in interfaceMetrics.MetricOrBuilder
- Returns:
- Whether the gauge field is set.
-
getGauge
public Metrics.Gauge getGauge()
optional .io.prometheus.client.Gauge gauge = 2;
- Specified by:
getGauge
in interfaceMetrics.MetricOrBuilder
- Returns:
- The gauge.
-
getGaugeOrBuilder
public Metrics.GaugeOrBuilder getGaugeOrBuilder()
optional .io.prometheus.client.Gauge gauge = 2;
- Specified by:
getGaugeOrBuilder
in interfaceMetrics.MetricOrBuilder
-
hasCounter
public boolean hasCounter()
optional .io.prometheus.client.Counter counter = 3;
- Specified by:
hasCounter
in interfaceMetrics.MetricOrBuilder
- Returns:
- Whether the counter field is set.
-
getCounter
public Metrics.Counter getCounter()
optional .io.prometheus.client.Counter counter = 3;
- Specified by:
getCounter
in interfaceMetrics.MetricOrBuilder
- Returns:
- The counter.
-
getCounterOrBuilder
public Metrics.CounterOrBuilder getCounterOrBuilder()
optional .io.prometheus.client.Counter counter = 3;
- Specified by:
getCounterOrBuilder
in interfaceMetrics.MetricOrBuilder
-
hasSummary
public boolean hasSummary()
optional .io.prometheus.client.Summary summary = 4;
- Specified by:
hasSummary
in interfaceMetrics.MetricOrBuilder
- Returns:
- Whether the summary field is set.
-
getSummary
public Metrics.Summary getSummary()
optional .io.prometheus.client.Summary summary = 4;
- Specified by:
getSummary
in interfaceMetrics.MetricOrBuilder
- Returns:
- The summary.
-
getSummaryOrBuilder
public Metrics.SummaryOrBuilder getSummaryOrBuilder()
optional .io.prometheus.client.Summary summary = 4;
- Specified by:
getSummaryOrBuilder
in interfaceMetrics.MetricOrBuilder
-
hasUntyped
public boolean hasUntyped()
optional .io.prometheus.client.Untyped untyped = 5;
- Specified by:
hasUntyped
in interfaceMetrics.MetricOrBuilder
- Returns:
- Whether the untyped field is set.
-
getUntyped
public Metrics.Untyped getUntyped()
optional .io.prometheus.client.Untyped untyped = 5;
- Specified by:
getUntyped
in interfaceMetrics.MetricOrBuilder
- Returns:
- The untyped.
-
getUntypedOrBuilder
public Metrics.UntypedOrBuilder getUntypedOrBuilder()
optional .io.prometheus.client.Untyped untyped = 5;
- Specified by:
getUntypedOrBuilder
in interfaceMetrics.MetricOrBuilder
-
hasHistogram
public boolean hasHistogram()
optional .io.prometheus.client.Histogram histogram = 7;
- Specified by:
hasHistogram
in interfaceMetrics.MetricOrBuilder
- Returns:
- Whether the histogram field is set.
-
getHistogram
public Metrics.Histogram getHistogram()
optional .io.prometheus.client.Histogram histogram = 7;
- Specified by:
getHistogram
in interfaceMetrics.MetricOrBuilder
- Returns:
- The histogram.
-
getHistogramOrBuilder
public Metrics.HistogramOrBuilder getHistogramOrBuilder()
optional .io.prometheus.client.Histogram histogram = 7;
- Specified by:
getHistogramOrBuilder
in interfaceMetrics.MetricOrBuilder
-
hasTimestampMs
public boolean hasTimestampMs()
optional int64 timestamp_ms = 6;
- Specified by:
hasTimestampMs
in interfaceMetrics.MetricOrBuilder
- Returns:
- Whether the timestampMs field is set.
-
getTimestampMs
public long getTimestampMs()
optional int64 timestamp_ms = 6;
- Specified by:
getTimestampMs
in interfaceMetrics.MetricOrBuilder
- Returns:
- The timestampMs.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Metrics.Metric.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Metrics.Metric getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-