Skip to content

Commit ee5ef57

Browse files
Automated Protos Update (#674)
Co-authored-by: viambot <[email protected]>
1 parent ff5a17b commit ee5ef57

File tree

6 files changed

+314
-258
lines changed

6 files changed

+314
-258
lines changed

src/viam/gen/app/v1/app_grpc.py

Lines changed: 9 additions & 1 deletion
Large diffs are not rendered by default.

src/viam/gen/app/v1/app_pb2.py

Lines changed: 173 additions & 169 deletions
Large diffs are not rendered by default.

src/viam/gen/app/v1/app_pb2.pyi

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,6 +1989,43 @@ class ListRobotsRequest(google.protobuf.message.Message):
19891989
...
19901990
global___ListRobotsRequest = ListRobotsRequest
19911991

1992+
@typing.final
1993+
class ListMachineFragmentsRequest(google.protobuf.message.Message):
1994+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
1995+
MACHINE_ID_FIELD_NUMBER: builtins.int
1996+
ADDITIONAL_FRAGMENT_IDS_FIELD_NUMBER: builtins.int
1997+
machine_id: builtins.str
1998+
"the machine_id used to filter fragments defined in a machine's parts.\n Also returns any fragments nested within the fragments defined in parts.\n "
1999+
2000+
@property
2001+
def additional_fragment_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
2002+
"""additional fragment_ids to append to the response. useful when needing to view fragments that will be
2003+
provisionally added to the machine alongside existing fragments.
2004+
"""
2005+
2006+
def __init__(self, *, machine_id: builtins.str=..., additional_fragment_ids: collections.abc.Iterable[builtins.str] | None=...) -> None:
2007+
...
2008+
2009+
def ClearField(self, field_name: typing.Literal['additional_fragment_ids', b'additional_fragment_ids', 'machine_id', b'machine_id']) -> None:
2010+
...
2011+
global___ListMachineFragmentsRequest = ListMachineFragmentsRequest
2012+
2013+
@typing.final
2014+
class ListMachineFragmentsResponse(google.protobuf.message.Message):
2015+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2016+
FRAGMENTS_FIELD_NUMBER: builtins.int
2017+
2018+
@property
2019+
def fragments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Fragment]:
2020+
...
2021+
2022+
def __init__(self, *, fragments: collections.abc.Iterable[global___Fragment] | None=...) -> None:
2023+
...
2024+
2025+
def ClearField(self, field_name: typing.Literal['fragments', b'fragments']) -> None:
2026+
...
2027+
global___ListMachineFragmentsResponse = ListMachineFragmentsResponse
2028+
19922029
@typing.final
19932030
class ListRobotsResponse(google.protobuf.message.Message):
19942031
DESCRIPTOR: google.protobuf.descriptor.Descriptor

src/viam/gen/app/v1/robot_pb2.py

Lines changed: 86 additions & 86 deletions
Large diffs are not rendered by default.

src/viam/gen/app/v1/robot_pb2.pyi

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,14 @@ class RobotConfig(google.protobuf.message.Message):
5757
OVERWRITE_FRAGMENT_STATUS_FIELD_NUMBER: builtins.int
5858
ENABLE_WEB_PROFILE_FIELD_NUMBER: builtins.int
5959
LOG_FIELD_NUMBER: builtins.int
60+
REVISION_FIELD_NUMBER: builtins.int
6061
debug: builtins.bool
6162
'Turns on debug mode for robot, adding an echo server and more logging and tracing. Only works after restart'
6263
disable_partial_start: builtins.bool
6364
enable_web_profile: builtins.bool
6465
'Turns on pprof http server on localhost. By default false.'
66+
revision: builtins.str
67+
'Attributes a particular revision to the config.'
6568

6669
@property
6770
def cloud(self) -> global___CloudConfig:
@@ -107,13 +110,13 @@ class RobotConfig(google.protobuf.message.Message):
107110
def log(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LogPatternConfig]:
108111
...
109112

110-
def __init__(self, *, cloud: global___CloudConfig | None=..., remotes: collections.abc.Iterable[global___RemoteConfig] | None=..., components: collections.abc.Iterable[global___ComponentConfig] | None=..., processes: collections.abc.Iterable[global___ProcessConfig] | None=..., services: collections.abc.Iterable[global___ServiceConfig] | None=..., network: global___NetworkConfig | None=..., auth: global___AuthConfig | None=..., debug: builtins.bool | None=..., modules: collections.abc.Iterable[global___ModuleConfig] | None=..., disable_partial_start: builtins.bool | None=..., packages: collections.abc.Iterable[global___PackageConfig] | None=..., overwrite_fragment_status: collections.abc.Iterable[global___AppValidationStatus] | None=..., enable_web_profile: builtins.bool=..., log: collections.abc.Iterable[global___LogPatternConfig] | None=...) -> None:
113+
def __init__(self, *, cloud: global___CloudConfig | None=..., remotes: collections.abc.Iterable[global___RemoteConfig] | None=..., components: collections.abc.Iterable[global___ComponentConfig] | None=..., processes: collections.abc.Iterable[global___ProcessConfig] | None=..., services: collections.abc.Iterable[global___ServiceConfig] | None=..., network: global___NetworkConfig | None=..., auth: global___AuthConfig | None=..., debug: builtins.bool | None=..., modules: collections.abc.Iterable[global___ModuleConfig] | None=..., disable_partial_start: builtins.bool | None=..., packages: collections.abc.Iterable[global___PackageConfig] | None=..., overwrite_fragment_status: collections.abc.Iterable[global___AppValidationStatus] | None=..., enable_web_profile: builtins.bool=..., log: collections.abc.Iterable[global___LogPatternConfig] | None=..., revision: builtins.str=...) -> None:
111114
...
112115

113116
def HasField(self, field_name: typing.Literal['_auth', b'_auth', '_debug', b'_debug', '_disable_partial_start', b'_disable_partial_start', '_network', b'_network', 'auth', b'auth', 'cloud', b'cloud', 'debug', b'debug', 'disable_partial_start', b'disable_partial_start', 'network', b'network']) -> builtins.bool:
114117
...
115118

116-
def ClearField(self, field_name: typing.Literal['_auth', b'_auth', '_debug', b'_debug', '_disable_partial_start', b'_disable_partial_start', '_network', b'_network', 'auth', b'auth', 'cloud', b'cloud', 'components', b'components', 'debug', b'debug', 'disable_partial_start', b'disable_partial_start', 'enable_web_profile', b'enable_web_profile', 'log', b'log', 'modules', b'modules', 'network', b'network', 'overwrite_fragment_status', b'overwrite_fragment_status', 'packages', b'packages', 'processes', b'processes', 'remotes', b'remotes', 'services', b'services']) -> None:
119+
def ClearField(self, field_name: typing.Literal['_auth', b'_auth', '_debug', b'_debug', '_disable_partial_start', b'_disable_partial_start', '_network', b'_network', 'auth', b'auth', 'cloud', b'cloud', 'components', b'components', 'debug', b'debug', 'disable_partial_start', b'disable_partial_start', 'enable_web_profile', b'enable_web_profile', 'log', b'log', 'modules', b'modules', 'network', b'network', 'overwrite_fragment_status', b'overwrite_fragment_status', 'packages', b'packages', 'processes', b'processes', 'remotes', b'remotes', 'revision', b'revision', 'services', b'services']) -> None:
117120
...
118121

119122
@typing.overload

src/viam/proto/app/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@
102102
ListKeysResponse,
103103
ListLocationsRequest,
104104
ListLocationsResponse,
105+
ListMachineFragmentsRequest,
106+
ListMachineFragmentsResponse,
105107
ListModulesRequest,
106108
ListModulesResponse,
107109
ListOrganizationMembersRequest,
@@ -289,6 +291,8 @@
289291
"ListKeysResponse",
290292
"ListLocationsRequest",
291293
"ListLocationsResponse",
294+
"ListMachineFragmentsRequest",
295+
"ListMachineFragmentsResponse",
292296
"ListModulesRequest",
293297
"ListModulesResponse",
294298
"ListOrganizationMembersRequest",

0 commit comments

Comments
 (0)