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 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<ProcessInfo.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public ProcessInfo.Builder mergeFrom(ProcessInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 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<ProcessInfo.Builder>
      Throws:
      IOException
    • hasPid

      public boolean hasPid()
       Native process ID.
       
      optional int64 pid = 1;
      Specified by:
      hasPid in interface ProcessInfoOrBuilder
      Returns:
      Whether the pid field is set.
    • getPid

      public long getPid()
       Native process ID.
       
      optional int64 pid = 1;
      Specified by:
      getPid in interface ProcessInfoOrBuilder
      Returns:
      The pid.
    • setPid

      public ProcessInfo.Builder setPid(long value)
       Native process ID.
       
      optional int64 pid = 1;
      Parameters:
      value - The pid to set.
      Returns:
      This builder for chaining.
    • clearPid

      public ProcessInfo.Builder 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 interface ProcessInfoOrBuilder
      Returns:
      Whether the user field is set.
    • getUser

      public String getUser()
       User of the process.
       
      optional string user = 2;
      Specified by:
      getUser in interface ProcessInfoOrBuilder
      Returns:
      The user.
    • getUserBytes

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

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

      public ProcessInfo.Builder clearUser()
       User of the process.
       
      optional string user = 2;
      Returns:
      This builder for chaining.
    • setUserBytes

      public ProcessInfo.Builder setUserBytes(com.google.protobuf.ByteString value)
       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 interface ProcessInfoOrBuilder
      Returns:
      Whether the command field is set.
    • getCommand

      public String getCommand()
       Executable pathname of the process.
       
      optional string command = 3;
      Specified by:
      getCommand in interface ProcessInfoOrBuilder
      Returns:
      The command.
    • getCommandBytes

      public com.google.protobuf.ByteString getCommandBytes()
       Executable pathname of the process.
       
      optional string command = 3;
      Specified by:
      getCommandBytes in interface ProcessInfoOrBuilder
      Returns:
      The bytes for command.
    • setCommand

      public ProcessInfo.Builder setCommand(String value)
       Executable pathname of the process.
       
      optional string command = 3;
      Parameters:
      value - The command to set.
      Returns:
      This builder for chaining.
    • clearCommand

      public ProcessInfo.Builder clearCommand()
       Executable pathname of the process.
       
      optional string command = 3;
      Returns:
      This builder for chaining.
    • setCommandBytes

      public ProcessInfo.Builder setCommandBytes(com.google.protobuf.ByteString value)
       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 interface ProcessInfoOrBuilder
      Returns:
      A list containing the arguments.
    • getArgumentsCount

      public int getArgumentsCount()
       Arguments of the process.
       
      repeated string arguments = 4;
      Specified by:
      getArgumentsCount in interface ProcessInfoOrBuilder
      Returns:
      The count of arguments.
    • getArguments

      public String getArguments(int index)
       Arguments of the process.
       
      repeated string arguments = 4;
      Specified by:
      getArguments in interface ProcessInfoOrBuilder
      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 interface ProcessInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the arguments at the given index.
    • setArguments

      public ProcessInfo.Builder setArguments(int index, String value)
       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

      public ProcessInfo.Builder addArguments(String value)
       Arguments of the process.
       
      repeated string arguments = 4;
      Parameters:
      value - The arguments to add.
      Returns:
      This builder for chaining.
    • addAllArguments

      public ProcessInfo.Builder addAllArguments(Iterable<String> values)
       Arguments of the process.
       
      repeated string arguments = 4;
      Parameters:
      values - The arguments to add.
      Returns:
      This builder for chaining.
    • clearArguments

      public ProcessInfo.Builder clearArguments()
       Arguments of the process.
       
      repeated string arguments = 4;
      Returns:
      This builder for chaining.
    • addArgumentsBytes

      public ProcessInfo.Builder addArgumentsBytes(com.google.protobuf.ByteString value)
       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 interface ProcessInfoOrBuilder
      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 interface ProcessInfoOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public ProcessInfo.Builder setStartTime(com.google.protobuf.Timestamp value)
       Start time of the process.
       
      optional .google.protobuf.Timestamp startTime = 5;
    • setStartTime

      public ProcessInfo.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Start time of the process.
       
      optional .google.protobuf.Timestamp startTime = 5;
    • mergeStartTime

      public ProcessInfo.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       Start time of the process.
       
      optional .google.protobuf.Timestamp startTime = 5;
    • clearStartTime

      public ProcessInfo.Builder 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 interface ProcessInfoOrBuilder
    • hasTotalCpuDuration

      public boolean hasTotalCpuDuration()
       Accumulated total cputime.
       
      optional .google.protobuf.Duration totalCpuDuration = 6;
      Specified by:
      hasTotalCpuDuration in interface ProcessInfoOrBuilder
      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 interface ProcessInfoOrBuilder
      Returns:
      The totalCpuDuration.
    • setTotalCpuDuration

      public ProcessInfo.Builder setTotalCpuDuration(com.google.protobuf.Duration value)
       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

      public ProcessInfo.Builder mergeTotalCpuDuration(com.google.protobuf.Duration value)
       Accumulated total cputime.
       
      optional .google.protobuf.Duration totalCpuDuration = 6;
    • clearTotalCpuDuration

      public ProcessInfo.Builder 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 interface ProcessInfoOrBuilder
    • getChildrenList

      public List<ProcessInfo> getChildrenList()
       Direct children of the process.
       
      repeated .yamcs.protobuf.server.ProcessInfo children = 7;
      Specified by:
      getChildrenList in interface ProcessInfoOrBuilder
    • getChildrenCount

      public int getChildrenCount()
       Direct children of the process.
       
      repeated .yamcs.protobuf.server.ProcessInfo children = 7;
      Specified by:
      getChildrenCount in interface ProcessInfoOrBuilder
    • getChildren

      public ProcessInfo getChildren(int index)
       Direct children of the process.
       
      repeated .yamcs.protobuf.server.ProcessInfo children = 7;
      Specified by:
      getChildren in interface ProcessInfoOrBuilder
    • setChildren

      public ProcessInfo.Builder setChildren(int index, ProcessInfo value)
       Direct children of the process.
       
      repeated .yamcs.protobuf.server.ProcessInfo children = 7;
    • setChildren

      public ProcessInfo.Builder setChildren(int index, ProcessInfo.Builder builderForValue)
       Direct children of the process.
       
      repeated .yamcs.protobuf.server.ProcessInfo children = 7;
    • addChildren

      public ProcessInfo.Builder addChildren(ProcessInfo value)
       Direct children of the process.
       
      repeated .yamcs.protobuf.server.ProcessInfo children = 7;
    • addChildren

      public ProcessInfo.Builder addChildren(int index, ProcessInfo value)
       Direct children of the process.
       
      repeated .yamcs.protobuf.server.ProcessInfo children = 7;
    • addChildren

      public ProcessInfo.Builder addChildren(ProcessInfo.Builder builderForValue)
       Direct children of the process.
       
      repeated .yamcs.protobuf.server.ProcessInfo children = 7;
    • addChildren

      public ProcessInfo.Builder addChildren(int index, ProcessInfo.Builder builderForValue)
       Direct children of the process.
       
      repeated .yamcs.protobuf.server.ProcessInfo children = 7;
    • addAllChildren

      public ProcessInfo.Builder addAllChildren(Iterable<? extends ProcessInfo> values)
       Direct children of the process.
       
      repeated .yamcs.protobuf.server.ProcessInfo children = 7;
    • clearChildren

      public ProcessInfo.Builder clearChildren()
       Direct children of the process.
       
      repeated .yamcs.protobuf.server.ProcessInfo children = 7;
    • removeChildren

      public ProcessInfo.Builder removeChildren(int index)
       Direct children of the process.
       
      repeated .yamcs.protobuf.server.ProcessInfo children = 7;
    • getChildrenBuilder

      public ProcessInfo.Builder getChildrenBuilder(int index)
       Direct children of the process.
       
      repeated .yamcs.protobuf.server.ProcessInfo children = 7;
    • getChildrenOrBuilder

      public ProcessInfoOrBuilder getChildrenOrBuilder(int index)
       Direct children of the process.
       
      repeated .yamcs.protobuf.server.ProcessInfo children = 7;
      Specified by:
      getChildrenOrBuilder in interface ProcessInfoOrBuilder
    • getChildrenOrBuilderList

      public List<? extends ProcessInfoOrBuilder> getChildrenOrBuilderList()
       Direct children of the process.
       
      repeated .yamcs.protobuf.server.ProcessInfo children = 7;
      Specified by:
      getChildrenOrBuilderList in interface ProcessInfoOrBuilder
    • addChildrenBuilder

      public ProcessInfo.Builder addChildrenBuilder()
       Direct children of the process.
       
      repeated .yamcs.protobuf.server.ProcessInfo children = 7;
    • addChildrenBuilder

      public ProcessInfo.Builder addChildrenBuilder(int index)
       Direct children of the process.
       
      repeated .yamcs.protobuf.server.ProcessInfo children = 7;
    • getChildrenBuilderList

      public List<ProcessInfo.Builder> 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 interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ProcessInfo.Builder>
    • mergeUnknownFields

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