Package prometheus

Class Types.ReadHints.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Types.ReadHints.Builder>
prometheus.Types.ReadHints.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Types.ReadHintsOrBuilder
Enclosing class:
Types.ReadHints

public static final class Types.ReadHints.Builder extends com.google.protobuf.GeneratedMessage.Builder<Types.ReadHints.Builder> implements Types.ReadHintsOrBuilder
Protobuf type prometheus.ReadHints
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Types.ReadHints.Builder>
    • clear

      public Types.ReadHints.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Types.ReadHints.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Types.ReadHints.Builder>
    • getDefaultInstanceForType

      public Types.ReadHints getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Types.ReadHints build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Types.ReadHints buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Types.ReadHints.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Types.ReadHints.Builder>
    • mergeFrom

      public Types.ReadHints.Builder mergeFrom(Types.ReadHints other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Types.ReadHints.Builder>
    • mergeFrom

      public Types.ReadHints.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Types.ReadHints.Builder>
      Throws:
      IOException
    • getStepMs

      public long getStepMs()
       Query step size in milliseconds.
       
      int64 step_ms = 1;
      Specified by:
      getStepMs in interface Types.ReadHintsOrBuilder
      Returns:
      The stepMs.
    • setStepMs

      public Types.ReadHints.Builder setStepMs(long value)
       Query step size in milliseconds.
       
      int64 step_ms = 1;
      Parameters:
      value - The stepMs to set.
      Returns:
      This builder for chaining.
    • clearStepMs

      public Types.ReadHints.Builder clearStepMs()
       Query step size in milliseconds.
       
      int64 step_ms = 1;
      Returns:
      This builder for chaining.
    • getFunc

      public String getFunc()
       String representation of surrounding function or aggregation.
       
      string func = 2;
      Specified by:
      getFunc in interface Types.ReadHintsOrBuilder
      Returns:
      The func.
    • getFuncBytes

      public com.google.protobuf.ByteString getFuncBytes()
       String representation of surrounding function or aggregation.
       
      string func = 2;
      Specified by:
      getFuncBytes in interface Types.ReadHintsOrBuilder
      Returns:
      The bytes for func.
    • setFunc

      public Types.ReadHints.Builder setFunc(String value)
       String representation of surrounding function or aggregation.
       
      string func = 2;
      Parameters:
      value - The func to set.
      Returns:
      This builder for chaining.
    • clearFunc

      public Types.ReadHints.Builder clearFunc()
       String representation of surrounding function or aggregation.
       
      string func = 2;
      Returns:
      This builder for chaining.
    • setFuncBytes

      public Types.ReadHints.Builder setFuncBytes(com.google.protobuf.ByteString value)
       String representation of surrounding function or aggregation.
       
      string func = 2;
      Parameters:
      value - The bytes for func to set.
      Returns:
      This builder for chaining.
    • getStartMs

      public long getStartMs()
       Start time in milliseconds.
       
      int64 start_ms = 3;
      Specified by:
      getStartMs in interface Types.ReadHintsOrBuilder
      Returns:
      The startMs.
    • setStartMs

      public Types.ReadHints.Builder setStartMs(long value)
       Start time in milliseconds.
       
      int64 start_ms = 3;
      Parameters:
      value - The startMs to set.
      Returns:
      This builder for chaining.
    • clearStartMs

      public Types.ReadHints.Builder clearStartMs()
       Start time in milliseconds.
       
      int64 start_ms = 3;
      Returns:
      This builder for chaining.
    • getEndMs

      public long getEndMs()
       End time in milliseconds.
       
      int64 end_ms = 4;
      Specified by:
      getEndMs in interface Types.ReadHintsOrBuilder
      Returns:
      The endMs.
    • setEndMs

      public Types.ReadHints.Builder setEndMs(long value)
       End time in milliseconds.
       
      int64 end_ms = 4;
      Parameters:
      value - The endMs to set.
      Returns:
      This builder for chaining.
    • clearEndMs

      public Types.ReadHints.Builder clearEndMs()
       End time in milliseconds.
       
      int64 end_ms = 4;
      Returns:
      This builder for chaining.
    • getGroupingList

      public com.google.protobuf.ProtocolStringList getGroupingList()
       List of label names used in aggregation.
       
      repeated string grouping = 5;
      Specified by:
      getGroupingList in interface Types.ReadHintsOrBuilder
      Returns:
      A list containing the grouping.
    • getGroupingCount

      public int getGroupingCount()
       List of label names used in aggregation.
       
      repeated string grouping = 5;
      Specified by:
      getGroupingCount in interface Types.ReadHintsOrBuilder
      Returns:
      The count of grouping.
    • getGrouping

      public String getGrouping(int index)
       List of label names used in aggregation.
       
      repeated string grouping = 5;
      Specified by:
      getGrouping in interface Types.ReadHintsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The grouping at the given index.
    • getGroupingBytes

      public com.google.protobuf.ByteString getGroupingBytes(int index)
       List of label names used in aggregation.
       
      repeated string grouping = 5;
      Specified by:
      getGroupingBytes in interface Types.ReadHintsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the grouping at the given index.
    • setGrouping

      public Types.ReadHints.Builder setGrouping(int index, String value)
       List of label names used in aggregation.
       
      repeated string grouping = 5;
      Parameters:
      index - The index to set the value at.
      value - The grouping to set.
      Returns:
      This builder for chaining.
    • addGrouping

      public Types.ReadHints.Builder addGrouping(String value)
       List of label names used in aggregation.
       
      repeated string grouping = 5;
      Parameters:
      value - The grouping to add.
      Returns:
      This builder for chaining.
    • addAllGrouping

      public Types.ReadHints.Builder addAllGrouping(Iterable<String> values)
       List of label names used in aggregation.
       
      repeated string grouping = 5;
      Parameters:
      values - The grouping to add.
      Returns:
      This builder for chaining.
    • clearGrouping

      public Types.ReadHints.Builder clearGrouping()
       List of label names used in aggregation.
       
      repeated string grouping = 5;
      Returns:
      This builder for chaining.
    • addGroupingBytes

      public Types.ReadHints.Builder addGroupingBytes(com.google.protobuf.ByteString value)
       List of label names used in aggregation.
       
      repeated string grouping = 5;
      Parameters:
      value - The bytes of the grouping to add.
      Returns:
      This builder for chaining.
    • getBy

      public boolean getBy()
       Indicate whether it is without or by.
       
      bool by = 6;
      Specified by:
      getBy in interface Types.ReadHintsOrBuilder
      Returns:
      The by.
    • setBy

      public Types.ReadHints.Builder setBy(boolean value)
       Indicate whether it is without or by.
       
      bool by = 6;
      Parameters:
      value - The by to set.
      Returns:
      This builder for chaining.
    • clearBy

      public Types.ReadHints.Builder clearBy()
       Indicate whether it is without or by.
       
      bool by = 6;
      Returns:
      This builder for chaining.
    • getRangeMs

      public long getRangeMs()
       Range vector selector range in milliseconds.
       
      int64 range_ms = 7;
      Specified by:
      getRangeMs in interface Types.ReadHintsOrBuilder
      Returns:
      The rangeMs.
    • setRangeMs

      public Types.ReadHints.Builder setRangeMs(long value)
       Range vector selector range in milliseconds.
       
      int64 range_ms = 7;
      Parameters:
      value - The rangeMs to set.
      Returns:
      This builder for chaining.
    • clearRangeMs

      public Types.ReadHints.Builder clearRangeMs()
       Range vector selector range in milliseconds.
       
      int64 range_ms = 7;
      Returns:
      This builder for chaining.