Class Metrics.MetricFamily
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_29_1.Metrics.MetricFamily
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Metrics.MetricFamilyOrBuilder,Serializable
- Enclosing class:
- Metrics
public static final class Metrics.MetricFamily
extends com.google.protobuf.GeneratedMessage
implements Metrics.MetricFamilyOrBuilder
Protobuf type
io.prometheus.client.MetricFamily- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeio.prometheus.client.MetricFamilyNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Metrics.MetricFamilystatic final com.google.protobuf.Descriptors.DescriptorgetHelp()optional string help = 2;com.google.protobuf.ByteStringoptional string help = 2;getMetric(int index) repeated .io.prometheus.client.Metric metric = 4;intrepeated .io.prometheus.client.Metric metric = 4;repeated .io.prometheus.client.Metric metric = 4;getMetricOrBuilder(int index) repeated .io.prometheus.client.Metric metric = 4;List<? extends Metrics.MetricOrBuilder>repeated .io.prometheus.client.Metric metric = 4;getName()optional string name = 1;com.google.protobuf.ByteStringoptional string name = 1;com.google.protobuf.Parser<Metrics.MetricFamily>intgetType()optional .io.prometheus.client.MetricType type = 3;getUnit()optional string unit = 5;com.google.protobuf.ByteStringoptional string unit = 5;inthashCode()booleanhasHelp()optional string help = 2;booleanhasName()optional string name = 1;booleanhasType()optional .io.prometheus.client.MetricType type = 3;booleanhasUnit()optional string unit = 5;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Metrics.MetricFamily.Builderstatic Metrics.MetricFamily.BuildernewBuilder(Metrics.MetricFamily prototype) protected Metrics.MetricFamily.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Metrics.MetricFamilyparseDelimitedFrom(InputStream input) static Metrics.MetricFamilyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Metrics.MetricFamilyparseFrom(byte[] data) static Metrics.MetricFamilyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Metrics.MetricFamilyparseFrom(com.google.protobuf.ByteString data) static Metrics.MetricFamilyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Metrics.MetricFamilyparseFrom(com.google.protobuf.CodedInputStream input) static Metrics.MetricFamilyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Metrics.MetricFamilyparseFrom(InputStream input) static Metrics.MetricFamilyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Metrics.MetricFamilyparseFrom(ByteBuffer data) static Metrics.MetricFamilyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Metrics.MetricFamily>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
HELP_FIELD_NUMBER
public static final int HELP_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
METRIC_FIELD_NUMBER
public static final int METRIC_FIELD_NUMBER- See Also:
-
UNIT_FIELD_NUMBER
public static final int UNIT_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasName
public boolean hasName()optional string name = 1;- Specified by:
hasNamein interfaceMetrics.MetricFamilyOrBuilder- Returns:
- Whether the name field is set.
-
getName
optional string name = 1;- Specified by:
getNamein interfaceMetrics.MetricFamilyOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()optional string name = 1;- Specified by:
getNameBytesin interfaceMetrics.MetricFamilyOrBuilder- Returns:
- The bytes for name.
-
hasHelp
public boolean hasHelp()optional string help = 2;- Specified by:
hasHelpin interfaceMetrics.MetricFamilyOrBuilder- Returns:
- Whether the help field is set.
-
getHelp
optional string help = 2;- Specified by:
getHelpin interfaceMetrics.MetricFamilyOrBuilder- Returns:
- The help.
-
getHelpBytes
public com.google.protobuf.ByteString getHelpBytes()optional string help = 2;- Specified by:
getHelpBytesin interfaceMetrics.MetricFamilyOrBuilder- Returns:
- The bytes for help.
-
hasType
public boolean hasType()optional .io.prometheus.client.MetricType type = 3;- Specified by:
hasTypein interfaceMetrics.MetricFamilyOrBuilder- Returns:
- Whether the type field is set.
-
getType
optional .io.prometheus.client.MetricType type = 3;- Specified by:
getTypein interfaceMetrics.MetricFamilyOrBuilder- Returns:
- The type.
-
getMetricList
repeated .io.prometheus.client.Metric metric = 4;- Specified by:
getMetricListin interfaceMetrics.MetricFamilyOrBuilder
-
getMetricOrBuilderList
repeated .io.prometheus.client.Metric metric = 4;- Specified by:
getMetricOrBuilderListin interfaceMetrics.MetricFamilyOrBuilder
-
getMetricCount
public int getMetricCount()repeated .io.prometheus.client.Metric metric = 4;- Specified by:
getMetricCountin interfaceMetrics.MetricFamilyOrBuilder
-
getMetric
repeated .io.prometheus.client.Metric metric = 4;- Specified by:
getMetricin interfaceMetrics.MetricFamilyOrBuilder
-
getMetricOrBuilder
repeated .io.prometheus.client.Metric metric = 4;- Specified by:
getMetricOrBuilderin interfaceMetrics.MetricFamilyOrBuilder
-
hasUnit
public boolean hasUnit()optional string unit = 5;- Specified by:
hasUnitin interfaceMetrics.MetricFamilyOrBuilder- Returns:
- Whether the unit field is set.
-
getUnit
optional string unit = 5;- Specified by:
getUnitin interfaceMetrics.MetricFamilyOrBuilder- Returns:
- The unit.
-
getUnitBytes
public com.google.protobuf.ByteString getUnitBytes()optional string unit = 5;- Specified by:
getUnitBytesin interfaceMetrics.MetricFamilyOrBuilder- Returns:
- The bytes for unit.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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.MetricFamily parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metrics.MetricFamily parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metrics.MetricFamily parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metrics.MetricFamily 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.MetricFamily parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Metrics.MetricFamily parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Metrics.MetricFamily parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Metrics.MetricFamily parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Metrics.MetricFamily parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Metrics.MetricFamily parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Metrics.MetricFamily.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-