Interface Metrics.MetricOrBuilder
- All Known Implementing Classes:
Metrics.Metric, Metrics.Metric.Builder
- Enclosing class:
Metrics
public static interface Metrics.MetricOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionoptional .io.prometheus.client.Counter counter = 3;optional .io.prometheus.client.Counter counter = 3;com.google.protobuf.Messagecom.google.protobuf.Descriptors.DescriptorgetField(com.google.protobuf.Descriptors.FieldDescriptor arg0) getGauge()optional .io.prometheus.client.Gauge gauge = 2;optional .io.prometheus.client.Gauge gauge = 2;optional .io.prometheus.client.Histogram histogram = 7;optional .io.prometheus.client.Histogram histogram = 7;getLabel(int index) repeated .io.prometheus.client.LabelPair label = 1;intrepeated .io.prometheus.client.LabelPair label = 1;repeated .io.prometheus.client.LabelPair label = 1;getLabelOrBuilder(int index) repeated .io.prometheus.client.LabelPair label = 1;List<? extends Metrics.LabelPairOrBuilder> repeated .io.prometheus.client.LabelPair label = 1;com.google.protobuf.Descriptors.FieldDescriptorgetOneofFieldDescriptor(com.google.protobuf.Descriptors.OneofDescriptor arg0) getRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor arg0, int arg1) intgetRepeatedFieldCount(com.google.protobuf.Descriptors.FieldDescriptor arg0) optional .io.prometheus.client.Summary summary = 4;optional .io.prometheus.client.Summary summary = 4;longoptional int64 timestamp_ms = 6;com.google.protobuf.UnknownFieldSetoptional .io.prometheus.client.Untyped untyped = 5;optional .io.prometheus.client.Untyped untyped = 5;booleanoptional .io.prometheus.client.Counter counter = 3;booleanhasField(com.google.protobuf.Descriptors.FieldDescriptor arg0) booleanhasGauge()optional .io.prometheus.client.Gauge gauge = 2;booleanoptional .io.prometheus.client.Histogram histogram = 7;booleanhasOneof(com.google.protobuf.Descriptors.OneofDescriptor arg0) booleanoptional .io.prometheus.client.Summary summary = 4;booleanoptional int64 timestamp_ms = 6;booleanoptional .io.prometheus.client.Untyped untyped = 5;boolean
-
Method Details
-
getLabelList
List<Metrics.LabelPair> getLabelList()repeated .io.prometheus.client.LabelPair label = 1; -
getLabel
repeated .io.prometheus.client.LabelPair label = 1; -
getLabelCount
int getLabelCount()repeated .io.prometheus.client.LabelPair label = 1; -
getLabelOrBuilderList
List<? extends Metrics.LabelPairOrBuilder> getLabelOrBuilderList()repeated .io.prometheus.client.LabelPair label = 1; -
getLabelOrBuilder
repeated .io.prometheus.client.LabelPair label = 1; -
hasGauge
boolean hasGauge()optional .io.prometheus.client.Gauge gauge = 2;- Returns:
- Whether the gauge field is set.
-
getGauge
-
getGaugeOrBuilder
Metrics.GaugeOrBuilder getGaugeOrBuilder()optional .io.prometheus.client.Gauge gauge = 2; -
hasCounter
boolean hasCounter()optional .io.prometheus.client.Counter counter = 3;- Returns:
- Whether the counter field is set.
-
getCounter
Metrics.Counter getCounter()optional .io.prometheus.client.Counter counter = 3;- Returns:
- The counter.
-
getCounterOrBuilder
Metrics.CounterOrBuilder getCounterOrBuilder()optional .io.prometheus.client.Counter counter = 3; -
hasSummary
boolean hasSummary()optional .io.prometheus.client.Summary summary = 4;- Returns:
- Whether the summary field is set.
-
getSummary
Metrics.Summary getSummary()optional .io.prometheus.client.Summary summary = 4;- Returns:
- The summary.
-
getSummaryOrBuilder
Metrics.SummaryOrBuilder getSummaryOrBuilder()optional .io.prometheus.client.Summary summary = 4; -
hasUntyped
boolean hasUntyped()optional .io.prometheus.client.Untyped untyped = 5;- Returns:
- Whether the untyped field is set.
-
getUntyped
Metrics.Untyped getUntyped()optional .io.prometheus.client.Untyped untyped = 5;- Returns:
- The untyped.
-
getUntypedOrBuilder
Metrics.UntypedOrBuilder getUntypedOrBuilder()optional .io.prometheus.client.Untyped untyped = 5; -
hasHistogram
boolean hasHistogram()optional .io.prometheus.client.Histogram histogram = 7;- Returns:
- Whether the histogram field is set.
-
getHistogram
Metrics.Histogram getHistogram()optional .io.prometheus.client.Histogram histogram = 7;- Returns:
- The histogram.
-
getHistogramOrBuilder
Metrics.HistogramOrBuilder getHistogramOrBuilder()optional .io.prometheus.client.Histogram histogram = 7; -
hasTimestampMs
boolean hasTimestampMs()optional int64 timestamp_ms = 6;- Returns:
- Whether the timestampMs field is set.
-
getTimestampMs
long getTimestampMs()optional int64 timestamp_ms = 6;- Returns:
- The timestampMs.
-
getDefaultInstanceForType
com.google.protobuf.Message getDefaultInstanceForType() -
findInitializationErrors
-
getInitializationErrorString
String getInitializationErrorString() -
getDescriptorForType
com.google.protobuf.Descriptors.Descriptor getDescriptorForType() -
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
-
getRepeatedFieldCount
int getRepeatedFieldCount(com.google.protobuf.Descriptors.FieldDescriptor arg0) -
getRepeatedField
-
getUnknownFields
com.google.protobuf.UnknownFieldSet getUnknownFields() -
isInitialized
boolean isInitialized()
-