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"];booleancontainsEnv(String key) additional environment variables passed to the processgetArgs(int index) repeated string args = 3 [json_name = "args"];com.google.protobuf.ByteStringgetArgsBytes(int index) repeated string args = 3 [json_name = "args"];intrepeated string args = 3 [json_name = "args"];repeated string args = 3 [json_name = "args"];getCwd()string cwd = 4 [json_name = "cwd"];com.google.protobuf.ByteStringstring cwd = 4 [json_name = "cwd"];getEnv()Deprecated.intadditional 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.ByteStringstring id = 1 [json_name = "id"];booleangetLog()bool log = 6 [json_name = "log"];getName()string name = 2 [json_name = "name"];com.google.protobuf.ByteStringstring name = 2 [json_name = "name"];booleanbool one_shot = 5 [json_name = "oneShot"];intint32 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.ByteStringstring 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, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getId
string id = 1 [json_name = "id"];- Specified by:
getIdin interfaceRobot.ProcessConfigOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()string id = 1 [json_name = "id"];- Specified by:
getIdBytesin 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:
getNamein interfaceRobot.ProcessConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 2 [json_name = "name"];- Specified by:
getNameBytesin 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:
getArgsListin interfaceRobot.ProcessConfigOrBuilder- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()repeated string args = 3 [json_name = "args"];- Specified by:
getArgsCountin interfaceRobot.ProcessConfigOrBuilder- Returns:
- The count of args.
-
getArgs
repeated string args = 3 [json_name = "args"];- Specified by:
getArgsin 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:
getArgsBytesin 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:
getCwdin interfaceRobot.ProcessConfigOrBuilder- Returns:
- The cwd.
-
getCwdBytes
public com.google.protobuf.ByteString getCwdBytes()string cwd = 4 [json_name = "cwd"];- Specified by:
getCwdBytesin 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:
getOneShotin 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:
getLogin 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:
getStopSignalin 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:
hasStopTimeoutin 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:
getStopTimeoutin 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.ProcessConfigOrBuilderadditional environment variables passed to the process
map<string, string> env = 9 [json_name = "env"];- Specified by:
getEnvCountin interfaceRobot.ProcessConfigOrBuilder
-
containsEnv
additional environment variables passed to the process
map<string, string> env = 9 [json_name = "env"];- Specified by:
containsEnvin 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:
getEnvin interfaceRobot.ProcessConfigOrBuilder
-
getEnvMap
additional environment variables passed to the process
map<string, string> env = 9 [json_name = "env"];- Specified by:
getEnvMapin interfaceRobot.ProcessConfigOrBuilder
-
getEnvOrDefault
additional environment variables passed to the process
map<string, string> env = 9 [json_name = "env"];- Specified by:
getEnvOrDefaultin interfaceRobot.ProcessConfigOrBuilder
-
getEnvOrThrow
additional environment variables passed to the process
map<string, string> env = 9 [json_name = "env"];- Specified by:
getEnvOrThrowin 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:
getUsernamein interfaceRobot.ProcessConfigOrBuilder- Returns:
- The username.
-
getUsernameBytes
public com.google.protobuf.ByteString getUsernameBytes()string username = 10 [json_name = "username"];- Specified by:
getUsernameBytesin 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.
-