Skip to content

Commit 8b280ef

Browse files
Automated Protos Update (viamrobotics#863)
Co-authored-by: viambot <[email protected]>
1 parent 40ddbb7 commit 8b280ef

File tree

5 files changed

+560
-723
lines changed

5 files changed

+560
-723
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import grpclib.server
88
from ... import app
99
from ... import common
10-
import google.protobuf.any_pb2
1110
import google.protobuf.struct_pb2
1211
import google.protobuf.timestamp_pb2
1312
from ... import tagger

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

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

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

Lines changed: 40 additions & 177 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ from ... import app
66
import builtins
77
import collections.abc
88
from ... import common
9-
import google.protobuf.any_pb2
109
import google.protobuf.descriptor
1110
import google.protobuf.internal.containers
1211
import google.protobuf.internal.enum_type_wrapper
@@ -652,33 +651,16 @@ global___GetOrganizationMetadataRequest = GetOrganizationMetadataRequest
652651
@typing.final
653652
class GetOrganizationMetadataResponse(google.protobuf.message.Message):
654653
DESCRIPTOR: google.protobuf.descriptor.Descriptor
655-
656-
@typing.final
657-
class DataEntry(google.protobuf.message.Message):
658-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
659-
KEY_FIELD_NUMBER: builtins.int
660-
VALUE_FIELD_NUMBER: builtins.int
661-
key: builtins.str
662-
663-
@property
664-
def value(self) -> google.protobuf.any_pb2.Any:
665-
...
666-
667-
def __init__(self, *, key: builtins.str=..., value: google.protobuf.any_pb2.Any | None=...) -> None:
668-
...
669-
670-
def HasField(self, field_name: typing.Literal['value', b'value']) -> builtins.bool:
671-
...
672-
673-
def ClearField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> None:
674-
...
675654
DATA_FIELD_NUMBER: builtins.int
676655

677656
@property
678-
def data(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, google.protobuf.any_pb2.Any]:
657+
def data(self) -> google.protobuf.struct_pb2.Struct:
658+
...
659+
660+
def __init__(self, *, data: google.protobuf.struct_pb2.Struct | None=...) -> None:
679661
...
680662

681-
def __init__(self, *, data: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None=...) -> None:
663+
def HasField(self, field_name: typing.Literal['data', b'data']) -> builtins.bool:
682664
...
683665

684666
def ClearField(self, field_name: typing.Literal['data', b'data']) -> None:
@@ -688,35 +670,18 @@ global___GetOrganizationMetadataResponse = GetOrganizationMetadataResponse
688670
@typing.final
689671
class UpdateOrganizationMetadataRequest(google.protobuf.message.Message):
690672
DESCRIPTOR: google.protobuf.descriptor.Descriptor
691-
692-
@typing.final
693-
class DataEntry(google.protobuf.message.Message):
694-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
695-
KEY_FIELD_NUMBER: builtins.int
696-
VALUE_FIELD_NUMBER: builtins.int
697-
key: builtins.str
698-
699-
@property
700-
def value(self) -> google.protobuf.any_pb2.Any:
701-
...
702-
703-
def __init__(self, *, key: builtins.str=..., value: google.protobuf.any_pb2.Any | None=...) -> None:
704-
...
705-
706-
def HasField(self, field_name: typing.Literal['value', b'value']) -> builtins.bool:
707-
...
708-
709-
def ClearField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> None:
710-
...
711673
ORGANIZATION_ID_FIELD_NUMBER: builtins.int
712674
DATA_FIELD_NUMBER: builtins.int
713675
organization_id: builtins.str
714676

715677
@property
716-
def data(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, google.protobuf.any_pb2.Any]:
678+
def data(self) -> google.protobuf.struct_pb2.Struct:
679+
...
680+
681+
def __init__(self, *, organization_id: builtins.str=..., data: google.protobuf.struct_pb2.Struct | None=...) -> None:
717682
...
718683

719-
def __init__(self, *, organization_id: builtins.str=..., data: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None=...) -> None:
684+
def HasField(self, field_name: typing.Literal['data', b'data']) -> builtins.bool:
720685
...
721686

722687
def ClearField(self, field_name: typing.Literal['data', b'data', 'organization_id', b'organization_id']) -> None:
@@ -1485,33 +1450,16 @@ global___GetLocationMetadataRequest = GetLocationMetadataRequest
14851450
@typing.final
14861451
class GetLocationMetadataResponse(google.protobuf.message.Message):
14871452
DESCRIPTOR: google.protobuf.descriptor.Descriptor
1488-
1489-
@typing.final
1490-
class DataEntry(google.protobuf.message.Message):
1491-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
1492-
KEY_FIELD_NUMBER: builtins.int
1493-
VALUE_FIELD_NUMBER: builtins.int
1494-
key: builtins.str
1495-
1496-
@property
1497-
def value(self) -> google.protobuf.any_pb2.Any:
1498-
...
1499-
1500-
def __init__(self, *, key: builtins.str=..., value: google.protobuf.any_pb2.Any | None=...) -> None:
1501-
...
1502-
1503-
def HasField(self, field_name: typing.Literal['value', b'value']) -> builtins.bool:
1504-
...
1505-
1506-
def ClearField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> None:
1507-
...
15081453
DATA_FIELD_NUMBER: builtins.int
15091454

15101455
@property
1511-
def data(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, google.protobuf.any_pb2.Any]:
1456+
def data(self) -> google.protobuf.struct_pb2.Struct:
1457+
...
1458+
1459+
def __init__(self, *, data: google.protobuf.struct_pb2.Struct | None=...) -> None:
15121460
...
15131461

1514-
def __init__(self, *, data: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None=...) -> None:
1462+
def HasField(self, field_name: typing.Literal['data', b'data']) -> builtins.bool:
15151463
...
15161464

15171465
def ClearField(self, field_name: typing.Literal['data', b'data']) -> None:
@@ -1521,35 +1469,18 @@ global___GetLocationMetadataResponse = GetLocationMetadataResponse
15211469
@typing.final
15221470
class UpdateLocationMetadataRequest(google.protobuf.message.Message):
15231471
DESCRIPTOR: google.protobuf.descriptor.Descriptor
1524-
1525-
@typing.final
1526-
class DataEntry(google.protobuf.message.Message):
1527-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
1528-
KEY_FIELD_NUMBER: builtins.int
1529-
VALUE_FIELD_NUMBER: builtins.int
1530-
key: builtins.str
1531-
1532-
@property
1533-
def value(self) -> google.protobuf.any_pb2.Any:
1534-
...
1535-
1536-
def __init__(self, *, key: builtins.str=..., value: google.protobuf.any_pb2.Any | None=...) -> None:
1537-
...
1538-
1539-
def HasField(self, field_name: typing.Literal['value', b'value']) -> builtins.bool:
1540-
...
1541-
1542-
def ClearField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> None:
1543-
...
15441472
LOCATION_ID_FIELD_NUMBER: builtins.int
15451473
DATA_FIELD_NUMBER: builtins.int
15461474
location_id: builtins.str
15471475

15481476
@property
1549-
def data(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, google.protobuf.any_pb2.Any]:
1477+
def data(self) -> google.protobuf.struct_pb2.Struct:
1478+
...
1479+
1480+
def __init__(self, *, location_id: builtins.str=..., data: google.protobuf.struct_pb2.Struct | None=...) -> None:
15501481
...
15511482

1552-
def __init__(self, *, location_id: builtins.str=..., data: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None=...) -> None:
1483+
def HasField(self, field_name: typing.Literal['data', b'data']) -> builtins.bool:
15531484
...
15541485

15551486
def ClearField(self, field_name: typing.Literal['data', b'data', 'location_id', b'location_id']) -> None:
@@ -2155,33 +2086,16 @@ global___GetRobotPartMetadataRequest = GetRobotPartMetadataRequest
21552086
@typing.final
21562087
class GetRobotPartMetadataResponse(google.protobuf.message.Message):
21572088
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2158-
2159-
@typing.final
2160-
class DataEntry(google.protobuf.message.Message):
2161-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2162-
KEY_FIELD_NUMBER: builtins.int
2163-
VALUE_FIELD_NUMBER: builtins.int
2164-
key: builtins.str
2165-
2166-
@property
2167-
def value(self) -> google.protobuf.any_pb2.Any:
2168-
...
2169-
2170-
def __init__(self, *, key: builtins.str=..., value: google.protobuf.any_pb2.Any | None=...) -> None:
2171-
...
2172-
2173-
def HasField(self, field_name: typing.Literal['value', b'value']) -> builtins.bool:
2174-
...
2175-
2176-
def ClearField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> None:
2177-
...
21782089
DATA_FIELD_NUMBER: builtins.int
21792090

21802091
@property
2181-
def data(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, google.protobuf.any_pb2.Any]:
2092+
def data(self) -> google.protobuf.struct_pb2.Struct:
2093+
...
2094+
2095+
def __init__(self, *, data: google.protobuf.struct_pb2.Struct | None=...) -> None:
21822096
...
21832097

2184-
def __init__(self, *, data: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None=...) -> None:
2098+
def HasField(self, field_name: typing.Literal['data', b'data']) -> builtins.bool:
21852099
...
21862100

21872101
def ClearField(self, field_name: typing.Literal['data', b'data']) -> None:
@@ -2191,35 +2105,18 @@ global___GetRobotPartMetadataResponse = GetRobotPartMetadataResponse
21912105
@typing.final
21922106
class UpdateRobotPartMetadataRequest(google.protobuf.message.Message):
21932107
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2194-
2195-
@typing.final
2196-
class DataEntry(google.protobuf.message.Message):
2197-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2198-
KEY_FIELD_NUMBER: builtins.int
2199-
VALUE_FIELD_NUMBER: builtins.int
2200-
key: builtins.str
2201-
2202-
@property
2203-
def value(self) -> google.protobuf.any_pb2.Any:
2204-
...
2205-
2206-
def __init__(self, *, key: builtins.str=..., value: google.protobuf.any_pb2.Any | None=...) -> None:
2207-
...
2208-
2209-
def HasField(self, field_name: typing.Literal['value', b'value']) -> builtins.bool:
2210-
...
2211-
2212-
def ClearField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> None:
2213-
...
22142108
ID_FIELD_NUMBER: builtins.int
22152109
DATA_FIELD_NUMBER: builtins.int
22162110
id: builtins.str
22172111

22182112
@property
2219-
def data(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, google.protobuf.any_pb2.Any]:
2113+
def data(self) -> google.protobuf.struct_pb2.Struct:
2114+
...
2115+
2116+
def __init__(self, *, id: builtins.str=..., data: google.protobuf.struct_pb2.Struct | None=...) -> None:
22202117
...
22212118

2222-
def __init__(self, *, id: builtins.str=..., data: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None=...) -> None:
2119+
def HasField(self, field_name: typing.Literal['data', b'data']) -> builtins.bool:
22232120
...
22242121

22252122
def ClearField(self, field_name: typing.Literal['data', b'data', 'id', b'id']) -> None:
@@ -3055,33 +2952,16 @@ global___GetRobotMetadataRequest = GetRobotMetadataRequest
30552952
@typing.final
30562953
class GetRobotMetadataResponse(google.protobuf.message.Message):
30572954
DESCRIPTOR: google.protobuf.descriptor.Descriptor
3058-
3059-
@typing.final
3060-
class DataEntry(google.protobuf.message.Message):
3061-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
3062-
KEY_FIELD_NUMBER: builtins.int
3063-
VALUE_FIELD_NUMBER: builtins.int
3064-
key: builtins.str
3065-
3066-
@property
3067-
def value(self) -> google.protobuf.any_pb2.Any:
3068-
...
3069-
3070-
def __init__(self, *, key: builtins.str=..., value: google.protobuf.any_pb2.Any | None=...) -> None:
3071-
...
3072-
3073-
def HasField(self, field_name: typing.Literal['value', b'value']) -> builtins.bool:
3074-
...
3075-
3076-
def ClearField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> None:
3077-
...
30782955
DATA_FIELD_NUMBER: builtins.int
30792956

30802957
@property
3081-
def data(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, google.protobuf.any_pb2.Any]:
2958+
def data(self) -> google.protobuf.struct_pb2.Struct:
2959+
...
2960+
2961+
def __init__(self, *, data: google.protobuf.struct_pb2.Struct | None=...) -> None:
30822962
...
30832963

3084-
def __init__(self, *, data: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None=...) -> None:
2964+
def HasField(self, field_name: typing.Literal['data', b'data']) -> builtins.bool:
30852965
...
30862966

30872967
def ClearField(self, field_name: typing.Literal['data', b'data']) -> None:
@@ -3091,35 +2971,18 @@ global___GetRobotMetadataResponse = GetRobotMetadataResponse
30912971
@typing.final
30922972
class UpdateRobotMetadataRequest(google.protobuf.message.Message):
30932973
DESCRIPTOR: google.protobuf.descriptor.Descriptor
3094-
3095-
@typing.final
3096-
class DataEntry(google.protobuf.message.Message):
3097-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
3098-
KEY_FIELD_NUMBER: builtins.int
3099-
VALUE_FIELD_NUMBER: builtins.int
3100-
key: builtins.str
3101-
3102-
@property
3103-
def value(self) -> google.protobuf.any_pb2.Any:
3104-
...
3105-
3106-
def __init__(self, *, key: builtins.str=..., value: google.protobuf.any_pb2.Any | None=...) -> None:
3107-
...
3108-
3109-
def HasField(self, field_name: typing.Literal['value', b'value']) -> builtins.bool:
3110-
...
3111-
3112-
def ClearField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> None:
3113-
...
31142974
ID_FIELD_NUMBER: builtins.int
31152975
DATA_FIELD_NUMBER: builtins.int
31162976
id: builtins.str
31172977

31182978
@property
3119-
def data(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, google.protobuf.any_pb2.Any]:
2979+
def data(self) -> google.protobuf.struct_pb2.Struct:
2980+
...
2981+
2982+
def __init__(self, *, id: builtins.str=..., data: google.protobuf.struct_pb2.Struct | None=...) -> None:
31202983
...
31212984

3122-
def __init__(self, *, id: builtins.str=..., data: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None=...) -> None:
2985+
def HasField(self, field_name: typing.Literal['data', b'data']) -> builtins.bool:
31232986
...
31242987

31252988
def ClearField(self, field_name: typing.Literal['data', b'data', 'id', b'id']) -> None:

src/viam/proto/robot/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
CancelOperationRequest,
1111
CancelOperationResponse,
1212
ConfigStatus,
13+
DiscoverComponentsRequest,
14+
DiscoverComponentsResponse,
15+
Discovery,
16+
DiscoveryQuery,
1317
FrameSystemConfig,
1418
FrameSystemConfigRequest,
1519
FrameSystemConfigResponse,
@@ -74,6 +78,10 @@
7478
"CancelOperationRequest",
7579
"CancelOperationResponse",
7680
"ConfigStatus",
81+
"DiscoverComponentsRequest",
82+
"DiscoverComponentsResponse",
83+
"Discovery",
84+
"DiscoveryQuery",
7785
"FrameSystemConfig",
7886
"FrameSystemConfigRequest",
7987
"FrameSystemConfigResponse",

src/viam/version_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
__version__ = "0.42.0"
22

3-
API_VERSION = "v0.1.399"
3+
API_VERSION = "v0.1.400"
44
SDK_VERSION = __version__

0 commit comments

Comments
 (0)