Class Agent.DeviceSubsystemConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Agent.DeviceSubsystemConfig,Agent.DeviceSubsystemConfig.Builder>
viam.app.agent.v1.Agent.DeviceSubsystemConfig.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Agent.DeviceSubsystemConfigOrBuilder
Enclosing class:
Agent.DeviceSubsystemConfig

public static final class Agent.DeviceSubsystemConfig.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Agent.DeviceSubsystemConfig,Agent.DeviceSubsystemConfig.Builder> implements Agent.DeviceSubsystemConfigOrBuilder
Protobuf type viam.app.agent.v1.DeviceSubsystemConfig
  • Method Details

    • hasUpdateInfo

      public boolean hasUpdateInfo()
       data needed to download/validate the subsystem
       
      .viam.app.agent.v1.SubsystemUpdateInfo update_info = 1 [json_name = "updateInfo"];
      Specified by:
      hasUpdateInfo in interface Agent.DeviceSubsystemConfigOrBuilder
      Returns:
      Whether the updateInfo field is set.
    • getUpdateInfo

      public Agent.SubsystemUpdateInfo getUpdateInfo()
       data needed to download/validate the subsystem
       
      .viam.app.agent.v1.SubsystemUpdateInfo update_info = 1 [json_name = "updateInfo"];
      Specified by:
      getUpdateInfo in interface Agent.DeviceSubsystemConfigOrBuilder
      Returns:
      The updateInfo.
    • setUpdateInfo

       data needed to download/validate the subsystem
       
      .viam.app.agent.v1.SubsystemUpdateInfo update_info = 1 [json_name = "updateInfo"];
    • setUpdateInfo

       data needed to download/validate the subsystem
       
      .viam.app.agent.v1.SubsystemUpdateInfo update_info = 1 [json_name = "updateInfo"];
    • mergeUpdateInfo

       data needed to download/validate the subsystem
       
      .viam.app.agent.v1.SubsystemUpdateInfo update_info = 1 [json_name = "updateInfo"];
    • clearUpdateInfo

      public Agent.DeviceSubsystemConfig.Builder clearUpdateInfo()
       data needed to download/validate the subsystem
       
      .viam.app.agent.v1.SubsystemUpdateInfo update_info = 1 [json_name = "updateInfo"];
    • getDisable

      public boolean getDisable()
       if this subsystem is disabled and should not be started by the agent
       
      bool disable = 2 [json_name = "disable"];
      Specified by:
      getDisable in interface Agent.DeviceSubsystemConfigOrBuilder
      Returns:
      The disable.
    • setDisable

      public Agent.DeviceSubsystemConfig.Builder setDisable(boolean value)
       if this subsystem is disabled and should not be started by the agent
       
      bool disable = 2 [json_name = "disable"];
      Parameters:
      value - The disable to set.
      Returns:
      This builder for chaining.
    • clearDisable

      public Agent.DeviceSubsystemConfig.Builder clearDisable()
       if this subsystem is disabled and should not be started by the agent
       
      bool disable = 2 [json_name = "disable"];
      Returns:
      This builder for chaining.
    • getForceRestart

      public boolean getForceRestart()
       force_restart will restart the subsystem, even if no updates are available
       
      bool force_restart = 3 [json_name = "forceRestart"];
      Specified by:
      getForceRestart in interface Agent.DeviceSubsystemConfigOrBuilder
      Returns:
      The forceRestart.
    • setForceRestart

      public Agent.DeviceSubsystemConfig.Builder setForceRestart(boolean value)
       force_restart will restart the subsystem, even if no updates are available
       
      bool force_restart = 3 [json_name = "forceRestart"];
      Parameters:
      value - The forceRestart to set.
      Returns:
      This builder for chaining.
    • clearForceRestart

      public Agent.DeviceSubsystemConfig.Builder clearForceRestart()
       force_restart will restart the subsystem, even if no updates are available
       
      bool force_restart = 3 [json_name = "forceRestart"];
      Returns:
      This builder for chaining.
    • hasAttributes

      public boolean hasAttributes()
       arbitrary config sections
       
      .google.protobuf.Struct attributes = 4 [json_name = "attributes"];
      Specified by:
      hasAttributes in interface Agent.DeviceSubsystemConfigOrBuilder
      Returns:
      Whether the attributes field is set.
    • getAttributes

      public com.google.protobuf.Struct getAttributes()
       arbitrary config sections
       
      .google.protobuf.Struct attributes = 4 [json_name = "attributes"];
      Specified by:
      getAttributes in interface Agent.DeviceSubsystemConfigOrBuilder
      Returns:
      The attributes.
    • setAttributes

      public Agent.DeviceSubsystemConfig.Builder setAttributes(com.google.protobuf.Struct value)
       arbitrary config sections
       
      .google.protobuf.Struct attributes = 4 [json_name = "attributes"];
    • setAttributes

      public Agent.DeviceSubsystemConfig.Builder setAttributes(com.google.protobuf.Struct.Builder builderForValue)
       arbitrary config sections
       
      .google.protobuf.Struct attributes = 4 [json_name = "attributes"];
    • mergeAttributes

      public Agent.DeviceSubsystemConfig.Builder mergeAttributes(com.google.protobuf.Struct value)
       arbitrary config sections
       
      .google.protobuf.Struct attributes = 4 [json_name = "attributes"];
    • clearAttributes

      public Agent.DeviceSubsystemConfig.Builder clearAttributes()
       arbitrary config sections
       
      .google.protobuf.Struct attributes = 4 [json_name = "attributes"];