Package viam.app.v1
Interface Robot.ModuleConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Robot.ModuleConfig
,Robot.ModuleConfig.Builder
- Enclosing class:
- Robot
public static interface Robot.ModuleConfigOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsEnv
(String key) additional environment variables passed to the module processgetEnv()
Deprecated.int
additional environment variables passed to the module processadditional environment variables passed to the module processgetEnvOrDefault
(String key, String defaultValue) additional environment variables passed to the module processgetEnvOrThrow
(String key) additional environment variables passed to the module processcom.google.protobuf.Duration
timeout for first_run scriptlog level for modulecom.google.protobuf.ByteString
log level for modulethe id of the module if it is a registry modulecom.google.protobuf.ByteString
the id of the module if it is a registry modulegetName()
string name = 1 [json_name = "name"];
com.google.protobuf.ByteString
string name = 1 [json_name = "name"];
getPath()
path to the executablecom.google.protobuf.ByteString
path to the executableinfo about the validity of the modulegetType()
type of the module ("local" or "registry")com.google.protobuf.ByteString
type of the module ("local" or "registry")boolean
timeout for first_run scriptboolean
info about the validity of the moduleMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getName
String getName()string name = 1 [json_name = "name"];
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()string name = 1 [json_name = "name"];
- Returns:
- The bytes for name.
-
getPath
String getPath()path to the executable
string path = 2 [json_name = "path"];
- Returns:
- The path.
-
getPathBytes
com.google.protobuf.ByteString getPathBytes()path to the executable
string path = 2 [json_name = "path"];
- Returns:
- The bytes for path.
-
getLogLevel
String getLogLevel()log level for module
string log_level = 3 [json_name = "logLevel"];
- Returns:
- The logLevel.
-
getLogLevelBytes
com.google.protobuf.ByteString getLogLevelBytes()log level for module
string log_level = 3 [json_name = "logLevel"];
- Returns:
- The bytes for logLevel.
-
getType
String getType()type of the module ("local" or "registry")
string type = 4 [json_name = "type"];
- Returns:
- The type.
-
getTypeBytes
com.google.protobuf.ByteString getTypeBytes()type of the module ("local" or "registry")
string type = 4 [json_name = "type"];
- Returns:
- The bytes for type.
-
getModuleId
String getModuleId()the id of the module if it is a registry module
string module_id = 5 [json_name = "moduleId"];
- Returns:
- The moduleId.
-
getModuleIdBytes
com.google.protobuf.ByteString getModuleIdBytes()the id of the module if it is a registry module
string module_id = 5 [json_name = "moduleId"];
- Returns:
- The bytes for moduleId.
-
getEnvCount
int getEnvCount()additional environment variables passed to the module process
map<string, string> env = 6 [json_name = "env"];
-
containsEnv
additional environment variables passed to the module process
map<string, string> env = 6 [json_name = "env"];
-
getEnv
Deprecated.UsegetEnvMap()
instead. -
getEnvMap
additional environment variables passed to the module process
map<string, string> env = 6 [json_name = "env"];
-
getEnvOrDefault
additional environment variables passed to the module process
map<string, string> env = 6 [json_name = "env"];
-
getEnvOrThrow
additional environment variables passed to the module process
map<string, string> env = 6 [json_name = "env"];
-
hasStatus
boolean hasStatus()info about the validity of the module
.viam.app.v1.AppValidationStatus status = 7 [json_name = "status"];
- Returns:
- Whether the status field is set.
-
getStatus
Robot.AppValidationStatus getStatus()info about the validity of the module
.viam.app.v1.AppValidationStatus status = 7 [json_name = "status"];
- Returns:
- The status.
-
hasFirstRunTimeout
boolean hasFirstRunTimeout()timeout for first_run script
.google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"];
- Returns:
- Whether the firstRunTimeout field is set.
-
getFirstRunTimeout
com.google.protobuf.Duration getFirstRunTimeout()timeout for first_run script
.google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"];
- Returns:
- The firstRunTimeout.
-