Package viam.app.v1

Class Robot.ModuleConfig.Builder

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

public static final class Robot.ModuleConfig.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Robot.ModuleConfig,Robot.ModuleConfig.Builder> implements Robot.ModuleConfigOrBuilder
 ModuleConfig is the configuration for a module.
 
Protobuf type viam.app.v1.ModuleConfig
  • Method Details

    • getName

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

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

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

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

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

      public String getPath()
       path to the executable
       
      string path = 2 [json_name = "path"];
      Specified by:
      getPath in interface Robot.ModuleConfigOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       path to the executable
       
      string path = 2 [json_name = "path"];
      Specified by:
      getPathBytes in interface Robot.ModuleConfigOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public Robot.ModuleConfig.Builder setPath(String value)
       path to the executable
       
      string path = 2 [json_name = "path"];
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

      public Robot.ModuleConfig.Builder clearPath()
       path to the executable
       
      string path = 2 [json_name = "path"];
      Returns:
      This builder for chaining.
    • setPathBytes

      public Robot.ModuleConfig.Builder setPathBytes(com.google.protobuf.ByteString value)
       path to the executable
       
      string path = 2 [json_name = "path"];
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.
    • getLogLevel

      public String getLogLevel()
       log level for module
       
      string log_level = 3 [json_name = "logLevel"];
      Specified by:
      getLogLevel in interface Robot.ModuleConfigOrBuilder
      Returns:
      The logLevel.
    • getLogLevelBytes

      public com.google.protobuf.ByteString getLogLevelBytes()
       log level for module
       
      string log_level = 3 [json_name = "logLevel"];
      Specified by:
      getLogLevelBytes in interface Robot.ModuleConfigOrBuilder
      Returns:
      The bytes for logLevel.
    • setLogLevel

      public Robot.ModuleConfig.Builder setLogLevel(String value)
       log level for module
       
      string log_level = 3 [json_name = "logLevel"];
      Parameters:
      value - The logLevel to set.
      Returns:
      This builder for chaining.
    • clearLogLevel

      public Robot.ModuleConfig.Builder clearLogLevel()
       log level for module
       
      string log_level = 3 [json_name = "logLevel"];
      Returns:
      This builder for chaining.
    • setLogLevelBytes

      public Robot.ModuleConfig.Builder setLogLevelBytes(com.google.protobuf.ByteString value)
       log level for module
       
      string log_level = 3 [json_name = "logLevel"];
      Parameters:
      value - The bytes for logLevel to set.
      Returns:
      This builder for chaining.
    • getType

      public String getType()
       type of the module ("local" or "registry")
       
      string type = 4 [json_name = "type"];
      Specified by:
      getType in interface Robot.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:
      getTypeBytes in interface Robot.ModuleConfigOrBuilder
      Returns:
      The bytes for type.
    • setType

      public Robot.ModuleConfig.Builder setType(String value)
       type of the module ("local" or "registry")
       
      string type = 4 [json_name = "type"];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Robot.ModuleConfig.Builder clearType()
       type of the module ("local" or "registry")
       
      string type = 4 [json_name = "type"];
      Returns:
      This builder for chaining.
    • setTypeBytes

      public Robot.ModuleConfig.Builder setTypeBytes(com.google.protobuf.ByteString value)
       type of the module ("local" or "registry")
       
      string type = 4 [json_name = "type"];
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getModuleId

      public String getModuleId()
       the id of the module if it is a registry module
       
      string module_id = 5 [json_name = "moduleId"];
      Specified by:
      getModuleId in interface Robot.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:
      getModuleIdBytes in interface Robot.ModuleConfigOrBuilder
      Returns:
      The bytes for moduleId.
    • setModuleId

      public Robot.ModuleConfig.Builder setModuleId(String value)
       the id of the module if it is a registry module
       
      string module_id = 5 [json_name = "moduleId"];
      Parameters:
      value - The moduleId to set.
      Returns:
      This builder for chaining.
    • clearModuleId

      public Robot.ModuleConfig.Builder clearModuleId()
       the id of the module if it is a registry module
       
      string module_id = 5 [json_name = "moduleId"];
      Returns:
      This builder for chaining.
    • setModuleIdBytes

      public Robot.ModuleConfig.Builder setModuleIdBytes(com.google.protobuf.ByteString value)
       the id of the module if it is a registry module
       
      string module_id = 5 [json_name = "moduleId"];
      Parameters:
      value - The bytes for moduleId to set.
      Returns:
      This builder for chaining.
    • getEnvCount

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

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

      public Robot.ModuleConfig.Builder clearEnv()
    • removeEnv

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

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

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

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

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

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

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

      public boolean hasStatus()
       info about the validity of the module
       
      .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"];
      Specified by:
      hasStatus in interface Robot.ModuleConfigOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public Robot.AppValidationStatus getStatus()
       info about the validity of the module
       
      .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"];
      Specified by:
      getStatus in interface Robot.ModuleConfigOrBuilder
      Returns:
      The status.
    • setStatus

       info about the validity of the module
       
      .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"];
    • setStatus

       info about the validity of the module
       
      .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"];
    • mergeStatus

       info about the validity of the module
       
      .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"];
    • clearStatus

      public Robot.ModuleConfig.Builder clearStatus()
       info about the validity of the module
       
      .viam.app.v1.AppValidationStatus status = 7 [json_name = "status"];
    • hasFirstRunTimeout

      public boolean hasFirstRunTimeout()
       timeout for first_run script
       
      .google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"];
      Specified by:
      hasFirstRunTimeout in interface Robot.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:
      getFirstRunTimeout in interface Robot.ModuleConfigOrBuilder
      Returns:
      The firstRunTimeout.
    • setFirstRunTimeout

      public Robot.ModuleConfig.Builder setFirstRunTimeout(com.google.protobuf.Duration value)
       timeout for first_run script
       
      .google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"];
    • setFirstRunTimeout

      public Robot.ModuleConfig.Builder setFirstRunTimeout(com.google.protobuf.Duration.Builder builderForValue)
       timeout for first_run script
       
      .google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"];
    • mergeFirstRunTimeout

      public Robot.ModuleConfig.Builder mergeFirstRunTimeout(com.google.protobuf.Duration value)
       timeout for first_run script
       
      .google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"];
    • clearFirstRunTimeout

      public Robot.ModuleConfig.Builder clearFirstRunTimeout()
       timeout for first_run script
       
      .google.protobuf.Duration first_run_timeout = 8 [json_name = "firstRunTimeout"];