Package viam.app.v1
Class Robot.ModuleConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Robot.ModuleConfig,Robot.ModuleConfig.Builder>
viam.app.v1.Robot.ModuleConfig
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,Robot.ModuleConfigOrBuilder
- Enclosing class:
- Robot
public static final class Robot.ModuleConfig
extends com.google.protobuf.GeneratedMessageLite<Robot.ModuleConfig,Robot.ModuleConfig.Builder>
implements Robot.ModuleConfigOrBuilder
ModuleConfig is the configuration for a module.Protobuf type
viam.app.v1.ModuleConfig-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classModuleConfig is the configuration for a module.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsEnv(String key) additional environment variables passed to the module processprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) static Robot.ModuleConfiggetEnv()Deprecated.intadditional 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.Durationtimeout for first_run scriptlog level for modulecom.google.protobuf.ByteStringlog level for modulethe id of the module if it is a registry modulecom.google.protobuf.ByteStringthe id of the module if it is a registry modulegetName()string name = 1 [json_name = "name"];com.google.protobuf.ByteStringstring name = 1 [json_name = "name"];getPath()path to the executablecom.google.protobuf.ByteStringpath to the executableinfo about the validity of the modulebooleanwhether we are starting a module in TCP modegetType()type of the module ("local" or "registry")com.google.protobuf.ByteStringtype of the module ("local" or "registry")booleantimeout for first_run scriptbooleaninfo about the validity of the modulestatic Robot.ModuleConfig.Builderstatic Robot.ModuleConfig.BuildernewBuilder(Robot.ModuleConfig prototype) static Robot.ModuleConfigparseDelimitedFrom(InputStream input) static Robot.ModuleConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.ModuleConfigparseFrom(byte[] data) static Robot.ModuleConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.ModuleConfigparseFrom(com.google.protobuf.ByteString data) static Robot.ModuleConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.ModuleConfigparseFrom(com.google.protobuf.CodedInputStream input) static Robot.ModuleConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.ModuleConfigparseFrom(InputStream input) static Robot.ModuleConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Robot.ModuleConfigparseFrom(ByteBuffer data) static Robot.ModuleConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Robot.ModuleConfig>parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER- See Also:
-
LOG_LEVEL_FIELD_NUMBER
public static final int LOG_LEVEL_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
MODULE_ID_FIELD_NUMBER
public static final int MODULE_ID_FIELD_NUMBER- See Also:
-
ENV_FIELD_NUMBER
public static final int ENV_FIELD_NUMBER- See Also:
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER- See Also:
-
FIRST_RUN_TIMEOUT_FIELD_NUMBER
public static final int FIRST_RUN_TIMEOUT_FIELD_NUMBER- See Also:
-
TCP_MODE_FIELD_NUMBER
public static final int TCP_MODE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getName
string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceRobot.ModuleConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceRobot.ModuleConfigOrBuilder- Returns:
- The bytes for name.
-
getPath
path to the executable
string path = 2 [json_name = "path"];- Specified by:
getPathin interfaceRobot.ModuleConfigOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()path to the executable
string path = 2 [json_name = "path"];- Specified by:
getPathBytesin interfaceRobot.ModuleConfigOrBuilder- Returns:
- The bytes for path.
-
getLogLevel
log level for module
string log_level = 3 [json_name = "logLevel"];- Specified by:
getLogLevelin interfaceRobot.ModuleConfigOrBuilder- Returns:
- The logLevel.
-
getLogLevelBytes
public com.google.protobuf.ByteString getLogLevelBytes()log level for module
string log_level = 3 [json_name = "logLevel"];- Specified by:
getLogLevelBytesin interfaceRobot.ModuleConfigOrBuilder- Returns:
- The bytes for logLevel.
-
getType
type of the module ("local" or "registry")string type = 4 [json_name = "type"];- Specified by:
getTypein interfaceRobot.ModuleConfigOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()type of the module ("local" or "registry")string type = 4 [json_name = "type"];- Specified by:
getTypeBytesin interfaceRobot.ModuleConfigOrBuilder- Returns:
- The bytes for type.
-
getModuleId
the id of the module if it is a registry module
string module_id = 5 [json_name = "moduleId"];- Specified by:
getModuleIdin interfaceRobot.ModuleConfigOrBuilder- Returns:
- The moduleId.
-
getModuleIdBytes
public com.google.protobuf.ByteString getModuleIdBytes()the id of the module if it is a registry module
string module_id = 5 [json_name = "moduleId"];- Specified by:
getModuleIdBytesin interfaceRobot.ModuleConfigOrBuilder- Returns:
- The bytes for moduleId.
-
getEnvCount
public int getEnvCount()Description copied from interface:Robot.ModuleConfigOrBuilderadditional environment variables passed to the module process
map<string, string> env = 6 [json_name = "env"];- Specified by:
getEnvCountin interfaceRobot.ModuleConfigOrBuilder
-
containsEnv
additional environment variables passed to the module process
map<string, string> env = 6 [json_name = "env"];- Specified by:
containsEnvin interfaceRobot.ModuleConfigOrBuilder
-
getEnv
Deprecated.UsegetEnvMap()instead.- Specified by:
getEnvin interfaceRobot.ModuleConfigOrBuilder
-
getEnvMap
additional environment variables passed to the module process
map<string, string> env = 6 [json_name = "env"];- Specified by:
getEnvMapin interfaceRobot.ModuleConfigOrBuilder
-
getEnvOrDefault
additional environment variables passed to the module process
map<string, string> env = 6 [json_name = "env"];- Specified by:
getEnvOrDefaultin interfaceRobot.ModuleConfigOrBuilder
-
getEnvOrThrow
additional environment variables passed to the module process
map<string, string> env = 6 [json_name = "env"];- Specified by:
getEnvOrThrowin interfaceRobot.ModuleConfigOrBuilder
-
hasStatus
public boolean hasStatus()info about the validity of the module
.viam.app.v1.AppValidationStatus status = 7 [json_name = "status"];- Specified by:
hasStatusin interfaceRobot.ModuleConfigOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
info about the validity of the module
.viam.app.v1.AppValidationStatus status = 7 [json_name = "status"];- Specified by:
getStatusin interfaceRobot.ModuleConfigOrBuilder- Returns:
- The status.
-
hasFirstRunTimeout
public boolean hasFirstRunTimeout()timeout for first_run script
.google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"];- Specified by:
hasFirstRunTimeoutin interfaceRobot.ModuleConfigOrBuilder- Returns:
- Whether the firstRunTimeout field is set.
-
getFirstRunTimeout
public com.google.protobuf.Duration getFirstRunTimeout()timeout for first_run script
.google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"];- Specified by:
getFirstRunTimeoutin interfaceRobot.ModuleConfigOrBuilder- Returns:
- The firstRunTimeout.
-
getTcpMode
public boolean getTcpMode()whether we are starting a module in TCP mode
bool tcp_mode = 9 [json_name = "tcpMode"];- Specified by:
getTcpModein interfaceRobot.ModuleConfigOrBuilder- Returns:
- The tcpMode.
-
parseFrom
public static Robot.ModuleConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.ModuleConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.ModuleConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.ModuleConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.ModuleConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Robot.ModuleConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Robot.ModuleConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Robot.ModuleConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Robot.ModuleConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Robot.ModuleConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<Robot.ModuleConfig,Robot.ModuleConfig.Builder>
-
getDefaultInstance
-
parser
-