Package org.yamcs.protobuf
Class ProcessInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ProcessInfo.Builder>
org.yamcs.protobuf.ProcessInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,ProcessInfoOrBuilder
- Enclosing class:
- ProcessInfo
public static final class ProcessInfo.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ProcessInfo.Builder>
implements ProcessInfoOrBuilder
Protobuf type
yamcs.protobuf.server.ProcessInfo
-
Method Summary
Modifier and TypeMethodDescriptionaddAllArguments
(Iterable<String> values) Arguments of the process.addAllChildren
(Iterable<? extends ProcessInfo> values) Direct children of the process.addArguments
(String value) Arguments of the process.addArgumentsBytes
(com.google.protobuf.ByteString value) Arguments of the process.addChildren
(int index, ProcessInfo value) Direct children of the process.addChildren
(int index, ProcessInfo.Builder builderForValue) Direct children of the process.addChildren
(ProcessInfo value) Direct children of the process.addChildren
(ProcessInfo.Builder builderForValue) Direct children of the process.Direct children of the process.addChildrenBuilder
(int index) Direct children of the process.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Arguments of the process.Direct children of the process.Executable pathname of the process.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) clearPid()
Native process ID.Start time of the process.Accumulated total cputime.User of the process.clone()
getArguments
(int index) Arguments of the process.com.google.protobuf.ByteString
getArgumentsBytes
(int index) Arguments of the process.int
Arguments of the process.com.google.protobuf.ProtocolStringList
Arguments of the process.getChildren
(int index) Direct children of the process.getChildrenBuilder
(int index) Direct children of the process.Direct children of the process.int
Direct children of the process.Direct children of the process.getChildrenOrBuilder
(int index) Direct children of the process.List<? extends ProcessInfoOrBuilder>
Direct children of the process.Executable pathname of the process.com.google.protobuf.ByteString
Executable pathname of the process.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
long
getPid()
Native process ID.com.google.protobuf.Timestamp
Start time of the process.com.google.protobuf.Timestamp.Builder
Start time of the process.com.google.protobuf.TimestampOrBuilder
Start time of the process.com.google.protobuf.Duration
Accumulated total cputime.com.google.protobuf.Duration.Builder
Accumulated total cputime.com.google.protobuf.DurationOrBuilder
Accumulated total cputime.getUser()
User of the process.com.google.protobuf.ByteString
User of the process.boolean
Executable pathname of the process.boolean
hasPid()
Native process ID.boolean
Start time of the process.boolean
Accumulated total cputime.boolean
hasUser()
User of the process.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) mergeFrom
(ProcessInfo other) mergeStartTime
(com.google.protobuf.Timestamp value) Start time of the process.mergeTotalCpuDuration
(com.google.protobuf.Duration value) Accumulated total cputime.final ProcessInfo.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removeChildren
(int index) Direct children of the process.setArguments
(int index, String value) Arguments of the process.setChildren
(int index, ProcessInfo value) Direct children of the process.setChildren
(int index, ProcessInfo.Builder builderForValue) Direct children of the process.setCommand
(String value) Executable pathname of the process.setCommandBytes
(com.google.protobuf.ByteString value) Executable pathname of the process.setPid
(long value) Native process ID.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStartTime
(com.google.protobuf.Timestamp value) Start time of the process.setStartTime
(com.google.protobuf.Timestamp.Builder builderForValue) Start time of the process.setTotalCpuDuration
(com.google.protobuf.Duration value) Accumulated total cputime.setTotalCpuDuration
(com.google.protobuf.Duration.Builder builderForValue) Accumulated total cputime.final ProcessInfo.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) User of the process.setUserBytes
(com.google.protobuf.ByteString value) User of the process.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, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, 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.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<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<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<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<ProcessInfo.Builder>
-
setField
public 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<ProcessInfo.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProcessInfo.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProcessInfo.Builder>
-
setRepeatedField
public 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<ProcessInfo.Builder>
-
addRepeatedField
public 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<ProcessInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ProcessInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProcessInfo.Builder>
-
mergeFrom
public 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<ProcessInfo.Builder>
- Throws:
IOException
-
hasPid
public boolean hasPid()Native process ID.
optional int64 pid = 1;
- Specified by:
hasPid
in interfaceProcessInfoOrBuilder
- Returns:
- Whether the pid field is set.
-
getPid
public long getPid()Native process ID.
optional int64 pid = 1;
- Specified by:
getPid
in interfaceProcessInfoOrBuilder
- Returns:
- The pid.
-
setPid
Native process ID.
optional int64 pid = 1;
- Parameters:
value
- The pid to set.- Returns:
- This builder for chaining.
-
clearPid
Native process ID.
optional int64 pid = 1;
- Returns:
- This builder for chaining.
-
hasUser
public boolean hasUser()User of the process.
optional string user = 2;
- Specified by:
hasUser
in interfaceProcessInfoOrBuilder
- Returns:
- Whether the user field is set.
-
getUser
User of the process.
optional string user = 2;
- Specified by:
getUser
in interfaceProcessInfoOrBuilder
- Returns:
- The user.
-
getUserBytes
public com.google.protobuf.ByteString getUserBytes()User of the process.
optional string user = 2;
- Specified by:
getUserBytes
in interfaceProcessInfoOrBuilder
- Returns:
- The bytes for user.
-
setUser
User of the process.
optional string user = 2;
- Parameters:
value
- The user to set.- Returns:
- This builder for chaining.
-
clearUser
User of the process.
optional string user = 2;
- Returns:
- This builder for chaining.
-
setUserBytes
User of the process.
optional string user = 2;
- Parameters:
value
- The bytes for user to set.- Returns:
- This builder for chaining.
-
hasCommand
public boolean hasCommand()Executable pathname of the process.
optional string command = 3;
- Specified by:
hasCommand
in interfaceProcessInfoOrBuilder
- Returns:
- Whether the command field is set.
-
getCommand
Executable pathname of the process.
optional string command = 3;
- Specified by:
getCommand
in interfaceProcessInfoOrBuilder
- Returns:
- The command.
-
getCommandBytes
public com.google.protobuf.ByteString getCommandBytes()Executable pathname of the process.
optional string command = 3;
- Specified by:
getCommandBytes
in interfaceProcessInfoOrBuilder
- Returns:
- The bytes for command.
-
setCommand
Executable pathname of the process.
optional string command = 3;
- Parameters:
value
- The command to set.- Returns:
- This builder for chaining.
-
clearCommand
Executable pathname of the process.
optional string command = 3;
- Returns:
- This builder for chaining.
-
setCommandBytes
Executable pathname of the process.
optional string command = 3;
- Parameters:
value
- The bytes for command to set.- Returns:
- This builder for chaining.
-
getArgumentsList
public com.google.protobuf.ProtocolStringList getArgumentsList()Arguments of the process.
repeated string arguments = 4;
- Specified by:
getArgumentsList
in interfaceProcessInfoOrBuilder
- Returns:
- A list containing the arguments.
-
getArgumentsCount
public int getArgumentsCount()Arguments of the process.
repeated string arguments = 4;
- Specified by:
getArgumentsCount
in interfaceProcessInfoOrBuilder
- Returns:
- The count of arguments.
-
getArguments
Arguments of the process.
repeated string arguments = 4;
- Specified by:
getArguments
in interfaceProcessInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The arguments at the given index.
-
getArgumentsBytes
public com.google.protobuf.ByteString getArgumentsBytes(int index) Arguments of the process.
repeated string arguments = 4;
- Specified by:
getArgumentsBytes
in interfaceProcessInfoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the arguments at the given index.
-
setArguments
Arguments of the process.
repeated string arguments = 4;
- Parameters:
index
- The index to set the value at.value
- The arguments to set.- Returns:
- This builder for chaining.
-
addArguments
Arguments of the process.
repeated string arguments = 4;
- Parameters:
value
- The arguments to add.- Returns:
- This builder for chaining.
-
addAllArguments
Arguments of the process.
repeated string arguments = 4;
- Parameters:
values
- The arguments to add.- Returns:
- This builder for chaining.
-
clearArguments
Arguments of the process.
repeated string arguments = 4;
- Returns:
- This builder for chaining.
-
addArgumentsBytes
Arguments of the process.
repeated string arguments = 4;
- Parameters:
value
- The bytes of the arguments to add.- Returns:
- This builder for chaining.
-
hasStartTime
public boolean hasStartTime()Start time of the process.
optional .google.protobuf.Timestamp startTime = 5;
- Specified by:
hasStartTime
in interfaceProcessInfoOrBuilder
- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()Start time of the process.
optional .google.protobuf.Timestamp startTime = 5;
- Specified by:
getStartTime
in interfaceProcessInfoOrBuilder
- Returns:
- The startTime.
-
setStartTime
Start time of the process.
optional .google.protobuf.Timestamp startTime = 5;
-
setStartTime
Start time of the process.
optional .google.protobuf.Timestamp startTime = 5;
-
mergeStartTime
Start time of the process.
optional .google.protobuf.Timestamp startTime = 5;
-
clearStartTime
Start time of the process.
optional .google.protobuf.Timestamp startTime = 5;
-
getStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()Start time of the process.
optional .google.protobuf.Timestamp startTime = 5;
-
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()Start time of the process.
optional .google.protobuf.Timestamp startTime = 5;
- Specified by:
getStartTimeOrBuilder
in interfaceProcessInfoOrBuilder
-
hasTotalCpuDuration
public boolean hasTotalCpuDuration()Accumulated total cputime.
optional .google.protobuf.Duration totalCpuDuration = 6;
- Specified by:
hasTotalCpuDuration
in interfaceProcessInfoOrBuilder
- Returns:
- Whether the totalCpuDuration field is set.
-
getTotalCpuDuration
public com.google.protobuf.Duration getTotalCpuDuration()Accumulated total cputime.
optional .google.protobuf.Duration totalCpuDuration = 6;
- Specified by:
getTotalCpuDuration
in interfaceProcessInfoOrBuilder
- Returns:
- The totalCpuDuration.
-
setTotalCpuDuration
Accumulated total cputime.
optional .google.protobuf.Duration totalCpuDuration = 6;
-
setTotalCpuDuration
public ProcessInfo.Builder setTotalCpuDuration(com.google.protobuf.Duration.Builder builderForValue) Accumulated total cputime.
optional .google.protobuf.Duration totalCpuDuration = 6;
-
mergeTotalCpuDuration
Accumulated total cputime.
optional .google.protobuf.Duration totalCpuDuration = 6;
-
clearTotalCpuDuration
Accumulated total cputime.
optional .google.protobuf.Duration totalCpuDuration = 6;
-
getTotalCpuDurationBuilder
public com.google.protobuf.Duration.Builder getTotalCpuDurationBuilder()Accumulated total cputime.
optional .google.protobuf.Duration totalCpuDuration = 6;
-
getTotalCpuDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getTotalCpuDurationOrBuilder()Accumulated total cputime.
optional .google.protobuf.Duration totalCpuDuration = 6;
- Specified by:
getTotalCpuDurationOrBuilder
in interfaceProcessInfoOrBuilder
-
getChildrenList
Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
- Specified by:
getChildrenList
in interfaceProcessInfoOrBuilder
-
getChildrenCount
public int getChildrenCount()Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
- Specified by:
getChildrenCount
in interfaceProcessInfoOrBuilder
-
getChildren
Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
- Specified by:
getChildren
in interfaceProcessInfoOrBuilder
-
setChildren
Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
-
setChildren
Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
-
addChildren
Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
-
addChildren
Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
-
addChildren
Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
-
addChildren
Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
-
addAllChildren
Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
-
clearChildren
Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
-
removeChildren
Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
-
getChildrenBuilder
Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
-
getChildrenOrBuilder
Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
- Specified by:
getChildrenOrBuilder
in interfaceProcessInfoOrBuilder
-
getChildrenOrBuilderList
Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
- Specified by:
getChildrenOrBuilderList
in interfaceProcessInfoOrBuilder
-
addChildrenBuilder
Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
-
addChildrenBuilder
Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
-
getChildrenBuilderList
Direct children of the process.
repeated .yamcs.protobuf.server.ProcessInfo children = 7;
-
setUnknownFields
public final 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<ProcessInfo.Builder>
-
mergeUnknownFields
public final 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<ProcessInfo.Builder>
-