From 00a99d554d99c38635f179a3abe2f86d9b2d4d0f Mon Sep 17 00:00:00 2001 From: martha-johnston Date: Mon, 15 Apr 2024 11:21:32 -0400 Subject: [PATCH 1/7] remove board status --- examples/server/v1/components.py | 9 ------ src/viam/components/board/__init__.py | 7 +++- src/viam/components/board/board.py | 18 ----------- src/viam/components/board/client.py | 25 ++------------- src/viam/components/board/service.py | 12 ------- tests/mocks/components.py | 11 ------- tests/test_board.py | 46 --------------------------- 7 files changed, 9 insertions(+), 119 deletions(-) diff --git a/examples/server/v1/components.py b/examples/server/v1/components.py index d6077a445..149d982b5 100644 --- a/examples/server/v1/components.py +++ b/examples/server/v1/components.py @@ -36,10 +36,7 @@ from viam.media.video import NamedImage from viam.operations import run_with_operation from viam.proto.common import ( - AnalogStatus, - BoardStatus, Capsule, - DigitalInterruptStatus, Geometry, GeoPoint, KinematicsFileFormat, @@ -311,12 +308,6 @@ async def analog_reader_names(self) -> List[str]: async def digital_interrupt_names(self) -> List[str]: return [key for key in self.digital_interrupts.keys()] - async def status(self, extra: Optional[Dict[str, Any]] = None, **kwargs) -> BoardStatus: - return BoardStatus( - analogs={name: AnalogStatus(value=await analog.read()) for (name, analog) in self.analog_readers.items()}, - digital_interrupts={name: DigitalInterruptStatus(value=await di.value()) for (name, di) in self.digital_interrupts.items()}, - ) - async def set_power_mode(self, **kwargs): raise NotImplementedError() diff --git a/src/viam/components/board/__init__.py b/src/viam/components/board/__init__.py index 3094c870a..ca452468a 100644 --- a/src/viam/components/board/__init__.py +++ b/src/viam/components/board/__init__.py @@ -1,3 +1,6 @@ +import asyncio + +from viam.proto.component.board import Status as BoardStatus from viam.proto.robot import Status from viam.resource.registry import Registry, ResourceRegistration from viam.utils import message_to_struct @@ -12,7 +15,9 @@ async def create_status(component: Board) -> Status: - return Status(name=Board.get_resource_name(component.name), status=message_to_struct(await component.status())) + (analogs, digital_interrupts) = await asyncio.gather(component.analog_reader_names(), component.digital_interrupt_names()) + s = BoardStatus(analogs=analogs, digital_interrupts=digital_interrupts) + return Status(name=Board.get_resource_name(component.name), status=message_to_struct(s)) Registry.register_subtype(ResourceRegistration(Board, BoardRPCService, lambda name, channel: BoardClient(name, channel), create_status)) diff --git a/src/viam/components/board/board.py b/src/viam/components/board/board.py index 282cd64f7..9673df581 100644 --- a/src/viam/components/board/board.py +++ b/src/viam/components/board/board.py @@ -2,7 +2,6 @@ from datetime import timedelta from typing import Any, Dict, Final, List, Optional -from viam.proto.common import BoardStatus from viam.proto.component.board import PowerMode from viam.resource.types import RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, Subtype @@ -337,23 +336,6 @@ async def digital_interrupt_names(self) -> List[str]: """ ... - @abc.abstractmethod - async def status(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optional[float] = None, **kwargs) -> BoardStatus: - """ - Return the current status of the board. - - :: - - my_board = Board.from_robot(robot=robot, name="my_board") - - # Get the current status of the board. - status = await my_board.status() - - Returns: - viam.proto.common.BoardStatus: the status. - """ - ... - @abc.abstractmethod async def set_power_mode( self, mode: PowerMode.ValueType, duration: Optional[timedelta] = None, *, timeout: Optional[float] = None, **kwargs diff --git a/src/viam/components/board/client.py b/src/viam/components/board/client.py index 0719925d3..06431e768 100644 --- a/src/viam/components/board/client.py +++ b/src/viam/components/board/client.py @@ -4,7 +4,7 @@ from google.protobuf.duration_pb2 import Duration from grpclib.client import Channel -from viam.proto.common import BoardStatus, DoCommandRequest, DoCommandResponse, Geometry +from viam.proto.common import DoCommandRequest, DoCommandResponse, Geometry from viam.proto.component.board import ( BoardServiceStub, GetDigitalInterruptValueRequest, @@ -22,8 +22,6 @@ SetPowerModeRequest, SetPWMFrequencyRequest, SetPWMRequest, - StatusRequest, - StatusResponse, WriteAnalogRequest, ) from viam.resource.rpc_client_base import ReconfigurableResourceRPCClientBase @@ -177,31 +175,14 @@ async def gpio_pin_by_name(self, name: str) -> Board.GPIOPin: async def analog_reader_names(self) -> List[str]: if self._analog_reader_names is None: - status = await self.status() - names = [name for name in status.analogs.keys()] - self._analog_reader_names = names + return [] return self._analog_reader_names async def digital_interrupt_names(self) -> List[str]: if self._digital_interrupt_names is None: - status = await self.status() - names = [name for name in status.digital_interrupts.keys()] - self._digital_interrupt_names = names + return [] return self._digital_interrupt_names - async def status( - self, - *, - extra: Optional[Dict[str, Any]] = None, - timeout: Optional[float] = None, - **__, - ) -> BoardStatus: - if extra is None: - extra = {} - request = StatusRequest(name=self.name, extra=dict_to_struct(extra)) - response: StatusResponse = await self.client.Status(request, timeout=timeout) - return response.status - async def do_command( self, command: Mapping[str, ValueTypes], diff --git a/src/viam/components/board/service.py b/src/viam/components/board/service.py index 6995b79c6..f236d81c8 100644 --- a/src/viam/components/board/service.py +++ b/src/viam/components/board/service.py @@ -22,8 +22,6 @@ SetPWMFrequencyResponse, SetPWMRequest, SetPWMResponse, - StatusRequest, - StatusResponse, StreamTicksRequest, StreamTicksResponse, WriteAnalogRequest, @@ -42,16 +40,6 @@ class BoardRPCService(BoardServiceBase, ResourceRPCServiceBase[Board]): RESOURCE_TYPE = Board - async def Status(self, stream: Stream[StatusRequest, StatusResponse]) -> None: - request = await stream.recv_message() - assert request is not None - name = request.name - board = self.get_resource(name) - timeout = stream.deadline.time_remaining() if stream.deadline else None - status = await board.status(extra=struct_to_dict(request.extra), timeout=timeout, metadata=stream.metadata) - response = StatusResponse(status=status) - await stream.send_message(response) - async def SetGPIO(self, stream: Stream[SetGPIORequest, SetGPIOResponse]) -> None: request = await stream.recv_message() assert request is not None diff --git a/tests/mocks/components.py b/tests/mocks/components.py index 482eff31e..c2003ed5b 100644 --- a/tests/mocks/components.py +++ b/tests/mocks/components.py @@ -34,10 +34,7 @@ from viam.media.audio import Audio, AudioStream from viam.media.video import CameraMimeType, NamedImage, RawImage from viam.proto.common import ( - AnalogStatus, - BoardStatus, Capsule, - DigitalInterruptStatus, Geometry, GeoPoint, Orientation, @@ -348,14 +345,6 @@ async def analog_reader_names(self) -> List[str]: async def digital_interrupt_names(self) -> List[str]: return [key for key in self.digital_interrupts.keys()] - async def status(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optional[float] = None, **kwargs) -> BoardStatus: - self.extra = extra - self.timeout = timeout - return BoardStatus( - analogs={name: AnalogStatus(value=await analog.read()) for (name, analog) in self.analog_readers.items()}, - digital_interrupts={name: DigitalInterruptStatus(value=await di.value()) for (name, di) in self.digital_interrupts.items()}, - ) - async def get_geometries(self, *, extra: Optional[Dict[str, Any]] = None, timeout: Optional[float] = None) -> List[Geometry]: self.extra = extra self.timeout = timeout diff --git a/tests/test_board.py b/tests/test_board.py index 1ec548886..fce29ff73 100644 --- a/tests/test_board.py +++ b/tests/test_board.py @@ -11,9 +11,6 @@ from viam.components.generic.service import GenericRPCService from viam.errors import ResourceNotFoundError from viam.proto.common import ( - AnalogStatus, - BoardStatus, - DigitalInterruptStatus, DoCommandRequest, DoCommandResponse, GetGeometriesRequest, @@ -37,8 +34,6 @@ SetPowerModeResponse, SetPWMFrequencyRequest, SetPWMRequest, - StatusRequest, - StatusResponse, WriteAnalogRequest, WriteAnalogResponse, ) @@ -110,17 +105,6 @@ async def test_digital_interrupt_names(self, board: MockBoard): names = await board.digital_interrupt_names() assert names == ["interrupt1"] - @pytest.mark.asyncio - async def test_status(self, board: MockBoard): - extra = {"foo": "bar", "baz": [1, 2, 3]} - status = await board.status(extra=extra, timeout=1.82) - assert status == BoardStatus( - analogs={"reader1": AnalogStatus(value=3)}, - digital_interrupts={"interrupt1": DigitalInterruptStatus(value=0)}, - ) - assert board.extra == extra - assert board.timeout == loose_approx(1.82) - @pytest.mark.asyncio async def test_do(self, board: MockBoard): command = {"command": "args"} @@ -271,22 +255,6 @@ async def test_set_pwm_freq(self, board: MockBoard, service: BoardRPCService): assert pin.extra == extra assert pin.timeout is None - @pytest.mark.asyncio - async def test_status(self, board: MockBoard, service: BoardRPCService): - async with ChannelFor([service]) as channel: - client = BoardServiceStub(channel) - - extra = {"foo": "bar", "baz": [1, 2, 3]} - request = StatusRequest(name=board.name, extra=dict_to_struct(extra)) - response: StatusResponse = await client.Status(request, timeout=5.55) - - assert response.status == BoardStatus( - analogs={"reader1": AnalogStatus(value=3)}, - digital_interrupts={"interrupt1": DigitalInterruptStatus(value=0)}, - ) - assert board.extra == extra - assert board.timeout == loose_approx(5.55) - @pytest.mark.asyncio async def test_do(self, board: MockBoard, service: BoardRPCService): async with ChannelFor([service]) as channel: @@ -389,20 +357,6 @@ async def test_digital_interrupt_names(self, board: MockBoard, service: BoardRPC names = await client.digital_interrupt_names() assert names == ["interrupt1"] - @pytest.mark.asyncio - async def test_status(self, board: MockBoard, service: BoardRPCService): - async with ChannelFor([service]) as channel: - client = BoardClient(name=board.name, channel=channel) - - extra = {"foo": "bar", "baz": [1, 2, 3]} - status = await client.status(extra=extra, timeout=1.1) - assert status == BoardStatus( - analogs={"reader1": AnalogStatus(value=3)}, - digital_interrupts={"interrupt1": DigitalInterruptStatus(value=0)}, - ) - assert board.extra == extra - assert board.timeout == loose_approx(1.1) - @pytest.mark.asyncio async def test_do(self, board: MockBoard, service: BoardRPCService): async with ChannelFor([service]) as channel: From b72e1ff08e16e9adfa2cc8462fe4ff9ed989ac01 Mon Sep 17 00:00:00 2001 From: Naveed Jooma Date: Tue, 23 Apr 2024 12:16:15 -0400 Subject: [PATCH 2/7] Fix proto generation --- Makefile | 1 + etc/generate_proto_import.py | 16 ++++++++-------- src/viam/__init__.py | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 380fce4cf..2ac9c4778 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,7 @@ _buf: clean buf: poetry run $(MAKE) _buf + $(MAKE) better_imports _better_imports: python3 -m etc.generate_proto_import -v diff --git a/etc/generate_proto_import.py b/etc/generate_proto_import.py index 31c5378c2..e4a6e7829 100644 --- a/etc/generate_proto_import.py +++ b/etc/generate_proto_import.py @@ -10,7 +10,7 @@ from google.protobuf.internal.enum_type_wrapper import EnumTypeWrapper -from viam import logging +import logging PACKAGE_PATH = Path(__file__).parent.parent @@ -25,7 +25,7 @@ LOGGER = logging.getLogger(__name__) -logging.setLevel(logging.INFO) +LOGGER.setLevel(logging.INFO) def clean(): @@ -51,7 +51,7 @@ def get_packages(root: str) -> Dict[str, List[str]]: packages: Dict[str, List[str]] = {} - for (dirpath, _, filenames) in os.walk(root): + for dirpath, _, filenames in os.walk(root): rel_path = Path(dirpath).relative_to(root).__str__() if "__" in rel_path: continue @@ -140,18 +140,18 @@ def check_class(obj) -> bool: f.write("@generated by Viam.\n") f.write("Do not edit manually!\n") f.write("'''\n") - for (imp, cls) in classes.items(): + for imp, cls in classes.items(): f.write(f'from {"."*(len(package.split("."))+IMPORT_LEVEL)}{PROTO_GEN_PACKAGE}.{package}.{imp} import (\n') f.write(" %s\n" % (",\n ".join(cls))) f.write(")\n") f.write("\n__all__ = [\n") - for (imp, cls) in classes.items(): + for imp, cls in classes.items(): f.write(" %s,\n" % (",\n ".join([f"'{c}'" for c in cls]))) f.write("]\n") def add_init_files(root: str): - for (dirpath, _, filenames) in os.walk(root): + for dirpath, _, filenames in os.walk(root): if "__init__.py" not in filenames: LOGGER.debug(f"Adding __init__.py at {dirpath}") path = Path(dirpath) / "__init__.py" @@ -163,7 +163,7 @@ def run(add_inits: bool = True): LOGGER.info("Generating better proto imports") clean() packages = get_packages(GENERATED_PATH.__str__()) - for (package, modules) in packages.items(): + for package, modules in packages.items(): build_dirs(NEW_IMPORT_PATH.__str__(), package, modules) if add_inits: add_init_files(NEW_IMPORT_PATH.__str__()) @@ -179,7 +179,7 @@ def run(add_inits: bool = True): if "q" in arg: LOGGER.disabled = True if "v" in arg: - logging.setLevel(logging.DEBUG) + LOGGER.setLevel(logging.DEBUG) if "i" in arg: add_inits = False except getopt.error: diff --git a/src/viam/__init__.py b/src/viam/__init__.py index c56770084..39245725a 100644 --- a/src/viam/__init__.py +++ b/src/viam/__init__.py @@ -2,7 +2,7 @@ from importlib.metadata import PackageNotFoundError, version from uuid import uuid4 -from viam.proto.common import ResourceName as _ResourceName +from viam.gen.common.v1.common_pb2 import ResourceName as _ResourceName from .logging import getLogger as _getLogger From e5ffc74828df099663883459f648cc436cf6798a Mon Sep 17 00:00:00 2001 From: martha-johnston Date: Tue, 23 Apr 2024 15:01:58 -0400 Subject: [PATCH 3/7] add protos, add test --- src/viam/components/board/__init__.py | 20 +- .../gen/app/mltraining/v1/ml_training_grpc.py | 7 +- .../gen/app/mltraining/v1/ml_training_pb2.py | 74 ++-- .../gen/app/mltraining/v1/ml_training_pb2.pyi | 44 ++- src/viam/gen/common/v1/common_pb2.py | 132 +++---- src/viam/gen/common/v1/common_pb2.pyi | 73 +--- src/viam/gen/component/board/v1/board_grpc.py | 7 +- src/viam/gen/component/board/v1/board_pb2.py | 114 +++--- src/viam/gen/component/board/v1/board_pb2.pyi | 67 ++-- src/viam/gen/robot/v1/robot_grpc.py | 9 +- src/viam/gen/robot/v1/robot_pb2.py | 20 +- src/viam/gen/robot/v1/robot_pb2.pyi | 33 +- src/viam/proto/app/__init__.py | 367 +++++++++--------- src/viam/proto/app/agent/__init__.py | 45 ++- src/viam/proto/app/billing.py | 41 +- src/viam/proto/app/cloudslam/__init__.py | 49 +-- src/viam/proto/app/data/__init__.py | 121 +++--- src/viam/proto/app/dataset/__init__.py | 37 +- src/viam/proto/app/datasync/__init__.py | 43 +- src/viam/proto/app/end_user.py | 31 +- src/viam/proto/app/mltraining/__init__.py | 47 ++- src/viam/proto/app/packages/__init__.py | 39 +- src/viam/proto/app/robot.py | 79 ++-- src/viam/proto/common/__init__.py | 70 ++-- src/viam/proto/component/arm/__init__.py | 43 +- .../proto/component/audioinput/__init__.py | 31 +- src/viam/proto/component/base/__init__.py | 43 +- src/viam/proto/component/board/__init__.py | 73 ++-- src/viam/proto/component/camera/__init__.py | 47 +-- src/viam/proto/component/encoder/__init__.py | 29 +- src/viam/proto/component/gantry/__init__.py | 41 +- src/viam/proto/component/generic/__init__.py | 13 +- src/viam/proto/component/gripper/__init__.py | 31 +- .../component/inputcontroller/__init__.py | 35 +- src/viam/proto/component/motor/__init__.py | 53 +-- .../component/movementsensor/__init__.py | 47 +-- .../proto/component/posetracker/__init__.py | 22 +- .../proto/component/powersensor/__init__.py | 27 +- src/viam/proto/component/sensor/__init__.py | 13 +- src/viam/proto/component/servo/__init__.py | 33 +- src/viam/proto/component/testecho/__init__.py | 31 +- src/viam/proto/module/__init__.py | 39 +- src/viam/proto/provisioning/__init__.py | 37 +- src/viam/proto/robot/__init__.py | 107 ++--- src/viam/proto/rpc/auth.py | 31 +- src/viam/proto/rpc/examples/echo/__init__.py | 27 +- .../rpc/examples/echoresource/__init__.py | 27 +- .../proto/rpc/examples/fileupload/__init__.py | 22 +- src/viam/proto/rpc/webrtc/grpc.py | 37 +- src/viam/proto/rpc/webrtc/signaling.py | 57 +-- .../proto/service/datamanager/__init__.py | 22 +- src/viam/proto/service/generic/__init__.py | 13 +- src/viam/proto/service/mlmodel/__init__.py | 59 +-- src/viam/proto/service/motion/__init__.py | 69 ++-- src/viam/proto/service/navigation/__init__.py | 59 +-- src/viam/proto/service/sensors/__init__.py | 31 +- src/viam/proto/service/shell/__init__.py | 22 +- src/viam/proto/service/slam/__init__.py | 37 +- src/viam/proto/service/vision/__init__.py | 39 +- src/viam/proto/stream/__init__.py | 27 +- src/viam/proto/tagger/__init__.py | 7 +- tests/test_board.py | 20 +- 62 files changed, 1606 insertions(+), 1364 deletions(-) diff --git a/src/viam/components/board/__init__.py b/src/viam/components/board/__init__.py index e2f6f7e20..f46e96581 100644 --- a/src/viam/components/board/__init__.py +++ b/src/viam/components/board/__init__.py @@ -1,6 +1,7 @@ import asyncio from viam.proto.component.board import Status as BoardStatus +from viam.proto.common import AnalogStatus, DigitalInterruptStatus from viam.proto.robot import Status from viam.resource.registry import Registry, ResourceRegistration from viam.utils import message_to_struct @@ -9,14 +10,23 @@ from .client import BoardClient from .service import BoardRPCService -__all__ = [ - "Board" -] +__all__ = ["Board"] async def create_status(component: Board) -> Status: - (analogs, digital_interrupts) = await asyncio.gather(component.analog_reader_names(), component.digital_interrupt_names()) - s = BoardStatus(analogs=analogs, digital_interrupts=digital_interrupts) + (analog_names, digital_interrupt_names) = await asyncio.gather(component.analog_reader_names(), component.digital_interrupt_names()) + analogs, digital_interrupts = {}, {} + for x in analog_names: + analog = await component.analog_reader_by_name(x) + read = await analog.read() + analogs[x] = AnalogStatus(value=read) + + for y in digital_interrupt_names: + digital_interrupt = await component.digital_interrupt_by_name(y) + val = await digital_interrupt.value() + digital_interrupts[y] = DigitalInterruptStatus(value=val) + + s = BoardStatus(analogs=None, digital_interrupts=None) return Status(name=Board.get_resource_name(component.name), status=message_to_struct(s)) diff --git a/src/viam/gen/app/mltraining/v1/ml_training_grpc.py b/src/viam/gen/app/mltraining/v1/ml_training_grpc.py index 2ac1a2f04..15938031a 100644 --- a/src/viam/gen/app/mltraining/v1/ml_training_grpc.py +++ b/src/viam/gen/app/mltraining/v1/ml_training_grpc.py @@ -15,6 +15,10 @@ class MLTrainingServiceBase(abc.ABC): async def SubmitTrainingJob(self, stream: 'grpclib.server.Stream[app.mltraining.v1.ml_training_pb2.SubmitTrainingJobRequest, app.mltraining.v1.ml_training_pb2.SubmitTrainingJobResponse]') -> None: pass + @abc.abstractmethod + async def SubmitCustomTrainingJob(self, stream: 'grpclib.server.Stream[app.mltraining.v1.ml_training_pb2.SubmitCustomTrainingJobRequest, app.mltraining.v1.ml_training_pb2.SubmitCustomTrainingJobResponse]') -> None: + pass + @abc.abstractmethod async def GetTrainingJob(self, stream: 'grpclib.server.Stream[app.mltraining.v1.ml_training_pb2.GetTrainingJobRequest, app.mltraining.v1.ml_training_pb2.GetTrainingJobResponse]') -> None: pass @@ -32,12 +36,13 @@ async def DeleteCompletedTrainingJob(self, stream: 'grpclib.server.Stream[app.ml pass def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]: - return {'/viam.app.mltraining.v1.MLTrainingService/SubmitTrainingJob': grpclib.const.Handler(self.SubmitTrainingJob, grpclib.const.Cardinality.UNARY_UNARY, app.mltraining.v1.ml_training_pb2.SubmitTrainingJobRequest, app.mltraining.v1.ml_training_pb2.SubmitTrainingJobResponse), '/viam.app.mltraining.v1.MLTrainingService/GetTrainingJob': grpclib.const.Handler(self.GetTrainingJob, grpclib.const.Cardinality.UNARY_UNARY, app.mltraining.v1.ml_training_pb2.GetTrainingJobRequest, app.mltraining.v1.ml_training_pb2.GetTrainingJobResponse), '/viam.app.mltraining.v1.MLTrainingService/ListTrainingJobs': grpclib.const.Handler(self.ListTrainingJobs, grpclib.const.Cardinality.UNARY_UNARY, app.mltraining.v1.ml_training_pb2.ListTrainingJobsRequest, app.mltraining.v1.ml_training_pb2.ListTrainingJobsResponse), '/viam.app.mltraining.v1.MLTrainingService/CancelTrainingJob': grpclib.const.Handler(self.CancelTrainingJob, grpclib.const.Cardinality.UNARY_UNARY, app.mltraining.v1.ml_training_pb2.CancelTrainingJobRequest, app.mltraining.v1.ml_training_pb2.CancelTrainingJobResponse), '/viam.app.mltraining.v1.MLTrainingService/DeleteCompletedTrainingJob': grpclib.const.Handler(self.DeleteCompletedTrainingJob, grpclib.const.Cardinality.UNARY_UNARY, app.mltraining.v1.ml_training_pb2.DeleteCompletedTrainingJobRequest, app.mltraining.v1.ml_training_pb2.DeleteCompletedTrainingJobResponse)} + return {'/viam.app.mltraining.v1.MLTrainingService/SubmitTrainingJob': grpclib.const.Handler(self.SubmitTrainingJob, grpclib.const.Cardinality.UNARY_UNARY, app.mltraining.v1.ml_training_pb2.SubmitTrainingJobRequest, app.mltraining.v1.ml_training_pb2.SubmitTrainingJobResponse), '/viam.app.mltraining.v1.MLTrainingService/SubmitCustomTrainingJob': grpclib.const.Handler(self.SubmitCustomTrainingJob, grpclib.const.Cardinality.UNARY_UNARY, app.mltraining.v1.ml_training_pb2.SubmitCustomTrainingJobRequest, app.mltraining.v1.ml_training_pb2.SubmitCustomTrainingJobResponse), '/viam.app.mltraining.v1.MLTrainingService/GetTrainingJob': grpclib.const.Handler(self.GetTrainingJob, grpclib.const.Cardinality.UNARY_UNARY, app.mltraining.v1.ml_training_pb2.GetTrainingJobRequest, app.mltraining.v1.ml_training_pb2.GetTrainingJobResponse), '/viam.app.mltraining.v1.MLTrainingService/ListTrainingJobs': grpclib.const.Handler(self.ListTrainingJobs, grpclib.const.Cardinality.UNARY_UNARY, app.mltraining.v1.ml_training_pb2.ListTrainingJobsRequest, app.mltraining.v1.ml_training_pb2.ListTrainingJobsResponse), '/viam.app.mltraining.v1.MLTrainingService/CancelTrainingJob': grpclib.const.Handler(self.CancelTrainingJob, grpclib.const.Cardinality.UNARY_UNARY, app.mltraining.v1.ml_training_pb2.CancelTrainingJobRequest, app.mltraining.v1.ml_training_pb2.CancelTrainingJobResponse), '/viam.app.mltraining.v1.MLTrainingService/DeleteCompletedTrainingJob': grpclib.const.Handler(self.DeleteCompletedTrainingJob, grpclib.const.Cardinality.UNARY_UNARY, app.mltraining.v1.ml_training_pb2.DeleteCompletedTrainingJobRequest, app.mltraining.v1.ml_training_pb2.DeleteCompletedTrainingJobResponse)} class MLTrainingServiceStub: def __init__(self, channel: grpclib.client.Channel) -> None: self.SubmitTrainingJob = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.mltraining.v1.MLTrainingService/SubmitTrainingJob', app.mltraining.v1.ml_training_pb2.SubmitTrainingJobRequest, app.mltraining.v1.ml_training_pb2.SubmitTrainingJobResponse) + self.SubmitCustomTrainingJob = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.mltraining.v1.MLTrainingService/SubmitCustomTrainingJob', app.mltraining.v1.ml_training_pb2.SubmitCustomTrainingJobRequest, app.mltraining.v1.ml_training_pb2.SubmitCustomTrainingJobResponse) self.GetTrainingJob = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.mltraining.v1.MLTrainingService/GetTrainingJob', app.mltraining.v1.ml_training_pb2.GetTrainingJobRequest, app.mltraining.v1.ml_training_pb2.GetTrainingJobResponse) self.ListTrainingJobs = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.mltraining.v1.MLTrainingService/ListTrainingJobs', app.mltraining.v1.ml_training_pb2.ListTrainingJobsRequest, app.mltraining.v1.ml_training_pb2.ListTrainingJobsResponse) self.CancelTrainingJob = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.mltraining.v1.MLTrainingService/CancelTrainingJob', app.mltraining.v1.ml_training_pb2.CancelTrainingJobRequest, app.mltraining.v1.ml_training_pb2.CancelTrainingJobResponse) diff --git a/src/viam/gen/app/mltraining/v1/ml_training_pb2.py b/src/viam/gen/app/mltraining/v1/ml_training_pb2.py index d26539d2a..f8144941d 100644 --- a/src/viam/gen/app/mltraining/v1/ml_training_pb2.py +++ b/src/viam/gen/app/mltraining/v1/ml_training_pb2.py @@ -7,7 +7,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2 from ....tagger.v1 import tagger_pb2 as tagger_dot_v1_dot_tagger__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#app/mltraining/v1/ml_training.proto\x12\x16viam.app.mltraining.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x16tagger/v1/tagger.proto"\x8a\x04\n\x18SubmitTrainingJobRequest\x12G\n\ndataset_id\x18\x07 \x01(\tB(\x9a\x84\x9e\x03#bson:"dataset_id" json:"dataset_id"R\tdatasetId\x12[\n\x0forganization_id\x18\x02 \x01(\tB2\x9a\x84\x9e\x03-bson:"organization_id" json:"organization_id"R\x0eorganizationId\x12G\n\nmodel_name\x18\x03 \x01(\tB(\x9a\x84\x9e\x03#bson:"model_name" json:"model_name"R\tmodelName\x12S\n\rmodel_version\x18\x04 \x01(\tB.\x9a\x84\x9e\x03)bson:"model_version" json:"model_version"R\x0cmodelVersion\x12j\n\nmodel_type\x18\x05 \x01(\x0e2!.viam.app.mltraining.v1.ModelTypeB(\x9a\x84\x9e\x03#bson:"model_type" json:"model_type"R\tmodelType\x120\n\x04tags\x18\x06 \x03(\tB\x1c\x9a\x84\x9e\x03\x17bson:"tags" json:"tags"R\x04tagsJ\x04\x08\x01\x10\x02R\x06filter"+\n\x19SubmitTrainingJobResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"\'\n\x15GetTrainingJobRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"a\n\x16GetTrainingJobResponse\x12G\n\x08metadata\x18\x01 \x01(\x0b2+.viam.app.mltraining.v1.TrainingJobMetadataR\x08metadata"\x82\x01\n\x17ListTrainingJobsRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12>\n\x06status\x18\x02 \x01(\x0e2&.viam.app.mltraining.v1.TrainingStatusR\x06status"[\n\x18ListTrainingJobsResponse\x12?\n\x04jobs\x18\x01 \x03(\x0b2+.viam.app.mltraining.v1.TrainingJobMetadataR\x04jobs"\x99\x0b\n\x13TrainingJobMetadata\x12n\n\x07request\x18\x01 \x01(\x0b20.viam.app.mltraining.v1.SubmitTrainingJobRequestB"\x9a\x84\x9e\x03\x1dbson:"request" json:"request"R\x07request\x123\n\x02id\x18\x07 \x01(\tB#\x9a\x84\x9e\x03\x1ebson:"_id" json:"id,omitempty"R\x02id\x12G\n\ndataset_id\x18\x0b \x01(\tB(\x9a\x84\x9e\x03#bson:"dataset_id" json:"dataset_id"R\tdatasetId\x12[\n\x0forganization_id\x18\x0c \x01(\tB2\x9a\x84\x9e\x03-bson:"organization_id" json:"organization_id"R\x0eorganizationId\x12G\n\nmodel_name\x18\r \x01(\tB(\x9a\x84\x9e\x03#bson:"model_name" json:"model_name"R\tmodelName\x12S\n\rmodel_version\x18\x0e \x01(\tB.\x9a\x84\x9e\x03)bson:"model_version" json:"model_version"R\x0cmodelVersion\x12j\n\nmodel_type\x18\x0f \x01(\x0e2!.viam.app.mltraining.v1.ModelTypeB(\x9a\x84\x9e\x03#bson:"model_type" json:"model_type"R\tmodelType\x12`\n\x06status\x18\x02 \x01(\x0e2&.viam.app.mltraining.v1.TrainingStatusB \x9a\x84\x9e\x03\x1bbson:"status" json:"status"R\x06status\x12c\n\x0cerror_status\x18\x08 \x01(\x0b2\x12.google.rpc.StatusB,\x9a\x84\x9e\x03\'bson:"error_status" json:"error_status"R\x0berrorStatus\x12c\n\ncreated_on\x18\x03 \x01(\x0b2\x1a.google.protobuf.TimestampB(\x9a\x84\x9e\x03#bson:"created_on" json:"created_on"R\tcreatedOn\x12o\n\rlast_modified\x18\x04 \x01(\x0b2\x1a.google.protobuf.TimestampB.\x9a\x84\x9e\x03)bson:"last_modified" json:"last_modified"R\x0clastModified\x12{\n\x10training_started\x18\t \x01(\x0b2\x1a.google.protobuf.TimestampB4\x9a\x84\x9e\x03/bson:"training_started" json:"training_started"R\x0ftrainingStarted\x12s\n\x0etraining_ended\x18\n \x01(\x0b2\x1a.google.protobuf.TimestampB0\x9a\x84\x9e\x03+bson:"training_ended" json:"training_ended"R\rtrainingEnded\x12Z\n\x0fsynced_model_id\x18\x05 \x01(\tB2\x9a\x84\x9e\x03-bson:"synced_model_id" json:"synced_model_id"R\rsyncedModelId\x120\n\x04tags\x18\x10 \x03(\tB\x1c\x9a\x84\x9e\x03\x17bson:"tags" json:"tags"R\x04tagsJ\x04\x08\x06\x10\x07R\nuser_email"*\n\x18CancelTrainingJobRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"\x1b\n\x19CancelTrainingJobResponse"3\n!DeleteCompletedTrainingJobRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"$\n"DeleteCompletedTrainingJobResponse*\x9f\x01\n\tModelType\x12\x1a\n\x16MODEL_TYPE_UNSPECIFIED\x10\x00\x12*\n&MODEL_TYPE_SINGLE_LABEL_CLASSIFICATION\x10\x01\x12)\n%MODEL_TYPE_MULTI_LABEL_CLASSIFICATION\x10\x02\x12\x1f\n\x1bMODEL_TYPE_OBJECT_DETECTION\x10\x03*\xa4\x01\n\x0eModelFramework\x12\x1f\n\x1bMODEL_FRAMEWORK_UNSPECIFIED\x10\x00\x12\x1a\n\x16MODEL_FRAMEWORK_TFLITE\x10\x01\x12\x1e\n\x1aMODEL_FRAMEWORK_TENSORFLOW\x10\x02\x12\x1b\n\x17MODEL_FRAMEWORK_PYTORCH\x10\x03\x12\x18\n\x14MODEL_FRAMEWORK_ONNX\x10\x04*\xe7\x01\n\x0eTrainingStatus\x12\x1f\n\x1bTRAINING_STATUS_UNSPECIFIED\x10\x00\x12\x1b\n\x17TRAINING_STATUS_PENDING\x10\x01\x12\x1f\n\x1bTRAINING_STATUS_IN_PROGRESS\x10\x02\x12\x1d\n\x19TRAINING_STATUS_COMPLETED\x10\x03\x12\x1a\n\x16TRAINING_STATUS_FAILED\x10\x04\x12\x1c\n\x18TRAINING_STATUS_CANCELED\x10\x05\x12\x1d\n\x19TRAINING_STATUS_CANCELING\x10\x062\x85\x05\n\x11MLTrainingService\x12x\n\x11SubmitTrainingJob\x120.viam.app.mltraining.v1.SubmitTrainingJobRequest\x1a1.viam.app.mltraining.v1.SubmitTrainingJobResponse\x12o\n\x0eGetTrainingJob\x12-.viam.app.mltraining.v1.GetTrainingJobRequest\x1a..viam.app.mltraining.v1.GetTrainingJobResponse\x12u\n\x10ListTrainingJobs\x12/.viam.app.mltraining.v1.ListTrainingJobsRequest\x1a0.viam.app.mltraining.v1.ListTrainingJobsResponse\x12x\n\x11CancelTrainingJob\x120.viam.app.mltraining.v1.CancelTrainingJobRequest\x1a1.viam.app.mltraining.v1.CancelTrainingJobResponse\x12\x93\x01\n\x1aDeleteCompletedTrainingJob\x129.viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest\x1a:.viam.app.mltraining.v1.DeleteCompletedTrainingJobResponseB#Z!go.viam.com/api/app/mltraining/v1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#app/mltraining/v1/ml_training.proto\x12\x16viam.app.mltraining.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x16tagger/v1/tagger.proto"\x8a\x04\n\x18SubmitTrainingJobRequest\x12G\n\ndataset_id\x18\x07 \x01(\tB(\x9a\x84\x9e\x03#bson:"dataset_id" json:"dataset_id"R\tdatasetId\x12[\n\x0forganization_id\x18\x02 \x01(\tB2\x9a\x84\x9e\x03-bson:"organization_id" json:"organization_id"R\x0eorganizationId\x12G\n\nmodel_name\x18\x03 \x01(\tB(\x9a\x84\x9e\x03#bson:"model_name" json:"model_name"R\tmodelName\x12S\n\rmodel_version\x18\x04 \x01(\tB.\x9a\x84\x9e\x03)bson:"model_version" json:"model_version"R\x0cmodelVersion\x12j\n\nmodel_type\x18\x05 \x01(\x0e2!.viam.app.mltraining.v1.ModelTypeB(\x9a\x84\x9e\x03#bson:"model_type" json:"model_type"R\tmodelType\x120\n\x04tags\x18\x06 \x03(\tB\x1c\x9a\x84\x9e\x03\x17bson:"tags" json:"tags"R\x04tagsJ\x04\x08\x01\x10\x02R\x06filter"+\n\x19SubmitTrainingJobResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"\xc4\x03\n\x1eSubmitCustomTrainingJobRequest\x12G\n\ndataset_id\x18\x01 \x01(\tB(\x9a\x84\x9e\x03#bson:"dataset_id" json:"dataset_id"R\tdatasetId\x12^\n\x10registry_item_id\x18\x02 \x01(\tB4\x9a\x84\x9e\x03/bson:"registry_item_id" json:"registry_item_id"R\x0eregistryItemId\x12[\n\x0forganization_id\x18\x03 \x01(\tB2\x9a\x84\x9e\x03-bson:"organization_id" json:"organization_id"R\x0eorganizationId\x12G\n\nmodel_name\x18\x04 \x01(\tB(\x9a\x84\x9e\x03#bson:"model_name" json:"model_name"R\tmodelName\x12S\n\rmodel_version\x18\x05 \x01(\tB.\x9a\x84\x9e\x03)bson:"model_version" json:"model_version"R\x0cmodelVersion"1\n\x1fSubmitCustomTrainingJobResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"\'\n\x15GetTrainingJobRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"a\n\x16GetTrainingJobResponse\x12G\n\x08metadata\x18\x01 \x01(\x0b2+.viam.app.mltraining.v1.TrainingJobMetadataR\x08metadata"\x82\x01\n\x17ListTrainingJobsRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12>\n\x06status\x18\x02 \x01(\x0e2&.viam.app.mltraining.v1.TrainingStatusR\x06status"[\n\x18ListTrainingJobsResponse\x12?\n\x04jobs\x18\x01 \x03(\x0b2+.viam.app.mltraining.v1.TrainingJobMetadataR\x04jobs"\xd3\r\n\x13TrainingJobMetadata\x12n\n\x07request\x18\x01 \x01(\x0b20.viam.app.mltraining.v1.SubmitTrainingJobRequestB"\x9a\x84\x9e\x03\x1dbson:"request" json:"request"R\x07request\x123\n\x02id\x18\x07 \x01(\tB#\x9a\x84\x9e\x03\x1ebson:"_id" json:"id,omitempty"R\x02id\x12G\n\ndataset_id\x18\x0b \x01(\tB(\x9a\x84\x9e\x03#bson:"dataset_id" json:"dataset_id"R\tdatasetId\x12[\n\x0forganization_id\x18\x0c \x01(\tB2\x9a\x84\x9e\x03-bson:"organization_id" json:"organization_id"R\x0eorganizationId\x12G\n\nmodel_name\x18\r \x01(\tB(\x9a\x84\x9e\x03#bson:"model_name" json:"model_name"R\tmodelName\x12S\n\rmodel_version\x18\x0e \x01(\tB.\x9a\x84\x9e\x03)bson:"model_version" json:"model_version"R\x0cmodelVersion\x12j\n\nmodel_type\x18\x0f \x01(\x0e2!.viam.app.mltraining.v1.ModelTypeB(\x9a\x84\x9e\x03#bson:"model_type" json:"model_type"R\tmodelType\x12\x83\x01\n\x0fmodel_framework\x18\x11 \x01(\x0e2&.viam.app.mltraining.v1.ModelFrameworkB2\x9a\x84\x9e\x03-bson:"model_framework" json:"model_framework"R\x0emodelFramework\x12R\n\ris_custom_job\x18\x12 \x01(\x08B.\x9a\x84\x9e\x03)bson:"is_custom_job" json:"is_custom_job"R\x0bisCustomJob\x12^\n\x10registry_item_id\x18\x13 \x01(\tB4\x9a\x84\x9e\x03/bson:"registry_item_id" json:"registry_item_id"R\x0eregistryItemId\x12`\n\x06status\x18\x02 \x01(\x0e2&.viam.app.mltraining.v1.TrainingStatusB \x9a\x84\x9e\x03\x1bbson:"status" json:"status"R\x06status\x12c\n\x0cerror_status\x18\x08 \x01(\x0b2\x12.google.rpc.StatusB,\x9a\x84\x9e\x03\'bson:"error_status" json:"error_status"R\x0berrorStatus\x12c\n\ncreated_on\x18\x03 \x01(\x0b2\x1a.google.protobuf.TimestampB(\x9a\x84\x9e\x03#bson:"created_on" json:"created_on"R\tcreatedOn\x12o\n\rlast_modified\x18\x04 \x01(\x0b2\x1a.google.protobuf.TimestampB.\x9a\x84\x9e\x03)bson:"last_modified" json:"last_modified"R\x0clastModified\x12{\n\x10training_started\x18\t \x01(\x0b2\x1a.google.protobuf.TimestampB4\x9a\x84\x9e\x03/bson:"training_started" json:"training_started"R\x0ftrainingStarted\x12s\n\x0etraining_ended\x18\n \x01(\x0b2\x1a.google.protobuf.TimestampB0\x9a\x84\x9e\x03+bson:"training_ended" json:"training_ended"R\rtrainingEnded\x12Z\n\x0fsynced_model_id\x18\x05 \x01(\tB2\x9a\x84\x9e\x03-bson:"synced_model_id" json:"synced_model_id"R\rsyncedModelId\x120\n\x04tags\x18\x10 \x03(\tB\x1c\x9a\x84\x9e\x03\x17bson:"tags" json:"tags"R\x04tagsJ\x04\x08\x06\x10\x07R\nuser_email"*\n\x18CancelTrainingJobRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"\x1b\n\x19CancelTrainingJobResponse"3\n!DeleteCompletedTrainingJobRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"$\n"DeleteCompletedTrainingJobResponse*\x9f\x01\n\tModelType\x12\x1a\n\x16MODEL_TYPE_UNSPECIFIED\x10\x00\x12*\n&MODEL_TYPE_SINGLE_LABEL_CLASSIFICATION\x10\x01\x12)\n%MODEL_TYPE_MULTI_LABEL_CLASSIFICATION\x10\x02\x12\x1f\n\x1bMODEL_TYPE_OBJECT_DETECTION\x10\x03*\xa4\x01\n\x0eModelFramework\x12\x1f\n\x1bMODEL_FRAMEWORK_UNSPECIFIED\x10\x00\x12\x1a\n\x16MODEL_FRAMEWORK_TFLITE\x10\x01\x12\x1e\n\x1aMODEL_FRAMEWORK_TENSORFLOW\x10\x02\x12\x1b\n\x17MODEL_FRAMEWORK_PYTORCH\x10\x03\x12\x18\n\x14MODEL_FRAMEWORK_ONNX\x10\x04*\xe7\x01\n\x0eTrainingStatus\x12\x1f\n\x1bTRAINING_STATUS_UNSPECIFIED\x10\x00\x12\x1b\n\x17TRAINING_STATUS_PENDING\x10\x01\x12\x1f\n\x1bTRAINING_STATUS_IN_PROGRESS\x10\x02\x12\x1d\n\x19TRAINING_STATUS_COMPLETED\x10\x03\x12\x1a\n\x16TRAINING_STATUS_FAILED\x10\x04\x12\x1c\n\x18TRAINING_STATUS_CANCELED\x10\x05\x12\x1d\n\x19TRAINING_STATUS_CANCELING\x10\x062\x92\x06\n\x11MLTrainingService\x12x\n\x11SubmitTrainingJob\x120.viam.app.mltraining.v1.SubmitTrainingJobRequest\x1a1.viam.app.mltraining.v1.SubmitTrainingJobResponse\x12\x8a\x01\n\x17SubmitCustomTrainingJob\x126.viam.app.mltraining.v1.SubmitCustomTrainingJobRequest\x1a7.viam.app.mltraining.v1.SubmitCustomTrainingJobResponse\x12o\n\x0eGetTrainingJob\x12-.viam.app.mltraining.v1.GetTrainingJobRequest\x1a..viam.app.mltraining.v1.GetTrainingJobResponse\x12u\n\x10ListTrainingJobs\x12/.viam.app.mltraining.v1.ListTrainingJobsRequest\x1a0.viam.app.mltraining.v1.ListTrainingJobsResponse\x12x\n\x11CancelTrainingJob\x120.viam.app.mltraining.v1.CancelTrainingJobRequest\x1a1.viam.app.mltraining.v1.CancelTrainingJobResponse\x12\x93\x01\n\x1aDeleteCompletedTrainingJob\x129.viam.app.mltraining.v1.DeleteCompletedTrainingJobRequest\x1a:.viam.app.mltraining.v1.DeleteCompletedTrainingJobResponseB#Z!go.viam.com/api/app/mltraining/v1b\x06proto3') _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.mltraining.v1.ml_training_pb2', globals()) if _descriptor._USE_C_DESCRIPTORS == False: @@ -25,6 +25,16 @@ _SUBMITTRAININGJOBREQUEST.fields_by_name['model_type']._serialized_options = b'\x9a\x84\x9e\x03#bson:"model_type" json:"model_type"' _SUBMITTRAININGJOBREQUEST.fields_by_name['tags']._options = None _SUBMITTRAININGJOBREQUEST.fields_by_name['tags']._serialized_options = b'\x9a\x84\x9e\x03\x17bson:"tags" json:"tags"' + _SUBMITCUSTOMTRAININGJOBREQUEST.fields_by_name['dataset_id']._options = None + _SUBMITCUSTOMTRAININGJOBREQUEST.fields_by_name['dataset_id']._serialized_options = b'\x9a\x84\x9e\x03#bson:"dataset_id" json:"dataset_id"' + _SUBMITCUSTOMTRAININGJOBREQUEST.fields_by_name['registry_item_id']._options = None + _SUBMITCUSTOMTRAININGJOBREQUEST.fields_by_name['registry_item_id']._serialized_options = b'\x9a\x84\x9e\x03/bson:"registry_item_id" json:"registry_item_id"' + _SUBMITCUSTOMTRAININGJOBREQUEST.fields_by_name['organization_id']._options = None + _SUBMITCUSTOMTRAININGJOBREQUEST.fields_by_name['organization_id']._serialized_options = b'\x9a\x84\x9e\x03-bson:"organization_id" json:"organization_id"' + _SUBMITCUSTOMTRAININGJOBREQUEST.fields_by_name['model_name']._options = None + _SUBMITCUSTOMTRAININGJOBREQUEST.fields_by_name['model_name']._serialized_options = b'\x9a\x84\x9e\x03#bson:"model_name" json:"model_name"' + _SUBMITCUSTOMTRAININGJOBREQUEST.fields_by_name['model_version']._options = None + _SUBMITCUSTOMTRAININGJOBREQUEST.fields_by_name['model_version']._serialized_options = b'\x9a\x84\x9e\x03)bson:"model_version" json:"model_version"' _TRAININGJOBMETADATA.fields_by_name['request']._options = None _TRAININGJOBMETADATA.fields_by_name['request']._serialized_options = b'\x9a\x84\x9e\x03\x1dbson:"request" json:"request"' _TRAININGJOBMETADATA.fields_by_name['id']._options = None @@ -39,6 +49,12 @@ _TRAININGJOBMETADATA.fields_by_name['model_version']._serialized_options = b'\x9a\x84\x9e\x03)bson:"model_version" json:"model_version"' _TRAININGJOBMETADATA.fields_by_name['model_type']._options = None _TRAININGJOBMETADATA.fields_by_name['model_type']._serialized_options = b'\x9a\x84\x9e\x03#bson:"model_type" json:"model_type"' + _TRAININGJOBMETADATA.fields_by_name['model_framework']._options = None + _TRAININGJOBMETADATA.fields_by_name['model_framework']._serialized_options = b'\x9a\x84\x9e\x03-bson:"model_framework" json:"model_framework"' + _TRAININGJOBMETADATA.fields_by_name['is_custom_job']._options = None + _TRAININGJOBMETADATA.fields_by_name['is_custom_job']._serialized_options = b'\x9a\x84\x9e\x03)bson:"is_custom_job" json:"is_custom_job"' + _TRAININGJOBMETADATA.fields_by_name['registry_item_id']._options = None + _TRAININGJOBMETADATA.fields_by_name['registry_item_id']._serialized_options = b'\x9a\x84\x9e\x03/bson:"registry_item_id" json:"registry_item_id"' _TRAININGJOBMETADATA.fields_by_name['status']._options = None _TRAININGJOBMETADATA.fields_by_name['status']._serialized_options = b'\x9a\x84\x9e\x03\x1bbson:"status" json:"status"' _TRAININGJOBMETADATA.fields_by_name['error_status']._options = None @@ -55,33 +71,37 @@ _TRAININGJOBMETADATA.fields_by_name['synced_model_id']._serialized_options = b'\x9a\x84\x9e\x03-bson:"synced_model_id" json:"synced_model_id"' _TRAININGJOBMETADATA.fields_by_name['tags']._options = None _TRAININGJOBMETADATA.fields_by_name['tags']._serialized_options = b'\x9a\x84\x9e\x03\x17bson:"tags" json:"tags"' - _MODELTYPE._serialized_start = 2682 - _MODELTYPE._serialized_end = 2841 - _MODELFRAMEWORK._serialized_start = 2844 - _MODELFRAMEWORK._serialized_end = 3008 - _TRAININGSTATUS._serialized_start = 3011 - _TRAININGSTATUS._serialized_end = 3242 + _MODELTYPE._serialized_start = 3502 + _MODELTYPE._serialized_end = 3661 + _MODELFRAMEWORK._serialized_start = 3664 + _MODELFRAMEWORK._serialized_end = 3828 + _TRAININGSTATUS._serialized_start = 3831 + _TRAININGSTATUS._serialized_end = 4062 _SUBMITTRAININGJOBREQUEST._serialized_start = 146 _SUBMITTRAININGJOBREQUEST._serialized_end = 668 _SUBMITTRAININGJOBRESPONSE._serialized_start = 670 _SUBMITTRAININGJOBRESPONSE._serialized_end = 713 - _GETTRAININGJOBREQUEST._serialized_start = 715 - _GETTRAININGJOBREQUEST._serialized_end = 754 - _GETTRAININGJOBRESPONSE._serialized_start = 756 - _GETTRAININGJOBRESPONSE._serialized_end = 853 - _LISTTRAININGJOBSREQUEST._serialized_start = 856 - _LISTTRAININGJOBSREQUEST._serialized_end = 986 - _LISTTRAININGJOBSRESPONSE._serialized_start = 988 - _LISTTRAININGJOBSRESPONSE._serialized_end = 1079 - _TRAININGJOBMETADATA._serialized_start = 1082 - _TRAININGJOBMETADATA._serialized_end = 2515 - _CANCELTRAININGJOBREQUEST._serialized_start = 2517 - _CANCELTRAININGJOBREQUEST._serialized_end = 2559 - _CANCELTRAININGJOBRESPONSE._serialized_start = 2561 - _CANCELTRAININGJOBRESPONSE._serialized_end = 2588 - _DELETECOMPLETEDTRAININGJOBREQUEST._serialized_start = 2590 - _DELETECOMPLETEDTRAININGJOBREQUEST._serialized_end = 2641 - _DELETECOMPLETEDTRAININGJOBRESPONSE._serialized_start = 2643 - _DELETECOMPLETEDTRAININGJOBRESPONSE._serialized_end = 2679 - _MLTRAININGSERVICE._serialized_start = 3245 - _MLTRAININGSERVICE._serialized_end = 3890 \ No newline at end of file + _SUBMITCUSTOMTRAININGJOBREQUEST._serialized_start = 716 + _SUBMITCUSTOMTRAININGJOBREQUEST._serialized_end = 1168 + _SUBMITCUSTOMTRAININGJOBRESPONSE._serialized_start = 1170 + _SUBMITCUSTOMTRAININGJOBRESPONSE._serialized_end = 1219 + _GETTRAININGJOBREQUEST._serialized_start = 1221 + _GETTRAININGJOBREQUEST._serialized_end = 1260 + _GETTRAININGJOBRESPONSE._serialized_start = 1262 + _GETTRAININGJOBRESPONSE._serialized_end = 1359 + _LISTTRAININGJOBSREQUEST._serialized_start = 1362 + _LISTTRAININGJOBSREQUEST._serialized_end = 1492 + _LISTTRAININGJOBSRESPONSE._serialized_start = 1494 + _LISTTRAININGJOBSRESPONSE._serialized_end = 1585 + _TRAININGJOBMETADATA._serialized_start = 1588 + _TRAININGJOBMETADATA._serialized_end = 3335 + _CANCELTRAININGJOBREQUEST._serialized_start = 3337 + _CANCELTRAININGJOBREQUEST._serialized_end = 3379 + _CANCELTRAININGJOBRESPONSE._serialized_start = 3381 + _CANCELTRAININGJOBRESPONSE._serialized_end = 3408 + _DELETECOMPLETEDTRAININGJOBREQUEST._serialized_start = 3410 + _DELETECOMPLETEDTRAININGJOBREQUEST._serialized_end = 3461 + _DELETECOMPLETEDTRAININGJOBRESPONSE._serialized_start = 3463 + _DELETECOMPLETEDTRAININGJOBRESPONSE._serialized_end = 3499 + _MLTRAININGSERVICE._serialized_start = 4065 + _MLTRAININGSERVICE._serialized_end = 4851 \ No newline at end of file diff --git a/src/viam/gen/app/mltraining/v1/ml_training_pb2.pyi b/src/viam/gen/app/mltraining/v1/ml_training_pb2.pyi index 3f43cc2e9..b7c02b09c 100644 --- a/src/viam/gen/app/mltraining/v1/ml_training_pb2.pyi +++ b/src/viam/gen/app/mltraining/v1/ml_training_pb2.pyi @@ -122,6 +122,40 @@ class SubmitTrainingJobResponse(google.protobuf.message.Message): ... global___SubmitTrainingJobResponse = SubmitTrainingJobResponse +@typing_extensions.final +class SubmitCustomTrainingJobRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DATASET_ID_FIELD_NUMBER: builtins.int + REGISTRY_ITEM_ID_FIELD_NUMBER: builtins.int + ORGANIZATION_ID_FIELD_NUMBER: builtins.int + MODEL_NAME_FIELD_NUMBER: builtins.int + MODEL_VERSION_FIELD_NUMBER: builtins.int + dataset_id: builtins.str + registry_item_id: builtins.str + organization_id: builtins.str + model_name: builtins.str + model_version: builtins.str + + def __init__(self, *, dataset_id: builtins.str=..., registry_item_id: builtins.str=..., organization_id: builtins.str=..., model_name: builtins.str=..., model_version: builtins.str=...) -> None: + ... + + def ClearField(self, field_name: typing_extensions.Literal['dataset_id', b'dataset_id', 'model_name', b'model_name', 'model_version', b'model_version', 'organization_id', b'organization_id', 'registry_item_id', b'registry_item_id']) -> None: + ... +global___SubmitCustomTrainingJobRequest = SubmitCustomTrainingJobRequest + +@typing_extensions.final +class SubmitCustomTrainingJobResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + ID_FIELD_NUMBER: builtins.int + id: builtins.str + + def __init__(self, *, id: builtins.str=...) -> None: + ... + + def ClearField(self, field_name: typing_extensions.Literal['id', b'id']) -> None: + ... +global___SubmitCustomTrainingJobResponse = SubmitCustomTrainingJobResponse + @typing_extensions.final class GetTrainingJobRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor @@ -195,6 +229,9 @@ class TrainingJobMetadata(google.protobuf.message.Message): MODEL_NAME_FIELD_NUMBER: builtins.int MODEL_VERSION_FIELD_NUMBER: builtins.int MODEL_TYPE_FIELD_NUMBER: builtins.int + MODEL_FRAMEWORK_FIELD_NUMBER: builtins.int + IS_CUSTOM_JOB_FIELD_NUMBER: builtins.int + REGISTRY_ITEM_ID_FIELD_NUMBER: builtins.int STATUS_FIELD_NUMBER: builtins.int ERROR_STATUS_FIELD_NUMBER: builtins.int CREATED_ON_FIELD_NUMBER: builtins.int @@ -213,6 +250,9 @@ class TrainingJobMetadata(google.protobuf.message.Message): model_name: builtins.str model_version: builtins.str model_type: global___ModelType.ValueType + model_framework: global___ModelFramework.ValueType + is_custom_job: builtins.bool + registry_item_id: builtins.str status: global___TrainingStatus.ValueType @property @@ -240,13 +280,13 @@ class TrainingJobMetadata(google.protobuf.message.Message): def tags(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - def __init__(self, *, request: global___SubmitTrainingJobRequest | None=..., id: builtins.str=..., dataset_id: builtins.str=..., organization_id: builtins.str=..., model_name: builtins.str=..., model_version: builtins.str=..., model_type: global___ModelType.ValueType=..., status: global___TrainingStatus.ValueType=..., error_status: google.rpc.status_pb2.Status | None=..., created_on: google.protobuf.timestamp_pb2.Timestamp | None=..., last_modified: google.protobuf.timestamp_pb2.Timestamp | None=..., training_started: google.protobuf.timestamp_pb2.Timestamp | None=..., training_ended: google.protobuf.timestamp_pb2.Timestamp | None=..., synced_model_id: builtins.str=..., tags: collections.abc.Iterable[builtins.str] | None=...) -> None: + def __init__(self, *, request: global___SubmitTrainingJobRequest | None=..., id: builtins.str=..., 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=..., is_custom_job: builtins.bool=..., registry_item_id: builtins.str=..., status: global___TrainingStatus.ValueType=..., error_status: google.rpc.status_pb2.Status | None=..., created_on: google.protobuf.timestamp_pb2.Timestamp | None=..., last_modified: google.protobuf.timestamp_pb2.Timestamp | None=..., training_started: google.protobuf.timestamp_pb2.Timestamp | None=..., training_ended: google.protobuf.timestamp_pb2.Timestamp | None=..., synced_model_id: builtins.str=..., tags: collections.abc.Iterable[builtins.str] | None=...) -> None: ... def HasField(self, field_name: typing_extensions.Literal['created_on', b'created_on', 'error_status', b'error_status', 'last_modified', b'last_modified', 'request', b'request', 'training_ended', b'training_ended', 'training_started', b'training_started']) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal['created_on', b'created_on', 'dataset_id', b'dataset_id', 'error_status', b'error_status', 'id', b'id', 'last_modified', b'last_modified', 'model_name', b'model_name', 'model_type', b'model_type', 'model_version', b'model_version', 'organization_id', b'organization_id', 'request', b'request', 'status', b'status', 'synced_model_id', b'synced_model_id', 'tags', b'tags', 'training_ended', b'training_ended', 'training_started', b'training_started']) -> None: + def ClearField(self, field_name: typing_extensions.Literal['created_on', b'created_on', 'dataset_id', b'dataset_id', 'error_status', b'error_status', 'id', b'id', 'is_custom_job', b'is_custom_job', 'last_modified', b'last_modified', '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', 'registry_item_id', b'registry_item_id', 'request', b'request', 'status', b'status', 'synced_model_id', b'synced_model_id', 'tags', b'tags', 'training_ended', b'training_ended', 'training_started', b'training_started']) -> None: ... global___TrainingJobMetadata = TrainingJobMetadata diff --git a/src/viam/gen/common/v1/common_pb2.py b/src/viam/gen/common/v1/common_pb2.py index 097e7ccc1..ae7b1d967 100644 --- a/src/viam/gen/common/v1/common_pb2.py +++ b/src/viam/gen/common/v1/common_pb2.py @@ -7,82 +7,72 @@ from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16common/v1/common.proto\x12\x0eviam.common.v1\x1a google/protobuf/descriptor.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xaf\x01\n\x0cResourceName\x12\x1c\n\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12\x18\n\x07subtype\x18\x03 \x01(\tR\x07subtype\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\x12+\n\x0fmachine_part_id\x18\x05 \x01(\tH\x00R\rmachinePartId\x88\x01\x01B\x12\n\x10_machine_part_id"\xfc\x02\n\x0bBoardStatus\x12B\n\x07analogs\x18\x01 \x03(\x0b2(.viam.common.v1.BoardStatus.AnalogsEntryR\x07analogs\x12a\n\x12digital_interrupts\x18\x02 \x03(\x0b22.viam.common.v1.BoardStatus.DigitalInterruptsEntryR\x11digitalInterrupts\x1aX\n\x0cAnalogsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x122\n\x05value\x18\x02 \x01(\x0b2\x1c.viam.common.v1.AnalogStatusR\x05value:\x028\x01\x1al\n\x16DigitalInterruptsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12<\n\x05value\x18\x02 \x01(\x0b2&.viam.common.v1.DigitalInterruptStatusR\x05value:\x028\x01"$\n\x0cAnalogStatus\x12\x14\n\x05value\x18\x01 \x01(\x05R\x05value".\n\x16DigitalInterruptStatus\x12\x14\n\x05value\x18\x01 \x01(\x03R\x05value"y\n\x04Pose\x12\x0c\n\x01x\x18\x01 \x01(\x01R\x01x\x12\x0c\n\x01y\x18\x02 \x01(\x01R\x01y\x12\x0c\n\x01z\x18\x03 \x01(\x01R\x01z\x12\x0f\n\x03o_x\x18\x04 \x01(\x01R\x02oX\x12\x0f\n\x03o_y\x18\x05 \x01(\x01R\x02oY\x12\x0f\n\x03o_z\x18\x06 \x01(\x01R\x02oZ\x12\x14\n\x05theta\x18\x07 \x01(\x01R\x05theta"V\n\x0bOrientation\x12\x0f\n\x03o_x\x18\x01 \x01(\x01R\x02oX\x12\x0f\n\x03o_y\x18\x02 \x01(\x01R\x02oY\x12\x0f\n\x03o_z\x18\x03 \x01(\x01R\x02oZ\x12\x14\n\x05theta\x18\x04 \x01(\x01R\x05theta"`\n\x0bPoseInFrame\x12\'\n\x0freference_frame\x18\x01 \x01(\tR\x0ereferenceFrame\x12(\n\x04pose\x18\x02 \x01(\x0b2\x14.viam.common.v1.PoseR\x04pose"3\n\x07Vector3\x12\x0c\n\x01x\x18\x01 \x01(\x01R\x01x\x12\x0c\n\x01y\x18\x02 \x01(\x01R\x01y\x12\x0c\n\x01z\x18\x03 \x01(\x01R\x01z"%\n\x06Sphere\x12\x1b\n\tradius_mm\x18\x01 \x01(\x01R\x08radiusMm"C\n\x07Capsule\x12\x1b\n\tradius_mm\x18\x01 \x01(\x01R\x08radiusMm\x12\x1b\n\tlength_mm\x18\x02 \x01(\x01R\x08lengthMm"D\n\x10RectangularPrism\x120\n\x07dims_mm\x18\x01 \x01(\x0b2\x17.viam.common.v1.Vector3R\x06dimsMm"\xfc\x01\n\x08Geometry\x12,\n\x06center\x18\x01 \x01(\x0b2\x14.viam.common.v1.PoseR\x06center\x120\n\x06sphere\x18\x02 \x01(\x0b2\x16.viam.common.v1.SphereH\x00R\x06sphere\x124\n\x03box\x18\x03 \x01(\x0b2 .viam.common.v1.RectangularPrismH\x00R\x03box\x123\n\x07capsule\x18\x05 \x01(\x0b2\x17.viam.common.v1.CapsuleH\x00R\x07capsule\x12\x14\n\x05label\x18\x04 \x01(\tR\x05labelB\x0f\n\rgeometry_type"v\n\x11GeometriesInFrame\x12\'\n\x0freference_frame\x18\x01 \x01(\tR\x0ereferenceFrame\x128\n\ngeometries\x18\x02 \x03(\x0b2\x18.viam.common.v1.GeometryR\ngeometries"v\n\x10PointCloudObject\x12\x1f\n\x0bpoint_cloud\x18\x01 \x01(\x0cR\npointCloud\x12A\n\ngeometries\x18\x02 \x01(\x0b2!.viam.common.v1.GeometriesInFrameR\ngeometries"D\n\x08GeoPoint\x12\x1a\n\x08latitude\x18\x01 \x01(\x01R\x08latitude\x12\x1c\n\tlongitude\x18\x02 \x01(\x01R\tlongitude"}\n\x0bGeoObstacle\x124\n\x08location\x18\x01 \x01(\x0b2\x18.viam.common.v1.GeoPointR\x08location\x128\n\ngeometries\x18\x02 \x03(\x0b2\x18.viam.common.v1.GeometryR\ngeometries"\xe2\x01\n\tTransform\x12\'\n\x0freference_frame\x18\x01 \x01(\tR\x0ereferenceFrame\x12P\n\x16pose_in_observer_frame\x18\x02 \x01(\x0b2\x1b.viam.common.v1.PoseInFrameR\x13poseInObserverFrame\x12F\n\x0fphysical_object\x18\x03 \x01(\x0b2\x18.viam.common.v1.GeometryH\x00R\x0ephysicalObject\x88\x01\x01B\x12\n\x10_physical_object"\x88\x01\n\nWorldState\x12?\n\tobstacles\x18\x01 \x03(\x0b2!.viam.common.v1.GeometriesInFrameR\tobstacles\x129\n\ntransforms\x18\x03 \x03(\x0b2\x19.viam.common.v1.TransformR\ntransforms"-\n\x0eActuatorStatus\x12\x1b\n\tis_moving\x18\x01 \x01(\x08R\x08isMoving"d\n\x10ResponseMetadata\x12@\n\x0bcaptured_at\x18\x01 \x01(\x0b2\x1a.google.protobuf.TimestampH\x00R\ncapturedAt\x88\x01\x01B\x0e\n\x0c_captured_at"Y\n\x10DoCommandRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x121\n\x07command\x18\x02 \x01(\x0b2\x17.google.protobuf.StructR\x07command"D\n\x11DoCommandResponse\x12/\n\x06result\x18\x01 \x01(\x0b2\x17.google.protobuf.StructR\x06result"Y\n\x14GetKinematicsRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"~\n\x15GetKinematicsResponse\x12<\n\x06format\x18\x01 \x01(\x0e2$.viam.common.v1.KinematicsFileFormatR\x06format\x12\'\n\x0fkinematics_data\x18\x02 \x01(\x0cR\x0ekinematicsData"Y\n\x14GetGeometriesRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"Q\n\x15GetGeometriesResponse\x128\n\ngeometries\x18\x01 \x03(\x0b2\x18.viam.common.v1.GeometryR\ngeometries"W\n\x12GetReadingsRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\xb9\x01\n\x13GetReadingsResponse\x12M\n\x08readings\x18\x01 \x03(\x0b21.viam.common.v1.GetReadingsResponse.ReadingsEntryR\x08readings\x1aS\n\rReadingsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12,\n\x05value\x18\x02 \x01(\x0b2\x16.google.protobuf.ValueR\x05value:\x028\x01"\x97\x02\n\x08LogEntry\x12\x12\n\x04host\x18\x01 \x01(\tR\x04host\x12\x14\n\x05level\x18\x02 \x01(\tR\x05level\x12.\n\x04time\x18\x03 \x01(\x0b2\x1a.google.protobuf.TimestampR\x04time\x12\x1f\n\x0blogger_name\x18\x04 \x01(\tR\nloggerName\x12\x18\n\x07message\x18\x05 \x01(\tR\x07message\x12/\n\x06caller\x18\x06 \x01(\x0b2\x17.google.protobuf.StructR\x06caller\x12\x14\n\x05stack\x18\x07 \x01(\tR\x05stack\x12/\n\x06fields\x18\x08 \x03(\x0b2\x17.google.protobuf.StructR\x06fields*\x7f\n\x14KinematicsFileFormat\x12&\n"KINEMATICS_FILE_FORMAT_UNSPECIFIED\x10\x00\x12\x1e\n\x1aKINEMATICS_FILE_FORMAT_SVA\x10\x01\x12\x1f\n\x1bKINEMATICS_FILE_FORMAT_URDF\x10\x02:a\n\x1asafety_heartbeat_monitored\x12\x1e.google.protobuf.MethodOptions\x18\xa4\x92\x05 \x01(\x08R\x18safetyHeartbeatMonitored\x88\x01\x01B/\n\x12com.viam.common.v1Z\x19go.viam.com/api/common/v1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16common/v1/common.proto\x12\x0eviam.common.v1\x1a google/protobuf/descriptor.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"n\n\x0cResourceName\x12\x1c\n\tnamespace\x18\x01 \x01(\tR\tnamespace\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12\x18\n\x07subtype\x18\x03 \x01(\tR\x07subtype\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name"$\n\x0cAnalogStatus\x12\x14\n\x05value\x18\x01 \x01(\x05R\x05value".\n\x16DigitalInterruptStatus\x12\x14\n\x05value\x18\x01 \x01(\x03R\x05value"y\n\x04Pose\x12\x0c\n\x01x\x18\x01 \x01(\x01R\x01x\x12\x0c\n\x01y\x18\x02 \x01(\x01R\x01y\x12\x0c\n\x01z\x18\x03 \x01(\x01R\x01z\x12\x0f\n\x03o_x\x18\x04 \x01(\x01R\x02oX\x12\x0f\n\x03o_y\x18\x05 \x01(\x01R\x02oY\x12\x0f\n\x03o_z\x18\x06 \x01(\x01R\x02oZ\x12\x14\n\x05theta\x18\x07 \x01(\x01R\x05theta"V\n\x0bOrientation\x12\x0f\n\x03o_x\x18\x01 \x01(\x01R\x02oX\x12\x0f\n\x03o_y\x18\x02 \x01(\x01R\x02oY\x12\x0f\n\x03o_z\x18\x03 \x01(\x01R\x02oZ\x12\x14\n\x05theta\x18\x04 \x01(\x01R\x05theta"`\n\x0bPoseInFrame\x12\'\n\x0freference_frame\x18\x01 \x01(\tR\x0ereferenceFrame\x12(\n\x04pose\x18\x02 \x01(\x0b2\x14.viam.common.v1.PoseR\x04pose"3\n\x07Vector3\x12\x0c\n\x01x\x18\x01 \x01(\x01R\x01x\x12\x0c\n\x01y\x18\x02 \x01(\x01R\x01y\x12\x0c\n\x01z\x18\x03 \x01(\x01R\x01z"%\n\x06Sphere\x12\x1b\n\tradius_mm\x18\x01 \x01(\x01R\x08radiusMm"C\n\x07Capsule\x12\x1b\n\tradius_mm\x18\x01 \x01(\x01R\x08radiusMm\x12\x1b\n\tlength_mm\x18\x02 \x01(\x01R\x08lengthMm"D\n\x10RectangularPrism\x120\n\x07dims_mm\x18\x01 \x01(\x0b2\x17.viam.common.v1.Vector3R\x06dimsMm"\xfc\x01\n\x08Geometry\x12,\n\x06center\x18\x01 \x01(\x0b2\x14.viam.common.v1.PoseR\x06center\x120\n\x06sphere\x18\x02 \x01(\x0b2\x16.viam.common.v1.SphereH\x00R\x06sphere\x124\n\x03box\x18\x03 \x01(\x0b2 .viam.common.v1.RectangularPrismH\x00R\x03box\x123\n\x07capsule\x18\x05 \x01(\x0b2\x17.viam.common.v1.CapsuleH\x00R\x07capsule\x12\x14\n\x05label\x18\x04 \x01(\tR\x05labelB\x0f\n\rgeometry_type"v\n\x11GeometriesInFrame\x12\'\n\x0freference_frame\x18\x01 \x01(\tR\x0ereferenceFrame\x128\n\ngeometries\x18\x02 \x03(\x0b2\x18.viam.common.v1.GeometryR\ngeometries"v\n\x10PointCloudObject\x12\x1f\n\x0bpoint_cloud\x18\x01 \x01(\x0cR\npointCloud\x12A\n\ngeometries\x18\x02 \x01(\x0b2!.viam.common.v1.GeometriesInFrameR\ngeometries"D\n\x08GeoPoint\x12\x1a\n\x08latitude\x18\x01 \x01(\x01R\x08latitude\x12\x1c\n\tlongitude\x18\x02 \x01(\x01R\tlongitude"}\n\x0bGeoObstacle\x124\n\x08location\x18\x01 \x01(\x0b2\x18.viam.common.v1.GeoPointR\x08location\x128\n\ngeometries\x18\x02 \x03(\x0b2\x18.viam.common.v1.GeometryR\ngeometries"\xe2\x01\n\tTransform\x12\'\n\x0freference_frame\x18\x01 \x01(\tR\x0ereferenceFrame\x12P\n\x16pose_in_observer_frame\x18\x02 \x01(\x0b2\x1b.viam.common.v1.PoseInFrameR\x13poseInObserverFrame\x12F\n\x0fphysical_object\x18\x03 \x01(\x0b2\x18.viam.common.v1.GeometryH\x00R\x0ephysicalObject\x88\x01\x01B\x12\n\x10_physical_object"\x88\x01\n\nWorldState\x12?\n\tobstacles\x18\x01 \x03(\x0b2!.viam.common.v1.GeometriesInFrameR\tobstacles\x129\n\ntransforms\x18\x03 \x03(\x0b2\x19.viam.common.v1.TransformR\ntransforms"-\n\x0eActuatorStatus\x12\x1b\n\tis_moving\x18\x01 \x01(\x08R\x08isMoving"d\n\x10ResponseMetadata\x12@\n\x0bcaptured_at\x18\x01 \x01(\x0b2\x1a.google.protobuf.TimestampH\x00R\ncapturedAt\x88\x01\x01B\x0e\n\x0c_captured_at"Y\n\x10DoCommandRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x121\n\x07command\x18\x02 \x01(\x0b2\x17.google.protobuf.StructR\x07command"D\n\x11DoCommandResponse\x12/\n\x06result\x18\x01 \x01(\x0b2\x17.google.protobuf.StructR\x06result"Y\n\x14GetKinematicsRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"~\n\x15GetKinematicsResponse\x12<\n\x06format\x18\x01 \x01(\x0e2$.viam.common.v1.KinematicsFileFormatR\x06format\x12\'\n\x0fkinematics_data\x18\x02 \x01(\x0cR\x0ekinematicsData"Y\n\x14GetGeometriesRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"Q\n\x15GetGeometriesResponse\x128\n\ngeometries\x18\x01 \x03(\x0b2\x18.viam.common.v1.GeometryR\ngeometries"W\n\x12GetReadingsRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\xb9\x01\n\x13GetReadingsResponse\x12M\n\x08readings\x18\x01 \x03(\x0b21.viam.common.v1.GetReadingsResponse.ReadingsEntryR\x08readings\x1aS\n\rReadingsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12,\n\x05value\x18\x02 \x01(\x0b2\x16.google.protobuf.ValueR\x05value:\x028\x01"\x97\x02\n\x08LogEntry\x12\x12\n\x04host\x18\x01 \x01(\tR\x04host\x12\x14\n\x05level\x18\x02 \x01(\tR\x05level\x12.\n\x04time\x18\x03 \x01(\x0b2\x1a.google.protobuf.TimestampR\x04time\x12\x1f\n\x0blogger_name\x18\x04 \x01(\tR\nloggerName\x12\x18\n\x07message\x18\x05 \x01(\tR\x07message\x12/\n\x06caller\x18\x06 \x01(\x0b2\x17.google.protobuf.StructR\x06caller\x12\x14\n\x05stack\x18\x07 \x01(\tR\x05stack\x12/\n\x06fields\x18\x08 \x03(\x0b2\x17.google.protobuf.StructR\x06fields*\x7f\n\x14KinematicsFileFormat\x12&\n"KINEMATICS_FILE_FORMAT_UNSPECIFIED\x10\x00\x12\x1e\n\x1aKINEMATICS_FILE_FORMAT_SVA\x10\x01\x12\x1f\n\x1bKINEMATICS_FILE_FORMAT_URDF\x10\x02:a\n\x1asafety_heartbeat_monitored\x12\x1e.google.protobuf.MethodOptions\x18\xa4\x92\x05 \x01(\x08R\x18safetyHeartbeatMonitored\x88\x01\x01B/\n\x12com.viam.common.v1Z\x19go.viam.com/api/common/v1b\x06proto3') _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'common.v1.common_pb2', globals()) if _descriptor._USE_C_DESCRIPTORS == False: google_dot_protobuf_dot_descriptor__pb2.MethodOptions.RegisterExtension(safety_heartbeat_monitored) DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n\x12com.viam.common.v1Z\x19go.viam.com/api/common/v1' - _BOARDSTATUS_ANALOGSENTRY._options = None - _BOARDSTATUS_ANALOGSENTRY._serialized_options = b'8\x01' - _BOARDSTATUS_DIGITALINTERRUPTSENTRY._options = None - _BOARDSTATUS_DIGITALINTERRUPTSENTRY._serialized_options = b'8\x01' _GETREADINGSRESPONSE_READINGSENTRY._options = None _GETREADINGSRESPONSE_READINGSENTRY._serialized_options = b'8\x01' - _KINEMATICSFILEFORMAT._serialized_start = 3648 - _KINEMATICSFILEFORMAT._serialized_end = 3775 - _RESOURCENAME._serialized_start = 140 - _RESOURCENAME._serialized_end = 315 - _BOARDSTATUS._serialized_start = 318 - _BOARDSTATUS._serialized_end = 698 - _BOARDSTATUS_ANALOGSENTRY._serialized_start = 500 - _BOARDSTATUS_ANALOGSENTRY._serialized_end = 588 - _BOARDSTATUS_DIGITALINTERRUPTSENTRY._serialized_start = 590 - _BOARDSTATUS_DIGITALINTERRUPTSENTRY._serialized_end = 698 - _ANALOGSTATUS._serialized_start = 700 - _ANALOGSTATUS._serialized_end = 736 - _DIGITALINTERRUPTSTATUS._serialized_start = 738 - _DIGITALINTERRUPTSTATUS._serialized_end = 784 - _POSE._serialized_start = 786 - _POSE._serialized_end = 907 - _ORIENTATION._serialized_start = 909 - _ORIENTATION._serialized_end = 995 - _POSEINFRAME._serialized_start = 997 - _POSEINFRAME._serialized_end = 1093 - _VECTOR3._serialized_start = 1095 - _VECTOR3._serialized_end = 1146 - _SPHERE._serialized_start = 1148 - _SPHERE._serialized_end = 1185 - _CAPSULE._serialized_start = 1187 - _CAPSULE._serialized_end = 1254 - _RECTANGULARPRISM._serialized_start = 1256 - _RECTANGULARPRISM._serialized_end = 1324 - _GEOMETRY._serialized_start = 1327 - _GEOMETRY._serialized_end = 1579 - _GEOMETRIESINFRAME._serialized_start = 1581 - _GEOMETRIESINFRAME._serialized_end = 1699 - _POINTCLOUDOBJECT._serialized_start = 1701 - _POINTCLOUDOBJECT._serialized_end = 1819 - _GEOPOINT._serialized_start = 1821 - _GEOPOINT._serialized_end = 1889 - _GEOOBSTACLE._serialized_start = 1891 - _GEOOBSTACLE._serialized_end = 2016 - _TRANSFORM._serialized_start = 2019 - _TRANSFORM._serialized_end = 2245 - _WORLDSTATE._serialized_start = 2248 - _WORLDSTATE._serialized_end = 2384 - _ACTUATORSTATUS._serialized_start = 2386 - _ACTUATORSTATUS._serialized_end = 2431 - _RESPONSEMETADATA._serialized_start = 2433 - _RESPONSEMETADATA._serialized_end = 2533 - _DOCOMMANDREQUEST._serialized_start = 2535 - _DOCOMMANDREQUEST._serialized_end = 2624 - _DOCOMMANDRESPONSE._serialized_start = 2626 - _DOCOMMANDRESPONSE._serialized_end = 2694 - _GETKINEMATICSREQUEST._serialized_start = 2696 - _GETKINEMATICSREQUEST._serialized_end = 2785 - _GETKINEMATICSRESPONSE._serialized_start = 2787 - _GETKINEMATICSRESPONSE._serialized_end = 2913 - _GETGEOMETRIESREQUEST._serialized_start = 2915 - _GETGEOMETRIESREQUEST._serialized_end = 3004 - _GETGEOMETRIESRESPONSE._serialized_start = 3006 - _GETGEOMETRIESRESPONSE._serialized_end = 3087 - _GETREADINGSREQUEST._serialized_start = 3089 - _GETREADINGSREQUEST._serialized_end = 3176 - _GETREADINGSRESPONSE._serialized_start = 3179 - _GETREADINGSRESPONSE._serialized_end = 3364 - _GETREADINGSRESPONSE_READINGSENTRY._serialized_start = 3281 - _GETREADINGSRESPONSE_READINGSENTRY._serialized_end = 3364 - _LOGENTRY._serialized_start = 3367 - _LOGENTRY._serialized_end = 3646 \ No newline at end of file + _KINEMATICSFILEFORMAT._serialized_start = 3199 + _KINEMATICSFILEFORMAT._serialized_end = 3326 + _RESOURCENAME._serialized_start = 139 + _RESOURCENAME._serialized_end = 249 + _ANALOGSTATUS._serialized_start = 251 + _ANALOGSTATUS._serialized_end = 287 + _DIGITALINTERRUPTSTATUS._serialized_start = 289 + _DIGITALINTERRUPTSTATUS._serialized_end = 335 + _POSE._serialized_start = 337 + _POSE._serialized_end = 458 + _ORIENTATION._serialized_start = 460 + _ORIENTATION._serialized_end = 546 + _POSEINFRAME._serialized_start = 548 + _POSEINFRAME._serialized_end = 644 + _VECTOR3._serialized_start = 646 + _VECTOR3._serialized_end = 697 + _SPHERE._serialized_start = 699 + _SPHERE._serialized_end = 736 + _CAPSULE._serialized_start = 738 + _CAPSULE._serialized_end = 805 + _RECTANGULARPRISM._serialized_start = 807 + _RECTANGULARPRISM._serialized_end = 875 + _GEOMETRY._serialized_start = 878 + _GEOMETRY._serialized_end = 1130 + _GEOMETRIESINFRAME._serialized_start = 1132 + _GEOMETRIESINFRAME._serialized_end = 1250 + _POINTCLOUDOBJECT._serialized_start = 1252 + _POINTCLOUDOBJECT._serialized_end = 1370 + _GEOPOINT._serialized_start = 1372 + _GEOPOINT._serialized_end = 1440 + _GEOOBSTACLE._serialized_start = 1442 + _GEOOBSTACLE._serialized_end = 1567 + _TRANSFORM._serialized_start = 1570 + _TRANSFORM._serialized_end = 1796 + _WORLDSTATE._serialized_start = 1799 + _WORLDSTATE._serialized_end = 1935 + _ACTUATORSTATUS._serialized_start = 1937 + _ACTUATORSTATUS._serialized_end = 1982 + _RESPONSEMETADATA._serialized_start = 1984 + _RESPONSEMETADATA._serialized_end = 2084 + _DOCOMMANDREQUEST._serialized_start = 2086 + _DOCOMMANDREQUEST._serialized_end = 2175 + _DOCOMMANDRESPONSE._serialized_start = 2177 + _DOCOMMANDRESPONSE._serialized_end = 2245 + _GETKINEMATICSREQUEST._serialized_start = 2247 + _GETKINEMATICSREQUEST._serialized_end = 2336 + _GETKINEMATICSRESPONSE._serialized_start = 2338 + _GETKINEMATICSRESPONSE._serialized_end = 2464 + _GETGEOMETRIESREQUEST._serialized_start = 2466 + _GETGEOMETRIESREQUEST._serialized_end = 2555 + _GETGEOMETRIESRESPONSE._serialized_start = 2557 + _GETGEOMETRIESRESPONSE._serialized_end = 2638 + _GETREADINGSREQUEST._serialized_start = 2640 + _GETREADINGSREQUEST._serialized_end = 2727 + _GETREADINGSRESPONSE._serialized_start = 2730 + _GETREADINGSRESPONSE._serialized_end = 2915 + _GETREADINGSRESPONSE_READINGSENTRY._serialized_start = 2832 + _GETREADINGSRESPONSE_READINGSENTRY._serialized_end = 2915 + _LOGENTRY._serialized_start = 2918 + _LOGENTRY._serialized_end = 3197 \ No newline at end of file diff --git a/src/viam/gen/common/v1/common_pb2.pyi b/src/viam/gen/common/v1/common_pb2.pyi index b2d1d4d59..a8b03cbe6 100644 --- a/src/viam/gen/common/v1/common_pb2.pyi +++ b/src/viam/gen/common/v1/common_pb2.pyi @@ -44,87 +44,18 @@ class ResourceName(google.protobuf.message.Message): TYPE_FIELD_NUMBER: builtins.int SUBTYPE_FIELD_NUMBER: builtins.int NAME_FIELD_NUMBER: builtins.int - MACHINE_PART_ID_FIELD_NUMBER: builtins.int namespace: builtins.str type: builtins.str subtype: builtins.str name: builtins.str - machine_part_id: builtins.str - def __init__(self, *, namespace: builtins.str=..., type: builtins.str=..., subtype: builtins.str=..., name: builtins.str=..., machine_part_id: builtins.str | None=...) -> None: + def __init__(self, *, namespace: builtins.str=..., type: builtins.str=..., subtype: builtins.str=..., name: builtins.str=...) -> None: ... - def HasField(self, field_name: typing_extensions.Literal['_machine_part_id', b'_machine_part_id', 'machine_part_id', b'machine_part_id']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing_extensions.Literal['_machine_part_id', b'_machine_part_id', 'machine_part_id', b'machine_part_id', 'name', b'name', 'namespace', b'namespace', 'subtype', b'subtype', 'type', b'type']) -> None: - ... - - def WhichOneof(self, oneof_group: typing_extensions.Literal['_machine_part_id', b'_machine_part_id']) -> typing_extensions.Literal['machine_part_id'] | None: + def ClearField(self, field_name: typing_extensions.Literal['name', b'name', 'namespace', b'namespace', 'subtype', b'subtype', 'type', b'type']) -> None: ... global___ResourceName = ResourceName -@typing_extensions.final -class BoardStatus(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing_extensions.final - class AnalogsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - - @property - def value(self) -> global___AnalogStatus: - ... - - def __init__(self, *, key: builtins.str=..., value: global___AnalogStatus | None=...) -> None: - ... - - def HasField(self, field_name: typing_extensions.Literal['value', b'value']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing_extensions.Literal['key', b'key', 'value', b'value']) -> None: - ... - - @typing_extensions.final - class DigitalInterruptsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - - @property - def value(self) -> global___DigitalInterruptStatus: - ... - - def __init__(self, *, key: builtins.str=..., value: global___DigitalInterruptStatus | None=...) -> None: - ... - - def HasField(self, field_name: typing_extensions.Literal['value', b'value']) -> builtins.bool: - ... - - def ClearField(self, field_name: typing_extensions.Literal['key', b'key', 'value', b'value']) -> None: - ... - ANALOGS_FIELD_NUMBER: builtins.int - DIGITAL_INTERRUPTS_FIELD_NUMBER: builtins.int - - @property - def analogs(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___AnalogStatus]: - ... - - @property - def digital_interrupts(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___DigitalInterruptStatus]: - ... - - def __init__(self, *, analogs: collections.abc.Mapping[builtins.str, global___AnalogStatus] | None=..., digital_interrupts: collections.abc.Mapping[builtins.str, global___DigitalInterruptStatus] | None=...) -> None: - ... - - def ClearField(self, field_name: typing_extensions.Literal['analogs', b'analogs', 'digital_interrupts', b'digital_interrupts']) -> None: - ... -global___BoardStatus = BoardStatus - @typing_extensions.final class AnalogStatus(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor diff --git a/src/viam/gen/component/board/v1/board_grpc.py b/src/viam/gen/component/board/v1/board_grpc.py index 6aad0ca3a..a9be61ff9 100644 --- a/src/viam/gen/component/board/v1/board_grpc.py +++ b/src/viam/gen/component/board/v1/board_grpc.py @@ -12,10 +12,6 @@ class BoardServiceBase(abc.ABC): - @abc.abstractmethod - async def Status(self, stream: 'grpclib.server.Stream[component.board.v1.board_pb2.StatusRequest, component.board.v1.board_pb2.StatusResponse]') -> None: - pass - @abc.abstractmethod async def SetGPIO(self, stream: 'grpclib.server.Stream[component.board.v1.board_pb2.SetGPIORequest, component.board.v1.board_pb2.SetGPIOResponse]') -> None: pass @@ -69,12 +65,11 @@ async def GetGeometries(self, stream: 'grpclib.server.Stream[common.v1.common_pb pass def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]: - return {'/viam.component.board.v1.BoardService/Status': grpclib.const.Handler(self.Status, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.StatusRequest, component.board.v1.board_pb2.StatusResponse), '/viam.component.board.v1.BoardService/SetGPIO': grpclib.const.Handler(self.SetGPIO, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.SetGPIORequest, component.board.v1.board_pb2.SetGPIOResponse), '/viam.component.board.v1.BoardService/GetGPIO': grpclib.const.Handler(self.GetGPIO, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.GetGPIORequest, component.board.v1.board_pb2.GetGPIOResponse), '/viam.component.board.v1.BoardService/PWM': grpclib.const.Handler(self.PWM, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.PWMRequest, component.board.v1.board_pb2.PWMResponse), '/viam.component.board.v1.BoardService/SetPWM': grpclib.const.Handler(self.SetPWM, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.SetPWMRequest, component.board.v1.board_pb2.SetPWMResponse), '/viam.component.board.v1.BoardService/PWMFrequency': grpclib.const.Handler(self.PWMFrequency, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.PWMFrequencyRequest, component.board.v1.board_pb2.PWMFrequencyResponse), '/viam.component.board.v1.BoardService/SetPWMFrequency': grpclib.const.Handler(self.SetPWMFrequency, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.SetPWMFrequencyRequest, component.board.v1.board_pb2.SetPWMFrequencyResponse), '/viam.component.board.v1.BoardService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse), '/viam.component.board.v1.BoardService/ReadAnalogReader': grpclib.const.Handler(self.ReadAnalogReader, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.ReadAnalogReaderRequest, component.board.v1.board_pb2.ReadAnalogReaderResponse), '/viam.component.board.v1.BoardService/WriteAnalog': grpclib.const.Handler(self.WriteAnalog, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.WriteAnalogRequest, component.board.v1.board_pb2.WriteAnalogResponse), '/viam.component.board.v1.BoardService/GetDigitalInterruptValue': grpclib.const.Handler(self.GetDigitalInterruptValue, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.GetDigitalInterruptValueRequest, component.board.v1.board_pb2.GetDigitalInterruptValueResponse), '/viam.component.board.v1.BoardService/StreamTicks': grpclib.const.Handler(self.StreamTicks, grpclib.const.Cardinality.UNARY_STREAM, component.board.v1.board_pb2.StreamTicksRequest, component.board.v1.board_pb2.StreamTicksResponse), '/viam.component.board.v1.BoardService/SetPowerMode': grpclib.const.Handler(self.SetPowerMode, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.SetPowerModeRequest, component.board.v1.board_pb2.SetPowerModeResponse), '/viam.component.board.v1.BoardService/GetGeometries': grpclib.const.Handler(self.GetGeometries, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)} + return {'/viam.component.board.v1.BoardService/SetGPIO': grpclib.const.Handler(self.SetGPIO, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.SetGPIORequest, component.board.v1.board_pb2.SetGPIOResponse), '/viam.component.board.v1.BoardService/GetGPIO': grpclib.const.Handler(self.GetGPIO, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.GetGPIORequest, component.board.v1.board_pb2.GetGPIOResponse), '/viam.component.board.v1.BoardService/PWM': grpclib.const.Handler(self.PWM, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.PWMRequest, component.board.v1.board_pb2.PWMResponse), '/viam.component.board.v1.BoardService/SetPWM': grpclib.const.Handler(self.SetPWM, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.SetPWMRequest, component.board.v1.board_pb2.SetPWMResponse), '/viam.component.board.v1.BoardService/PWMFrequency': grpclib.const.Handler(self.PWMFrequency, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.PWMFrequencyRequest, component.board.v1.board_pb2.PWMFrequencyResponse), '/viam.component.board.v1.BoardService/SetPWMFrequency': grpclib.const.Handler(self.SetPWMFrequency, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.SetPWMFrequencyRequest, component.board.v1.board_pb2.SetPWMFrequencyResponse), '/viam.component.board.v1.BoardService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse), '/viam.component.board.v1.BoardService/ReadAnalogReader': grpclib.const.Handler(self.ReadAnalogReader, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.ReadAnalogReaderRequest, component.board.v1.board_pb2.ReadAnalogReaderResponse), '/viam.component.board.v1.BoardService/WriteAnalog': grpclib.const.Handler(self.WriteAnalog, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.WriteAnalogRequest, component.board.v1.board_pb2.WriteAnalogResponse), '/viam.component.board.v1.BoardService/GetDigitalInterruptValue': grpclib.const.Handler(self.GetDigitalInterruptValue, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.GetDigitalInterruptValueRequest, component.board.v1.board_pb2.GetDigitalInterruptValueResponse), '/viam.component.board.v1.BoardService/StreamTicks': grpclib.const.Handler(self.StreamTicks, grpclib.const.Cardinality.UNARY_STREAM, component.board.v1.board_pb2.StreamTicksRequest, component.board.v1.board_pb2.StreamTicksResponse), '/viam.component.board.v1.BoardService/SetPowerMode': grpclib.const.Handler(self.SetPowerMode, grpclib.const.Cardinality.UNARY_UNARY, component.board.v1.board_pb2.SetPowerModeRequest, component.board.v1.board_pb2.SetPowerModeResponse), '/viam.component.board.v1.BoardService/GetGeometries': grpclib.const.Handler(self.GetGeometries, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)} class BoardServiceStub: def __init__(self, channel: grpclib.client.Channel) -> None: - self.Status = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.board.v1.BoardService/Status', component.board.v1.board_pb2.StatusRequest, component.board.v1.board_pb2.StatusResponse) self.SetGPIO = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.board.v1.BoardService/SetGPIO', component.board.v1.board_pb2.SetGPIORequest, component.board.v1.board_pb2.SetGPIOResponse) self.GetGPIO = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.board.v1.BoardService/GetGPIO', component.board.v1.board_pb2.GetGPIORequest, component.board.v1.board_pb2.GetGPIOResponse) self.PWM = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.board.v1.BoardService/PWM', component.board.v1.board_pb2.PWMRequest, component.board.v1.board_pb2.PWMResponse) diff --git a/src/viam/gen/component/board/v1/board_pb2.py b/src/viam/gen/component/board/v1/board_pb2.py index 03921d86f..884af5fb5 100644 --- a/src/viam/gen/component/board/v1/board_pb2.py +++ b/src/viam/gen/component/board/v1/board_pb2.py @@ -8,14 +8,16 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ecomponent/board/v1/board.proto\x12\x17viam.component.board.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto"R\n\rStatusRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"E\n\x0eStatusResponse\x123\n\x06status\x18\x01 \x01(\x0b2\x1b.viam.common.v1.BoardStatusR\x06status"y\n\x0eSetGPIORequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03pin\x18\x02 \x01(\tR\x03pin\x12\x12\n\x04high\x18\x03 \x01(\x08R\x04high\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x11\n\x0fSetGPIOResponse"e\n\x0eGetGPIORequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03pin\x18\x02 \x01(\tR\x03pin\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"%\n\x0fGetGPIOResponse\x12\x12\n\x04high\x18\x01 \x01(\x08R\x04high"a\n\nPWMRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03pin\x18\x02 \x01(\tR\x03pin\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"3\n\x0bPWMResponse\x12$\n\x0eduty_cycle_pct\x18\x01 \x01(\x01R\x0cdutyCyclePct"\x8a\x01\n\rSetPWMRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03pin\x18\x02 \x01(\tR\x03pin\x12$\n\x0eduty_cycle_pct\x18\x03 \x01(\x01R\x0cdutyCyclePct\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x10\n\x0eSetPWMResponse"j\n\x13PWMFrequencyRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03pin\x18\x02 \x01(\tR\x03pin\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"9\n\x14PWMFrequencyResponse\x12!\n\x0cfrequency_hz\x18\x01 \x01(\x04R\x0bfrequencyHz"\x90\x01\n\x16SetPWMFrequencyRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03pin\x18\x02 \x01(\tR\x03pin\x12!\n\x0cfrequency_hz\x18\x03 \x01(\x04R\x0bfrequencyHz\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x19\n\x17SetPWMFrequencyResponse"\x95\x01\n\x17ReadAnalogReaderRequest\x12\x1d\n\nboard_name\x18\x01 \x01(\tR\tboardName\x12,\n\x12analog_reader_name\x18\x02 \x01(\tR\x10analogReaderName\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"0\n\x18ReadAnalogReaderResponse\x12\x14\n\x05value\x18\x01 \x01(\x05R\x05value"\x7f\n\x12WriteAnalogRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03pin\x18\x02 \x01(\tR\x03pin\x12\x14\n\x05value\x18\x03 \x01(\x05R\x05value\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x15\n\x13WriteAnalogResponse"\xa5\x01\n\x1fGetDigitalInterruptValueRequest\x12\x1d\n\nboard_name\x18\x01 \x01(\tR\tboardName\x124\n\x16digital_interrupt_name\x18\x02 \x01(\tR\x14digitalInterruptName\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"8\n GetDigitalInterruptValueResponse\x12\x14\n\x05value\x18\x01 \x01(\x03R\x05value"t\n\x12StreamTicksRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1b\n\tpin_names\x18\x02 \x03(\tR\x08pinNames\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"X\n\x13StreamTicksResponse\x12\x19\n\x08pin_name\x18\x01 \x01(\tR\x07pinName\x12\x12\n\x04time\x18\x02 \x01(\x04R\x04time\x12\x12\n\x04high\x18\x03 \x01(\x08R\x04high"\xe4\x01\n\x13SetPowerModeRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12A\n\npower_mode\x18\x02 \x01(\x0e2".viam.component.board.v1.PowerModeR\tpowerMode\x12:\n\x08duration\x18\x03 \x01(\x0b2\x19.google.protobuf.DurationH\x00R\x08duration\x88\x01\x01\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extraB\x0b\n\t_duration"\x16\n\x14SetPowerModeResponse*[\n\tPowerMode\x12\x1a\n\x16POWER_MODE_UNSPECIFIED\x10\x00\x12\x15\n\x11POWER_MODE_NORMAL\x10\x01\x12\x1b\n\x17POWER_MODE_OFFLINE_DEEP\x10\x022\x80\x12\n\x0cBoardService\x12\x8d\x01\n\x06Status\x12&.viam.component.board.v1.StatusRequest\x1a\'.viam.component.board.v1.StatusResponse"2\x82\xd3\xe4\x93\x02,\x12*/viam/api/v1/component/board/{name}/status\x12\x8e\x01\n\x07SetGPIO\x12\'.viam.component.board.v1.SetGPIORequest\x1a(.viam.component.board.v1.SetGPIOResponse"0\x82\xd3\xe4\x93\x02*\x1a(/viam/api/v1/component/board/{name}/gpio\x12\x8e\x01\n\x07GetGPIO\x12\'.viam.component.board.v1.GetGPIORequest\x1a(.viam.component.board.v1.GetGPIOResponse"0\x82\xd3\xe4\x93\x02*\x12(/viam/api/v1/component/board/{name}/gpio\x12\x81\x01\n\x03PWM\x12#.viam.component.board.v1.PWMRequest\x1a$.viam.component.board.v1.PWMResponse"/\x82\xd3\xe4\x93\x02)\x12\'/viam/api/v1/component/board/{name}/pwm\x12\x8a\x01\n\x06SetPWM\x12&.viam.component.board.v1.SetPWMRequest\x1a\'.viam.component.board.v1.SetPWMResponse"/\x82\xd3\xe4\x93\x02)\x1a\'/viam/api/v1/component/board/{name}/pwm\x12\xa1\x01\n\x0cPWMFrequency\x12,.viam.component.board.v1.PWMFrequencyRequest\x1a-.viam.component.board.v1.PWMFrequencyResponse"4\x82\xd3\xe4\x93\x02.\x12,/viam/api/v1/component/board/{name}/pwm_freq\x12\xaa\x01\n\x0fSetPWMFrequency\x12/.viam.component.board.v1.SetPWMFrequencyRequest\x1a0.viam.component.board.v1.SetPWMFrequencyResponse"4\x82\xd3\xe4\x93\x02.\x1a,/viam/api/v1/component/board/{name}/pwm_freq\x12\x88\x01\n\tDoCommand\x12 .viam.common.v1.DoCommandRequest\x1a!.viam.common.v1.DoCommandResponse"6\x82\xd3\xe4\x93\x020"./viam/api/v1/component/board/{name}/do_command\x12\xd2\x01\n\x10ReadAnalogReader\x120.viam.component.board.v1.ReadAnalogReaderRequest\x1a1.viam.component.board.v1.ReadAnalogReaderResponse"Y\x82\xd3\xe4\x93\x02S\x12Q/viam/api/v1/component/board/{board_name}/analog_reader/{analog_reader_name}/read\x12\xa2\x01\n\x0bWriteAnalog\x12+.viam.component.board.v1.WriteAnalogRequest\x1a,.viam.component.board.v1.WriteAnalogResponse"8\x82\xd3\xe4\x93\x022\x1a0/viam/api/v1/component/board/{name}/analog_write\x12\xf3\x01\n\x18GetDigitalInterruptValue\x128.viam.component.board.v1.GetDigitalInterruptValueRequest\x1a9.viam.component.board.v1.GetDigitalInterruptValueResponse"b\x82\xd3\xe4\x93\x02\\\x12Z/viam/api/v1/component/board/{board_name}/digital_interrupt/{digital_interrupt_name}/value\x12\xa3\x01\n\x0bStreamTicks\x12+.viam.component.board.v1.StreamTicksRequest\x1a,.viam.component.board.v1.StreamTicksResponse"7\x82\xd3\xe4\x93\x021\x12//viam/api/v1/component/board/{name}/tick_stream0\x01\x12\xa3\x01\n\x0cSetPowerMode\x12,.viam.component.board.v1.SetPowerModeRequest\x1a-.viam.component.board.v1.SetPowerModeResponse"6\x82\xd3\xe4\x93\x020\x1a./viam/api/v1/component/board/{name}/power_mode\x12\x94\x01\n\rGetGeometries\x12$.viam.common.v1.GetGeometriesRequest\x1a%.viam.common.v1.GetGeometriesResponse"6\x82\xd3\xe4\x93\x020\x12./viam/api/v1/component/board/{name}/geometriesBA\n\x1bcom.viam.component.board.v1Z"go.viam.com/api/component/board/v1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ecomponent/board/v1/board.proto\x12\x17viam.component.board.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto"\xff\x02\n\x06Status\x12F\n\x07analogs\x18\x01 \x03(\x0b2,.viam.component.board.v1.Status.AnalogsEntryR\x07analogs\x12e\n\x12digital_interrupts\x18\x02 \x03(\x0b26.viam.component.board.v1.Status.DigitalInterruptsEntryR\x11digitalInterrupts\x1aX\n\x0cAnalogsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x122\n\x05value\x18\x02 \x01(\x0b2\x1c.viam.common.v1.AnalogStatusR\x05value:\x028\x01\x1al\n\x16DigitalInterruptsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12<\n\x05value\x18\x02 \x01(\x0b2&.viam.common.v1.DigitalInterruptStatusR\x05value:\x028\x01"y\n\x0eSetGPIORequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03pin\x18\x02 \x01(\tR\x03pin\x12\x12\n\x04high\x18\x03 \x01(\x08R\x04high\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x11\n\x0fSetGPIOResponse"e\n\x0eGetGPIORequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03pin\x18\x02 \x01(\tR\x03pin\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"%\n\x0fGetGPIOResponse\x12\x12\n\x04high\x18\x01 \x01(\x08R\x04high"a\n\nPWMRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03pin\x18\x02 \x01(\tR\x03pin\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"3\n\x0bPWMResponse\x12$\n\x0eduty_cycle_pct\x18\x01 \x01(\x01R\x0cdutyCyclePct"\x8a\x01\n\rSetPWMRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03pin\x18\x02 \x01(\tR\x03pin\x12$\n\x0eduty_cycle_pct\x18\x03 \x01(\x01R\x0cdutyCyclePct\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x10\n\x0eSetPWMResponse"j\n\x13PWMFrequencyRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03pin\x18\x02 \x01(\tR\x03pin\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"9\n\x14PWMFrequencyResponse\x12!\n\x0cfrequency_hz\x18\x01 \x01(\x04R\x0bfrequencyHz"\x90\x01\n\x16SetPWMFrequencyRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03pin\x18\x02 \x01(\tR\x03pin\x12!\n\x0cfrequency_hz\x18\x03 \x01(\x04R\x0bfrequencyHz\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x19\n\x17SetPWMFrequencyResponse"\x95\x01\n\x17ReadAnalogReaderRequest\x12\x1d\n\nboard_name\x18\x01 \x01(\tR\tboardName\x12,\n\x12analog_reader_name\x18\x02 \x01(\tR\x10analogReaderName\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"0\n\x18ReadAnalogReaderResponse\x12\x14\n\x05value\x18\x01 \x01(\x05R\x05value"\x7f\n\x12WriteAnalogRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03pin\x18\x02 \x01(\tR\x03pin\x12\x14\n\x05value\x18\x03 \x01(\x05R\x05value\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x15\n\x13WriteAnalogResponse"\xa5\x01\n\x1fGetDigitalInterruptValueRequest\x12\x1d\n\nboard_name\x18\x01 \x01(\tR\tboardName\x124\n\x16digital_interrupt_name\x18\x02 \x01(\tR\x14digitalInterruptName\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"8\n GetDigitalInterruptValueResponse\x12\x14\n\x05value\x18\x01 \x01(\x03R\x05value"t\n\x12StreamTicksRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1b\n\tpin_names\x18\x02 \x03(\tR\x08pinNames\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"X\n\x13StreamTicksResponse\x12\x19\n\x08pin_name\x18\x01 \x01(\tR\x07pinName\x12\x12\n\x04time\x18\x02 \x01(\x04R\x04time\x12\x12\n\x04high\x18\x03 \x01(\x08R\x04high"\xe4\x01\n\x13SetPowerModeRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12A\n\npower_mode\x18\x02 \x01(\x0e2".viam.component.board.v1.PowerModeR\tpowerMode\x12:\n\x08duration\x18\x03 \x01(\x0b2\x19.google.protobuf.DurationH\x00R\x08duration\x88\x01\x01\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extraB\x0b\n\t_duration"\x16\n\x14SetPowerModeResponse*[\n\tPowerMode\x12\x1a\n\x16POWER_MODE_UNSPECIFIED\x10\x00\x12\x15\n\x11POWER_MODE_NORMAL\x10\x01\x12\x1b\n\x17POWER_MODE_OFFLINE_DEEP\x10\x022\xf0\x10\n\x0cBoardService\x12\x8e\x01\n\x07SetGPIO\x12\'.viam.component.board.v1.SetGPIORequest\x1a(.viam.component.board.v1.SetGPIOResponse"0\x82\xd3\xe4\x93\x02*\x1a(/viam/api/v1/component/board/{name}/gpio\x12\x8e\x01\n\x07GetGPIO\x12\'.viam.component.board.v1.GetGPIORequest\x1a(.viam.component.board.v1.GetGPIOResponse"0\x82\xd3\xe4\x93\x02*\x12(/viam/api/v1/component/board/{name}/gpio\x12\x81\x01\n\x03PWM\x12#.viam.component.board.v1.PWMRequest\x1a$.viam.component.board.v1.PWMResponse"/\x82\xd3\xe4\x93\x02)\x12\'/viam/api/v1/component/board/{name}/pwm\x12\x8a\x01\n\x06SetPWM\x12&.viam.component.board.v1.SetPWMRequest\x1a\'.viam.component.board.v1.SetPWMResponse"/\x82\xd3\xe4\x93\x02)\x1a\'/viam/api/v1/component/board/{name}/pwm\x12\xa1\x01\n\x0cPWMFrequency\x12,.viam.component.board.v1.PWMFrequencyRequest\x1a-.viam.component.board.v1.PWMFrequencyResponse"4\x82\xd3\xe4\x93\x02.\x12,/viam/api/v1/component/board/{name}/pwm_freq\x12\xaa\x01\n\x0fSetPWMFrequency\x12/.viam.component.board.v1.SetPWMFrequencyRequest\x1a0.viam.component.board.v1.SetPWMFrequencyResponse"4\x82\xd3\xe4\x93\x02.\x1a,/viam/api/v1/component/board/{name}/pwm_freq\x12\x88\x01\n\tDoCommand\x12 .viam.common.v1.DoCommandRequest\x1a!.viam.common.v1.DoCommandResponse"6\x82\xd3\xe4\x93\x020"./viam/api/v1/component/board/{name}/do_command\x12\xd2\x01\n\x10ReadAnalogReader\x120.viam.component.board.v1.ReadAnalogReaderRequest\x1a1.viam.component.board.v1.ReadAnalogReaderResponse"Y\x82\xd3\xe4\x93\x02S\x12Q/viam/api/v1/component/board/{board_name}/analog_reader/{analog_reader_name}/read\x12\xa2\x01\n\x0bWriteAnalog\x12+.viam.component.board.v1.WriteAnalogRequest\x1a,.viam.component.board.v1.WriteAnalogResponse"8\x82\xd3\xe4\x93\x022\x1a0/viam/api/v1/component/board/{name}/analog_write\x12\xf3\x01\n\x18GetDigitalInterruptValue\x128.viam.component.board.v1.GetDigitalInterruptValueRequest\x1a9.viam.component.board.v1.GetDigitalInterruptValueResponse"b\x82\xd3\xe4\x93\x02\\\x12Z/viam/api/v1/component/board/{board_name}/digital_interrupt/{digital_interrupt_name}/value\x12\xa3\x01\n\x0bStreamTicks\x12+.viam.component.board.v1.StreamTicksRequest\x1a,.viam.component.board.v1.StreamTicksResponse"7\x82\xd3\xe4\x93\x021\x12//viam/api/v1/component/board/{name}/tick_stream0\x01\x12\xa3\x01\n\x0cSetPowerMode\x12,.viam.component.board.v1.SetPowerModeRequest\x1a-.viam.component.board.v1.SetPowerModeResponse"6\x82\xd3\xe4\x93\x020\x1a./viam/api/v1/component/board/{name}/power_mode\x12\x94\x01\n\rGetGeometries\x12$.viam.common.v1.GetGeometriesRequest\x1a%.viam.common.v1.GetGeometriesResponse"6\x82\xd3\xe4\x93\x020\x12./viam/api/v1/component/board/{name}/geometriesBA\n\x1bcom.viam.component.board.v1Z"go.viam.com/api/component/board/v1b\x06proto3') _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'component.board.v1.board_pb2', globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n\x1bcom.viam.component.board.v1Z"go.viam.com/api/component/board/v1' - _BOARDSERVICE.methods_by_name['Status']._options = None - _BOARDSERVICE.methods_by_name['Status']._serialized_options = b'\x82\xd3\xe4\x93\x02,\x12*/viam/api/v1/component/board/{name}/status' + _STATUS_ANALOGSENTRY._options = None + _STATUS_ANALOGSENTRY._serialized_options = b'8\x01' + _STATUS_DIGITALINTERRUPTSENTRY._options = None + _STATUS_DIGITALINTERRUPTSENTRY._serialized_options = b'8\x01' _BOARDSERVICE.methods_by_name['SetGPIO']._options = None _BOARDSERVICE.methods_by_name['SetGPIO']._serialized_options = b'\x82\xd3\xe4\x93\x02*\x1a(/viam/api/v1/component/board/{name}/gpio' _BOARDSERVICE.methods_by_name['GetGPIO']._options = None @@ -42,55 +44,57 @@ _BOARDSERVICE.methods_by_name['SetPowerMode']._serialized_options = b'\x82\xd3\xe4\x93\x020\x1a./viam/api/v1/component/board/{name}/power_mode' _BOARDSERVICE.methods_by_name['GetGeometries']._options = None _BOARDSERVICE.methods_by_name['GetGeometries']._serialized_options = b'\x82\xd3\xe4\x93\x020\x12./viam/api/v1/component/board/{name}/geometries' - _POWERMODE._serialized_start = 2309 - _POWERMODE._serialized_end = 2400 - _STATUSREQUEST._serialized_start = 175 - _STATUSREQUEST._serialized_end = 257 - _STATUSRESPONSE._serialized_start = 259 - _STATUSRESPONSE._serialized_end = 328 - _SETGPIOREQUEST._serialized_start = 330 - _SETGPIOREQUEST._serialized_end = 451 - _SETGPIORESPONSE._serialized_start = 453 - _SETGPIORESPONSE._serialized_end = 470 - _GETGPIOREQUEST._serialized_start = 472 - _GETGPIOREQUEST._serialized_end = 573 - _GETGPIORESPONSE._serialized_start = 575 - _GETGPIORESPONSE._serialized_end = 612 - _PWMREQUEST._serialized_start = 614 - _PWMREQUEST._serialized_end = 711 - _PWMRESPONSE._serialized_start = 713 - _PWMRESPONSE._serialized_end = 764 - _SETPWMREQUEST._serialized_start = 767 - _SETPWMREQUEST._serialized_end = 905 - _SETPWMRESPONSE._serialized_start = 907 - _SETPWMRESPONSE._serialized_end = 923 - _PWMFREQUENCYREQUEST._serialized_start = 925 - _PWMFREQUENCYREQUEST._serialized_end = 1031 - _PWMFREQUENCYRESPONSE._serialized_start = 1033 - _PWMFREQUENCYRESPONSE._serialized_end = 1090 - _SETPWMFREQUENCYREQUEST._serialized_start = 1093 - _SETPWMFREQUENCYREQUEST._serialized_end = 1237 - _SETPWMFREQUENCYRESPONSE._serialized_start = 1239 - _SETPWMFREQUENCYRESPONSE._serialized_end = 1264 - _READANALOGREADERREQUEST._serialized_start = 1267 - _READANALOGREADERREQUEST._serialized_end = 1416 - _READANALOGREADERRESPONSE._serialized_start = 1418 - _READANALOGREADERRESPONSE._serialized_end = 1466 - _WRITEANALOGREQUEST._serialized_start = 1468 - _WRITEANALOGREQUEST._serialized_end = 1595 - _WRITEANALOGRESPONSE._serialized_start = 1597 - _WRITEANALOGRESPONSE._serialized_end = 1618 - _GETDIGITALINTERRUPTVALUEREQUEST._serialized_start = 1621 - _GETDIGITALINTERRUPTVALUEREQUEST._serialized_end = 1786 - _GETDIGITALINTERRUPTVALUERESPONSE._serialized_start = 1788 - _GETDIGITALINTERRUPTVALUERESPONSE._serialized_end = 1844 - _STREAMTICKSREQUEST._serialized_start = 1846 - _STREAMTICKSREQUEST._serialized_end = 1962 - _STREAMTICKSRESPONSE._serialized_start = 1964 - _STREAMTICKSRESPONSE._serialized_end = 2052 - _SETPOWERMODEREQUEST._serialized_start = 2055 - _SETPOWERMODEREQUEST._serialized_end = 2283 - _SETPOWERMODERESPONSE._serialized_start = 2285 - _SETPOWERMODERESPONSE._serialized_end = 2307 - _BOARDSERVICE._serialized_start = 2403 - _BOARDSERVICE._serialized_end = 4707 \ No newline at end of file + _POWERMODE._serialized_start = 2540 + _POWERMODE._serialized_end = 2631 + _STATUS._serialized_start = 176 + _STATUS._serialized_end = 559 + _STATUS_ANALOGSENTRY._serialized_start = 361 + _STATUS_ANALOGSENTRY._serialized_end = 449 + _STATUS_DIGITALINTERRUPTSENTRY._serialized_start = 451 + _STATUS_DIGITALINTERRUPTSENTRY._serialized_end = 559 + _SETGPIOREQUEST._serialized_start = 561 + _SETGPIOREQUEST._serialized_end = 682 + _SETGPIORESPONSE._serialized_start = 684 + _SETGPIORESPONSE._serialized_end = 701 + _GETGPIOREQUEST._serialized_start = 703 + _GETGPIOREQUEST._serialized_end = 804 + _GETGPIORESPONSE._serialized_start = 806 + _GETGPIORESPONSE._serialized_end = 843 + _PWMREQUEST._serialized_start = 845 + _PWMREQUEST._serialized_end = 942 + _PWMRESPONSE._serialized_start = 944 + _PWMRESPONSE._serialized_end = 995 + _SETPWMREQUEST._serialized_start = 998 + _SETPWMREQUEST._serialized_end = 1136 + _SETPWMRESPONSE._serialized_start = 1138 + _SETPWMRESPONSE._serialized_end = 1154 + _PWMFREQUENCYREQUEST._serialized_start = 1156 + _PWMFREQUENCYREQUEST._serialized_end = 1262 + _PWMFREQUENCYRESPONSE._serialized_start = 1264 + _PWMFREQUENCYRESPONSE._serialized_end = 1321 + _SETPWMFREQUENCYREQUEST._serialized_start = 1324 + _SETPWMFREQUENCYREQUEST._serialized_end = 1468 + _SETPWMFREQUENCYRESPONSE._serialized_start = 1470 + _SETPWMFREQUENCYRESPONSE._serialized_end = 1495 + _READANALOGREADERREQUEST._serialized_start = 1498 + _READANALOGREADERREQUEST._serialized_end = 1647 + _READANALOGREADERRESPONSE._serialized_start = 1649 + _READANALOGREADERRESPONSE._serialized_end = 1697 + _WRITEANALOGREQUEST._serialized_start = 1699 + _WRITEANALOGREQUEST._serialized_end = 1826 + _WRITEANALOGRESPONSE._serialized_start = 1828 + _WRITEANALOGRESPONSE._serialized_end = 1849 + _GETDIGITALINTERRUPTVALUEREQUEST._serialized_start = 1852 + _GETDIGITALINTERRUPTVALUEREQUEST._serialized_end = 2017 + _GETDIGITALINTERRUPTVALUERESPONSE._serialized_start = 2019 + _GETDIGITALINTERRUPTVALUERESPONSE._serialized_end = 2075 + _STREAMTICKSREQUEST._serialized_start = 2077 + _STREAMTICKSREQUEST._serialized_end = 2193 + _STREAMTICKSRESPONSE._serialized_start = 2195 + _STREAMTICKSRESPONSE._serialized_end = 2283 + _SETPOWERMODEREQUEST._serialized_start = 2286 + _SETPOWERMODEREQUEST._serialized_end = 2514 + _SETPOWERMODERESPONSE._serialized_start = 2516 + _SETPOWERMODERESPONSE._serialized_end = 2538 + _BOARDSERVICE._serialized_start = 2634 + _BOARDSERVICE._serialized_end = 4794 \ No newline at end of file diff --git a/src/viam/gen/component/board/v1/board_pb2.pyi b/src/viam/gen/component/board/v1/board_pb2.pyi index 650b66276..0f79cf6eb 100644 --- a/src/viam/gen/component/board/v1/board_pb2.pyi +++ b/src/viam/gen/component/board/v1/board_pb2.pyi @@ -37,44 +37,65 @@ POWER_MODE_OFFLINE_DEEP: PowerMode.ValueType global___PowerMode = PowerMode @typing_extensions.final -class StatusRequest(google.protobuf.message.Message): +class Status(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor - NAME_FIELD_NUMBER: builtins.int - EXTRA_FIELD_NUMBER: builtins.int - name: builtins.str - @property - def extra(self) -> google.protobuf.struct_pb2.Struct: - """Additional arguments to the method""" + @typing_extensions.final + class AnalogsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str - def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None: - ... + @property + def value(self) -> common.v1.common_pb2.AnalogStatus: + ... - def HasField(self, field_name: typing_extensions.Literal['extra', b'extra']) -> builtins.bool: - ... + def __init__(self, *, key: builtins.str=..., value: common.v1.common_pb2.AnalogStatus | None=...) -> None: + ... - def ClearField(self, field_name: typing_extensions.Literal['extra', b'extra', 'name', b'name']) -> None: - ... -global___StatusRequest = StatusRequest + def HasField(self, field_name: typing_extensions.Literal['value', b'value']) -> builtins.bool: + ... -@typing_extensions.final -class StatusResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - STATUS_FIELD_NUMBER: builtins.int + def ClearField(self, field_name: typing_extensions.Literal['key', b'key', 'value', b'value']) -> None: + ... + + @typing_extensions.final + class DigitalInterruptsEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + + @property + def value(self) -> common.v1.common_pb2.DigitalInterruptStatus: + ... + + def __init__(self, *, key: builtins.str=..., value: common.v1.common_pb2.DigitalInterruptStatus | None=...) -> None: + ... + + def HasField(self, field_name: typing_extensions.Literal['value', b'value']) -> builtins.bool: + ... + + def ClearField(self, field_name: typing_extensions.Literal['key', b'key', 'value', b'value']) -> None: + ... + ANALOGS_FIELD_NUMBER: builtins.int + DIGITAL_INTERRUPTS_FIELD_NUMBER: builtins.int @property - def status(self) -> common.v1.common_pb2.BoardStatus: + def analogs(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, common.v1.common_pb2.AnalogStatus]: ... - def __init__(self, *, status: common.v1.common_pb2.BoardStatus | None=...) -> None: + @property + def digital_interrupts(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, common.v1.common_pb2.DigitalInterruptStatus]: ... - def HasField(self, field_name: typing_extensions.Literal['status', b'status']) -> builtins.bool: + def __init__(self, *, analogs: collections.abc.Mapping[builtins.str, common.v1.common_pb2.AnalogStatus] | None=..., digital_interrupts: collections.abc.Mapping[builtins.str, common.v1.common_pb2.DigitalInterruptStatus] | None=...) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal['status', b'status']) -> None: + def ClearField(self, field_name: typing_extensions.Literal['analogs', b'analogs', 'digital_interrupts', b'digital_interrupts']) -> None: ... -global___StatusResponse = StatusResponse +global___Status = Status @typing_extensions.final class SetGPIORequest(google.protobuf.message.Message): diff --git a/src/viam/gen/robot/v1/robot_grpc.py b/src/viam/gen/robot/v1/robot_grpc.py index dc8fc3ee3..e2f87ebf2 100644 --- a/src/viam/gen/robot/v1/robot_grpc.py +++ b/src/viam/gen/robot/v1/robot_grpc.py @@ -81,8 +81,12 @@ async def Log(self, stream: 'grpclib.server.Stream[robot.v1.robot_pb2.LogRequest async def GetCloudMetadata(self, stream: 'grpclib.server.Stream[robot.v1.robot_pb2.GetCloudMetadataRequest, robot.v1.robot_pb2.GetCloudMetadataResponse]') -> None: pass + @abc.abstractmethod + async def RestartModule(self, stream: 'grpclib.server.Stream[robot.v1.robot_pb2.RestartModuleRequest, robot.v1.robot_pb2.RestartModuleResponse]') -> None: + pass + def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]: - return {'/viam.robot.v1.RobotService/GetOperations': grpclib.const.Handler(self.GetOperations, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.GetOperationsRequest, robot.v1.robot_pb2.GetOperationsResponse), '/viam.robot.v1.RobotService/GetSessions': grpclib.const.Handler(self.GetSessions, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.GetSessionsRequest, robot.v1.robot_pb2.GetSessionsResponse), '/viam.robot.v1.RobotService/ResourceNames': grpclib.const.Handler(self.ResourceNames, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.ResourceNamesRequest, robot.v1.robot_pb2.ResourceNamesResponse), '/viam.robot.v1.RobotService/ResourceRPCSubtypes': grpclib.const.Handler(self.ResourceRPCSubtypes, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.ResourceRPCSubtypesRequest, robot.v1.robot_pb2.ResourceRPCSubtypesResponse), '/viam.robot.v1.RobotService/CancelOperation': grpclib.const.Handler(self.CancelOperation, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.CancelOperationRequest, robot.v1.robot_pb2.CancelOperationResponse), '/viam.robot.v1.RobotService/BlockForOperation': grpclib.const.Handler(self.BlockForOperation, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.BlockForOperationRequest, robot.v1.robot_pb2.BlockForOperationResponse), '/viam.robot.v1.RobotService/DiscoverComponents': grpclib.const.Handler(self.DiscoverComponents, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.DiscoverComponentsRequest, robot.v1.robot_pb2.DiscoverComponentsResponse), '/viam.robot.v1.RobotService/FrameSystemConfig': grpclib.const.Handler(self.FrameSystemConfig, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.FrameSystemConfigRequest, robot.v1.robot_pb2.FrameSystemConfigResponse), '/viam.robot.v1.RobotService/TransformPose': grpclib.const.Handler(self.TransformPose, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.TransformPoseRequest, robot.v1.robot_pb2.TransformPoseResponse), '/viam.robot.v1.RobotService/TransformPCD': grpclib.const.Handler(self.TransformPCD, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.TransformPCDRequest, robot.v1.robot_pb2.TransformPCDResponse), '/viam.robot.v1.RobotService/GetStatus': grpclib.const.Handler(self.GetStatus, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.GetStatusRequest, robot.v1.robot_pb2.GetStatusResponse), '/viam.robot.v1.RobotService/StreamStatus': grpclib.const.Handler(self.StreamStatus, grpclib.const.Cardinality.UNARY_STREAM, robot.v1.robot_pb2.StreamStatusRequest, robot.v1.robot_pb2.StreamStatusResponse), '/viam.robot.v1.RobotService/StopAll': grpclib.const.Handler(self.StopAll, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.StopAllRequest, robot.v1.robot_pb2.StopAllResponse), '/viam.robot.v1.RobotService/StartSession': grpclib.const.Handler(self.StartSession, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.StartSessionRequest, robot.v1.robot_pb2.StartSessionResponse), '/viam.robot.v1.RobotService/SendSessionHeartbeat': grpclib.const.Handler(self.SendSessionHeartbeat, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.SendSessionHeartbeatRequest, robot.v1.robot_pb2.SendSessionHeartbeatResponse), '/viam.robot.v1.RobotService/Log': grpclib.const.Handler(self.Log, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.LogRequest, robot.v1.robot_pb2.LogResponse), '/viam.robot.v1.RobotService/GetCloudMetadata': grpclib.const.Handler(self.GetCloudMetadata, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.GetCloudMetadataRequest, robot.v1.robot_pb2.GetCloudMetadataResponse)} + return {'/viam.robot.v1.RobotService/GetOperations': grpclib.const.Handler(self.GetOperations, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.GetOperationsRequest, robot.v1.robot_pb2.GetOperationsResponse), '/viam.robot.v1.RobotService/GetSessions': grpclib.const.Handler(self.GetSessions, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.GetSessionsRequest, robot.v1.robot_pb2.GetSessionsResponse), '/viam.robot.v1.RobotService/ResourceNames': grpclib.const.Handler(self.ResourceNames, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.ResourceNamesRequest, robot.v1.robot_pb2.ResourceNamesResponse), '/viam.robot.v1.RobotService/ResourceRPCSubtypes': grpclib.const.Handler(self.ResourceRPCSubtypes, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.ResourceRPCSubtypesRequest, robot.v1.robot_pb2.ResourceRPCSubtypesResponse), '/viam.robot.v1.RobotService/CancelOperation': grpclib.const.Handler(self.CancelOperation, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.CancelOperationRequest, robot.v1.robot_pb2.CancelOperationResponse), '/viam.robot.v1.RobotService/BlockForOperation': grpclib.const.Handler(self.BlockForOperation, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.BlockForOperationRequest, robot.v1.robot_pb2.BlockForOperationResponse), '/viam.robot.v1.RobotService/DiscoverComponents': grpclib.const.Handler(self.DiscoverComponents, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.DiscoverComponentsRequest, robot.v1.robot_pb2.DiscoverComponentsResponse), '/viam.robot.v1.RobotService/FrameSystemConfig': grpclib.const.Handler(self.FrameSystemConfig, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.FrameSystemConfigRequest, robot.v1.robot_pb2.FrameSystemConfigResponse), '/viam.robot.v1.RobotService/TransformPose': grpclib.const.Handler(self.TransformPose, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.TransformPoseRequest, robot.v1.robot_pb2.TransformPoseResponse), '/viam.robot.v1.RobotService/TransformPCD': grpclib.const.Handler(self.TransformPCD, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.TransformPCDRequest, robot.v1.robot_pb2.TransformPCDResponse), '/viam.robot.v1.RobotService/GetStatus': grpclib.const.Handler(self.GetStatus, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.GetStatusRequest, robot.v1.robot_pb2.GetStatusResponse), '/viam.robot.v1.RobotService/StreamStatus': grpclib.const.Handler(self.StreamStatus, grpclib.const.Cardinality.UNARY_STREAM, robot.v1.robot_pb2.StreamStatusRequest, robot.v1.robot_pb2.StreamStatusResponse), '/viam.robot.v1.RobotService/StopAll': grpclib.const.Handler(self.StopAll, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.StopAllRequest, robot.v1.robot_pb2.StopAllResponse), '/viam.robot.v1.RobotService/StartSession': grpclib.const.Handler(self.StartSession, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.StartSessionRequest, robot.v1.robot_pb2.StartSessionResponse), '/viam.robot.v1.RobotService/SendSessionHeartbeat': grpclib.const.Handler(self.SendSessionHeartbeat, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.SendSessionHeartbeatRequest, robot.v1.robot_pb2.SendSessionHeartbeatResponse), '/viam.robot.v1.RobotService/Log': grpclib.const.Handler(self.Log, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.LogRequest, robot.v1.robot_pb2.LogResponse), '/viam.robot.v1.RobotService/GetCloudMetadata': grpclib.const.Handler(self.GetCloudMetadata, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.GetCloudMetadataRequest, robot.v1.robot_pb2.GetCloudMetadataResponse), '/viam.robot.v1.RobotService/RestartModule': grpclib.const.Handler(self.RestartModule, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.RestartModuleRequest, robot.v1.robot_pb2.RestartModuleResponse)} class RobotServiceStub: @@ -103,4 +107,5 @@ def __init__(self, channel: grpclib.client.Channel) -> None: self.StartSession = grpclib.client.UnaryUnaryMethod(channel, '/viam.robot.v1.RobotService/StartSession', robot.v1.robot_pb2.StartSessionRequest, robot.v1.robot_pb2.StartSessionResponse) self.SendSessionHeartbeat = grpclib.client.UnaryUnaryMethod(channel, '/viam.robot.v1.RobotService/SendSessionHeartbeat', robot.v1.robot_pb2.SendSessionHeartbeatRequest, robot.v1.robot_pb2.SendSessionHeartbeatResponse) self.Log = grpclib.client.UnaryUnaryMethod(channel, '/viam.robot.v1.RobotService/Log', robot.v1.robot_pb2.LogRequest, robot.v1.robot_pb2.LogResponse) - self.GetCloudMetadata = grpclib.client.UnaryUnaryMethod(channel, '/viam.robot.v1.RobotService/GetCloudMetadata', robot.v1.robot_pb2.GetCloudMetadataRequest, robot.v1.robot_pb2.GetCloudMetadataResponse) \ No newline at end of file + self.GetCloudMetadata = grpclib.client.UnaryUnaryMethod(channel, '/viam.robot.v1.RobotService/GetCloudMetadata', robot.v1.robot_pb2.GetCloudMetadataRequest, robot.v1.robot_pb2.GetCloudMetadataResponse) + self.RestartModule = grpclib.client.UnaryUnaryMethod(channel, '/viam.robot.v1.RobotService/RestartModule', robot.v1.robot_pb2.RestartModuleRequest, robot.v1.robot_pb2.RestartModuleResponse) \ No newline at end of file diff --git a/src/viam/gen/robot/v1/robot_pb2.py b/src/viam/gen/robot/v1/robot_pb2.py index 528e3f63f..7537c44f3 100644 --- a/src/viam/gen/robot/v1/robot_pb2.py +++ b/src/viam/gen/robot/v1/robot_pb2.py @@ -9,12 +9,14 @@ from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14robot/v1/robot.proto\x12\rviam.robot.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"}\n\x11FrameSystemConfig\x12/\n\x05frame\x18\x01 \x01(\x0b2\x19.viam.common.v1.TransformR\x05frame\x127\n\nkinematics\x18\x02 \x01(\x0b2\x17.google.protobuf.StructR\nkinematics"n\n\x18FrameSystemConfigRequest\x12R\n\x17supplemental_transforms\x18\x01 \x03(\x0b2\x19.viam.common.v1.TransformR\x16supplementalTransforms"o\n\x19FrameSystemConfigResponse\x12R\n\x14frame_system_configs\x18\x01 \x03(\x0b2 .viam.robot.v1.FrameSystemConfigR\x12frameSystemConfigs"\xc1\x01\n\x14TransformPoseRequest\x123\n\x06source\x18\x01 \x01(\x0b2\x1b.viam.common.v1.PoseInFrameR\x06source\x12 \n\x0bdestination\x18\x02 \x01(\tR\x0bdestination\x12R\n\x17supplemental_transforms\x18\x03 \x03(\x0b2\x19.viam.common.v1.TransformR\x16supplementalTransforms"H\n\x15TransformPoseResponse\x12/\n\x04pose\x18\x01 \x01(\x0b2\x1b.viam.common.v1.PoseInFrameR\x04pose"w\n\x13TransformPCDRequest\x12&\n\x0fpoint_cloud_pcd\x18\x01 \x01(\x0cR\rpointCloudPcd\x12\x16\n\x06source\x18\x02 \x01(\tR\x06source\x12 \n\x0bdestination\x18\x03 \x01(\tR\x0bdestination">\n\x14TransformPCDResponse\x12&\n\x0fpoint_cloud_pcd\x18\x01 \x01(\x0cR\rpointCloudPcd"\x16\n\x14ResourceNamesRequest"S\n\x15ResourceNamesResponse\x12:\n\tresources\x18\x01 \x03(\x0b2\x1c.viam.common.v1.ResourceNameR\tresources"q\n\x12ResourceRPCSubtype\x126\n\x07subtype\x18\x01 \x01(\x0b2\x1c.viam.common.v1.ResourceNameR\x07subtype\x12#\n\rproto_service\x18\x02 \x01(\tR\x0cprotoService"\x1c\n\x1aResourceRPCSubtypesRequest"t\n\x1bResourceRPCSubtypesResponse\x12U\n\x15resource_rpc_subtypes\x18\x01 \x03(\x0b2!.viam.robot.v1.ResourceRPCSubtypeR\x13resourceRpcSubtypes"\xd3\x01\n\tOperation\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n\x06method\x18\x02 \x01(\tR\x06method\x125\n\targuments\x18\x03 \x01(\x0b2\x17.google.protobuf.StructR\targuments\x124\n\x07started\x18\x04 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07started\x12"\n\nsession_id\x18\x05 \x01(\tH\x00R\tsessionId\x88\x01\x01B\r\n\x0b_session_id"\x16\n\x14GetOperationsRequest"Q\n\x15GetOperationsResponse\x128\n\noperations\x18\x01 \x03(\x0b2\x18.viam.robot.v1.OperationR\noperations"(\n\x16CancelOperationRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"\x19\n\x17CancelOperationResponse"*\n\x18BlockForOperationRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"\x1b\n\x19BlockForOperationResponse"\xc6\x01\n\x12PeerConnectionInfo\x125\n\x04type\x18\x01 \x01(\x0e2!.viam.robot.v1.PeerConnectionTypeR\x04type\x12*\n\x0eremote_address\x18\x02 \x01(\tH\x00R\rremoteAddress\x88\x01\x01\x12(\n\rlocal_address\x18\x03 \x01(\tH\x01R\x0clocalAddress\x88\x01\x01B\x11\n\x0f_remote_addressB\x10\n\x0e_local_address"\x8c\x01\n\x07Session\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12X\n\x14peer_connection_info\x18\x02 \x01(\x0b2!.viam.robot.v1.PeerConnectionInfoH\x00R\x12peerConnectionInfo\x88\x01\x01B\x17\n\x15_peer_connection_info"\x14\n\x12GetSessionsRequest"I\n\x13GetSessionsResponse\x122\n\x08sessions\x18\x01 \x03(\x0b2\x16.viam.robot.v1.SessionR\x08sessions"@\n\x0eDiscoveryQuery\x12\x18\n\x07subtype\x18\x01 \x01(\tR\x07subtype\x12\x14\n\x05model\x18\x02 \x01(\tR\x05model"s\n\tDiscovery\x123\n\x05query\x18\x01 \x01(\x0b2\x1d.viam.robot.v1.DiscoveryQueryR\x05query\x121\n\x07results\x18\x02 \x01(\x0b2\x17.google.protobuf.StructR\x07results"T\n\x19DiscoverComponentsRequest\x127\n\x07queries\x18\x01 \x03(\x0b2\x1d.viam.robot.v1.DiscoveryQueryR\x07queries"T\n\x1aDiscoverComponentsResponse\x126\n\tdiscovery\x18\x01 \x03(\x0b2\x18.viam.robot.v1.DiscoveryR\tdiscovery"\xb4\x01\n\x06Status\x120\n\x04name\x18\x01 \x01(\x0b2\x1c.viam.common.v1.ResourceNameR\x04name\x12/\n\x06status\x18\x02 \x01(\x0b2\x17.google.protobuf.StructR\x06status\x12G\n\x11last_reconfigured\x18\x03 \x01(\x0b2\x1a.google.protobuf.TimestampR\x10lastReconfigured"W\n\x10GetStatusRequest\x12C\n\x0eresource_names\x18\x01 \x03(\x0b2\x1c.viam.common.v1.ResourceNameR\rresourceNames"B\n\x11GetStatusResponse\x12-\n\x06status\x18\x01 \x03(\x0b2\x15.viam.robot.v1.StatusR\x06status"\x8b\x01\n\x13StreamStatusRequest\x12C\n\x0eresource_names\x18\x01 \x03(\x0b2\x1c.viam.common.v1.ResourceNameR\rresourceNames\x12/\n\x05every\x18\x02 \x01(\x0b2\x19.google.protobuf.DurationR\x05every"E\n\x14StreamStatusResponse\x12-\n\x06status\x18\x01 \x03(\x0b2\x15.viam.robot.v1.StatusR\x06status"x\n\x13StopExtraParameters\x120\n\x04name\x18\x01 \x01(\x0b2\x1c.viam.common.v1.ResourceNameR\x04name\x12/\n\x06params\x18\x02 \x01(\x0b2\x17.google.protobuf.StructR\x06params"J\n\x0eStopAllRequest\x128\n\x05extra\x18c \x03(\x0b2".viam.robot.v1.StopExtraParametersR\x05extra"\x11\n\x0fStopAllResponse"-\n\x13StartSessionRequest\x12\x16\n\x06resume\x18\x01 \x01(\tR\x06resume"l\n\x14StartSessionResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12D\n\x10heartbeat_window\x18\x02 \x01(\x0b2\x19.google.protobuf.DurationR\x0fheartbeatWindow"-\n\x1bSendSessionHeartbeatRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"\x1e\n\x1cSendSessionHeartbeatResponse":\n\nLogRequest\x12,\n\x04logs\x18\x01 \x03(\x0b2\x18.viam.common.v1.LogEntryR\x04logs"\r\n\x0bLogResponse"\x19\n\x17GetCloudMetadataRequest"\xcc\x01\n\x18GetCloudMetadataResponse\x12"\n\rrobot_part_id\x18\x01 \x01(\tR\x0brobotPartId\x12$\n\x0eprimary_org_id\x18\x02 \x01(\tR\x0cprimaryOrgId\x12\x1f\n\x0blocation_id\x18\x03 \x01(\tR\nlocationId\x12\x1d\n\nmachine_id\x18\x04 \x01(\tR\tmachineId\x12&\n\x0fmachine_part_id\x18\x05 \x01(\tR\rmachinePartId*z\n\x12PeerConnectionType\x12$\n PEER_CONNECTION_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19PEER_CONNECTION_TYPE_GRPC\x10\x01\x12\x1f\n\x1bPEER_CONNECTION_TYPE_WEBRTC\x10\x022\xdb\x11\n\x0cRobotService\x12\x80\x01\n\rGetOperations\x12#.viam.robot.v1.GetOperationsRequest\x1a$.viam.robot.v1.GetOperationsResponse"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/viam/api/v1/operations/list\x12x\n\x0bGetSessions\x12!.viam.robot.v1.GetSessionsRequest\x1a".viam.robot.v1.GetSessionsResponse""\x82\xd3\xe4\x93\x02\x1c\x12\x1a/viam/api/v1/sessions/list\x12\x7f\n\rResourceNames\x12#.viam.robot.v1.ResourceNamesRequest\x1a$.viam.robot.v1.ResourceNamesResponse"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/viam/api/v1/resources/list\x12\x9d\x01\n\x13ResourceRPCSubtypes\x12).viam.robot.v1.ResourceRPCSubtypesRequest\x1a*.viam.robot.v1.ResourceRPCSubtypesResponse"/\x82\xd3\xe4\x93\x02)\x12\'/viam/api/v1/resource_rpc_subtypes/list\x12\x88\x01\n\x0fCancelOperation\x12%.viam.robot.v1.CancelOperationRequest\x1a&.viam.robot.v1.CancelOperationResponse"&\x82\xd3\xe4\x93\x02 "\x1e/viam/api/v1/operations/cancel\x12\x8d\x01\n\x11BlockForOperation\x12\'.viam.robot.v1.BlockForOperationRequest\x1a(.viam.robot.v1.BlockForOperationResponse"%\x82\xd3\xe4\x93\x02\x1f"\x1d/viam/api/v1/operations/block\x12\x94\x01\n\x12DiscoverComponents\x12(.viam.robot.v1.DiscoverComponentsRequest\x1a).viam.robot.v1.DiscoverComponentsResponse")\x82\xd3\xe4\x93\x02#\x12!/viam/api/v1/discovery/components\x12\x90\x01\n\x11FrameSystemConfig\x12\'.viam.robot.v1.FrameSystemConfigRequest\x1a(.viam.robot.v1.FrameSystemConfigResponse"(\x82\xd3\xe4\x93\x02"\x12 /viam/api/v1/frame_system/config\x12\x8c\x01\n\rTransformPose\x12#.viam.robot.v1.TransformPoseRequest\x1a$.viam.robot.v1.TransformPoseResponse"0\x82\xd3\xe4\x93\x02*\x12(/viam/api/v1/frame_system/transform_pose\x12\x88\x01\n\x0cTransformPCD\x12".viam.robot.v1.TransformPCDRequest\x1a#.viam.robot.v1.TransformPCDResponse"/\x82\xd3\xe4\x93\x02)\x12\'/viam/api/v1/frame_system/transform_pcd\x12k\n\tGetStatus\x12\x1f.viam.robot.v1.GetStatusRequest\x1a .viam.robot.v1.GetStatusResponse"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/viam/api/v1/status\x12}\n\x0cStreamStatus\x12".viam.robot.v1.StreamStatusRequest\x1a#.viam.robot.v1.StreamStatusResponse""\x82\xd3\xe4\x93\x02\x1c\x12\x1a/viam/api/v1/status/stream0\x01\x12g\n\x07StopAll\x12\x1d.viam.robot.v1.StopAllRequest\x1a\x1e.viam.robot.v1.StopAllResponse"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/viam/api/v1/stop_all\x12v\n\x0cStartSession\x12".viam.robot.v1.StartSessionRequest\x1a#.viam.robot.v1.StartSessionResponse"\x1d\x82\xd3\xe4\x93\x02\x17"\x15/viam/api/v1/sessions\x12\x9d\x01\n\x14SendSessionHeartbeat\x12*.viam.robot.v1.SendSessionHeartbeatRequest\x1a+.viam.robot.v1.SendSessionHeartbeatResponse",\x82\xd3\xe4\x93\x02&"$/viam/api/v1/sessions/{id}/heartbeat\x12V\n\x03Log\x12\x19.viam.robot.v1.LogRequest\x1a\x1a.viam.robot.v1.LogResponse"\x18\x82\xd3\xe4\x93\x02\x12"\x10/viam/api/v1/log\x12\x88\x01\n\x10GetCloudMetadata\x12&.viam.robot.v1.GetCloudMetadataRequest\x1a\'.viam.robot.v1.GetCloudMetadataResponse"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/viam/api/v1/cloud_metadataB-\n\x11com.viam.robot.v1Z\x18go.viam.com/api/robot/v1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14robot/v1/robot.proto\x12\rviam.robot.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"}\n\x11FrameSystemConfig\x12/\n\x05frame\x18\x01 \x01(\x0b2\x19.viam.common.v1.TransformR\x05frame\x127\n\nkinematics\x18\x02 \x01(\x0b2\x17.google.protobuf.StructR\nkinematics"n\n\x18FrameSystemConfigRequest\x12R\n\x17supplemental_transforms\x18\x01 \x03(\x0b2\x19.viam.common.v1.TransformR\x16supplementalTransforms"o\n\x19FrameSystemConfigResponse\x12R\n\x14frame_system_configs\x18\x01 \x03(\x0b2 .viam.robot.v1.FrameSystemConfigR\x12frameSystemConfigs"\xc1\x01\n\x14TransformPoseRequest\x123\n\x06source\x18\x01 \x01(\x0b2\x1b.viam.common.v1.PoseInFrameR\x06source\x12 \n\x0bdestination\x18\x02 \x01(\tR\x0bdestination\x12R\n\x17supplemental_transforms\x18\x03 \x03(\x0b2\x19.viam.common.v1.TransformR\x16supplementalTransforms"H\n\x15TransformPoseResponse\x12/\n\x04pose\x18\x01 \x01(\x0b2\x1b.viam.common.v1.PoseInFrameR\x04pose"w\n\x13TransformPCDRequest\x12&\n\x0fpoint_cloud_pcd\x18\x01 \x01(\x0cR\rpointCloudPcd\x12\x16\n\x06source\x18\x02 \x01(\tR\x06source\x12 \n\x0bdestination\x18\x03 \x01(\tR\x0bdestination">\n\x14TransformPCDResponse\x12&\n\x0fpoint_cloud_pcd\x18\x01 \x01(\x0cR\rpointCloudPcd"\x16\n\x14ResourceNamesRequest"S\n\x15ResourceNamesResponse\x12:\n\tresources\x18\x01 \x03(\x0b2\x1c.viam.common.v1.ResourceNameR\tresources"q\n\x12ResourceRPCSubtype\x126\n\x07subtype\x18\x01 \x01(\x0b2\x1c.viam.common.v1.ResourceNameR\x07subtype\x12#\n\rproto_service\x18\x02 \x01(\tR\x0cprotoService"\x1c\n\x1aResourceRPCSubtypesRequest"t\n\x1bResourceRPCSubtypesResponse\x12U\n\x15resource_rpc_subtypes\x18\x01 \x03(\x0b2!.viam.robot.v1.ResourceRPCSubtypeR\x13resourceRpcSubtypes"\xd3\x01\n\tOperation\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n\x06method\x18\x02 \x01(\tR\x06method\x125\n\targuments\x18\x03 \x01(\x0b2\x17.google.protobuf.StructR\targuments\x124\n\x07started\x18\x04 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07started\x12"\n\nsession_id\x18\x05 \x01(\tH\x00R\tsessionId\x88\x01\x01B\r\n\x0b_session_id"\x16\n\x14GetOperationsRequest"Q\n\x15GetOperationsResponse\x128\n\noperations\x18\x01 \x03(\x0b2\x18.viam.robot.v1.OperationR\noperations"(\n\x16CancelOperationRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"\x19\n\x17CancelOperationResponse"*\n\x18BlockForOperationRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"\x1b\n\x19BlockForOperationResponse"\xc6\x01\n\x12PeerConnectionInfo\x125\n\x04type\x18\x01 \x01(\x0e2!.viam.robot.v1.PeerConnectionTypeR\x04type\x12*\n\x0eremote_address\x18\x02 \x01(\tH\x00R\rremoteAddress\x88\x01\x01\x12(\n\rlocal_address\x18\x03 \x01(\tH\x01R\x0clocalAddress\x88\x01\x01B\x11\n\x0f_remote_addressB\x10\n\x0e_local_address"\x8c\x01\n\x07Session\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12X\n\x14peer_connection_info\x18\x02 \x01(\x0b2!.viam.robot.v1.PeerConnectionInfoH\x00R\x12peerConnectionInfo\x88\x01\x01B\x17\n\x15_peer_connection_info"\x14\n\x12GetSessionsRequest"I\n\x13GetSessionsResponse\x122\n\x08sessions\x18\x01 \x03(\x0b2\x16.viam.robot.v1.SessionR\x08sessions"@\n\x0eDiscoveryQuery\x12\x18\n\x07subtype\x18\x01 \x01(\tR\x07subtype\x12\x14\n\x05model\x18\x02 \x01(\tR\x05model"s\n\tDiscovery\x123\n\x05query\x18\x01 \x01(\x0b2\x1d.viam.robot.v1.DiscoveryQueryR\x05query\x121\n\x07results\x18\x02 \x01(\x0b2\x17.google.protobuf.StructR\x07results"T\n\x19DiscoverComponentsRequest\x127\n\x07queries\x18\x01 \x03(\x0b2\x1d.viam.robot.v1.DiscoveryQueryR\x07queries"T\n\x1aDiscoverComponentsResponse\x126\n\tdiscovery\x18\x01 \x03(\x0b2\x18.viam.robot.v1.DiscoveryR\tdiscovery"\xb4\x01\n\x06Status\x120\n\x04name\x18\x01 \x01(\x0b2\x1c.viam.common.v1.ResourceNameR\x04name\x12/\n\x06status\x18\x02 \x01(\x0b2\x17.google.protobuf.StructR\x06status\x12G\n\x11last_reconfigured\x18\x03 \x01(\x0b2\x1a.google.protobuf.TimestampR\x10lastReconfigured"W\n\x10GetStatusRequest\x12C\n\x0eresource_names\x18\x01 \x03(\x0b2\x1c.viam.common.v1.ResourceNameR\rresourceNames"B\n\x11GetStatusResponse\x12-\n\x06status\x18\x01 \x03(\x0b2\x15.viam.robot.v1.StatusR\x06status"\x8b\x01\n\x13StreamStatusRequest\x12C\n\x0eresource_names\x18\x01 \x03(\x0b2\x1c.viam.common.v1.ResourceNameR\rresourceNames\x12/\n\x05every\x18\x02 \x01(\x0b2\x19.google.protobuf.DurationR\x05every"E\n\x14StreamStatusResponse\x12-\n\x06status\x18\x01 \x03(\x0b2\x15.viam.robot.v1.StatusR\x06status"x\n\x13StopExtraParameters\x120\n\x04name\x18\x01 \x01(\x0b2\x1c.viam.common.v1.ResourceNameR\x04name\x12/\n\x06params\x18\x02 \x01(\x0b2\x17.google.protobuf.StructR\x06params"J\n\x0eStopAllRequest\x128\n\x05extra\x18c \x03(\x0b2".viam.robot.v1.StopExtraParametersR\x05extra"\x11\n\x0fStopAllResponse"-\n\x13StartSessionRequest\x12\x16\n\x06resume\x18\x01 \x01(\tR\x06resume"l\n\x14StartSessionResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12D\n\x10heartbeat_window\x18\x02 \x01(\x0b2\x19.google.protobuf.DurationR\x0fheartbeatWindow"-\n\x1bSendSessionHeartbeatRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id"\x1e\n\x1cSendSessionHeartbeatResponse":\n\nLogRequest\x12,\n\x04logs\x18\x01 \x03(\x0b2\x18.viam.common.v1.LogEntryR\x04logs"\r\n\x0bLogResponse"\x19\n\x17GetCloudMetadataRequest"\xd0\x01\n\x18GetCloudMetadataResponse\x12&\n\rrobot_part_id\x18\x01 \x01(\tB\x02\x18\x01R\x0brobotPartId\x12$\n\x0eprimary_org_id\x18\x02 \x01(\tR\x0cprimaryOrgId\x12\x1f\n\x0blocation_id\x18\x03 \x01(\tR\nlocationId\x12\x1d\n\nmachine_id\x18\x04 \x01(\tR\tmachineId\x12&\n\x0fmachine_part_id\x18\x05 \x01(\tR\rmachinePartId"f\n\x14RestartModuleRequest\x12\x1d\n\tmodule_id\x18\x01 \x01(\tH\x00R\x08moduleId\x12!\n\x0bmodule_name\x18\x02 \x01(\tH\x00R\nmoduleNameB\x0c\n\nid_or_name"\x17\n\x15RestartModuleResponse*z\n\x12PeerConnectionType\x12$\n PEER_CONNECTION_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19PEER_CONNECTION_TYPE_GRPC\x10\x01\x12\x1f\n\x1bPEER_CONNECTION_TYPE_WEBRTC\x10\x022\xdc\x12\n\x0cRobotService\x12\x80\x01\n\rGetOperations\x12#.viam.robot.v1.GetOperationsRequest\x1a$.viam.robot.v1.GetOperationsResponse"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/viam/api/v1/operations/list\x12x\n\x0bGetSessions\x12!.viam.robot.v1.GetSessionsRequest\x1a".viam.robot.v1.GetSessionsResponse""\x82\xd3\xe4\x93\x02\x1c\x12\x1a/viam/api/v1/sessions/list\x12\x7f\n\rResourceNames\x12#.viam.robot.v1.ResourceNamesRequest\x1a$.viam.robot.v1.ResourceNamesResponse"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/viam/api/v1/resources/list\x12\x9d\x01\n\x13ResourceRPCSubtypes\x12).viam.robot.v1.ResourceRPCSubtypesRequest\x1a*.viam.robot.v1.ResourceRPCSubtypesResponse"/\x82\xd3\xe4\x93\x02)\x12\'/viam/api/v1/resource_rpc_subtypes/list\x12\x88\x01\n\x0fCancelOperation\x12%.viam.robot.v1.CancelOperationRequest\x1a&.viam.robot.v1.CancelOperationResponse"&\x82\xd3\xe4\x93\x02 "\x1e/viam/api/v1/operations/cancel\x12\x8d\x01\n\x11BlockForOperation\x12\'.viam.robot.v1.BlockForOperationRequest\x1a(.viam.robot.v1.BlockForOperationResponse"%\x82\xd3\xe4\x93\x02\x1f"\x1d/viam/api/v1/operations/block\x12\x94\x01\n\x12DiscoverComponents\x12(.viam.robot.v1.DiscoverComponentsRequest\x1a).viam.robot.v1.DiscoverComponentsResponse")\x82\xd3\xe4\x93\x02#\x12!/viam/api/v1/discovery/components\x12\x90\x01\n\x11FrameSystemConfig\x12\'.viam.robot.v1.FrameSystemConfigRequest\x1a(.viam.robot.v1.FrameSystemConfigResponse"(\x82\xd3\xe4\x93\x02"\x12 /viam/api/v1/frame_system/config\x12\x8c\x01\n\rTransformPose\x12#.viam.robot.v1.TransformPoseRequest\x1a$.viam.robot.v1.TransformPoseResponse"0\x82\xd3\xe4\x93\x02*\x12(/viam/api/v1/frame_system/transform_pose\x12\x88\x01\n\x0cTransformPCD\x12".viam.robot.v1.TransformPCDRequest\x1a#.viam.robot.v1.TransformPCDResponse"/\x82\xd3\xe4\x93\x02)\x12\'/viam/api/v1/frame_system/transform_pcd\x12k\n\tGetStatus\x12\x1f.viam.robot.v1.GetStatusRequest\x1a .viam.robot.v1.GetStatusResponse"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/viam/api/v1/status\x12}\n\x0cStreamStatus\x12".viam.robot.v1.StreamStatusRequest\x1a#.viam.robot.v1.StreamStatusResponse""\x82\xd3\xe4\x93\x02\x1c\x12\x1a/viam/api/v1/status/stream0\x01\x12g\n\x07StopAll\x12\x1d.viam.robot.v1.StopAllRequest\x1a\x1e.viam.robot.v1.StopAllResponse"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/viam/api/v1/stop_all\x12v\n\x0cStartSession\x12".viam.robot.v1.StartSessionRequest\x1a#.viam.robot.v1.StartSessionResponse"\x1d\x82\xd3\xe4\x93\x02\x17"\x15/viam/api/v1/sessions\x12\x9d\x01\n\x14SendSessionHeartbeat\x12*.viam.robot.v1.SendSessionHeartbeatRequest\x1a+.viam.robot.v1.SendSessionHeartbeatResponse",\x82\xd3\xe4\x93\x02&"$/viam/api/v1/sessions/{id}/heartbeat\x12V\n\x03Log\x12\x19.viam.robot.v1.LogRequest\x1a\x1a.viam.robot.v1.LogResponse"\x18\x82\xd3\xe4\x93\x02\x12"\x10/viam/api/v1/log\x12\x88\x01\n\x10GetCloudMetadata\x12&.viam.robot.v1.GetCloudMetadataRequest\x1a\'.viam.robot.v1.GetCloudMetadataResponse"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/viam/api/v1/cloud_metadata\x12\x7f\n\rRestartModule\x12#.viam.robot.v1.RestartModuleRequest\x1a$.viam.robot.v1.RestartModuleResponse"#\x82\xd3\xe4\x93\x02\x1d"\x1b/viam/api/v1/restart_moduleB-\n\x11com.viam.robot.v1Z\x18go.viam.com/api/robot/v1b\x06proto3') _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'robot.v1.robot_pb2', globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'\n\x11com.viam.robot.v1Z\x18go.viam.com/api/robot/v1' + _GETCLOUDMETADATARESPONSE.fields_by_name['robot_part_id']._options = None + _GETCLOUDMETADATARESPONSE.fields_by_name['robot_part_id']._serialized_options = b'\x18\x01' _ROBOTSERVICE.methods_by_name['GetOperations']._options = None _ROBOTSERVICE.methods_by_name['GetOperations']._serialized_options = b'\x82\xd3\xe4\x93\x02\x1e\x12\x1c/viam/api/v1/operations/list' _ROBOTSERVICE.methods_by_name['GetSessions']._options = None @@ -49,8 +51,10 @@ _ROBOTSERVICE.methods_by_name['Log']._serialized_options = b'\x82\xd3\xe4\x93\x02\x12"\x10/viam/api/v1/log' _ROBOTSERVICE.methods_by_name['GetCloudMetadata']._options = None _ROBOTSERVICE.methods_by_name['GetCloudMetadata']._serialized_options = b'\x82\xd3\xe4\x93\x02\x1d\x12\x1b/viam/api/v1/cloud_metadata' - _PEERCONNECTIONTYPE._serialized_start = 3941 - _PEERCONNECTIONTYPE._serialized_end = 4063 + _ROBOTSERVICE.methods_by_name['RestartModule']._options = None + _ROBOTSERVICE.methods_by_name['RestartModule']._serialized_options = b'\x82\xd3\xe4\x93\x02\x1d"\x1b/viam/api/v1/restart_module' + _PEERCONNECTIONTYPE._serialized_start = 4074 + _PEERCONNECTIONTYPE._serialized_end = 4196 _FRAMESYSTEMCONFIG._serialized_start = 188 _FRAMESYSTEMCONFIG._serialized_end = 313 _FRAMESYSTEMCONFIGREQUEST._serialized_start = 315 @@ -136,6 +140,10 @@ _GETCLOUDMETADATAREQUEST._serialized_start = 3707 _GETCLOUDMETADATAREQUEST._serialized_end = 3732 _GETCLOUDMETADATARESPONSE._serialized_start = 3735 - _GETCLOUDMETADATARESPONSE._serialized_end = 3939 - _ROBOTSERVICE._serialized_start = 4066 - _ROBOTSERVICE._serialized_end = 6333 \ No newline at end of file + _GETCLOUDMETADATARESPONSE._serialized_end = 3943 + _RESTARTMODULEREQUEST._serialized_start = 3945 + _RESTARTMODULEREQUEST._serialized_end = 4047 + _RESTARTMODULERESPONSE._serialized_start = 4049 + _RESTARTMODULERESPONSE._serialized_end = 4072 + _ROBOTSERVICE._serialized_start = 4199 + _ROBOTSERVICE._serialized_end = 6595 \ No newline at end of file diff --git a/src/viam/gen/robot/v1/robot_pb2.pyi b/src/viam/gen/robot/v1/robot_pb2.pyi index f2c3320a8..4d8256fab 100644 --- a/src/viam/gen/robot/v1/robot_pb2.pyi +++ b/src/viam/gen/robot/v1/robot_pb2.pyi @@ -741,6 +741,7 @@ class GetCloudMetadataResponse(google.protobuf.message.Message): MACHINE_ID_FIELD_NUMBER: builtins.int MACHINE_PART_ID_FIELD_NUMBER: builtins.int robot_part_id: builtins.str + 'Deprecated: use machine_part_id field.' primary_org_id: builtins.str location_id: builtins.str machine_id: builtins.str @@ -751,4 +752,34 @@ class GetCloudMetadataResponse(google.protobuf.message.Message): def ClearField(self, field_name: typing_extensions.Literal['location_id', b'location_id', 'machine_id', b'machine_id', 'machine_part_id', b'machine_part_id', 'primary_org_id', b'primary_org_id', 'robot_part_id', b'robot_part_id']) -> None: ... -global___GetCloudMetadataResponse = GetCloudMetadataResponse \ No newline at end of file +global___GetCloudMetadataResponse = GetCloudMetadataResponse + +@typing_extensions.final +class RestartModuleRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + MODULE_ID_FIELD_NUMBER: builtins.int + MODULE_NAME_FIELD_NUMBER: builtins.int + module_id: builtins.str + 'ID is for registry modules, name for local modules' + module_name: builtins.str + + def __init__(self, *, module_id: builtins.str=..., module_name: builtins.str=...) -> None: + ... + + def HasField(self, field_name: typing_extensions.Literal['id_or_name', b'id_or_name', 'module_id', b'module_id', 'module_name', b'module_name']) -> builtins.bool: + ... + + def ClearField(self, field_name: typing_extensions.Literal['id_or_name', b'id_or_name', 'module_id', b'module_id', 'module_name', b'module_name']) -> None: + ... + + def WhichOneof(self, oneof_group: typing_extensions.Literal['id_or_name', b'id_or_name']) -> typing_extensions.Literal['module_id', 'module_name'] | None: + ... +global___RestartModuleRequest = RestartModuleRequest + +@typing_extensions.final +class RestartModuleResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__(self) -> None: + ... +global___RestartModuleResponse = RestartModuleResponse \ No newline at end of file diff --git a/src/viam/proto/app/__init__.py b/src/viam/proto/app/__init__.py index 7ff9f21b1..ca051928a 100644 --- a/src/viam/proto/app/__init__.py +++ b/src/viam/proto/app/__init__.py @@ -1,13 +1,16 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ...gen.app.v1.app_grpc import AppServiceBase, AppServiceStub +''' +from ...gen.app.v1.app_grpc import ( + AppServiceBase, + AppServiceStub +) from ...gen.app.v1.app_pb2 import ( - AddRoleRequest, - AddRoleResponse, APIKey, APIKeyWithAuthorizations, + AddRoleRequest, + AddRoleResponse, Authorization, AuthorizationDetails, AuthorizedPermissions, @@ -113,12 +116,12 @@ LocationAuthRequest, LocationAuthResponse, LocationOrganization, + MLModelMetadata, + MLTrainingMetadata, MarkPartAsMainRequest, MarkPartAsMainResponse, MarkPartForRestartRequest, MarkPartForRestartResponse, - MLModelMetadata, - MLTrainingMetadata, Model, Module, ModuleFileInfo, @@ -128,11 +131,11 @@ NewRobotPartResponse, NewRobotRequest, NewRobotResponse, + OrgDetails, Organization, OrganizationIdentity, OrganizationInvite, OrganizationMember, - OrgDetails, RegistryItem, RegistryItemStatus, RemoveRoleRequest, @@ -145,9 +148,9 @@ RotateKeyRequest, RotateKeyResponse, RoverRentalRobot, - SharedSecret, ShareLocationRequest, ShareLocationResponse, + SharedSecret, StorageConfig, TailRobotPartLogsRequest, TailRobotPartLogsResponse, @@ -173,180 +176,180 @@ UploadModuleFileResponse, Uploads, VersionHistory, - Visibility, + Visibility ) __all__ = [ - "AppServiceBase", - "AppServiceStub", - "APIKey", - "APIKeyWithAuthorizations", - "AddRoleRequest", - "AddRoleResponse", - "Authorization", - "AuthorizationDetails", - "AuthorizedPermissions", - "ChangeRoleRequest", - "ChangeRoleResponse", - "CheckPermissionsRequest", - "CheckPermissionsResponse", - "CreateFragmentRequest", - "CreateFragmentResponse", - "CreateKeyFromExistingKeyAuthorizationsRequest", - "CreateKeyFromExistingKeyAuthorizationsResponse", - "CreateKeyRequest", - "CreateKeyResponse", - "CreateLocationRequest", - "CreateLocationResponse", - "CreateLocationSecretRequest", - "CreateLocationSecretResponse", - "CreateModuleRequest", - "CreateModuleResponse", - "CreateOrganizationInviteRequest", - "CreateOrganizationInviteResponse", - "CreateOrganizationRequest", - "CreateOrganizationResponse", - "CreateRegistryItemRequest", - "CreateRegistryItemResponse", - "CreateRobotPartSecretRequest", - "CreateRobotPartSecretResponse", - "DeleteFragmentRequest", - "DeleteFragmentResponse", - "DeleteKeyRequest", - "DeleteKeyResponse", - "DeleteLocationRequest", - "DeleteLocationResponse", - "DeleteLocationSecretRequest", - "DeleteLocationSecretResponse", - "DeleteOrganizationInviteRequest", - "DeleteOrganizationInviteResponse", - "DeleteOrganizationMemberRequest", - "DeleteOrganizationMemberResponse", - "DeleteOrganizationRequest", - "DeleteOrganizationResponse", - "DeleteRegistryItemRequest", - "DeleteRegistryItemResponse", - "DeleteRobotPartRequest", - "DeleteRobotPartResponse", - "DeleteRobotPartSecretRequest", - "DeleteRobotPartSecretResponse", - "DeleteRobotRequest", - "DeleteRobotResponse", - "Fragment", - "GetFragmentRequest", - "GetFragmentResponse", - "GetLocationRequest", - "GetLocationResponse", - "GetModuleRequest", - "GetModuleResponse", - "GetOrganizationNamespaceAvailabilityRequest", - "GetOrganizationNamespaceAvailabilityResponse", - "GetOrganizationRequest", - "GetOrganizationResponse", - "GetOrganizationsWithAccessToLocationRequest", - "GetOrganizationsWithAccessToLocationResponse", - "GetRegistryItemRequest", - "GetRegistryItemResponse", - "GetRobotAPIKeysRequest", - "GetRobotAPIKeysResponse", - "GetRobotPartHistoryRequest", - "GetRobotPartHistoryResponse", - "GetRobotPartLogsRequest", - "GetRobotPartLogsResponse", - "GetRobotPartRequest", - "GetRobotPartResponse", - "GetRobotPartsRequest", - "GetRobotPartsResponse", - "GetRobotRequest", - "GetRobotResponse", - "GetRoverRentalRobotsRequest", - "GetRoverRentalRobotsResponse", - "GetUserIDByEmailRequest", - "GetUserIDByEmailResponse", - "ListAuthorizationsRequest", - "ListAuthorizationsResponse", - "ListFragmentsRequest", - "ListFragmentsResponse", - "ListKeysRequest", - "ListKeysResponse", - "ListLocationsRequest", - "ListLocationsResponse", - "ListModulesRequest", - "ListModulesResponse", - "ListOrganizationMembersRequest", - "ListOrganizationMembersResponse", - "ListOrganizationsByUserRequest", - "ListOrganizationsByUserResponse", - "ListOrganizationsRequest", - "ListOrganizationsResponse", - "ListRegistryItemsRequest", - "ListRegistryItemsResponse", - "ListRobotsRequest", - "ListRobotsResponse", - "Location", - "LocationAuth", - "LocationAuthRequest", - "LocationAuthResponse", - "LocationOrganization", - "MLModelMetadata", - "MLTrainingMetadata", - "MarkPartAsMainRequest", - "MarkPartAsMainResponse", - "MarkPartForRestartRequest", - "MarkPartForRestartResponse", - "Model", - "Module", - "ModuleFileInfo", - "ModuleMetadata", - "ModuleVersion", - "NewRobotPartRequest", - "NewRobotPartResponse", - "NewRobotRequest", - "NewRobotResponse", - "OrgDetails", - "Organization", - "OrganizationIdentity", - "OrganizationInvite", - "OrganizationMember", - "RegistryItem", - "RegistryItemStatus", - "RemoveRoleRequest", - "RemoveRoleResponse", - "ResendOrganizationInviteRequest", - "ResendOrganizationInviteResponse", - "Robot", - "RobotPart", - "RobotPartHistoryEntry", - "RotateKeyRequest", - "RotateKeyResponse", - "RoverRentalRobot", - "ShareLocationRequest", - "ShareLocationResponse", - "SharedSecret", - "StorageConfig", - "TailRobotPartLogsRequest", - "TailRobotPartLogsResponse", - "UnshareLocationRequest", - "UnshareLocationResponse", - "UpdateFragmentRequest", - "UpdateFragmentResponse", - "UpdateLocationRequest", - "UpdateLocationResponse", - "UpdateModuleRequest", - "UpdateModuleResponse", - "UpdateOrganizationInviteAuthorizationsRequest", - "UpdateOrganizationInviteAuthorizationsResponse", - "UpdateOrganizationRequest", - "UpdateOrganizationResponse", - "UpdateRegistryItemRequest", - "UpdateRegistryItemResponse", - "UpdateRobotPartRequest", - "UpdateRobotPartResponse", - "UpdateRobotRequest", - "UpdateRobotResponse", - "UploadModuleFileRequest", - "UploadModuleFileResponse", - "Uploads", - "VersionHistory", - "Visibility", + 'AppServiceBase', + 'AppServiceStub', + 'APIKey', + 'APIKeyWithAuthorizations', + 'AddRoleRequest', + 'AddRoleResponse', + 'Authorization', + 'AuthorizationDetails', + 'AuthorizedPermissions', + 'ChangeRoleRequest', + 'ChangeRoleResponse', + 'CheckPermissionsRequest', + 'CheckPermissionsResponse', + 'CreateFragmentRequest', + 'CreateFragmentResponse', + 'CreateKeyFromExistingKeyAuthorizationsRequest', + 'CreateKeyFromExistingKeyAuthorizationsResponse', + 'CreateKeyRequest', + 'CreateKeyResponse', + 'CreateLocationRequest', + 'CreateLocationResponse', + 'CreateLocationSecretRequest', + 'CreateLocationSecretResponse', + 'CreateModuleRequest', + 'CreateModuleResponse', + 'CreateOrganizationInviteRequest', + 'CreateOrganizationInviteResponse', + 'CreateOrganizationRequest', + 'CreateOrganizationResponse', + 'CreateRegistryItemRequest', + 'CreateRegistryItemResponse', + 'CreateRobotPartSecretRequest', + 'CreateRobotPartSecretResponse', + 'DeleteFragmentRequest', + 'DeleteFragmentResponse', + 'DeleteKeyRequest', + 'DeleteKeyResponse', + 'DeleteLocationRequest', + 'DeleteLocationResponse', + 'DeleteLocationSecretRequest', + 'DeleteLocationSecretResponse', + 'DeleteOrganizationInviteRequest', + 'DeleteOrganizationInviteResponse', + 'DeleteOrganizationMemberRequest', + 'DeleteOrganizationMemberResponse', + 'DeleteOrganizationRequest', + 'DeleteOrganizationResponse', + 'DeleteRegistryItemRequest', + 'DeleteRegistryItemResponse', + 'DeleteRobotPartRequest', + 'DeleteRobotPartResponse', + 'DeleteRobotPartSecretRequest', + 'DeleteRobotPartSecretResponse', + 'DeleteRobotRequest', + 'DeleteRobotResponse', + 'Fragment', + 'GetFragmentRequest', + 'GetFragmentResponse', + 'GetLocationRequest', + 'GetLocationResponse', + 'GetModuleRequest', + 'GetModuleResponse', + 'GetOrganizationNamespaceAvailabilityRequest', + 'GetOrganizationNamespaceAvailabilityResponse', + 'GetOrganizationRequest', + 'GetOrganizationResponse', + 'GetOrganizationsWithAccessToLocationRequest', + 'GetOrganizationsWithAccessToLocationResponse', + 'GetRegistryItemRequest', + 'GetRegistryItemResponse', + 'GetRobotAPIKeysRequest', + 'GetRobotAPIKeysResponse', + 'GetRobotPartHistoryRequest', + 'GetRobotPartHistoryResponse', + 'GetRobotPartLogsRequest', + 'GetRobotPartLogsResponse', + 'GetRobotPartRequest', + 'GetRobotPartResponse', + 'GetRobotPartsRequest', + 'GetRobotPartsResponse', + 'GetRobotRequest', + 'GetRobotResponse', + 'GetRoverRentalRobotsRequest', + 'GetRoverRentalRobotsResponse', + 'GetUserIDByEmailRequest', + 'GetUserIDByEmailResponse', + 'ListAuthorizationsRequest', + 'ListAuthorizationsResponse', + 'ListFragmentsRequest', + 'ListFragmentsResponse', + 'ListKeysRequest', + 'ListKeysResponse', + 'ListLocationsRequest', + 'ListLocationsResponse', + 'ListModulesRequest', + 'ListModulesResponse', + 'ListOrganizationMembersRequest', + 'ListOrganizationMembersResponse', + 'ListOrganizationsByUserRequest', + 'ListOrganizationsByUserResponse', + 'ListOrganizationsRequest', + 'ListOrganizationsResponse', + 'ListRegistryItemsRequest', + 'ListRegistryItemsResponse', + 'ListRobotsRequest', + 'ListRobotsResponse', + 'Location', + 'LocationAuth', + 'LocationAuthRequest', + 'LocationAuthResponse', + 'LocationOrganization', + 'MLModelMetadata', + 'MLTrainingMetadata', + 'MarkPartAsMainRequest', + 'MarkPartAsMainResponse', + 'MarkPartForRestartRequest', + 'MarkPartForRestartResponse', + 'Model', + 'Module', + 'ModuleFileInfo', + 'ModuleMetadata', + 'ModuleVersion', + 'NewRobotPartRequest', + 'NewRobotPartResponse', + 'NewRobotRequest', + 'NewRobotResponse', + 'OrgDetails', + 'Organization', + 'OrganizationIdentity', + 'OrganizationInvite', + 'OrganizationMember', + 'RegistryItem', + 'RegistryItemStatus', + 'RemoveRoleRequest', + 'RemoveRoleResponse', + 'ResendOrganizationInviteRequest', + 'ResendOrganizationInviteResponse', + 'Robot', + 'RobotPart', + 'RobotPartHistoryEntry', + 'RotateKeyRequest', + 'RotateKeyResponse', + 'RoverRentalRobot', + 'ShareLocationRequest', + 'ShareLocationResponse', + 'SharedSecret', + 'StorageConfig', + 'TailRobotPartLogsRequest', + 'TailRobotPartLogsResponse', + 'UnshareLocationRequest', + 'UnshareLocationResponse', + 'UpdateFragmentRequest', + 'UpdateFragmentResponse', + 'UpdateLocationRequest', + 'UpdateLocationResponse', + 'UpdateModuleRequest', + 'UpdateModuleResponse', + 'UpdateOrganizationInviteAuthorizationsRequest', + 'UpdateOrganizationInviteAuthorizationsResponse', + 'UpdateOrganizationRequest', + 'UpdateOrganizationResponse', + 'UpdateRegistryItemRequest', + 'UpdateRegistryItemResponse', + 'UpdateRobotPartRequest', + 'UpdateRobotPartResponse', + 'UpdateRobotRequest', + 'UpdateRobotResponse', + 'UploadModuleFileRequest', + 'UploadModuleFileResponse', + 'Uploads', + 'VersionHistory', + 'Visibility', ] diff --git a/src/viam/proto/app/agent/__init__.py b/src/viam/proto/app/agent/__init__.py index 9c81383cd..590858696 100644 --- a/src/viam/proto/app/agent/__init__.py +++ b/src/viam/proto/app/agent/__init__.py @@ -1,8 +1,13 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.app.agent.v1.agent_grpc import AgentAppServiceBase, AgentAppServiceStub, AgentDeviceServiceBase, AgentDeviceServiceStub +''' +from ....gen.app.agent.v1.agent_grpc import ( + AgentAppServiceBase, + AgentAppServiceStub, + AgentDeviceServiceBase, + AgentDeviceServiceStub +) from ....gen.app.agent.v1.agent_pb2 import ( AppAgentConfig, AppSubsystemConfig, @@ -15,24 +20,24 @@ PackageFormat, SubsystemUpdateInfo, UpdateAgentConfigRequest, - UpdateAgentConfigResponse, + UpdateAgentConfigResponse ) __all__ = [ - "AgentAppServiceBase", - "AgentAppServiceStub", - "AgentDeviceServiceBase", - "AgentDeviceServiceStub", - "AppAgentConfig", - "AppSubsystemConfig", - "DeviceAgentConfigRequest", - "DeviceAgentConfigResponse", - "DeviceSubsystemConfig", - "GetAgentConfigRequest", - "GetAgentConfigResponse", - "HostInfo", - "PackageFormat", - "SubsystemUpdateInfo", - "UpdateAgentConfigRequest", - "UpdateAgentConfigResponse", + 'AgentAppServiceBase', + 'AgentAppServiceStub', + 'AgentDeviceServiceBase', + 'AgentDeviceServiceStub', + 'AppAgentConfig', + 'AppSubsystemConfig', + 'DeviceAgentConfigRequest', + 'DeviceAgentConfigResponse', + 'DeviceSubsystemConfig', + 'GetAgentConfigRequest', + 'GetAgentConfigResponse', + 'HostInfo', + 'PackageFormat', + 'SubsystemUpdateInfo', + 'UpdateAgentConfigRequest', + 'UpdateAgentConfigResponse', ] diff --git a/src/viam/proto/app/billing.py b/src/viam/proto/app/billing.py index 732666ebd..06bd9d88e 100644 --- a/src/viam/proto/app/billing.py +++ b/src/viam/proto/app/billing.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ...gen.app.v1.billing_grpc import BillingServiceBase, BillingServiceStub +''' +from ...gen.app.v1.billing_grpc import ( + BillingServiceBase, + BillingServiceStub +) from ...gen.app.v1.billing_pb2 import ( BillableResourceEvent, GetCurrentMonthUsageRequest, @@ -16,23 +19,23 @@ Invoice, InvoiceSummary, PaymentMethodCard, - PaymentMethodType, + PaymentMethodType ) __all__ = [ - "BillingServiceBase", - "BillingServiceStub", - "BillableResourceEvent", - "GetCurrentMonthUsageRequest", - "GetCurrentMonthUsageResponse", - "GetInvoicePdfRequest", - "GetInvoicePdfResponse", - "GetInvoicesSummaryRequest", - "GetInvoicesSummaryResponse", - "GetOrgBillingInformationRequest", - "GetOrgBillingInformationResponse", - "Invoice", - "InvoiceSummary", - "PaymentMethodCard", - "PaymentMethodType", + 'BillingServiceBase', + 'BillingServiceStub', + 'BillableResourceEvent', + 'GetCurrentMonthUsageRequest', + 'GetCurrentMonthUsageResponse', + 'GetInvoicePdfRequest', + 'GetInvoicePdfResponse', + 'GetInvoicesSummaryRequest', + 'GetInvoicesSummaryResponse', + 'GetOrgBillingInformationRequest', + 'GetOrgBillingInformationResponse', + 'Invoice', + 'InvoiceSummary', + 'PaymentMethodCard', + 'PaymentMethodType', ] diff --git a/src/viam/proto/app/cloudslam/__init__.py b/src/viam/proto/app/cloudslam/__init__.py index efd76a91f..7ed745bdf 100644 --- a/src/viam/proto/app/cloudslam/__init__.py +++ b/src/viam/proto/app/cloudslam/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.app.cloudslam.v1.cloud_slam_grpc import CloudSLAMServiceBase, CloudSLAMServiceStub +''' +from ....gen.app.cloudslam.v1.cloud_slam_grpc import ( + CloudSLAMServiceBase, + CloudSLAMServiceStub +) from ....gen.app.cloudslam.v1.cloud_slam_pb2 import ( CaptureInterval, EndStatus, @@ -20,27 +23,27 @@ StartMappingSessionRequest, StartMappingSessionResponse, StopMappingSessionRequest, - StopMappingSessionResponse, + StopMappingSessionResponse ) __all__ = [ - "CloudSLAMServiceBase", - "CloudSLAMServiceStub", - "CaptureInterval", - "EndStatus", - "GetActiveMappingSessionsForRobotRequest", - "GetActiveMappingSessionsForRobotResponse", - "GetMappingSessionMetadataByIDRequest", - "GetMappingSessionMetadataByIDResponse", - "GetMappingSessionPointCloudRequest", - "GetMappingSessionPointCloudResponse", - "ListMappingSessionsRequest", - "ListMappingSessionsResponse", - "MappingMetadata", - "Module", - "SensorInfo", - "StartMappingSessionRequest", - "StartMappingSessionResponse", - "StopMappingSessionRequest", - "StopMappingSessionResponse", + 'CloudSLAMServiceBase', + 'CloudSLAMServiceStub', + 'CaptureInterval', + 'EndStatus', + 'GetActiveMappingSessionsForRobotRequest', + 'GetActiveMappingSessionsForRobotResponse', + 'GetMappingSessionMetadataByIDRequest', + 'GetMappingSessionMetadataByIDResponse', + 'GetMappingSessionPointCloudRequest', + 'GetMappingSessionPointCloudResponse', + 'ListMappingSessionsRequest', + 'ListMappingSessionsResponse', + 'MappingMetadata', + 'Module', + 'SensorInfo', + 'StartMappingSessionRequest', + 'StartMappingSessionResponse', + 'StopMappingSessionRequest', + 'StopMappingSessionResponse', ] diff --git a/src/viam/proto/app/data/__init__.py b/src/viam/proto/app/data/__init__.py index ca0accbb2..9fb510946 100644 --- a/src/viam/proto/app/data/__init__.py +++ b/src/viam/proto/app/data/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.app.data.v1.data_grpc import DataServiceBase, DataServiceStub +''' +from ....gen.app.data.v1.data_grpc import ( + DataServiceBase, + DataServiceStub +) from ....gen.app.data.v1.data_pb2 import ( AddBinaryDataToDatasetByIDsRequest, AddBinaryDataToDatasetByIDsResponse, @@ -56,63 +59,63 @@ TagsByFilterRequest, TagsByFilterResponse, TagsFilter, - TagsFilterType, + TagsFilterType ) __all__ = [ - "DataServiceBase", - "DataServiceStub", - "AddBinaryDataToDatasetByIDsRequest", - "AddBinaryDataToDatasetByIDsResponse", - "AddBoundingBoxToImageByIDRequest", - "AddBoundingBoxToImageByIDResponse", - "AddTagsToBinaryDataByFilterRequest", - "AddTagsToBinaryDataByFilterResponse", - "AddTagsToBinaryDataByIDsRequest", - "AddTagsToBinaryDataByIDsResponse", - "Annotations", - "BinaryData", - "BinaryDataByFilterRequest", - "BinaryDataByFilterResponse", - "BinaryDataByIDsRequest", - "BinaryDataByIDsResponse", - "BinaryID", - "BinaryMetadata", - "BoundingBox", - "BoundingBoxLabelsByFilterRequest", - "BoundingBoxLabelsByFilterResponse", - "CaptureInterval", - "CaptureMetadata", - "ConfigureDatabaseUserRequest", - "ConfigureDatabaseUserResponse", - "DataRequest", - "DeleteBinaryDataByFilterRequest", - "DeleteBinaryDataByFilterResponse", - "DeleteBinaryDataByIDsRequest", - "DeleteBinaryDataByIDsResponse", - "DeleteTabularDataRequest", - "DeleteTabularDataResponse", - "Filter", - "GetDatabaseConnectionRequest", - "GetDatabaseConnectionResponse", - "Order", - "RemoveBinaryDataFromDatasetByIDsRequest", - "RemoveBinaryDataFromDatasetByIDsResponse", - "RemoveBoundingBoxFromImageByIDRequest", - "RemoveBoundingBoxFromImageByIDResponse", - "RemoveTagsFromBinaryDataByFilterRequest", - "RemoveTagsFromBinaryDataByFilterResponse", - "RemoveTagsFromBinaryDataByIDsRequest", - "RemoveTagsFromBinaryDataByIDsResponse", - "TabularData", - "TabularDataByFilterRequest", - "TabularDataByFilterResponse", - "TabularDataByMQLRequest", - "TabularDataByMQLResponse", - "TabularDataBySQLRequest", - "TabularDataBySQLResponse", - "TagsByFilterRequest", - "TagsByFilterResponse", - "TagsFilter", - "TagsFilterType", + 'DataServiceBase', + 'DataServiceStub', + 'AddBinaryDataToDatasetByIDsRequest', + 'AddBinaryDataToDatasetByIDsResponse', + 'AddBoundingBoxToImageByIDRequest', + 'AddBoundingBoxToImageByIDResponse', + 'AddTagsToBinaryDataByFilterRequest', + 'AddTagsToBinaryDataByFilterResponse', + 'AddTagsToBinaryDataByIDsRequest', + 'AddTagsToBinaryDataByIDsResponse', + 'Annotations', + 'BinaryData', + 'BinaryDataByFilterRequest', + 'BinaryDataByFilterResponse', + 'BinaryDataByIDsRequest', + 'BinaryDataByIDsResponse', + 'BinaryID', + 'BinaryMetadata', + 'BoundingBox', + 'BoundingBoxLabelsByFilterRequest', + 'BoundingBoxLabelsByFilterResponse', + 'CaptureInterval', + 'CaptureMetadata', + 'ConfigureDatabaseUserRequest', + 'ConfigureDatabaseUserResponse', + 'DataRequest', + 'DeleteBinaryDataByFilterRequest', + 'DeleteBinaryDataByFilterResponse', + 'DeleteBinaryDataByIDsRequest', + 'DeleteBinaryDataByIDsResponse', + 'DeleteTabularDataRequest', + 'DeleteTabularDataResponse', + 'Filter', + 'GetDatabaseConnectionRequest', + 'GetDatabaseConnectionResponse', + 'Order', + 'RemoveBinaryDataFromDatasetByIDsRequest', + 'RemoveBinaryDataFromDatasetByIDsResponse', + 'RemoveBoundingBoxFromImageByIDRequest', + 'RemoveBoundingBoxFromImageByIDResponse', + 'RemoveTagsFromBinaryDataByFilterRequest', + 'RemoveTagsFromBinaryDataByFilterResponse', + 'RemoveTagsFromBinaryDataByIDsRequest', + 'RemoveTagsFromBinaryDataByIDsResponse', + 'TabularData', + 'TabularDataByFilterRequest', + 'TabularDataByFilterResponse', + 'TabularDataByMQLRequest', + 'TabularDataByMQLResponse', + 'TabularDataBySQLRequest', + 'TabularDataBySQLResponse', + 'TagsByFilterRequest', + 'TagsByFilterResponse', + 'TagsFilter', + 'TagsFilterType', ] diff --git a/src/viam/proto/app/dataset/__init__.py b/src/viam/proto/app/dataset/__init__.py index e6af81ea0..266368092 100644 --- a/src/viam/proto/app/dataset/__init__.py +++ b/src/viam/proto/app/dataset/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.app.dataset.v1.dataset_grpc import DatasetServiceBase, DatasetServiceStub +''' +from ....gen.app.dataset.v1.dataset_grpc import ( + DatasetServiceBase, + DatasetServiceStub +) from ....gen.app.dataset.v1.dataset_pb2 import ( CreateDatasetRequest, CreateDatasetResponse, @@ -14,21 +17,21 @@ ListDatasetsByOrganizationIDRequest, ListDatasetsByOrganizationIDResponse, RenameDatasetRequest, - RenameDatasetResponse, + RenameDatasetResponse ) __all__ = [ - "DatasetServiceBase", - "DatasetServiceStub", - "CreateDatasetRequest", - "CreateDatasetResponse", - "Dataset", - "DeleteDatasetRequest", - "DeleteDatasetResponse", - "ListDatasetsByIDsRequest", - "ListDatasetsByIDsResponse", - "ListDatasetsByOrganizationIDRequest", - "ListDatasetsByOrganizationIDResponse", - "RenameDatasetRequest", - "RenameDatasetResponse", + 'DatasetServiceBase', + 'DatasetServiceStub', + 'CreateDatasetRequest', + 'CreateDatasetResponse', + 'Dataset', + 'DeleteDatasetRequest', + 'DeleteDatasetResponse', + 'ListDatasetsByIDsRequest', + 'ListDatasetsByIDsResponse', + 'ListDatasetsByOrganizationIDRequest', + 'ListDatasetsByOrganizationIDResponse', + 'RenameDatasetRequest', + 'RenameDatasetResponse', ] diff --git a/src/viam/proto/app/datasync/__init__.py b/src/viam/proto/app/datasync/__init__.py index a43cc58b5..f25cad444 100644 --- a/src/viam/proto/app/datasync/__init__.py +++ b/src/viam/proto/app/datasync/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.app.datasync.v1.data_sync_grpc import DataSyncServiceBase, DataSyncServiceStub +''' +from ....gen.app.datasync.v1.data_sync_grpc import ( + DataSyncServiceBase, + DataSyncServiceStub +) from ....gen.app.datasync.v1.data_sync_pb2 import ( CaptureInterval, DataCaptureMetadata, @@ -17,24 +20,24 @@ SensorMetadata, StreamingDataCaptureUploadRequest, StreamingDataCaptureUploadResponse, - UploadMetadata, + UploadMetadata ) __all__ = [ - "DataSyncServiceBase", - "DataSyncServiceStub", - "CaptureInterval", - "DataCaptureMetadata", - "DataCaptureUploadMetadata", - "DataCaptureUploadRequest", - "DataCaptureUploadResponse", - "DataType", - "FileData", - "FileUploadRequest", - "FileUploadResponse", - "SensorData", - "SensorMetadata", - "StreamingDataCaptureUploadRequest", - "StreamingDataCaptureUploadResponse", - "UploadMetadata", + 'DataSyncServiceBase', + 'DataSyncServiceStub', + 'CaptureInterval', + 'DataCaptureMetadata', + 'DataCaptureUploadMetadata', + 'DataCaptureUploadRequest', + 'DataCaptureUploadResponse', + 'DataType', + 'FileData', + 'FileUploadRequest', + 'FileUploadResponse', + 'SensorData', + 'SensorMetadata', + 'StreamingDataCaptureUploadRequest', + 'StreamingDataCaptureUploadResponse', + 'UploadMetadata', ] diff --git a/src/viam/proto/app/end_user.py b/src/viam/proto/app/end_user.py index 1364cb3c7..6fcf3785a 100644 --- a/src/viam/proto/app/end_user.py +++ b/src/viam/proto/app/end_user.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ...gen.app.v1.end_user_grpc import EndUserServiceBase, EndUserServiceStub +''' +from ...gen.app.v1.end_user_grpc import ( + EndUserServiceBase, + EndUserServiceStub +) from ...gen.app.v1.end_user_pb2 import ( AcceptLegalRequest, AcceptLegalResponse, @@ -11,18 +14,18 @@ RegisterAuthApplicationRequest, RegisterAuthApplicationResponse, UpdateAuthApplicationRequest, - UpdateAuthApplicationResponse, + UpdateAuthApplicationResponse ) __all__ = [ - "EndUserServiceBase", - "EndUserServiceStub", - "AcceptLegalRequest", - "AcceptLegalResponse", - "IsLegalAcceptedRequest", - "IsLegalAcceptedResponse", - "RegisterAuthApplicationRequest", - "RegisterAuthApplicationResponse", - "UpdateAuthApplicationRequest", - "UpdateAuthApplicationResponse", + 'EndUserServiceBase', + 'EndUserServiceStub', + 'AcceptLegalRequest', + 'AcceptLegalResponse', + 'IsLegalAcceptedRequest', + 'IsLegalAcceptedResponse', + 'RegisterAuthApplicationRequest', + 'RegisterAuthApplicationResponse', + 'UpdateAuthApplicationRequest', + 'UpdateAuthApplicationResponse', ] diff --git a/src/viam/proto/app/mltraining/__init__.py b/src/viam/proto/app/mltraining/__init__.py index 4ad78b459..826ee9bfe 100644 --- a/src/viam/proto/app/mltraining/__init__.py +++ b/src/viam/proto/app/mltraining/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.app.mltraining.v1.ml_training_grpc import MLTrainingServiceBase, MLTrainingServiceStub +''' +from ....gen.app.mltraining.v1.ml_training_grpc import ( + MLTrainingServiceBase, + MLTrainingServiceStub +) from ....gen.app.mltraining.v1.ml_training_pb2 import ( CancelTrainingJobRequest, CancelTrainingJobResponse, @@ -14,27 +17,31 @@ ListTrainingJobsResponse, ModelFramework, ModelType, + SubmitCustomTrainingJobRequest, + SubmitCustomTrainingJobResponse, SubmitTrainingJobRequest, SubmitTrainingJobResponse, TrainingJobMetadata, - TrainingStatus, + TrainingStatus ) __all__ = [ - "MLTrainingServiceBase", - "MLTrainingServiceStub", - "CancelTrainingJobRequest", - "CancelTrainingJobResponse", - "DeleteCompletedTrainingJobRequest", - "DeleteCompletedTrainingJobResponse", - "GetTrainingJobRequest", - "GetTrainingJobResponse", - "ListTrainingJobsRequest", - "ListTrainingJobsResponse", - "ModelFramework", - "ModelType", - "SubmitTrainingJobRequest", - "SubmitTrainingJobResponse", - "TrainingJobMetadata", - "TrainingStatus", + 'MLTrainingServiceBase', + 'MLTrainingServiceStub', + 'CancelTrainingJobRequest', + 'CancelTrainingJobResponse', + 'DeleteCompletedTrainingJobRequest', + 'DeleteCompletedTrainingJobResponse', + 'GetTrainingJobRequest', + 'GetTrainingJobResponse', + 'ListTrainingJobsRequest', + 'ListTrainingJobsResponse', + 'ModelFramework', + 'ModelType', + 'SubmitCustomTrainingJobRequest', + 'SubmitCustomTrainingJobResponse', + 'SubmitTrainingJobRequest', + 'SubmitTrainingJobResponse', + 'TrainingJobMetadata', + 'TrainingStatus', ] diff --git a/src/viam/proto/app/packages/__init__.py b/src/viam/proto/app/packages/__init__.py index 0bbae5588..12f084823 100644 --- a/src/viam/proto/app/packages/__init__.py +++ b/src/viam/proto/app/packages/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.app.packages.v1.packages_grpc import PackageServiceBase, PackageServiceStub +''' +from ....gen.app.packages.v1.packages_grpc import ( + PackageServiceBase, + PackageServiceStub +) from ....gen.app.packages.v1.packages_pb2 import ( CreatePackageRequest, CreatePackageResponse, @@ -15,22 +18,22 @@ ListPackagesResponse, Package, PackageInfo, - PackageType, + PackageType ) __all__ = [ - "PackageServiceBase", - "PackageServiceStub", - "CreatePackageRequest", - "CreatePackageResponse", - "DeletePackageRequest", - "DeletePackageResponse", - "FileInfo", - "GetPackageRequest", - "GetPackageResponse", - "ListPackagesRequest", - "ListPackagesResponse", - "Package", - "PackageInfo", - "PackageType", + 'PackageServiceBase', + 'PackageServiceStub', + 'CreatePackageRequest', + 'CreatePackageResponse', + 'DeletePackageRequest', + 'DeletePackageResponse', + 'FileInfo', + 'GetPackageRequest', + 'GetPackageResponse', + 'ListPackagesRequest', + 'ListPackagesResponse', + 'Package', + 'PackageInfo', + 'PackageType', ] diff --git a/src/viam/proto/app/robot.py b/src/viam/proto/app/robot.py index 1e402fcbb..26a98f90c 100644 --- a/src/viam/proto/app/robot.py +++ b/src/viam/proto/app/robot.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ...gen.app.v1.robot_grpc import RobotServiceBase, RobotServiceStub +''' +from ...gen.app.v1.robot_grpc import ( + RobotServiceBase, + RobotServiceStub +) from ...gen.app.v1.robot_pb2 import ( AgentInfo, AppValidationStatus, @@ -35,42 +38,42 @@ RobotConfig, ServiceConfig, SessionsConfig, - Translation, + Translation ) __all__ = [ - "RobotServiceBase", - "RobotServiceStub", - "AgentInfo", - "AppValidationStatus", - "AuthConfig", - "AuthHandlerConfig", - "CertificateRequest", - "CertificateResponse", - "CloudConfig", - "ComponentConfig", - "ConfigRequest", - "ConfigResponse", - "CredentialsType", - "ExternalAuthConfig", - "Frame", - "JWKSFile", - "LocationSecret", - "LogConfiguration", - "LogRequest", - "LogResponse", - "ModuleConfig", - "NeedsRestartRequest", - "NeedsRestartResponse", - "NetworkConfig", - "Orientation", - "PackageConfig", - "ProcessConfig", - "RemoteAuth", - "RemoteConfig", - "ResourceLevelServiceConfig", - "RobotConfig", - "ServiceConfig", - "SessionsConfig", - "Translation", + 'RobotServiceBase', + 'RobotServiceStub', + 'AgentInfo', + 'AppValidationStatus', + 'AuthConfig', + 'AuthHandlerConfig', + 'CertificateRequest', + 'CertificateResponse', + 'CloudConfig', + 'ComponentConfig', + 'ConfigRequest', + 'ConfigResponse', + 'CredentialsType', + 'ExternalAuthConfig', + 'Frame', + 'JWKSFile', + 'LocationSecret', + 'LogConfiguration', + 'LogRequest', + 'LogResponse', + 'ModuleConfig', + 'NeedsRestartRequest', + 'NeedsRestartResponse', + 'NetworkConfig', + 'Orientation', + 'PackageConfig', + 'ProcessConfig', + 'RemoteAuth', + 'RemoteConfig', + 'ResourceLevelServiceConfig', + 'RobotConfig', + 'ServiceConfig', + 'SessionsConfig', + 'Translation', ] diff --git a/src/viam/proto/common/__init__.py b/src/viam/proto/common/__init__.py index f6e8dfdaa..0cc489f85 100644 --- a/src/viam/proto/common/__init__.py +++ b/src/viam/proto/common/__init__.py @@ -1,19 +1,18 @@ -""" +''' @generated by Viam. Do not edit manually! -""" +''' from ...gen.common.v1.common_pb2 import ( ActuatorStatus, AnalogStatus, - BoardStatus, Capsule, DigitalInterruptStatus, DoCommandRequest, DoCommandResponse, - GeometriesInFrame, - Geometry, GeoObstacle, GeoPoint, + GeometriesInFrame, + Geometry, GetGeometriesRequest, GetGeometriesResponse, GetKinematicsRequest, @@ -32,38 +31,37 @@ Sphere, Transform, Vector3, - WorldState, + WorldState ) __all__ = [ - "ActuatorStatus", - "AnalogStatus", - "BoardStatus", - "Capsule", - "DigitalInterruptStatus", - "DoCommandRequest", - "DoCommandResponse", - "GeoObstacle", - "GeoPoint", - "GeometriesInFrame", - "Geometry", - "GetGeometriesRequest", - "GetGeometriesResponse", - "GetKinematicsRequest", - "GetKinematicsResponse", - "GetReadingsRequest", - "GetReadingsResponse", - "KinematicsFileFormat", - "LogEntry", - "Orientation", - "PointCloudObject", - "Pose", - "PoseInFrame", - "RectangularPrism", - "ResourceName", - "ResponseMetadata", - "Sphere", - "Transform", - "Vector3", - "WorldState", + 'ActuatorStatus', + 'AnalogStatus', + 'Capsule', + 'DigitalInterruptStatus', + 'DoCommandRequest', + 'DoCommandResponse', + 'GeoObstacle', + 'GeoPoint', + 'GeometriesInFrame', + 'Geometry', + 'GetGeometriesRequest', + 'GetGeometriesResponse', + 'GetKinematicsRequest', + 'GetKinematicsResponse', + 'GetReadingsRequest', + 'GetReadingsResponse', + 'KinematicsFileFormat', + 'LogEntry', + 'Orientation', + 'PointCloudObject', + 'Pose', + 'PoseInFrame', + 'RectangularPrism', + 'ResourceName', + 'ResponseMetadata', + 'Sphere', + 'Transform', + 'Vector3', + 'WorldState', ] diff --git a/src/viam/proto/component/arm/__init__.py b/src/viam/proto/component/arm/__init__.py index 0865aa0ef..31a9427c8 100644 --- a/src/viam/proto/component/arm/__init__.py +++ b/src/viam/proto/component/arm/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.component.arm.v1.arm_grpc import ArmServiceBase, ArmServiceStub +''' +from ....gen.component.arm.v1.arm_grpc import ( + ArmServiceBase, + ArmServiceStub +) from ....gen.component.arm.v1.arm_pb2 import ( GetEndPositionRequest, GetEndPositionResponse, @@ -17,24 +20,24 @@ MoveToPositionResponse, Status, StopRequest, - StopResponse, + StopResponse ) __all__ = [ - "ArmServiceBase", - "ArmServiceStub", - "GetEndPositionRequest", - "GetEndPositionResponse", - "GetJointPositionsRequest", - "GetJointPositionsResponse", - "IsMovingRequest", - "IsMovingResponse", - "JointPositions", - "MoveToJointPositionsRequest", - "MoveToJointPositionsResponse", - "MoveToPositionRequest", - "MoveToPositionResponse", - "Status", - "StopRequest", - "StopResponse", + 'ArmServiceBase', + 'ArmServiceStub', + 'GetEndPositionRequest', + 'GetEndPositionResponse', + 'GetJointPositionsRequest', + 'GetJointPositionsResponse', + 'IsMovingRequest', + 'IsMovingResponse', + 'JointPositions', + 'MoveToJointPositionsRequest', + 'MoveToJointPositionsResponse', + 'MoveToPositionRequest', + 'MoveToPositionResponse', + 'Status', + 'StopRequest', + 'StopResponse', ] diff --git a/src/viam/proto/component/audioinput/__init__.py b/src/viam/proto/component/audioinput/__init__.py index e9dceb099..dd2c28efb 100644 --- a/src/viam/proto/component/audioinput/__init__.py +++ b/src/viam/proto/component/audioinput/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.component.audioinput.v1.audioinput_grpc import AudioInputServiceBase, AudioInputServiceStub +''' +from ....gen.component.audioinput.v1.audioinput_grpc import ( + AudioInputServiceBase, + AudioInputServiceStub +) from ....gen.component.audioinput.v1.audioinput_pb2 import ( AudioChunk, AudioChunkInfo, @@ -11,18 +14,18 @@ PropertiesRequest, PropertiesResponse, RecordRequest, - SampleFormat, + SampleFormat ) __all__ = [ - "AudioInputServiceBase", - "AudioInputServiceStub", - "AudioChunk", - "AudioChunkInfo", - "ChunksRequest", - "ChunksResponse", - "PropertiesRequest", - "PropertiesResponse", - "RecordRequest", - "SampleFormat", + 'AudioInputServiceBase', + 'AudioInputServiceStub', + 'AudioChunk', + 'AudioChunkInfo', + 'ChunksRequest', + 'ChunksResponse', + 'PropertiesRequest', + 'PropertiesResponse', + 'RecordRequest', + 'SampleFormat', ] diff --git a/src/viam/proto/component/base/__init__.py b/src/viam/proto/component/base/__init__.py index 3292255d6..25bee7808 100644 --- a/src/viam/proto/component/base/__init__.py +++ b/src/viam/proto/component/base/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.component.base.v1.base_grpc import BaseServiceBase, BaseServiceStub +''' +from ....gen.component.base.v1.base_grpc import ( + BaseServiceBase, + BaseServiceStub +) from ....gen.component.base.v1.base_pb2 import ( GetPropertiesRequest, GetPropertiesResponse, @@ -17,24 +20,24 @@ SpinRequest, SpinResponse, StopRequest, - StopResponse, + StopResponse ) __all__ = [ - "BaseServiceBase", - "BaseServiceStub", - "GetPropertiesRequest", - "GetPropertiesResponse", - "IsMovingRequest", - "IsMovingResponse", - "MoveStraightRequest", - "MoveStraightResponse", - "SetPowerRequest", - "SetPowerResponse", - "SetVelocityRequest", - "SetVelocityResponse", - "SpinRequest", - "SpinResponse", - "StopRequest", - "StopResponse", + 'BaseServiceBase', + 'BaseServiceStub', + 'GetPropertiesRequest', + 'GetPropertiesResponse', + 'IsMovingRequest', + 'IsMovingResponse', + 'MoveStraightRequest', + 'MoveStraightResponse', + 'SetPowerRequest', + 'SetPowerResponse', + 'SetVelocityRequest', + 'SetVelocityResponse', + 'SpinRequest', + 'SpinResponse', + 'StopRequest', + 'StopResponse', ] diff --git a/src/viam/proto/component/board/__init__.py b/src/viam/proto/component/board/__init__.py index fe47b869c..0685b4d7f 100644 --- a/src/viam/proto/component/board/__init__.py +++ b/src/viam/proto/component/board/__init__.py @@ -1,62 +1,63 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.component.board.v1.board_grpc import BoardServiceBase, BoardServiceStub +''' +from ....gen.component.board.v1.board_grpc import ( + BoardServiceBase, + BoardServiceStub +) from ....gen.component.board.v1.board_pb2 import ( GetDigitalInterruptValueRequest, GetDigitalInterruptValueResponse, GetGPIORequest, GetGPIOResponse, - PowerMode, PWMFrequencyRequest, PWMFrequencyResponse, PWMRequest, PWMResponse, + PowerMode, ReadAnalogReaderRequest, ReadAnalogReaderResponse, SetGPIORequest, SetGPIOResponse, - SetPowerModeRequest, - SetPowerModeResponse, SetPWMFrequencyRequest, SetPWMFrequencyResponse, SetPWMRequest, SetPWMResponse, - StatusRequest, - StatusResponse, + SetPowerModeRequest, + SetPowerModeResponse, + Status, StreamTicksRequest, StreamTicksResponse, WriteAnalogRequest, - WriteAnalogResponse, + WriteAnalogResponse ) __all__ = [ - "BoardServiceBase", - "BoardServiceStub", - "GetDigitalInterruptValueRequest", - "GetDigitalInterruptValueResponse", - "GetGPIORequest", - "GetGPIOResponse", - "PWMFrequencyRequest", - "PWMFrequencyResponse", - "PWMRequest", - "PWMResponse", - "PowerMode", - "ReadAnalogReaderRequest", - "ReadAnalogReaderResponse", - "SetGPIORequest", - "SetGPIOResponse", - "SetPWMFrequencyRequest", - "SetPWMFrequencyResponse", - "SetPWMRequest", - "SetPWMResponse", - "SetPowerModeRequest", - "SetPowerModeResponse", - "StatusRequest", - "StatusResponse", - "StreamTicksRequest", - "StreamTicksResponse", - "WriteAnalogRequest", - "WriteAnalogResponse", + 'BoardServiceBase', + 'BoardServiceStub', + 'GetDigitalInterruptValueRequest', + 'GetDigitalInterruptValueResponse', + 'GetGPIORequest', + 'GetGPIOResponse', + 'PWMFrequencyRequest', + 'PWMFrequencyResponse', + 'PWMRequest', + 'PWMResponse', + 'PowerMode', + 'ReadAnalogReaderRequest', + 'ReadAnalogReaderResponse', + 'SetGPIORequest', + 'SetGPIOResponse', + 'SetPWMFrequencyRequest', + 'SetPWMFrequencyResponse', + 'SetPWMRequest', + 'SetPWMResponse', + 'SetPowerModeRequest', + 'SetPowerModeResponse', + 'Status', + 'StreamTicksRequest', + 'StreamTicksResponse', + 'WriteAnalogRequest', + 'WriteAnalogResponse', ] diff --git a/src/viam/proto/component/camera/__init__.py b/src/viam/proto/component/camera/__init__.py index 0accf72ca..4a901f5a2 100644 --- a/src/viam/proto/component/camera/__init__.py +++ b/src/viam/proto/component/camera/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.component.camera.v1.camera_grpc import CameraServiceBase, CameraServiceStub +''' +from ....gen.component.camera.v1.camera_grpc import ( + CameraServiceBase, + CameraServiceStub +) from ....gen.component.camera.v1.camera_pb2 import ( DistortionParameters, Format, @@ -19,26 +22,26 @@ Property, RenderFrameRequest, Webcam, - Webcams, + Webcams ) __all__ = [ - "CameraServiceBase", - "CameraServiceStub", - "DistortionParameters", - "Format", - "GetImageRequest", - "GetImageResponse", - "GetImagesRequest", - "GetImagesResponse", - "GetPointCloudRequest", - "GetPointCloudResponse", - "GetPropertiesRequest", - "GetPropertiesResponse", - "Image", - "IntrinsicParameters", - "Property", - "RenderFrameRequest", - "Webcam", - "Webcams", + 'CameraServiceBase', + 'CameraServiceStub', + 'DistortionParameters', + 'Format', + 'GetImageRequest', + 'GetImageResponse', + 'GetImagesRequest', + 'GetImagesResponse', + 'GetPointCloudRequest', + 'GetPointCloudResponse', + 'GetPropertiesRequest', + 'GetPropertiesResponse', + 'Image', + 'IntrinsicParameters', + 'Property', + 'RenderFrameRequest', + 'Webcam', + 'Webcams', ] diff --git a/src/viam/proto/component/encoder/__init__.py b/src/viam/proto/component/encoder/__init__.py index f0b1494cf..5422736db 100644 --- a/src/viam/proto/component/encoder/__init__.py +++ b/src/viam/proto/component/encoder/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.component.encoder.v1.encoder_grpc import EncoderServiceBase, EncoderServiceStub +''' +from ....gen.component.encoder.v1.encoder_grpc import ( + EncoderServiceBase, + EncoderServiceStub +) from ....gen.component.encoder.v1.encoder_pb2 import ( GetPositionRequest, GetPositionResponse, @@ -10,17 +13,17 @@ GetPropertiesResponse, PositionType, ResetPositionRequest, - ResetPositionResponse, + ResetPositionResponse ) __all__ = [ - "EncoderServiceBase", - "EncoderServiceStub", - "GetPositionRequest", - "GetPositionResponse", - "GetPropertiesRequest", - "GetPropertiesResponse", - "PositionType", - "ResetPositionRequest", - "ResetPositionResponse", + 'EncoderServiceBase', + 'EncoderServiceStub', + 'GetPositionRequest', + 'GetPositionResponse', + 'GetPropertiesRequest', + 'GetPropertiesResponse', + 'PositionType', + 'ResetPositionRequest', + 'ResetPositionResponse', ] diff --git a/src/viam/proto/component/gantry/__init__.py b/src/viam/proto/component/gantry/__init__.py index 460886978..f7f93ab2c 100644 --- a/src/viam/proto/component/gantry/__init__.py +++ b/src/viam/proto/component/gantry/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.component.gantry.v1.gantry_grpc import GantryServiceBase, GantryServiceStub +''' +from ....gen.component.gantry.v1.gantry_grpc import ( + GantryServiceBase, + GantryServiceStub +) from ....gen.component.gantry.v1.gantry_pb2 import ( GetLengthsRequest, GetLengthsResponse, @@ -16,23 +19,23 @@ MoveToPositionResponse, Status, StopRequest, - StopResponse, + StopResponse ) __all__ = [ - "GantryServiceBase", - "GantryServiceStub", - "GetLengthsRequest", - "GetLengthsResponse", - "GetPositionRequest", - "GetPositionResponse", - "HomeRequest", - "HomeResponse", - "IsMovingRequest", - "IsMovingResponse", - "MoveToPositionRequest", - "MoveToPositionResponse", - "Status", - "StopRequest", - "StopResponse", + 'GantryServiceBase', + 'GantryServiceStub', + 'GetLengthsRequest', + 'GetLengthsResponse', + 'GetPositionRequest', + 'GetPositionResponse', + 'HomeRequest', + 'HomeResponse', + 'IsMovingRequest', + 'IsMovingResponse', + 'MoveToPositionRequest', + 'MoveToPositionResponse', + 'Status', + 'StopRequest', + 'StopResponse', ] diff --git a/src/viam/proto/component/generic/__init__.py b/src/viam/proto/component/generic/__init__.py index 29c5e6c71..26d6cf52b 100644 --- a/src/viam/proto/component/generic/__init__.py +++ b/src/viam/proto/component/generic/__init__.py @@ -1,10 +1,13 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.component.generic.v1.generic_grpc import GenericServiceBase, GenericServiceStub +''' +from ....gen.component.generic.v1.generic_grpc import ( + GenericServiceBase, + GenericServiceStub +) __all__ = [ - "GenericServiceBase", - "GenericServiceStub", + 'GenericServiceBase', + 'GenericServiceStub', ] diff --git a/src/viam/proto/component/gripper/__init__.py b/src/viam/proto/component/gripper/__init__.py index 12f5ccbb2..6e1edb733 100644 --- a/src/viam/proto/component/gripper/__init__.py +++ b/src/viam/proto/component/gripper/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.component.gripper.v1.gripper_grpc import GripperServiceBase, GripperServiceStub +''' +from ....gen.component.gripper.v1.gripper_grpc import ( + GripperServiceBase, + GripperServiceStub +) from ....gen.component.gripper.v1.gripper_pb2 import ( GrabRequest, GrabResponse, @@ -11,18 +14,18 @@ OpenRequest, OpenResponse, StopRequest, - StopResponse, + StopResponse ) __all__ = [ - "GripperServiceBase", - "GripperServiceStub", - "GrabRequest", - "GrabResponse", - "IsMovingRequest", - "IsMovingResponse", - "OpenRequest", - "OpenResponse", - "StopRequest", - "StopResponse", + 'GripperServiceBase', + 'GripperServiceStub', + 'GrabRequest', + 'GrabResponse', + 'IsMovingRequest', + 'IsMovingResponse', + 'OpenRequest', + 'OpenResponse', + 'StopRequest', + 'StopResponse', ] diff --git a/src/viam/proto/component/inputcontroller/__init__.py b/src/viam/proto/component/inputcontroller/__init__.py index e91791faf..cd24d9af6 100644 --- a/src/viam/proto/component/inputcontroller/__init__.py +++ b/src/viam/proto/component/inputcontroller/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.component.inputcontroller.v1.input_controller_grpc import InputControllerServiceBase, InputControllerServiceStub +''' +from ....gen.component.inputcontroller.v1.input_controller_grpc import ( + InputControllerServiceBase, + InputControllerServiceStub +) from ....gen.component.inputcontroller.v1.input_controller_pb2 import ( Event, GetControlsRequest, @@ -13,20 +16,20 @@ StreamEventsRequest, StreamEventsResponse, TriggerEventRequest, - TriggerEventResponse, + TriggerEventResponse ) __all__ = [ - "InputControllerServiceBase", - "InputControllerServiceStub", - "Event", - "GetControlsRequest", - "GetControlsResponse", - "GetEventsRequest", - "GetEventsResponse", - "Status", - "StreamEventsRequest", - "StreamEventsResponse", - "TriggerEventRequest", - "TriggerEventResponse", + 'InputControllerServiceBase', + 'InputControllerServiceStub', + 'Event', + 'GetControlsRequest', + 'GetControlsResponse', + 'GetEventsRequest', + 'GetEventsResponse', + 'Status', + 'StreamEventsRequest', + 'StreamEventsResponse', + 'TriggerEventRequest', + 'TriggerEventResponse', ] diff --git a/src/viam/proto/component/motor/__init__.py b/src/viam/proto/component/motor/__init__.py index eebdf5220..aec9b4d74 100644 --- a/src/viam/proto/component/motor/__init__.py +++ b/src/viam/proto/component/motor/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.component.motor.v1.motor_grpc import MotorServiceBase, MotorServiceStub +''' +from ....gen.component.motor.v1.motor_grpc import ( + MotorServiceBase, + MotorServiceStub +) from ....gen.component.motor.v1.motor_pb2 import ( GetPositionRequest, GetPositionResponse, @@ -22,29 +25,29 @@ SetPowerResponse, Status, StopRequest, - StopResponse, + StopResponse ) __all__ = [ - "MotorServiceBase", - "MotorServiceStub", - "GetPositionRequest", - "GetPositionResponse", - "GetPropertiesRequest", - "GetPropertiesResponse", - "GoForRequest", - "GoForResponse", - "GoToRequest", - "GoToResponse", - "IsMovingRequest", - "IsMovingResponse", - "IsPoweredRequest", - "IsPoweredResponse", - "ResetZeroPositionRequest", - "ResetZeroPositionResponse", - "SetPowerRequest", - "SetPowerResponse", - "Status", - "StopRequest", - "StopResponse", + 'MotorServiceBase', + 'MotorServiceStub', + 'GetPositionRequest', + 'GetPositionResponse', + 'GetPropertiesRequest', + 'GetPropertiesResponse', + 'GoForRequest', + 'GoForResponse', + 'GoToRequest', + 'GoToResponse', + 'IsMovingRequest', + 'IsMovingResponse', + 'IsPoweredRequest', + 'IsPoweredResponse', + 'ResetZeroPositionRequest', + 'ResetZeroPositionResponse', + 'SetPowerRequest', + 'SetPowerResponse', + 'Status', + 'StopRequest', + 'StopResponse', ] diff --git a/src/viam/proto/component/movementsensor/__init__.py b/src/viam/proto/component/movementsensor/__init__.py index 62719b809..411d8a872 100644 --- a/src/viam/proto/component/movementsensor/__init__.py +++ b/src/viam/proto/component/movementsensor/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.component.movementsensor.v1.movementsensor_grpc import MovementSensorServiceBase, MovementSensorServiceStub +''' +from ....gen.component.movementsensor.v1.movementsensor_grpc import ( + MovementSensorServiceBase, + MovementSensorServiceStub +) from ....gen.component.movementsensor.v1.movementsensor_pb2 import ( GetAccuracyRequest, GetAccuracyResponse, @@ -19,26 +22,26 @@ GetPositionRequest, GetPositionResponse, GetPropertiesRequest, - GetPropertiesResponse, + GetPropertiesResponse ) __all__ = [ - "MovementSensorServiceBase", - "MovementSensorServiceStub", - "GetAccuracyRequest", - "GetAccuracyResponse", - "GetAngularVelocityRequest", - "GetAngularVelocityResponse", - "GetCompassHeadingRequest", - "GetCompassHeadingResponse", - "GetLinearAccelerationRequest", - "GetLinearAccelerationResponse", - "GetLinearVelocityRequest", - "GetLinearVelocityResponse", - "GetOrientationRequest", - "GetOrientationResponse", - "GetPositionRequest", - "GetPositionResponse", - "GetPropertiesRequest", - "GetPropertiesResponse", + 'MovementSensorServiceBase', + 'MovementSensorServiceStub', + 'GetAccuracyRequest', + 'GetAccuracyResponse', + 'GetAngularVelocityRequest', + 'GetAngularVelocityResponse', + 'GetCompassHeadingRequest', + 'GetCompassHeadingResponse', + 'GetLinearAccelerationRequest', + 'GetLinearAccelerationResponse', + 'GetLinearVelocityRequest', + 'GetLinearVelocityResponse', + 'GetOrientationRequest', + 'GetOrientationResponse', + 'GetPositionRequest', + 'GetPositionResponse', + 'GetPropertiesRequest', + 'GetPropertiesResponse', ] diff --git a/src/viam/proto/component/posetracker/__init__.py b/src/viam/proto/component/posetracker/__init__.py index 7b81b96de..e1cc11727 100644 --- a/src/viam/proto/component/posetracker/__init__.py +++ b/src/viam/proto/component/posetracker/__init__.py @@ -1,13 +1,19 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.component.posetracker.v1.pose_tracker_grpc import PoseTrackerServiceBase, PoseTrackerServiceStub -from ....gen.component.posetracker.v1.pose_tracker_pb2 import GetPosesRequest, GetPosesResponse +''' +from ....gen.component.posetracker.v1.pose_tracker_grpc import ( + PoseTrackerServiceBase, + PoseTrackerServiceStub +) +from ....gen.component.posetracker.v1.pose_tracker_pb2 import ( + GetPosesRequest, + GetPosesResponse +) __all__ = [ - "PoseTrackerServiceBase", - "PoseTrackerServiceStub", - "GetPosesRequest", - "GetPosesResponse", + 'PoseTrackerServiceBase', + 'PoseTrackerServiceStub', + 'GetPosesRequest', + 'GetPosesResponse', ] diff --git a/src/viam/proto/component/powersensor/__init__.py b/src/viam/proto/component/powersensor/__init__.py index 60b2e01e1..f5927d2ad 100644 --- a/src/viam/proto/component/powersensor/__init__.py +++ b/src/viam/proto/component/powersensor/__init__.py @@ -1,24 +1,27 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.component.powersensor.v1.powersensor_grpc import PowerSensorServiceBase, PowerSensorServiceStub +''' +from ....gen.component.powersensor.v1.powersensor_grpc import ( + PowerSensorServiceBase, + PowerSensorServiceStub +) from ....gen.component.powersensor.v1.powersensor_pb2 import ( GetCurrentRequest, GetCurrentResponse, GetPowerRequest, GetPowerResponse, GetVoltageRequest, - GetVoltageResponse, + GetVoltageResponse ) __all__ = [ - "PowerSensorServiceBase", - "PowerSensorServiceStub", - "GetCurrentRequest", - "GetCurrentResponse", - "GetPowerRequest", - "GetPowerResponse", - "GetVoltageRequest", - "GetVoltageResponse", + 'PowerSensorServiceBase', + 'PowerSensorServiceStub', + 'GetCurrentRequest', + 'GetCurrentResponse', + 'GetPowerRequest', + 'GetPowerResponse', + 'GetVoltageRequest', + 'GetVoltageResponse', ] diff --git a/src/viam/proto/component/sensor/__init__.py b/src/viam/proto/component/sensor/__init__.py index 8c5a6172f..6e608e6cf 100644 --- a/src/viam/proto/component/sensor/__init__.py +++ b/src/viam/proto/component/sensor/__init__.py @@ -1,10 +1,13 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.component.sensor.v1.sensor_grpc import SensorServiceBase, SensorServiceStub +''' +from ....gen.component.sensor.v1.sensor_grpc import ( + SensorServiceBase, + SensorServiceStub +) __all__ = [ - "SensorServiceBase", - "SensorServiceStub", + 'SensorServiceBase', + 'SensorServiceStub', ] diff --git a/src/viam/proto/component/servo/__init__.py b/src/viam/proto/component/servo/__init__.py index d7836b15a..baf278006 100644 --- a/src/viam/proto/component/servo/__init__.py +++ b/src/viam/proto/component/servo/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.component.servo.v1.servo_grpc import ServoServiceBase, ServoServiceStub +''' +from ....gen.component.servo.v1.servo_grpc import ( + ServoServiceBase, + ServoServiceStub +) from ....gen.component.servo.v1.servo_pb2 import ( GetPositionRequest, GetPositionResponse, @@ -12,19 +15,19 @@ MoveResponse, Status, StopRequest, - StopResponse, + StopResponse ) __all__ = [ - "ServoServiceBase", - "ServoServiceStub", - "GetPositionRequest", - "GetPositionResponse", - "IsMovingRequest", - "IsMovingResponse", - "MoveRequest", - "MoveResponse", - "Status", - "StopRequest", - "StopResponse", + 'ServoServiceBase', + 'ServoServiceStub', + 'GetPositionRequest', + 'GetPositionResponse', + 'IsMovingRequest', + 'IsMovingResponse', + 'MoveRequest', + 'MoveResponse', + 'Status', + 'StopRequest', + 'StopResponse', ] diff --git a/src/viam/proto/component/testecho/__init__.py b/src/viam/proto/component/testecho/__init__.py index eca4f956f..594fdf368 100644 --- a/src/viam/proto/component/testecho/__init__.py +++ b/src/viam/proto/component/testecho/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.component.testecho.v1.testecho_grpc import TestEchoServiceBase, TestEchoServiceStub +''' +from ....gen.component.testecho.v1.testecho_grpc import ( + TestEchoServiceBase, + TestEchoServiceStub +) from ....gen.component.testecho.v1.testecho_pb2 import ( EchoBiDiRequest, EchoBiDiResponse, @@ -11,18 +14,18 @@ EchoRequest, EchoResponse, StopRequest, - StopResponse, + StopResponse ) __all__ = [ - "TestEchoServiceBase", - "TestEchoServiceStub", - "EchoBiDiRequest", - "EchoBiDiResponse", - "EchoMultipleRequest", - "EchoMultipleResponse", - "EchoRequest", - "EchoResponse", - "StopRequest", - "StopResponse", + 'TestEchoServiceBase', + 'TestEchoServiceStub', + 'EchoBiDiRequest', + 'EchoBiDiResponse', + 'EchoMultipleRequest', + 'EchoMultipleResponse', + 'EchoRequest', + 'EchoResponse', + 'StopRequest', + 'StopResponse', ] diff --git a/src/viam/proto/module/__init__.py b/src/viam/proto/module/__init__.py index 0a1e7372e..5a21dd40e 100644 --- a/src/viam/proto/module/__init__.py +++ b/src/viam/proto/module/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ...gen.module.v1.module_grpc import ModuleServiceBase, ModuleServiceStub +''' +from ...gen.module.v1.module_grpc import ( + ModuleServiceBase, + ModuleServiceStub +) from ...gen.module.v1.module_pb2 import ( AddResourceRequest, AddResourceResponse, @@ -15,22 +18,22 @@ RemoveResourceRequest, RemoveResourceResponse, ValidateConfigRequest, - ValidateConfigResponse, + ValidateConfigResponse ) __all__ = [ - "ModuleServiceBase", - "ModuleServiceStub", - "AddResourceRequest", - "AddResourceResponse", - "HandlerDefinition", - "HandlerMap", - "ReadyRequest", - "ReadyResponse", - "ReconfigureResourceRequest", - "ReconfigureResourceResponse", - "RemoveResourceRequest", - "RemoveResourceResponse", - "ValidateConfigRequest", - "ValidateConfigResponse", + 'ModuleServiceBase', + 'ModuleServiceStub', + 'AddResourceRequest', + 'AddResourceResponse', + 'HandlerDefinition', + 'HandlerMap', + 'ReadyRequest', + 'ReadyResponse', + 'ReconfigureResourceRequest', + 'ReconfigureResourceResponse', + 'RemoveResourceRequest', + 'RemoveResourceResponse', + 'ValidateConfigRequest', + 'ValidateConfigResponse', ] diff --git a/src/viam/proto/provisioning/__init__.py b/src/viam/proto/provisioning/__init__.py index d2a7ba0e5..ce58f8648 100644 --- a/src/viam/proto/provisioning/__init__.py +++ b/src/viam/proto/provisioning/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ...gen.provisioning.v1.provisioning_grpc import ProvisioningServiceBase, ProvisioningServiceStub +''' +from ...gen.provisioning.v1.provisioning_grpc import ( + ProvisioningServiceBase, + ProvisioningServiceStub +) from ...gen.provisioning.v1.provisioning_pb2 import ( CloudConfig, GetNetworkListRequest, @@ -14,21 +17,21 @@ SetNetworkCredentialsRequest, SetNetworkCredentialsResponse, SetSmartMachineCredentialsRequest, - SetSmartMachineCredentialsResponse, + SetSmartMachineCredentialsResponse ) __all__ = [ - "ProvisioningServiceBase", - "ProvisioningServiceStub", - "CloudConfig", - "GetNetworkListRequest", - "GetNetworkListResponse", - "GetSmartMachineStatusRequest", - "GetSmartMachineStatusResponse", - "NetworkInfo", - "ProvisioningInfo", - "SetNetworkCredentialsRequest", - "SetNetworkCredentialsResponse", - "SetSmartMachineCredentialsRequest", - "SetSmartMachineCredentialsResponse", + 'ProvisioningServiceBase', + 'ProvisioningServiceStub', + 'CloudConfig', + 'GetNetworkListRequest', + 'GetNetworkListResponse', + 'GetSmartMachineStatusRequest', + 'GetSmartMachineStatusResponse', + 'NetworkInfo', + 'ProvisioningInfo', + 'SetNetworkCredentialsRequest', + 'SetNetworkCredentialsResponse', + 'SetSmartMachineCredentialsRequest', + 'SetSmartMachineCredentialsResponse', ] diff --git a/src/viam/proto/robot/__init__.py b/src/viam/proto/robot/__init__.py index 827372f62..4a8bbefc7 100644 --- a/src/viam/proto/robot/__init__.py +++ b/src/viam/proto/robot/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ...gen.robot.v1.robot_grpc import RobotServiceBase, RobotServiceStub +''' +from ...gen.robot.v1.robot_grpc import ( + RobotServiceBase, + RobotServiceStub +) from ...gen.robot.v1.robot_pb2 import ( BlockForOperationRequest, BlockForOperationResponse, @@ -33,6 +36,8 @@ ResourceRPCSubtype, ResourceRPCSubtypesRequest, ResourceRPCSubtypesResponse, + RestartModuleRequest, + RestartModuleResponse, SendSessionHeartbeatRequest, SendSessionHeartbeatResponse, Session, @@ -47,54 +52,56 @@ TransformPCDRequest, TransformPCDResponse, TransformPoseRequest, - TransformPoseResponse, + TransformPoseResponse ) __all__ = [ - "RobotServiceBase", - "RobotServiceStub", - "BlockForOperationRequest", - "BlockForOperationResponse", - "CancelOperationRequest", - "CancelOperationResponse", - "DiscoverComponentsRequest", - "DiscoverComponentsResponse", - "Discovery", - "DiscoveryQuery", - "FrameSystemConfig", - "FrameSystemConfigRequest", - "FrameSystemConfigResponse", - "GetCloudMetadataRequest", - "GetCloudMetadataResponse", - "GetOperationsRequest", - "GetOperationsResponse", - "GetSessionsRequest", - "GetSessionsResponse", - "GetStatusRequest", - "GetStatusResponse", - "LogRequest", - "LogResponse", - "Operation", - "PeerConnectionInfo", - "PeerConnectionType", - "ResourceNamesRequest", - "ResourceNamesResponse", - "ResourceRPCSubtype", - "ResourceRPCSubtypesRequest", - "ResourceRPCSubtypesResponse", - "SendSessionHeartbeatRequest", - "SendSessionHeartbeatResponse", - "Session", - "StartSessionRequest", - "StartSessionResponse", - "Status", - "StopAllRequest", - "StopAllResponse", - "StopExtraParameters", - "StreamStatusRequest", - "StreamStatusResponse", - "TransformPCDRequest", - "TransformPCDResponse", - "TransformPoseRequest", - "TransformPoseResponse", + 'RobotServiceBase', + 'RobotServiceStub', + 'BlockForOperationRequest', + 'BlockForOperationResponse', + 'CancelOperationRequest', + 'CancelOperationResponse', + 'DiscoverComponentsRequest', + 'DiscoverComponentsResponse', + 'Discovery', + 'DiscoveryQuery', + 'FrameSystemConfig', + 'FrameSystemConfigRequest', + 'FrameSystemConfigResponse', + 'GetCloudMetadataRequest', + 'GetCloudMetadataResponse', + 'GetOperationsRequest', + 'GetOperationsResponse', + 'GetSessionsRequest', + 'GetSessionsResponse', + 'GetStatusRequest', + 'GetStatusResponse', + 'LogRequest', + 'LogResponse', + 'Operation', + 'PeerConnectionInfo', + 'PeerConnectionType', + 'ResourceNamesRequest', + 'ResourceNamesResponse', + 'ResourceRPCSubtype', + 'ResourceRPCSubtypesRequest', + 'ResourceRPCSubtypesResponse', + 'RestartModuleRequest', + 'RestartModuleResponse', + 'SendSessionHeartbeatRequest', + 'SendSessionHeartbeatResponse', + 'Session', + 'StartSessionRequest', + 'StartSessionResponse', + 'Status', + 'StopAllRequest', + 'StopAllResponse', + 'StopExtraParameters', + 'StreamStatusRequest', + 'StreamStatusResponse', + 'TransformPCDRequest', + 'TransformPCDResponse', + 'TransformPoseRequest', + 'TransformPoseResponse', ] diff --git a/src/viam/proto/rpc/auth.py b/src/viam/proto/rpc/auth.py index 23f3d3562..36d6a9257 100644 --- a/src/viam/proto/rpc/auth.py +++ b/src/viam/proto/rpc/auth.py @@ -1,24 +1,29 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ...gen.proto.rpc.v1.auth_grpc import AuthServiceBase, AuthServiceStub, ExternalAuthServiceBase, ExternalAuthServiceStub +''' +from ...gen.proto.rpc.v1.auth_grpc import ( + AuthServiceBase, + AuthServiceStub, + ExternalAuthServiceBase, + ExternalAuthServiceStub +) from ...gen.proto.rpc.v1.auth_pb2 import ( AuthenticateRequest, AuthenticateResponse, AuthenticateToRequest, AuthenticateToResponse, - Credentials, + Credentials ) __all__ = [ - "AuthServiceBase", - "AuthServiceStub", - "ExternalAuthServiceBase", - "ExternalAuthServiceStub", - "AuthenticateRequest", - "AuthenticateResponse", - "AuthenticateToRequest", - "AuthenticateToResponse", - "Credentials", + 'AuthServiceBase', + 'AuthServiceStub', + 'ExternalAuthServiceBase', + 'ExternalAuthServiceStub', + 'AuthenticateRequest', + 'AuthenticateResponse', + 'AuthenticateToRequest', + 'AuthenticateToResponse', + 'Credentials', ] diff --git a/src/viam/proto/rpc/examples/echo/__init__.py b/src/viam/proto/rpc/examples/echo/__init__.py index a74bf6539..7e350742b 100644 --- a/src/viam/proto/rpc/examples/echo/__init__.py +++ b/src/viam/proto/rpc/examples/echo/__init__.py @@ -1,24 +1,27 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from .....gen.proto.rpc.examples.echo.v1.echo_grpc import EchoServiceBase, EchoServiceStub +''' +from .....gen.proto.rpc.examples.echo.v1.echo_grpc import ( + EchoServiceBase, + EchoServiceStub +) from .....gen.proto.rpc.examples.echo.v1.echo_pb2 import ( EchoBiDiRequest, EchoBiDiResponse, EchoMultipleRequest, EchoMultipleResponse, EchoRequest, - EchoResponse, + EchoResponse ) __all__ = [ - "EchoServiceBase", - "EchoServiceStub", - "EchoBiDiRequest", - "EchoBiDiResponse", - "EchoMultipleRequest", - "EchoMultipleResponse", - "EchoRequest", - "EchoResponse", + 'EchoServiceBase', + 'EchoServiceStub', + 'EchoBiDiRequest', + 'EchoBiDiResponse', + 'EchoMultipleRequest', + 'EchoMultipleResponse', + 'EchoRequest', + 'EchoResponse', ] diff --git a/src/viam/proto/rpc/examples/echoresource/__init__.py b/src/viam/proto/rpc/examples/echoresource/__init__.py index 771db9fe9..aafd09bc6 100644 --- a/src/viam/proto/rpc/examples/echoresource/__init__.py +++ b/src/viam/proto/rpc/examples/echoresource/__init__.py @@ -1,24 +1,27 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from .....gen.proto.rpc.examples.echoresource.v1.echoresource_grpc import EchoResourceServiceBase, EchoResourceServiceStub +''' +from .....gen.proto.rpc.examples.echoresource.v1.echoresource_grpc import ( + EchoResourceServiceBase, + EchoResourceServiceStub +) from .....gen.proto.rpc.examples.echoresource.v1.echoresource_pb2 import ( EchoResourceBiDiRequest, EchoResourceBiDiResponse, EchoResourceMultipleRequest, EchoResourceMultipleResponse, EchoResourceRequest, - EchoResourceResponse, + EchoResourceResponse ) __all__ = [ - "EchoResourceServiceBase", - "EchoResourceServiceStub", - "EchoResourceBiDiRequest", - "EchoResourceBiDiResponse", - "EchoResourceMultipleRequest", - "EchoResourceMultipleResponse", - "EchoResourceRequest", - "EchoResourceResponse", + 'EchoResourceServiceBase', + 'EchoResourceServiceStub', + 'EchoResourceBiDiRequest', + 'EchoResourceBiDiResponse', + 'EchoResourceMultipleRequest', + 'EchoResourceMultipleResponse', + 'EchoResourceRequest', + 'EchoResourceResponse', ] diff --git a/src/viam/proto/rpc/examples/fileupload/__init__.py b/src/viam/proto/rpc/examples/fileupload/__init__.py index a1a2203e4..ded61b437 100644 --- a/src/viam/proto/rpc/examples/fileupload/__init__.py +++ b/src/viam/proto/rpc/examples/fileupload/__init__.py @@ -1,13 +1,19 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from .....gen.proto.rpc.examples.fileupload.v1.fileupload_grpc import FileUploadServiceBase, FileUploadServiceStub -from .....gen.proto.rpc.examples.fileupload.v1.fileupload_pb2 import UploadFileRequest, UploadFileResponse +''' +from .....gen.proto.rpc.examples.fileupload.v1.fileupload_grpc import ( + FileUploadServiceBase, + FileUploadServiceStub +) +from .....gen.proto.rpc.examples.fileupload.v1.fileupload_pb2 import ( + UploadFileRequest, + UploadFileResponse +) __all__ = [ - "FileUploadServiceBase", - "FileUploadServiceStub", - "UploadFileRequest", - "UploadFileResponse", + 'FileUploadServiceBase', + 'FileUploadServiceStub', + 'UploadFileRequest', + 'UploadFileResponse', ] diff --git a/src/viam/proto/rpc/webrtc/grpc.py b/src/viam/proto/rpc/webrtc/grpc.py index 02d27d2e0..9c345ddf9 100644 --- a/src/viam/proto/rpc/webrtc/grpc.py +++ b/src/viam/proto/rpc/webrtc/grpc.py @@ -1,7 +1,7 @@ -""" +''' @generated by Viam. Do not edit manually! -""" +''' from ....gen.proto.rpc.webrtc.v1.grpc_pb2 import ( Metadata, PacketMessage, @@ -13,22 +13,25 @@ ResponseMessage, ResponseTrailers, Stream, - Strings, + Strings +) +from ....gen.proto.rpc.webrtc.v1.signaling_grpc import ( + SignalingServiceBase, + SignalingServiceStub ) -from ....gen.proto.rpc.webrtc.v1.signaling_grpc import SignalingServiceBase, SignalingServiceStub __all__ = [ - "Metadata", - "PacketMessage", - "Request", - "RequestHeaders", - "RequestMessage", - "Response", - "ResponseHeaders", - "ResponseMessage", - "ResponseTrailers", - "Stream", - "Strings", - "SignalingServiceBase", - "SignalingServiceStub", + 'Metadata', + 'PacketMessage', + 'Request', + 'RequestHeaders', + 'RequestMessage', + 'Response', + 'ResponseHeaders', + 'ResponseMessage', + 'ResponseTrailers', + 'Stream', + 'Strings', + 'SignalingServiceBase', + 'SignalingServiceStub', ] diff --git a/src/viam/proto/rpc/webrtc/signaling.py b/src/viam/proto/rpc/webrtc/signaling.py index 11ce2fa83..af72881b8 100644 --- a/src/viam/proto/rpc/webrtc/signaling.py +++ b/src/viam/proto/rpc/webrtc/signaling.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.proto.rpc.webrtc.v1.signaling_grpc import SignalingServiceBase, SignalingServiceStub +''' +from ....gen.proto.rpc.webrtc.v1.signaling_grpc import ( + SignalingServiceBase, + SignalingServiceStub +) from ....gen.proto.rpc.webrtc.v1.signaling_pb2 import ( AnswerRequest, AnswerRequestDoneStage, @@ -24,31 +27,31 @@ ICEServer, OptionalWebRTCConfigRequest, OptionalWebRTCConfigResponse, - WebRTCConfig, + WebRTCConfig ) __all__ = [ - "SignalingServiceBase", - "SignalingServiceStub", - "AnswerRequest", - "AnswerRequestDoneStage", - "AnswerRequestErrorStage", - "AnswerRequestInitStage", - "AnswerRequestUpdateStage", - "AnswerResponse", - "AnswerResponseDoneStage", - "AnswerResponseErrorStage", - "AnswerResponseInitStage", - "AnswerResponseUpdateStage", - "CallRequest", - "CallResponse", - "CallResponseInitStage", - "CallResponseUpdateStage", - "CallUpdateRequest", - "CallUpdateResponse", - "ICECandidate", - "ICEServer", - "OptionalWebRTCConfigRequest", - "OptionalWebRTCConfigResponse", - "WebRTCConfig", + 'SignalingServiceBase', + 'SignalingServiceStub', + 'AnswerRequest', + 'AnswerRequestDoneStage', + 'AnswerRequestErrorStage', + 'AnswerRequestInitStage', + 'AnswerRequestUpdateStage', + 'AnswerResponse', + 'AnswerResponseDoneStage', + 'AnswerResponseErrorStage', + 'AnswerResponseInitStage', + 'AnswerResponseUpdateStage', + 'CallRequest', + 'CallResponse', + 'CallResponseInitStage', + 'CallResponseUpdateStage', + 'CallUpdateRequest', + 'CallUpdateResponse', + 'ICECandidate', + 'ICEServer', + 'OptionalWebRTCConfigRequest', + 'OptionalWebRTCConfigResponse', + 'WebRTCConfig', ] diff --git a/src/viam/proto/service/datamanager/__init__.py b/src/viam/proto/service/datamanager/__init__.py index f26e297d1..e21ab8892 100644 --- a/src/viam/proto/service/datamanager/__init__.py +++ b/src/viam/proto/service/datamanager/__init__.py @@ -1,13 +1,19 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.service.datamanager.v1.data_manager_grpc import DataManagerServiceBase, DataManagerServiceStub -from ....gen.service.datamanager.v1.data_manager_pb2 import SyncRequest, SyncResponse +''' +from ....gen.service.datamanager.v1.data_manager_grpc import ( + DataManagerServiceBase, + DataManagerServiceStub +) +from ....gen.service.datamanager.v1.data_manager_pb2 import ( + SyncRequest, + SyncResponse +) __all__ = [ - "DataManagerServiceBase", - "DataManagerServiceStub", - "SyncRequest", - "SyncResponse", + 'DataManagerServiceBase', + 'DataManagerServiceStub', + 'SyncRequest', + 'SyncResponse', ] diff --git a/src/viam/proto/service/generic/__init__.py b/src/viam/proto/service/generic/__init__.py index ab4e26098..27fd5f30e 100644 --- a/src/viam/proto/service/generic/__init__.py +++ b/src/viam/proto/service/generic/__init__.py @@ -1,10 +1,13 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.service.generic.v1.generic_grpc import GenericServiceBase, GenericServiceStub +''' +from ....gen.service.generic.v1.generic_grpc import ( + GenericServiceBase, + GenericServiceStub +) __all__ = [ - "GenericServiceBase", - "GenericServiceStub", + 'GenericServiceBase', + 'GenericServiceStub', ] diff --git a/src/viam/proto/service/mlmodel/__init__.py b/src/viam/proto/service/mlmodel/__init__.py index 42667e66c..1d6e56642 100644 --- a/src/viam/proto/service/mlmodel/__init__.py +++ b/src/viam/proto/service/mlmodel/__init__.py @@ -1,21 +1,24 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.service.mlmodel.v1.mlmodel_grpc import MLModelServiceBase, MLModelServiceStub +''' +from ....gen.service.mlmodel.v1.mlmodel_grpc import ( + MLModelServiceBase, + MLModelServiceStub +) from ....gen.service.mlmodel.v1.mlmodel_pb2 import ( File, FlatTensor, FlatTensorDataDouble, FlatTensorDataFloat, - FlatTensorDataInt8, FlatTensorDataInt16, FlatTensorDataInt32, FlatTensorDataInt64, - FlatTensorDataUInt8, + FlatTensorDataInt8, FlatTensorDataUInt16, FlatTensorDataUInt32, FlatTensorDataUInt64, + FlatTensorDataUInt8, FlatTensors, InferRequest, InferResponse, @@ -23,30 +26,30 @@ Metadata, MetadataRequest, MetadataResponse, - TensorInfo, + TensorInfo ) __all__ = [ - "MLModelServiceBase", - "MLModelServiceStub", - "File", - "FlatTensor", - "FlatTensorDataDouble", - "FlatTensorDataFloat", - "FlatTensorDataInt16", - "FlatTensorDataInt32", - "FlatTensorDataInt64", - "FlatTensorDataInt8", - "FlatTensorDataUInt16", - "FlatTensorDataUInt32", - "FlatTensorDataUInt64", - "FlatTensorDataUInt8", - "FlatTensors", - "InferRequest", - "InferResponse", - "LabelType", - "Metadata", - "MetadataRequest", - "MetadataResponse", - "TensorInfo", + 'MLModelServiceBase', + 'MLModelServiceStub', + 'File', + 'FlatTensor', + 'FlatTensorDataDouble', + 'FlatTensorDataFloat', + 'FlatTensorDataInt16', + 'FlatTensorDataInt32', + 'FlatTensorDataInt64', + 'FlatTensorDataInt8', + 'FlatTensorDataUInt16', + 'FlatTensorDataUInt32', + 'FlatTensorDataUInt64', + 'FlatTensorDataUInt8', + 'FlatTensors', + 'InferRequest', + 'InferResponse', + 'LabelType', + 'Metadata', + 'MetadataRequest', + 'MetadataResponse', + 'TensorInfo', ] diff --git a/src/viam/proto/service/motion/__init__.py b/src/viam/proto/service/motion/__init__.py index 5d3cf61dc..74bcecf99 100644 --- a/src/viam/proto/service/motion/__init__.py +++ b/src/viam/proto/service/motion/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.service.motion.v1.motion_grpc import MotionServiceBase, MotionServiceStub +''' +from ....gen.service.motion.v1.motion_grpc import ( + MotionServiceBase, + MotionServiceStub +) from ....gen.service.motion.v1.motion_pb2 import ( CollisionSpecification, ComponentState, @@ -30,37 +33,37 @@ PlanStep, PlanWithStatus, StopPlanRequest, - StopPlanResponse, + StopPlanResponse ) __all__ = [ - "MotionServiceBase", - "MotionServiceStub", - "CollisionSpecification", - "ComponentState", - "Constraints", - "GetPlanRequest", - "GetPlanResponse", - "GetPoseRequest", - "GetPoseResponse", - "LinearConstraint", - "ListPlanStatusesRequest", - "ListPlanStatusesResponse", - "MotionConfiguration", - "MoveOnGlobeRequest", - "MoveOnGlobeResponse", - "MoveOnMapRequest", - "MoveOnMapResponse", - "MoveRequest", - "MoveResponse", - "ObstacleDetector", - "OrientationConstraint", - "Plan", - "PlanState", - "PlanStatus", - "PlanStatusWithID", - "PlanStep", - "PlanWithStatus", - "StopPlanRequest", - "StopPlanResponse", + 'MotionServiceBase', + 'MotionServiceStub', + 'CollisionSpecification', + 'ComponentState', + 'Constraints', + 'GetPlanRequest', + 'GetPlanResponse', + 'GetPoseRequest', + 'GetPoseResponse', + 'LinearConstraint', + 'ListPlanStatusesRequest', + 'ListPlanStatusesResponse', + 'MotionConfiguration', + 'MoveOnGlobeRequest', + 'MoveOnGlobeResponse', + 'MoveOnMapRequest', + 'MoveOnMapResponse', + 'MoveRequest', + 'MoveResponse', + 'ObstacleDetector', + 'OrientationConstraint', + 'Plan', + 'PlanState', + 'PlanStatus', + 'PlanStatusWithID', + 'PlanStep', + 'PlanWithStatus', + 'StopPlanRequest', + 'StopPlanResponse', ] diff --git a/src/viam/proto/service/navigation/__init__.py b/src/viam/proto/service/navigation/__init__.py index 835a30eb3..1ba78277b 100644 --- a/src/viam/proto/service/navigation/__init__.py +++ b/src/viam/proto/service/navigation/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.service.navigation.v1.navigation_grpc import NavigationServiceBase, NavigationServiceStub +''' +from ....gen.service.navigation.v1.navigation_grpc import ( + NavigationServiceBase, + NavigationServiceStub +) from ....gen.service.navigation.v1.navigation_pb2 import ( AddWaypointRequest, AddWaypointResponse, @@ -25,32 +28,32 @@ RemoveWaypointResponse, SetModeRequest, SetModeResponse, - Waypoint, + Waypoint ) __all__ = [ - "NavigationServiceBase", - "NavigationServiceStub", - "AddWaypointRequest", - "AddWaypointResponse", - "GetLocationRequest", - "GetLocationResponse", - "GetModeRequest", - "GetModeResponse", - "GetObstaclesRequest", - "GetObstaclesResponse", - "GetPathsRequest", - "GetPathsResponse", - "GetPropertiesRequest", - "GetPropertiesResponse", - "GetWaypointsRequest", - "GetWaypointsResponse", - "MapType", - "Mode", - "Path", - "RemoveWaypointRequest", - "RemoveWaypointResponse", - "SetModeRequest", - "SetModeResponse", - "Waypoint", + 'NavigationServiceBase', + 'NavigationServiceStub', + 'AddWaypointRequest', + 'AddWaypointResponse', + 'GetLocationRequest', + 'GetLocationResponse', + 'GetModeRequest', + 'GetModeResponse', + 'GetObstaclesRequest', + 'GetObstaclesResponse', + 'GetPathsRequest', + 'GetPathsResponse', + 'GetPropertiesRequest', + 'GetPropertiesResponse', + 'GetWaypointsRequest', + 'GetWaypointsResponse', + 'MapType', + 'Mode', + 'Path', + 'RemoveWaypointRequest', + 'RemoveWaypointResponse', + 'SetModeRequest', + 'SetModeResponse', + 'Waypoint', ] diff --git a/src/viam/proto/service/sensors/__init__.py b/src/viam/proto/service/sensors/__init__.py index 7a8d02d6d..639d2e066 100644 --- a/src/viam/proto/service/sensors/__init__.py +++ b/src/viam/proto/service/sensors/__init__.py @@ -1,16 +1,25 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.service.sensors.v1.sensors_grpc import SensorsServiceBase, SensorsServiceStub -from ....gen.service.sensors.v1.sensors_pb2 import GetReadingsRequest, GetReadingsResponse, GetSensorsRequest, GetSensorsResponse, Readings +''' +from ....gen.service.sensors.v1.sensors_grpc import ( + SensorsServiceBase, + SensorsServiceStub +) +from ....gen.service.sensors.v1.sensors_pb2 import ( + GetReadingsRequest, + GetReadingsResponse, + GetSensorsRequest, + GetSensorsResponse, + Readings +) __all__ = [ - "SensorsServiceBase", - "SensorsServiceStub", - "GetReadingsRequest", - "GetReadingsResponse", - "GetSensorsRequest", - "GetSensorsResponse", - "Readings", + 'SensorsServiceBase', + 'SensorsServiceStub', + 'GetReadingsRequest', + 'GetReadingsResponse', + 'GetSensorsRequest', + 'GetSensorsResponse', + 'Readings', ] diff --git a/src/viam/proto/service/shell/__init__.py b/src/viam/proto/service/shell/__init__.py index 1383ac938..9b5c3ff2b 100644 --- a/src/viam/proto/service/shell/__init__.py +++ b/src/viam/proto/service/shell/__init__.py @@ -1,13 +1,19 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.service.shell.v1.shell_grpc import ShellServiceBase, ShellServiceStub -from ....gen.service.shell.v1.shell_pb2 import ShellRequest, ShellResponse +''' +from ....gen.service.shell.v1.shell_grpc import ( + ShellServiceBase, + ShellServiceStub +) +from ....gen.service.shell.v1.shell_pb2 import ( + ShellRequest, + ShellResponse +) __all__ = [ - "ShellServiceBase", - "ShellServiceStub", - "ShellRequest", - "ShellResponse", + 'ShellServiceBase', + 'ShellServiceStub', + 'ShellRequest', + 'ShellResponse', ] diff --git a/src/viam/proto/service/slam/__init__.py b/src/viam/proto/service/slam/__init__.py index 31dab8777..c4ae1eba2 100644 --- a/src/viam/proto/service/slam/__init__.py +++ b/src/viam/proto/service/slam/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.service.slam.v1.slam_grpc import SLAMServiceBase, SLAMServiceStub +''' +from ....gen.service.slam.v1.slam_grpc import ( + SLAMServiceBase, + SLAMServiceStub +) from ....gen.service.slam.v1.slam_pb2 import ( GetInternalStateRequest, GetInternalStateResponse, @@ -14,21 +17,21 @@ GetPropertiesResponse, MappingMode, SensorInfo, - SensorType, + SensorType ) __all__ = [ - "SLAMServiceBase", - "SLAMServiceStub", - "GetInternalStateRequest", - "GetInternalStateResponse", - "GetPointCloudMapRequest", - "GetPointCloudMapResponse", - "GetPositionRequest", - "GetPositionResponse", - "GetPropertiesRequest", - "GetPropertiesResponse", - "MappingMode", - "SensorInfo", - "SensorType", + 'SLAMServiceBase', + 'SLAMServiceStub', + 'GetInternalStateRequest', + 'GetInternalStateResponse', + 'GetPointCloudMapRequest', + 'GetPointCloudMapResponse', + 'GetPositionRequest', + 'GetPositionResponse', + 'GetPropertiesRequest', + 'GetPropertiesResponse', + 'MappingMode', + 'SensorInfo', + 'SensorType', ] diff --git a/src/viam/proto/service/vision/__init__.py b/src/viam/proto/service/vision/__init__.py index 16c27da88..51c5aa286 100644 --- a/src/viam/proto/service/vision/__init__.py +++ b/src/viam/proto/service/vision/__init__.py @@ -1,8 +1,11 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ....gen.service.vision.v1.vision_grpc import VisionServiceBase, VisionServiceStub +''' +from ....gen.service.vision.v1.vision_grpc import ( + VisionServiceBase, + VisionServiceStub +) from ....gen.service.vision.v1.vision_pb2 import ( Classification, Detection, @@ -15,22 +18,22 @@ GetDetectionsRequest, GetDetectionsResponse, GetObjectPointCloudsRequest, - GetObjectPointCloudsResponse, + GetObjectPointCloudsResponse ) __all__ = [ - "VisionServiceBase", - "VisionServiceStub", - "Classification", - "Detection", - "GetClassificationsFromCameraRequest", - "GetClassificationsFromCameraResponse", - "GetClassificationsRequest", - "GetClassificationsResponse", - "GetDetectionsFromCameraRequest", - "GetDetectionsFromCameraResponse", - "GetDetectionsRequest", - "GetDetectionsResponse", - "GetObjectPointCloudsRequest", - "GetObjectPointCloudsResponse", + 'VisionServiceBase', + 'VisionServiceStub', + 'Classification', + 'Detection', + 'GetClassificationsFromCameraRequest', + 'GetClassificationsFromCameraResponse', + 'GetClassificationsRequest', + 'GetClassificationsResponse', + 'GetDetectionsFromCameraRequest', + 'GetDetectionsFromCameraResponse', + 'GetDetectionsRequest', + 'GetDetectionsResponse', + 'GetObjectPointCloudsRequest', + 'GetObjectPointCloudsResponse', ] diff --git a/src/viam/proto/stream/__init__.py b/src/viam/proto/stream/__init__.py index f9ae73b86..bf88dfc9e 100644 --- a/src/viam/proto/stream/__init__.py +++ b/src/viam/proto/stream/__init__.py @@ -1,24 +1,27 @@ -""" +''' @generated by Viam. Do not edit manually! -""" -from ...gen.stream.v1.stream_grpc import StreamServiceBase, StreamServiceStub +''' +from ...gen.stream.v1.stream_grpc import ( + StreamServiceBase, + StreamServiceStub +) from ...gen.stream.v1.stream_pb2 import ( AddStreamRequest, AddStreamResponse, ListStreamsRequest, ListStreamsResponse, RemoveStreamRequest, - RemoveStreamResponse, + RemoveStreamResponse ) __all__ = [ - "StreamServiceBase", - "StreamServiceStub", - "AddStreamRequest", - "AddStreamResponse", - "ListStreamsRequest", - "ListStreamsResponse", - "RemoveStreamRequest", - "RemoveStreamResponse", + 'StreamServiceBase', + 'StreamServiceStub', + 'AddStreamRequest', + 'AddStreamResponse', + 'ListStreamsRequest', + 'ListStreamsResponse', + 'RemoveStreamRequest', + 'RemoveStreamResponse', ] diff --git a/src/viam/proto/tagger/__init__.py b/src/viam/proto/tagger/__init__.py index 3484a6ee3..0e7ab86b4 100644 --- a/src/viam/proto/tagger/__init__.py +++ b/src/viam/proto/tagger/__init__.py @@ -1,6 +1,7 @@ -""" +''' @generated by Viam. Do not edit manually! -""" +''' -__all__ = [] +__all__ = [ +] diff --git a/tests/test_board.py b/tests/test_board.py index 880221043..086deb6f0 100644 --- a/tests/test_board.py +++ b/tests/test_board.py @@ -6,7 +6,8 @@ from grpclib import GRPCError from grpclib.testing import ChannelFor -from viam.components.board import BoardClient +from viam.proto.common import AnalogStatus, DigitalInterruptStatus +from viam.components.board import BoardClient, BoardStatus, create_status from viam.components.board.service import BoardRPCService from viam.components.generic.service import GenericRPCService from viam.errors import ResourceNotFoundError @@ -39,7 +40,7 @@ WriteAnalogResponse, ) from viam.resource.manager import ResourceManager -from viam.utils import dict_to_struct, struct_to_dict +from viam.utils import dict_to_struct, struct_to_dict, message_to_struct from . import loose_approx from .mocks.components import GEOMETRIES, MockAnalogReader, MockBoard, MockDigitalInterrupt, MockGPIOPin @@ -112,6 +113,19 @@ async def test_do(self, board: MockBoard): resp = await board.do_command(command) assert resp == {"command": command} + @pytest.mark.asyncio + async def test_status(self, board: MockBoard): + status = await create_status(board) + analogs, digitals = {}, {} + for x in board.analog_readers: + val = await board.analog_readers[x].read() + analogs[x] = AnalogStatus(value=val) + for y in board.digital_interrupts: + val = await board.digital_interrupts[y].value() + digitals[y] = DigitalInterruptStatus(value=val) + assert status.name == MockBoard.get_resource_name(board.name) + assert status.status == message_to_struct(BoardStatus(analogs=analogs, digital_interrupts=digitals)) + @pytest.mark.asyncio async def test_set_power_mode(self, board: MockBoard): pm_mode = PowerMode.POWER_MODE_OFFLINE_DEEP @@ -504,7 +518,7 @@ async def test_stream_ticks(self, board: MockBoard, service: BoardRPCService): tick_stream = await client.stream_ticks(interrupts=[di]) async for tick in tick_stream: - assert tick.pin_name == 'interrupt1' + assert tick.pin_name == "interrupt1" assert tick.high is True assert tick.time == 1000 break From 0783c715ffb04c2b081729588bc65dbaa6ba5371 Mon Sep 17 00:00:00 2001 From: martha-johnston Date: Tue, 23 Apr 2024 17:14:26 -0400 Subject: [PATCH 4/7] fix tests except client get names tests --- examples/server/v1/components.py | 4 +--- src/viam/components/board/__init__.py | 2 +- src/viam/components/board/board.py | 4 +--- src/viam/robot/service.py | 5 +++++ tests/mocks/components.py | 4 +--- tests/mocks/robot.py | 5 +++++ tests/mocks/services.py | 5 +++++ tests/test_board.py | 16 ++++++++-------- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/examples/server/v1/components.py b/examples/server/v1/components.py index 4c9f64339..6b8554f71 100644 --- a/examples/server/v1/components.py +++ b/examples/server/v1/components.py @@ -314,9 +314,7 @@ async def set_power_mode(self, **kwargs): async def write_analog(self, pin: str, value: int, *, timeout: Optional[float] = None, **kwargs): raise NotImplementedError() - async def stream_ticks( - self, interrupts: List[Board.DigitalInterrupt], *, timeout: Optional[float] = None, **kwargs - ) -> TickStream: + async def stream_ticks(self, interrupts: List[Board.DigitalInterrupt], *, timeout: Optional[float] = None, **kwargs) -> TickStream: raise NotImplementedError() async def get_geometries(self, extra: Optional[Dict[str, Any]] = None, **kwargs) -> List[Geometry]: diff --git a/src/viam/components/board/__init__.py b/src/viam/components/board/__init__.py index f46e96581..c8a1fec65 100644 --- a/src/viam/components/board/__init__.py +++ b/src/viam/components/board/__init__.py @@ -26,7 +26,7 @@ async def create_status(component: Board) -> Status: val = await digital_interrupt.value() digital_interrupts[y] = DigitalInterruptStatus(value=val) - s = BoardStatus(analogs=None, digital_interrupts=None) + s = BoardStatus(analogs=analogs, digital_interrupts=digital_interrupts) return Status(name=Board.get_resource_name(component.name), status=message_to_struct(s)) diff --git a/src/viam/components/board/board.py b/src/viam/components/board/board.py index a22b6cfde..71ff2ad0d 100644 --- a/src/viam/components/board/board.py +++ b/src/viam/components/board/board.py @@ -378,9 +378,7 @@ async def write_analog(self, pin: str, value: int, *, timeout: Optional[float] = ... @abc.abstractmethod - async def stream_ticks( - self, interrupts: List[DigitalInterrupt], *, timeout: Optional[float] = None, **kwargs - ) -> TickStream: + async def stream_ticks(self, interrupts: List[DigitalInterrupt], *, timeout: Optional[float] = None, **kwargs) -> TickStream: """ Stream digital interrupt ticks. diff --git a/src/viam/robot/service.py b/src/viam/robot/service.py index 35794476a..6bfbf9779 100644 --- a/src/viam/robot/service.py +++ b/src/viam/robot/service.py @@ -31,6 +31,8 @@ ResourceNamesResponse, ResourceRPCSubtypesRequest, ResourceRPCSubtypesResponse, + RestartModuleRequest, + RestartModuleResponse, RobotServiceBase, SendSessionHeartbeatRequest, SendSessionHeartbeatResponse, @@ -87,6 +89,9 @@ async def _generate_status(self, resource_names: Iterable[ResourceName]) -> List statuses = [s for s in statuses if s.name in resource_names] return statuses + async def RestartModule(self, stream: Stream[RestartModuleRequest, RestartModuleResponse]) -> None: + return None + async def ResourceNames(self, stream: Stream[ResourceNamesRequest, ResourceNamesResponse]) -> None: request = await stream.recv_message() assert request is not None diff --git a/tests/mocks/components.py b/tests/mocks/components.py index d93696f02..f13477b01 100644 --- a/tests/mocks/components.py +++ b/tests/mocks/components.py @@ -365,9 +365,7 @@ async def write_analog(self, pin: str, value: int, *, timeout: Optional[float] = self.analog_write_pin = pin self.analog_write_value = value - async def stream_ticks( - self, interrupts: List[Board.DigitalInterrupt], *, timeout: Optional[float] = None, **kwargs - ): + async def stream_ticks(self, interrupts: List[Board.DigitalInterrupt], *, timeout: Optional[float] = None, **kwargs): async def read() -> AsyncIterator[Tick]: yield Tick(pin_name=interrupts[0].name, high=True, time=1000) diff --git a/tests/mocks/robot.py b/tests/mocks/robot.py index 81e95782a..23cf75b9e 100644 --- a/tests/mocks/robot.py +++ b/tests/mocks/robot.py @@ -27,6 +27,8 @@ ResourceNamesResponse, ResourceRPCSubtypesRequest, ResourceRPCSubtypesResponse, + RestartModuleRequest, + RestartModuleResponse, RobotServiceBase, SendSessionHeartbeatRequest, SendSessionHeartbeatResponse, @@ -51,6 +53,9 @@ def __init__(self): self.heartbeat_count = 0 super().__init__() + async def RestartModule(self, stream: Stream[RestartModuleRequest, RestartModuleResponse]) -> None: + return None + async def StartSession(self, stream: Stream[StartSessionRequest, StartSessionResponse]) -> None: request = await stream.recv_message() assert request is not None diff --git a/tests/mocks/services.py b/tests/mocks/services.py index 94933b999..bff0d57c1 100644 --- a/tests/mocks/services.py +++ b/tests/mocks/services.py @@ -250,6 +250,8 @@ ListTrainingJobsRequest, ListTrainingJobsResponse, MLTrainingServiceBase, + SubmitCustomTrainingJobRequest, + SubmitCustomTrainingJobResponse, SubmitTrainingJobRequest, SubmitTrainingJobResponse, TrainingJobMetadata, @@ -1008,6 +1010,9 @@ async def SubmitTrainingJob(self, stream: Stream[SubmitTrainingJobRequest, Submi self.tags = request.tags await stream.send_message(SubmitTrainingJobResponse(id=self.job_id)) + async def SubmitCustomTrainingJob(self, stream: Stream[SubmitCustomTrainingJobRequest, SubmitCustomTrainingJobResponse]) -> None: + return await super().SubmitCustomTrainingJob(stream) + async def GetTrainingJob(self, stream: Stream[GetTrainingJobRequest, GetTrainingJobResponse]) -> None: request = await stream.recv_message() assert request is not None diff --git a/tests/test_board.py b/tests/test_board.py index 086deb6f0..2271d5c6a 100644 --- a/tests/test_board.py +++ b/tests/test_board.py @@ -116,15 +116,15 @@ async def test_do(self, board: MockBoard): @pytest.mark.asyncio async def test_status(self, board: MockBoard): status = await create_status(board) - analogs, digitals = {}, {} - for x in board.analog_readers: - val = await board.analog_readers[x].read() - analogs[x] = AnalogStatus(value=val) - for y in board.digital_interrupts: - val = await board.digital_interrupts[y].value() - digitals[y] = DigitalInterruptStatus(value=val) + read = await board.analog_readers["reader1"].read() + val = await board.digital_interrupts["interrupt1"].value() assert status.name == MockBoard.get_resource_name(board.name) - assert status.status == message_to_struct(BoardStatus(analogs=analogs, digital_interrupts=digitals)) + assert status.status == message_to_struct( + BoardStatus( + analogs={"reader1": AnalogStatus(value=int(read))}, + digital_interrupts={"interrupt1": DigitalInterruptStatus(value=val)}, + ) + ) @pytest.mark.asyncio async def test_set_power_mode(self, board: MockBoard): From 8aefca3bd0f8624a513637dcc3bf7c9b4fee664f Mon Sep 17 00:00:00 2001 From: martha-johnston Date: Wed, 24 Apr 2024 11:49:55 -0400 Subject: [PATCH 5/7] fix client tests --- .../components/audio_input/audio_input.py | 2 +- src/viam/components/audio_input/client.py | 2 +- src/viam/components/board/__init__.py | 2 +- src/viam/components/board/client.py | 11 +++--- src/viam/gen/app/v1/billing_pb2.py | 36 +++++++++---------- src/viam/gen/app/v1/billing_pb2.pyi | 10 ++++-- src/viam/media/audio.py | 2 +- src/viam/streams.py | 1 - tests/mocks/components.py | 14 ++------ tests/test_board.py | 11 ++++-- 10 files changed, 48 insertions(+), 43 deletions(-) diff --git a/src/viam/components/audio_input/audio_input.py b/src/viam/components/audio_input/audio_input.py index ea13e6fc2..2c61ade0b 100644 --- a/src/viam/components/audio_input/audio_input.py +++ b/src/viam/components/audio_input/audio_input.py @@ -6,10 +6,10 @@ from google.protobuf.duration_pb2 import Duration from typing_extensions import Self -from viam.streams import StreamSource from viam.media.audio import Audio, AudioStream from viam.proto.component.audioinput import PropertiesResponse from viam.resource.types import RESOURCE_NAMESPACE_RDK, RESOURCE_TYPE_COMPONENT, Subtype +from viam.streams import StreamSource from ..component_base import ComponentBase diff --git a/src/viam/components/audio_input/client.py b/src/viam/components/audio_input/client.py index 2609dd62d..2c20d15c7 100644 --- a/src/viam/components/audio_input/client.py +++ b/src/viam/components/audio_input/client.py @@ -2,7 +2,6 @@ from grpclib.client import Channel -from viam.streams import Stream, StreamWithIterator from viam.media.audio import Audio from viam.proto.common import DoCommandRequest, DoCommandResponse, Geometry from viam.proto.component.audioinput import ( @@ -14,6 +13,7 @@ SampleFormat, ) from viam.resource.rpc_client_base import ReconfigurableResourceRPCClientBase +from viam.streams import Stream, StreamWithIterator from viam.utils import ValueTypes, dict_to_struct, get_geometries, struct_to_dict from .audio_input import AudioInput diff --git a/src/viam/components/board/__init__.py b/src/viam/components/board/__init__.py index c8a1fec65..ab539d86b 100644 --- a/src/viam/components/board/__init__.py +++ b/src/viam/components/board/__init__.py @@ -1,7 +1,7 @@ import asyncio -from viam.proto.component.board import Status as BoardStatus from viam.proto.common import AnalogStatus, DigitalInterruptStatus +from viam.proto.component.board import Status as BoardStatus from viam.proto.robot import Status from viam.resource.registry import Registry, ResourceRegistration from viam.utils import message_to_struct diff --git a/src/viam/components/board/client.py b/src/viam/components/board/client.py index da1c8ca9c..af127285e 100644 --- a/src/viam/components/board/client.py +++ b/src/viam/components/board/client.py @@ -2,7 +2,8 @@ from typing import Any, Dict, List, Mapping, Optional from google.protobuf.duration_pb2 import Duration -from grpclib.client import Channel, Stream as ClientStream +from grpclib.client import Channel +from grpclib.client import Stream as ClientStream from viam.logging import getLogger from viam.proto.common import DoCommandRequest, DoCommandResponse, Geometry @@ -27,8 +28,8 @@ StreamTicksResponse, WriteAnalogRequest, ) -from viam.streams import StreamWithIterator from viam.resource.rpc_client_base import ReconfigurableResourceRPCClientBase +from viam.streams import StreamWithIterator from viam.utils import ValueTypes, dict_to_struct, get_geometries, struct_to_dict from .board import Board, TickStream @@ -166,14 +167,16 @@ class BoardClient(Board, ReconfigurableResourceRPCClientBase): def __init__(self, name: str, channel: Channel): self.channel = channel self.client = BoardServiceStub(channel) - self._analog_reader_names: Optional[List[str]] = None - self._digital_interrupt_names: Optional[List[str]] = None + self._analog_reader_names: List[str] = [] + self._digital_interrupt_names: List[str] = [] super().__init__(name) async def analog_reader_by_name(self, name: str) -> Board.AnalogReader: + self._analog_reader_names.append(name) return AnalogReaderClient(name, self) async def digital_interrupt_by_name(self, name: str) -> Board.DigitalInterrupt: + self._digital_interrupt_names.append(name) return DigitalInterruptClient(name, self) async def gpio_pin_by_name(self, name: str) -> Board.GPIOPin: diff --git a/src/viam/gen/app/v1/billing_pb2.py b/src/viam/gen/app/v1/billing_pb2.py index 3e4b63992..4131388d5 100644 --- a/src/viam/gen/app/v1/billing_pb2.py +++ b/src/viam/gen/app/v1/billing_pb2.py @@ -5,14 +5,14 @@ from google.protobuf import symbol_database as _symbol_database _sym_db = _symbol_database.Default() from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14app/v1/billing.proto\x12\x0bviam.app.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\x8e\x02\n\x0eInvoiceSummary\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12=\n\x0cinvoice_date\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x0binvoiceDate\x12%\n\x0einvoice_amount\x18\x03 \x01(\x01R\rinvoiceAmount\x12\x16\n\x06status\x18\x04 \x01(\tR\x06status\x125\n\x08due_date\x18\x05 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07dueDate\x127\n\tpaid_date\x18\x06 \x01(\x0b2\x1a.google.protobuf.TimestampR\x08paidDate"\x8b\x02\n\x15BillableResourceEvent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12%\n\x0eusage_quantity\x18\x03 \x01(\x01R\rusageQuantity\x12.\n\x13usage_quantity_unit\x18\x04 \x01(\tR\x11usageQuantityUnit\x12\x1d\n\nusage_cost\x18\x05 \x01(\tR\tusageCost\x12;\n\x0boccurred_at\x18\x06 \x01(\x0b2\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1b\n\tuser_name\x18\x07 \x01(\tR\x08userName"\xa7\x02\n\x07Invoice\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12=\n\x0cinvoice_date\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x0binvoiceDate\x12%\n\x0einvoice_amount\x18\x03 \x01(\x01R\rinvoiceAmount\x12\x16\n\x06status\x18\x04 \x01(\tR\x06status\x125\n\x08due_date\x18\x05 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07dueDate\x128\n\x05items\x18\x06 \x03(\x0b2".viam.app.v1.BillableResourceEventR\x05items\x12\x1d\n\nemailed_to\x18\x07 \x01(\tR\temailedTo"S\n\x11PaymentMethodCard\x12\x14\n\x05brand\x18\x01 \x01(\tR\x05brand\x12(\n\x10last_four_digits\x18\x02 \x01(\tR\x0elastFourDigits"4\n\x1bGetCurrentMonthUsageRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\xd0\x04\n\x1cGetCurrentMonthUsageResponse\x129\n\nstart_date\x18\x01 \x01(\x0b2\x1a.google.protobuf.TimestampR\tstartDate\x125\n\x08end_date\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07endDate\x127\n\x18cloud_storage_usage_cost\x18\x03 \x01(\x01R\x15cloudStorageUsageCost\x123\n\x16data_upload_usage_cost\x18\x04 \x01(\x01R\x13dataUploadUsageCost\x121\n\x15data_egres_usage_cost\x18\x05 \x01(\x01R\x12dataEgresUsageCost\x129\n\x19remote_control_usage_cost\x18\x06 \x01(\x01R\x16remoteControlUsageCost\x12=\n\x1bstandard_compute_usage_cost\x18\x07 \x01(\x01R\x18standardComputeUsageCost\x12\'\n\x0fdiscount_amount\x18\x08 \x01(\x01R\x0ediscountAmount\x129\n\x19total_usage_with_discount\x18\t \x01(\x01R\x16totalUsageWithDiscount\x12?\n\x1ctotal_usage_without_discount\x18\n \x01(\x01R\x19totalUsageWithoutDiscount"8\n\x1fGetOrgBillingInformationRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\xfc\x01\n GetOrgBillingInformationResponse\x122\n\x04type\x18\x01 \x01(\x0e2\x1e.viam.app.v1.PaymentMethodTypeR\x04type\x12#\n\rbilling_email\x18\x02 \x01(\tR\x0cbillingEmail\x12;\n\x06method\x18\x03 \x01(\x0b2\x1e.viam.app.v1.PaymentMethodCardH\x00R\x06method\x88\x01\x01\x12&\n\x0cbilling_tier\x18\x04 \x01(\tH\x01R\x0bbillingTier\x88\x01\x01B\t\n\x07_methodB\x0f\n\r_billing_tier"2\n\x19GetInvoicesSummaryRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\x86\x01\n\x1aGetInvoicesSummaryResponse\x12/\n\x13outstanding_balance\x18\x01 \x01(\x01R\x12outstandingBalance\x127\n\x08invoices\x18\x02 \x03(\x0b2\x1b.viam.app.v1.InvoiceSummaryR\x08invoices"=\n\x14GetInvoicePdfRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x15\n\x06org_id\x18\x02 \x01(\tR\x05orgId"-\n\x15GetInvoicePdfResponse\x12\x14\n\x05chunk\x18\x01 \x01(\x0cR\x05chunk*V\n\x11PaymentMethodType\x12#\n\x1fPAYMENT_METHOD_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18PAYMENT_METHOD_TYPE_CARD\x10\x012\xb7\x03\n\x0eBillingService\x12k\n\x14GetCurrentMonthUsage\x12(.viam.app.v1.GetCurrentMonthUsageRequest\x1a).viam.app.v1.GetCurrentMonthUsageResponse\x12w\n\x18GetOrgBillingInformation\x12,.viam.app.v1.GetOrgBillingInformationRequest\x1a-.viam.app.v1.GetOrgBillingInformationResponse\x12e\n\x12GetInvoicesSummary\x12&.viam.app.v1.GetInvoicesSummaryRequest\x1a\'.viam.app.v1.GetInvoicesSummaryResponse\x12X\n\rGetInvoicePdf\x12!.viam.app.v1.GetInvoicePdfRequest\x1a".viam.app.v1.GetInvoicePdfResponse0\x01B\x18Z\x16go.viam.com/api/app/v1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14app/v1/billing.proto\x12\x0bviam.app.v1\x1a\x1fgoogle/protobuf/timestamp.proto"\x8e\x02\n\x0eInvoiceSummary\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12=\n\x0cinvoice_date\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x0binvoiceDate\x12%\n\x0einvoice_amount\x18\x03 \x01(\x01R\rinvoiceAmount\x12\x16\n\x06status\x18\x04 \x01(\tR\x06status\x125\n\x08due_date\x18\x05 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07dueDate\x127\n\tpaid_date\x18\x06 \x01(\x0b2\x1a.google.protobuf.TimestampR\x08paidDate"\x8b\x02\n\x15BillableResourceEvent\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12%\n\x0eusage_quantity\x18\x03 \x01(\x01R\rusageQuantity\x12.\n\x13usage_quantity_unit\x18\x04 \x01(\tR\x11usageQuantityUnit\x12\x1d\n\nusage_cost\x18\x05 \x01(\tR\tusageCost\x12;\n\x0boccurred_at\x18\x06 \x01(\x0b2\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1b\n\tuser_name\x18\x07 \x01(\tR\x08userName"\xa7\x02\n\x07Invoice\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12=\n\x0cinvoice_date\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x0binvoiceDate\x12%\n\x0einvoice_amount\x18\x03 \x01(\x01R\rinvoiceAmount\x12\x16\n\x06status\x18\x04 \x01(\tR\x06status\x125\n\x08due_date\x18\x05 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07dueDate\x128\n\x05items\x18\x06 \x03(\x0b2".viam.app.v1.BillableResourceEventR\x05items\x12\x1d\n\nemailed_to\x18\x07 \x01(\tR\temailedTo"S\n\x11PaymentMethodCard\x12\x14\n\x05brand\x18\x01 \x01(\tR\x05brand\x12(\n\x10last_four_digits\x18\x02 \x01(\tR\x0elastFourDigits"4\n\x1bGetCurrentMonthUsageRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\x98\x06\n\x1cGetCurrentMonthUsageResponse\x129\n\nstart_date\x18\x01 \x01(\x0b2\x1a.google.protobuf.TimestampR\tstartDate\x125\n\x08end_date\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x07endDate\x127\n\x18cloud_storage_usage_cost\x18\x03 \x01(\x01R\x15cloudStorageUsageCost\x123\n\x16data_upload_usage_cost\x18\x04 \x01(\x01R\x13dataUploadUsageCost\x121\n\x15data_egres_usage_cost\x18\x05 \x01(\x01R\x12dataEgresUsageCost\x129\n\x19remote_control_usage_cost\x18\x06 \x01(\x01R\x16remoteControlUsageCost\x12=\n\x1bstandard_compute_usage_cost\x18\x07 \x01(\x01R\x18standardComputeUsageCost\x12\'\n\x0fdiscount_amount\x18\x08 \x01(\x01R\x0ediscountAmount\x129\n\x19total_usage_with_discount\x18\t \x01(\x01R\x16totalUsageWithDiscount\x12?\n\x1ctotal_usage_without_discount\x18\n \x01(\x01R\x19totalUsageWithoutDiscount\x123\n\x16per_machine_usage_cost\x18\x0b \x01(\x01R\x13perMachineUsageCost\x12M\n$binary_data_cloud_storage_usage_cost\x18\x0c \x01(\x01R\x1fbinaryDataCloudStorageUsageCost\x12B\n\x1eother_cloud_storage_usage_cost\x18\r \x01(\x01R\x1aotherCloudStorageUsageCost"8\n\x1fGetOrgBillingInformationRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\xfc\x01\n GetOrgBillingInformationResponse\x122\n\x04type\x18\x01 \x01(\x0e2\x1e.viam.app.v1.PaymentMethodTypeR\x04type\x12#\n\rbilling_email\x18\x02 \x01(\tR\x0cbillingEmail\x12;\n\x06method\x18\x03 \x01(\x0b2\x1e.viam.app.v1.PaymentMethodCardH\x00R\x06method\x88\x01\x01\x12&\n\x0cbilling_tier\x18\x04 \x01(\tH\x01R\x0bbillingTier\x88\x01\x01B\t\n\x07_methodB\x0f\n\r_billing_tier"2\n\x19GetInvoicesSummaryRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId"\x86\x01\n\x1aGetInvoicesSummaryResponse\x12/\n\x13outstanding_balance\x18\x01 \x01(\x01R\x12outstandingBalance\x127\n\x08invoices\x18\x02 \x03(\x0b2\x1b.viam.app.v1.InvoiceSummaryR\x08invoices"=\n\x14GetInvoicePdfRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x15\n\x06org_id\x18\x02 \x01(\tR\x05orgId"-\n\x15GetInvoicePdfResponse\x12\x14\n\x05chunk\x18\x01 \x01(\x0cR\x05chunk*V\n\x11PaymentMethodType\x12#\n\x1fPAYMENT_METHOD_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18PAYMENT_METHOD_TYPE_CARD\x10\x012\xb7\x03\n\x0eBillingService\x12k\n\x14GetCurrentMonthUsage\x12(.viam.app.v1.GetCurrentMonthUsageRequest\x1a).viam.app.v1.GetCurrentMonthUsageResponse\x12w\n\x18GetOrgBillingInformation\x12,.viam.app.v1.GetOrgBillingInformationRequest\x1a-.viam.app.v1.GetOrgBillingInformationResponse\x12e\n\x12GetInvoicesSummary\x12&.viam.app.v1.GetInvoicesSummaryRequest\x1a\'.viam.app.v1.GetInvoicesSummaryResponse\x12X\n\rGetInvoicePdf\x12!.viam.app.v1.GetInvoicePdfRequest\x1a".viam.app.v1.GetInvoicePdfResponse0\x01B\x18Z\x16go.viam.com/api/app/v1b\x06proto3') _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.v1.billing_pb2', globals()) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'Z\x16go.viam.com/api/app/v1' - _PAYMENTMETHODTYPE._serialized_start = 2257 - _PAYMENTMETHODTYPE._serialized_end = 2343 + _PAYMENTMETHODTYPE._serialized_start = 2457 + _PAYMENTMETHODTYPE._serialized_end = 2543 _INVOICESUMMARY._serialized_start = 71 _INVOICESUMMARY._serialized_end = 341 _BILLABLERESOURCEEVENT._serialized_start = 344 @@ -24,18 +24,18 @@ _GETCURRENTMONTHUSAGEREQUEST._serialized_start = 996 _GETCURRENTMONTHUSAGEREQUEST._serialized_end = 1048 _GETCURRENTMONTHUSAGERESPONSE._serialized_start = 1051 - _GETCURRENTMONTHUSAGERESPONSE._serialized_end = 1643 - _GETORGBILLINGINFORMATIONREQUEST._serialized_start = 1645 - _GETORGBILLINGINFORMATIONREQUEST._serialized_end = 1701 - _GETORGBILLINGINFORMATIONRESPONSE._serialized_start = 1704 - _GETORGBILLINGINFORMATIONRESPONSE._serialized_end = 1956 - _GETINVOICESSUMMARYREQUEST._serialized_start = 1958 - _GETINVOICESSUMMARYREQUEST._serialized_end = 2008 - _GETINVOICESSUMMARYRESPONSE._serialized_start = 2011 - _GETINVOICESSUMMARYRESPONSE._serialized_end = 2145 - _GETINVOICEPDFREQUEST._serialized_start = 2147 - _GETINVOICEPDFREQUEST._serialized_end = 2208 - _GETINVOICEPDFRESPONSE._serialized_start = 2210 - _GETINVOICEPDFRESPONSE._serialized_end = 2255 - _BILLINGSERVICE._serialized_start = 2346 - _BILLINGSERVICE._serialized_end = 2785 \ No newline at end of file + _GETCURRENTMONTHUSAGERESPONSE._serialized_end = 1843 + _GETORGBILLINGINFORMATIONREQUEST._serialized_start = 1845 + _GETORGBILLINGINFORMATIONREQUEST._serialized_end = 1901 + _GETORGBILLINGINFORMATIONRESPONSE._serialized_start = 1904 + _GETORGBILLINGINFORMATIONRESPONSE._serialized_end = 2156 + _GETINVOICESSUMMARYREQUEST._serialized_start = 2158 + _GETINVOICESSUMMARYREQUEST._serialized_end = 2208 + _GETINVOICESSUMMARYRESPONSE._serialized_start = 2211 + _GETINVOICESSUMMARYRESPONSE._serialized_end = 2345 + _GETINVOICEPDFREQUEST._serialized_start = 2347 + _GETINVOICEPDFREQUEST._serialized_end = 2408 + _GETINVOICEPDFRESPONSE._serialized_start = 2410 + _GETINVOICEPDFRESPONSE._serialized_end = 2455 + _BILLINGSERVICE._serialized_start = 2546 + _BILLINGSERVICE._serialized_end = 2985 \ No newline at end of file diff --git a/src/viam/gen/app/v1/billing_pb2.pyi b/src/viam/gen/app/v1/billing_pb2.pyi index 6aeb77529..e0e9ab47d 100644 --- a/src/viam/gen/app/v1/billing_pb2.pyi +++ b/src/viam/gen/app/v1/billing_pb2.pyi @@ -176,6 +176,9 @@ class GetCurrentMonthUsageResponse(google.protobuf.message.Message): DISCOUNT_AMOUNT_FIELD_NUMBER: builtins.int TOTAL_USAGE_WITH_DISCOUNT_FIELD_NUMBER: builtins.int TOTAL_USAGE_WITHOUT_DISCOUNT_FIELD_NUMBER: builtins.int + PER_MACHINE_USAGE_COST_FIELD_NUMBER: builtins.int + BINARY_DATA_CLOUD_STORAGE_USAGE_COST_FIELD_NUMBER: builtins.int + OTHER_CLOUD_STORAGE_USAGE_COST_FIELD_NUMBER: builtins.int @property def start_date(self) -> google.protobuf.timestamp_pb2.Timestamp: @@ -192,14 +195,17 @@ class GetCurrentMonthUsageResponse(google.protobuf.message.Message): discount_amount: builtins.float total_usage_with_discount: builtins.float total_usage_without_discount: builtins.float + per_machine_usage_cost: builtins.float + binary_data_cloud_storage_usage_cost: builtins.float + other_cloud_storage_usage_cost: builtins.float - def __init__(self, *, start_date: google.protobuf.timestamp_pb2.Timestamp | None=..., end_date: google.protobuf.timestamp_pb2.Timestamp | None=..., cloud_storage_usage_cost: builtins.float=..., data_upload_usage_cost: builtins.float=..., data_egres_usage_cost: builtins.float=..., remote_control_usage_cost: builtins.float=..., standard_compute_usage_cost: builtins.float=..., discount_amount: builtins.float=..., total_usage_with_discount: builtins.float=..., total_usage_without_discount: builtins.float=...) -> None: + def __init__(self, *, start_date: google.protobuf.timestamp_pb2.Timestamp | None=..., end_date: google.protobuf.timestamp_pb2.Timestamp | None=..., cloud_storage_usage_cost: builtins.float=..., data_upload_usage_cost: builtins.float=..., data_egres_usage_cost: builtins.float=..., remote_control_usage_cost: builtins.float=..., standard_compute_usage_cost: builtins.float=..., discount_amount: builtins.float=..., total_usage_with_discount: builtins.float=..., total_usage_without_discount: builtins.float=..., per_machine_usage_cost: builtins.float=..., binary_data_cloud_storage_usage_cost: builtins.float=..., other_cloud_storage_usage_cost: builtins.float=...) -> None: ... def HasField(self, field_name: typing_extensions.Literal['end_date', b'end_date', 'start_date', b'start_date']) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal['cloud_storage_usage_cost', b'cloud_storage_usage_cost', 'data_egres_usage_cost', b'data_egres_usage_cost', 'data_upload_usage_cost', b'data_upload_usage_cost', 'discount_amount', b'discount_amount', 'end_date', b'end_date', 'remote_control_usage_cost', b'remote_control_usage_cost', 'standard_compute_usage_cost', b'standard_compute_usage_cost', 'start_date', b'start_date', 'total_usage_with_discount', b'total_usage_with_discount', 'total_usage_without_discount', b'total_usage_without_discount']) -> None: + def ClearField(self, field_name: typing_extensions.Literal['binary_data_cloud_storage_usage_cost', b'binary_data_cloud_storage_usage_cost', 'cloud_storage_usage_cost', b'cloud_storage_usage_cost', 'data_egres_usage_cost', b'data_egres_usage_cost', 'data_upload_usage_cost', b'data_upload_usage_cost', 'discount_amount', b'discount_amount', 'end_date', b'end_date', 'other_cloud_storage_usage_cost', b'other_cloud_storage_usage_cost', 'per_machine_usage_cost', b'per_machine_usage_cost', 'remote_control_usage_cost', b'remote_control_usage_cost', 'standard_compute_usage_cost', b'standard_compute_usage_cost', 'start_date', b'start_date', 'total_usage_with_discount', b'total_usage_with_discount', 'total_usage_without_discount', b'total_usage_without_discount']) -> None: ... global___GetCurrentMonthUsageResponse = GetCurrentMonthUsageResponse diff --git a/src/viam/media/audio.py b/src/viam/media/audio.py index 44a17ac20..56e5a8800 100644 --- a/src/viam/media/audio.py +++ b/src/viam/media/audio.py @@ -1,7 +1,7 @@ from dataclasses import dataclass -from viam.streams import Stream, StreamReader from viam.proto.component.audioinput import AudioChunk, AudioChunkInfo +from viam.streams import Stream, StreamReader @dataclass diff --git a/src/viam/streams.py b/src/viam/streams.py index 45b105280..921922f84 100644 --- a/src/viam/streams.py +++ b/src/viam/streams.py @@ -7,7 +7,6 @@ from typing import Protocol, TypeVar - StreamType = TypeVar("StreamType", covariant=True) diff --git a/tests/mocks/components.py b/tests/mocks/components.py index f13477b01..c3f4487d6 100644 --- a/tests/mocks/components.py +++ b/tests/mocks/components.py @@ -30,23 +30,13 @@ from viam.components.sensor import Sensor from viam.components.servo import Servo from viam.errors import ResourceNotFoundError -from viam.streams import StreamWithIterator from viam.media.audio import Audio, AudioStream from viam.media.video import CameraMimeType, NamedImage, RawImage -from viam.proto.common import ( - Capsule, - Geometry, - GeoPoint, - Orientation, - Pose, - PoseInFrame, - ResponseMetadata, - Sphere, - Vector3, -) +from viam.proto.common import Capsule, Geometry, GeoPoint, Orientation, Pose, PoseInFrame, ResponseMetadata, Sphere, Vector3 from viam.proto.component.audioinput import AudioChunk, AudioChunkInfo, SampleFormat from viam.proto.component.board import PowerMode from viam.proto.component.encoder import PositionType +from viam.streams import StreamWithIterator from viam.utils import SensorReading, ValueTypes GEOMETRIES = [ diff --git a/tests/test_board.py b/tests/test_board.py index 2271d5c6a..78a607510 100644 --- a/tests/test_board.py +++ b/tests/test_board.py @@ -6,12 +6,13 @@ from grpclib import GRPCError from grpclib.testing import ChannelFor -from viam.proto.common import AnalogStatus, DigitalInterruptStatus from viam.components.board import BoardClient, BoardStatus, create_status from viam.components.board.service import BoardRPCService from viam.components.generic.service import GenericRPCService from viam.errors import ResourceNotFoundError from viam.proto.common import ( + AnalogStatus, + DigitalInterruptStatus, DoCommandRequest, DoCommandResponse, GetGeometriesRequest, @@ -40,7 +41,7 @@ WriteAnalogResponse, ) from viam.resource.manager import ResourceManager -from viam.utils import dict_to_struct, struct_to_dict, message_to_struct +from viam.utils import dict_to_struct, message_to_struct, struct_to_dict from . import loose_approx from .mocks.components import GEOMETRIES, MockAnalogReader, MockBoard, MockDigitalInterrupt, MockGPIOPin @@ -385,6 +386,9 @@ async def test_analog_reader_names(self, board: MockBoard, service: BoardRPCServ async with ChannelFor([service]) as channel: client = BoardClient(name=board.name, channel=channel) + reader = await client.analog_reader_by_name("reader1") + assert reader.name == "reader1" + names = await client.analog_reader_names() assert names == ["reader1"] @@ -393,6 +397,9 @@ async def test_digital_interrupt_names(self, board: MockBoard, service: BoardRPC async with ChannelFor([service]) as channel: client = BoardClient(name=board.name, channel=channel) + interrupt = await client.digital_interrupt_by_name("interrupt1") + assert interrupt.name == "interrupt1" + names = await client.digital_interrupt_names() assert names == ["interrupt1"] From 94509071e6c1121aebf7ae9537979cfbf17f2720 Mon Sep 17 00:00:00 2001 From: Naveed Jooma Date: Wed, 24 Apr 2024 12:19:29 -0400 Subject: [PATCH 6/7] Pre-define vars --- src/viam/components/board/client.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/viam/components/board/client.py b/src/viam/components/board/client.py index af127285e..9ce47ce7a 100644 --- a/src/viam/components/board/client.py +++ b/src/viam/components/board/client.py @@ -164,11 +164,14 @@ class BoardClient(Board, ReconfigurableResourceRPCClientBase): gRPC client for the Board component. """ + _analog_reader_names: List[str] + _digital_interrupt_names: List[str] + def __init__(self, name: str, channel: Channel): self.channel = channel self.client = BoardServiceStub(channel) - self._analog_reader_names: List[str] = [] - self._digital_interrupt_names: List[str] = [] + self._analog_reader_names = [] + self._digital_interrupt_names = [] super().__init__(name) async def analog_reader_by_name(self, name: str) -> Board.AnalogReader: From 04a3f9981fb170e2fb619e39dfe686f86182a19f Mon Sep 17 00:00:00 2001 From: Naveed Jooma Date: Wed, 24 Apr 2024 12:22:08 -0400 Subject: [PATCH 7/7] Running formatter --- src/viam/proto/app/__init__.py | 367 +++++++++--------- src/viam/proto/app/agent/__init__.py | 45 +-- src/viam/proto/app/billing.py | 41 +- src/viam/proto/app/cloudslam/__init__.py | 49 ++- src/viam/proto/app/data/__init__.py | 121 +++--- src/viam/proto/app/dataset/__init__.py | 37 +- src/viam/proto/app/datasync/__init__.py | 43 +- src/viam/proto/app/end_user.py | 31 +- src/viam/proto/app/mltraining/__init__.py | 47 ++- src/viam/proto/app/packages/__init__.py | 39 +- src/viam/proto/app/robot.py | 79 ++-- src/viam/proto/common/__init__.py | 68 ++-- src/viam/proto/component/arm/__init__.py | 43 +- .../proto/component/audioinput/__init__.py | 31 +- src/viam/proto/component/base/__init__.py | 43 +- src/viam/proto/component/board/__init__.py | 69 ++-- src/viam/proto/component/camera/__init__.py | 47 ++- src/viam/proto/component/encoder/__init__.py | 29 +- src/viam/proto/component/gantry/__init__.py | 41 +- src/viam/proto/component/generic/__init__.py | 13 +- src/viam/proto/component/gripper/__init__.py | 31 +- .../component/inputcontroller/__init__.py | 35 +- src/viam/proto/component/motor/__init__.py | 53 ++- .../component/movementsensor/__init__.py | 47 ++- .../proto/component/posetracker/__init__.py | 22 +- .../proto/component/powersensor/__init__.py | 27 +- src/viam/proto/component/sensor/__init__.py | 13 +- src/viam/proto/component/servo/__init__.py | 33 +- src/viam/proto/component/testecho/__init__.py | 31 +- src/viam/proto/module/__init__.py | 39 +- src/viam/proto/provisioning/__init__.py | 37 +- src/viam/proto/robot/__init__.py | 107 +++-- src/viam/proto/rpc/auth.py | 31 +- src/viam/proto/rpc/examples/echo/__init__.py | 27 +- .../rpc/examples/echoresource/__init__.py | 27 +- .../proto/rpc/examples/fileupload/__init__.py | 22 +- src/viam/proto/rpc/webrtc/grpc.py | 37 +- src/viam/proto/rpc/webrtc/signaling.py | 57 ++- .../proto/service/datamanager/__init__.py | 22 +- src/viam/proto/service/generic/__init__.py | 13 +- src/viam/proto/service/mlmodel/__init__.py | 59 ++- src/viam/proto/service/motion/__init__.py | 69 ++-- src/viam/proto/service/navigation/__init__.py | 59 ++- src/viam/proto/service/sensors/__init__.py | 31 +- src/viam/proto/service/shell/__init__.py | 22 +- src/viam/proto/service/slam/__init__.py | 37 +- src/viam/proto/service/vision/__init__.py | 39 +- src/viam/proto/stream/__init__.py | 27 +- src/viam/proto/tagger/__init__.py | 7 +- 49 files changed, 1090 insertions(+), 1254 deletions(-) diff --git a/src/viam/proto/app/__init__.py b/src/viam/proto/app/__init__.py index ca051928a..7ff9f21b1 100644 --- a/src/viam/proto/app/__init__.py +++ b/src/viam/proto/app/__init__.py @@ -1,16 +1,13 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ...gen.app.v1.app_grpc import ( - AppServiceBase, - AppServiceStub -) +""" +from ...gen.app.v1.app_grpc import AppServiceBase, AppServiceStub from ...gen.app.v1.app_pb2 import ( - APIKey, - APIKeyWithAuthorizations, AddRoleRequest, AddRoleResponse, + APIKey, + APIKeyWithAuthorizations, Authorization, AuthorizationDetails, AuthorizedPermissions, @@ -116,12 +113,12 @@ LocationAuthRequest, LocationAuthResponse, LocationOrganization, - MLModelMetadata, - MLTrainingMetadata, MarkPartAsMainRequest, MarkPartAsMainResponse, MarkPartForRestartRequest, MarkPartForRestartResponse, + MLModelMetadata, + MLTrainingMetadata, Model, Module, ModuleFileInfo, @@ -131,11 +128,11 @@ NewRobotPartResponse, NewRobotRequest, NewRobotResponse, - OrgDetails, Organization, OrganizationIdentity, OrganizationInvite, OrganizationMember, + OrgDetails, RegistryItem, RegistryItemStatus, RemoveRoleRequest, @@ -148,9 +145,9 @@ RotateKeyRequest, RotateKeyResponse, RoverRentalRobot, + SharedSecret, ShareLocationRequest, ShareLocationResponse, - SharedSecret, StorageConfig, TailRobotPartLogsRequest, TailRobotPartLogsResponse, @@ -176,180 +173,180 @@ UploadModuleFileResponse, Uploads, VersionHistory, - Visibility + Visibility, ) __all__ = [ - 'AppServiceBase', - 'AppServiceStub', - 'APIKey', - 'APIKeyWithAuthorizations', - 'AddRoleRequest', - 'AddRoleResponse', - 'Authorization', - 'AuthorizationDetails', - 'AuthorizedPermissions', - 'ChangeRoleRequest', - 'ChangeRoleResponse', - 'CheckPermissionsRequest', - 'CheckPermissionsResponse', - 'CreateFragmentRequest', - 'CreateFragmentResponse', - 'CreateKeyFromExistingKeyAuthorizationsRequest', - 'CreateKeyFromExistingKeyAuthorizationsResponse', - 'CreateKeyRequest', - 'CreateKeyResponse', - 'CreateLocationRequest', - 'CreateLocationResponse', - 'CreateLocationSecretRequest', - 'CreateLocationSecretResponse', - 'CreateModuleRequest', - 'CreateModuleResponse', - 'CreateOrganizationInviteRequest', - 'CreateOrganizationInviteResponse', - 'CreateOrganizationRequest', - 'CreateOrganizationResponse', - 'CreateRegistryItemRequest', - 'CreateRegistryItemResponse', - 'CreateRobotPartSecretRequest', - 'CreateRobotPartSecretResponse', - 'DeleteFragmentRequest', - 'DeleteFragmentResponse', - 'DeleteKeyRequest', - 'DeleteKeyResponse', - 'DeleteLocationRequest', - 'DeleteLocationResponse', - 'DeleteLocationSecretRequest', - 'DeleteLocationSecretResponse', - 'DeleteOrganizationInviteRequest', - 'DeleteOrganizationInviteResponse', - 'DeleteOrganizationMemberRequest', - 'DeleteOrganizationMemberResponse', - 'DeleteOrganizationRequest', - 'DeleteOrganizationResponse', - 'DeleteRegistryItemRequest', - 'DeleteRegistryItemResponse', - 'DeleteRobotPartRequest', - 'DeleteRobotPartResponse', - 'DeleteRobotPartSecretRequest', - 'DeleteRobotPartSecretResponse', - 'DeleteRobotRequest', - 'DeleteRobotResponse', - 'Fragment', - 'GetFragmentRequest', - 'GetFragmentResponse', - 'GetLocationRequest', - 'GetLocationResponse', - 'GetModuleRequest', - 'GetModuleResponse', - 'GetOrganizationNamespaceAvailabilityRequest', - 'GetOrganizationNamespaceAvailabilityResponse', - 'GetOrganizationRequest', - 'GetOrganizationResponse', - 'GetOrganizationsWithAccessToLocationRequest', - 'GetOrganizationsWithAccessToLocationResponse', - 'GetRegistryItemRequest', - 'GetRegistryItemResponse', - 'GetRobotAPIKeysRequest', - 'GetRobotAPIKeysResponse', - 'GetRobotPartHistoryRequest', - 'GetRobotPartHistoryResponse', - 'GetRobotPartLogsRequest', - 'GetRobotPartLogsResponse', - 'GetRobotPartRequest', - 'GetRobotPartResponse', - 'GetRobotPartsRequest', - 'GetRobotPartsResponse', - 'GetRobotRequest', - 'GetRobotResponse', - 'GetRoverRentalRobotsRequest', - 'GetRoverRentalRobotsResponse', - 'GetUserIDByEmailRequest', - 'GetUserIDByEmailResponse', - 'ListAuthorizationsRequest', - 'ListAuthorizationsResponse', - 'ListFragmentsRequest', - 'ListFragmentsResponse', - 'ListKeysRequest', - 'ListKeysResponse', - 'ListLocationsRequest', - 'ListLocationsResponse', - 'ListModulesRequest', - 'ListModulesResponse', - 'ListOrganizationMembersRequest', - 'ListOrganizationMembersResponse', - 'ListOrganizationsByUserRequest', - 'ListOrganizationsByUserResponse', - 'ListOrganizationsRequest', - 'ListOrganizationsResponse', - 'ListRegistryItemsRequest', - 'ListRegistryItemsResponse', - 'ListRobotsRequest', - 'ListRobotsResponse', - 'Location', - 'LocationAuth', - 'LocationAuthRequest', - 'LocationAuthResponse', - 'LocationOrganization', - 'MLModelMetadata', - 'MLTrainingMetadata', - 'MarkPartAsMainRequest', - 'MarkPartAsMainResponse', - 'MarkPartForRestartRequest', - 'MarkPartForRestartResponse', - 'Model', - 'Module', - 'ModuleFileInfo', - 'ModuleMetadata', - 'ModuleVersion', - 'NewRobotPartRequest', - 'NewRobotPartResponse', - 'NewRobotRequest', - 'NewRobotResponse', - 'OrgDetails', - 'Organization', - 'OrganizationIdentity', - 'OrganizationInvite', - 'OrganizationMember', - 'RegistryItem', - 'RegistryItemStatus', - 'RemoveRoleRequest', - 'RemoveRoleResponse', - 'ResendOrganizationInviteRequest', - 'ResendOrganizationInviteResponse', - 'Robot', - 'RobotPart', - 'RobotPartHistoryEntry', - 'RotateKeyRequest', - 'RotateKeyResponse', - 'RoverRentalRobot', - 'ShareLocationRequest', - 'ShareLocationResponse', - 'SharedSecret', - 'StorageConfig', - 'TailRobotPartLogsRequest', - 'TailRobotPartLogsResponse', - 'UnshareLocationRequest', - 'UnshareLocationResponse', - 'UpdateFragmentRequest', - 'UpdateFragmentResponse', - 'UpdateLocationRequest', - 'UpdateLocationResponse', - 'UpdateModuleRequest', - 'UpdateModuleResponse', - 'UpdateOrganizationInviteAuthorizationsRequest', - 'UpdateOrganizationInviteAuthorizationsResponse', - 'UpdateOrganizationRequest', - 'UpdateOrganizationResponse', - 'UpdateRegistryItemRequest', - 'UpdateRegistryItemResponse', - 'UpdateRobotPartRequest', - 'UpdateRobotPartResponse', - 'UpdateRobotRequest', - 'UpdateRobotResponse', - 'UploadModuleFileRequest', - 'UploadModuleFileResponse', - 'Uploads', - 'VersionHistory', - 'Visibility', + "AppServiceBase", + "AppServiceStub", + "APIKey", + "APIKeyWithAuthorizations", + "AddRoleRequest", + "AddRoleResponse", + "Authorization", + "AuthorizationDetails", + "AuthorizedPermissions", + "ChangeRoleRequest", + "ChangeRoleResponse", + "CheckPermissionsRequest", + "CheckPermissionsResponse", + "CreateFragmentRequest", + "CreateFragmentResponse", + "CreateKeyFromExistingKeyAuthorizationsRequest", + "CreateKeyFromExistingKeyAuthorizationsResponse", + "CreateKeyRequest", + "CreateKeyResponse", + "CreateLocationRequest", + "CreateLocationResponse", + "CreateLocationSecretRequest", + "CreateLocationSecretResponse", + "CreateModuleRequest", + "CreateModuleResponse", + "CreateOrganizationInviteRequest", + "CreateOrganizationInviteResponse", + "CreateOrganizationRequest", + "CreateOrganizationResponse", + "CreateRegistryItemRequest", + "CreateRegistryItemResponse", + "CreateRobotPartSecretRequest", + "CreateRobotPartSecretResponse", + "DeleteFragmentRequest", + "DeleteFragmentResponse", + "DeleteKeyRequest", + "DeleteKeyResponse", + "DeleteLocationRequest", + "DeleteLocationResponse", + "DeleteLocationSecretRequest", + "DeleteLocationSecretResponse", + "DeleteOrganizationInviteRequest", + "DeleteOrganizationInviteResponse", + "DeleteOrganizationMemberRequest", + "DeleteOrganizationMemberResponse", + "DeleteOrganizationRequest", + "DeleteOrganizationResponse", + "DeleteRegistryItemRequest", + "DeleteRegistryItemResponse", + "DeleteRobotPartRequest", + "DeleteRobotPartResponse", + "DeleteRobotPartSecretRequest", + "DeleteRobotPartSecretResponse", + "DeleteRobotRequest", + "DeleteRobotResponse", + "Fragment", + "GetFragmentRequest", + "GetFragmentResponse", + "GetLocationRequest", + "GetLocationResponse", + "GetModuleRequest", + "GetModuleResponse", + "GetOrganizationNamespaceAvailabilityRequest", + "GetOrganizationNamespaceAvailabilityResponse", + "GetOrganizationRequest", + "GetOrganizationResponse", + "GetOrganizationsWithAccessToLocationRequest", + "GetOrganizationsWithAccessToLocationResponse", + "GetRegistryItemRequest", + "GetRegistryItemResponse", + "GetRobotAPIKeysRequest", + "GetRobotAPIKeysResponse", + "GetRobotPartHistoryRequest", + "GetRobotPartHistoryResponse", + "GetRobotPartLogsRequest", + "GetRobotPartLogsResponse", + "GetRobotPartRequest", + "GetRobotPartResponse", + "GetRobotPartsRequest", + "GetRobotPartsResponse", + "GetRobotRequest", + "GetRobotResponse", + "GetRoverRentalRobotsRequest", + "GetRoverRentalRobotsResponse", + "GetUserIDByEmailRequest", + "GetUserIDByEmailResponse", + "ListAuthorizationsRequest", + "ListAuthorizationsResponse", + "ListFragmentsRequest", + "ListFragmentsResponse", + "ListKeysRequest", + "ListKeysResponse", + "ListLocationsRequest", + "ListLocationsResponse", + "ListModulesRequest", + "ListModulesResponse", + "ListOrganizationMembersRequest", + "ListOrganizationMembersResponse", + "ListOrganizationsByUserRequest", + "ListOrganizationsByUserResponse", + "ListOrganizationsRequest", + "ListOrganizationsResponse", + "ListRegistryItemsRequest", + "ListRegistryItemsResponse", + "ListRobotsRequest", + "ListRobotsResponse", + "Location", + "LocationAuth", + "LocationAuthRequest", + "LocationAuthResponse", + "LocationOrganization", + "MLModelMetadata", + "MLTrainingMetadata", + "MarkPartAsMainRequest", + "MarkPartAsMainResponse", + "MarkPartForRestartRequest", + "MarkPartForRestartResponse", + "Model", + "Module", + "ModuleFileInfo", + "ModuleMetadata", + "ModuleVersion", + "NewRobotPartRequest", + "NewRobotPartResponse", + "NewRobotRequest", + "NewRobotResponse", + "OrgDetails", + "Organization", + "OrganizationIdentity", + "OrganizationInvite", + "OrganizationMember", + "RegistryItem", + "RegistryItemStatus", + "RemoveRoleRequest", + "RemoveRoleResponse", + "ResendOrganizationInviteRequest", + "ResendOrganizationInviteResponse", + "Robot", + "RobotPart", + "RobotPartHistoryEntry", + "RotateKeyRequest", + "RotateKeyResponse", + "RoverRentalRobot", + "ShareLocationRequest", + "ShareLocationResponse", + "SharedSecret", + "StorageConfig", + "TailRobotPartLogsRequest", + "TailRobotPartLogsResponse", + "UnshareLocationRequest", + "UnshareLocationResponse", + "UpdateFragmentRequest", + "UpdateFragmentResponse", + "UpdateLocationRequest", + "UpdateLocationResponse", + "UpdateModuleRequest", + "UpdateModuleResponse", + "UpdateOrganizationInviteAuthorizationsRequest", + "UpdateOrganizationInviteAuthorizationsResponse", + "UpdateOrganizationRequest", + "UpdateOrganizationResponse", + "UpdateRegistryItemRequest", + "UpdateRegistryItemResponse", + "UpdateRobotPartRequest", + "UpdateRobotPartResponse", + "UpdateRobotRequest", + "UpdateRobotResponse", + "UploadModuleFileRequest", + "UploadModuleFileResponse", + "Uploads", + "VersionHistory", + "Visibility", ] diff --git a/src/viam/proto/app/agent/__init__.py b/src/viam/proto/app/agent/__init__.py index 590858696..9c81383cd 100644 --- a/src/viam/proto/app/agent/__init__.py +++ b/src/viam/proto/app/agent/__init__.py @@ -1,13 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.app.agent.v1.agent_grpc import ( - AgentAppServiceBase, - AgentAppServiceStub, - AgentDeviceServiceBase, - AgentDeviceServiceStub -) +""" +from ....gen.app.agent.v1.agent_grpc import AgentAppServiceBase, AgentAppServiceStub, AgentDeviceServiceBase, AgentDeviceServiceStub from ....gen.app.agent.v1.agent_pb2 import ( AppAgentConfig, AppSubsystemConfig, @@ -20,24 +15,24 @@ PackageFormat, SubsystemUpdateInfo, UpdateAgentConfigRequest, - UpdateAgentConfigResponse + UpdateAgentConfigResponse, ) __all__ = [ - 'AgentAppServiceBase', - 'AgentAppServiceStub', - 'AgentDeviceServiceBase', - 'AgentDeviceServiceStub', - 'AppAgentConfig', - 'AppSubsystemConfig', - 'DeviceAgentConfigRequest', - 'DeviceAgentConfigResponse', - 'DeviceSubsystemConfig', - 'GetAgentConfigRequest', - 'GetAgentConfigResponse', - 'HostInfo', - 'PackageFormat', - 'SubsystemUpdateInfo', - 'UpdateAgentConfigRequest', - 'UpdateAgentConfigResponse', + "AgentAppServiceBase", + "AgentAppServiceStub", + "AgentDeviceServiceBase", + "AgentDeviceServiceStub", + "AppAgentConfig", + "AppSubsystemConfig", + "DeviceAgentConfigRequest", + "DeviceAgentConfigResponse", + "DeviceSubsystemConfig", + "GetAgentConfigRequest", + "GetAgentConfigResponse", + "HostInfo", + "PackageFormat", + "SubsystemUpdateInfo", + "UpdateAgentConfigRequest", + "UpdateAgentConfigResponse", ] diff --git a/src/viam/proto/app/billing.py b/src/viam/proto/app/billing.py index 06bd9d88e..732666ebd 100644 --- a/src/viam/proto/app/billing.py +++ b/src/viam/proto/app/billing.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ...gen.app.v1.billing_grpc import ( - BillingServiceBase, - BillingServiceStub -) +""" +from ...gen.app.v1.billing_grpc import BillingServiceBase, BillingServiceStub from ...gen.app.v1.billing_pb2 import ( BillableResourceEvent, GetCurrentMonthUsageRequest, @@ -19,23 +16,23 @@ Invoice, InvoiceSummary, PaymentMethodCard, - PaymentMethodType + PaymentMethodType, ) __all__ = [ - 'BillingServiceBase', - 'BillingServiceStub', - 'BillableResourceEvent', - 'GetCurrentMonthUsageRequest', - 'GetCurrentMonthUsageResponse', - 'GetInvoicePdfRequest', - 'GetInvoicePdfResponse', - 'GetInvoicesSummaryRequest', - 'GetInvoicesSummaryResponse', - 'GetOrgBillingInformationRequest', - 'GetOrgBillingInformationResponse', - 'Invoice', - 'InvoiceSummary', - 'PaymentMethodCard', - 'PaymentMethodType', + "BillingServiceBase", + "BillingServiceStub", + "BillableResourceEvent", + "GetCurrentMonthUsageRequest", + "GetCurrentMonthUsageResponse", + "GetInvoicePdfRequest", + "GetInvoicePdfResponse", + "GetInvoicesSummaryRequest", + "GetInvoicesSummaryResponse", + "GetOrgBillingInformationRequest", + "GetOrgBillingInformationResponse", + "Invoice", + "InvoiceSummary", + "PaymentMethodCard", + "PaymentMethodType", ] diff --git a/src/viam/proto/app/cloudslam/__init__.py b/src/viam/proto/app/cloudslam/__init__.py index 7ed745bdf..efd76a91f 100644 --- a/src/viam/proto/app/cloudslam/__init__.py +++ b/src/viam/proto/app/cloudslam/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.app.cloudslam.v1.cloud_slam_grpc import ( - CloudSLAMServiceBase, - CloudSLAMServiceStub -) +""" +from ....gen.app.cloudslam.v1.cloud_slam_grpc import CloudSLAMServiceBase, CloudSLAMServiceStub from ....gen.app.cloudslam.v1.cloud_slam_pb2 import ( CaptureInterval, EndStatus, @@ -23,27 +20,27 @@ StartMappingSessionRequest, StartMappingSessionResponse, StopMappingSessionRequest, - StopMappingSessionResponse + StopMappingSessionResponse, ) __all__ = [ - 'CloudSLAMServiceBase', - 'CloudSLAMServiceStub', - 'CaptureInterval', - 'EndStatus', - 'GetActiveMappingSessionsForRobotRequest', - 'GetActiveMappingSessionsForRobotResponse', - 'GetMappingSessionMetadataByIDRequest', - 'GetMappingSessionMetadataByIDResponse', - 'GetMappingSessionPointCloudRequest', - 'GetMappingSessionPointCloudResponse', - 'ListMappingSessionsRequest', - 'ListMappingSessionsResponse', - 'MappingMetadata', - 'Module', - 'SensorInfo', - 'StartMappingSessionRequest', - 'StartMappingSessionResponse', - 'StopMappingSessionRequest', - 'StopMappingSessionResponse', + "CloudSLAMServiceBase", + "CloudSLAMServiceStub", + "CaptureInterval", + "EndStatus", + "GetActiveMappingSessionsForRobotRequest", + "GetActiveMappingSessionsForRobotResponse", + "GetMappingSessionMetadataByIDRequest", + "GetMappingSessionMetadataByIDResponse", + "GetMappingSessionPointCloudRequest", + "GetMappingSessionPointCloudResponse", + "ListMappingSessionsRequest", + "ListMappingSessionsResponse", + "MappingMetadata", + "Module", + "SensorInfo", + "StartMappingSessionRequest", + "StartMappingSessionResponse", + "StopMappingSessionRequest", + "StopMappingSessionResponse", ] diff --git a/src/viam/proto/app/data/__init__.py b/src/viam/proto/app/data/__init__.py index 9fb510946..ca0accbb2 100644 --- a/src/viam/proto/app/data/__init__.py +++ b/src/viam/proto/app/data/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.app.data.v1.data_grpc import ( - DataServiceBase, - DataServiceStub -) +""" +from ....gen.app.data.v1.data_grpc import DataServiceBase, DataServiceStub from ....gen.app.data.v1.data_pb2 import ( AddBinaryDataToDatasetByIDsRequest, AddBinaryDataToDatasetByIDsResponse, @@ -59,63 +56,63 @@ TagsByFilterRequest, TagsByFilterResponse, TagsFilter, - TagsFilterType + TagsFilterType, ) __all__ = [ - 'DataServiceBase', - 'DataServiceStub', - 'AddBinaryDataToDatasetByIDsRequest', - 'AddBinaryDataToDatasetByIDsResponse', - 'AddBoundingBoxToImageByIDRequest', - 'AddBoundingBoxToImageByIDResponse', - 'AddTagsToBinaryDataByFilterRequest', - 'AddTagsToBinaryDataByFilterResponse', - 'AddTagsToBinaryDataByIDsRequest', - 'AddTagsToBinaryDataByIDsResponse', - 'Annotations', - 'BinaryData', - 'BinaryDataByFilterRequest', - 'BinaryDataByFilterResponse', - 'BinaryDataByIDsRequest', - 'BinaryDataByIDsResponse', - 'BinaryID', - 'BinaryMetadata', - 'BoundingBox', - 'BoundingBoxLabelsByFilterRequest', - 'BoundingBoxLabelsByFilterResponse', - 'CaptureInterval', - 'CaptureMetadata', - 'ConfigureDatabaseUserRequest', - 'ConfigureDatabaseUserResponse', - 'DataRequest', - 'DeleteBinaryDataByFilterRequest', - 'DeleteBinaryDataByFilterResponse', - 'DeleteBinaryDataByIDsRequest', - 'DeleteBinaryDataByIDsResponse', - 'DeleteTabularDataRequest', - 'DeleteTabularDataResponse', - 'Filter', - 'GetDatabaseConnectionRequest', - 'GetDatabaseConnectionResponse', - 'Order', - 'RemoveBinaryDataFromDatasetByIDsRequest', - 'RemoveBinaryDataFromDatasetByIDsResponse', - 'RemoveBoundingBoxFromImageByIDRequest', - 'RemoveBoundingBoxFromImageByIDResponse', - 'RemoveTagsFromBinaryDataByFilterRequest', - 'RemoveTagsFromBinaryDataByFilterResponse', - 'RemoveTagsFromBinaryDataByIDsRequest', - 'RemoveTagsFromBinaryDataByIDsResponse', - 'TabularData', - 'TabularDataByFilterRequest', - 'TabularDataByFilterResponse', - 'TabularDataByMQLRequest', - 'TabularDataByMQLResponse', - 'TabularDataBySQLRequest', - 'TabularDataBySQLResponse', - 'TagsByFilterRequest', - 'TagsByFilterResponse', - 'TagsFilter', - 'TagsFilterType', + "DataServiceBase", + "DataServiceStub", + "AddBinaryDataToDatasetByIDsRequest", + "AddBinaryDataToDatasetByIDsResponse", + "AddBoundingBoxToImageByIDRequest", + "AddBoundingBoxToImageByIDResponse", + "AddTagsToBinaryDataByFilterRequest", + "AddTagsToBinaryDataByFilterResponse", + "AddTagsToBinaryDataByIDsRequest", + "AddTagsToBinaryDataByIDsResponse", + "Annotations", + "BinaryData", + "BinaryDataByFilterRequest", + "BinaryDataByFilterResponse", + "BinaryDataByIDsRequest", + "BinaryDataByIDsResponse", + "BinaryID", + "BinaryMetadata", + "BoundingBox", + "BoundingBoxLabelsByFilterRequest", + "BoundingBoxLabelsByFilterResponse", + "CaptureInterval", + "CaptureMetadata", + "ConfigureDatabaseUserRequest", + "ConfigureDatabaseUserResponse", + "DataRequest", + "DeleteBinaryDataByFilterRequest", + "DeleteBinaryDataByFilterResponse", + "DeleteBinaryDataByIDsRequest", + "DeleteBinaryDataByIDsResponse", + "DeleteTabularDataRequest", + "DeleteTabularDataResponse", + "Filter", + "GetDatabaseConnectionRequest", + "GetDatabaseConnectionResponse", + "Order", + "RemoveBinaryDataFromDatasetByIDsRequest", + "RemoveBinaryDataFromDatasetByIDsResponse", + "RemoveBoundingBoxFromImageByIDRequest", + "RemoveBoundingBoxFromImageByIDResponse", + "RemoveTagsFromBinaryDataByFilterRequest", + "RemoveTagsFromBinaryDataByFilterResponse", + "RemoveTagsFromBinaryDataByIDsRequest", + "RemoveTagsFromBinaryDataByIDsResponse", + "TabularData", + "TabularDataByFilterRequest", + "TabularDataByFilterResponse", + "TabularDataByMQLRequest", + "TabularDataByMQLResponse", + "TabularDataBySQLRequest", + "TabularDataBySQLResponse", + "TagsByFilterRequest", + "TagsByFilterResponse", + "TagsFilter", + "TagsFilterType", ] diff --git a/src/viam/proto/app/dataset/__init__.py b/src/viam/proto/app/dataset/__init__.py index 266368092..e6af81ea0 100644 --- a/src/viam/proto/app/dataset/__init__.py +++ b/src/viam/proto/app/dataset/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.app.dataset.v1.dataset_grpc import ( - DatasetServiceBase, - DatasetServiceStub -) +""" +from ....gen.app.dataset.v1.dataset_grpc import DatasetServiceBase, DatasetServiceStub from ....gen.app.dataset.v1.dataset_pb2 import ( CreateDatasetRequest, CreateDatasetResponse, @@ -17,21 +14,21 @@ ListDatasetsByOrganizationIDRequest, ListDatasetsByOrganizationIDResponse, RenameDatasetRequest, - RenameDatasetResponse + RenameDatasetResponse, ) __all__ = [ - 'DatasetServiceBase', - 'DatasetServiceStub', - 'CreateDatasetRequest', - 'CreateDatasetResponse', - 'Dataset', - 'DeleteDatasetRequest', - 'DeleteDatasetResponse', - 'ListDatasetsByIDsRequest', - 'ListDatasetsByIDsResponse', - 'ListDatasetsByOrganizationIDRequest', - 'ListDatasetsByOrganizationIDResponse', - 'RenameDatasetRequest', - 'RenameDatasetResponse', + "DatasetServiceBase", + "DatasetServiceStub", + "CreateDatasetRequest", + "CreateDatasetResponse", + "Dataset", + "DeleteDatasetRequest", + "DeleteDatasetResponse", + "ListDatasetsByIDsRequest", + "ListDatasetsByIDsResponse", + "ListDatasetsByOrganizationIDRequest", + "ListDatasetsByOrganizationIDResponse", + "RenameDatasetRequest", + "RenameDatasetResponse", ] diff --git a/src/viam/proto/app/datasync/__init__.py b/src/viam/proto/app/datasync/__init__.py index f25cad444..a43cc58b5 100644 --- a/src/viam/proto/app/datasync/__init__.py +++ b/src/viam/proto/app/datasync/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.app.datasync.v1.data_sync_grpc import ( - DataSyncServiceBase, - DataSyncServiceStub -) +""" +from ....gen.app.datasync.v1.data_sync_grpc import DataSyncServiceBase, DataSyncServiceStub from ....gen.app.datasync.v1.data_sync_pb2 import ( CaptureInterval, DataCaptureMetadata, @@ -20,24 +17,24 @@ SensorMetadata, StreamingDataCaptureUploadRequest, StreamingDataCaptureUploadResponse, - UploadMetadata + UploadMetadata, ) __all__ = [ - 'DataSyncServiceBase', - 'DataSyncServiceStub', - 'CaptureInterval', - 'DataCaptureMetadata', - 'DataCaptureUploadMetadata', - 'DataCaptureUploadRequest', - 'DataCaptureUploadResponse', - 'DataType', - 'FileData', - 'FileUploadRequest', - 'FileUploadResponse', - 'SensorData', - 'SensorMetadata', - 'StreamingDataCaptureUploadRequest', - 'StreamingDataCaptureUploadResponse', - 'UploadMetadata', + "DataSyncServiceBase", + "DataSyncServiceStub", + "CaptureInterval", + "DataCaptureMetadata", + "DataCaptureUploadMetadata", + "DataCaptureUploadRequest", + "DataCaptureUploadResponse", + "DataType", + "FileData", + "FileUploadRequest", + "FileUploadResponse", + "SensorData", + "SensorMetadata", + "StreamingDataCaptureUploadRequest", + "StreamingDataCaptureUploadResponse", + "UploadMetadata", ] diff --git a/src/viam/proto/app/end_user.py b/src/viam/proto/app/end_user.py index 6fcf3785a..1364cb3c7 100644 --- a/src/viam/proto/app/end_user.py +++ b/src/viam/proto/app/end_user.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ...gen.app.v1.end_user_grpc import ( - EndUserServiceBase, - EndUserServiceStub -) +""" +from ...gen.app.v1.end_user_grpc import EndUserServiceBase, EndUserServiceStub from ...gen.app.v1.end_user_pb2 import ( AcceptLegalRequest, AcceptLegalResponse, @@ -14,18 +11,18 @@ RegisterAuthApplicationRequest, RegisterAuthApplicationResponse, UpdateAuthApplicationRequest, - UpdateAuthApplicationResponse + UpdateAuthApplicationResponse, ) __all__ = [ - 'EndUserServiceBase', - 'EndUserServiceStub', - 'AcceptLegalRequest', - 'AcceptLegalResponse', - 'IsLegalAcceptedRequest', - 'IsLegalAcceptedResponse', - 'RegisterAuthApplicationRequest', - 'RegisterAuthApplicationResponse', - 'UpdateAuthApplicationRequest', - 'UpdateAuthApplicationResponse', + "EndUserServiceBase", + "EndUserServiceStub", + "AcceptLegalRequest", + "AcceptLegalResponse", + "IsLegalAcceptedRequest", + "IsLegalAcceptedResponse", + "RegisterAuthApplicationRequest", + "RegisterAuthApplicationResponse", + "UpdateAuthApplicationRequest", + "UpdateAuthApplicationResponse", ] diff --git a/src/viam/proto/app/mltraining/__init__.py b/src/viam/proto/app/mltraining/__init__.py index 826ee9bfe..374e95793 100644 --- a/src/viam/proto/app/mltraining/__init__.py +++ b/src/viam/proto/app/mltraining/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.app.mltraining.v1.ml_training_grpc import ( - MLTrainingServiceBase, - MLTrainingServiceStub -) +""" +from ....gen.app.mltraining.v1.ml_training_grpc import MLTrainingServiceBase, MLTrainingServiceStub from ....gen.app.mltraining.v1.ml_training_pb2 import ( CancelTrainingJobRequest, CancelTrainingJobResponse, @@ -22,26 +19,26 @@ SubmitTrainingJobRequest, SubmitTrainingJobResponse, TrainingJobMetadata, - TrainingStatus + TrainingStatus, ) __all__ = [ - 'MLTrainingServiceBase', - 'MLTrainingServiceStub', - 'CancelTrainingJobRequest', - 'CancelTrainingJobResponse', - 'DeleteCompletedTrainingJobRequest', - 'DeleteCompletedTrainingJobResponse', - 'GetTrainingJobRequest', - 'GetTrainingJobResponse', - 'ListTrainingJobsRequest', - 'ListTrainingJobsResponse', - 'ModelFramework', - 'ModelType', - 'SubmitCustomTrainingJobRequest', - 'SubmitCustomTrainingJobResponse', - 'SubmitTrainingJobRequest', - 'SubmitTrainingJobResponse', - 'TrainingJobMetadata', - 'TrainingStatus', + "MLTrainingServiceBase", + "MLTrainingServiceStub", + "CancelTrainingJobRequest", + "CancelTrainingJobResponse", + "DeleteCompletedTrainingJobRequest", + "DeleteCompletedTrainingJobResponse", + "GetTrainingJobRequest", + "GetTrainingJobResponse", + "ListTrainingJobsRequest", + "ListTrainingJobsResponse", + "ModelFramework", + "ModelType", + "SubmitCustomTrainingJobRequest", + "SubmitCustomTrainingJobResponse", + "SubmitTrainingJobRequest", + "SubmitTrainingJobResponse", + "TrainingJobMetadata", + "TrainingStatus", ] diff --git a/src/viam/proto/app/packages/__init__.py b/src/viam/proto/app/packages/__init__.py index 12f084823..0bbae5588 100644 --- a/src/viam/proto/app/packages/__init__.py +++ b/src/viam/proto/app/packages/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.app.packages.v1.packages_grpc import ( - PackageServiceBase, - PackageServiceStub -) +""" +from ....gen.app.packages.v1.packages_grpc import PackageServiceBase, PackageServiceStub from ....gen.app.packages.v1.packages_pb2 import ( CreatePackageRequest, CreatePackageResponse, @@ -18,22 +15,22 @@ ListPackagesResponse, Package, PackageInfo, - PackageType + PackageType, ) __all__ = [ - 'PackageServiceBase', - 'PackageServiceStub', - 'CreatePackageRequest', - 'CreatePackageResponse', - 'DeletePackageRequest', - 'DeletePackageResponse', - 'FileInfo', - 'GetPackageRequest', - 'GetPackageResponse', - 'ListPackagesRequest', - 'ListPackagesResponse', - 'Package', - 'PackageInfo', - 'PackageType', + "PackageServiceBase", + "PackageServiceStub", + "CreatePackageRequest", + "CreatePackageResponse", + "DeletePackageRequest", + "DeletePackageResponse", + "FileInfo", + "GetPackageRequest", + "GetPackageResponse", + "ListPackagesRequest", + "ListPackagesResponse", + "Package", + "PackageInfo", + "PackageType", ] diff --git a/src/viam/proto/app/robot.py b/src/viam/proto/app/robot.py index 26a98f90c..1e402fcbb 100644 --- a/src/viam/proto/app/robot.py +++ b/src/viam/proto/app/robot.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ...gen.app.v1.robot_grpc import ( - RobotServiceBase, - RobotServiceStub -) +""" +from ...gen.app.v1.robot_grpc import RobotServiceBase, RobotServiceStub from ...gen.app.v1.robot_pb2 import ( AgentInfo, AppValidationStatus, @@ -38,42 +35,42 @@ RobotConfig, ServiceConfig, SessionsConfig, - Translation + Translation, ) __all__ = [ - 'RobotServiceBase', - 'RobotServiceStub', - 'AgentInfo', - 'AppValidationStatus', - 'AuthConfig', - 'AuthHandlerConfig', - 'CertificateRequest', - 'CertificateResponse', - 'CloudConfig', - 'ComponentConfig', - 'ConfigRequest', - 'ConfigResponse', - 'CredentialsType', - 'ExternalAuthConfig', - 'Frame', - 'JWKSFile', - 'LocationSecret', - 'LogConfiguration', - 'LogRequest', - 'LogResponse', - 'ModuleConfig', - 'NeedsRestartRequest', - 'NeedsRestartResponse', - 'NetworkConfig', - 'Orientation', - 'PackageConfig', - 'ProcessConfig', - 'RemoteAuth', - 'RemoteConfig', - 'ResourceLevelServiceConfig', - 'RobotConfig', - 'ServiceConfig', - 'SessionsConfig', - 'Translation', + "RobotServiceBase", + "RobotServiceStub", + "AgentInfo", + "AppValidationStatus", + "AuthConfig", + "AuthHandlerConfig", + "CertificateRequest", + "CertificateResponse", + "CloudConfig", + "ComponentConfig", + "ConfigRequest", + "ConfigResponse", + "CredentialsType", + "ExternalAuthConfig", + "Frame", + "JWKSFile", + "LocationSecret", + "LogConfiguration", + "LogRequest", + "LogResponse", + "ModuleConfig", + "NeedsRestartRequest", + "NeedsRestartResponse", + "NetworkConfig", + "Orientation", + "PackageConfig", + "ProcessConfig", + "RemoteAuth", + "RemoteConfig", + "ResourceLevelServiceConfig", + "RobotConfig", + "ServiceConfig", + "SessionsConfig", + "Translation", ] diff --git a/src/viam/proto/common/__init__.py b/src/viam/proto/common/__init__.py index 0cc489f85..95f0f3001 100644 --- a/src/viam/proto/common/__init__.py +++ b/src/viam/proto/common/__init__.py @@ -1,7 +1,7 @@ -''' +""" @generated by Viam. Do not edit manually! -''' +""" from ...gen.common.v1.common_pb2 import ( ActuatorStatus, AnalogStatus, @@ -9,10 +9,10 @@ DigitalInterruptStatus, DoCommandRequest, DoCommandResponse, - GeoObstacle, - GeoPoint, GeometriesInFrame, Geometry, + GeoObstacle, + GeoPoint, GetGeometriesRequest, GetGeometriesResponse, GetKinematicsRequest, @@ -31,37 +31,37 @@ Sphere, Transform, Vector3, - WorldState + WorldState, ) __all__ = [ - 'ActuatorStatus', - 'AnalogStatus', - 'Capsule', - 'DigitalInterruptStatus', - 'DoCommandRequest', - 'DoCommandResponse', - 'GeoObstacle', - 'GeoPoint', - 'GeometriesInFrame', - 'Geometry', - 'GetGeometriesRequest', - 'GetGeometriesResponse', - 'GetKinematicsRequest', - 'GetKinematicsResponse', - 'GetReadingsRequest', - 'GetReadingsResponse', - 'KinematicsFileFormat', - 'LogEntry', - 'Orientation', - 'PointCloudObject', - 'Pose', - 'PoseInFrame', - 'RectangularPrism', - 'ResourceName', - 'ResponseMetadata', - 'Sphere', - 'Transform', - 'Vector3', - 'WorldState', + "ActuatorStatus", + "AnalogStatus", + "Capsule", + "DigitalInterruptStatus", + "DoCommandRequest", + "DoCommandResponse", + "GeoObstacle", + "GeoPoint", + "GeometriesInFrame", + "Geometry", + "GetGeometriesRequest", + "GetGeometriesResponse", + "GetKinematicsRequest", + "GetKinematicsResponse", + "GetReadingsRequest", + "GetReadingsResponse", + "KinematicsFileFormat", + "LogEntry", + "Orientation", + "PointCloudObject", + "Pose", + "PoseInFrame", + "RectangularPrism", + "ResourceName", + "ResponseMetadata", + "Sphere", + "Transform", + "Vector3", + "WorldState", ] diff --git a/src/viam/proto/component/arm/__init__.py b/src/viam/proto/component/arm/__init__.py index 31a9427c8..0865aa0ef 100644 --- a/src/viam/proto/component/arm/__init__.py +++ b/src/viam/proto/component/arm/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.component.arm.v1.arm_grpc import ( - ArmServiceBase, - ArmServiceStub -) +""" +from ....gen.component.arm.v1.arm_grpc import ArmServiceBase, ArmServiceStub from ....gen.component.arm.v1.arm_pb2 import ( GetEndPositionRequest, GetEndPositionResponse, @@ -20,24 +17,24 @@ MoveToPositionResponse, Status, StopRequest, - StopResponse + StopResponse, ) __all__ = [ - 'ArmServiceBase', - 'ArmServiceStub', - 'GetEndPositionRequest', - 'GetEndPositionResponse', - 'GetJointPositionsRequest', - 'GetJointPositionsResponse', - 'IsMovingRequest', - 'IsMovingResponse', - 'JointPositions', - 'MoveToJointPositionsRequest', - 'MoveToJointPositionsResponse', - 'MoveToPositionRequest', - 'MoveToPositionResponse', - 'Status', - 'StopRequest', - 'StopResponse', + "ArmServiceBase", + "ArmServiceStub", + "GetEndPositionRequest", + "GetEndPositionResponse", + "GetJointPositionsRequest", + "GetJointPositionsResponse", + "IsMovingRequest", + "IsMovingResponse", + "JointPositions", + "MoveToJointPositionsRequest", + "MoveToJointPositionsResponse", + "MoveToPositionRequest", + "MoveToPositionResponse", + "Status", + "StopRequest", + "StopResponse", ] diff --git a/src/viam/proto/component/audioinput/__init__.py b/src/viam/proto/component/audioinput/__init__.py index dd2c28efb..e9dceb099 100644 --- a/src/viam/proto/component/audioinput/__init__.py +++ b/src/viam/proto/component/audioinput/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.component.audioinput.v1.audioinput_grpc import ( - AudioInputServiceBase, - AudioInputServiceStub -) +""" +from ....gen.component.audioinput.v1.audioinput_grpc import AudioInputServiceBase, AudioInputServiceStub from ....gen.component.audioinput.v1.audioinput_pb2 import ( AudioChunk, AudioChunkInfo, @@ -14,18 +11,18 @@ PropertiesRequest, PropertiesResponse, RecordRequest, - SampleFormat + SampleFormat, ) __all__ = [ - 'AudioInputServiceBase', - 'AudioInputServiceStub', - 'AudioChunk', - 'AudioChunkInfo', - 'ChunksRequest', - 'ChunksResponse', - 'PropertiesRequest', - 'PropertiesResponse', - 'RecordRequest', - 'SampleFormat', + "AudioInputServiceBase", + "AudioInputServiceStub", + "AudioChunk", + "AudioChunkInfo", + "ChunksRequest", + "ChunksResponse", + "PropertiesRequest", + "PropertiesResponse", + "RecordRequest", + "SampleFormat", ] diff --git a/src/viam/proto/component/base/__init__.py b/src/viam/proto/component/base/__init__.py index 25bee7808..3292255d6 100644 --- a/src/viam/proto/component/base/__init__.py +++ b/src/viam/proto/component/base/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.component.base.v1.base_grpc import ( - BaseServiceBase, - BaseServiceStub -) +""" +from ....gen.component.base.v1.base_grpc import BaseServiceBase, BaseServiceStub from ....gen.component.base.v1.base_pb2 import ( GetPropertiesRequest, GetPropertiesResponse, @@ -20,24 +17,24 @@ SpinRequest, SpinResponse, StopRequest, - StopResponse + StopResponse, ) __all__ = [ - 'BaseServiceBase', - 'BaseServiceStub', - 'GetPropertiesRequest', - 'GetPropertiesResponse', - 'IsMovingRequest', - 'IsMovingResponse', - 'MoveStraightRequest', - 'MoveStraightResponse', - 'SetPowerRequest', - 'SetPowerResponse', - 'SetVelocityRequest', - 'SetVelocityResponse', - 'SpinRequest', - 'SpinResponse', - 'StopRequest', - 'StopResponse', + "BaseServiceBase", + "BaseServiceStub", + "GetPropertiesRequest", + "GetPropertiesResponse", + "IsMovingRequest", + "IsMovingResponse", + "MoveStraightRequest", + "MoveStraightResponse", + "SetPowerRequest", + "SetPowerResponse", + "SetVelocityRequest", + "SetVelocityResponse", + "SpinRequest", + "SpinResponse", + "StopRequest", + "StopResponse", ] diff --git a/src/viam/proto/component/board/__init__.py b/src/viam/proto/component/board/__init__.py index 0685b4d7f..156984613 100644 --- a/src/viam/proto/component/board/__init__.py +++ b/src/viam/proto/component/board/__init__.py @@ -1,63 +1,60 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.component.board.v1.board_grpc import ( - BoardServiceBase, - BoardServiceStub -) +""" +from ....gen.component.board.v1.board_grpc import BoardServiceBase, BoardServiceStub from ....gen.component.board.v1.board_pb2 import ( GetDigitalInterruptValueRequest, GetDigitalInterruptValueResponse, GetGPIORequest, GetGPIOResponse, + PowerMode, PWMFrequencyRequest, PWMFrequencyResponse, PWMRequest, PWMResponse, - PowerMode, ReadAnalogReaderRequest, ReadAnalogReaderResponse, SetGPIORequest, SetGPIOResponse, + SetPowerModeRequest, + SetPowerModeResponse, SetPWMFrequencyRequest, SetPWMFrequencyResponse, SetPWMRequest, SetPWMResponse, - SetPowerModeRequest, - SetPowerModeResponse, Status, StreamTicksRequest, StreamTicksResponse, WriteAnalogRequest, - WriteAnalogResponse + WriteAnalogResponse, ) __all__ = [ - 'BoardServiceBase', - 'BoardServiceStub', - 'GetDigitalInterruptValueRequest', - 'GetDigitalInterruptValueResponse', - 'GetGPIORequest', - 'GetGPIOResponse', - 'PWMFrequencyRequest', - 'PWMFrequencyResponse', - 'PWMRequest', - 'PWMResponse', - 'PowerMode', - 'ReadAnalogReaderRequest', - 'ReadAnalogReaderResponse', - 'SetGPIORequest', - 'SetGPIOResponse', - 'SetPWMFrequencyRequest', - 'SetPWMFrequencyResponse', - 'SetPWMRequest', - 'SetPWMResponse', - 'SetPowerModeRequest', - 'SetPowerModeResponse', - 'Status', - 'StreamTicksRequest', - 'StreamTicksResponse', - 'WriteAnalogRequest', - 'WriteAnalogResponse', + "BoardServiceBase", + "BoardServiceStub", + "GetDigitalInterruptValueRequest", + "GetDigitalInterruptValueResponse", + "GetGPIORequest", + "GetGPIOResponse", + "PWMFrequencyRequest", + "PWMFrequencyResponse", + "PWMRequest", + "PWMResponse", + "PowerMode", + "ReadAnalogReaderRequest", + "ReadAnalogReaderResponse", + "SetGPIORequest", + "SetGPIOResponse", + "SetPWMFrequencyRequest", + "SetPWMFrequencyResponse", + "SetPWMRequest", + "SetPWMResponse", + "SetPowerModeRequest", + "SetPowerModeResponse", + "Status", + "StreamTicksRequest", + "StreamTicksResponse", + "WriteAnalogRequest", + "WriteAnalogResponse", ] diff --git a/src/viam/proto/component/camera/__init__.py b/src/viam/proto/component/camera/__init__.py index 4a901f5a2..0accf72ca 100644 --- a/src/viam/proto/component/camera/__init__.py +++ b/src/viam/proto/component/camera/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.component.camera.v1.camera_grpc import ( - CameraServiceBase, - CameraServiceStub -) +""" +from ....gen.component.camera.v1.camera_grpc import CameraServiceBase, CameraServiceStub from ....gen.component.camera.v1.camera_pb2 import ( DistortionParameters, Format, @@ -22,26 +19,26 @@ Property, RenderFrameRequest, Webcam, - Webcams + Webcams, ) __all__ = [ - 'CameraServiceBase', - 'CameraServiceStub', - 'DistortionParameters', - 'Format', - 'GetImageRequest', - 'GetImageResponse', - 'GetImagesRequest', - 'GetImagesResponse', - 'GetPointCloudRequest', - 'GetPointCloudResponse', - 'GetPropertiesRequest', - 'GetPropertiesResponse', - 'Image', - 'IntrinsicParameters', - 'Property', - 'RenderFrameRequest', - 'Webcam', - 'Webcams', + "CameraServiceBase", + "CameraServiceStub", + "DistortionParameters", + "Format", + "GetImageRequest", + "GetImageResponse", + "GetImagesRequest", + "GetImagesResponse", + "GetPointCloudRequest", + "GetPointCloudResponse", + "GetPropertiesRequest", + "GetPropertiesResponse", + "Image", + "IntrinsicParameters", + "Property", + "RenderFrameRequest", + "Webcam", + "Webcams", ] diff --git a/src/viam/proto/component/encoder/__init__.py b/src/viam/proto/component/encoder/__init__.py index 5422736db..f0b1494cf 100644 --- a/src/viam/proto/component/encoder/__init__.py +++ b/src/viam/proto/component/encoder/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.component.encoder.v1.encoder_grpc import ( - EncoderServiceBase, - EncoderServiceStub -) +""" +from ....gen.component.encoder.v1.encoder_grpc import EncoderServiceBase, EncoderServiceStub from ....gen.component.encoder.v1.encoder_pb2 import ( GetPositionRequest, GetPositionResponse, @@ -13,17 +10,17 @@ GetPropertiesResponse, PositionType, ResetPositionRequest, - ResetPositionResponse + ResetPositionResponse, ) __all__ = [ - 'EncoderServiceBase', - 'EncoderServiceStub', - 'GetPositionRequest', - 'GetPositionResponse', - 'GetPropertiesRequest', - 'GetPropertiesResponse', - 'PositionType', - 'ResetPositionRequest', - 'ResetPositionResponse', + "EncoderServiceBase", + "EncoderServiceStub", + "GetPositionRequest", + "GetPositionResponse", + "GetPropertiesRequest", + "GetPropertiesResponse", + "PositionType", + "ResetPositionRequest", + "ResetPositionResponse", ] diff --git a/src/viam/proto/component/gantry/__init__.py b/src/viam/proto/component/gantry/__init__.py index f7f93ab2c..460886978 100644 --- a/src/viam/proto/component/gantry/__init__.py +++ b/src/viam/proto/component/gantry/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.component.gantry.v1.gantry_grpc import ( - GantryServiceBase, - GantryServiceStub -) +""" +from ....gen.component.gantry.v1.gantry_grpc import GantryServiceBase, GantryServiceStub from ....gen.component.gantry.v1.gantry_pb2 import ( GetLengthsRequest, GetLengthsResponse, @@ -19,23 +16,23 @@ MoveToPositionResponse, Status, StopRequest, - StopResponse + StopResponse, ) __all__ = [ - 'GantryServiceBase', - 'GantryServiceStub', - 'GetLengthsRequest', - 'GetLengthsResponse', - 'GetPositionRequest', - 'GetPositionResponse', - 'HomeRequest', - 'HomeResponse', - 'IsMovingRequest', - 'IsMovingResponse', - 'MoveToPositionRequest', - 'MoveToPositionResponse', - 'Status', - 'StopRequest', - 'StopResponse', + "GantryServiceBase", + "GantryServiceStub", + "GetLengthsRequest", + "GetLengthsResponse", + "GetPositionRequest", + "GetPositionResponse", + "HomeRequest", + "HomeResponse", + "IsMovingRequest", + "IsMovingResponse", + "MoveToPositionRequest", + "MoveToPositionResponse", + "Status", + "StopRequest", + "StopResponse", ] diff --git a/src/viam/proto/component/generic/__init__.py b/src/viam/proto/component/generic/__init__.py index 26d6cf52b..29c5e6c71 100644 --- a/src/viam/proto/component/generic/__init__.py +++ b/src/viam/proto/component/generic/__init__.py @@ -1,13 +1,10 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.component.generic.v1.generic_grpc import ( - GenericServiceBase, - GenericServiceStub -) +""" +from ....gen.component.generic.v1.generic_grpc import GenericServiceBase, GenericServiceStub __all__ = [ - 'GenericServiceBase', - 'GenericServiceStub', + "GenericServiceBase", + "GenericServiceStub", ] diff --git a/src/viam/proto/component/gripper/__init__.py b/src/viam/proto/component/gripper/__init__.py index 6e1edb733..12f5ccbb2 100644 --- a/src/viam/proto/component/gripper/__init__.py +++ b/src/viam/proto/component/gripper/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.component.gripper.v1.gripper_grpc import ( - GripperServiceBase, - GripperServiceStub -) +""" +from ....gen.component.gripper.v1.gripper_grpc import GripperServiceBase, GripperServiceStub from ....gen.component.gripper.v1.gripper_pb2 import ( GrabRequest, GrabResponse, @@ -14,18 +11,18 @@ OpenRequest, OpenResponse, StopRequest, - StopResponse + StopResponse, ) __all__ = [ - 'GripperServiceBase', - 'GripperServiceStub', - 'GrabRequest', - 'GrabResponse', - 'IsMovingRequest', - 'IsMovingResponse', - 'OpenRequest', - 'OpenResponse', - 'StopRequest', - 'StopResponse', + "GripperServiceBase", + "GripperServiceStub", + "GrabRequest", + "GrabResponse", + "IsMovingRequest", + "IsMovingResponse", + "OpenRequest", + "OpenResponse", + "StopRequest", + "StopResponse", ] diff --git a/src/viam/proto/component/inputcontroller/__init__.py b/src/viam/proto/component/inputcontroller/__init__.py index cd24d9af6..e91791faf 100644 --- a/src/viam/proto/component/inputcontroller/__init__.py +++ b/src/viam/proto/component/inputcontroller/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.component.inputcontroller.v1.input_controller_grpc import ( - InputControllerServiceBase, - InputControllerServiceStub -) +""" +from ....gen.component.inputcontroller.v1.input_controller_grpc import InputControllerServiceBase, InputControllerServiceStub from ....gen.component.inputcontroller.v1.input_controller_pb2 import ( Event, GetControlsRequest, @@ -16,20 +13,20 @@ StreamEventsRequest, StreamEventsResponse, TriggerEventRequest, - TriggerEventResponse + TriggerEventResponse, ) __all__ = [ - 'InputControllerServiceBase', - 'InputControllerServiceStub', - 'Event', - 'GetControlsRequest', - 'GetControlsResponse', - 'GetEventsRequest', - 'GetEventsResponse', - 'Status', - 'StreamEventsRequest', - 'StreamEventsResponse', - 'TriggerEventRequest', - 'TriggerEventResponse', + "InputControllerServiceBase", + "InputControllerServiceStub", + "Event", + "GetControlsRequest", + "GetControlsResponse", + "GetEventsRequest", + "GetEventsResponse", + "Status", + "StreamEventsRequest", + "StreamEventsResponse", + "TriggerEventRequest", + "TriggerEventResponse", ] diff --git a/src/viam/proto/component/motor/__init__.py b/src/viam/proto/component/motor/__init__.py index aec9b4d74..eebdf5220 100644 --- a/src/viam/proto/component/motor/__init__.py +++ b/src/viam/proto/component/motor/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.component.motor.v1.motor_grpc import ( - MotorServiceBase, - MotorServiceStub -) +""" +from ....gen.component.motor.v1.motor_grpc import MotorServiceBase, MotorServiceStub from ....gen.component.motor.v1.motor_pb2 import ( GetPositionRequest, GetPositionResponse, @@ -25,29 +22,29 @@ SetPowerResponse, Status, StopRequest, - StopResponse + StopResponse, ) __all__ = [ - 'MotorServiceBase', - 'MotorServiceStub', - 'GetPositionRequest', - 'GetPositionResponse', - 'GetPropertiesRequest', - 'GetPropertiesResponse', - 'GoForRequest', - 'GoForResponse', - 'GoToRequest', - 'GoToResponse', - 'IsMovingRequest', - 'IsMovingResponse', - 'IsPoweredRequest', - 'IsPoweredResponse', - 'ResetZeroPositionRequest', - 'ResetZeroPositionResponse', - 'SetPowerRequest', - 'SetPowerResponse', - 'Status', - 'StopRequest', - 'StopResponse', + "MotorServiceBase", + "MotorServiceStub", + "GetPositionRequest", + "GetPositionResponse", + "GetPropertiesRequest", + "GetPropertiesResponse", + "GoForRequest", + "GoForResponse", + "GoToRequest", + "GoToResponse", + "IsMovingRequest", + "IsMovingResponse", + "IsPoweredRequest", + "IsPoweredResponse", + "ResetZeroPositionRequest", + "ResetZeroPositionResponse", + "SetPowerRequest", + "SetPowerResponse", + "Status", + "StopRequest", + "StopResponse", ] diff --git a/src/viam/proto/component/movementsensor/__init__.py b/src/viam/proto/component/movementsensor/__init__.py index 411d8a872..62719b809 100644 --- a/src/viam/proto/component/movementsensor/__init__.py +++ b/src/viam/proto/component/movementsensor/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.component.movementsensor.v1.movementsensor_grpc import ( - MovementSensorServiceBase, - MovementSensorServiceStub -) +""" +from ....gen.component.movementsensor.v1.movementsensor_grpc import MovementSensorServiceBase, MovementSensorServiceStub from ....gen.component.movementsensor.v1.movementsensor_pb2 import ( GetAccuracyRequest, GetAccuracyResponse, @@ -22,26 +19,26 @@ GetPositionRequest, GetPositionResponse, GetPropertiesRequest, - GetPropertiesResponse + GetPropertiesResponse, ) __all__ = [ - 'MovementSensorServiceBase', - 'MovementSensorServiceStub', - 'GetAccuracyRequest', - 'GetAccuracyResponse', - 'GetAngularVelocityRequest', - 'GetAngularVelocityResponse', - 'GetCompassHeadingRequest', - 'GetCompassHeadingResponse', - 'GetLinearAccelerationRequest', - 'GetLinearAccelerationResponse', - 'GetLinearVelocityRequest', - 'GetLinearVelocityResponse', - 'GetOrientationRequest', - 'GetOrientationResponse', - 'GetPositionRequest', - 'GetPositionResponse', - 'GetPropertiesRequest', - 'GetPropertiesResponse', + "MovementSensorServiceBase", + "MovementSensorServiceStub", + "GetAccuracyRequest", + "GetAccuracyResponse", + "GetAngularVelocityRequest", + "GetAngularVelocityResponse", + "GetCompassHeadingRequest", + "GetCompassHeadingResponse", + "GetLinearAccelerationRequest", + "GetLinearAccelerationResponse", + "GetLinearVelocityRequest", + "GetLinearVelocityResponse", + "GetOrientationRequest", + "GetOrientationResponse", + "GetPositionRequest", + "GetPositionResponse", + "GetPropertiesRequest", + "GetPropertiesResponse", ] diff --git a/src/viam/proto/component/posetracker/__init__.py b/src/viam/proto/component/posetracker/__init__.py index e1cc11727..7b81b96de 100644 --- a/src/viam/proto/component/posetracker/__init__.py +++ b/src/viam/proto/component/posetracker/__init__.py @@ -1,19 +1,13 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.component.posetracker.v1.pose_tracker_grpc import ( - PoseTrackerServiceBase, - PoseTrackerServiceStub -) -from ....gen.component.posetracker.v1.pose_tracker_pb2 import ( - GetPosesRequest, - GetPosesResponse -) +""" +from ....gen.component.posetracker.v1.pose_tracker_grpc import PoseTrackerServiceBase, PoseTrackerServiceStub +from ....gen.component.posetracker.v1.pose_tracker_pb2 import GetPosesRequest, GetPosesResponse __all__ = [ - 'PoseTrackerServiceBase', - 'PoseTrackerServiceStub', - 'GetPosesRequest', - 'GetPosesResponse', + "PoseTrackerServiceBase", + "PoseTrackerServiceStub", + "GetPosesRequest", + "GetPosesResponse", ] diff --git a/src/viam/proto/component/powersensor/__init__.py b/src/viam/proto/component/powersensor/__init__.py index f5927d2ad..60b2e01e1 100644 --- a/src/viam/proto/component/powersensor/__init__.py +++ b/src/viam/proto/component/powersensor/__init__.py @@ -1,27 +1,24 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.component.powersensor.v1.powersensor_grpc import ( - PowerSensorServiceBase, - PowerSensorServiceStub -) +""" +from ....gen.component.powersensor.v1.powersensor_grpc import PowerSensorServiceBase, PowerSensorServiceStub from ....gen.component.powersensor.v1.powersensor_pb2 import ( GetCurrentRequest, GetCurrentResponse, GetPowerRequest, GetPowerResponse, GetVoltageRequest, - GetVoltageResponse + GetVoltageResponse, ) __all__ = [ - 'PowerSensorServiceBase', - 'PowerSensorServiceStub', - 'GetCurrentRequest', - 'GetCurrentResponse', - 'GetPowerRequest', - 'GetPowerResponse', - 'GetVoltageRequest', - 'GetVoltageResponse', + "PowerSensorServiceBase", + "PowerSensorServiceStub", + "GetCurrentRequest", + "GetCurrentResponse", + "GetPowerRequest", + "GetPowerResponse", + "GetVoltageRequest", + "GetVoltageResponse", ] diff --git a/src/viam/proto/component/sensor/__init__.py b/src/viam/proto/component/sensor/__init__.py index 6e608e6cf..8c5a6172f 100644 --- a/src/viam/proto/component/sensor/__init__.py +++ b/src/viam/proto/component/sensor/__init__.py @@ -1,13 +1,10 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.component.sensor.v1.sensor_grpc import ( - SensorServiceBase, - SensorServiceStub -) +""" +from ....gen.component.sensor.v1.sensor_grpc import SensorServiceBase, SensorServiceStub __all__ = [ - 'SensorServiceBase', - 'SensorServiceStub', + "SensorServiceBase", + "SensorServiceStub", ] diff --git a/src/viam/proto/component/servo/__init__.py b/src/viam/proto/component/servo/__init__.py index baf278006..d7836b15a 100644 --- a/src/viam/proto/component/servo/__init__.py +++ b/src/viam/proto/component/servo/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.component.servo.v1.servo_grpc import ( - ServoServiceBase, - ServoServiceStub -) +""" +from ....gen.component.servo.v1.servo_grpc import ServoServiceBase, ServoServiceStub from ....gen.component.servo.v1.servo_pb2 import ( GetPositionRequest, GetPositionResponse, @@ -15,19 +12,19 @@ MoveResponse, Status, StopRequest, - StopResponse + StopResponse, ) __all__ = [ - 'ServoServiceBase', - 'ServoServiceStub', - 'GetPositionRequest', - 'GetPositionResponse', - 'IsMovingRequest', - 'IsMovingResponse', - 'MoveRequest', - 'MoveResponse', - 'Status', - 'StopRequest', - 'StopResponse', + "ServoServiceBase", + "ServoServiceStub", + "GetPositionRequest", + "GetPositionResponse", + "IsMovingRequest", + "IsMovingResponse", + "MoveRequest", + "MoveResponse", + "Status", + "StopRequest", + "StopResponse", ] diff --git a/src/viam/proto/component/testecho/__init__.py b/src/viam/proto/component/testecho/__init__.py index 594fdf368..eca4f956f 100644 --- a/src/viam/proto/component/testecho/__init__.py +++ b/src/viam/proto/component/testecho/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.component.testecho.v1.testecho_grpc import ( - TestEchoServiceBase, - TestEchoServiceStub -) +""" +from ....gen.component.testecho.v1.testecho_grpc import TestEchoServiceBase, TestEchoServiceStub from ....gen.component.testecho.v1.testecho_pb2 import ( EchoBiDiRequest, EchoBiDiResponse, @@ -14,18 +11,18 @@ EchoRequest, EchoResponse, StopRequest, - StopResponse + StopResponse, ) __all__ = [ - 'TestEchoServiceBase', - 'TestEchoServiceStub', - 'EchoBiDiRequest', - 'EchoBiDiResponse', - 'EchoMultipleRequest', - 'EchoMultipleResponse', - 'EchoRequest', - 'EchoResponse', - 'StopRequest', - 'StopResponse', + "TestEchoServiceBase", + "TestEchoServiceStub", + "EchoBiDiRequest", + "EchoBiDiResponse", + "EchoMultipleRequest", + "EchoMultipleResponse", + "EchoRequest", + "EchoResponse", + "StopRequest", + "StopResponse", ] diff --git a/src/viam/proto/module/__init__.py b/src/viam/proto/module/__init__.py index 5a21dd40e..0a1e7372e 100644 --- a/src/viam/proto/module/__init__.py +++ b/src/viam/proto/module/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ...gen.module.v1.module_grpc import ( - ModuleServiceBase, - ModuleServiceStub -) +""" +from ...gen.module.v1.module_grpc import ModuleServiceBase, ModuleServiceStub from ...gen.module.v1.module_pb2 import ( AddResourceRequest, AddResourceResponse, @@ -18,22 +15,22 @@ RemoveResourceRequest, RemoveResourceResponse, ValidateConfigRequest, - ValidateConfigResponse + ValidateConfigResponse, ) __all__ = [ - 'ModuleServiceBase', - 'ModuleServiceStub', - 'AddResourceRequest', - 'AddResourceResponse', - 'HandlerDefinition', - 'HandlerMap', - 'ReadyRequest', - 'ReadyResponse', - 'ReconfigureResourceRequest', - 'ReconfigureResourceResponse', - 'RemoveResourceRequest', - 'RemoveResourceResponse', - 'ValidateConfigRequest', - 'ValidateConfigResponse', + "ModuleServiceBase", + "ModuleServiceStub", + "AddResourceRequest", + "AddResourceResponse", + "HandlerDefinition", + "HandlerMap", + "ReadyRequest", + "ReadyResponse", + "ReconfigureResourceRequest", + "ReconfigureResourceResponse", + "RemoveResourceRequest", + "RemoveResourceResponse", + "ValidateConfigRequest", + "ValidateConfigResponse", ] diff --git a/src/viam/proto/provisioning/__init__.py b/src/viam/proto/provisioning/__init__.py index ce58f8648..d2a7ba0e5 100644 --- a/src/viam/proto/provisioning/__init__.py +++ b/src/viam/proto/provisioning/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ...gen.provisioning.v1.provisioning_grpc import ( - ProvisioningServiceBase, - ProvisioningServiceStub -) +""" +from ...gen.provisioning.v1.provisioning_grpc import ProvisioningServiceBase, ProvisioningServiceStub from ...gen.provisioning.v1.provisioning_pb2 import ( CloudConfig, GetNetworkListRequest, @@ -17,21 +14,21 @@ SetNetworkCredentialsRequest, SetNetworkCredentialsResponse, SetSmartMachineCredentialsRequest, - SetSmartMachineCredentialsResponse + SetSmartMachineCredentialsResponse, ) __all__ = [ - 'ProvisioningServiceBase', - 'ProvisioningServiceStub', - 'CloudConfig', - 'GetNetworkListRequest', - 'GetNetworkListResponse', - 'GetSmartMachineStatusRequest', - 'GetSmartMachineStatusResponse', - 'NetworkInfo', - 'ProvisioningInfo', - 'SetNetworkCredentialsRequest', - 'SetNetworkCredentialsResponse', - 'SetSmartMachineCredentialsRequest', - 'SetSmartMachineCredentialsResponse', + "ProvisioningServiceBase", + "ProvisioningServiceStub", + "CloudConfig", + "GetNetworkListRequest", + "GetNetworkListResponse", + "GetSmartMachineStatusRequest", + "GetSmartMachineStatusResponse", + "NetworkInfo", + "ProvisioningInfo", + "SetNetworkCredentialsRequest", + "SetNetworkCredentialsResponse", + "SetSmartMachineCredentialsRequest", + "SetSmartMachineCredentialsResponse", ] diff --git a/src/viam/proto/robot/__init__.py b/src/viam/proto/robot/__init__.py index 4a8bbefc7..767641ef2 100644 --- a/src/viam/proto/robot/__init__.py +++ b/src/viam/proto/robot/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ...gen.robot.v1.robot_grpc import ( - RobotServiceBase, - RobotServiceStub -) +""" +from ...gen.robot.v1.robot_grpc import RobotServiceBase, RobotServiceStub from ...gen.robot.v1.robot_pb2 import ( BlockForOperationRequest, BlockForOperationResponse, @@ -52,56 +49,56 @@ TransformPCDRequest, TransformPCDResponse, TransformPoseRequest, - TransformPoseResponse + TransformPoseResponse, ) __all__ = [ - 'RobotServiceBase', - 'RobotServiceStub', - 'BlockForOperationRequest', - 'BlockForOperationResponse', - 'CancelOperationRequest', - 'CancelOperationResponse', - 'DiscoverComponentsRequest', - 'DiscoverComponentsResponse', - 'Discovery', - 'DiscoveryQuery', - 'FrameSystemConfig', - 'FrameSystemConfigRequest', - 'FrameSystemConfigResponse', - 'GetCloudMetadataRequest', - 'GetCloudMetadataResponse', - 'GetOperationsRequest', - 'GetOperationsResponse', - 'GetSessionsRequest', - 'GetSessionsResponse', - 'GetStatusRequest', - 'GetStatusResponse', - 'LogRequest', - 'LogResponse', - 'Operation', - 'PeerConnectionInfo', - 'PeerConnectionType', - 'ResourceNamesRequest', - 'ResourceNamesResponse', - 'ResourceRPCSubtype', - 'ResourceRPCSubtypesRequest', - 'ResourceRPCSubtypesResponse', - 'RestartModuleRequest', - 'RestartModuleResponse', - 'SendSessionHeartbeatRequest', - 'SendSessionHeartbeatResponse', - 'Session', - 'StartSessionRequest', - 'StartSessionResponse', - 'Status', - 'StopAllRequest', - 'StopAllResponse', - 'StopExtraParameters', - 'StreamStatusRequest', - 'StreamStatusResponse', - 'TransformPCDRequest', - 'TransformPCDResponse', - 'TransformPoseRequest', - 'TransformPoseResponse', + "RobotServiceBase", + "RobotServiceStub", + "BlockForOperationRequest", + "BlockForOperationResponse", + "CancelOperationRequest", + "CancelOperationResponse", + "DiscoverComponentsRequest", + "DiscoverComponentsResponse", + "Discovery", + "DiscoveryQuery", + "FrameSystemConfig", + "FrameSystemConfigRequest", + "FrameSystemConfigResponse", + "GetCloudMetadataRequest", + "GetCloudMetadataResponse", + "GetOperationsRequest", + "GetOperationsResponse", + "GetSessionsRequest", + "GetSessionsResponse", + "GetStatusRequest", + "GetStatusResponse", + "LogRequest", + "LogResponse", + "Operation", + "PeerConnectionInfo", + "PeerConnectionType", + "ResourceNamesRequest", + "ResourceNamesResponse", + "ResourceRPCSubtype", + "ResourceRPCSubtypesRequest", + "ResourceRPCSubtypesResponse", + "RestartModuleRequest", + "RestartModuleResponse", + "SendSessionHeartbeatRequest", + "SendSessionHeartbeatResponse", + "Session", + "StartSessionRequest", + "StartSessionResponse", + "Status", + "StopAllRequest", + "StopAllResponse", + "StopExtraParameters", + "StreamStatusRequest", + "StreamStatusResponse", + "TransformPCDRequest", + "TransformPCDResponse", + "TransformPoseRequest", + "TransformPoseResponse", ] diff --git a/src/viam/proto/rpc/auth.py b/src/viam/proto/rpc/auth.py index 36d6a9257..23f3d3562 100644 --- a/src/viam/proto/rpc/auth.py +++ b/src/viam/proto/rpc/auth.py @@ -1,29 +1,24 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ...gen.proto.rpc.v1.auth_grpc import ( - AuthServiceBase, - AuthServiceStub, - ExternalAuthServiceBase, - ExternalAuthServiceStub -) +""" +from ...gen.proto.rpc.v1.auth_grpc import AuthServiceBase, AuthServiceStub, ExternalAuthServiceBase, ExternalAuthServiceStub from ...gen.proto.rpc.v1.auth_pb2 import ( AuthenticateRequest, AuthenticateResponse, AuthenticateToRequest, AuthenticateToResponse, - Credentials + Credentials, ) __all__ = [ - 'AuthServiceBase', - 'AuthServiceStub', - 'ExternalAuthServiceBase', - 'ExternalAuthServiceStub', - 'AuthenticateRequest', - 'AuthenticateResponse', - 'AuthenticateToRequest', - 'AuthenticateToResponse', - 'Credentials', + "AuthServiceBase", + "AuthServiceStub", + "ExternalAuthServiceBase", + "ExternalAuthServiceStub", + "AuthenticateRequest", + "AuthenticateResponse", + "AuthenticateToRequest", + "AuthenticateToResponse", + "Credentials", ] diff --git a/src/viam/proto/rpc/examples/echo/__init__.py b/src/viam/proto/rpc/examples/echo/__init__.py index 7e350742b..a74bf6539 100644 --- a/src/viam/proto/rpc/examples/echo/__init__.py +++ b/src/viam/proto/rpc/examples/echo/__init__.py @@ -1,27 +1,24 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from .....gen.proto.rpc.examples.echo.v1.echo_grpc import ( - EchoServiceBase, - EchoServiceStub -) +""" +from .....gen.proto.rpc.examples.echo.v1.echo_grpc import EchoServiceBase, EchoServiceStub from .....gen.proto.rpc.examples.echo.v1.echo_pb2 import ( EchoBiDiRequest, EchoBiDiResponse, EchoMultipleRequest, EchoMultipleResponse, EchoRequest, - EchoResponse + EchoResponse, ) __all__ = [ - 'EchoServiceBase', - 'EchoServiceStub', - 'EchoBiDiRequest', - 'EchoBiDiResponse', - 'EchoMultipleRequest', - 'EchoMultipleResponse', - 'EchoRequest', - 'EchoResponse', + "EchoServiceBase", + "EchoServiceStub", + "EchoBiDiRequest", + "EchoBiDiResponse", + "EchoMultipleRequest", + "EchoMultipleResponse", + "EchoRequest", + "EchoResponse", ] diff --git a/src/viam/proto/rpc/examples/echoresource/__init__.py b/src/viam/proto/rpc/examples/echoresource/__init__.py index aafd09bc6..771db9fe9 100644 --- a/src/viam/proto/rpc/examples/echoresource/__init__.py +++ b/src/viam/proto/rpc/examples/echoresource/__init__.py @@ -1,27 +1,24 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from .....gen.proto.rpc.examples.echoresource.v1.echoresource_grpc import ( - EchoResourceServiceBase, - EchoResourceServiceStub -) +""" +from .....gen.proto.rpc.examples.echoresource.v1.echoresource_grpc import EchoResourceServiceBase, EchoResourceServiceStub from .....gen.proto.rpc.examples.echoresource.v1.echoresource_pb2 import ( EchoResourceBiDiRequest, EchoResourceBiDiResponse, EchoResourceMultipleRequest, EchoResourceMultipleResponse, EchoResourceRequest, - EchoResourceResponse + EchoResourceResponse, ) __all__ = [ - 'EchoResourceServiceBase', - 'EchoResourceServiceStub', - 'EchoResourceBiDiRequest', - 'EchoResourceBiDiResponse', - 'EchoResourceMultipleRequest', - 'EchoResourceMultipleResponse', - 'EchoResourceRequest', - 'EchoResourceResponse', + "EchoResourceServiceBase", + "EchoResourceServiceStub", + "EchoResourceBiDiRequest", + "EchoResourceBiDiResponse", + "EchoResourceMultipleRequest", + "EchoResourceMultipleResponse", + "EchoResourceRequest", + "EchoResourceResponse", ] diff --git a/src/viam/proto/rpc/examples/fileupload/__init__.py b/src/viam/proto/rpc/examples/fileupload/__init__.py index ded61b437..a1a2203e4 100644 --- a/src/viam/proto/rpc/examples/fileupload/__init__.py +++ b/src/viam/proto/rpc/examples/fileupload/__init__.py @@ -1,19 +1,13 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from .....gen.proto.rpc.examples.fileupload.v1.fileupload_grpc import ( - FileUploadServiceBase, - FileUploadServiceStub -) -from .....gen.proto.rpc.examples.fileupload.v1.fileupload_pb2 import ( - UploadFileRequest, - UploadFileResponse -) +""" +from .....gen.proto.rpc.examples.fileupload.v1.fileupload_grpc import FileUploadServiceBase, FileUploadServiceStub +from .....gen.proto.rpc.examples.fileupload.v1.fileupload_pb2 import UploadFileRequest, UploadFileResponse __all__ = [ - 'FileUploadServiceBase', - 'FileUploadServiceStub', - 'UploadFileRequest', - 'UploadFileResponse', + "FileUploadServiceBase", + "FileUploadServiceStub", + "UploadFileRequest", + "UploadFileResponse", ] diff --git a/src/viam/proto/rpc/webrtc/grpc.py b/src/viam/proto/rpc/webrtc/grpc.py index 9c345ddf9..02d27d2e0 100644 --- a/src/viam/proto/rpc/webrtc/grpc.py +++ b/src/viam/proto/rpc/webrtc/grpc.py @@ -1,7 +1,7 @@ -''' +""" @generated by Viam. Do not edit manually! -''' +""" from ....gen.proto.rpc.webrtc.v1.grpc_pb2 import ( Metadata, PacketMessage, @@ -13,25 +13,22 @@ ResponseMessage, ResponseTrailers, Stream, - Strings -) -from ....gen.proto.rpc.webrtc.v1.signaling_grpc import ( - SignalingServiceBase, - SignalingServiceStub + Strings, ) +from ....gen.proto.rpc.webrtc.v1.signaling_grpc import SignalingServiceBase, SignalingServiceStub __all__ = [ - 'Metadata', - 'PacketMessage', - 'Request', - 'RequestHeaders', - 'RequestMessage', - 'Response', - 'ResponseHeaders', - 'ResponseMessage', - 'ResponseTrailers', - 'Stream', - 'Strings', - 'SignalingServiceBase', - 'SignalingServiceStub', + "Metadata", + "PacketMessage", + "Request", + "RequestHeaders", + "RequestMessage", + "Response", + "ResponseHeaders", + "ResponseMessage", + "ResponseTrailers", + "Stream", + "Strings", + "SignalingServiceBase", + "SignalingServiceStub", ] diff --git a/src/viam/proto/rpc/webrtc/signaling.py b/src/viam/proto/rpc/webrtc/signaling.py index af72881b8..11ce2fa83 100644 --- a/src/viam/proto/rpc/webrtc/signaling.py +++ b/src/viam/proto/rpc/webrtc/signaling.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.proto.rpc.webrtc.v1.signaling_grpc import ( - SignalingServiceBase, - SignalingServiceStub -) +""" +from ....gen.proto.rpc.webrtc.v1.signaling_grpc import SignalingServiceBase, SignalingServiceStub from ....gen.proto.rpc.webrtc.v1.signaling_pb2 import ( AnswerRequest, AnswerRequestDoneStage, @@ -27,31 +24,31 @@ ICEServer, OptionalWebRTCConfigRequest, OptionalWebRTCConfigResponse, - WebRTCConfig + WebRTCConfig, ) __all__ = [ - 'SignalingServiceBase', - 'SignalingServiceStub', - 'AnswerRequest', - 'AnswerRequestDoneStage', - 'AnswerRequestErrorStage', - 'AnswerRequestInitStage', - 'AnswerRequestUpdateStage', - 'AnswerResponse', - 'AnswerResponseDoneStage', - 'AnswerResponseErrorStage', - 'AnswerResponseInitStage', - 'AnswerResponseUpdateStage', - 'CallRequest', - 'CallResponse', - 'CallResponseInitStage', - 'CallResponseUpdateStage', - 'CallUpdateRequest', - 'CallUpdateResponse', - 'ICECandidate', - 'ICEServer', - 'OptionalWebRTCConfigRequest', - 'OptionalWebRTCConfigResponse', - 'WebRTCConfig', + "SignalingServiceBase", + "SignalingServiceStub", + "AnswerRequest", + "AnswerRequestDoneStage", + "AnswerRequestErrorStage", + "AnswerRequestInitStage", + "AnswerRequestUpdateStage", + "AnswerResponse", + "AnswerResponseDoneStage", + "AnswerResponseErrorStage", + "AnswerResponseInitStage", + "AnswerResponseUpdateStage", + "CallRequest", + "CallResponse", + "CallResponseInitStage", + "CallResponseUpdateStage", + "CallUpdateRequest", + "CallUpdateResponse", + "ICECandidate", + "ICEServer", + "OptionalWebRTCConfigRequest", + "OptionalWebRTCConfigResponse", + "WebRTCConfig", ] diff --git a/src/viam/proto/service/datamanager/__init__.py b/src/viam/proto/service/datamanager/__init__.py index e21ab8892..f26e297d1 100644 --- a/src/viam/proto/service/datamanager/__init__.py +++ b/src/viam/proto/service/datamanager/__init__.py @@ -1,19 +1,13 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.service.datamanager.v1.data_manager_grpc import ( - DataManagerServiceBase, - DataManagerServiceStub -) -from ....gen.service.datamanager.v1.data_manager_pb2 import ( - SyncRequest, - SyncResponse -) +""" +from ....gen.service.datamanager.v1.data_manager_grpc import DataManagerServiceBase, DataManagerServiceStub +from ....gen.service.datamanager.v1.data_manager_pb2 import SyncRequest, SyncResponse __all__ = [ - 'DataManagerServiceBase', - 'DataManagerServiceStub', - 'SyncRequest', - 'SyncResponse', + "DataManagerServiceBase", + "DataManagerServiceStub", + "SyncRequest", + "SyncResponse", ] diff --git a/src/viam/proto/service/generic/__init__.py b/src/viam/proto/service/generic/__init__.py index 27fd5f30e..ab4e26098 100644 --- a/src/viam/proto/service/generic/__init__.py +++ b/src/viam/proto/service/generic/__init__.py @@ -1,13 +1,10 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.service.generic.v1.generic_grpc import ( - GenericServiceBase, - GenericServiceStub -) +""" +from ....gen.service.generic.v1.generic_grpc import GenericServiceBase, GenericServiceStub __all__ = [ - 'GenericServiceBase', - 'GenericServiceStub', + "GenericServiceBase", + "GenericServiceStub", ] diff --git a/src/viam/proto/service/mlmodel/__init__.py b/src/viam/proto/service/mlmodel/__init__.py index 1d6e56642..42667e66c 100644 --- a/src/viam/proto/service/mlmodel/__init__.py +++ b/src/viam/proto/service/mlmodel/__init__.py @@ -1,24 +1,21 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.service.mlmodel.v1.mlmodel_grpc import ( - MLModelServiceBase, - MLModelServiceStub -) +""" +from ....gen.service.mlmodel.v1.mlmodel_grpc import MLModelServiceBase, MLModelServiceStub from ....gen.service.mlmodel.v1.mlmodel_pb2 import ( File, FlatTensor, FlatTensorDataDouble, FlatTensorDataFloat, + FlatTensorDataInt8, FlatTensorDataInt16, FlatTensorDataInt32, FlatTensorDataInt64, - FlatTensorDataInt8, + FlatTensorDataUInt8, FlatTensorDataUInt16, FlatTensorDataUInt32, FlatTensorDataUInt64, - FlatTensorDataUInt8, FlatTensors, InferRequest, InferResponse, @@ -26,30 +23,30 @@ Metadata, MetadataRequest, MetadataResponse, - TensorInfo + TensorInfo, ) __all__ = [ - 'MLModelServiceBase', - 'MLModelServiceStub', - 'File', - 'FlatTensor', - 'FlatTensorDataDouble', - 'FlatTensorDataFloat', - 'FlatTensorDataInt16', - 'FlatTensorDataInt32', - 'FlatTensorDataInt64', - 'FlatTensorDataInt8', - 'FlatTensorDataUInt16', - 'FlatTensorDataUInt32', - 'FlatTensorDataUInt64', - 'FlatTensorDataUInt8', - 'FlatTensors', - 'InferRequest', - 'InferResponse', - 'LabelType', - 'Metadata', - 'MetadataRequest', - 'MetadataResponse', - 'TensorInfo', + "MLModelServiceBase", + "MLModelServiceStub", + "File", + "FlatTensor", + "FlatTensorDataDouble", + "FlatTensorDataFloat", + "FlatTensorDataInt16", + "FlatTensorDataInt32", + "FlatTensorDataInt64", + "FlatTensorDataInt8", + "FlatTensorDataUInt16", + "FlatTensorDataUInt32", + "FlatTensorDataUInt64", + "FlatTensorDataUInt8", + "FlatTensors", + "InferRequest", + "InferResponse", + "LabelType", + "Metadata", + "MetadataRequest", + "MetadataResponse", + "TensorInfo", ] diff --git a/src/viam/proto/service/motion/__init__.py b/src/viam/proto/service/motion/__init__.py index 74bcecf99..5d3cf61dc 100644 --- a/src/viam/proto/service/motion/__init__.py +++ b/src/viam/proto/service/motion/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.service.motion.v1.motion_grpc import ( - MotionServiceBase, - MotionServiceStub -) +""" +from ....gen.service.motion.v1.motion_grpc import MotionServiceBase, MotionServiceStub from ....gen.service.motion.v1.motion_pb2 import ( CollisionSpecification, ComponentState, @@ -33,37 +30,37 @@ PlanStep, PlanWithStatus, StopPlanRequest, - StopPlanResponse + StopPlanResponse, ) __all__ = [ - 'MotionServiceBase', - 'MotionServiceStub', - 'CollisionSpecification', - 'ComponentState', - 'Constraints', - 'GetPlanRequest', - 'GetPlanResponse', - 'GetPoseRequest', - 'GetPoseResponse', - 'LinearConstraint', - 'ListPlanStatusesRequest', - 'ListPlanStatusesResponse', - 'MotionConfiguration', - 'MoveOnGlobeRequest', - 'MoveOnGlobeResponse', - 'MoveOnMapRequest', - 'MoveOnMapResponse', - 'MoveRequest', - 'MoveResponse', - 'ObstacleDetector', - 'OrientationConstraint', - 'Plan', - 'PlanState', - 'PlanStatus', - 'PlanStatusWithID', - 'PlanStep', - 'PlanWithStatus', - 'StopPlanRequest', - 'StopPlanResponse', + "MotionServiceBase", + "MotionServiceStub", + "CollisionSpecification", + "ComponentState", + "Constraints", + "GetPlanRequest", + "GetPlanResponse", + "GetPoseRequest", + "GetPoseResponse", + "LinearConstraint", + "ListPlanStatusesRequest", + "ListPlanStatusesResponse", + "MotionConfiguration", + "MoveOnGlobeRequest", + "MoveOnGlobeResponse", + "MoveOnMapRequest", + "MoveOnMapResponse", + "MoveRequest", + "MoveResponse", + "ObstacleDetector", + "OrientationConstraint", + "Plan", + "PlanState", + "PlanStatus", + "PlanStatusWithID", + "PlanStep", + "PlanWithStatus", + "StopPlanRequest", + "StopPlanResponse", ] diff --git a/src/viam/proto/service/navigation/__init__.py b/src/viam/proto/service/navigation/__init__.py index 1ba78277b..835a30eb3 100644 --- a/src/viam/proto/service/navigation/__init__.py +++ b/src/viam/proto/service/navigation/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.service.navigation.v1.navigation_grpc import ( - NavigationServiceBase, - NavigationServiceStub -) +""" +from ....gen.service.navigation.v1.navigation_grpc import NavigationServiceBase, NavigationServiceStub from ....gen.service.navigation.v1.navigation_pb2 import ( AddWaypointRequest, AddWaypointResponse, @@ -28,32 +25,32 @@ RemoveWaypointResponse, SetModeRequest, SetModeResponse, - Waypoint + Waypoint, ) __all__ = [ - 'NavigationServiceBase', - 'NavigationServiceStub', - 'AddWaypointRequest', - 'AddWaypointResponse', - 'GetLocationRequest', - 'GetLocationResponse', - 'GetModeRequest', - 'GetModeResponse', - 'GetObstaclesRequest', - 'GetObstaclesResponse', - 'GetPathsRequest', - 'GetPathsResponse', - 'GetPropertiesRequest', - 'GetPropertiesResponse', - 'GetWaypointsRequest', - 'GetWaypointsResponse', - 'MapType', - 'Mode', - 'Path', - 'RemoveWaypointRequest', - 'RemoveWaypointResponse', - 'SetModeRequest', - 'SetModeResponse', - 'Waypoint', + "NavigationServiceBase", + "NavigationServiceStub", + "AddWaypointRequest", + "AddWaypointResponse", + "GetLocationRequest", + "GetLocationResponse", + "GetModeRequest", + "GetModeResponse", + "GetObstaclesRequest", + "GetObstaclesResponse", + "GetPathsRequest", + "GetPathsResponse", + "GetPropertiesRequest", + "GetPropertiesResponse", + "GetWaypointsRequest", + "GetWaypointsResponse", + "MapType", + "Mode", + "Path", + "RemoveWaypointRequest", + "RemoveWaypointResponse", + "SetModeRequest", + "SetModeResponse", + "Waypoint", ] diff --git a/src/viam/proto/service/sensors/__init__.py b/src/viam/proto/service/sensors/__init__.py index 639d2e066..7a8d02d6d 100644 --- a/src/viam/proto/service/sensors/__init__.py +++ b/src/viam/proto/service/sensors/__init__.py @@ -1,25 +1,16 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.service.sensors.v1.sensors_grpc import ( - SensorsServiceBase, - SensorsServiceStub -) -from ....gen.service.sensors.v1.sensors_pb2 import ( - GetReadingsRequest, - GetReadingsResponse, - GetSensorsRequest, - GetSensorsResponse, - Readings -) +""" +from ....gen.service.sensors.v1.sensors_grpc import SensorsServiceBase, SensorsServiceStub +from ....gen.service.sensors.v1.sensors_pb2 import GetReadingsRequest, GetReadingsResponse, GetSensorsRequest, GetSensorsResponse, Readings __all__ = [ - 'SensorsServiceBase', - 'SensorsServiceStub', - 'GetReadingsRequest', - 'GetReadingsResponse', - 'GetSensorsRequest', - 'GetSensorsResponse', - 'Readings', + "SensorsServiceBase", + "SensorsServiceStub", + "GetReadingsRequest", + "GetReadingsResponse", + "GetSensorsRequest", + "GetSensorsResponse", + "Readings", ] diff --git a/src/viam/proto/service/shell/__init__.py b/src/viam/proto/service/shell/__init__.py index 9b5c3ff2b..1383ac938 100644 --- a/src/viam/proto/service/shell/__init__.py +++ b/src/viam/proto/service/shell/__init__.py @@ -1,19 +1,13 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.service.shell.v1.shell_grpc import ( - ShellServiceBase, - ShellServiceStub -) -from ....gen.service.shell.v1.shell_pb2 import ( - ShellRequest, - ShellResponse -) +""" +from ....gen.service.shell.v1.shell_grpc import ShellServiceBase, ShellServiceStub +from ....gen.service.shell.v1.shell_pb2 import ShellRequest, ShellResponse __all__ = [ - 'ShellServiceBase', - 'ShellServiceStub', - 'ShellRequest', - 'ShellResponse', + "ShellServiceBase", + "ShellServiceStub", + "ShellRequest", + "ShellResponse", ] diff --git a/src/viam/proto/service/slam/__init__.py b/src/viam/proto/service/slam/__init__.py index c4ae1eba2..31dab8777 100644 --- a/src/viam/proto/service/slam/__init__.py +++ b/src/viam/proto/service/slam/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.service.slam.v1.slam_grpc import ( - SLAMServiceBase, - SLAMServiceStub -) +""" +from ....gen.service.slam.v1.slam_grpc import SLAMServiceBase, SLAMServiceStub from ....gen.service.slam.v1.slam_pb2 import ( GetInternalStateRequest, GetInternalStateResponse, @@ -17,21 +14,21 @@ GetPropertiesResponse, MappingMode, SensorInfo, - SensorType + SensorType, ) __all__ = [ - 'SLAMServiceBase', - 'SLAMServiceStub', - 'GetInternalStateRequest', - 'GetInternalStateResponse', - 'GetPointCloudMapRequest', - 'GetPointCloudMapResponse', - 'GetPositionRequest', - 'GetPositionResponse', - 'GetPropertiesRequest', - 'GetPropertiesResponse', - 'MappingMode', - 'SensorInfo', - 'SensorType', + "SLAMServiceBase", + "SLAMServiceStub", + "GetInternalStateRequest", + "GetInternalStateResponse", + "GetPointCloudMapRequest", + "GetPointCloudMapResponse", + "GetPositionRequest", + "GetPositionResponse", + "GetPropertiesRequest", + "GetPropertiesResponse", + "MappingMode", + "SensorInfo", + "SensorType", ] diff --git a/src/viam/proto/service/vision/__init__.py b/src/viam/proto/service/vision/__init__.py index 51c5aa286..16c27da88 100644 --- a/src/viam/proto/service/vision/__init__.py +++ b/src/viam/proto/service/vision/__init__.py @@ -1,11 +1,8 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ....gen.service.vision.v1.vision_grpc import ( - VisionServiceBase, - VisionServiceStub -) +""" +from ....gen.service.vision.v1.vision_grpc import VisionServiceBase, VisionServiceStub from ....gen.service.vision.v1.vision_pb2 import ( Classification, Detection, @@ -18,22 +15,22 @@ GetDetectionsRequest, GetDetectionsResponse, GetObjectPointCloudsRequest, - GetObjectPointCloudsResponse + GetObjectPointCloudsResponse, ) __all__ = [ - 'VisionServiceBase', - 'VisionServiceStub', - 'Classification', - 'Detection', - 'GetClassificationsFromCameraRequest', - 'GetClassificationsFromCameraResponse', - 'GetClassificationsRequest', - 'GetClassificationsResponse', - 'GetDetectionsFromCameraRequest', - 'GetDetectionsFromCameraResponse', - 'GetDetectionsRequest', - 'GetDetectionsResponse', - 'GetObjectPointCloudsRequest', - 'GetObjectPointCloudsResponse', + "VisionServiceBase", + "VisionServiceStub", + "Classification", + "Detection", + "GetClassificationsFromCameraRequest", + "GetClassificationsFromCameraResponse", + "GetClassificationsRequest", + "GetClassificationsResponse", + "GetDetectionsFromCameraRequest", + "GetDetectionsFromCameraResponse", + "GetDetectionsRequest", + "GetDetectionsResponse", + "GetObjectPointCloudsRequest", + "GetObjectPointCloudsResponse", ] diff --git a/src/viam/proto/stream/__init__.py b/src/viam/proto/stream/__init__.py index bf88dfc9e..f9ae73b86 100644 --- a/src/viam/proto/stream/__init__.py +++ b/src/viam/proto/stream/__init__.py @@ -1,27 +1,24 @@ -''' +""" @generated by Viam. Do not edit manually! -''' -from ...gen.stream.v1.stream_grpc import ( - StreamServiceBase, - StreamServiceStub -) +""" +from ...gen.stream.v1.stream_grpc import StreamServiceBase, StreamServiceStub from ...gen.stream.v1.stream_pb2 import ( AddStreamRequest, AddStreamResponse, ListStreamsRequest, ListStreamsResponse, RemoveStreamRequest, - RemoveStreamResponse + RemoveStreamResponse, ) __all__ = [ - 'StreamServiceBase', - 'StreamServiceStub', - 'AddStreamRequest', - 'AddStreamResponse', - 'ListStreamsRequest', - 'ListStreamsResponse', - 'RemoveStreamRequest', - 'RemoveStreamResponse', + "StreamServiceBase", + "StreamServiceStub", + "AddStreamRequest", + "AddStreamResponse", + "ListStreamsRequest", + "ListStreamsResponse", + "RemoveStreamRequest", + "RemoveStreamResponse", ] diff --git a/src/viam/proto/tagger/__init__.py b/src/viam/proto/tagger/__init__.py index 0e7ab86b4..3484a6ee3 100644 --- a/src/viam/proto/tagger/__init__.py +++ b/src/viam/proto/tagger/__init__.py @@ -1,7 +1,6 @@ -''' +""" @generated by Viam. Do not edit manually! -''' +""" -__all__ = [ -] +__all__ = []