Skip to content

Commit 6a80592

Browse files
authored
Automated Protos Update (viamrobotics#872)
Co-authored-by: viambot <[email protected]>
1 parent b028ffa commit 6a80592

File tree

7 files changed

+525
-287
lines changed

7 files changed

+525
-287
lines changed

src/viam/gen/app/mltraining/v1/ml_training_pb2.py

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

src/viam/gen/app/mltraining/v1/ml_training_pb2.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,21 +91,23 @@ class SubmitTrainingJobRequest(google.protobuf.message.Message):
9191
MODEL_NAME_FIELD_NUMBER: builtins.int
9292
MODEL_VERSION_FIELD_NUMBER: builtins.int
9393
MODEL_TYPE_FIELD_NUMBER: builtins.int
94+
MODEL_FRAMEWORK_FIELD_NUMBER: builtins.int
9495
TAGS_FIELD_NUMBER: builtins.int
9596
dataset_id: builtins.str
9697
organization_id: builtins.str
9798
model_name: builtins.str
9899
model_version: builtins.str
99100
model_type: global___ModelType.ValueType
101+
model_framework: global___ModelFramework.ValueType
100102

101103
@property
102104
def tags(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
103105
...
104106

105-
def __init__(self, *, dataset_id: builtins.str=..., organization_id: builtins.str=..., model_name: builtins.str=..., model_version: builtins.str=..., model_type: global___ModelType.ValueType=..., tags: collections.abc.Iterable[builtins.str] | None=...) -> None:
107+
def __init__(self, *, dataset_id: builtins.str=..., organization_id: builtins.str=..., model_name: builtins.str=..., model_version: builtins.str=..., model_type: global___ModelType.ValueType=..., model_framework: global___ModelFramework.ValueType=..., tags: collections.abc.Iterable[builtins.str] | None=...) -> None:
106108
...
107109

108-
def ClearField(self, field_name: typing.Literal['dataset_id', b'dataset_id', 'model_name', b'model_name', 'model_type', b'model_type', 'model_version', b'model_version', 'organization_id', b'organization_id', 'tags', b'tags']) -> None:
110+
def ClearField(self, field_name: typing.Literal['dataset_id', b'dataset_id', 'model_framework', b'model_framework', 'model_name', b'model_name', 'model_type', b'model_type', 'model_version', b'model_version', 'organization_id', b'organization_id', 'tags', b'tags']) -> None:
109111
...
110112
global___SubmitTrainingJobRequest = SubmitTrainingJobRequest
111113

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: 257 additions & 241 deletions
Large diffs are not rendered by default.

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

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2835,6 +2835,200 @@ class ListMachineFragmentsResponse(google.protobuf.message.Message):
28352835
...
28362836
global___ListMachineFragmentsResponse = ListMachineFragmentsResponse
28372837

2838+
@typing.final
2839+
class ListMachineSummariesRequest(google.protobuf.message.Message):
2840+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2841+
ORGANIZATION_ID_FIELD_NUMBER: builtins.int
2842+
organization_id: builtins.str
2843+
2844+
def __init__(self, *, organization_id: builtins.str=...) -> None:
2845+
...
2846+
2847+
def ClearField(self, field_name: typing.Literal['organization_id', b'organization_id']) -> None:
2848+
...
2849+
global___ListMachineSummariesRequest = ListMachineSummariesRequest
2850+
2851+
@typing.final
2852+
class ListMachineSummariesResponse(google.protobuf.message.Message):
2853+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2854+
LOCATION_SUMMARIES_FIELD_NUMBER: builtins.int
2855+
2856+
@property
2857+
def location_summaries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LocationSummary]:
2858+
...
2859+
2860+
def __init__(self, *, location_summaries: collections.abc.Iterable[global___LocationSummary] | None=...) -> None:
2861+
...
2862+
2863+
def ClearField(self, field_name: typing.Literal['location_summaries', b'location_summaries']) -> None:
2864+
...
2865+
global___ListMachineSummariesResponse = ListMachineSummariesResponse
2866+
2867+
@typing.final
2868+
class LocationSummary(google.protobuf.message.Message):
2869+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2870+
LOCATION_ID_FIELD_NUMBER: builtins.int
2871+
LOCATION_NAME_FIELD_NUMBER: builtins.int
2872+
MACHINE_SUMMARIES_FIELD_NUMBER: builtins.int
2873+
location_id: builtins.str
2874+
location_name: builtins.str
2875+
2876+
@property
2877+
def machine_summaries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MachineSummary]:
2878+
...
2879+
2880+
def __init__(self, *, location_id: builtins.str=..., location_name: builtins.str=..., machine_summaries: collections.abc.Iterable[global___MachineSummary] | None=...) -> None:
2881+
...
2882+
2883+
def ClearField(self, field_name: typing.Literal['location_id', b'location_id', 'location_name', b'location_name', 'machine_summaries', b'machine_summaries']) -> None:
2884+
...
2885+
global___LocationSummary = LocationSummary
2886+
2887+
@typing.final
2888+
class MachineSummary(google.protobuf.message.Message):
2889+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2890+
MACHINE_ID_FIELD_NUMBER: builtins.int
2891+
MACHINE_NAME_FIELD_NUMBER: builtins.int
2892+
PART_SUMMARIES_FIELD_NUMBER: builtins.int
2893+
machine_id: builtins.str
2894+
machine_name: builtins.str
2895+
2896+
@property
2897+
def part_summaries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PartSummary]:
2898+
...
2899+
2900+
def __init__(self, *, machine_id: builtins.str=..., machine_name: builtins.str=..., part_summaries: collections.abc.Iterable[global___PartSummary] | None=...) -> None:
2901+
...
2902+
2903+
def ClearField(self, field_name: typing.Literal['machine_id', b'machine_id', 'machine_name', b'machine_name', 'part_summaries', b'part_summaries']) -> None:
2904+
...
2905+
global___MachineSummary = MachineSummary
2906+
2907+
@typing.final
2908+
class FragmentSummary(google.protobuf.message.Message):
2909+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2910+
ID_FIELD_NUMBER: builtins.int
2911+
NAME_FIELD_NUMBER: builtins.int
2912+
id: builtins.str
2913+
name: builtins.str
2914+
2915+
def __init__(self, *, id: builtins.str=..., name: builtins.str=...) -> None:
2916+
...
2917+
2918+
def ClearField(self, field_name: typing.Literal['id', b'id', 'name', b'name']) -> None:
2919+
...
2920+
global___FragmentSummary = FragmentSummary
2921+
2922+
@typing.final
2923+
class ViamServerVersion(google.protobuf.message.Message):
2924+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2925+
MAJOR_FIELD_NUMBER: builtins.int
2926+
MINOR_FIELD_NUMBER: builtins.int
2927+
major: builtins.str
2928+
minor: builtins.str
2929+
2930+
def __init__(self, *, major: builtins.str=..., minor: builtins.str=...) -> None:
2931+
...
2932+
2933+
def HasField(self, field_name: typing.Literal['major', b'major', 'minor', b'minor', 'version', b'version']) -> builtins.bool:
2934+
...
2935+
2936+
def ClearField(self, field_name: typing.Literal['major', b'major', 'minor', b'minor', 'version', b'version']) -> None:
2937+
...
2938+
2939+
def WhichOneof(self, oneof_group: typing.Literal['version', b'version']) -> typing.Literal['major', 'minor'] | None:
2940+
...
2941+
global___ViamServerVersion = ViamServerVersion
2942+
2943+
@typing.final
2944+
class ViamAgentVersion(google.protobuf.message.Message):
2945+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2946+
MAJOR_FIELD_NUMBER: builtins.int
2947+
MINOR_FIELD_NUMBER: builtins.int
2948+
major: builtins.str
2949+
minor: builtins.str
2950+
2951+
def __init__(self, *, major: builtins.str=..., minor: builtins.str=...) -> None:
2952+
...
2953+
2954+
def HasField(self, field_name: typing.Literal['major', b'major', 'minor', b'minor', 'version', b'version']) -> builtins.bool:
2955+
...
2956+
2957+
def ClearField(self, field_name: typing.Literal['major', b'major', 'minor', b'minor', 'version', b'version']) -> None:
2958+
...
2959+
2960+
def WhichOneof(self, oneof_group: typing.Literal['version', b'version']) -> typing.Literal['major', 'minor'] | None:
2961+
...
2962+
global___ViamAgentVersion = ViamAgentVersion
2963+
2964+
@typing.final
2965+
class PartSummary(google.protobuf.message.Message):
2966+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
2967+
PART_ID_FIELD_NUMBER: builtins.int
2968+
PART_NAME_FIELD_NUMBER: builtins.int
2969+
LAST_ONLINE_FIELD_NUMBER: builtins.int
2970+
VIAM_SERVER_VERSION_FIELD_NUMBER: builtins.int
2971+
VIAM_AGENT_VERSION_FIELD_NUMBER: builtins.int
2972+
OS_FIELD_NUMBER: builtins.int
2973+
PLATFORM_FIELD_NUMBER: builtins.int
2974+
PUBLIC_IP_ADDRESS_FIELD_NUMBER: builtins.int
2975+
FRAGMENTS_FIELD_NUMBER: builtins.int
2976+
part_id: builtins.str
2977+
part_name: builtins.str
2978+
os: builtins.str
2979+
platform: builtins.str
2980+
public_ip_address: builtins.str
2981+
2982+
@property
2983+
def last_online(self) -> google.protobuf.timestamp_pb2.Timestamp:
2984+
...
2985+
2986+
@property
2987+
def viam_server_version(self) -> global___ViamServerVersion:
2988+
...
2989+
2990+
@property
2991+
def viam_agent_version(self) -> global___ViamAgentVersion:
2992+
...
2993+
2994+
@property
2995+
def fragments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FragmentSummary]:
2996+
...
2997+
2998+
def __init__(self, *, part_id: builtins.str=..., part_name: builtins.str=..., last_online: google.protobuf.timestamp_pb2.Timestamp | None=..., viam_server_version: global___ViamServerVersion | None=..., viam_agent_version: global___ViamAgentVersion | None=..., os: builtins.str | None=..., platform: builtins.str | None=..., public_ip_address: builtins.str | None=..., fragments: collections.abc.Iterable[global___FragmentSummary] | None=...) -> None:
2999+
...
3000+
3001+
def HasField(self, field_name: typing.Literal['_last_online', b'_last_online', '_os', b'_os', '_platform', b'_platform', '_public_ip_address', b'_public_ip_address', '_viam_agent_version', b'_viam_agent_version', '_viam_server_version', b'_viam_server_version', 'last_online', b'last_online', 'os', b'os', 'platform', b'platform', 'public_ip_address', b'public_ip_address', 'viam_agent_version', b'viam_agent_version', 'viam_server_version', b'viam_server_version']) -> builtins.bool:
3002+
...
3003+
3004+
def ClearField(self, field_name: typing.Literal['_last_online', b'_last_online', '_os', b'_os', '_platform', b'_platform', '_public_ip_address', b'_public_ip_address', '_viam_agent_version', b'_viam_agent_version', '_viam_server_version', b'_viam_server_version', 'fragments', b'fragments', 'last_online', b'last_online', 'os', b'os', 'part_id', b'part_id', 'part_name', b'part_name', 'platform', b'platform', 'public_ip_address', b'public_ip_address', 'viam_agent_version', b'viam_agent_version', 'viam_server_version', b'viam_server_version']) -> None:
3005+
...
3006+
3007+
@typing.overload
3008+
def WhichOneof(self, oneof_group: typing.Literal['_last_online', b'_last_online']) -> typing.Literal['last_online'] | None:
3009+
...
3010+
3011+
@typing.overload
3012+
def WhichOneof(self, oneof_group: typing.Literal['_os', b'_os']) -> typing.Literal['os'] | None:
3013+
...
3014+
3015+
@typing.overload
3016+
def WhichOneof(self, oneof_group: typing.Literal['_platform', b'_platform']) -> typing.Literal['platform'] | None:
3017+
...
3018+
3019+
@typing.overload
3020+
def WhichOneof(self, oneof_group: typing.Literal['_public_ip_address', b'_public_ip_address']) -> typing.Literal['public_ip_address'] | None:
3021+
...
3022+
3023+
@typing.overload
3024+
def WhichOneof(self, oneof_group: typing.Literal['_viam_agent_version', b'_viam_agent_version']) -> typing.Literal['viam_agent_version'] | None:
3025+
...
3026+
3027+
@typing.overload
3028+
def WhichOneof(self, oneof_group: typing.Literal['_viam_server_version', b'_viam_server_version']) -> typing.Literal['viam_server_version'] | None:
3029+
...
3030+
global___PartSummary = PartSummary
3031+
28383032
@typing.final
28393033
class ListRobotsResponse(google.protobuf.message.Message):
28403034
DESCRIPTOR: google.protobuf.descriptor.Descriptor

src/viam/proto/app/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
FragmentErrorType,
8686
FragmentHistoryEntry,
8787
FragmentRevision,
88+
FragmentSummary,
8889
FragmentTag,
8990
FragmentUsage,
9091
FragmentVisibility,
@@ -144,6 +145,8 @@
144145
ListLocationsResponse,
145146
ListMachineFragmentsRequest,
146147
ListMachineFragmentsResponse,
148+
ListMachineSummariesRequest,
149+
ListMachineSummariesResponse,
147150
ListModulesRequest,
148151
ListModulesResponse,
149152
ListOAuthAppsRequest,
@@ -163,6 +166,8 @@
163166
LocationAuthRequest,
164167
LocationAuthResponse,
165168
LocationOrganization,
169+
LocationSummary,
170+
MachineSummary,
166171
MarkPartAsMainRequest,
167172
MarkPartAsMainResponse,
168173
MarkPartForRestartRequest,
@@ -193,6 +198,7 @@
193198
OrganizationSetSupportEmailRequest,
194199
OrganizationSetSupportEmailResponse,
195200
OrgDetails,
201+
PartSummary,
196202
ReadOAuthAppRequest,
197203
ReadOAuthAppResponse,
198204
RegistryItem,
@@ -260,6 +266,8 @@
260266
Uploads,
261267
URLValidation,
262268
VersionHistory,
269+
ViamAgentVersion,
270+
ViamServerVersion,
263271
Visibility,
264272
)
265273

@@ -346,6 +354,7 @@
346354
"FragmentErrorType",
347355
"FragmentHistoryEntry",
348356
"FragmentRevision",
357+
"FragmentSummary",
349358
"FragmentTag",
350359
"FragmentUsage",
351360
"FragmentVisibility",
@@ -405,6 +414,8 @@
405414
"ListLocationsResponse",
406415
"ListMachineFragmentsRequest",
407416
"ListMachineFragmentsResponse",
417+
"ListMachineSummariesRequest",
418+
"ListMachineSummariesResponse",
408419
"ListModulesRequest",
409420
"ListModulesResponse",
410421
"ListOAuthAppsRequest",
@@ -424,9 +435,11 @@
424435
"LocationAuthRequest",
425436
"LocationAuthResponse",
426437
"LocationOrganization",
438+
"LocationSummary",
427439
"MLModelMetadata",
428440
"MLTrainingMetadata",
429441
"MLTrainingVersion",
442+
"MachineSummary",
430443
"MarkPartAsMainRequest",
431444
"MarkPartAsMainResponse",
432445
"MarkPartForRestartRequest",
@@ -455,6 +468,7 @@
455468
"OrganizationSetSupportEmailRequest",
456469
"OrganizationSetSupportEmailResponse",
457470
"PKCE",
471+
"PartSummary",
458472
"ReadOAuthAppRequest",
459473
"ReadOAuthAppResponse",
460474
"RegistryItem",
@@ -522,5 +536,7 @@
522536
"UploadModuleFileResponse",
523537
"Uploads",
524538
"VersionHistory",
539+
"ViamAgentVersion",
540+
"ViamServerVersion",
525541
"Visibility",
526542
]

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.404"
3+
API_VERSION = "v0.1.407"
44
SDK_VERSION = __version__

0 commit comments

Comments
 (0)