viam-sdk 0.25.2__py3-none-linux_armv7l.whl → 0.62.0__py3-none-linux_armv7l.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- viam/app/_logs.py +3 -6
- viam/app/app_client.py +606 -262
- viam/app/billing_client.py +60 -18
- viam/app/data_client.py +1086 -315
- viam/app/ml_training_client.py +51 -48
- viam/app/provisioning_client.py +3 -5
- viam/app/viam_client.py +105 -11
- viam/components/arm/__init__.py +1 -25
- viam/components/arm/arm.py +21 -22
- viam/components/arm/client.py +27 -30
- viam/components/arm/service.py +3 -3
- viam/components/audio_in/__init__.py +24 -0
- viam/components/audio_in/audio_in.py +74 -0
- viam/components/audio_in/client.py +76 -0
- viam/components/audio_in/service.py +83 -0
- viam/components/audio_input/__init__.py +1 -1
- viam/components/audio_input/audio_input.py +4 -3
- viam/components/audio_input/client.py +19 -8
- viam/components/audio_input/service.py +10 -0
- viam/components/audio_out/__init__.py +21 -0
- viam/components/audio_out/audio_out.py +72 -0
- viam/components/audio_out/client.py +67 -0
- viam/components/audio_out/service.py +63 -0
- viam/components/base/__init__.py +2 -10
- viam/components/base/base.py +20 -20
- viam/components/base/client.py +27 -30
- viam/components/board/__init__.py +2 -25
- viam/components/board/board.py +39 -77
- viam/components/board/client.py +39 -73
- viam/components/button/__init__.py +10 -0
- viam/components/button/button.py +41 -0
- viam/components/button/client.py +52 -0
- viam/components/button/service.py +46 -0
- viam/components/camera/__init__.py +1 -1
- viam/components/camera/camera.py +31 -22
- viam/components/camera/client.py +30 -20
- viam/components/camera/service.py +14 -12
- viam/components/component_base.py +10 -7
- viam/components/encoder/__init__.py +1 -1
- viam/components/encoder/client.py +15 -16
- viam/components/encoder/encoder.py +9 -9
- viam/components/gantry/__init__.py +1 -13
- viam/components/gantry/client.py +41 -28
- viam/components/gantry/gantry.py +48 -17
- viam/components/gantry/service.py +21 -5
- viam/components/generic/__init__.py +1 -1
- viam/components/generic/client.py +11 -7
- viam/components/generic/generic.py +3 -3
- viam/components/gripper/__init__.py +3 -12
- viam/components/gripper/client.py +43 -20
- viam/components/gripper/gripper.py +87 -12
- viam/components/gripper/service.py +32 -3
- viam/components/input/__init__.py +1 -14
- viam/components/input/client.py +22 -23
- viam/components/input/input.py +18 -12
- viam/components/motor/__init__.py +1 -21
- viam/components/motor/client.py +36 -42
- viam/components/motor/motor.py +24 -24
- viam/components/movement_sensor/__init__.py +1 -1
- viam/components/movement_sensor/client.py +33 -40
- viam/components/movement_sensor/movement_sensor.py +12 -12
- viam/components/pose_tracker/__init__.py +1 -1
- viam/components/pose_tracker/client.py +9 -8
- viam/components/pose_tracker/pose_tracker.py +2 -2
- viam/components/power_sensor/__init__.py +1 -1
- viam/components/power_sensor/client.py +15 -18
- viam/components/power_sensor/power_sensor.py +12 -12
- viam/components/sensor/__init__.py +1 -1
- viam/components/sensor/client.py +9 -8
- viam/components/sensor/sensor.py +5 -5
- viam/components/servo/__init__.py +1 -13
- viam/components/servo/client.py +18 -18
- viam/components/servo/servo.py +12 -12
- viam/components/switch/__init__.py +10 -0
- viam/components/switch/client.py +83 -0
- viam/components/switch/service.py +72 -0
- viam/components/switch/switch.py +95 -0
- viam/gen/app/agent/v1/agent_pb2.py +40 -29
- viam/gen/app/agent/v1/agent_pb2.pyi +73 -11
- viam/gen/app/cloudslam/v1/cloud_slam_pb2.py +45 -42
- viam/gen/app/data/v1/data_grpc.py +98 -2
- viam/gen/app/data/v1/data_pb2.py +238 -119
- viam/gen/app/data/v1/data_pb2.pyi +804 -34
- viam/gen/app/datapipelines/v1/data_pipelines_grpc.py +84 -0
- viam/gen/app/datapipelines/v1/data_pipelines_pb2.py +57 -0
- viam/gen/app/datapipelines/v1/data_pipelines_pb2.pyi +387 -0
- viam/gen/app/dataset/v1/dataset_grpc.py +10 -2
- viam/gen/app/dataset/v1/dataset_pb2.py +38 -31
- viam/gen/app/dataset/v1/dataset_pb2.pyi +36 -1
- viam/gen/app/datasync/v1/data_sync_grpc.py +1 -1
- viam/gen/app/datasync/v1/data_sync_pb2.py +61 -51
- viam/gen/app/datasync/v1/data_sync_pb2.pyi +52 -12
- viam/gen/app/mlinference/__init__.py +0 -0
- viam/gen/app/mlinference/v1/__init__.py +0 -0
- viam/gen/app/mlinference/v1/ml_inference_grpc.py +28 -0
- viam/gen/app/mlinference/v1/ml_inference_pb2.py +23 -0
- viam/gen/app/mlinference/v1/ml_inference_pb2.pyi +63 -0
- viam/gen/app/mltraining/v1/ml_training_grpc.py +18 -2
- viam/gen/app/mltraining/v1/ml_training_pb2.py +134 -101
- viam/gen/app/mltraining/v1/ml_training_pb2.pyi +193 -7
- viam/gen/app/packages/v1/packages_pb2.py +43 -40
- viam/gen/app/v1/app_grpc.py +290 -2
- viam/gen/app/v1/app_pb2.py +670 -453
- viam/gen/app/v1/app_pb2.pyi +3133 -947
- viam/gen/app/v1/billing_grpc.py +34 -2
- viam/gen/app/v1/billing_pb2.py +94 -35
- viam/gen/app/v1/billing_pb2.pyi +314 -61
- viam/gen/app/v1/end_user_pb2.py +50 -29
- viam/gen/app/v1/robot_pb2.py +120 -111
- viam/gen/app/v1/robot_pb2.pyi +137 -15
- viam/gen/common/v1/common_pb2.py +86 -66
- viam/gen/common/v1/common_pb2.pyi +184 -8
- viam/gen/component/arm/v1/arm_grpc.py +18 -2
- viam/gen/component/arm/v1/arm_pb2.py +68 -55
- viam/gen/component/arm/v1/arm_pb2.pyi +73 -3
- viam/gen/component/audioin/__init__.py +0 -0
- viam/gen/component/audioin/v1/__init__.py +0 -0
- viam/gen/component/audioin/v1/audioin_grpc.py +54 -0
- viam/gen/component/audioin/v1/audioin_pb2.py +34 -0
- viam/gen/component/audioin/v1/audioin_pb2.pyi +94 -0
- viam/gen/component/audioinput/v1/audioinput_pb2.py +35 -32
- viam/gen/component/audioout/__init__.py +0 -0
- viam/gen/component/audioout/v1/__init__.py +0 -0
- viam/gen/component/audioout/v1/audioout_grpc.py +54 -0
- viam/gen/component/audioout/v1/audioout_pb2.py +32 -0
- viam/gen/component/audioout/v1/audioout_pb2.pyi +47 -0
- viam/gen/component/base/v1/base_pb2.py +57 -54
- viam/gen/component/board/v1/board_pb2.py +93 -90
- viam/gen/component/button/__init__.py +0 -0
- viam/gen/component/button/v1/__init__.py +0 -0
- viam/gen/component/button/v1/button_grpc.py +38 -0
- viam/gen/component/button/v1/button_pb2.py +28 -0
- viam/gen/component/button/v1/button_pb2.pyi +39 -0
- viam/gen/component/camera/v1/camera_pb2.py +58 -55
- viam/gen/component/camera/v1/camera_pb2.pyi +31 -7
- viam/gen/component/encoder/v1/encoder_pb2.py +35 -32
- viam/gen/component/gantry/v1/gantry_grpc.py +9 -1
- viam/gen/component/gantry/v1/gantry_pb2.py +56 -51
- viam/gen/component/generic/v1/generic_pb2.py +15 -12
- viam/gen/component/gripper/v1/gripper_grpc.py +18 -2
- viam/gen/component/gripper/v1/gripper_pb2.py +48 -37
- viam/gen/component/gripper/v1/gripper_pb2.pyi +43 -1
- viam/gen/component/inputcontroller/v1/input_controller_pb2.py +45 -42
- viam/gen/component/motor/v1/motor_pb2.py +77 -74
- viam/gen/component/movementsensor/v1/movementsensor_pb2.py +69 -66
- viam/gen/component/posetracker/v1/pose_tracker_pb2.py +25 -22
- viam/gen/component/powersensor/v1/powersensor_pb2.py +33 -30
- viam/gen/component/sensor/v1/sensor_pb2.py +17 -14
- viam/gen/component/servo/v1/servo_pb2.py +41 -38
- viam/gen/component/switch/__init__.py +0 -0
- viam/gen/component/switch/v1/__init__.py +0 -0
- viam/gen/component/switch/v1/switch_grpc.py +54 -0
- viam/gen/component/switch/v1/switch_pb2.py +40 -0
- viam/gen/component/switch/v1/switch_pb2.pyi +116 -0
- viam/gen/component/testecho/v1/testecho_pb2.py +29 -26
- viam/gen/module/v1/module_pb2.py +36 -33
- viam/gen/module/v1/module_pb2.pyi +7 -2
- viam/gen/proto/rpc/examples/echo/v1/echo_pb2.py +26 -23
- viam/gen/proto/rpc/examples/echoresource/v1/echoresource_pb2.py +23 -20
- viam/gen/proto/rpc/v1/auth_pb2.py +27 -24
- viam/gen/proto/rpc/webrtc/v1/grpc_pb2.py +35 -32
- viam/gen/proto/rpc/webrtc/v1/signaling_pb2.py +62 -57
- viam/gen/proto/rpc/webrtc/v1/signaling_pb2.pyi +18 -4
- viam/gen/provisioning/v1/provisioning_grpc.py +10 -2
- viam/gen/provisioning/v1/provisioning_pb2.py +38 -31
- viam/gen/provisioning/v1/provisioning_pb2.pyi +20 -2
- viam/gen/robot/v1/robot_grpc.py +61 -29
- viam/gen/robot/v1/robot_pb2.py +186 -155
- viam/gen/robot/v1/robot_pb2.pyi +278 -59
- viam/gen/service/datamanager/v1/data_manager_grpc.py +11 -2
- viam/gen/service/datamanager/v1/data_manager_pb2.py +27 -17
- viam/gen/service/datamanager/v1/data_manager_pb2.pyi +47 -1
- viam/gen/service/discovery/__init__.py +0 -0
- viam/gen/service/discovery/v1/__init__.py +0 -0
- viam/gen/service/discovery/v1/discovery_grpc.py +39 -0
- viam/gen/service/discovery/v1/discovery_pb2.py +29 -0
- viam/gen/service/discovery/v1/discovery_pb2.pyi +51 -0
- viam/gen/service/generic/v1/generic_pb2.py +13 -10
- viam/gen/service/mlmodel/v1/mlmodel_pb2.py +75 -72
- viam/gen/service/motion/v1/motion_pb2.py +118 -85
- viam/gen/service/motion/v1/motion_pb2.pyi +130 -68
- viam/gen/service/navigation/v1/navigation_pb2.py +75 -72
- viam/gen/service/sensors/v1/sensors_pb2.py +59 -56
- viam/gen/service/shell/v1/shell_pb2.py +35 -32
- viam/gen/service/slam/v1/slam_pb2.py +43 -40
- viam/gen/service/slam/v1/slam_pb2.pyi +1 -1
- viam/gen/service/video/__init__.py +0 -0
- viam/gen/service/video/v1/__init__.py +0 -0
- viam/gen/service/video/v1/video_grpc.py +39 -0
- viam/gen/service/video/v1/video_pb2.py +29 -0
- viam/gen/service/video/v1/video_pb2.pyi +72 -0
- viam/gen/service/vision/v1/vision_pb2.py +60 -57
- viam/gen/service/vision/v1/vision_pb2.pyi +28 -3
- viam/gen/service/worldstatestore/__init__.py +0 -0
- viam/gen/service/worldstatestore/v1/__init__.py +0 -0
- viam/gen/service/worldstatestore/v1/world_state_store_grpc.py +55 -0
- viam/gen/service/worldstatestore/v1/world_state_store_pb2.py +39 -0
- viam/gen/service/worldstatestore/v1/world_state_store_pb2.pyi +171 -0
- viam/gen/stream/v1/stream_grpc.py +17 -1
- viam/gen/stream/v1/stream_pb2.py +34 -21
- viam/gen/stream/v1/stream_pb2.pyi +79 -1
- viam/gen/tagger/v1/tagger_pb2.py +9 -8
- viam/logging.py +77 -18
- viam/media/audio.py +28 -0
- viam/media/utils/pil/__init__.py +7 -3
- viam/media/video.py +80 -17
- viam/module/module.py +111 -38
- viam/module/resource_data_consumer.py +41 -0
- viam/module/service.py +9 -1
- viam/module/types.py +2 -4
- viam/proto/app/__init__.py +199 -0
- viam/proto/app/agent/__init__.py +5 -2
- viam/proto/app/billing.py +31 -4
- viam/proto/app/cloudslam/__init__.py +1 -0
- viam/proto/app/data/__init__.py +63 -0
- viam/proto/app/datapipelines/__init__.py +56 -0
- viam/proto/app/dataset/__init__.py +5 -0
- viam/proto/app/datasync/__init__.py +3 -0
- viam/proto/app/end_user.py +1 -0
- viam/proto/app/mlinference/__init__.py +15 -0
- viam/proto/app/mltraining/__init__.py +13 -0
- viam/proto/app/packages/__init__.py +1 -0
- viam/proto/app/robot.py +7 -0
- viam/proto/common/__init__.py +15 -0
- viam/proto/component/arm/__init__.py +7 -0
- viam/proto/component/audioin/__init__.py +16 -0
- viam/proto/component/audioinput/__init__.py +1 -0
- viam/proto/component/audioout/__init__.py +15 -0
- viam/proto/component/base/__init__.py +1 -0
- viam/proto/component/board/__init__.py +1 -0
- viam/proto/component/button/__init__.py +15 -0
- viam/proto/component/camera/__init__.py +1 -0
- viam/proto/component/encoder/__init__.py +1 -0
- viam/proto/component/gantry/__init__.py +1 -0
- viam/proto/component/generic/__init__.py +1 -0
- viam/proto/component/gripper/__init__.py +5 -0
- viam/proto/component/inputcontroller/__init__.py +1 -0
- viam/proto/component/motor/__init__.py +1 -0
- viam/proto/component/movementsensor/__init__.py +1 -0
- viam/proto/component/posetracker/__init__.py +1 -0
- viam/proto/component/powersensor/__init__.py +1 -0
- viam/proto/component/sensor/__init__.py +1 -0
- viam/proto/component/servo/__init__.py +1 -0
- viam/proto/component/switch/__init__.py +26 -0
- viam/proto/component/testecho/__init__.py +1 -0
- viam/proto/module/__init__.py +1 -0
- viam/proto/provisioning/__init__.py +5 -0
- viam/proto/robot/__init__.py +29 -8
- viam/proto/rpc/auth.py +1 -0
- viam/proto/rpc/examples/echo/__init__.py +1 -0
- viam/proto/rpc/examples/echoresource/__init__.py +1 -0
- viam/proto/rpc/webrtc/grpc.py +1 -0
- viam/proto/rpc/webrtc/signaling.py +3 -0
- viam/proto/service/datamanager/__init__.py +9 -1
- viam/proto/service/discovery/__init__.py +15 -0
- viam/proto/service/generic/__init__.py +1 -0
- viam/proto/service/mlmodel/__init__.py +1 -0
- viam/proto/service/motion/__init__.py +3 -0
- viam/proto/service/navigation/__init__.py +1 -0
- viam/proto/service/sensors/__init__.py +1 -0
- viam/proto/service/shell/__init__.py +1 -0
- viam/proto/service/slam/__init__.py +1 -0
- viam/proto/service/video/__init__.py +15 -0
- viam/proto/service/vision/__init__.py +1 -0
- viam/proto/service/worldstatestore/__init__.py +32 -0
- viam/proto/stream/__init__.py +11 -0
- viam/py.typed +0 -0
- viam/resource/base.py +12 -8
- viam/resource/easy_resource.py +24 -13
- viam/resource/manager.py +6 -5
- viam/resource/registry.py +39 -51
- viam/resource/rpc_client_base.py +33 -1
- viam/resource/types.py +13 -14
- viam/robot/client.py +190 -122
- viam/robot/service.py +2 -50
- viam/rpc/dial.py +54 -4
- viam/rpc/libviam_rust_utils.so +0 -0
- viam/rpc/server.py +25 -11
- viam/rpc/types.py +2 -4
- viam/services/discovery/__init__.py +12 -0
- viam/services/discovery/client.py +55 -0
- viam/services/discovery/discovery.py +52 -0
- viam/services/discovery/service.py +43 -0
- viam/services/generic/__init__.py +1 -1
- viam/services/generic/client.py +8 -5
- viam/services/generic/generic.py +2 -2
- viam/services/mlmodel/__init__.py +1 -1
- viam/services/mlmodel/client.py +17 -7
- viam/services/mlmodel/mlmodel.py +23 -12
- viam/services/mlmodel/service.py +5 -2
- viam/services/mlmodel/utils.py +11 -1
- viam/services/motion/__init__.py +2 -2
- viam/services/motion/client.py +32 -32
- viam/services/motion/motion.py +66 -62
- viam/services/navigation/__init__.py +1 -1
- viam/services/navigation/client.py +30 -20
- viam/services/navigation/navigation.py +23 -23
- viam/services/service_base.py +13 -9
- viam/services/service_client_base.py +3 -3
- viam/services/slam/__init__.py +1 -1
- viam/services/slam/client.py +15 -10
- viam/services/slam/slam.py +11 -11
- viam/services/vision/__init__.py +1 -1
- viam/services/vision/client.py +31 -24
- viam/services/vision/service.py +8 -8
- viam/services/vision/vision.py +36 -53
- viam/services/worldstatestore/__init__.py +18 -0
- viam/services/worldstatestore/client.py +94 -0
- viam/services/worldstatestore/service.py +55 -0
- viam/services/worldstatestore/worldstatestore.py +90 -0
- viam/sessions_client.py +115 -46
- viam/streams.py +3 -6
- viam/utils.py +44 -14
- viam/version_metadata.py +4 -0
- {viam_sdk-0.25.2.dist-info → viam_sdk-0.62.0.dist-info}/METADATA +27 -28
- viam_sdk-0.62.0.dist-info/RECORD +514 -0
- {viam_sdk-0.25.2.dist-info → viam_sdk-0.62.0.dist-info}/WHEEL +1 -1
- viam/gen/proto/rpc/examples/fileupload/v1/fileupload_grpc.py +0 -27
- viam/gen/proto/rpc/examples/fileupload/v1/fileupload_pb2.py +0 -18
- viam/gen/proto/rpc/examples/fileupload/v1/fileupload_pb2.pyi +0 -45
- viam/proto/rpc/examples/fileupload/__init__.py +0 -18
- viam/services/sensors/__init__.py +0 -5
- viam/services/sensors/client.py +0 -65
- viam_sdk-0.25.2.dist-info/LICENSE +0 -202
- viam_sdk-0.25.2.dist-info/RECORD +0 -442
- /viam/gen/{proto/rpc/examples/fileupload → app/datapipelines}/__init__.py +0 -0
- /viam/gen/{proto/rpc/examples/fileupload → app/datapipelines}/v1/__init__.py +0 -0
- /LICENSE → /viam_sdk-0.62.0.dist-info/licenses/LICENSE +0 -0
|
@@ -1,39 +1,42 @@
|
|
|
1
1
|
"""Generated protocol buffer code."""
|
|
2
|
-
from google.protobuf.internal import builder as _builder
|
|
3
2
|
from google.protobuf import descriptor as _descriptor
|
|
4
3
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
4
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
5
5
|
from google.protobuf import symbol_database as _symbol_database
|
|
6
|
+
from google.protobuf.internal import builder as _builder
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'component/powersensor/v1/powersensor.proto')
|
|
6
8
|
_sym_db = _symbol_database.Default()
|
|
7
9
|
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
|
|
8
10
|
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
9
11
|
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
10
12
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*component/powersensor/v1/powersensor.proto\x12\x1dviam.component.powersensor.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"V\n\x11GetVoltageRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"?\n\x12GetVoltageResponse\x12\x14\n\x05volts\x18\x01 \x01(\x01R\x05volts\x12\x13\n\x05is_ac\x18\x02 \x01(\x08R\x04isAc"V\n\x11GetCurrentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"C\n\x12GetCurrentResponse\x12\x18\n\x07amperes\x18\x01 \x01(\x01R\x07amperes\x12\x13\n\x05is_ac\x18\x02 \x01(\x08R\x04isAc"T\n\x0fGetPowerRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"(\n\x10GetPowerResponse\x12\x14\n\x05watts\x18\x01 \x01(\x01R\x05watts2\xc4\x06\n\x12PowerSensorService\x12\xad\x01\n\nGetVoltage\x120.viam.component.powersensor.v1.GetVoltageRequest\x1a1.viam.component.powersensor.v1.GetVoltageResponse":\x82\xd3\xe4\x93\x024\x122/viam/api/v1/component/power_sensor/{name}/voltage\x12\xad\x01\n\nGetCurrent\x120.viam.component.powersensor.v1.GetCurrentRequest\x1a1.viam.component.powersensor.v1.GetCurrentResponse":\x82\xd3\xe4\x93\x024\x122/viam/api/v1/component/power_sensor/{name}/current\x12\xa5\x01\n\x08GetPower\x12..viam.component.powersensor.v1.GetPowerRequest\x1a/.viam.component.powersensor.v1.GetPowerResponse"8\x82\xd3\xe4\x93\x022\x120/viam/api/v1/component/power_sensor/{name}/power\x12\x93\x01\n\x0bGetReadings\x12".viam.common.v1.GetReadingsRequest\x1a#.viam.common.v1.GetReadingsResponse";\x82\xd3\xe4\x93\x025\x123/viam/api/v1/component/power_sensor/{name}/readings\x12\x8f\x01\n\tDoCommand\x12 .viam.common.v1.DoCommandRequest\x1a!.viam.common.v1.DoCommandResponse"=\x82\xd3\xe4\x93\x027"5/viam/api/v1/component/power_sensor/{name}/do_commandBM\n!com.viam.component.powersensor.v1Z(go.viam.com/api/component/powersensor/v1b\x06proto3')
|
|
11
|
-
|
|
12
|
-
_builder.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
DESCRIPTOR.
|
|
16
|
-
|
|
17
|
-
_POWERSENSORSERVICE.methods_by_name['GetVoltage'].
|
|
18
|
-
_POWERSENSORSERVICE.methods_by_name['
|
|
19
|
-
_POWERSENSORSERVICE.methods_by_name['GetCurrent'].
|
|
20
|
-
_POWERSENSORSERVICE.methods_by_name['
|
|
21
|
-
_POWERSENSORSERVICE.methods_by_name['GetPower'].
|
|
22
|
-
_POWERSENSORSERVICE.methods_by_name['
|
|
23
|
-
_POWERSENSORSERVICE.methods_by_name['GetReadings'].
|
|
24
|
-
_POWERSENSORSERVICE.methods_by_name['
|
|
25
|
-
_POWERSENSORSERVICE.methods_by_name['DoCommand'].
|
|
26
|
-
|
|
27
|
-
_GETVOLTAGEREQUEST.
|
|
28
|
-
|
|
29
|
-
_GETVOLTAGERESPONSE.
|
|
30
|
-
|
|
31
|
-
_GETCURRENTREQUEST.
|
|
32
|
-
|
|
33
|
-
_GETCURRENTRESPONSE.
|
|
34
|
-
|
|
35
|
-
_GETPOWERREQUEST.
|
|
36
|
-
|
|
37
|
-
_GETPOWERRESPONSE.
|
|
38
|
-
|
|
39
|
-
_POWERSENSORSERVICE.
|
|
13
|
+
_globals = globals()
|
|
14
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
15
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'component.powersensor.v1.powersensor_pb2', _globals)
|
|
16
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
17
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
18
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n!com.viam.component.powersensor.v1Z(go.viam.com/api/component/powersensor/v1'
|
|
19
|
+
_globals['_POWERSENSORSERVICE'].methods_by_name['GetVoltage']._loaded_options = None
|
|
20
|
+
_globals['_POWERSENSORSERVICE'].methods_by_name['GetVoltage']._serialized_options = b'\x82\xd3\xe4\x93\x024\x122/viam/api/v1/component/power_sensor/{name}/voltage'
|
|
21
|
+
_globals['_POWERSENSORSERVICE'].methods_by_name['GetCurrent']._loaded_options = None
|
|
22
|
+
_globals['_POWERSENSORSERVICE'].methods_by_name['GetCurrent']._serialized_options = b'\x82\xd3\xe4\x93\x024\x122/viam/api/v1/component/power_sensor/{name}/current'
|
|
23
|
+
_globals['_POWERSENSORSERVICE'].methods_by_name['GetPower']._loaded_options = None
|
|
24
|
+
_globals['_POWERSENSORSERVICE'].methods_by_name['GetPower']._serialized_options = b'\x82\xd3\xe4\x93\x022\x120/viam/api/v1/component/power_sensor/{name}/power'
|
|
25
|
+
_globals['_POWERSENSORSERVICE'].methods_by_name['GetReadings']._loaded_options = None
|
|
26
|
+
_globals['_POWERSENSORSERVICE'].methods_by_name['GetReadings']._serialized_options = b'\x82\xd3\xe4\x93\x025\x123/viam/api/v1/component/power_sensor/{name}/readings'
|
|
27
|
+
_globals['_POWERSENSORSERVICE'].methods_by_name['DoCommand']._loaded_options = None
|
|
28
|
+
_globals['_POWERSENSORSERVICE'].methods_by_name['DoCommand']._serialized_options = b'\x82\xd3\xe4\x93\x027"5/viam/api/v1/component/power_sensor/{name}/do_command'
|
|
29
|
+
_globals['_GETVOLTAGEREQUEST']._serialized_start = 161
|
|
30
|
+
_globals['_GETVOLTAGEREQUEST']._serialized_end = 247
|
|
31
|
+
_globals['_GETVOLTAGERESPONSE']._serialized_start = 249
|
|
32
|
+
_globals['_GETVOLTAGERESPONSE']._serialized_end = 312
|
|
33
|
+
_globals['_GETCURRENTREQUEST']._serialized_start = 314
|
|
34
|
+
_globals['_GETCURRENTREQUEST']._serialized_end = 400
|
|
35
|
+
_globals['_GETCURRENTRESPONSE']._serialized_start = 402
|
|
36
|
+
_globals['_GETCURRENTRESPONSE']._serialized_end = 469
|
|
37
|
+
_globals['_GETPOWERREQUEST']._serialized_start = 471
|
|
38
|
+
_globals['_GETPOWERREQUEST']._serialized_end = 555
|
|
39
|
+
_globals['_GETPOWERRESPONSE']._serialized_start = 557
|
|
40
|
+
_globals['_GETPOWERRESPONSE']._serialized_end = 597
|
|
41
|
+
_globals['_POWERSENSORSERVICE']._serialized_start = 600
|
|
42
|
+
_globals['_POWERSENSORSERVICE']._serialized_end = 1436
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
"""Generated protocol buffer code."""
|
|
2
|
-
from google.protobuf.internal import builder as _builder
|
|
3
2
|
from google.protobuf import descriptor as _descriptor
|
|
4
3
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
4
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
5
5
|
from google.protobuf import symbol_database as _symbol_database
|
|
6
|
+
from google.protobuf.internal import builder as _builder
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'component/sensor/v1/sensor.proto')
|
|
6
8
|
_sym_db = _symbol_database.Default()
|
|
7
9
|
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
|
|
8
10
|
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
9
11
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n component/sensor/v1/sensor.proto\x12\x18viam.component.sensor.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto2\xc3\x03\n\rSensorService\x12\x8d\x01\n\x0bGetReadings\x12".viam.common.v1.GetReadingsRequest\x1a#.viam.common.v1.GetReadingsResponse"5\x82\xd3\xe4\x93\x02/\x12-/viam/api/v1/component/sensor/{name}/readings\x12\x89\x01\n\tDoCommand\x12 .viam.common.v1.DoCommandRequest\x1a!.viam.common.v1.DoCommandResponse"7\x82\xd3\xe4\x93\x021"//viam/api/v1/component/sensor/{name}/do_command\x12\x95\x01\n\rGetGeometries\x12$.viam.common.v1.GetGeometriesRequest\x1a%.viam.common.v1.GetGeometriesResponse"7\x82\xd3\xe4\x93\x021\x12//viam/api/v1/component/sensor/{name}/geometriesBC\n\x1ccom.viam.component.sensor.v1Z#go.viam.com/api/component/sensor/v1b\x06proto3')
|
|
10
|
-
|
|
11
|
-
_builder.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
DESCRIPTOR.
|
|
15
|
-
|
|
16
|
-
_SENSORSERVICE.methods_by_name['GetReadings'].
|
|
17
|
-
_SENSORSERVICE.methods_by_name['
|
|
18
|
-
_SENSORSERVICE.methods_by_name['DoCommand'].
|
|
19
|
-
_SENSORSERVICE.methods_by_name['
|
|
20
|
-
_SENSORSERVICE.methods_by_name['GetGeometries'].
|
|
21
|
-
_SENSORSERVICE.
|
|
22
|
-
_SENSORSERVICE.
|
|
12
|
+
_globals = globals()
|
|
13
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
14
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'component.sensor.v1.sensor_pb2', _globals)
|
|
15
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
16
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
17
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\x1ccom.viam.component.sensor.v1Z#go.viam.com/api/component/sensor/v1'
|
|
18
|
+
_globals['_SENSORSERVICE'].methods_by_name['GetReadings']._loaded_options = None
|
|
19
|
+
_globals['_SENSORSERVICE'].methods_by_name['GetReadings']._serialized_options = b'\x82\xd3\xe4\x93\x02/\x12-/viam/api/v1/component/sensor/{name}/readings'
|
|
20
|
+
_globals['_SENSORSERVICE'].methods_by_name['DoCommand']._loaded_options = None
|
|
21
|
+
_globals['_SENSORSERVICE'].methods_by_name['DoCommand']._serialized_options = b'\x82\xd3\xe4\x93\x021"//viam/api/v1/component/sensor/{name}/do_command'
|
|
22
|
+
_globals['_SENSORSERVICE'].methods_by_name['GetGeometries']._loaded_options = None
|
|
23
|
+
_globals['_SENSORSERVICE'].methods_by_name['GetGeometries']._serialized_options = b'\x82\xd3\xe4\x93\x021\x12//viam/api/v1/component/sensor/{name}/geometries'
|
|
24
|
+
_globals['_SENSORSERVICE']._serialized_start = 117
|
|
25
|
+
_globals['_SENSORSERVICE']._serialized_end = 568
|
|
@@ -1,47 +1,50 @@
|
|
|
1
1
|
"""Generated protocol buffer code."""
|
|
2
|
-
from google.protobuf.internal import builder as _builder
|
|
3
2
|
from google.protobuf import descriptor as _descriptor
|
|
4
3
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
4
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
5
5
|
from google.protobuf import symbol_database as _symbol_database
|
|
6
|
+
from google.protobuf.internal import builder as _builder
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'component/servo/v1/servo.proto')
|
|
6
8
|
_sym_db = _symbol_database.Default()
|
|
7
9
|
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
|
|
8
10
|
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
9
11
|
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
10
12
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ecomponent/servo/v1/servo.proto\x12\x17viam.component.servo.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"m\n\x0bMoveRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1b\n\tangle_deg\x18\x02 \x01(\rR\x08angleDeg\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x0e\n\x0cMoveResponse"W\n\x12GetPositionRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"8\n\x13GetPositionResponse\x12!\n\x0cposition_deg\x18\x01 \x01(\rR\x0bpositionDeg"P\n\x0bStopRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x0e\n\x0cStopResponse"H\n\x06Status\x12!\n\x0cposition_deg\x18\x01 \x01(\rR\x0bpositionDeg\x12\x1b\n\tis_moving\x18\x02 \x01(\x08R\x08isMoving"%\n\x0fIsMovingRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name"/\n\x10IsMovingResponse\x12\x1b\n\tis_moving\x18\x01 \x01(\x08R\x08isMoving2\xfe\x06\n\x0cServoService\x12\x89\x01\n\x04Move\x12$.viam.component.servo.v1.MoveRequest\x1a%.viam.component.servo.v1.MoveResponse"4\xa0\x92)\x01\x82\xd3\xe4\x93\x02*\x1a(/viam/api/v1/component/servo/{name}/move\x12\x9e\x01\n\x0bGetPosition\x12+.viam.component.servo.v1.GetPositionRequest\x1a,.viam.component.servo.v1.GetPositionResponse"4\x82\xd3\xe4\x93\x02.\x12,/viam/api/v1/component/servo/{name}/position\x12\x85\x01\n\x04Stop\x12$.viam.component.servo.v1.StopRequest\x1a%.viam.component.servo.v1.StopResponse"0\x82\xd3\xe4\x93\x02*"(/viam/api/v1/component/servo/{name}/stop\x12\x96\x01\n\x08IsMoving\x12(.viam.component.servo.v1.IsMovingRequest\x1a).viam.component.servo.v1.IsMovingResponse"5\x82\xd3\xe4\x93\x02/\x12-/viam/api/v1/component/servo/{name}/is_moving\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/servo/{name}/do_command\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/servo/{name}/geometriesBA\n\x1bcom.viam.component.servo.v1Z"go.viam.com/api/component/servo/v1b\x06proto3')
|
|
11
|
-
|
|
12
|
-
_builder.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
DESCRIPTOR.
|
|
16
|
-
|
|
17
|
-
_SERVOSERVICE.methods_by_name['Move'].
|
|
18
|
-
_SERVOSERVICE.methods_by_name['
|
|
19
|
-
_SERVOSERVICE.methods_by_name['GetPosition'].
|
|
20
|
-
_SERVOSERVICE.methods_by_name['
|
|
21
|
-
_SERVOSERVICE.methods_by_name['Stop'].
|
|
22
|
-
_SERVOSERVICE.methods_by_name['
|
|
23
|
-
_SERVOSERVICE.methods_by_name['IsMoving'].
|
|
24
|
-
_SERVOSERVICE.methods_by_name['
|
|
25
|
-
_SERVOSERVICE.methods_by_name['DoCommand'].
|
|
26
|
-
_SERVOSERVICE.methods_by_name['
|
|
27
|
-
_SERVOSERVICE.methods_by_name['GetGeometries'].
|
|
28
|
-
|
|
29
|
-
_MOVEREQUEST.
|
|
30
|
-
|
|
31
|
-
_MOVERESPONSE.
|
|
32
|
-
|
|
33
|
-
_GETPOSITIONREQUEST.
|
|
34
|
-
|
|
35
|
-
_GETPOSITIONRESPONSE.
|
|
36
|
-
|
|
37
|
-
_STOPREQUEST.
|
|
38
|
-
|
|
39
|
-
_STOPRESPONSE.
|
|
40
|
-
|
|
41
|
-
_STATUS.
|
|
42
|
-
|
|
43
|
-
_ISMOVINGREQUEST.
|
|
44
|
-
|
|
45
|
-
_ISMOVINGRESPONSE.
|
|
46
|
-
|
|
47
|
-
_SERVOSERVICE.
|
|
13
|
+
_globals = globals()
|
|
14
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
15
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'component.servo.v1.servo_pb2', _globals)
|
|
16
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
17
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
18
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\x1bcom.viam.component.servo.v1Z"go.viam.com/api/component/servo/v1'
|
|
19
|
+
_globals['_SERVOSERVICE'].methods_by_name['Move']._loaded_options = None
|
|
20
|
+
_globals['_SERVOSERVICE'].methods_by_name['Move']._serialized_options = b'\xa0\x92)\x01\x82\xd3\xe4\x93\x02*\x1a(/viam/api/v1/component/servo/{name}/move'
|
|
21
|
+
_globals['_SERVOSERVICE'].methods_by_name['GetPosition']._loaded_options = None
|
|
22
|
+
_globals['_SERVOSERVICE'].methods_by_name['GetPosition']._serialized_options = b'\x82\xd3\xe4\x93\x02.\x12,/viam/api/v1/component/servo/{name}/position'
|
|
23
|
+
_globals['_SERVOSERVICE'].methods_by_name['Stop']._loaded_options = None
|
|
24
|
+
_globals['_SERVOSERVICE'].methods_by_name['Stop']._serialized_options = b'\x82\xd3\xe4\x93\x02*"(/viam/api/v1/component/servo/{name}/stop'
|
|
25
|
+
_globals['_SERVOSERVICE'].methods_by_name['IsMoving']._loaded_options = None
|
|
26
|
+
_globals['_SERVOSERVICE'].methods_by_name['IsMoving']._serialized_options = b'\x82\xd3\xe4\x93\x02/\x12-/viam/api/v1/component/servo/{name}/is_moving'
|
|
27
|
+
_globals['_SERVOSERVICE'].methods_by_name['DoCommand']._loaded_options = None
|
|
28
|
+
_globals['_SERVOSERVICE'].methods_by_name['DoCommand']._serialized_options = b'\x82\xd3\xe4\x93\x020"./viam/api/v1/component/servo/{name}/do_command'
|
|
29
|
+
_globals['_SERVOSERVICE'].methods_by_name['GetGeometries']._loaded_options = None
|
|
30
|
+
_globals['_SERVOSERVICE'].methods_by_name['GetGeometries']._serialized_options = b'\x82\xd3\xe4\x93\x020\x12./viam/api/v1/component/servo/{name}/geometries'
|
|
31
|
+
_globals['_MOVEREQUEST']._serialized_start = 143
|
|
32
|
+
_globals['_MOVEREQUEST']._serialized_end = 252
|
|
33
|
+
_globals['_MOVERESPONSE']._serialized_start = 254
|
|
34
|
+
_globals['_MOVERESPONSE']._serialized_end = 268
|
|
35
|
+
_globals['_GETPOSITIONREQUEST']._serialized_start = 270
|
|
36
|
+
_globals['_GETPOSITIONREQUEST']._serialized_end = 357
|
|
37
|
+
_globals['_GETPOSITIONRESPONSE']._serialized_start = 359
|
|
38
|
+
_globals['_GETPOSITIONRESPONSE']._serialized_end = 415
|
|
39
|
+
_globals['_STOPREQUEST']._serialized_start = 417
|
|
40
|
+
_globals['_STOPREQUEST']._serialized_end = 497
|
|
41
|
+
_globals['_STOPRESPONSE']._serialized_start = 499
|
|
42
|
+
_globals['_STOPRESPONSE']._serialized_end = 513
|
|
43
|
+
_globals['_STATUS']._serialized_start = 515
|
|
44
|
+
_globals['_STATUS']._serialized_end = 587
|
|
45
|
+
_globals['_ISMOVINGREQUEST']._serialized_start = 589
|
|
46
|
+
_globals['_ISMOVINGREQUEST']._serialized_end = 626
|
|
47
|
+
_globals['_ISMOVINGRESPONSE']._serialized_start = 628
|
|
48
|
+
_globals['_ISMOVINGRESPONSE']._serialized_end = 675
|
|
49
|
+
_globals['_SERVOSERVICE']._serialized_start = 678
|
|
50
|
+
_globals['_SERVOSERVICE']._serialized_end = 1572
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import abc
|
|
2
|
+
import typing
|
|
3
|
+
import grpclib.const
|
|
4
|
+
import grpclib.client
|
|
5
|
+
import grpclib.exceptions
|
|
6
|
+
if typing.TYPE_CHECKING:
|
|
7
|
+
import grpclib.server
|
|
8
|
+
from .... import common
|
|
9
|
+
import google.api.annotations_pb2
|
|
10
|
+
import google.protobuf.struct_pb2
|
|
11
|
+
from .... import component
|
|
12
|
+
|
|
13
|
+
class SwitchServiceBase(abc.ABC):
|
|
14
|
+
|
|
15
|
+
@abc.abstractmethod
|
|
16
|
+
async def SetPosition(self, stream: 'grpclib.server.Stream[component.switch.v1.switch_pb2.SetPositionRequest, component.switch.v1.switch_pb2.SetPositionResponse]') -> None:
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
@abc.abstractmethod
|
|
20
|
+
async def GetPosition(self, stream: 'grpclib.server.Stream[component.switch.v1.switch_pb2.GetPositionRequest, component.switch.v1.switch_pb2.GetPositionResponse]') -> None:
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
@abc.abstractmethod
|
|
24
|
+
async def GetNumberOfPositions(self, stream: 'grpclib.server.Stream[component.switch.v1.switch_pb2.GetNumberOfPositionsRequest, component.switch.v1.switch_pb2.GetNumberOfPositionsResponse]') -> None:
|
|
25
|
+
pass
|
|
26
|
+
|
|
27
|
+
@abc.abstractmethod
|
|
28
|
+
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
29
|
+
pass
|
|
30
|
+
|
|
31
|
+
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
|
|
32
|
+
return {'/viam.component.switch.v1.SwitchService/SetPosition': grpclib.const.Handler(self.SetPosition, grpclib.const.Cardinality.UNARY_UNARY, component.switch.v1.switch_pb2.SetPositionRequest, component.switch.v1.switch_pb2.SetPositionResponse), '/viam.component.switch.v1.SwitchService/GetPosition': grpclib.const.Handler(self.GetPosition, grpclib.const.Cardinality.UNARY_UNARY, component.switch.v1.switch_pb2.GetPositionRequest, component.switch.v1.switch_pb2.GetPositionResponse), '/viam.component.switch.v1.SwitchService/GetNumberOfPositions': grpclib.const.Handler(self.GetNumberOfPositions, grpclib.const.Cardinality.UNARY_UNARY, component.switch.v1.switch_pb2.GetNumberOfPositionsRequest, component.switch.v1.switch_pb2.GetNumberOfPositionsResponse), '/viam.component.switch.v1.SwitchService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)}
|
|
33
|
+
|
|
34
|
+
class UnimplementedSwitchServiceBase(SwitchServiceBase):
|
|
35
|
+
|
|
36
|
+
async def SetPosition(self, stream: 'grpclib.server.Stream[component.switch.v1.switch_pb2.SetPositionRequest, component.switch.v1.switch_pb2.SetPositionResponse]') -> None:
|
|
37
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
38
|
+
|
|
39
|
+
async def GetPosition(self, stream: 'grpclib.server.Stream[component.switch.v1.switch_pb2.GetPositionRequest, component.switch.v1.switch_pb2.GetPositionResponse]') -> None:
|
|
40
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
41
|
+
|
|
42
|
+
async def GetNumberOfPositions(self, stream: 'grpclib.server.Stream[component.switch.v1.switch_pb2.GetNumberOfPositionsRequest, component.switch.v1.switch_pb2.GetNumberOfPositionsResponse]') -> None:
|
|
43
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
44
|
+
|
|
45
|
+
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
46
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
47
|
+
|
|
48
|
+
class SwitchServiceStub:
|
|
49
|
+
|
|
50
|
+
def __init__(self, channel: grpclib.client.Channel) -> None:
|
|
51
|
+
self.SetPosition = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.switch.v1.SwitchService/SetPosition', component.switch.v1.switch_pb2.SetPositionRequest, component.switch.v1.switch_pb2.SetPositionResponse)
|
|
52
|
+
self.GetPosition = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.switch.v1.SwitchService/GetPosition', component.switch.v1.switch_pb2.GetPositionRequest, component.switch.v1.switch_pb2.GetPositionResponse)
|
|
53
|
+
self.GetNumberOfPositions = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.switch.v1.SwitchService/GetNumberOfPositions', component.switch.v1.switch_pb2.GetNumberOfPositionsRequest, component.switch.v1.switch_pb2.GetNumberOfPositionsResponse)
|
|
54
|
+
self.DoCommand = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.switch.v1.SwitchService/DoCommand', common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""Generated protocol buffer code."""
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
4
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
5
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
6
|
+
from google.protobuf.internal import builder as _builder
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'component/switch/v1/switch.proto')
|
|
8
|
+
_sym_db = _symbol_database.Default()
|
|
9
|
+
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
|
|
10
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
11
|
+
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
12
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n component/switch/v1/switch.proto\x12\x18viam.component.switch.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"s\n\x12SetPositionRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1a\n\x08position\x18\x02 \x01(\rR\x08position\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x15\n\x13SetPositionResponse"W\n\x12GetPositionRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"1\n\x13GetPositionResponse\x12\x1a\n\x08position\x18\x01 \x01(\rR\x08position"`\n\x1bGetNumberOfPositionsRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"f\n\x1cGetNumberOfPositionsResponse\x12.\n\x13number_of_positions\x18\x01 \x01(\rR\x11numberOfPositions\x12\x16\n\x06labels\x18\x02 \x03(\tR\x06labels2\xb9\x05\n\rSwitchService\x12\xa5\x01\n\x0bSetPosition\x12,.viam.component.switch.v1.SetPositionRequest\x1a-.viam.component.switch.v1.SetPositionResponse"9\x82\xd3\xe4\x93\x023\x1a1/viam/api/v1/component/switch/{name}/set_position\x12\xa5\x01\n\x0bGetPosition\x12,.viam.component.switch.v1.GetPositionRequest\x1a-.viam.component.switch.v1.GetPositionResponse"9\x82\xd3\xe4\x93\x023\x1a1/viam/api/v1/component/switch/{name}/get_position\x12\xcb\x01\n\x14GetNumberOfPositions\x125.viam.component.switch.v1.GetNumberOfPositionsRequest\x1a6.viam.component.switch.v1.GetNumberOfPositionsResponse"D\x82\xd3\xe4\x93\x02>\x1a</viam/api/v1/component/switch/{name}/get_number_of_positions\x12\x89\x01\n\tDoCommand\x12 .viam.common.v1.DoCommandRequest\x1a!.viam.common.v1.DoCommandResponse"7\x82\xd3\xe4\x93\x021"//viam/api/v1/component/switch/{name}/do_commandBC\n\x1ccom.viam.component.switch.v1Z#go.viam.com/api/component/switch/v1b\x06proto3')
|
|
13
|
+
_globals = globals()
|
|
14
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
15
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'component.switch.v1.switch_pb2', _globals)
|
|
16
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
17
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
18
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\x1ccom.viam.component.switch.v1Z#go.viam.com/api/component/switch/v1'
|
|
19
|
+
_globals['_SWITCHSERVICE'].methods_by_name['SetPosition']._loaded_options = None
|
|
20
|
+
_globals['_SWITCHSERVICE'].methods_by_name['SetPosition']._serialized_options = b'\x82\xd3\xe4\x93\x023\x1a1/viam/api/v1/component/switch/{name}/set_position'
|
|
21
|
+
_globals['_SWITCHSERVICE'].methods_by_name['GetPosition']._loaded_options = None
|
|
22
|
+
_globals['_SWITCHSERVICE'].methods_by_name['GetPosition']._serialized_options = b'\x82\xd3\xe4\x93\x023\x1a1/viam/api/v1/component/switch/{name}/get_position'
|
|
23
|
+
_globals['_SWITCHSERVICE'].methods_by_name['GetNumberOfPositions']._loaded_options = None
|
|
24
|
+
_globals['_SWITCHSERVICE'].methods_by_name['GetNumberOfPositions']._serialized_options = b'\x82\xd3\xe4\x93\x02>\x1a</viam/api/v1/component/switch/{name}/get_number_of_positions'
|
|
25
|
+
_globals['_SWITCHSERVICE'].methods_by_name['DoCommand']._loaded_options = None
|
|
26
|
+
_globals['_SWITCHSERVICE'].methods_by_name['DoCommand']._serialized_options = b'\x82\xd3\xe4\x93\x021"//viam/api/v1/component/switch/{name}/do_command'
|
|
27
|
+
_globals['_SETPOSITIONREQUEST']._serialized_start = 146
|
|
28
|
+
_globals['_SETPOSITIONREQUEST']._serialized_end = 261
|
|
29
|
+
_globals['_SETPOSITIONRESPONSE']._serialized_start = 263
|
|
30
|
+
_globals['_SETPOSITIONRESPONSE']._serialized_end = 284
|
|
31
|
+
_globals['_GETPOSITIONREQUEST']._serialized_start = 286
|
|
32
|
+
_globals['_GETPOSITIONREQUEST']._serialized_end = 373
|
|
33
|
+
_globals['_GETPOSITIONRESPONSE']._serialized_start = 375
|
|
34
|
+
_globals['_GETPOSITIONRESPONSE']._serialized_end = 424
|
|
35
|
+
_globals['_GETNUMBEROFPOSITIONSREQUEST']._serialized_start = 426
|
|
36
|
+
_globals['_GETNUMBEROFPOSITIONSREQUEST']._serialized_end = 522
|
|
37
|
+
_globals['_GETNUMBEROFPOSITIONSRESPONSE']._serialized_start = 524
|
|
38
|
+
_globals['_GETNUMBEROFPOSITIONSRESPONSE']._serialized_end = 626
|
|
39
|
+
_globals['_SWITCHSERVICE']._serialized_start = 629
|
|
40
|
+
_globals['_SWITCHSERVICE']._serialized_end = 1326
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import builtins
|
|
6
|
+
import collections.abc
|
|
7
|
+
import google.protobuf.descriptor
|
|
8
|
+
import google.protobuf.internal.containers
|
|
9
|
+
import google.protobuf.message
|
|
10
|
+
import google.protobuf.struct_pb2
|
|
11
|
+
import typing
|
|
12
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
13
|
+
|
|
14
|
+
@typing.final
|
|
15
|
+
class SetPositionRequest(google.protobuf.message.Message):
|
|
16
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
17
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
18
|
+
POSITION_FIELD_NUMBER: builtins.int
|
|
19
|
+
EXTRA_FIELD_NUMBER: builtins.int
|
|
20
|
+
name: builtins.str
|
|
21
|
+
position: builtins.int
|
|
22
|
+
|
|
23
|
+
@property
|
|
24
|
+
def extra(self) -> google.protobuf.struct_pb2.Struct:
|
|
25
|
+
...
|
|
26
|
+
|
|
27
|
+
def __init__(self, *, name: builtins.str=..., position: builtins.int=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
28
|
+
...
|
|
29
|
+
|
|
30
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
31
|
+
...
|
|
32
|
+
|
|
33
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name', 'position', b'position']) -> None:
|
|
34
|
+
...
|
|
35
|
+
global___SetPositionRequest = SetPositionRequest
|
|
36
|
+
|
|
37
|
+
@typing.final
|
|
38
|
+
class SetPositionResponse(google.protobuf.message.Message):
|
|
39
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
40
|
+
|
|
41
|
+
def __init__(self) -> None:
|
|
42
|
+
...
|
|
43
|
+
global___SetPositionResponse = SetPositionResponse
|
|
44
|
+
|
|
45
|
+
@typing.final
|
|
46
|
+
class GetPositionRequest(google.protobuf.message.Message):
|
|
47
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
48
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
49
|
+
EXTRA_FIELD_NUMBER: builtins.int
|
|
50
|
+
name: builtins.str
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def extra(self) -> google.protobuf.struct_pb2.Struct:
|
|
54
|
+
...
|
|
55
|
+
|
|
56
|
+
def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
57
|
+
...
|
|
58
|
+
|
|
59
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
60
|
+
...
|
|
61
|
+
|
|
62
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name']) -> None:
|
|
63
|
+
...
|
|
64
|
+
global___GetPositionRequest = GetPositionRequest
|
|
65
|
+
|
|
66
|
+
@typing.final
|
|
67
|
+
class GetPositionResponse(google.protobuf.message.Message):
|
|
68
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
69
|
+
POSITION_FIELD_NUMBER: builtins.int
|
|
70
|
+
position: builtins.int
|
|
71
|
+
|
|
72
|
+
def __init__(self, *, position: builtins.int=...) -> None:
|
|
73
|
+
...
|
|
74
|
+
|
|
75
|
+
def ClearField(self, field_name: typing.Literal['position', b'position']) -> None:
|
|
76
|
+
...
|
|
77
|
+
global___GetPositionResponse = GetPositionResponse
|
|
78
|
+
|
|
79
|
+
@typing.final
|
|
80
|
+
class GetNumberOfPositionsRequest(google.protobuf.message.Message):
|
|
81
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
82
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
83
|
+
EXTRA_FIELD_NUMBER: builtins.int
|
|
84
|
+
name: builtins.str
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def extra(self) -> google.protobuf.struct_pb2.Struct:
|
|
88
|
+
...
|
|
89
|
+
|
|
90
|
+
def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
91
|
+
...
|
|
92
|
+
|
|
93
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
94
|
+
...
|
|
95
|
+
|
|
96
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name']) -> None:
|
|
97
|
+
...
|
|
98
|
+
global___GetNumberOfPositionsRequest = GetNumberOfPositionsRequest
|
|
99
|
+
|
|
100
|
+
@typing.final
|
|
101
|
+
class GetNumberOfPositionsResponse(google.protobuf.message.Message):
|
|
102
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
103
|
+
NUMBER_OF_POSITIONS_FIELD_NUMBER: builtins.int
|
|
104
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
105
|
+
number_of_positions: builtins.int
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def labels(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
109
|
+
...
|
|
110
|
+
|
|
111
|
+
def __init__(self, *, number_of_positions: builtins.int=..., labels: collections.abc.Iterable[builtins.str] | None=...) -> None:
|
|
112
|
+
...
|
|
113
|
+
|
|
114
|
+
def ClearField(self, field_name: typing.Literal['labels', b'labels', 'number_of_positions', b'number_of_positions']) -> None:
|
|
115
|
+
...
|
|
116
|
+
global___GetNumberOfPositionsResponse = GetNumberOfPositionsResponse
|
|
@@ -1,33 +1,36 @@
|
|
|
1
1
|
"""Generated protocol buffer code."""
|
|
2
|
-
from google.protobuf.internal import builder as _builder
|
|
3
2
|
from google.protobuf import descriptor as _descriptor
|
|
4
3
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
4
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
5
5
|
from google.protobuf import symbol_database as _symbol_database
|
|
6
|
+
from google.protobuf.internal import builder as _builder
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'component/testecho/v1/testecho.proto')
|
|
6
8
|
_sym_db = _symbol_database.Default()
|
|
7
9
|
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
|
|
8
10
|
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$component/testecho/v1/testecho.proto\x12\x1aviam.component.testecho.v1\x1a\x16common/v1/common.proto";\n\x0bEchoRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message"(\n\x0cEchoResponse\x12\x18\n\x07message\x18\x01 \x01(\tR\x07message"C\n\x13EchoMultipleRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message"0\n\x14EchoMultipleResponse\x12\x18\n\x07message\x18\x01 \x01(\tR\x07message"?\n\x0fEchoBiDiRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message",\n\x10EchoBiDiResponse\x12\x18\n\x07message\x18\x01 \x01(\tR\x07message"!\n\x0bStopRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name"\x0e\n\x0cStopResponse2\xb3\x03\n\x0fTestEchoService\x12[\n\x04Echo\x12\'.viam.component.testecho.v1.EchoRequest\x1a(.viam.component.testecho.v1.EchoResponse"\x00\x12y\n\x0cEchoMultiple\x12/.viam.component.testecho.v1.EchoMultipleRequest\x1a0.viam.component.testecho.v1.EchoMultipleResponse"\x04\xa0\x92)\x010\x01\x12k\n\x08EchoBiDi\x12+.viam.component.testecho.v1.EchoBiDiRequest\x1a,.viam.component.testecho.v1.EchoBiDiResponse"\x00(\x010\x01\x12[\n\x04Stop\x12\'.viam.component.testecho.v1.StopRequest\x1a(.viam.component.testecho.v1.StopResponse"\x00BG\n\x1ecom.viam.component.testecho.v1Z%go.viam.com/api/component/testecho/v1b\x06proto3')
|
|
9
|
-
|
|
10
|
-
_builder.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
DESCRIPTOR.
|
|
14
|
-
|
|
15
|
-
_TESTECHOSERVICE.methods_by_name['EchoMultiple'].
|
|
16
|
-
|
|
17
|
-
_ECHOREQUEST.
|
|
18
|
-
|
|
19
|
-
_ECHORESPONSE.
|
|
20
|
-
|
|
21
|
-
_ECHOMULTIPLEREQUEST.
|
|
22
|
-
|
|
23
|
-
_ECHOMULTIPLERESPONSE.
|
|
24
|
-
|
|
25
|
-
_ECHOBIDIREQUEST.
|
|
26
|
-
|
|
27
|
-
_ECHOBIDIRESPONSE.
|
|
28
|
-
|
|
29
|
-
_STOPREQUEST.
|
|
30
|
-
|
|
31
|
-
_STOPRESPONSE.
|
|
32
|
-
|
|
33
|
-
_TESTECHOSERVICE.
|
|
11
|
+
_globals = globals()
|
|
12
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
13
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'component.testecho.v1.testecho_pb2', _globals)
|
|
14
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
15
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
16
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\x1ecom.viam.component.testecho.v1Z%go.viam.com/api/component/testecho/v1'
|
|
17
|
+
_globals['_TESTECHOSERVICE'].methods_by_name['EchoMultiple']._loaded_options = None
|
|
18
|
+
_globals['_TESTECHOSERVICE'].methods_by_name['EchoMultiple']._serialized_options = b'\xa0\x92)\x01'
|
|
19
|
+
_globals['_ECHOREQUEST']._serialized_start = 92
|
|
20
|
+
_globals['_ECHOREQUEST']._serialized_end = 151
|
|
21
|
+
_globals['_ECHORESPONSE']._serialized_start = 153
|
|
22
|
+
_globals['_ECHORESPONSE']._serialized_end = 193
|
|
23
|
+
_globals['_ECHOMULTIPLEREQUEST']._serialized_start = 195
|
|
24
|
+
_globals['_ECHOMULTIPLEREQUEST']._serialized_end = 262
|
|
25
|
+
_globals['_ECHOMULTIPLERESPONSE']._serialized_start = 264
|
|
26
|
+
_globals['_ECHOMULTIPLERESPONSE']._serialized_end = 312
|
|
27
|
+
_globals['_ECHOBIDIREQUEST']._serialized_start = 314
|
|
28
|
+
_globals['_ECHOBIDIREQUEST']._serialized_end = 377
|
|
29
|
+
_globals['_ECHOBIDIRESPONSE']._serialized_start = 379
|
|
30
|
+
_globals['_ECHOBIDIRESPONSE']._serialized_end = 423
|
|
31
|
+
_globals['_STOPREQUEST']._serialized_start = 425
|
|
32
|
+
_globals['_STOPREQUEST']._serialized_end = 458
|
|
33
|
+
_globals['_STOPRESPONSE']._serialized_start = 460
|
|
34
|
+
_globals['_STOPRESPONSE']._serialized_end = 474
|
|
35
|
+
_globals['_TESTECHOSERVICE']._serialized_start = 477
|
|
36
|
+
_globals['_TESTECHOSERVICE']._serialized_end = 912
|
viam/gen/module/v1/module_pb2.py
CHANGED
|
@@ -1,40 +1,43 @@
|
|
|
1
1
|
"""Generated protocol buffer code."""
|
|
2
|
-
from google.protobuf.internal import builder as _builder
|
|
3
2
|
from google.protobuf import descriptor as _descriptor
|
|
4
3
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
4
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
5
5
|
from google.protobuf import symbol_database as _symbol_database
|
|
6
|
+
from google.protobuf.internal import builder as _builder
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'module/v1/module.proto')
|
|
6
8
|
_sym_db = _symbol_database.Default()
|
|
7
9
|
from ...app.v1 import robot_pb2 as app_dot_v1_dot_robot__pb2
|
|
8
10
|
from ...robot.v1 import robot_pb2 as robot_dot_v1_dot_robot__pb2
|
|
9
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16module/v1/module.proto\x12\x0eviam.module.v1\x1a\x12app/v1/robot.proto\x1a\x14robot/v1/robot.proto"n\n\x12AddResourceRequest\x124\n\x06config\x18\x01 \x01(\x0b2\x1c.viam.app.v1.ComponentConfigR\x06config\x12"\n\x0cdependencies\x18\x02 \x03(\tR\x0cdependencies"\x15\n\x13AddResourceResponse"v\n\x1aReconfigureResourceRequest\x124\n\x06config\x18\x01 \x01(\x0b2\x1c.viam.app.v1.ComponentConfigR\x06config\x12"\n\x0cdependencies\x18\x02 \x03(\tR\x0cdependencies"\x1d\n\x1bReconfigureResourceResponse"+\n\x15RemoveResourceRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name"\x18\n\x16RemoveResourceResponse"h\n\x11HandlerDefinition\x12;\n\x07subtype\x18\x01 \x01(\x0b2!.viam.robot.v1.ResourceRPCSubtypeR\x07subtype\x12\x16\n\x06models\x18\x02 \x03(\tR\x06models"K\n\nHandlerMap\x12=\n\x08handlers\x18\x01 \x03(\x0b2!.viam.module.v1.HandlerDefinitionR\x08handlers"X\n\x0cReadyRequest\x12%\n\x0eparent_address\x18\x01 \x01(\tR\rparentAddress\x12!\n\x0cwebrtc_offer\x18\x02 \x01(\tR\x0bwebrtcOffer"\x86\x01\n\rReadyResponse\x12\x14\n\x05ready\x18\x01 \x01(\x08R\x05ready\x12:\n\nhandlermap\x18\x02 \x01(\x0b2\x1a.viam.module.v1.HandlerMapR\nhandlermap\x12#\n\rwebrtc_answer\x18\x03 \x01(\tR\x0cwebrtcAnswer"M\n\x15ValidateConfigRequest\x124\n\x06config\x18\x01 \x01(\x0b2\x1c.viam.app.v1.ComponentConfigR\x06config"
|
|
10
|
-
|
|
11
|
-
_builder.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
DESCRIPTOR.
|
|
15
|
-
|
|
16
|
-
_ADDRESOURCEREQUEST.
|
|
17
|
-
|
|
18
|
-
_ADDRESOURCERESPONSE.
|
|
19
|
-
|
|
20
|
-
_RECONFIGURERESOURCEREQUEST.
|
|
21
|
-
|
|
22
|
-
_RECONFIGURERESOURCERESPONSE.
|
|
23
|
-
|
|
24
|
-
_REMOVERESOURCEREQUEST.
|
|
25
|
-
|
|
26
|
-
_REMOVERESOURCERESPONSE.
|
|
27
|
-
|
|
28
|
-
_HANDLERDEFINITION.
|
|
29
|
-
|
|
30
|
-
_HANDLERMAP.
|
|
31
|
-
|
|
32
|
-
_READYREQUEST.
|
|
33
|
-
|
|
34
|
-
_READYRESPONSE.
|
|
35
|
-
|
|
36
|
-
_VALIDATECONFIGREQUEST.
|
|
37
|
-
|
|
38
|
-
_VALIDATECONFIGRESPONSE.
|
|
39
|
-
|
|
40
|
-
_MODULESERVICE.
|
|
11
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16module/v1/module.proto\x12\x0eviam.module.v1\x1a\x12app/v1/robot.proto\x1a\x14robot/v1/robot.proto"n\n\x12AddResourceRequest\x124\n\x06config\x18\x01 \x01(\x0b2\x1c.viam.app.v1.ComponentConfigR\x06config\x12"\n\x0cdependencies\x18\x02 \x03(\tR\x0cdependencies"\x15\n\x13AddResourceResponse"v\n\x1aReconfigureResourceRequest\x124\n\x06config\x18\x01 \x01(\x0b2\x1c.viam.app.v1.ComponentConfigR\x06config\x12"\n\x0cdependencies\x18\x02 \x03(\tR\x0cdependencies"\x1d\n\x1bReconfigureResourceResponse"+\n\x15RemoveResourceRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name"\x18\n\x16RemoveResourceResponse"h\n\x11HandlerDefinition\x12;\n\x07subtype\x18\x01 \x01(\x0b2!.viam.robot.v1.ResourceRPCSubtypeR\x07subtype\x12\x16\n\x06models\x18\x02 \x03(\tR\x06models"K\n\nHandlerMap\x12=\n\x08handlers\x18\x01 \x03(\x0b2!.viam.module.v1.HandlerDefinitionR\x08handlers"X\n\x0cReadyRequest\x12%\n\x0eparent_address\x18\x01 \x01(\tR\rparentAddress\x12!\n\x0cwebrtc_offer\x18\x02 \x01(\tR\x0bwebrtcOffer"\x86\x01\n\rReadyResponse\x12\x14\n\x05ready\x18\x01 \x01(\x08R\x05ready\x12:\n\nhandlermap\x18\x02 \x01(\x0b2\x1a.viam.module.v1.HandlerMapR\nhandlermap\x12#\n\rwebrtc_answer\x18\x03 \x01(\tR\x0cwebrtcAnswer"M\n\x15ValidateConfigRequest\x124\n\x06config\x18\x01 \x01(\x0b2\x1c.viam.app.v1.ComponentConfigR\x06config"q\n\x16ValidateConfigResponse\x12"\n\x0cdependencies\x18\x01 \x03(\tR\x0cdependencies\x123\n\x15optional_dependencies\x18\x02 \x03(\tR\x14optionalDependencies2\xdf\x03\n\rModuleService\x12V\n\x0bAddResource\x12".viam.module.v1.AddResourceRequest\x1a#.viam.module.v1.AddResourceResponse\x12n\n\x13ReconfigureResource\x12*.viam.module.v1.ReconfigureResourceRequest\x1a+.viam.module.v1.ReconfigureResourceResponse\x12_\n\x0eRemoveResource\x12%.viam.module.v1.RemoveResourceRequest\x1a&.viam.module.v1.RemoveResourceResponse\x12D\n\x05Ready\x12\x1c.viam.module.v1.ReadyRequest\x1a\x1d.viam.module.v1.ReadyResponse\x12_\n\x0eValidateConfig\x12%.viam.module.v1.ValidateConfigRequest\x1a&.viam.module.v1.ValidateConfigResponseB\x1bZ\x19go.viam.com/api/module/v1b\x06proto3')
|
|
12
|
+
_globals = globals()
|
|
13
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
14
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'module.v1.module_pb2', _globals)
|
|
15
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
16
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
17
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z\x19go.viam.com/api/module/v1'
|
|
18
|
+
_globals['_ADDRESOURCEREQUEST']._serialized_start = 84
|
|
19
|
+
_globals['_ADDRESOURCEREQUEST']._serialized_end = 194
|
|
20
|
+
_globals['_ADDRESOURCERESPONSE']._serialized_start = 196
|
|
21
|
+
_globals['_ADDRESOURCERESPONSE']._serialized_end = 217
|
|
22
|
+
_globals['_RECONFIGURERESOURCEREQUEST']._serialized_start = 219
|
|
23
|
+
_globals['_RECONFIGURERESOURCEREQUEST']._serialized_end = 337
|
|
24
|
+
_globals['_RECONFIGURERESOURCERESPONSE']._serialized_start = 339
|
|
25
|
+
_globals['_RECONFIGURERESOURCERESPONSE']._serialized_end = 368
|
|
26
|
+
_globals['_REMOVERESOURCEREQUEST']._serialized_start = 370
|
|
27
|
+
_globals['_REMOVERESOURCEREQUEST']._serialized_end = 413
|
|
28
|
+
_globals['_REMOVERESOURCERESPONSE']._serialized_start = 415
|
|
29
|
+
_globals['_REMOVERESOURCERESPONSE']._serialized_end = 439
|
|
30
|
+
_globals['_HANDLERDEFINITION']._serialized_start = 441
|
|
31
|
+
_globals['_HANDLERDEFINITION']._serialized_end = 545
|
|
32
|
+
_globals['_HANDLERMAP']._serialized_start = 547
|
|
33
|
+
_globals['_HANDLERMAP']._serialized_end = 622
|
|
34
|
+
_globals['_READYREQUEST']._serialized_start = 624
|
|
35
|
+
_globals['_READYREQUEST']._serialized_end = 712
|
|
36
|
+
_globals['_READYRESPONSE']._serialized_start = 715
|
|
37
|
+
_globals['_READYRESPONSE']._serialized_end = 849
|
|
38
|
+
_globals['_VALIDATECONFIGREQUEST']._serialized_start = 851
|
|
39
|
+
_globals['_VALIDATECONFIGREQUEST']._serialized_end = 928
|
|
40
|
+
_globals['_VALIDATECONFIGRESPONSE']._serialized_start = 930
|
|
41
|
+
_globals['_VALIDATECONFIGRESPONSE']._serialized_end = 1043
|
|
42
|
+
_globals['_MODULESERVICE']._serialized_start = 1046
|
|
43
|
+
_globals['_MODULESERVICE']._serialized_end = 1525
|