Class Urlfrontier.Stats.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.Stats.Builder>
crawlercommons.urlfrontier.Urlfrontier.Stats.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Urlfrontier.StatsOrBuilder, Cloneable
Enclosing class:
Urlfrontier.Stats

public static final class Urlfrontier.Stats.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.Stats.Builder> implements Urlfrontier.StatsOrBuilder
 *
 Message returned by the GetStats method
 
Protobuf type urlfrontier.Stats
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.Stats.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.Stats.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.Stats.Builder>
    • clear

      public Urlfrontier.Stats.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.GeneratedMessageV3.Builder<Urlfrontier.Stats.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.GeneratedMessageV3.Builder<Urlfrontier.Stats.Builder>
    • getDefaultInstanceForType

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

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

      public Urlfrontier.Stats buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Urlfrontier.Stats.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.Stats.Builder>
    • setField

      public Urlfrontier.Stats.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.Stats.Builder>
    • clearField

      public Urlfrontier.Stats.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.Stats.Builder>
    • clearOneof

      public Urlfrontier.Stats.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.Stats.Builder>
    • setRepeatedField

      public Urlfrontier.Stats.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.Stats.Builder>
    • addRepeatedField

      public Urlfrontier.Stats.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.Stats.Builder>
    • mergeFrom

      public Urlfrontier.Stats.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<Urlfrontier.Stats.Builder>
    • mergeFrom

      public Urlfrontier.Stats.Builder mergeFrom(Urlfrontier.Stats other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.Stats.Builder>
    • mergeFrom

      public Urlfrontier.Stats.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<Urlfrontier.Stats.Builder>
      Throws:
      IOException
    • getSize

      public long getSize()
       number of active URLs in queues
       
      uint64 size = 1;
      Specified by:
      getSize in interface Urlfrontier.StatsOrBuilder
      Returns:
      The size.
    • setSize

      public Urlfrontier.Stats.Builder setSize(long value)
       number of active URLs in queues
       
      uint64 size = 1;
      Parameters:
      value - The size to set.
      Returns:
      This builder for chaining.
    • clearSize

      public Urlfrontier.Stats.Builder clearSize()
       number of active URLs in queues
       
      uint64 size = 1;
      Returns:
      This builder for chaining.
    • getInProcess

      public int getInProcess()
       number of URLs currently in flight
       
      uint32 inProcess = 2;
      Specified by:
      getInProcess in interface Urlfrontier.StatsOrBuilder
      Returns:
      The inProcess.
    • setInProcess

      public Urlfrontier.Stats.Builder setInProcess(int value)
       number of URLs currently in flight
       
      uint32 inProcess = 2;
      Parameters:
      value - The inProcess to set.
      Returns:
      This builder for chaining.
    • clearInProcess

      public Urlfrontier.Stats.Builder clearInProcess()
       number of URLs currently in flight
       
      uint32 inProcess = 2;
      Returns:
      This builder for chaining.
    • getCountsCount

      public int getCountsCount()
      Description copied from interface: Urlfrontier.StatsOrBuilder
       custom counts
       
      map<string, uint64> counts = 3;
      Specified by:
      getCountsCount in interface Urlfrontier.StatsOrBuilder
    • containsCounts

      public boolean containsCounts(String key)
       custom counts
       
      map<string, uint64> counts = 3;
      Specified by:
      containsCounts in interface Urlfrontier.StatsOrBuilder
    • getCounts

      @Deprecated public Map<String,Long> getCounts()
      Deprecated.
      Use getCountsMap() instead.
      Specified by:
      getCounts in interface Urlfrontier.StatsOrBuilder
    • getCountsMap

      public Map<String,Long> getCountsMap()
       custom counts
       
      map<string, uint64> counts = 3;
      Specified by:
      getCountsMap in interface Urlfrontier.StatsOrBuilder
    • getCountsOrDefault

      public long getCountsOrDefault(String key, long defaultValue)
       custom counts
       
      map<string, uint64> counts = 3;
      Specified by:
      getCountsOrDefault in interface Urlfrontier.StatsOrBuilder
    • getCountsOrThrow

      public long getCountsOrThrow(String key)
       custom counts
       
      map<string, uint64> counts = 3;
      Specified by:
      getCountsOrThrow in interface Urlfrontier.StatsOrBuilder
    • clearCounts

      public Urlfrontier.Stats.Builder clearCounts()
    • removeCounts

      public Urlfrontier.Stats.Builder removeCounts(String key)
       custom counts
       
      map<string, uint64> counts = 3;
    • getMutableCounts

      @Deprecated public Map<String,Long> getMutableCounts()
      Deprecated.
      Use alternate mutation accessors instead.
    • putCounts

      public Urlfrontier.Stats.Builder putCounts(String key, long value)
       custom counts
       
      map<string, uint64> counts = 3;
    • putAllCounts

      public Urlfrontier.Stats.Builder putAllCounts(Map<String,Long> values)
       custom counts
       
      map<string, uint64> counts = 3;
    • getNumberOfQueues

      public long getNumberOfQueues()
       number of active queues in the frontier
       
      uint64 numberOfQueues = 4;
      Specified by:
      getNumberOfQueues in interface Urlfrontier.StatsOrBuilder
      Returns:
      The numberOfQueues.
    • setNumberOfQueues

      public Urlfrontier.Stats.Builder setNumberOfQueues(long value)
       number of active queues in the frontier
       
      uint64 numberOfQueues = 4;
      Parameters:
      value - The numberOfQueues to set.
      Returns:
      This builder for chaining.
    • clearNumberOfQueues

      public Urlfrontier.Stats.Builder clearNumberOfQueues()
       number of active queues in the frontier
       
      uint64 numberOfQueues = 4;
      Returns:
      This builder for chaining.
    • getCrawlID

      public String getCrawlID()
       crawl ID
       
      string crawlID = 5;
      Specified by:
      getCrawlID in interface Urlfrontier.StatsOrBuilder
      Returns:
      The crawlID.
    • getCrawlIDBytes

      public com.google.protobuf.ByteString getCrawlIDBytes()
       crawl ID
       
      string crawlID = 5;
      Specified by:
      getCrawlIDBytes in interface Urlfrontier.StatsOrBuilder
      Returns:
      The bytes for crawlID.
    • setCrawlID

      public Urlfrontier.Stats.Builder setCrawlID(String value)
       crawl ID
       
      string crawlID = 5;
      Parameters:
      value - The crawlID to set.
      Returns:
      This builder for chaining.
    • clearCrawlID

      public Urlfrontier.Stats.Builder clearCrawlID()
       crawl ID
       
      string crawlID = 5;
      Returns:
      This builder for chaining.
    • setCrawlIDBytes

      public Urlfrontier.Stats.Builder setCrawlIDBytes(com.google.protobuf.ByteString value)
       crawl ID
       
      string crawlID = 5;
      Parameters:
      value - The bytes for crawlID to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Urlfrontier.Stats.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.Stats.Builder>
    • mergeUnknownFields

      public final Urlfrontier.Stats.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Urlfrontier.Stats.Builder>