Skip to content

Commit 0b087a4

Browse files
nicksanfordviambotnjooma
authored
RSDK-5472 - Change function signature of motion.MoveOnMap (#530)
Co-authored-by: viambot <[email protected]> Co-authored-by: Naveed Jooma <[email protected]>
1 parent 0d0896c commit 0b087a4

File tree

16 files changed

+316
-275
lines changed

16 files changed

+316
-275
lines changed

src/viam/components/movement_sensor/movement_sensor.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import abc
2-
from dataclasses import dataclass
32
import sys
3+
from dataclasses import dataclass
44
from typing import Any, Dict, Final, Mapping, Optional, Tuple
55

66
from typing_extensions import Self
77

88
from viam.components.component_base import ComponentBase
9-
from viam.proto.component.movementsensor import GetPropertiesResponse, GetAccuracyResponse
9+
from viam.proto.component.movementsensor import GetAccuracyResponse, GetPropertiesResponse
1010
from viam.resource.types import RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, Subtype
1111
from viam.utils import SensorReading
1212

@@ -130,9 +130,7 @@ async def get_properties(self, *, extra: Optional[Dict[str, Any]] = None, timeou
130130
...
131131

132132
@abc.abstractmethod
133-
async def get_accuracy(
134-
self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optional[float] = None, **kwargs
135-
) -> Accuracy:
133+
async def get_accuracy(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optional[float] = None, **kwargs) -> Accuracy:
136134
"""Get the accuracy of the various sensors
137135
138136
Returns:

src/viam/gen/app/agent/v1/agent_grpc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
if typing.TYPE_CHECKING:
66
import grpclib.server
77
import google.protobuf.duration_pb2
8+
import google.protobuf.struct_pb2
89
from .... import tagger
910
from .... import app
1011

src/viam/gen/app/agent/v1/agent_pb2.py

Lines changed: 38 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
from google.protobuf import symbol_database as _symbol_database
66
_sym_db = _symbol_database.Default()
77
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
8+
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
89
from ....tagger.v1 import tagger_pb2 as tagger_dot_v1_dot_tagger__pb2
9-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18app/agent/v1/agent.proto\x12\x11viam.app.agent.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x16tagger/v1/tagger.proto"\'\n\x15GetAgentConfigRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"^\n\x16GetAgentConfigResponse\x12D\n\x0cagent_config\x18\x01 \x01(\x0b2!.viam.app.agent.v1.AppAgentConfigR\x0bagentConfig"p\n\x18UpdateAgentConfigRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12D\n\x0cagent_config\x18\x02 \x01(\x0b2!.viam.app.agent.v1.AppAgentConfigR\x0bagentConfig"a\n\x19UpdateAgentConfigResponse\x12D\n\x0cagent_config\x18\x01 \x01(\x0b2!.viam.app.agent.v1.AppAgentConfigR\x0bagentConfig"\x9b\x02\n\x0eAppAgentConfig\x12\x9c\x01\n\x11subsystem_configs\x18\x01 \x03(\x0b27.viam.app.agent.v1.AppAgentConfig.SubsystemConfigsEntryB6\x9a\x84\x9e\x031bson:"subsystem_configs" json:"subsystem_configs"R\x10subsystemConfigs\x1aj\n\x15SubsystemConfigsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12;\n\x05value\x18\x02 \x01(\x0b2%.viam.app.agent.v1.AppSubsystemConfigR\x05value:\x028\x01"\xe0\x02\n\x12AppSubsystemConfig\x12[\n\x0frelease_channel\x18\x01 \x01(\tB2\x9a\x84\x9e\x03-bson:"release_channel" json:"release_channel"R\x0ereleaseChannel\x12K\n\x0bpin_version\x18\x02 \x01(\tB*\x9a\x84\x9e\x03%bson:"pin_version" json:"pin_version"R\npinVersion\x12;\n\x07pin_url\x18\x03 \x01(\tB"\x9a\x84\x9e\x03\x1dbson:"pin_url" json:"pin_url"R\x06pinUrl\x12c\n\x11disable_subsystem\x18\x04 \x01(\x08B6\x9a\x84\x9e\x031bson:"disable_subsystem" json:"disable_subsystem"R\x10disableSubsystem"\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"\x9f\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"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\xe8\x01\n\x0fAgentAppService\x12e\n\x0eGetAgentConfig\x12(.viam.app.agent.v1.GetAgentConfigRequest\x1a).viam.app.agent.v1.GetAgentConfigResponse\x12n\n\x11UpdateAgentConfig\x12+.viam.app.agent.v1.UpdateAgentConfigRequest\x1a,.viam.app.agent.v1.UpdateAgentConfigResponse2\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')
10+
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\x1a\x16tagger/v1/tagger.proto"\'\n\x15GetAgentConfigRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"^\n\x16GetAgentConfigResponse\x12D\n\x0cagent_config\x18\x01 \x01(\x0b2!.viam.app.agent.v1.AppAgentConfigR\x0bagentConfig"p\n\x18UpdateAgentConfigRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12D\n\x0cagent_config\x18\x02 \x01(\x0b2!.viam.app.agent.v1.AppAgentConfigR\x0bagentConfig"a\n\x19UpdateAgentConfigResponse\x12D\n\x0cagent_config\x18\x01 \x01(\x0b2!.viam.app.agent.v1.AppAgentConfigR\x0bagentConfig"\x9b\x02\n\x0eAppAgentConfig\x12\x9c\x01\n\x11subsystem_configs\x18\x01 \x03(\x0b27.viam.app.agent.v1.AppAgentConfig.SubsystemConfigsEntryB6\x9a\x84\x9e\x031bson:"subsystem_configs" json:"subsystem_configs"R\x10subsystemConfigs\x1aj\n\x15SubsystemConfigsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12;\n\x05value\x18\x02 \x01(\x0b2%.viam.app.agent.v1.AppSubsystemConfigR\x05value:\x028\x01"\xc3\x03\n\x12AppSubsystemConfig\x12[\n\x0frelease_channel\x18\x01 \x01(\tB2\x9a\x84\x9e\x03-bson:"release_channel" json:"release_channel"R\x0ereleaseChannel\x12K\n\x0bpin_version\x18\x02 \x01(\tB*\x9a\x84\x9e\x03%bson:"pin_version" json:"pin_version"R\npinVersion\x12;\n\x07pin_url\x18\x03 \x01(\tB"\x9a\x84\x9e\x03\x1dbson:"pin_url" json:"pin_url"R\x06pinUrl\x12c\n\x11disable_subsystem\x18\x04 \x01(\x08B6\x9a\x84\x9e\x031bson:"disable_subsystem" json:"disable_subsystem"R\x10disableSubsystem\x12a\n\nattributes\x18\x05 \x01(\x0b2\x17.google.protobuf.StructB(\x9a\x84\x9e\x03#bson:"attributes" json:"attributes"R\nattributes"\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\xe8\x01\n\x0fAgentAppService\x12e\n\x0eGetAgentConfig\x12(.viam.app.agent.v1.GetAgentConfigRequest\x1a).viam.app.agent.v1.GetAgentConfigResponse\x12n\n\x11UpdateAgentConfig\x12+.viam.app.agent.v1.UpdateAgentConfigRequest\x1a,.viam.app.agent.v1.UpdateAgentConfigResponse2\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')
1011
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
1112
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.agent.v1.agent_pb2', globals())
1213
if _descriptor._USE_C_DESCRIPTORS == False:
@@ -24,41 +25,43 @@
2425
_APPSUBSYSTEMCONFIG.fields_by_name['pin_url']._serialized_options = b'\x9a\x84\x9e\x03\x1dbson:"pin_url" json:"pin_url"'
2526
_APPSUBSYSTEMCONFIG.fields_by_name['disable_subsystem']._options = None
2627
_APPSUBSYSTEMCONFIG.fields_by_name['disable_subsystem']._serialized_options = b'\x9a\x84\x9e\x031bson:"disable_subsystem" json:"disable_subsystem"'
28+
_APPSUBSYSTEMCONFIG.fields_by_name['attributes']._options = None
29+
_APPSUBSYSTEMCONFIG.fields_by_name['attributes']._serialized_options = b'\x9a\x84\x9e\x03#bson:"attributes" json:"attributes"'
2730
_DEVICEAGENTCONFIGREQUEST_SUBSYSTEMVERSIONSENTRY._options = None
2831
_DEVICEAGENTCONFIGREQUEST_SUBSYSTEMVERSIONSENTRY._serialized_options = b'8\x01'
2932
_DEVICEAGENTCONFIGRESPONSE_SUBSYSTEMCONFIGSENTRY._options = None
3033
_DEVICEAGENTCONFIGRESPONSE_SUBSYSTEMCONFIGSENTRY._serialized_options = b'8\x01'
31-
_PACKAGEFORMAT._serialized_start = 2127
32-
_PACKAGEFORMAT._serialized_end = 2286
33-
_GETAGENTCONFIGREQUEST._serialized_start = 103
34-
_GETAGENTCONFIGREQUEST._serialized_end = 142
35-
_GETAGENTCONFIGRESPONSE._serialized_start = 144
36-
_GETAGENTCONFIGRESPONSE._serialized_end = 238
37-
_UPDATEAGENTCONFIGREQUEST._serialized_start = 240
38-
_UPDATEAGENTCONFIGREQUEST._serialized_end = 352
39-
_UPDATEAGENTCONFIGRESPONSE._serialized_start = 354
40-
_UPDATEAGENTCONFIGRESPONSE._serialized_end = 451
41-
_APPAGENTCONFIG._serialized_start = 454
42-
_APPAGENTCONFIG._serialized_end = 737
43-
_APPAGENTCONFIG_SUBSYSTEMCONFIGSENTRY._serialized_start = 631
44-
_APPAGENTCONFIG_SUBSYSTEMCONFIGSENTRY._serialized_end = 737
45-
_APPSUBSYSTEMCONFIG._serialized_start = 740
46-
_APPSUBSYSTEMCONFIG._serialized_end = 1092
47-
_DEVICEAGENTCONFIGREQUEST._serialized_start = 1095
48-
_DEVICEAGENTCONFIGREQUEST._serialized_end = 1380
49-
_DEVICEAGENTCONFIGREQUEST_SUBSYSTEMVERSIONSENTRY._serialized_start = 1312
50-
_DEVICEAGENTCONFIGREQUEST_SUBSYSTEMVERSIONSENTRY._serialized_end = 1380
51-
_DEVICEAGENTCONFIGRESPONSE._serialized_start = 1383
52-
_DEVICEAGENTCONFIGRESPONSE._serialized_end = 1700
53-
_DEVICEAGENTCONFIGRESPONSE_SUBSYSTEMCONFIGSENTRY._serialized_start = 1591
54-
_DEVICEAGENTCONFIGRESPONSE_SUBSYSTEMCONFIGSENTRY._serialized_end = 1700
55-
_DEVICESUBSYSTEMCONFIG._serialized_start = 1703
56-
_DEVICESUBSYSTEMCONFIG._serialized_end = 1862
57-
_HOSTINFO._serialized_start = 1864
58-
_HOSTINFO._serialized_end = 1946
59-
_SUBSYSTEMUPDATEINFO._serialized_start = 1949
60-
_SUBSYSTEMUPDATEINFO._serialized_end = 2124
61-
_AGENTAPPSERVICE._serialized_start = 2289
62-
_AGENTAPPSERVICE._serialized_end = 2521
63-
_AGENTDEVICESERVICE._serialized_start = 2524
64-
_AGENTDEVICESERVICE._serialized_end = 2656
34+
_PACKAGEFORMAT._serialized_start = 2313
35+
_PACKAGEFORMAT._serialized_end = 2472
36+
_GETAGENTCONFIGREQUEST._serialized_start = 133
37+
_GETAGENTCONFIGREQUEST._serialized_end = 172
38+
_GETAGENTCONFIGRESPONSE._serialized_start = 174
39+
_GETAGENTCONFIGRESPONSE._serialized_end = 268
40+
_UPDATEAGENTCONFIGREQUEST._serialized_start = 270
41+
_UPDATEAGENTCONFIGREQUEST._serialized_end = 382
42+
_UPDATEAGENTCONFIGRESPONSE._serialized_start = 384
43+
_UPDATEAGENTCONFIGRESPONSE._serialized_end = 481
44+
_APPAGENTCONFIG._serialized_start = 484
45+
_APPAGENTCONFIG._serialized_end = 767
46+
_APPAGENTCONFIG_SUBSYSTEMCONFIGSENTRY._serialized_start = 661
47+
_APPAGENTCONFIG_SUBSYSTEMCONFIGSENTRY._serialized_end = 767
48+
_APPSUBSYSTEMCONFIG._serialized_start = 770
49+
_APPSUBSYSTEMCONFIG._serialized_end = 1221
50+
_DEVICEAGENTCONFIGREQUEST._serialized_start = 1224
51+
_DEVICEAGENTCONFIGREQUEST._serialized_end = 1509
52+
_DEVICEAGENTCONFIGREQUEST_SUBSYSTEMVERSIONSENTRY._serialized_start = 1441
53+
_DEVICEAGENTCONFIGREQUEST_SUBSYSTEMVERSIONSENTRY._serialized_end = 1509
54+
_DEVICEAGENTCONFIGRESPONSE._serialized_start = 1512
55+
_DEVICEAGENTCONFIGRESPONSE._serialized_end = 1829
56+
_DEVICEAGENTCONFIGRESPONSE_SUBSYSTEMCONFIGSENTRY._serialized_start = 1720
57+
_DEVICEAGENTCONFIGRESPONSE_SUBSYSTEMCONFIGSENTRY._serialized_end = 1829
58+
_DEVICESUBSYSTEMCONFIG._serialized_start = 1832
59+
_DEVICESUBSYSTEMCONFIG._serialized_end = 2048
60+
_HOSTINFO._serialized_start = 2050
61+
_HOSTINFO._serialized_end = 2132
62+
_SUBSYSTEMUPDATEINFO._serialized_start = 2135
63+
_SUBSYSTEMUPDATEINFO._serialized_end = 2310
64+
_AGENTAPPSERVICE._serialized_start = 2475
65+
_AGENTAPPSERVICE._serialized_end = 2707
66+
_AGENTDEVICESERVICE._serialized_start = 2710
67+
_AGENTDEVICESERVICE._serialized_end = 2842

src/viam/gen/app/agent/v1/agent_pb2.pyi

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import google.protobuf.duration_pb2
99
import google.protobuf.internal.containers
1010
import google.protobuf.internal.enum_type_wrapper
1111
import google.protobuf.message
12+
import google.protobuf.struct_pb2
1213
import sys
1314
import typing
1415
if sys.version_info >= (3, 10):
@@ -164,15 +165,23 @@ class AppSubsystemConfig(google.protobuf.message.Message):
164165
PIN_VERSION_FIELD_NUMBER: builtins.int
165166
PIN_URL_FIELD_NUMBER: builtins.int
166167
DISABLE_SUBSYSTEM_FIELD_NUMBER: builtins.int
168+
ATTRIBUTES_FIELD_NUMBER: builtins.int
167169
release_channel: builtins.str
168170
pin_version: builtins.str
169171
pin_url: builtins.str
170172
disable_subsystem: builtins.bool
171173

172-
def __init__(self, *, release_channel: builtins.str=..., pin_version: builtins.str=..., pin_url: builtins.str=..., disable_subsystem: builtins.bool=...) -> None:
174+
@property
175+
def attributes(self) -> google.protobuf.struct_pb2.Struct:
176+
...
177+
178+
def __init__(self, *, release_channel: builtins.str=..., pin_version: builtins.str=..., pin_url: builtins.str=..., disable_subsystem: builtins.bool=..., attributes: google.protobuf.struct_pb2.Struct | None=...) -> None:
173179
...
174180

175-
def ClearField(self, field_name: typing_extensions.Literal['disable_subsystem', b'disable_subsystem', 'pin_url', b'pin_url', 'pin_version', b'pin_version', 'release_channel', b'release_channel']) -> None:
181+
def HasField(self, field_name: typing_extensions.Literal['attributes', b'attributes']) -> builtins.bool:
182+
...
183+
184+
def ClearField(self, field_name: typing_extensions.Literal['attributes', b'attributes', 'disable_subsystem', b'disable_subsystem', 'pin_url', b'pin_url', 'pin_version', b'pin_version', 'release_channel', b'release_channel']) -> None:
176185
...
177186
global___AppSubsystemConfig = AppSubsystemConfig
178187

@@ -270,6 +279,7 @@ class DeviceSubsystemConfig(google.protobuf.message.Message):
270279
UPDATE_INFO_FIELD_NUMBER: builtins.int
271280
DISABLE_FIELD_NUMBER: builtins.int
272281
FORCE_RESTART_FIELD_NUMBER: builtins.int
282+
ATTRIBUTES_FIELD_NUMBER: builtins.int
273283

274284
@property
275285
def update_info(self) -> global___SubsystemUpdateInfo:
@@ -279,13 +289,17 @@ class DeviceSubsystemConfig(google.protobuf.message.Message):
279289
force_restart: builtins.bool
280290
'force_restart will restart the subsystem, even if no updates are available'
281291

282-
def __init__(self, *, update_info: global___SubsystemUpdateInfo | None=..., disable: builtins.bool=..., force_restart: builtins.bool=...) -> None:
292+
@property
293+
def attributes(self) -> google.protobuf.struct_pb2.Struct:
294+
"""arbitrary config sections"""
295+
296+
def __init__(self, *, update_info: global___SubsystemUpdateInfo | None=..., disable: builtins.bool=..., force_restart: builtins.bool=..., attributes: google.protobuf.struct_pb2.Struct | None=...) -> None:
283297
...
284298

285-
def HasField(self, field_name: typing_extensions.Literal['update_info', b'update_info']) -> builtins.bool:
299+
def HasField(self, field_name: typing_extensions.Literal['attributes', b'attributes', 'update_info', b'update_info']) -> builtins.bool:
286300
...
287301

288-
def ClearField(self, field_name: typing_extensions.Literal['disable', b'disable', 'force_restart', b'force_restart', 'update_info', b'update_info']) -> None:
302+
def ClearField(self, field_name: typing_extensions.Literal['attributes', b'attributes', 'disable', b'disable', 'force_restart', b'force_restart', 'update_info', b'update_info']) -> None:
289303
...
290304
global___DeviceSubsystemConfig = DeviceSubsystemConfig
291305

0 commit comments

Comments
 (0)