Skip to content

Automated Protos Update #848

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 26 additions & 18 deletions src/viam/gen/app/agent/v1/agent_pb2.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
_sym_db = _symbol_database.Default()
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18app/agent/v1/agent.proto\x12\x11viam.app.agent.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto"\x9d\x02\n\x18DeviceAgentConfigRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x128\n\thost_info\x18\x02 \x01(\x0b2\x1b.viam.app.agent.v1.HostInfoR\x08hostInfo\x12q\n\x12subsystem_versions\x18\x03 \x03(\x0b2B.viam.app.agent.v1.DeviceAgentConfigRequest.SubsystemVersionsEntryR\x11subsystemVersions\x1aD\n\x16SubsystemVersionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x028\x01"\xbd\x02\n\x19DeviceAgentConfigResponse\x12o\n\x11subsystem_configs\x18\x01 \x03(\x0b2B.viam.app.agent.v1.DeviceAgentConfigResponse.SubsystemConfigsEntryR\x10subsystemConfigs\x12@\n\x0echeck_interval\x18\x02 \x01(\x0b2\x19.google.protobuf.DurationR\rcheckInterval\x1am\n\x15SubsystemConfigsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12>\n\x05value\x18\x02 \x01(\x0b2(.viam.app.agent.v1.DeviceSubsystemConfigR\x05value:\x028\x01"\xd8\x01\n\x15DeviceSubsystemConfig\x12G\n\x0bupdate_info\x18\x01 \x01(\x0b2&.viam.app.agent.v1.SubsystemUpdateInfoR\nupdateInfo\x12\x18\n\x07disable\x18\x02 \x01(\x08R\x07disable\x12#\n\rforce_restart\x18\x03 \x01(\x08R\x0cforceRestart\x127\n\nattributes\x18\x04 \x01(\x0b2\x17.google.protobuf.StructR\nattributes"R\n\x08HostInfo\x12\x1a\n\x08platform\x18\x01 \x01(\tR\x08platform\x12\x16\n\x06distro\x18\x02 \x01(\tR\x06distro\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags"\xaf\x01\n\x13SubsystemUpdateInfo\x12\x1a\n\x08filename\x18\x01 \x01(\tR\x08filename\x12\x10\n\x03url\x18\x02 \x01(\tR\x03url\x12\x18\n\x07version\x18\x03 \x01(\tR\x07version\x12\x16\n\x06sha256\x18\x04 \x01(\x0cR\x06sha256\x128\n\x06format\x18\x05 \x01(\x0e2 .viam.app.agent.v1.PackageFormatR\x06format*\x9f\x01\n\rPackageFormat\x12\x1e\n\x1aPACKAGE_FORMAT_UNSPECIFIED\x10\x00\x12\x16\n\x12PACKAGE_FORMAT_RAW\x10\x01\x12\x15\n\x11PACKAGE_FORMAT_XZ\x10\x02\x12\x1d\n\x19PACKAGE_FORMAT_EXECUTABLE\x10\x03\x12 \n\x1cPACKAGE_FORMAT_XZ_EXECUTABLE\x10\x042\x84\x01\n\x12AgentDeviceService\x12n\n\x11DeviceAgentConfig\x12+.viam.app.agent.v1.DeviceAgentConfigRequest\x1a,.viam.app.agent.v1.DeviceAgentConfigResponseB\x1eZ\x1cgo.viam.com/api/app/agent/v1b\x06proto3')
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18app/agent/v1/agent.proto\x12\x11viam.app.agent.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto"\xe4\x02\n\x18DeviceAgentConfigRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x128\n\thost_info\x18\x02 \x01(\x0b2\x1b.viam.app.agent.v1.HostInfoR\x08hostInfo\x12u\n\x12subsystem_versions\x18\x03 \x03(\x0b2B.viam.app.agent.v1.DeviceAgentConfigRequest.SubsystemVersionsEntryB\x02\x18\x01R\x11subsystemVersions\x12A\n\x0cversion_info\x18\x04 \x01(\x0b2\x1e.viam.app.agent.v1.VersionInfoR\x0bversionInfo\x1aD\n\x16SubsystemVersionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x028\x01"\x8c\x06\n\x19DeviceAgentConfigResponse\x12s\n\x11subsystem_configs\x18\x01 \x03(\x0b2B.viam.app.agent.v1.DeviceAgentConfigResponse.SubsystemConfigsEntryB\x02\x18\x01R\x10subsystemConfigs\x12@\n\x0echeck_interval\x18\x02 \x01(\x0b2\x19.google.protobuf.DurationR\rcheckInterval\x12I\n\x11agent_update_info\x18\x03 \x01(\x0b2\x1d.viam.app.agent.v1.UpdateInfoR\x0fagentUpdateInfo\x12T\n\x17viam_server_update_info\x18\x04 \x01(\x0b2\x1d.viam.app.agent.v1.UpdateInfoR\x14viamServerUpdateInfo\x12D\n\x11advanced_settings\x18\x05 \x01(\x0b2\x17.google.protobuf.StructR\x10advancedSettings\x12L\n\x15network_configuration\x18\x06 \x01(\x0b2\x17.google.protobuf.StructR\x14networkConfiguration\x12H\n\x13additional_networks\x18\x07 \x01(\x0b2\x17.google.protobuf.StructR\x12additionalNetworks\x12J\n\x14system_configuration\x18\x08 \x01(\x0b2\x17.google.protobuf.StructR\x13systemConfiguration\x1am\n\x15SubsystemConfigsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12>\n\x05value\x18\x02 \x01(\x0b2(.viam.app.agent.v1.DeviceSubsystemConfigR\x05value:\x028\x01"\xd3\x01\n\x15DeviceSubsystemConfig\x12>\n\x0bupdate_info\x18\x01 \x01(\x0b2\x1d.viam.app.agent.v1.UpdateInfoR\nupdateInfo\x12\x18\n\x07disable\x18\x02 \x01(\x08R\x07disable\x12#\n\rforce_restart\x18\x03 \x01(\x08R\x0cforceRestart\x127\n\nattributes\x18\x04 \x01(\x0b2\x17.google.protobuf.StructR\nattributes:\x02\x18\x01"\xbf\x01\n\x0bVersionInfo\x12#\n\ragent_running\x18\x01 \x01(\tR\x0cagentRunning\x12\'\n\x0fagent_installed\x18\x02 \x01(\tR\x0eagentInstalled\x12.\n\x13viam_server_running\x18\x03 \x01(\tR\x11viamServerRunning\x122\n\x15viam_server_installed\x18\x04 \x01(\tR\x13viamServerInstalled"R\n\x08HostInfo\x12\x1a\n\x08platform\x18\x01 \x01(\tR\x08platform\x12\x16\n\x06distro\x18\x02 \x01(\tR\x06distro\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags"\xa6\x01\n\nUpdateInfo\x12\x1a\n\x08filename\x18\x01 \x01(\tR\x08filename\x12\x10\n\x03url\x18\x02 \x01(\tR\x03url\x12\x18\n\x07version\x18\x03 \x01(\tR\x07version\x12\x16\n\x06sha256\x18\x04 \x01(\x0cR\x06sha256\x128\n\x06format\x18\x05 \x01(\x0e2 .viam.app.agent.v1.PackageFormatR\x06format*\x9f\x01\n\rPackageFormat\x12\x1e\n\x1aPACKAGE_FORMAT_UNSPECIFIED\x10\x00\x12\x16\n\x12PACKAGE_FORMAT_RAW\x10\x01\x12\x15\n\x11PACKAGE_FORMAT_XZ\x10\x02\x12\x1d\n\x19PACKAGE_FORMAT_EXECUTABLE\x10\x03\x12 \n\x1cPACKAGE_FORMAT_XZ_EXECUTABLE\x10\x042\x84\x01\n\x12AgentDeviceService\x12n\n\x11DeviceAgentConfig\x12+.viam.app.agent.v1.DeviceAgentConfigRequest\x1a,.viam.app.agent.v1.DeviceAgentConfigResponseB\x1eZ\x1cgo.viam.com/api/app/agent/v1b\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.agent.v1.agent_pb2', _globals)
Expand All @@ -17,23 +17,31 @@
_globals['DESCRIPTOR']._serialized_options = b'Z\x1cgo.viam.com/api/app/agent/v1'
_globals['_DEVICEAGENTCONFIGREQUEST_SUBSYSTEMVERSIONSENTRY']._loaded_options = None
_globals['_DEVICEAGENTCONFIGREQUEST_SUBSYSTEMVERSIONSENTRY']._serialized_options = b'8\x01'
_globals['_DEVICEAGENTCONFIGREQUEST'].fields_by_name['subsystem_versions']._loaded_options = None
_globals['_DEVICEAGENTCONFIGREQUEST'].fields_by_name['subsystem_versions']._serialized_options = b'\x18\x01'
_globals['_DEVICEAGENTCONFIGRESPONSE_SUBSYSTEMCONFIGSENTRY']._loaded_options = None
_globals['_DEVICEAGENTCONFIGRESPONSE_SUBSYSTEMCONFIGSENTRY']._serialized_options = b'8\x01'
_globals['_PACKAGEFORMAT']._serialized_start = 1199
_globals['_PACKAGEFORMAT']._serialized_end = 1358
_globals['_DEVICEAGENTCONFIGRESPONSE'].fields_by_name['subsystem_configs']._loaded_options = None
_globals['_DEVICEAGENTCONFIGRESPONSE'].fields_by_name['subsystem_configs']._serialized_options = b'\x18\x01'
_globals['_DEVICESUBSYSTEMCONFIG']._loaded_options = None
_globals['_DEVICESUBSYSTEMCONFIG']._serialized_options = b'\x18\x01'
_globals['_PACKAGEFORMAT']._serialized_start = 1913
_globals['_PACKAGEFORMAT']._serialized_end = 2072
_globals['_DEVICEAGENTCONFIGREQUEST']._serialized_start = 110
_globals['_DEVICEAGENTCONFIGREQUEST']._serialized_end = 395
_globals['_DEVICEAGENTCONFIGREQUEST_SUBSYSTEMVERSIONSENTRY']._serialized_start = 327
_globals['_DEVICEAGENTCONFIGREQUEST_SUBSYSTEMVERSIONSENTRY']._serialized_end = 395
_globals['_DEVICEAGENTCONFIGRESPONSE']._serialized_start = 398
_globals['_DEVICEAGENTCONFIGRESPONSE']._serialized_end = 715
_globals['_DEVICEAGENTCONFIGRESPONSE_SUBSYSTEMCONFIGSENTRY']._serialized_start = 606
_globals['_DEVICEAGENTCONFIGRESPONSE_SUBSYSTEMCONFIGSENTRY']._serialized_end = 715
_globals['_DEVICESUBSYSTEMCONFIG']._serialized_start = 718
_globals['_DEVICESUBSYSTEMCONFIG']._serialized_end = 934
_globals['_HOSTINFO']._serialized_start = 936
_globals['_HOSTINFO']._serialized_end = 1018
_globals['_SUBSYSTEMUPDATEINFO']._serialized_start = 1021
_globals['_SUBSYSTEMUPDATEINFO']._serialized_end = 1196
_globals['_AGENTDEVICESERVICE']._serialized_start = 1361
_globals['_AGENTDEVICESERVICE']._serialized_end = 1493
_globals['_DEVICEAGENTCONFIGREQUEST']._serialized_end = 466
_globals['_DEVICEAGENTCONFIGREQUEST_SUBSYSTEMVERSIONSENTRY']._serialized_start = 398
_globals['_DEVICEAGENTCONFIGREQUEST_SUBSYSTEMVERSIONSENTRY']._serialized_end = 466
_globals['_DEVICEAGENTCONFIGRESPONSE']._serialized_start = 469
_globals['_DEVICEAGENTCONFIGRESPONSE']._serialized_end = 1249
_globals['_DEVICEAGENTCONFIGRESPONSE_SUBSYSTEMCONFIGSENTRY']._serialized_start = 1140
_globals['_DEVICEAGENTCONFIGRESPONSE_SUBSYSTEMCONFIGSENTRY']._serialized_end = 1249
_globals['_DEVICESUBSYSTEMCONFIG']._serialized_start = 1252
_globals['_DEVICESUBSYSTEMCONFIG']._serialized_end = 1463
_globals['_VERSIONINFO']._serialized_start = 1466
_globals['_VERSIONINFO']._serialized_end = 1657
_globals['_HOSTINFO']._serialized_start = 1659
_globals['_HOSTINFO']._serialized_end = 1741
_globals['_UPDATEINFO']._serialized_start = 1744
_globals['_UPDATEINFO']._serialized_end = 1910
_globals['_AGENTDEVICESERVICE']._serialized_start = 2075
_globals['_AGENTDEVICESERVICE']._serialized_end = 2207
84 changes: 73 additions & 11 deletions src/viam/gen/app/agent/v1/agent_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class DeviceAgentConfigRequest(google.protobuf.message.Message):
ID_FIELD_NUMBER: builtins.int
HOST_INFO_FIELD_NUMBER: builtins.int
SUBSYSTEM_VERSIONS_FIELD_NUMBER: builtins.int
VERSION_INFO_FIELD_NUMBER: builtins.int
id: builtins.str
'robot partID'

Expand All @@ -79,15 +80,21 @@ class DeviceAgentConfigRequest(google.protobuf.message.Message):

@property
def subsystem_versions(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
"""current subsystems and versions"""
"""current subsystems and versions
DEPRECATED in favor of version_info
"""

@property
def version_info(self) -> global___VersionInfo:
"""Currently installed versions for agent and viam-server"""

def __init__(self, *, id: builtins.str=..., host_info: global___HostInfo | None=..., subsystem_versions: collections.abc.Mapping[builtins.str, builtins.str] | None=...) -> None:
def __init__(self, *, id: builtins.str=..., host_info: global___HostInfo | None=..., subsystem_versions: collections.abc.Mapping[builtins.str, builtins.str] | None=..., version_info: global___VersionInfo | None=...) -> None:
...

def HasField(self, field_name: typing.Literal['host_info', b'host_info']) -> builtins.bool:
def HasField(self, field_name: typing.Literal['host_info', b'host_info', 'version_info', b'version_info']) -> builtins.bool:
...

def ClearField(self, field_name: typing.Literal['host_info', b'host_info', 'id', b'id', 'subsystem_versions', b'subsystem_versions']) -> None:
def ClearField(self, field_name: typing.Literal['host_info', b'host_info', 'id', b'id', 'subsystem_versions', b'subsystem_versions', 'version_info', b'version_info']) -> None:
...
global___DeviceAgentConfigRequest = DeviceAgentConfigRequest

Expand Down Expand Up @@ -116,29 +123,61 @@ class DeviceAgentConfigResponse(google.protobuf.message.Message):
...
SUBSYSTEM_CONFIGS_FIELD_NUMBER: builtins.int
CHECK_INTERVAL_FIELD_NUMBER: builtins.int
AGENT_UPDATE_INFO_FIELD_NUMBER: builtins.int
VIAM_SERVER_UPDATE_INFO_FIELD_NUMBER: builtins.int
ADVANCED_SETTINGS_FIELD_NUMBER: builtins.int
NETWORK_CONFIGURATION_FIELD_NUMBER: builtins.int
ADDITIONAL_NETWORKS_FIELD_NUMBER: builtins.int
SYSTEM_CONFIGURATION_FIELD_NUMBER: builtins.int

@property
def subsystem_configs(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___DeviceSubsystemConfig]:
"""subsystems to be installed/configured/updated
note: previously installed subsystems will be removed from the system if removed from this list
DEPRECATED in favor of indidivual update_info and settings fields
"""

@property
def check_interval(self) -> google.protobuf.duration_pb2.Duration:
"""how often this request should be repeated"""

def __init__(self, *, subsystem_configs: collections.abc.Mapping[builtins.str, global___DeviceSubsystemConfig] | None=..., check_interval: google.protobuf.duration_pb2.Duration | None=...) -> None:
@property
def agent_update_info(self) -> global___UpdateInfo:
"""update info for agent and viam-server, parsed/processed in App"""

@property
def viam_server_update_info(self) -> global___UpdateInfo:
...

def HasField(self, field_name: typing.Literal['check_interval', b'check_interval']) -> builtins.bool:
@property
def advanced_settings(self) -> google.protobuf.struct_pb2.Struct:
"""various settings that are passed directly to device Agent"""

@property
def network_configuration(self) -> google.protobuf.struct_pb2.Struct:
...

@property
def additional_networks(self) -> google.protobuf.struct_pb2.Struct:
...

def ClearField(self, field_name: typing.Literal['check_interval', b'check_interval', 'subsystem_configs', b'subsystem_configs']) -> None:
@property
def system_configuration(self) -> google.protobuf.struct_pb2.Struct:
...

def __init__(self, *, subsystem_configs: collections.abc.Mapping[builtins.str, global___DeviceSubsystemConfig] | None=..., check_interval: google.protobuf.duration_pb2.Duration | None=..., agent_update_info: global___UpdateInfo | None=..., viam_server_update_info: global___UpdateInfo | None=..., advanced_settings: google.protobuf.struct_pb2.Struct | None=..., network_configuration: google.protobuf.struct_pb2.Struct | None=..., additional_networks: google.protobuf.struct_pb2.Struct | None=..., system_configuration: google.protobuf.struct_pb2.Struct | None=...) -> None:
...

def HasField(self, field_name: typing.Literal['additional_networks', b'additional_networks', 'advanced_settings', b'advanced_settings', 'agent_update_info', b'agent_update_info', 'check_interval', b'check_interval', 'network_configuration', b'network_configuration', 'system_configuration', b'system_configuration', 'viam_server_update_info', b'viam_server_update_info']) -> builtins.bool:
...

def ClearField(self, field_name: typing.Literal['additional_networks', b'additional_networks', 'advanced_settings', b'advanced_settings', 'agent_update_info', b'agent_update_info', 'check_interval', b'check_interval', 'network_configuration', b'network_configuration', 'subsystem_configs', b'subsystem_configs', 'system_configuration', b'system_configuration', 'viam_server_update_info', b'viam_server_update_info']) -> None:
...
global___DeviceAgentConfigResponse = DeviceAgentConfigResponse

@typing.final
class DeviceSubsystemConfig(google.protobuf.message.Message):
"""DEPRECATED as of January 2025"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
UPDATE_INFO_FIELD_NUMBER: builtins.int
DISABLE_FIELD_NUMBER: builtins.int
Expand All @@ -150,14 +189,14 @@ class DeviceSubsystemConfig(google.protobuf.message.Message):
'force_restart will restart the subsystem, even if no updates are available'

@property
def update_info(self) -> global___SubsystemUpdateInfo:
def update_info(self) -> global___UpdateInfo:
"""data needed to download/validate the subsystem"""

@property
def attributes(self) -> google.protobuf.struct_pb2.Struct:
"""arbitrary config sections"""

def __init__(self, *, update_info: global___SubsystemUpdateInfo | None=..., disable: builtins.bool=..., force_restart: builtins.bool=..., attributes: google.protobuf.struct_pb2.Struct | None=...) -> None:
def __init__(self, *, update_info: global___UpdateInfo | None=..., disable: builtins.bool=..., force_restart: builtins.bool=..., attributes: google.protobuf.struct_pb2.Struct | None=...) -> None:
...

def HasField(self, field_name: typing.Literal['attributes', b'attributes', 'update_info', b'update_info']) -> builtins.bool:
Expand All @@ -167,6 +206,29 @@ class DeviceSubsystemConfig(google.protobuf.message.Message):
...
global___DeviceSubsystemConfig = DeviceSubsystemConfig

@typing.final
class VersionInfo(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
AGENT_RUNNING_FIELD_NUMBER: builtins.int
AGENT_INSTALLED_FIELD_NUMBER: builtins.int
VIAM_SERVER_RUNNING_FIELD_NUMBER: builtins.int
VIAM_SERVER_INSTALLED_FIELD_NUMBER: builtins.int
agent_running: builtins.str
'the version of agent currently running and making the request'
agent_installed: builtins.str
'the version of agent installed (will run after restart if different)'
viam_server_running: builtins.str
'the version of viam-server currently running'
viam_server_installed: builtins.str
'the version of viam-server installed (will run after restart if different)'

def __init__(self, *, agent_running: builtins.str=..., agent_installed: builtins.str=..., viam_server_running: builtins.str=..., viam_server_installed: builtins.str=...) -> None:
...

def ClearField(self, field_name: typing.Literal['agent_installed', b'agent_installed', 'agent_running', b'agent_running', 'viam_server_installed', b'viam_server_installed', 'viam_server_running', b'viam_server_running']) -> None:
...
global___VersionInfo = VersionInfo

@typing.final
class HostInfo(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
Expand All @@ -192,7 +254,7 @@ class HostInfo(google.protobuf.message.Message):
global___HostInfo = HostInfo

@typing.final
class SubsystemUpdateInfo(google.protobuf.message.Message):
class UpdateInfo(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
FILENAME_FIELD_NUMBER: builtins.int
URL_FIELD_NUMBER: builtins.int
Expand All @@ -215,4 +277,4 @@ class SubsystemUpdateInfo(google.protobuf.message.Message):

def ClearField(self, field_name: typing.Literal['filename', b'filename', 'format', b'format', 'sha256', b'sha256', 'url', b'url', 'version', b'version']) -> None:
...
global___SubsystemUpdateInfo = SubsystemUpdateInfo
global___UpdateInfo = UpdateInfo
Loading