Class MonitorDProto.ProcessInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.ProcessInfo.Builder>
de.serosystems.proto.v3.grx.monitord.MonitorDProto.ProcessInfo.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MonitorDProto.ProcessInfoOrBuilder, Cloneable
Enclosing class:
MonitorDProto.ProcessInfo

public static final class MonitorDProto.ProcessInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.ProcessInfo.Builder> implements MonitorDProto.ProcessInfoOrBuilder
 Process info. 
 
Protobuf type serosystems.proto.v3.grx.monitord.ProcessInfo
  • Method Details

    • getDescriptor

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

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

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

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

      public MonitorDProto.ProcessInfo 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<MonitorDProto.ProcessInfo.Builder>
    • setField

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

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

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

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

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

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

      public MonitorDProto.ProcessInfo.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<MonitorDProto.ProcessInfo.Builder>
      Throws:
      IOException
    • getPid

      public long getPid()
       Process ID. 
       
      uint64 pid = 1;
      Specified by:
      getPid in interface MonitorDProto.ProcessInfoOrBuilder
      Returns:
      The pid.
    • setPid

      public MonitorDProto.ProcessInfo.Builder setPid(long value)
       Process ID. 
       
      uint64 pid = 1;
      Parameters:
      value - The pid to set.
      Returns:
      This builder for chaining.
    • clearPid

       Process ID. 
       
      uint64 pid = 1;
      Returns:
      This builder for chaining.
    • getUser

      public String getUser()
       User name. 
       
      string user = 2;
      Specified by:
      getUser in interface MonitorDProto.ProcessInfoOrBuilder
      Returns:
      The user.
    • getUserBytes

      public com.google.protobuf.ByteString getUserBytes()
       User name. 
       
      string user = 2;
      Specified by:
      getUserBytes in interface MonitorDProto.ProcessInfoOrBuilder
      Returns:
      The bytes for user.
    • setUser

      public MonitorDProto.ProcessInfo.Builder setUser(String value)
       User name. 
       
      string user = 2;
      Parameters:
      value - The user to set.
      Returns:
      This builder for chaining.
    • clearUser

       User name. 
       
      string user = 2;
      Returns:
      This builder for chaining.
    • setUserBytes

      public MonitorDProto.ProcessInfo.Builder setUserBytes(com.google.protobuf.ByteString value)
       User name. 
       
      string user = 2;
      Parameters:
      value - The bytes for user to set.
      Returns:
      This builder for chaining.
    • getPriority

      public int getPriority()
       Kernel scheduling priority. 
       
      int32 priority = 3;
      Specified by:
      getPriority in interface MonitorDProto.ProcessInfoOrBuilder
      Returns:
      The priority.
    • setPriority

      public MonitorDProto.ProcessInfo.Builder setPriority(int value)
       Kernel scheduling priority. 
       
      int32 priority = 3;
      Parameters:
      value - The priority to set.
      Returns:
      This builder for chaining.
    • clearPriority

      public MonitorDProto.ProcessInfo.Builder clearPriority()
       Kernel scheduling priority. 
       
      int32 priority = 3;
      Returns:
      This builder for chaining.
    • getNice

      public int getNice()
       Standard unix nice level of process. 
       
      int32 nice = 4;
      Specified by:
      getNice in interface MonitorDProto.ProcessInfoOrBuilder
      Returns:
      The nice.
    • setNice

      public MonitorDProto.ProcessInfo.Builder setNice(int value)
       Standard unix nice level of process. 
       
      int32 nice = 4;
      Parameters:
      value - The nice to set.
      Returns:
      This builder for chaining.
    • clearNice

       Standard unix nice level of process. 
       
      int32 nice = 4;
      Returns:
      This builder for chaining.
    • getState

      public int getState()
       The state, as defined by the GLIBTOP_PROCESS_* macros. 
       
      int32 state = 5;
      Specified by:
      getState in interface MonitorDProto.ProcessInfoOrBuilder
      Returns:
      The state.
    • setState

      public MonitorDProto.ProcessInfo.Builder setState(int value)
       The state, as defined by the GLIBTOP_PROCESS_* macros. 
       
      int32 state = 5;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public MonitorDProto.ProcessInfo.Builder clearState()
       The state, as defined by the GLIBTOP_PROCESS_* macros. 
       
      int32 state = 5;
      Returns:
      This builder for chaining.
    • getCommand

      public String getCommand()
       Command name. 
       
      string command = 6;
      Specified by:
      getCommand in interface MonitorDProto.ProcessInfoOrBuilder
      Returns:
      The command.
    • getCommandBytes

      public com.google.protobuf.ByteString getCommandBytes()
       Command name. 
       
      string command = 6;
      Specified by:
      getCommandBytes in interface MonitorDProto.ProcessInfoOrBuilder
      Returns:
      The bytes for command.
    • setCommand

      public MonitorDProto.ProcessInfo.Builder setCommand(String value)
       Command name. 
       
      string command = 6;
      Parameters:
      value - The command to set.
      Returns:
      This builder for chaining.
    • clearCommand

      public MonitorDProto.ProcessInfo.Builder clearCommand()
       Command name. 
       
      string command = 6;
      Returns:
      This builder for chaining.
    • setCommandBytes

      public MonitorDProto.ProcessInfo.Builder setCommandBytes(com.google.protobuf.ByteString value)
       Command name. 
       
      string command = 6;
      Parameters:
      value - The bytes for command to set.
      Returns:
      This builder for chaining.
    • getArgumentList

      public com.google.protobuf.ProtocolStringList getArgumentList()
       Command Arguments. 
       
      repeated string argument = 7;
      Specified by:
      getArgumentList in interface MonitorDProto.ProcessInfoOrBuilder
      Returns:
      A list containing the argument.
    • getArgumentCount

      public int getArgumentCount()
       Command Arguments. 
       
      repeated string argument = 7;
      Specified by:
      getArgumentCount in interface MonitorDProto.ProcessInfoOrBuilder
      Returns:
      The count of argument.
    • getArgument

      public String getArgument(int index)
       Command Arguments. 
       
      repeated string argument = 7;
      Specified by:
      getArgument in interface MonitorDProto.ProcessInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The argument at the given index.
    • getArgumentBytes

      public com.google.protobuf.ByteString getArgumentBytes(int index)
       Command Arguments. 
       
      repeated string argument = 7;
      Specified by:
      getArgumentBytes in interface MonitorDProto.ProcessInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the argument at the given index.
    • setArgument

      public MonitorDProto.ProcessInfo.Builder setArgument(int index, String value)
       Command Arguments. 
       
      repeated string argument = 7;
      Parameters:
      index - The index to set the value at.
      value - The argument to set.
      Returns:
      This builder for chaining.
    • addArgument

      public MonitorDProto.ProcessInfo.Builder addArgument(String value)
       Command Arguments. 
       
      repeated string argument = 7;
      Parameters:
      value - The argument to add.
      Returns:
      This builder for chaining.
    • addAllArgument

      public MonitorDProto.ProcessInfo.Builder addAllArgument(Iterable<String> values)
       Command Arguments. 
       
      repeated string argument = 7;
      Parameters:
      values - The argument to add.
      Returns:
      This builder for chaining.
    • clearArgument

      public MonitorDProto.ProcessInfo.Builder clearArgument()
       Command Arguments. 
       
      repeated string argument = 7;
      Returns:
      This builder for chaining.
    • addArgumentBytes

      public MonitorDProto.ProcessInfo.Builder addArgumentBytes(com.google.protobuf.ByteString value)
       Command Arguments. 
       
      repeated string argument = 7;
      Parameters:
      value - The bytes of the argument to add.
      Returns:
      This builder for chaining.
    • getPpid

      public long getPpid()
       Parent process ID. 
       
      uint64 ppid = 8;
      Specified by:
      getPpid in interface MonitorDProto.ProcessInfoOrBuilder
      Returns:
      The ppid.
    • setPpid

      public MonitorDProto.ProcessInfo.Builder setPpid(long value)
       Parent process ID. 
       
      uint64 ppid = 8;
      Parameters:
      value - The ppid to set.
      Returns:
      This builder for chaining.
    • clearPpid

       Parent process ID. 
       
      uint64 ppid = 8;
      Returns:
      This builder for chaining.
    • getMemVirt

      public long getMemVirt()
       Total number of pages of virtual memory. 
       
      uint64 mem_virt = 9;
      Specified by:
      getMemVirt in interface MonitorDProto.ProcessInfoOrBuilder
      Returns:
      The memVirt.
    • setMemVirt

      public MonitorDProto.ProcessInfo.Builder setMemVirt(long value)
       Total number of pages of virtual memory. 
       
      uint64 mem_virt = 9;
      Parameters:
      value - The memVirt to set.
      Returns:
      This builder for chaining.
    • clearMemVirt

      public MonitorDProto.ProcessInfo.Builder clearMemVirt()
       Total number of pages of virtual memory. 
       
      uint64 mem_virt = 9;
      Returns:
      This builder for chaining.
    • getMemRes

      public long getMemRes()
       Number of resident set (non-swapped) pages. 
       
      uint64 mem_res = 10;
      Specified by:
      getMemRes in interface MonitorDProto.ProcessInfoOrBuilder
      Returns:
      The memRes.
    • setMemRes

      public MonitorDProto.ProcessInfo.Builder setMemRes(long value)
       Number of resident set (non-swapped) pages. 
       
      uint64 mem_res = 10;
      Parameters:
      value - The memRes to set.
      Returns:
      This builder for chaining.
    • clearMemRes

      public MonitorDProto.ProcessInfo.Builder clearMemRes()
       Number of resident set (non-swapped) pages. 
       
      uint64 mem_res = 10;
      Returns:
      This builder for chaining.
    • getMemShared

      public long getMemShared()
       Number of pages of shared memory. 
       
      uint64 mem_shared = 11;
      Specified by:
      getMemShared in interface MonitorDProto.ProcessInfoOrBuilder
      Returns:
      The memShared.
    • setMemShared

      public MonitorDProto.ProcessInfo.Builder setMemShared(long value)
       Number of pages of shared memory. 
       
      uint64 mem_shared = 11;
      Parameters:
      value - The memShared to set.
      Returns:
      This builder for chaining.
    • clearMemShared

      public MonitorDProto.ProcessInfo.Builder clearMemShared()
       Number of pages of shared memory. 
       
      uint64 mem_shared = 11;
      Returns:
      This builder for chaining.
    • getStartTime

      public long getStartTime()
       Start time of the process [s since epoch UTC]. 
       
      uint64 start_time = 12;
      Specified by:
      getStartTime in interface MonitorDProto.ProcessInfoOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public MonitorDProto.ProcessInfo.Builder setStartTime(long value)
       Start time of the process [s since epoch UTC]. 
       
      uint64 start_time = 12;
      Parameters:
      value - The startTime to set.
      Returns:
      This builder for chaining.
    • clearStartTime

      public MonitorDProto.ProcessInfo.Builder clearStartTime()
       Start time of the process [s since epoch UTC]. 
       
      uint64 start_time = 12;
      Returns:
      This builder for chaining.
    • getUtime

      public float getUtime()
       User-mode CPU time [s]. 
       
      float utime = 13;
      Specified by:
      getUtime in interface MonitorDProto.ProcessInfoOrBuilder
      Returns:
      The utime.
    • setUtime

      public MonitorDProto.ProcessInfo.Builder setUtime(float value)
       User-mode CPU time [s]. 
       
      float utime = 13;
      Parameters:
      value - The utime to set.
      Returns:
      This builder for chaining.
    • clearUtime

      public MonitorDProto.ProcessInfo.Builder clearUtime()
       User-mode CPU time [s]. 
       
      float utime = 13;
      Returns:
      This builder for chaining.
    • getStime

      public float getStime()
       Kernel-mode CPU time [s]. 
       
      float stime = 14;
      Specified by:
      getStime in interface MonitorDProto.ProcessInfoOrBuilder
      Returns:
      The stime.
    • setStime

      public MonitorDProto.ProcessInfo.Builder setStime(float value)
       Kernel-mode CPU time [s]. 
       
      float stime = 14;
      Parameters:
      value - The stime to set.
      Returns:
      This builder for chaining.
    • clearStime

      public MonitorDProto.ProcessInfo.Builder clearStime()
       Kernel-mode CPU time [s]. 
       
      float stime = 14;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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