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 Summary
Modifier and TypeMethodDescriptionaddAllArgument
(Iterable<String> values) Command Arguments.addArgument
(String value) Command Arguments.addArgumentBytes
(com.google.protobuf.ByteString value) Command Arguments.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Command Arguments.Command name.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Number of resident set (non-swapped) pages.Number of pages of shared memory.Total number of pages of virtual memory.Standard unix nice level of process.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) clearPid()
Process ID.Parent process ID.Kernel scheduling priority.Start time of the process [s since epoch UTC].The state, as defined by the GLIBTOP_PROCESS_* macros.Kernel-mode CPU time [s].User name.User-mode CPU time [s].clone()
getArgument
(int index) Command Arguments.com.google.protobuf.ByteString
getArgumentBytes
(int index) Command Arguments.int
Command Arguments.com.google.protobuf.ProtocolStringList
Command Arguments.Command name.com.google.protobuf.ByteString
Command name.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
long
Number of resident set (non-swapped) pages.long
Number of pages of shared memory.long
Total number of pages of virtual memory.int
getNice()
Standard unix nice level of process.long
getPid()
Process ID.long
getPpid()
Parent process ID.int
Kernel scheduling priority.long
Start time of the process [s since epoch UTC].int
getState()
The state, as defined by the GLIBTOP_PROCESS_* macros.float
getStime()
Kernel-mode CPU time [s].getUser()
User name.com.google.protobuf.ByteString
User name.float
getUtime()
User-mode CPU time [s].protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setArgument
(int index, String value) Command Arguments.setCommand
(String value) Command name.setCommandBytes
(com.google.protobuf.ByteString value) Command name.setMemRes
(long value) Number of resident set (non-swapped) pages.setMemShared
(long value) Number of pages of shared memory.setMemVirt
(long value) Total number of pages of virtual memory.setNice
(int value) Standard unix nice level of process.setPid
(long value) Process ID.setPpid
(long value) Parent process ID.setPriority
(int value) Kernel scheduling priority.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStartTime
(long value) Start time of the process [s since epoch UTC].setState
(int value) The state, as defined by the GLIBTOP_PROCESS_* macros.setStime
(float value) Kernel-mode CPU time [s].setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) User name.setUserBytes
(com.google.protobuf.ByteString value) User name.setUtime
(float value) User-mode CPU time [s].Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.ProcessInfo.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.ProcessInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.ProcessInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.ProcessInfo.Builder>
-
clearField
public MonitorDProto.ProcessInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.ProcessInfo.Builder>
-
clearOneof
public MonitorDProto.ProcessInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.ProcessInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MonitorDProto.ProcessInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MonitorDProto.ProcessInfo.Builder>
- Throws:
IOException
-
getPid
public long getPid()Process ID.
uint64 pid = 1;
- Specified by:
getPid
in interfaceMonitorDProto.ProcessInfoOrBuilder
- Returns:
- The pid.
-
setPid
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
User name.
string user = 2;
- Specified by:
getUser
in interfaceMonitorDProto.ProcessInfoOrBuilder
- Returns:
- The user.
-
getUserBytes
public com.google.protobuf.ByteString getUserBytes()User name.
string user = 2;
- Specified by:
getUserBytes
in interfaceMonitorDProto.ProcessInfoOrBuilder
- Returns:
- The bytes for user.
-
setUser
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
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 interfaceMonitorDProto.ProcessInfoOrBuilder
- Returns:
- The priority.
-
setPriority
Kernel scheduling priority.
int32 priority = 3;
- Parameters:
value
- The priority to set.- Returns:
- This builder for chaining.
-
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 interfaceMonitorDProto.ProcessInfoOrBuilder
- Returns:
- The nice.
-
setNice
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 interfaceMonitorDProto.ProcessInfoOrBuilder
- Returns:
- The state.
-
setState
The state, as defined by the GLIBTOP_PROCESS_* macros.
int32 state = 5;
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
clearState
The state, as defined by the GLIBTOP_PROCESS_* macros.
int32 state = 5;
- Returns:
- This builder for chaining.
-
getCommand
Command name.
string command = 6;
- Specified by:
getCommand
in interfaceMonitorDProto.ProcessInfoOrBuilder
- Returns:
- The command.
-
getCommandBytes
public com.google.protobuf.ByteString getCommandBytes()Command name.
string command = 6;
- Specified by:
getCommandBytes
in interfaceMonitorDProto.ProcessInfoOrBuilder
- Returns:
- The bytes for command.
-
setCommand
Command name.
string command = 6;
- Parameters:
value
- The command to set.- Returns:
- This builder for chaining.
-
clearCommand
Command name.
string command = 6;
- Returns:
- This builder for chaining.
-
setCommandBytes
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 interfaceMonitorDProto.ProcessInfoOrBuilder
- Returns:
- A list containing the argument.
-
getArgumentCount
public int getArgumentCount()Command Arguments.
repeated string argument = 7;
- Specified by:
getArgumentCount
in interfaceMonitorDProto.ProcessInfoOrBuilder
- Returns:
- The count of argument.
-
getArgument
Command Arguments.
repeated string argument = 7;
- Specified by:
getArgument
in interfaceMonitorDProto.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 interfaceMonitorDProto.ProcessInfoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the argument at the given index.
-
setArgument
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
Command Arguments.
repeated string argument = 7;
- Parameters:
value
- The argument to add.- Returns:
- This builder for chaining.
-
addAllArgument
Command Arguments.
repeated string argument = 7;
- Parameters:
values
- The argument to add.- Returns:
- This builder for chaining.
-
clearArgument
Command Arguments.
repeated string argument = 7;
- Returns:
- This builder for chaining.
-
addArgumentBytes
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 interfaceMonitorDProto.ProcessInfoOrBuilder
- Returns:
- The ppid.
-
setPpid
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 interfaceMonitorDProto.ProcessInfoOrBuilder
- Returns:
- The memVirt.
-
setMemVirt
Total number of pages of virtual memory.
uint64 mem_virt = 9;
- Parameters:
value
- The memVirt to set.- Returns:
- This builder for chaining.
-
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 interfaceMonitorDProto.ProcessInfoOrBuilder
- Returns:
- The memRes.
-
setMemRes
Number of resident set (non-swapped) pages.
uint64 mem_res = 10;
- Parameters:
value
- The memRes to set.- Returns:
- This builder for chaining.
-
clearMemRes
Number of resident set (non-swapped) pages.
uint64 mem_res = 10;
- 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 interfaceMonitorDProto.ProcessInfoOrBuilder
- Returns:
- The startTime.
-
setStartTime
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
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 interfaceMonitorDProto.ProcessInfoOrBuilder
- Returns:
- The utime.
-
setUtime
User-mode CPU time [s].
float utime = 13;
- Parameters:
value
- The utime to set.- Returns:
- This builder for chaining.
-
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 interfaceMonitorDProto.ProcessInfoOrBuilder
- Returns:
- The stime.
-
setStime
Kernel-mode CPU time [s].
float stime = 14;
- Parameters:
value
- The stime to set.- Returns:
- This builder for chaining.
-
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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.ProcessInfo.Builder>
-
mergeUnknownFields
public final MonitorDProto.ProcessInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MonitorDProto.ProcessInfo.Builder>
-