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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllArgs
(Iterable<String> values) repeated string args = 3 [json_name = "args"];
repeated string args = 3 [json_name = "args"];
addArgsBytes
(com.google.protobuf.ByteString value) repeated string args = 3 [json_name = "args"];
repeated string args = 3 [json_name = "args"];
clearCwd()
string cwd = 4 [json_name = "cwd"];
clearEnv()
clearId()
string id = 1 [json_name = "id"];
clearLog()
bool log = 6 [json_name = "log"];
string name = 2 [json_name = "name"];
bool one_shot = 5 [json_name = "oneShot"];
int32 stop_signal = 7 [json_name = "stopSignal"];
.google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"];
string username = 10 [json_name = "username"];
boolean
containsEnv
(String key) additional environment variables passed to the processgetArgs
(int index) repeated string args = 3 [json_name = "args"];
com.google.protobuf.ByteString
getArgsBytes
(int index) repeated string args = 3 [json_name = "args"];
int
repeated string args = 3 [json_name = "args"];
repeated string args = 3 [json_name = "args"];
getCwd()
string cwd = 4 [json_name = "cwd"];
com.google.protobuf.ByteString
string cwd = 4 [json_name = "cwd"];
getEnv()
Deprecated.int
additional environment variables passed to the processadditional environment variables passed to the processgetEnvOrDefault
(String key, String defaultValue) additional environment variables passed to the processgetEnvOrThrow
(String key) additional environment variables passed to the processgetId()
string id = 1 [json_name = "id"];
com.google.protobuf.ByteString
string id = 1 [json_name = "id"];
boolean
getLog()
bool log = 6 [json_name = "log"];
getName()
string name = 2 [json_name = "name"];
com.google.protobuf.ByteString
string name = 2 [json_name = "name"];
boolean
bool one_shot = 5 [json_name = "oneShot"];
int
int32 stop_signal = 7 [json_name = "stopSignal"];
com.google.protobuf.Duration
.google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"];
string username = 10 [json_name = "username"];
com.google.protobuf.ByteString
string username = 10 [json_name = "username"];
boolean
.google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"];
mergeStopTimeout
(com.google.protobuf.Duration value) .google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"];
additional environment variables passed to the processadditional environment variables passed to the processadditional environment variables passed to the processrepeated string args = 3 [json_name = "args"];
string cwd = 4 [json_name = "cwd"];
setCwdBytes
(com.google.protobuf.ByteString value) string cwd = 4 [json_name = "cwd"];
string id = 1 [json_name = "id"];
setIdBytes
(com.google.protobuf.ByteString value) string id = 1 [json_name = "id"];
setLog
(boolean value) bool log = 6 [json_name = "log"];
string name = 2 [json_name = "name"];
setNameBytes
(com.google.protobuf.ByteString value) string name = 2 [json_name = "name"];
setOneShot
(boolean value) bool one_shot = 5 [json_name = "oneShot"];
setStopSignal
(int value) int32 stop_signal = 7 [json_name = "stopSignal"];
setStopTimeout
(com.google.protobuf.Duration value) .google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"];
setStopTimeout
(com.google.protobuf.Duration.Builder builderForValue) .google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"];
setUsername
(String value) string username = 10 [json_name = "username"];
setUsernameBytes
(com.google.protobuf.ByteString value) string username = 10 [json_name = "username"];
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getId
string id = 1 [json_name = "id"];
- Specified by:
getId
in interfaceRobot.ProcessConfigOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()string id = 1 [json_name = "id"];
- Specified by:
getIdBytes
in interfaceRobot.ProcessConfigOrBuilder
- Returns:
- The bytes for id.
-
setId
string id = 1 [json_name = "id"];
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
string id = 1 [json_name = "id"];
- Returns:
- This builder for chaining.
-
setIdBytes
string id = 1 [json_name = "id"];
- Parameters:
value
- The bytes for id to set.- Returns:
- This builder for chaining.
-
getName
string name = 2 [json_name = "name"];
- Specified by:
getName
in interfaceRobot.ProcessConfigOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 2 [json_name = "name"];
- Specified by:
getNameBytes
in interfaceRobot.ProcessConfigOrBuilder
- Returns:
- The bytes for name.
-
setName
string name = 2 [json_name = "name"];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
string name = 2 [json_name = "name"];
- Returns:
- This builder for chaining.
-
setNameBytes
string name = 2 [json_name = "name"];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getArgsList
repeated string args = 3 [json_name = "args"];
- Specified by:
getArgsList
in interfaceRobot.ProcessConfigOrBuilder
- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()repeated string args = 3 [json_name = "args"];
- Specified by:
getArgsCount
in interfaceRobot.ProcessConfigOrBuilder
- Returns:
- The count of args.
-
getArgs
repeated string args = 3 [json_name = "args"];
- Specified by:
getArgs
in interfaceRobot.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 interfaceRobot.ProcessConfigOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
setArgs
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
repeated string args = 3 [json_name = "args"];
- Parameters:
value
- The args to add.- Returns:
- This builder for chaining.
-
addAllArgs
repeated string args = 3 [json_name = "args"];
- Parameters:
values
- The args to add.- Returns:
- This builder for chaining.
-
clearArgs
repeated string args = 3 [json_name = "args"];
- Returns:
- This builder for chaining.
-
addArgsBytes
repeated string args = 3 [json_name = "args"];
- Parameters:
value
- The bytes of the args to add.- Returns:
- This builder for chaining.
-
getCwd
string cwd = 4 [json_name = "cwd"];
- Specified by:
getCwd
in interfaceRobot.ProcessConfigOrBuilder
- Returns:
- The cwd.
-
getCwdBytes
public com.google.protobuf.ByteString getCwdBytes()string cwd = 4 [json_name = "cwd"];
- Specified by:
getCwdBytes
in interfaceRobot.ProcessConfigOrBuilder
- Returns:
- The bytes for cwd.
-
setCwd
string cwd = 4 [json_name = "cwd"];
- Parameters:
value
- The cwd to set.- Returns:
- This builder for chaining.
-
clearCwd
string cwd = 4 [json_name = "cwd"];
- Returns:
- This builder for chaining.
-
setCwdBytes
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 interfaceRobot.ProcessConfigOrBuilder
- Returns:
- The oneShot.
-
setOneShot
bool one_shot = 5 [json_name = "oneShot"];
- Parameters:
value
- The oneShot to set.- Returns:
- This builder for chaining.
-
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 interfaceRobot.ProcessConfigOrBuilder
- Returns:
- The log.
-
setLog
bool log = 6 [json_name = "log"];
- Parameters:
value
- The log to set.- Returns:
- This builder for chaining.
-
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 interfaceRobot.ProcessConfigOrBuilder
- Returns:
- The stopSignal.
-
setStopSignal
int32 stop_signal = 7 [json_name = "stopSignal"];
- Parameters:
value
- The stopSignal to set.- Returns:
- This builder for chaining.
-
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 interfaceRobot.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 interfaceRobot.ProcessConfigOrBuilder
- Returns:
- The stopTimeout.
-
setStopTimeout
.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
.google.protobuf.Duration stop_timeout = 8 [json_name = "stopTimeout"];
-
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 interfaceRobot.ProcessConfigOrBuilder
-
containsEnv
additional environment variables passed to the process
map<string, string> env = 9 [json_name = "env"];
- Specified by:
containsEnv
in interfaceRobot.ProcessConfigOrBuilder
-
clearEnv
-
removeEnv
additional environment variables passed to the process
map<string, string> env = 9 [json_name = "env"];
-
getEnv
Deprecated.UsegetEnvMap()
instead.- Specified by:
getEnv
in interfaceRobot.ProcessConfigOrBuilder
-
getEnvMap
additional environment variables passed to the process
map<string, string> env = 9 [json_name = "env"];
- Specified by:
getEnvMap
in interfaceRobot.ProcessConfigOrBuilder
-
getEnvOrDefault
additional environment variables passed to the process
map<string, string> env = 9 [json_name = "env"];
- Specified by:
getEnvOrDefault
in interfaceRobot.ProcessConfigOrBuilder
-
getEnvOrThrow
additional environment variables passed to the process
map<string, string> env = 9 [json_name = "env"];
- Specified by:
getEnvOrThrow
in interfaceRobot.ProcessConfigOrBuilder
-
putEnv
additional environment variables passed to the process
map<string, string> env = 9 [json_name = "env"];
-
putAllEnv
additional environment variables passed to the process
map<string, string> env = 9 [json_name = "env"];
-
getUsername
string username = 10 [json_name = "username"];
- Specified by:
getUsername
in interfaceRobot.ProcessConfigOrBuilder
- Returns:
- The username.
-
getUsernameBytes
public com.google.protobuf.ByteString getUsernameBytes()string username = 10 [json_name = "username"];
- Specified by:
getUsernameBytes
in interfaceRobot.ProcessConfigOrBuilder
- Returns:
- The bytes for username.
-
setUsername
string username = 10 [json_name = "username"];
- Parameters:
value
- The username to set.- Returns:
- This builder for chaining.
-
clearUsername
string username = 10 [json_name = "username"];
- Returns:
- This builder for chaining.
-
setUsernameBytes
string username = 10 [json_name = "username"];
- Parameters:
value
- The bytes for username to set.- Returns:
- This builder for chaining.
-