Package viam.app.v1

Class Robot.ProcessConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Robot.ProcessConfig,Robot.ProcessConfig.Builder>
viam.app.v1.Robot.ProcessConfig.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Robot.ProcessConfigOrBuilder
Enclosing class:
Robot.ProcessConfig

public static final class Robot.ProcessConfig.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Robot.ProcessConfig,Robot.ProcessConfig.Builder> implements Robot.ProcessConfigOrBuilder
 A ProcessConfig describes how to manage a system process.
 
Protobuf type viam.app.v1.ProcessConfig
  • Method Details

    • getId

      public String getId()
      string id = 1 [json_name = "id"];
      Specified by:
      getId in interface Robot.ProcessConfigOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
      string id = 1 [json_name = "id"];
      Specified by:
      getIdBytes in interface Robot.ProcessConfigOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Robot.ProcessConfig.Builder setId(String value)
      string id = 1 [json_name = "id"];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Robot.ProcessConfig.Builder clearId()
      string id = 1 [json_name = "id"];
      Returns:
      This builder for chaining.
    • setIdBytes

      public Robot.ProcessConfig.Builder setIdBytes(com.google.protobuf.ByteString value)
      string id = 1 [json_name = "id"];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getName

      public String getName()
      string name = 2 [json_name = "name"];
      Specified by:
      getName in interface Robot.ProcessConfigOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      string name = 2 [json_name = "name"];
      Specified by:
      getNameBytes in interface Robot.ProcessConfigOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Robot.ProcessConfig.Builder setName(String value)
      string name = 2 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Robot.ProcessConfig.Builder clearName()
      string name = 2 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Robot.ProcessConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
      string name = 2 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getArgsList

      public List<String> getArgsList()
      repeated string args = 3 [json_name = "args"];
      Specified by:
      getArgsList in interface Robot.ProcessConfigOrBuilder
      Returns:
      A list containing the args.
    • getArgsCount

      public int getArgsCount()
      repeated string args = 3 [json_name = "args"];
      Specified by:
      getArgsCount in interface Robot.ProcessConfigOrBuilder
      Returns:
      The count of args.
    • getArgs

      public String getArgs(int index)
      repeated string args = 3 [json_name = "args"];
      Specified by:
      getArgs in interface Robot.ProcessConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The args at the given index.
    • getArgsBytes

      public com.google.protobuf.ByteString getArgsBytes(int index)
      repeated string args = 3 [json_name = "args"];
      Specified by:
      getArgsBytes in interface Robot.ProcessConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the args at the given index.
    • setArgs

      public Robot.ProcessConfig.Builder setArgs(int index, String value)
      repeated string args = 3 [json_name = "args"];
      Parameters:
      index - The index to set the value at.
      value - The args to set.
      Returns:
      This builder for chaining.
    • addArgs

      public Robot.ProcessConfig.Builder addArgs(String value)
      repeated string args = 3 [json_name = "args"];
      Parameters:
      value - The args to add.
      Returns:
      This builder for chaining.
    • addAllArgs

      public Robot.ProcessConfig.Builder addAllArgs(Iterable<String> values)
      repeated string args = 3 [json_name = "args"];
      Parameters:
      values - The args to add.
      Returns:
      This builder for chaining.
    • clearArgs

      public Robot.ProcessConfig.Builder clearArgs()
      repeated string args = 3 [json_name = "args"];
      Returns:
      This builder for chaining.
    • addArgsBytes

      public Robot.ProcessConfig.Builder addArgsBytes(com.google.protobuf.ByteString value)
      repeated string args = 3 [json_name = "args"];
      Parameters:
      value - The bytes of the args to add.
      Returns:
      This builder for chaining.
    • getCwd

      public String getCwd()
      string cwd = 4 [json_name = "cwd"];
      Specified by:
      getCwd in interface Robot.ProcessConfigOrBuilder
      Returns:
      The cwd.
    • getCwdBytes

      public com.google.protobuf.ByteString getCwdBytes()
      string cwd = 4 [json_name = "cwd"];
      Specified by:
      getCwdBytes in interface Robot.ProcessConfigOrBuilder
      Returns:
      The bytes for cwd.
    • setCwd

      public Robot.ProcessConfig.Builder setCwd(String value)
      string cwd = 4 [json_name = "cwd"];
      Parameters:
      value - The cwd to set.
      Returns:
      This builder for chaining.
    • clearCwd

      public Robot.ProcessConfig.Builder clearCwd()
      string cwd = 4 [json_name = "cwd"];
      Returns:
      This builder for chaining.
    • setCwdBytes

      public Robot.ProcessConfig.Builder setCwdBytes(com.google.protobuf.ByteString value)
      string cwd = 4 [json_name = "cwd"];
      Parameters:
      value - The bytes for cwd to set.
      Returns:
      This builder for chaining.
    • getOneShot

      public boolean getOneShot()
      bool one_shot = 5 [json_name = "oneShot"];
      Specified by:
      getOneShot in interface Robot.ProcessConfigOrBuilder
      Returns:
      The oneShot.
    • setOneShot

      public Robot.ProcessConfig.Builder setOneShot(boolean value)
      bool one_shot = 5 [json_name = "oneShot"];
      Parameters:
      value - The oneShot to set.
      Returns:
      This builder for chaining.
    • clearOneShot

      public Robot.ProcessConfig.Builder clearOneShot()
      bool one_shot = 5 [json_name = "oneShot"];
      Returns:
      This builder for chaining.
    • getLog

      public boolean getLog()
      bool log = 6 [json_name = "log"];
      Specified by:
      getLog in interface Robot.ProcessConfigOrBuilder
      Returns:
      The log.
    • setLog

      public Robot.ProcessConfig.Builder setLog(boolean value)
      bool log = 6 [json_name = "log"];
      Parameters:
      value - The log to set.
      Returns:
      This builder for chaining.
    • clearLog

      public Robot.ProcessConfig.Builder clearLog()
      bool log = 6 [json_name = "log"];
      Returns:
      This builder for chaining.
    • getStopSignal

      public int getStopSignal()
      int32 stop_signal = 7 [json_name = "stopSignal"];
      Specified by:
      getStopSignal in interface Robot.ProcessConfigOrBuilder
      Returns:
      The stopSignal.
    • setStopSignal

      public Robot.ProcessConfig.Builder setStopSignal(int value)
      int32 stop_signal = 7 [json_name = "stopSignal"];
      Parameters:
      value - The stopSignal to set.
      Returns:
      This builder for chaining.
    • clearStopSignal

      public Robot.ProcessConfig.Builder clearStopSignal()
      int32 stop_signal = 7 [json_name = "stopSignal"];
      Returns:
      This builder for chaining.
    • hasStopTimeout

      public boolean hasStopTimeout()
      .google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"];
      Specified by:
      hasStopTimeout in interface Robot.ProcessConfigOrBuilder
      Returns:
      Whether the stopTimeout field is set.
    • getStopTimeout

      public com.google.protobuf.Duration getStopTimeout()
      .google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"];
      Specified by:
      getStopTimeout in interface Robot.ProcessConfigOrBuilder
      Returns:
      The stopTimeout.
    • setStopTimeout

      public Robot.ProcessConfig.Builder setStopTimeout(com.google.protobuf.Duration value)
      .google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"];
    • setStopTimeout

      public Robot.ProcessConfig.Builder setStopTimeout(com.google.protobuf.Duration.Builder builderForValue)
      .google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"];
    • mergeStopTimeout

      public Robot.ProcessConfig.Builder mergeStopTimeout(com.google.protobuf.Duration value)
      .google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"];
    • clearStopTimeout

      public Robot.ProcessConfig.Builder clearStopTimeout()
      .google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"];
    • getEnvCount

      public int getEnvCount()
      Description copied from interface: Robot.ProcessConfigOrBuilder
       additional environment variables passed to the process
       
      map<string, string> env = 9 [json_name = "env"];
      Specified by:
      getEnvCount in interface Robot.ProcessConfigOrBuilder
    • containsEnv

      public boolean containsEnv(String key)
       additional environment variables passed to the process
       
      map<string, string> env = 9 [json_name = "env"];
      Specified by:
      containsEnv in interface Robot.ProcessConfigOrBuilder
    • clearEnv

      public Robot.ProcessConfig.Builder clearEnv()
    • removeEnv

      public Robot.ProcessConfig.Builder removeEnv(String key)
       additional environment variables passed to the process
       
      map<string, string> env = 9 [json_name = "env"];
    • getEnv

      @Deprecated public Map<String,String> getEnv()
      Deprecated.
      Use getEnvMap() instead.
      Specified by:
      getEnv in interface Robot.ProcessConfigOrBuilder
    • getEnvMap

      public Map<String,String> getEnvMap()
       additional environment variables passed to the process
       
      map<string, string> env = 9 [json_name = "env"];
      Specified by:
      getEnvMap in interface Robot.ProcessConfigOrBuilder
    • getEnvOrDefault

      public String getEnvOrDefault(String key, String defaultValue)
       additional environment variables passed to the process
       
      map<string, string> env = 9 [json_name = "env"];
      Specified by:
      getEnvOrDefault in interface Robot.ProcessConfigOrBuilder
    • getEnvOrThrow

      public String getEnvOrThrow(String key)
       additional environment variables passed to the process
       
      map<string, string> env = 9 [json_name = "env"];
      Specified by:
      getEnvOrThrow in interface Robot.ProcessConfigOrBuilder
    • putEnv

      public Robot.ProcessConfig.Builder putEnv(String key, String value)
       additional environment variables passed to the process
       
      map<string, string> env = 9 [json_name = "env"];
    • putAllEnv

      public Robot.ProcessConfig.Builder putAllEnv(Map<String,String> values)
       additional environment variables passed to the process
       
      map<string, string> env = 9 [json_name = "env"];
    • getUsername

      public String getUsername()
      string username = 10 [json_name = "username"];
      Specified by:
      getUsername in interface Robot.ProcessConfigOrBuilder
      Returns:
      The username.
    • getUsernameBytes

      public com.google.protobuf.ByteString getUsernameBytes()
      string username = 10 [json_name = "username"];
      Specified by:
      getUsernameBytes in interface Robot.ProcessConfigOrBuilder
      Returns:
      The bytes for username.
    • setUsername

      public Robot.ProcessConfig.Builder setUsername(String value)
      string username = 10 [json_name = "username"];
      Parameters:
      value - The username to set.
      Returns:
      This builder for chaining.
    • clearUsername

      public Robot.ProcessConfig.Builder clearUsername()
      string username = 10 [json_name = "username"];
      Returns:
      This builder for chaining.
    • setUsernameBytes

      public Robot.ProcessConfig.Builder setUsernameBytes(com.google.protobuf.ByteString value)
      string username = 10 [json_name = "username"];
      Parameters:
      value - The bytes for username to set.
      Returns:
      This builder for chaining.