Package viam.app.agent.v1
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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionarbitrary config sectionsif this subsystem is disabled and should not be started by the agentforce_restart will restart the subsystem, even if no updates are availabledata needed to download/validate the subsystemcom.google.protobuf.Struct
arbitrary config sectionsboolean
if this subsystem is disabled and should not be started by the agentboolean
force_restart will restart the subsystem, even if no updates are availabledata needed to download/validate the subsystemboolean
arbitrary config sectionsboolean
data needed to download/validate the subsystemmergeAttributes
(com.google.protobuf.Struct value) arbitrary config sectionsdata needed to download/validate the subsystemsetAttributes
(com.google.protobuf.Struct value) arbitrary config sectionssetAttributes
(com.google.protobuf.Struct.Builder builderForValue) arbitrary config sectionssetDisable
(boolean value) if this subsystem is disabled and should not be started by the agentsetForceRestart
(boolean value) force_restart will restart the subsystem, even if no updates are availabledata needed to download/validate the subsystemsetUpdateInfo
(Agent.SubsystemUpdateInfo.Builder builderForValue) data needed to download/validate the subsystemMethods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
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 interfaceAgent.DeviceSubsystemConfigOrBuilder
- Returns:
- Whether the updateInfo field is set.
-
getUpdateInfo
data needed to download/validate the subsystem
.viam.app.agent.v1.SubsystemUpdateInfo update_info = 1 [json_name = "updateInfo"];
- Specified by:
getUpdateInfo
in interfaceAgent.DeviceSubsystemConfigOrBuilder
- Returns:
- The updateInfo.
-
setUpdateInfo
data needed to download/validate the subsystem
.viam.app.agent.v1.SubsystemUpdateInfo update_info = 1 [json_name = "updateInfo"];
-
setUpdateInfo
public Agent.DeviceSubsystemConfig.Builder setUpdateInfo(Agent.SubsystemUpdateInfo.Builder builderForValue) 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
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 interfaceAgent.DeviceSubsystemConfigOrBuilder
- Returns:
- The disable.
-
setDisable
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
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 interfaceAgent.DeviceSubsystemConfigOrBuilder
- Returns:
- The forceRestart.
-
setForceRestart
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
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 interfaceAgent.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 interfaceAgent.DeviceSubsystemConfigOrBuilder
- Returns:
- The attributes.
-
setAttributes
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
arbitrary config sections
.google.protobuf.Struct attributes = 4 [json_name = "attributes"];
-
clearAttributes
arbitrary config sections
.google.protobuf.Struct attributes = 4 [json_name = "attributes"];
-