Class Metrics.MetricFamily.Builder

java.lang.Object
io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_36_2.Metrics.MetricFamily.Builder
All Implemented Interfaces:
Metrics.MetricFamilyOrBuilder, Cloneable
Enclosing class:
Metrics.MetricFamily

public static final class Metrics.MetricFamily.Builder extends Object implements Metrics.MetricFamilyOrBuilder
Protobuf type io.prometheus.client.MetricFamily
  • Method Details

    • getDescriptor

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

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

    • getDescriptorForType

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

      public Metrics.MetricFamily getDefaultInstanceForType()
    • build

      public Metrics.MetricFamily build()
    • buildPartial

      public Metrics.MetricFamily buildPartial()
    • mergeFrom

      public Metrics.MetricFamily.Builder mergeFrom(com.google.protobuf.Message other)
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
    • mergeFrom

      public Metrics.MetricFamily.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • hasName

      public boolean hasName()
      optional string name = 1;
      Specified by:
      hasName in interface Metrics.MetricFamilyOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
      optional string name = 1;
      Specified by:
      getName in interface Metrics.MetricFamilyOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      optional string name = 1;
      Specified by:
      getNameBytes in interface Metrics.MetricFamilyOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Metrics.MetricFamily.Builder setName(String value)
      optional string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Metrics.MetricFamily.Builder clearName()
      optional string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Metrics.MetricFamily.Builder setNameBytes(com.google.protobuf.ByteString value)
      optional string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasHelp

      public boolean hasHelp()
      optional string help = 2;
      Specified by:
      hasHelp in interface Metrics.MetricFamilyOrBuilder
      Returns:
      Whether the help field is set.
    • getHelp

      public String getHelp()
      optional string help = 2;
      Specified by:
      getHelp in interface Metrics.MetricFamilyOrBuilder
      Returns:
      The help.
    • getHelpBytes

      public com.google.protobuf.ByteString getHelpBytes()
      optional string help = 2;
      Specified by:
      getHelpBytes in interface Metrics.MetricFamilyOrBuilder
      Returns:
      The bytes for help.
    • setHelp

      public Metrics.MetricFamily.Builder setHelp(String value)
      optional string help = 2;
      Parameters:
      value - The help to set.
      Returns:
      This builder for chaining.
    • clearHelp

      public Metrics.MetricFamily.Builder clearHelp()
      optional string help = 2;
      Returns:
      This builder for chaining.
    • setHelpBytes

      public Metrics.MetricFamily.Builder setHelpBytes(com.google.protobuf.ByteString value)
      optional string help = 2;
      Parameters:
      value - The bytes for help to set.
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
      optional .io.prometheus.client.MetricType type = 3;
      Specified by:
      hasType in interface Metrics.MetricFamilyOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public Metrics.MetricType getType()
      optional .io.prometheus.client.MetricType type = 3;
      Specified by:
      getType in interface Metrics.MetricFamilyOrBuilder
      Returns:
      The type.
    • setType

      optional .io.prometheus.client.MetricType type = 3;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Metrics.MetricFamily.Builder clearType()
      optional .io.prometheus.client.MetricType type = 3;
      Returns:
      This builder for chaining.
    • getMetricList

      public List<Metrics.Metric> getMetricList()
      repeated .io.prometheus.client.Metric metric = 4;
      Specified by:
      getMetricList in interface Metrics.MetricFamilyOrBuilder
    • getMetricCount

      public int getMetricCount()
      repeated .io.prometheus.client.Metric metric = 4;
      Specified by:
      getMetricCount in interface Metrics.MetricFamilyOrBuilder
    • getMetric

      public Metrics.Metric getMetric(int index)
      repeated .io.prometheus.client.Metric metric = 4;
      Specified by:
      getMetric in interface Metrics.MetricFamilyOrBuilder
    • setMetric

      public Metrics.MetricFamily.Builder setMetric(int index, Metrics.Metric value)
      repeated .io.prometheus.client.Metric metric = 4;
    • setMetric

      public Metrics.MetricFamily.Builder setMetric(int index, Metrics.Metric.Builder builderForValue)
      repeated .io.prometheus.client.Metric metric = 4;
    • addMetric

      public Metrics.MetricFamily.Builder addMetric(Metrics.Metric value)
      repeated .io.prometheus.client.Metric metric = 4;
    • addMetric

      public Metrics.MetricFamily.Builder addMetric(int index, Metrics.Metric value)
      repeated .io.prometheus.client.Metric metric = 4;
    • addMetric

      public Metrics.MetricFamily.Builder addMetric(Metrics.Metric.Builder builderForValue)
      repeated .io.prometheus.client.Metric metric = 4;
    • addMetric

      public Metrics.MetricFamily.Builder addMetric(int index, Metrics.Metric.Builder builderForValue)
      repeated .io.prometheus.client.Metric metric = 4;
    • addAllMetric

      public Metrics.MetricFamily.Builder addAllMetric(Iterable<? extends Metrics.Metric> values)
      repeated .io.prometheus.client.Metric metric = 4;
    • clearMetric

      public Metrics.MetricFamily.Builder clearMetric()
      repeated .io.prometheus.client.Metric metric = 4;
    • removeMetric

      public Metrics.MetricFamily.Builder removeMetric(int index)
      repeated .io.prometheus.client.Metric metric = 4;
    • getMetricBuilder

      public Metrics.Metric.Builder getMetricBuilder(int index)
      repeated .io.prometheus.client.Metric metric = 4;
    • getMetricOrBuilder

      public Metrics.MetricOrBuilder getMetricOrBuilder(int index)
      repeated .io.prometheus.client.Metric metric = 4;
      Specified by:
      getMetricOrBuilder in interface Metrics.MetricFamilyOrBuilder
    • getMetricOrBuilderList

      public List<? extends Metrics.MetricOrBuilder> getMetricOrBuilderList()
      repeated .io.prometheus.client.Metric metric = 4;
      Specified by:
      getMetricOrBuilderList in interface Metrics.MetricFamilyOrBuilder
    • addMetricBuilder

      public Metrics.Metric.Builder addMetricBuilder()
      repeated .io.prometheus.client.Metric metric = 4;
    • addMetricBuilder

      public Metrics.Metric.Builder addMetricBuilder(int index)
      repeated .io.prometheus.client.Metric metric = 4;
    • getMetricBuilderList

      public List<Metrics.Metric.Builder> getMetricBuilderList()
      repeated .io.prometheus.client.Metric metric = 4;
    • hasUnit

      public boolean hasUnit()
      optional string unit = 5;
      Specified by:
      hasUnit in interface Metrics.MetricFamilyOrBuilder
      Returns:
      Whether the unit field is set.
    • getUnit

      public String getUnit()
      optional string unit = 5;
      Specified by:
      getUnit in interface Metrics.MetricFamilyOrBuilder
      Returns:
      The unit.
    • getUnitBytes

      public com.google.protobuf.ByteString getUnitBytes()
      optional string unit = 5;
      Specified by:
      getUnitBytes in interface Metrics.MetricFamilyOrBuilder
      Returns:
      The bytes for unit.
    • setUnit

      public Metrics.MetricFamily.Builder setUnit(String value)
      optional string unit = 5;
      Parameters:
      value - The unit to set.
      Returns:
      This builder for chaining.
    • clearUnit

      public Metrics.MetricFamily.Builder clearUnit()
      optional string unit = 5;
      Returns:
      This builder for chaining.
    • setUnitBytes

      public Metrics.MetricFamily.Builder setUnitBytes(com.google.protobuf.ByteString value)
      optional string unit = 5;
      Parameters:
      value - The bytes for unit to set.
      Returns:
      This builder for chaining.
    • 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()
    • onBuilt

      protected void onBuilt()
    • markClean

      protected void markClean()
    • isClean

      protected boolean isClean()
    • clone

    • getAllFields

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

      public com.google.protobuf.Message.Builder newBuilderForField(com.google.protobuf.Descriptors.FieldDescriptor arg0)
    • getFieldBuilder

      public com.google.protobuf.Message.Builder getFieldBuilder(com.google.protobuf.Descriptors.FieldDescriptor arg0)
    • getRepeatedFieldBuilder

      public com.google.protobuf.Message.Builder getRepeatedFieldBuilder(com.google.protobuf.Descriptors.FieldDescriptor arg0, int arg1)
    • 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)
    • setField

      public Metrics.MetricFamily.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor arg0, Object arg1)
    • clearField

      public Metrics.MetricFamily.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor arg0)
    • clearOneof

      public Metrics.MetricFamily.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor arg0)
    • getRepeatedFieldCount

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

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

      public Metrics.MetricFamily.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor arg0, int arg1, Object arg2)
    • addRepeatedField

      public Metrics.MetricFamily.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor arg0, Object arg1)
    • setUnknownFields

      public Metrics.MetricFamily.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet arg0)
    • setUnknownFieldsProto3

      protected Metrics.MetricFamily.Builder setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet arg0)
    • mergeUnknownFields

      public Metrics.MetricFamily.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet arg0)
    • getUnknownFields

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

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

      protected final void mergeUnknownLengthDelimitedField(int arg0, com.google.protobuf.ByteString arg1)
    • mergeUnknownVarintField

      protected final void mergeUnknownVarintField(int arg0, int arg1)
    • getUnknownFieldSetBuilder

      protected com.google.protobuf.UnknownFieldSet.Builder getUnknownFieldSetBuilder()
    • setUnknownFieldSetBuilder

      protected void setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder arg0)
    • getParentForChildren

      protected com.google.protobuf.AbstractMessage.BuilderParent getParentForChildren()
    • onChanged

      protected final void onChanged()
    • internalGetMapFieldReflection

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

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int arg0)
    • internalGetMutableMapField

      @Deprecated protected com.google.protobuf.MapField internalGetMutableMapField(int arg0)
      Deprecated.
    • findInitializationErrors

      public List<String> findInitializationErrors()
    • getInitializationErrorString

      public String getInitializationErrorString()
    • internalMergeFrom

      protected Metrics.MetricFamily.Builder internalMergeFrom(com.google.protobuf.AbstractMessageLite arg0)
    • mergeFrom

      public Metrics.MetricFamily.Builder mergeFrom(com.google.protobuf.CodedInputStream arg0) throws IOException
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • newUninitializedMessageException

      protected static com.google.protobuf.UninitializedMessageException newUninitializedMessageException(com.google.protobuf.Message arg0)
    • mergeFrom

      public Metrics.MetricFamily.Builder mergeFrom(com.google.protobuf.ByteString arg0) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • mergeFrom

      public Metrics.MetricFamily.Builder mergeFrom(com.google.protobuf.ByteString arg0, com.google.protobuf.ExtensionRegistryLite arg1) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • mergeFrom

      public Metrics.MetricFamily.Builder mergeFrom(byte[] arg0) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • mergeFrom

      public Metrics.MetricFamily.Builder mergeFrom(byte[] arg0, int arg1, int arg2) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • mergeFrom

      public Metrics.MetricFamily.Builder mergeFrom(byte[] arg0, com.google.protobuf.ExtensionRegistryLite arg1) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • mergeFrom

      public Metrics.MetricFamily.Builder mergeFrom(byte[] arg0, int arg1, int arg2, com.google.protobuf.ExtensionRegistryLite arg3) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • mergeFrom

      public Metrics.MetricFamily.Builder mergeFrom(InputStream arg0) throws IOException
      Throws:
      IOException
    • mergeFrom

      public Metrics.MetricFamily.Builder mergeFrom(InputStream arg0, com.google.protobuf.ExtensionRegistryLite arg1) throws IOException
      Throws:
      IOException
    • mergeDelimitedFrom

      boolean mergeDelimitedFrom(InputStream arg0) throws IOException
      Throws:
      IOException
    • mergeDelimitedFrom

      boolean mergeDelimitedFrom(InputStream arg0, com.google.protobuf.ExtensionRegistryLite arg1) throws IOException
      Throws:
      IOException
    • mergeFrom

      @CanIgnoreReturnValue com.google.protobuf.MessageLite.Builder mergeFrom(com.google.protobuf.MessageLite arg0)
    • mergeDelimitedFrom

      public boolean mergeDelimitedFrom(InputStream arg0, com.google.protobuf.ExtensionRegistryLite arg1) throws IOException
      Throws:
      IOException
    • mergeDelimitedFrom

      public boolean mergeDelimitedFrom(InputStream arg0) throws IOException
      Throws:
      IOException
    • mergeFrom

      public com.google.protobuf.AbstractMessageLite.Builder mergeFrom(com.google.protobuf.MessageLite arg0)
    • newUninitializedMessageException

      protected static com.google.protobuf.UninitializedMessageException newUninitializedMessageException(com.google.protobuf.MessageLite arg0)
    • addAll

      @Deprecated protected static <T> void addAll(Iterable<T> arg0, Collection<? super T> arg1)
      Deprecated.
    • addAll

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