Skip to content

Commit

Permalink
Automated Protos Update (#809)
Browse files Browse the repository at this point in the history
Co-authored-by: viambot <[email protected]>
  • Loading branch information
github-actions[bot] and viambot authored Jan 3, 2025
1 parent 27e8730 commit 9f08d73
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 126 deletions.
244 changes: 122 additions & 122 deletions src/viam/gen/app/v1/app_pb2.py

Large diffs are not rendered by default.

14 changes: 11 additions & 3 deletions src/viam/gen/app/v1/app_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3449,22 +3449,30 @@ class Model(google.protobuf.message.Message):
API_FIELD_NUMBER: builtins.int
MODEL_FIELD_NUMBER: builtins.int
MARKDOWN_DOCUMENTATION_FIELD_NUMBER: builtins.int
DESCRIPTION_FIELD_NUMBER: builtins.int
api: builtins.str
'The colon-delimited-triplet of the api implemented by the model'
model: builtins.str
'The colon-delimited-triplet of the model'
markdown_documentation: builtins.str
'The markdown content describing the usage of the model'
description: builtins.str
'A short description of the model that explains its purpose'

def __init__(self, *, api: builtins.str=..., model: builtins.str=..., markdown_documentation: builtins.str | None=..., description: builtins.str | None=...) -> None:
...

def __init__(self, *, api: builtins.str=..., model: builtins.str=..., markdown_documentation: builtins.str | None=...) -> None:
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:
...

def HasField(self, field_name: typing.Literal['_markdown_documentation', b'_markdown_documentation', 'markdown_documentation', b'markdown_documentation']) -> builtins.bool:
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:
...

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

@typing.overload
def WhichOneof(self, oneof_group: typing.Literal['_markdown_documentation', b'_markdown_documentation']) -> typing.Literal['markdown_documentation'] | None:
...
global___Model = Model
Expand Down
3 changes: 3 additions & 0 deletions src/viam/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ def _alias_param(param_name: str, param_alias: str) -> Callable:
Returns:
The input function, plus param alias.
"""

def decorator(func: Callable):
@functools.wraps(func)
def wrapper(*args, **kwargs):
Expand All @@ -362,5 +363,7 @@ def wrapper(*args, **kwargs):
del kwargs[param_alias]
result = func(*args, **kwargs)
return result

return wrapper

return decorator
2 changes: 1 addition & 1 deletion src/viam/version_metadata.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.36.0"

API_VERSION = "v0.1.377"
API_VERSION = "v0.1.378"
SDK_VERSION = __version__

0 comments on commit 9f08d73

Please sign in to comment.