Skip to content

Commit 9f08d73

Browse files
Automated Protos Update (#809)
Co-authored-by: viambot <[email protected]>
1 parent 27e8730 commit 9f08d73

File tree

4 files changed

+137
-126
lines changed

4 files changed

+137
-126
lines changed

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

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

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3449,22 +3449,30 @@ class Model(google.protobuf.message.Message):
34493449
API_FIELD_NUMBER: builtins.int
34503450
MODEL_FIELD_NUMBER: builtins.int
34513451
MARKDOWN_DOCUMENTATION_FIELD_NUMBER: builtins.int
3452+
DESCRIPTION_FIELD_NUMBER: builtins.int
34523453
api: builtins.str
34533454
'The colon-delimited-triplet of the api implemented by the model'
34543455
model: builtins.str
34553456
'The colon-delimited-triplet of the model'
34563457
markdown_documentation: builtins.str
34573458
'The markdown content describing the usage of the model'
3459+
description: builtins.str
3460+
'A short description of the model that explains its purpose'
3461+
3462+
def __init__(self, *, api: builtins.str=..., model: builtins.str=..., markdown_documentation: builtins.str | None=..., description: builtins.str | None=...) -> None:
3463+
...
34583464

3459-
def __init__(self, *, api: builtins.str=..., model: builtins.str=..., markdown_documentation: builtins.str | None=...) -> None:
3465+
def HasField(self, field_name: typing.Literal['_description', b'_description', '_markdown_documentation', b'_markdown_documentation', 'description', b'description', 'markdown_documentation', b'markdown_documentation']) -> builtins.bool:
34603466
...
34613467

3462-
def HasField(self, field_name: typing.Literal['_markdown_documentation', b'_markdown_documentation', 'markdown_documentation', b'markdown_documentation']) -> builtins.bool:
3468+
def ClearField(self, field_name: typing.Literal['_description', b'_description', '_markdown_documentation', b'_markdown_documentation', 'api', b'api', 'description', b'description', 'markdown_documentation', b'markdown_documentation', 'model', b'model']) -> None:
34633469
...
34643470

3465-
def ClearField(self, field_name: typing.Literal['_markdown_documentation', b'_markdown_documentation', 'api', b'api', 'markdown_documentation', b'markdown_documentation', 'model', b'model']) -> None:
3471+
@typing.overload
3472+
def WhichOneof(self, oneof_group: typing.Literal['_description', b'_description']) -> typing.Literal['description'] | None:
34663473
...
34673474

3475+
@typing.overload
34683476
def WhichOneof(self, oneof_group: typing.Literal['_markdown_documentation', b'_markdown_documentation']) -> typing.Literal['markdown_documentation'] | None:
34693477
...
34703478
global___Model = Model

src/viam/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ def _alias_param(param_name: str, param_alias: str) -> Callable:
351351
Returns:
352352
The input function, plus param alias.
353353
"""
354+
354355
def decorator(func: Callable):
355356
@functools.wraps(func)
356357
def wrapper(*args, **kwargs):
@@ -362,5 +363,7 @@ def wrapper(*args, **kwargs):
362363
del kwargs[param_alias]
363364
result = func(*args, **kwargs)
364365
return result
366+
365367
return wrapper
368+
366369
return decorator

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.36.0"
22

3-
API_VERSION = "v0.1.377"
3+
API_VERSION = "v0.1.378"
44
SDK_VERSION = __version__

0 commit comments

Comments
 (0)