Package io.sbp.grpc

Class MessageLatenciesRecord.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MessageLatenciesRecord.Builder>
io.sbp.grpc.MessageLatenciesRecord.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MessageLatenciesRecordOrBuilder, Cloneable
Enclosing class:
MessageLatenciesRecord

public static final class MessageLatenciesRecord.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MessageLatenciesRecord.Builder> implements MessageLatenciesRecordOrBuilder
Protobuf type MessageLatenciesRecord
  • 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<MessageLatenciesRecord.Builder>
    • internalGetMutableMapFieldReflection

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MessageLatenciesRecord.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<MessageLatenciesRecord.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<MessageLatenciesRecord.Builder>
    • getDefaultInstanceForType

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

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

      public MessageLatenciesRecord buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<MessageLatenciesRecord.Builder>
    • setField

      public MessageLatenciesRecord.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<MessageLatenciesRecord.Builder>
    • clearField

      public MessageLatenciesRecord.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<MessageLatenciesRecord.Builder>
    • clearOneof

      public MessageLatenciesRecord.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<MessageLatenciesRecord.Builder>
    • setRepeatedField

      public MessageLatenciesRecord.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<MessageLatenciesRecord.Builder>
    • addRepeatedField

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

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

    • isInitialized

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

      public MessageLatenciesRecord.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<MessageLatenciesRecord.Builder>
      Throws:
      IOException
    • getClientID

      public long getClientID()
      int64 clientID = 1;
      Specified by:
      getClientID in interface MessageLatenciesRecordOrBuilder
      Returns:
      The clientID.
    • setClientID

      public MessageLatenciesRecord.Builder setClientID(long value)
      int64 clientID = 1;
      Parameters:
      value - The clientID to set.
      Returns:
      This builder for chaining.
    • clearClientID

      public MessageLatenciesRecord.Builder clearClientID()
      int64 clientID = 1;
      Returns:
      This builder for chaining.
    • getSequenceNumber

      public long getSequenceNumber()
      int64 sequenceNumber = 2;
      Specified by:
      getSequenceNumber in interface MessageLatenciesRecordOrBuilder
      Returns:
      The sequenceNumber.
    • setSequenceNumber

      public MessageLatenciesRecord.Builder setSequenceNumber(long value)
      int64 sequenceNumber = 2;
      Parameters:
      value - The sequenceNumber to set.
      Returns:
      This builder for chaining.
    • clearSequenceNumber

      public MessageLatenciesRecord.Builder clearSequenceNumber()
      int64 sequenceNumber = 2;
      Returns:
      This builder for chaining.
    • getWriters

      public int getWriters()
      int32 writers = 3;
      Specified by:
      getWriters in interface MessageLatenciesRecordOrBuilder
      Returns:
      The writers.
    • setWriters

      public MessageLatenciesRecord.Builder setWriters(int value)
      int32 writers = 3;
      Parameters:
      value - The writers to set.
      Returns:
      This builder for chaining.
    • clearWriters

      public MessageLatenciesRecord.Builder clearWriters()
      int32 writers = 3;
      Returns:
      This builder for chaining.
    • getReaders

      public int getReaders()
      int32 readers = 4;
      Specified by:
      getReaders in interface MessageLatenciesRecordOrBuilder
      Returns:
      The readers.
    • setReaders

      public MessageLatenciesRecord.Builder setReaders(int value)
      int32 readers = 4;
      Parameters:
      value - The readers to set.
      Returns:
      This builder for chaining.
    • clearReaders

      public MessageLatenciesRecord.Builder clearReaders()
      int32 readers = 4;
      Returns:
      This builder for chaining.
    • getMaxWriters

      public int getMaxWriters()
      int32 maxWriters = 5;
      Specified by:
      getMaxWriters in interface MessageLatenciesRecordOrBuilder
      Returns:
      The maxWriters.
    • setMaxWriters

      public MessageLatenciesRecord.Builder setMaxWriters(int value)
      int32 maxWriters = 5;
      Parameters:
      value - The maxWriters to set.
      Returns:
      This builder for chaining.
    • clearMaxWriters

      public MessageLatenciesRecord.Builder clearMaxWriters()
      int32 maxWriters = 5;
      Returns:
      This builder for chaining.
    • getMaxReaders

      public int getMaxReaders()
      int32 maxReaders = 6;
      Specified by:
      getMaxReaders in interface MessageLatenciesRecordOrBuilder
      Returns:
      The maxReaders.
    • setMaxReaders

      public MessageLatenciesRecord.Builder setMaxReaders(int value)
      int32 maxReaders = 6;
      Parameters:
      value - The maxReaders to set.
      Returns:
      This builder for chaining.
    • clearMaxReaders

      public MessageLatenciesRecord.Builder clearMaxReaders()
      int32 maxReaders = 6;
      Returns:
      This builder for chaining.
    • getWriteRequestBytes

      public long getWriteRequestBytes()
      int64 writeRequestBytes = 7;
      Specified by:
      getWriteRequestBytes in interface MessageLatenciesRecordOrBuilder
      Returns:
      The writeRequestBytes.
    • setWriteRequestBytes

      public MessageLatenciesRecord.Builder setWriteRequestBytes(long value)
      int64 writeRequestBytes = 7;
      Parameters:
      value - The writeRequestBytes to set.
      Returns:
      This builder for chaining.
    • clearWriteRequestBytes

      public MessageLatenciesRecord.Builder clearWriteRequestBytes()
      int64 writeRequestBytes = 7;
      Returns:
      This builder for chaining.
    • getWriteRequestRecords

      public long getWriteRequestRecords()
      int64 writeRequestRecords = 8;
      Specified by:
      getWriteRequestRecords in interface MessageLatenciesRecordOrBuilder
      Returns:
      The writeRequestRecords.
    • setWriteRequestRecords

      public MessageLatenciesRecord.Builder setWriteRequestRecords(long value)
      int64 writeRequestRecords = 8;
      Parameters:
      value - The writeRequestRecords to set.
      Returns:
      This builder for chaining.
    • clearWriteRequestRecords

      public MessageLatenciesRecord.Builder clearWriteRequestRecords()
      int64 writeRequestRecords = 8;
      Returns:
      This builder for chaining.
    • getReadRequestBytes

      public long getReadRequestBytes()
      int64 readRequestBytes = 9;
      Specified by:
      getReadRequestBytes in interface MessageLatenciesRecordOrBuilder
      Returns:
      The readRequestBytes.
    • setReadRequestBytes

      public MessageLatenciesRecord.Builder setReadRequestBytes(long value)
      int64 readRequestBytes = 9;
      Parameters:
      value - The readRequestBytes to set.
      Returns:
      This builder for chaining.
    • clearReadRequestBytes

      public MessageLatenciesRecord.Builder clearReadRequestBytes()
      int64 readRequestBytes = 9;
      Returns:
      This builder for chaining.
    • getReadRequestRecords

      public long getReadRequestRecords()
      int64 readRequestRecords = 10;
      Specified by:
      getReadRequestRecords in interface MessageLatenciesRecordOrBuilder
      Returns:
      The readRequestRecords.
    • setReadRequestRecords

      public MessageLatenciesRecord.Builder setReadRequestRecords(long value)
      int64 readRequestRecords = 10;
      Parameters:
      value - The readRequestRecords to set.
      Returns:
      This builder for chaining.
    • clearReadRequestRecords

      public MessageLatenciesRecord.Builder clearReadRequestRecords()
      int64 readRequestRecords = 10;
      Returns:
      This builder for chaining.
    • getWriteTimeoutEvents

      public long getWriteTimeoutEvents()
      int64 writeTimeoutEvents = 11;
      Specified by:
      getWriteTimeoutEvents in interface MessageLatenciesRecordOrBuilder
      Returns:
      The writeTimeoutEvents.
    • setWriteTimeoutEvents

      public MessageLatenciesRecord.Builder setWriteTimeoutEvents(long value)
      int64 writeTimeoutEvents = 11;
      Parameters:
      value - The writeTimeoutEvents to set.
      Returns:
      This builder for chaining.
    • clearWriteTimeoutEvents

      public MessageLatenciesRecord.Builder clearWriteTimeoutEvents()
      int64 writeTimeoutEvents = 11;
      Returns:
      This builder for chaining.
    • getReadTimeoutEvents

      public long getReadTimeoutEvents()
      int64 readTimeoutEvents = 12;
      Specified by:
      getReadTimeoutEvents in interface MessageLatenciesRecordOrBuilder
      Returns:
      The readTimeoutEvents.
    • setReadTimeoutEvents

      public MessageLatenciesRecord.Builder setReadTimeoutEvents(long value)
      int64 readTimeoutEvents = 12;
      Parameters:
      value - The readTimeoutEvents to set.
      Returns:
      This builder for chaining.
    • clearReadTimeoutEvents

      public MessageLatenciesRecord.Builder clearReadTimeoutEvents()
      int64 readTimeoutEvents = 12;
      Returns:
      This builder for chaining.
    • getTotalRecords

      public long getTotalRecords()
      int64 totalRecords = 13;
      Specified by:
      getTotalRecords in interface MessageLatenciesRecordOrBuilder
      Returns:
      The totalRecords.
    • setTotalRecords

      public MessageLatenciesRecord.Builder setTotalRecords(long value)
      int64 totalRecords = 13;
      Parameters:
      value - The totalRecords to set.
      Returns:
      This builder for chaining.
    • clearTotalRecords

      public MessageLatenciesRecord.Builder clearTotalRecords()
      int64 totalRecords = 13;
      Returns:
      This builder for chaining.
    • getValidLatencyRecords

      public long getValidLatencyRecords()
      int64 validLatencyRecords = 14;
      Specified by:
      getValidLatencyRecords in interface MessageLatenciesRecordOrBuilder
      Returns:
      The validLatencyRecords.
    • setValidLatencyRecords

      public MessageLatenciesRecord.Builder setValidLatencyRecords(long value)
      int64 validLatencyRecords = 14;
      Parameters:
      value - The validLatencyRecords to set.
      Returns:
      This builder for chaining.
    • clearValidLatencyRecords

      public MessageLatenciesRecord.Builder clearValidLatencyRecords()
      int64 validLatencyRecords = 14;
      Returns:
      This builder for chaining.
    • getLowerLatencyDiscardRecords

      public long getLowerLatencyDiscardRecords()
      int64 lowerLatencyDiscardRecords = 15;
      Specified by:
      getLowerLatencyDiscardRecords in interface MessageLatenciesRecordOrBuilder
      Returns:
      The lowerLatencyDiscardRecords.
    • setLowerLatencyDiscardRecords

      public MessageLatenciesRecord.Builder setLowerLatencyDiscardRecords(long value)
      int64 lowerLatencyDiscardRecords = 15;
      Parameters:
      value - The lowerLatencyDiscardRecords to set.
      Returns:
      This builder for chaining.
    • clearLowerLatencyDiscardRecords

      public MessageLatenciesRecord.Builder clearLowerLatencyDiscardRecords()
      int64 lowerLatencyDiscardRecords = 15;
      Returns:
      This builder for chaining.
    • getHigherLatencyDiscardRecords

      public long getHigherLatencyDiscardRecords()
      int64 higherLatencyDiscardRecords = 16;
      Specified by:
      getHigherLatencyDiscardRecords in interface MessageLatenciesRecordOrBuilder
      Returns:
      The higherLatencyDiscardRecords.
    • setHigherLatencyDiscardRecords

      public MessageLatenciesRecord.Builder setHigherLatencyDiscardRecords(long value)
      int64 higherLatencyDiscardRecords = 16;
      Parameters:
      value - The higherLatencyDiscardRecords to set.
      Returns:
      This builder for chaining.
    • clearHigherLatencyDiscardRecords

      public MessageLatenciesRecord.Builder clearHigherLatencyDiscardRecords()
      int64 higherLatencyDiscardRecords = 16;
      Returns:
      This builder for chaining.
    • getInvalidLatencyRecords

      public long getInvalidLatencyRecords()
      int64 invalidLatencyRecords = 17;
      Specified by:
      getInvalidLatencyRecords in interface MessageLatenciesRecordOrBuilder
      Returns:
      The invalidLatencyRecords.
    • setInvalidLatencyRecords

      public MessageLatenciesRecord.Builder setInvalidLatencyRecords(long value)
      int64 invalidLatencyRecords = 17;
      Parameters:
      value - The invalidLatencyRecords to set.
      Returns:
      This builder for chaining.
    • clearInvalidLatencyRecords

      public MessageLatenciesRecord.Builder clearInvalidLatencyRecords()
      int64 invalidLatencyRecords = 17;
      Returns:
      This builder for chaining.
    • getTotalBytes

      public long getTotalBytes()
      int64 totalBytes = 18;
      Specified by:
      getTotalBytes in interface MessageLatenciesRecordOrBuilder
      Returns:
      The totalBytes.
    • setTotalBytes

      public MessageLatenciesRecord.Builder setTotalBytes(long value)
      int64 totalBytes = 18;
      Parameters:
      value - The totalBytes to set.
      Returns:
      This builder for chaining.
    • clearTotalBytes

      public MessageLatenciesRecord.Builder clearTotalBytes()
      int64 totalBytes = 18;
      Returns:
      This builder for chaining.
    • getTotalLatency

      public long getTotalLatency()
      int64 totalLatency = 19;
      Specified by:
      getTotalLatency in interface MessageLatenciesRecordOrBuilder
      Returns:
      The totalLatency.
    • setTotalLatency

      public MessageLatenciesRecord.Builder setTotalLatency(long value)
      int64 totalLatency = 19;
      Parameters:
      value - The totalLatency to set.
      Returns:
      This builder for chaining.
    • clearTotalLatency

      public MessageLatenciesRecord.Builder clearTotalLatency()
      int64 totalLatency = 19;
      Returns:
      This builder for chaining.
    • getMinLatency

      public long getMinLatency()
      int64 minLatency = 20;
      Specified by:
      getMinLatency in interface MessageLatenciesRecordOrBuilder
      Returns:
      The minLatency.
    • setMinLatency

      public MessageLatenciesRecord.Builder setMinLatency(long value)
      int64 minLatency = 20;
      Parameters:
      value - The minLatency to set.
      Returns:
      This builder for chaining.
    • clearMinLatency

      public MessageLatenciesRecord.Builder clearMinLatency()
      int64 minLatency = 20;
      Returns:
      This builder for chaining.
    • getMaxLatency

      public long getMaxLatency()
      int64 maxLatency = 21;
      Specified by:
      getMaxLatency in interface MessageLatenciesRecordOrBuilder
      Returns:
      The maxLatency.
    • setMaxLatency

      public MessageLatenciesRecord.Builder setMaxLatency(long value)
      int64 maxLatency = 21;
      Parameters:
      value - The maxLatency to set.
      Returns:
      This builder for chaining.
    • clearMaxLatency

      public MessageLatenciesRecord.Builder clearMaxLatency()
      int64 maxLatency = 21;
      Returns:
      This builder for chaining.
    • getLatencyCount

      public int getLatencyCount()
      Description copied from interface: MessageLatenciesRecordOrBuilder
      map<int64, int64> latency = 22;
      Specified by:
      getLatencyCount in interface MessageLatenciesRecordOrBuilder
    • containsLatency

      public boolean containsLatency(long key)
      map<int64, int64> latency = 22;
      Specified by:
      containsLatency in interface MessageLatenciesRecordOrBuilder
    • getLatency

      @Deprecated public Map<Long,Long> getLatency()
      Deprecated.
      Use getLatencyMap() instead.
      Specified by:
      getLatency in interface MessageLatenciesRecordOrBuilder
    • getLatencyMap

      public Map<Long,Long> getLatencyMap()
      map<int64, int64> latency = 22;
      Specified by:
      getLatencyMap in interface MessageLatenciesRecordOrBuilder
    • getLatencyOrDefault

      public long getLatencyOrDefault(long key, long defaultValue)
      map<int64, int64> latency = 22;
      Specified by:
      getLatencyOrDefault in interface MessageLatenciesRecordOrBuilder
    • getLatencyOrThrow

      public long getLatencyOrThrow(long key)
      map<int64, int64> latency = 22;
      Specified by:
      getLatencyOrThrow in interface MessageLatenciesRecordOrBuilder
    • clearLatency

      public MessageLatenciesRecord.Builder clearLatency()
    • removeLatency

      public MessageLatenciesRecord.Builder removeLatency(long key)
      map<int64, int64> latency = 22;
    • getMutableLatency

      @Deprecated public Map<Long,Long> getMutableLatency()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLatency

      public MessageLatenciesRecord.Builder putLatency(long key, long value)
      map<int64, int64> latency = 22;
    • putAllLatency

      public MessageLatenciesRecord.Builder putAllLatency(Map<Long,Long> values)
      map<int64, int64> latency = 22;
    • setUnknownFields

      public final MessageLatenciesRecord.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<MessageLatenciesRecord.Builder>
    • mergeUnknownFields

      public final MessageLatenciesRecord.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<MessageLatenciesRecord.Builder>