Skip to content

Commit 1dcc9d4

Browse files
Automated Protos Update (#794)
Co-authored-by: viambot <[email protected]>
1 parent 1e776d1 commit 1dcc9d4

File tree

15 files changed

+542
-503
lines changed

15 files changed

+542
-503
lines changed

src/viam/components/gripper/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,4 @@
88
"Gripper",
99
]
1010

11-
Registry.register_subtype(
12-
ResourceRegistration(Gripper, GripperRPCService, lambda name, channel: GripperClient(name, channel))
13-
)
11+
Registry.register_subtype(ResourceRegistration(Gripper, GripperRPCService, lambda name, channel: GripperClient(name, channel)))

src/viam/gen/app/data/v1/data_pb2.py

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

src/viam/gen/app/data/v1/data_pb2.pyi

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -454,29 +454,9 @@ global___ExportTabularDataRequest = ExportTabularDataRequest
454454
class ExportTabularDataResponse(google.protobuf.message.Message):
455455
"""ExportTabularDataResponse provides unified tabular data and metadata for a single data point from the specified data source."""
456456
DESCRIPTOR: google.protobuf.descriptor.Descriptor
457-
458-
@typing.final
459-
class MethodParametersEntry(google.protobuf.message.Message):
460-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
461-
KEY_FIELD_NUMBER: builtins.int
462-
VALUE_FIELD_NUMBER: builtins.int
463-
key: builtins.str
464-
465-
@property
466-
def value(self) -> google.protobuf.any_pb2.Any:
467-
...
468-
469-
def __init__(self, *, key: builtins.str=..., value: google.protobuf.any_pb2.Any | None=...) -> None:
470-
...
471-
472-
def HasField(self, field_name: typing.Literal['value', b'value']) -> builtins.bool:
473-
...
474-
475-
def ClearField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> None:
476-
...
477457
PART_ID_FIELD_NUMBER: builtins.int
478-
COMPONENT_NAME_FIELD_NUMBER: builtins.int
479-
COMPONENT_TYPE_FIELD_NUMBER: builtins.int
458+
RESOURCE_NAME_FIELD_NUMBER: builtins.int
459+
RESOURCE_SUBTYPE_FIELD_NUMBER: builtins.int
480460
METHOD_NAME_FIELD_NUMBER: builtins.int
481461
TIME_CAPTURED_FIELD_NUMBER: builtins.int
482462
ORGANIZATION_ID_FIELD_NUMBER: builtins.int
@@ -488,8 +468,8 @@ class ExportTabularDataResponse(google.protobuf.message.Message):
488468
TAGS_FIELD_NUMBER: builtins.int
489469
PAYLOAD_FIELD_NUMBER: builtins.int
490470
part_id: builtins.str
491-
component_name: builtins.str
492-
component_type: builtins.str
471+
resource_name: builtins.str
472+
resource_subtype: builtins.str
493473
method_name: builtins.str
494474
organization_id: builtins.str
495475
location_id: builtins.str
@@ -502,7 +482,7 @@ class ExportTabularDataResponse(google.protobuf.message.Message):
502482
...
503483

504484
@property
505-
def method_parameters(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, google.protobuf.any_pb2.Any]:
485+
def method_parameters(self) -> google.protobuf.struct_pb2.Struct:
506486
...
507487

508488
@property
@@ -513,13 +493,13 @@ class ExportTabularDataResponse(google.protobuf.message.Message):
513493
def payload(self) -> google.protobuf.struct_pb2.Struct:
514494
...
515495

516-
def __init__(self, *, part_id: builtins.str=..., component_name: builtins.str=..., component_type: builtins.str=..., method_name: builtins.str=..., time_captured: google.protobuf.timestamp_pb2.Timestamp | None=..., organization_id: builtins.str=..., location_id: builtins.str=..., robot_name: builtins.str=..., robot_id: builtins.str=..., part_name: builtins.str=..., method_parameters: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None=..., tags: collections.abc.Iterable[builtins.str] | None=..., payload: google.protobuf.struct_pb2.Struct | None=...) -> None:
496+
def __init__(self, *, part_id: builtins.str=..., resource_name: builtins.str=..., resource_subtype: builtins.str=..., method_name: builtins.str=..., time_captured: google.protobuf.timestamp_pb2.Timestamp | None=..., organization_id: builtins.str=..., location_id: builtins.str=..., robot_name: builtins.str=..., robot_id: builtins.str=..., part_name: builtins.str=..., method_parameters: google.protobuf.struct_pb2.Struct | None=..., tags: collections.abc.Iterable[builtins.str] | None=..., payload: google.protobuf.struct_pb2.Struct | None=...) -> None:
517497
...
518498

519-
def HasField(self, field_name: typing.Literal['payload', b'payload', 'time_captured', b'time_captured']) -> builtins.bool:
499+
def HasField(self, field_name: typing.Literal['method_parameters', b'method_parameters', 'payload', b'payload', 'time_captured', b'time_captured']) -> builtins.bool:
520500
...
521501

522-
def ClearField(self, field_name: typing.Literal['component_name', b'component_name', 'component_type', b'component_type', 'location_id', b'location_id', 'method_name', b'method_name', 'method_parameters', b'method_parameters', 'organization_id', b'organization_id', 'part_id', b'part_id', 'part_name', b'part_name', 'payload', b'payload', 'robot_id', b'robot_id', 'robot_name', b'robot_name', 'tags', b'tags', 'time_captured', b'time_captured']) -> None:
502+
def ClearField(self, field_name: typing.Literal['location_id', b'location_id', 'method_name', b'method_name', 'method_parameters', b'method_parameters', 'organization_id', b'organization_id', 'part_id', b'part_id', 'part_name', b'part_name', 'payload', b'payload', 'resource_name', b'resource_name', 'resource_subtype', b'resource_subtype', 'robot_id', b'robot_id', 'robot_name', b'robot_name', 'tags', b'tags', 'time_captured', b'time_captured']) -> None:
523503
...
524504
global___ExportTabularDataResponse = ExportTabularDataResponse
525505

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

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

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

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,6 +2099,25 @@ class FragmentError(google.protobuf.message.Message):
20992099
...
21002100
global___FragmentError = FragmentError
21012101

2102+
@typing.final
2103+
class FragmentUsage(google.protobuf.message.Message):
2104+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2105+
FRAGMENT_ID_FIELD_NUMBER: builtins.int
2106+
ORGANIZATIONS_FIELD_NUMBER: builtins.int
2107+
MACHINES_FIELD_NUMBER: builtins.int
2108+
MACHINES_IN_CURRENT_ORG_FIELD_NUMBER: builtins.int
2109+
fragment_id: builtins.int
2110+
organizations: builtins.int
2111+
machines: builtins.int
2112+
machines_in_current_org: builtins.int
2113+
2114+
def __init__(self, *, fragment_id: builtins.int=..., organizations: builtins.int=..., machines: builtins.int=..., machines_in_current_org: builtins.int=...) -> None:
2115+
...
2116+
2117+
def ClearField(self, field_name: typing.Literal['fragment_id', b'fragment_id', 'machines', b'machines', 'machines_in_current_org', b'machines_in_current_org', 'organizations', b'organizations']) -> None:
2118+
...
2119+
global___FragmentUsage = FragmentUsage
2120+
21022121
@typing.final
21032122
class ResolvedFragment(google.protobuf.message.Message):
21042123
DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -2149,47 +2168,59 @@ global___ListFragmentsRequest = ListFragmentsRequest
21492168
class ListFragmentsResponse(google.protobuf.message.Message):
21502169
DESCRIPTOR: google.protobuf.descriptor.Descriptor
21512170
FRAGMENTS_FIELD_NUMBER: builtins.int
2171+
FRAGMENT_USAGES_FIELD_NUMBER: builtins.int
21522172

21532173
@property
21542174
def fragments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Fragment]:
21552175
...
21562176

2157-
def __init__(self, *, fragments: collections.abc.Iterable[global___Fragment] | None=...) -> None:
2177+
@property
2178+
def fragment_usages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FragmentUsage]:
2179+
...
2180+
2181+
def __init__(self, *, fragments: collections.abc.Iterable[global___Fragment] | None=..., fragment_usages: collections.abc.Iterable[global___FragmentUsage] | None=...) -> None:
21582182
...
21592183

2160-
def ClearField(self, field_name: typing.Literal['fragments', b'fragments']) -> None:
2184+
def ClearField(self, field_name: typing.Literal['fragment_usages', b'fragment_usages', 'fragments', b'fragments']) -> None:
21612185
...
21622186
global___ListFragmentsResponse = ListFragmentsResponse
21632187

21642188
@typing.final
21652189
class GetFragmentRequest(google.protobuf.message.Message):
21662190
DESCRIPTOR: google.protobuf.descriptor.Descriptor
21672191
ID_FIELD_NUMBER: builtins.int
2192+
CURRENT_ORGANIZATION_ID_FIELD_NUMBER: builtins.int
21682193
id: builtins.str
2194+
current_organization_id: builtins.str
21692195

2170-
def __init__(self, *, id: builtins.str=...) -> None:
2196+
def __init__(self, *, id: builtins.str=..., current_organization_id: builtins.str=...) -> None:
21712197
...
21722198

2173-
def ClearField(self, field_name: typing.Literal['id', b'id']) -> None:
2199+
def ClearField(self, field_name: typing.Literal['current_organization_id', b'current_organization_id', 'id', b'id']) -> None:
21742200
...
21752201
global___GetFragmentRequest = GetFragmentRequest
21762202

21772203
@typing.final
21782204
class GetFragmentResponse(google.protobuf.message.Message):
21792205
DESCRIPTOR: google.protobuf.descriptor.Descriptor
21802206
FRAGMENT_FIELD_NUMBER: builtins.int
2207+
FRAGMENT_USAGE_FIELD_NUMBER: builtins.int
21812208

21822209
@property
21832210
def fragment(self) -> global___Fragment:
21842211
...
21852212

2186-
def __init__(self, *, fragment: global___Fragment | None=...) -> None:
2213+
@property
2214+
def fragment_usage(self) -> global___FragmentUsage:
21872215
...
21882216

2189-
def HasField(self, field_name: typing.Literal['fragment', b'fragment']) -> builtins.bool:
2217+
def __init__(self, *, fragment: global___Fragment | None=..., fragment_usage: global___FragmentUsage | None=...) -> None:
21902218
...
21912219

2192-
def ClearField(self, field_name: typing.Literal['fragment', b'fragment']) -> None:
2220+
def HasField(self, field_name: typing.Literal['fragment', b'fragment', 'fragment_usage', b'fragment_usage']) -> builtins.bool:
2221+
...
2222+
2223+
def ClearField(self, field_name: typing.Literal['fragment', b'fragment', 'fragment_usage', b'fragment_usage']) -> None:
21932224
...
21942225
global___GetFragmentResponse = GetFragmentResponse
21952226

0 commit comments

Comments
 (0)