diff --git a/src/viam/gen/robot/v1/robot_grpc.py b/src/viam/gen/robot/v1/robot_grpc.py index 62fe9b45e..23bcabd7e 100644 --- a/src/viam/gen/robot/v1/robot_grpc.py +++ b/src/viam/gen/robot/v1/robot_grpc.py @@ -38,6 +38,10 @@ async def CancelOperation(self, stream: 'grpclib.server.Stream[robot.v1.robot_pb async def BlockForOperation(self, stream: 'grpclib.server.Stream[robot.v1.robot_pb2.BlockForOperationRequest, robot.v1.robot_pb2.BlockForOperationResponse]') -> None: pass + @abc.abstractmethod + async def GetModelsFromModules(self, stream: 'grpclib.server.Stream[robot.v1.robot_pb2.GetModelsFromModulesRequest, robot.v1.robot_pb2.GetModelsFromModulesResponse]') -> None: + pass + @abc.abstractmethod async def DiscoverComponents(self, stream: 'grpclib.server.Stream[robot.v1.robot_pb2.DiscoverComponentsRequest, robot.v1.robot_pb2.DiscoverComponentsResponse]') -> None: pass @@ -99,7 +103,7 @@ async def GetVersion(self, stream: 'grpclib.server.Stream[robot.v1.robot_pb2.Get 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), '/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), '/viam.robot.v1.RobotService/Shutdown': grpclib.const.Handler(self.Shutdown, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.ShutdownRequest, robot.v1.robot_pb2.ShutdownResponse), '/viam.robot.v1.RobotService/GetMachineStatus': grpclib.const.Handler(self.GetMachineStatus, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.GetMachineStatusRequest, robot.v1.robot_pb2.GetMachineStatusResponse), '/viam.robot.v1.RobotService/GetVersion': grpclib.const.Handler(self.GetVersion, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.GetVersionRequest, robot.v1.robot_pb2.GetVersionResponse)} + 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/GetModelsFromModules': grpclib.const.Handler(self.GetModelsFromModules, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.GetModelsFromModulesRequest, robot.v1.robot_pb2.GetModelsFromModulesResponse), '/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), '/viam.robot.v1.RobotService/Shutdown': grpclib.const.Handler(self.Shutdown, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.ShutdownRequest, robot.v1.robot_pb2.ShutdownResponse), '/viam.robot.v1.RobotService/GetMachineStatus': grpclib.const.Handler(self.GetMachineStatus, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.GetMachineStatusRequest, robot.v1.robot_pb2.GetMachineStatusResponse), '/viam.robot.v1.RobotService/GetVersion': grpclib.const.Handler(self.GetVersion, grpclib.const.Cardinality.UNARY_UNARY, robot.v1.robot_pb2.GetVersionRequest, robot.v1.robot_pb2.GetVersionResponse)} class UnimplementedRobotServiceBase(RobotServiceBase): @@ -121,6 +125,9 @@ async def CancelOperation(self, stream: 'grpclib.server.Stream[robot.v1.robot_pb async def BlockForOperation(self, stream: 'grpclib.server.Stream[robot.v1.robot_pb2.BlockForOperationRequest, robot.v1.robot_pb2.BlockForOperationResponse]') -> None: raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED) + async def GetModelsFromModules(self, stream: 'grpclib.server.Stream[robot.v1.robot_pb2.GetModelsFromModulesRequest, robot.v1.robot_pb2.GetModelsFromModulesResponse]') -> None: + raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED) + async def DiscoverComponents(self, stream: 'grpclib.server.Stream[robot.v1.robot_pb2.DiscoverComponentsRequest, robot.v1.robot_pb2.DiscoverComponentsResponse]') -> None: raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED) @@ -175,6 +182,7 @@ def __init__(self, channel: grpclib.client.Channel) -> None: self.ResourceRPCSubtypes = grpclib.client.UnaryUnaryMethod(channel, '/viam.robot.v1.RobotService/ResourceRPCSubtypes', robot.v1.robot_pb2.ResourceRPCSubtypesRequest, robot.v1.robot_pb2.ResourceRPCSubtypesResponse) self.CancelOperation = grpclib.client.UnaryUnaryMethod(channel, '/viam.robot.v1.RobotService/CancelOperation', robot.v1.robot_pb2.CancelOperationRequest, robot.v1.robot_pb2.CancelOperationResponse) self.BlockForOperation = grpclib.client.UnaryUnaryMethod(channel, '/viam.robot.v1.RobotService/BlockForOperation', robot.v1.robot_pb2.BlockForOperationRequest, robot.v1.robot_pb2.BlockForOperationResponse) + self.GetModelsFromModules = grpclib.client.UnaryUnaryMethod(channel, '/viam.robot.v1.RobotService/GetModelsFromModules', robot.v1.robot_pb2.GetModelsFromModulesRequest, robot.v1.robot_pb2.GetModelsFromModulesResponse) self.DiscoverComponents = grpclib.client.UnaryUnaryMethod(channel, '/viam.robot.v1.RobotService/DiscoverComponents', robot.v1.robot_pb2.DiscoverComponentsRequest, robot.v1.robot_pb2.DiscoverComponentsResponse) self.FrameSystemConfig = grpclib.client.UnaryUnaryMethod(channel, '/viam.robot.v1.RobotService/FrameSystemConfig', robot.v1.robot_pb2.FrameSystemConfigRequest, robot.v1.robot_pb2.FrameSystemConfigResponse) self.TransformPose = grpclib.client.UnaryUnaryMethod(channel, '/viam.robot.v1.RobotService/TransformPose', robot.v1.robot_pb2.TransformPoseRequest, robot.v1.robot_pb2.TransformPoseResponse) diff --git a/src/viam/gen/robot/v1/robot_pb2.py b/src/viam/gen/robot/v1/robot_pb2.py index e32154f86..6e2e1edc3 100644 --- a/src/viam/gen/robot/v1/robot_pb2.py +++ b/src/viam/gen/robot/v1/robot_pb2.py @@ -11,7 +11,7 @@ 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"o\n\x0eDiscoveryQuery\x12\x18\n\x07subtype\x18\x01 \x01(\tR\x07subtype\x12\x14\n\x05model\x18\x02 \x01(\tR\x05model\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"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"\x11\n\x0fShutdownRequest"\x12\n\x10ShutdownResponse"\x19\n\x17GetMachineStatusRequest"\x9c\x02\n\x18GetMachineStatusResponse\x12;\n\tresources\x18\x01 \x03(\x0b2\x1d.viam.robot.v1.ResourceStatusR\tresources\x123\n\x06config\x18\x02 \x01(\x0b2\x1b.viam.robot.v1.ConfigStatusR\x06config\x12C\n\x05state\x18\x03 \x01(\x0e2-.viam.robot.v1.GetMachineStatusResponse.StateR\x05state"I\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x16\n\x12STATE_INITIALIZING\x10\x01\x12\x11\n\rSTATE_RUNNING\x10\x02"\xe0\x03\n\x0eResourceStatus\x120\n\x04name\x18\x01 \x01(\x0b2\x1c.viam.common.v1.ResourceNameR\x04name\x129\n\x05state\x18\x02 \x01(\x0e2#.viam.robot.v1.ResourceStatus.StateR\x05state\x12=\n\x0clast_updated\x18\x03 \x01(\x0b2\x1a.google.protobuf.TimestampR\x0blastUpdated\x12\x1a\n\x08revision\x18\x04 \x01(\tR\x08revision\x12\x14\n\x05error\x18\x05 \x01(\tR\x05error\x12S\n\x0ecloud_metadata\x18\x06 \x01(\x0b2\'.viam.robot.v1.GetCloudMetadataResponseH\x00R\rcloudMetadata\x88\x01\x01"\x87\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x16\n\x12STATE_UNCONFIGURED\x10\x01\x12\x15\n\x11STATE_CONFIGURING\x10\x02\x12\x0f\n\x0bSTATE_READY\x10\x03\x12\x12\n\x0eSTATE_REMOVING\x10\x04\x12\x13\n\x0fSTATE_UNHEALTHY\x10\x05B\x11\n\x0f_cloud_metadata"i\n\x0cConfigStatus\x12\x1a\n\x08revision\x18\x01 \x01(\tR\x08revision\x12=\n\x0clast_updated\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x0blastUpdated"\x13\n\x11GetVersionRequest"k\n\x12GetVersionResponse\x12\x1a\n\x08platform\x18\x01 \x01(\tR\x08platform\x12\x18\n\x07version\x18\x02 \x01(\tR\x07version\x12\x1f\n\x0bapi_version\x18\x03 \x01(\tR\napiVersion*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\xcb\x15\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\x12n\n\tGetStatus\x12\x1f.viam.robot.v1.GetStatusRequest\x1a .viam.robot.v1.GetStatusResponse"\x1e\x88\x02\x01\x82\xd3\xe4\x93\x02\x15\x12\x13/viam/api/v1/status\x12\x80\x01\n\x0cStreamStatus\x12".viam.robot.v1.StreamStatusRequest\x1a#.viam.robot.v1.StreamStatusResponse"%\x88\x02\x01\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_module\x12j\n\x08Shutdown\x12\x1e.viam.robot.v1.ShutdownRequest\x1a\x1f.viam.robot.v1.ShutdownResponse"\x1d\x82\xd3\xe4\x93\x02\x17"\x15/viam/api/v1/shutdown\x12\x88\x01\n\x10GetMachineStatus\x12&.viam.robot.v1.GetMachineStatusRequest\x1a\'.viam.robot.v1.GetMachineStatusResponse"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/viam/api/v1/machine_status\x12o\n\nGetVersion\x12 .viam.robot.v1.GetVersionRequest\x1a!.viam.robot.v1.GetVersionResponse"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/viam/api/v1/versionB-\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"o\n\x0eDiscoveryQuery\x12\x18\n\x07subtype\x18\x01 \x01(\tR\x07subtype\x12\x14\n\x05model\x18\x02 \x01(\tR\x05model\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"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"\x82\x01\n\x0bModuleModel\x12\x1f\n\x0bmodule_name\x18\x01 \x01(\tR\nmoduleName\x12\x14\n\x05model\x18\x02 \x01(\tR\x05model\x12\x10\n\x03api\x18\x03 \x01(\tR\x03api\x12*\n\x11from_local_module\x18\x04 \x01(\x08R\x0ffromLocalModule"\x1d\n\x1bGetModelsFromModulesRequest"R\n\x1cGetModelsFromModulesResponse\x122\n\x06models\x18\x01 \x03(\x0b2\x1a.viam.robot.v1.ModuleModelR\x06models"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"\x11\n\x0fShutdownRequest"\x12\n\x10ShutdownResponse"\x19\n\x17GetMachineStatusRequest"\x9c\x02\n\x18GetMachineStatusResponse\x12;\n\tresources\x18\x01 \x03(\x0b2\x1d.viam.robot.v1.ResourceStatusR\tresources\x123\n\x06config\x18\x02 \x01(\x0b2\x1b.viam.robot.v1.ConfigStatusR\x06config\x12C\n\x05state\x18\x03 \x01(\x0e2-.viam.robot.v1.GetMachineStatusResponse.StateR\x05state"I\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x16\n\x12STATE_INITIALIZING\x10\x01\x12\x11\n\rSTATE_RUNNING\x10\x02"\xe0\x03\n\x0eResourceStatus\x120\n\x04name\x18\x01 \x01(\x0b2\x1c.viam.common.v1.ResourceNameR\x04name\x129\n\x05state\x18\x02 \x01(\x0e2#.viam.robot.v1.ResourceStatus.StateR\x05state\x12=\n\x0clast_updated\x18\x03 \x01(\x0b2\x1a.google.protobuf.TimestampR\x0blastUpdated\x12\x1a\n\x08revision\x18\x04 \x01(\tR\x08revision\x12\x14\n\x05error\x18\x05 \x01(\tR\x05error\x12S\n\x0ecloud_metadata\x18\x06 \x01(\x0b2\'.viam.robot.v1.GetCloudMetadataResponseH\x00R\rcloudMetadata\x88\x01\x01"\x87\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x16\n\x12STATE_UNCONFIGURED\x10\x01\x12\x15\n\x11STATE_CONFIGURING\x10\x02\x12\x0f\n\x0bSTATE_READY\x10\x03\x12\x12\n\x0eSTATE_REMOVING\x10\x04\x12\x13\n\x0fSTATE_UNHEALTHY\x10\x05B\x11\n\x0f_cloud_metadata"i\n\x0cConfigStatus\x12\x1a\n\x08revision\x18\x01 \x01(\tR\x08revision\x12=\n\x0clast_updated\x18\x02 \x01(\x0b2\x1a.google.protobuf.TimestampR\x0blastUpdated"\x13\n\x11GetVersionRequest"k\n\x12GetVersionResponse\x12\x1a\n\x08platform\x18\x01 \x01(\tR\x08platform\x12\x18\n\x07version\x18\x02 \x01(\tR\x07version\x12\x1f\n\x0bapi_version\x18\x03 \x01(\tR\napiVersion*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\xe1\x16\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\x93\x01\n\x14GetModelsFromModules\x12*.viam.robot.v1.GetModelsFromModulesRequest\x1a+.viam.robot.v1.GetModelsFromModulesResponse""\x82\xd3\xe4\x93\x02\x1c\x12\x1a/viam/api/v1/module_models\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\x12n\n\tGetStatus\x12\x1f.viam.robot.v1.GetStatusRequest\x1a .viam.robot.v1.GetStatusResponse"\x1e\x88\x02\x01\x82\xd3\xe4\x93\x02\x15\x12\x13/viam/api/v1/status\x12\x80\x01\n\x0cStreamStatus\x12".viam.robot.v1.StreamStatusRequest\x1a#.viam.robot.v1.StreamStatusResponse"%\x88\x02\x01\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_module\x12j\n\x08Shutdown\x12\x1e.viam.robot.v1.ShutdownRequest\x1a\x1f.viam.robot.v1.ShutdownResponse"\x1d\x82\xd3\xe4\x93\x02\x17"\x15/viam/api/v1/shutdown\x12\x88\x01\n\x10GetMachineStatus\x12&.viam.robot.v1.GetMachineStatusRequest\x1a\'.viam.robot.v1.GetMachineStatusResponse"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/viam/api/v1/machine_status\x12o\n\nGetVersion\x12 .viam.robot.v1.GetVersionRequest\x1a!.viam.robot.v1.GetVersionResponse"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/viam/api/v1/versionB-\n\x11com.viam.robot.v1Z\x18go.viam.com/api/robot/v1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'robot.v1.robot_pb2', _globals) @@ -32,6 +32,8 @@ _globals['_ROBOTSERVICE'].methods_by_name['CancelOperation']._serialized_options = b'\x82\xd3\xe4\x93\x02 "\x1e/viam/api/v1/operations/cancel' _globals['_ROBOTSERVICE'].methods_by_name['BlockForOperation']._loaded_options = None _globals['_ROBOTSERVICE'].methods_by_name['BlockForOperation']._serialized_options = b'\x82\xd3\xe4\x93\x02\x1f"\x1d/viam/api/v1/operations/block' + _globals['_ROBOTSERVICE'].methods_by_name['GetModelsFromModules']._loaded_options = None + _globals['_ROBOTSERVICE'].methods_by_name['GetModelsFromModules']._serialized_options = b'\x82\xd3\xe4\x93\x02\x1c\x12\x1a/viam/api/v1/module_models' _globals['_ROBOTSERVICE'].methods_by_name['DiscoverComponents']._loaded_options = None _globals['_ROBOTSERVICE'].methods_by_name['DiscoverComponents']._serialized_options = b'\x82\xd3\xe4\x93\x02#\x12!/viam/api/v1/discovery/components' _globals['_ROBOTSERVICE'].methods_by_name['FrameSystemConfig']._loaded_options = None @@ -62,8 +64,8 @@ _globals['_ROBOTSERVICE'].methods_by_name['GetMachineStatus']._serialized_options = b'\x82\xd3\xe4\x93\x02\x1d\x12\x1b/viam/api/v1/machine_status' _globals['_ROBOTSERVICE'].methods_by_name['GetVersion']._loaded_options = None _globals['_ROBOTSERVICE'].methods_by_name['GetVersion']._serialized_options = b'\x82\xd3\xe4\x93\x02\x16\x12\x14/viam/api/v1/version' - _globals['_PEERCONNECTIONTYPE']._serialized_start = 5194 - _globals['_PEERCONNECTIONTYPE']._serialized_end = 5316 + _globals['_PEERCONNECTIONTYPE']._serialized_start = 5442 + _globals['_PEERCONNECTIONTYPE']._serialized_end = 5564 _globals['_FRAMESYSTEMCONFIG']._serialized_start = 188 _globals['_FRAMESYSTEMCONFIG']._serialized_end = 313 _globals['_FRAMESYSTEMCONFIGREQUEST']._serialized_start = 315 @@ -114,65 +116,71 @@ _globals['_DISCOVERYQUERY']._serialized_end = 2382 _globals['_DISCOVERY']._serialized_start = 2384 _globals['_DISCOVERY']._serialized_end = 2499 - _globals['_DISCOVERCOMPONENTSREQUEST']._serialized_start = 2501 - _globals['_DISCOVERCOMPONENTSREQUEST']._serialized_end = 2585 - _globals['_DISCOVERCOMPONENTSRESPONSE']._serialized_start = 2587 - _globals['_DISCOVERCOMPONENTSRESPONSE']._serialized_end = 2671 - _globals['_STATUS']._serialized_start = 2674 - _globals['_STATUS']._serialized_end = 2854 - _globals['_GETSTATUSREQUEST']._serialized_start = 2856 - _globals['_GETSTATUSREQUEST']._serialized_end = 2943 - _globals['_GETSTATUSRESPONSE']._serialized_start = 2945 - _globals['_GETSTATUSRESPONSE']._serialized_end = 3011 - _globals['_STREAMSTATUSREQUEST']._serialized_start = 3014 - _globals['_STREAMSTATUSREQUEST']._serialized_end = 3153 - _globals['_STREAMSTATUSRESPONSE']._serialized_start = 3155 - _globals['_STREAMSTATUSRESPONSE']._serialized_end = 3224 - _globals['_STOPEXTRAPARAMETERS']._serialized_start = 3226 - _globals['_STOPEXTRAPARAMETERS']._serialized_end = 3346 - _globals['_STOPALLREQUEST']._serialized_start = 3348 - _globals['_STOPALLREQUEST']._serialized_end = 3422 - _globals['_STOPALLRESPONSE']._serialized_start = 3424 - _globals['_STOPALLRESPONSE']._serialized_end = 3441 - _globals['_STARTSESSIONREQUEST']._serialized_start = 3443 - _globals['_STARTSESSIONREQUEST']._serialized_end = 3488 - _globals['_STARTSESSIONRESPONSE']._serialized_start = 3490 - _globals['_STARTSESSIONRESPONSE']._serialized_end = 3598 - _globals['_SENDSESSIONHEARTBEATREQUEST']._serialized_start = 3600 - _globals['_SENDSESSIONHEARTBEATREQUEST']._serialized_end = 3645 - _globals['_SENDSESSIONHEARTBEATRESPONSE']._serialized_start = 3647 - _globals['_SENDSESSIONHEARTBEATRESPONSE']._serialized_end = 3677 - _globals['_LOGREQUEST']._serialized_start = 3679 - _globals['_LOGREQUEST']._serialized_end = 3737 - _globals['_LOGRESPONSE']._serialized_start = 3739 - _globals['_LOGRESPONSE']._serialized_end = 3752 - _globals['_GETCLOUDMETADATAREQUEST']._serialized_start = 3754 - _globals['_GETCLOUDMETADATAREQUEST']._serialized_end = 3779 - _globals['_GETCLOUDMETADATARESPONSE']._serialized_start = 3782 - _globals['_GETCLOUDMETADATARESPONSE']._serialized_end = 3990 - _globals['_RESTARTMODULEREQUEST']._serialized_start = 3992 - _globals['_RESTARTMODULEREQUEST']._serialized_end = 4094 - _globals['_RESTARTMODULERESPONSE']._serialized_start = 4096 - _globals['_RESTARTMODULERESPONSE']._serialized_end = 4119 - _globals['_SHUTDOWNREQUEST']._serialized_start = 4121 - _globals['_SHUTDOWNREQUEST']._serialized_end = 4138 - _globals['_SHUTDOWNRESPONSE']._serialized_start = 4140 - _globals['_SHUTDOWNRESPONSE']._serialized_end = 4158 - _globals['_GETMACHINESTATUSREQUEST']._serialized_start = 4160 - _globals['_GETMACHINESTATUSREQUEST']._serialized_end = 4185 - _globals['_GETMACHINESTATUSRESPONSE']._serialized_start = 4188 - _globals['_GETMACHINESTATUSRESPONSE']._serialized_end = 4472 - _globals['_GETMACHINESTATUSRESPONSE_STATE']._serialized_start = 4399 - _globals['_GETMACHINESTATUSRESPONSE_STATE']._serialized_end = 4472 - _globals['_RESOURCESTATUS']._serialized_start = 4475 - _globals['_RESOURCESTATUS']._serialized_end = 4955 - _globals['_RESOURCESTATUS_STATE']._serialized_start = 4801 - _globals['_RESOURCESTATUS_STATE']._serialized_end = 4936 - _globals['_CONFIGSTATUS']._serialized_start = 4957 - _globals['_CONFIGSTATUS']._serialized_end = 5062 - _globals['_GETVERSIONREQUEST']._serialized_start = 5064 - _globals['_GETVERSIONREQUEST']._serialized_end = 5083 - _globals['_GETVERSIONRESPONSE']._serialized_start = 5085 - _globals['_GETVERSIONRESPONSE']._serialized_end = 5192 - _globals['_ROBOTSERVICE']._serialized_start = 5319 - _globals['_ROBOTSERVICE']._serialized_end = 8082 \ No newline at end of file + _globals['_MODULEMODEL']._serialized_start = 2502 + _globals['_MODULEMODEL']._serialized_end = 2632 + _globals['_GETMODELSFROMMODULESREQUEST']._serialized_start = 2634 + _globals['_GETMODELSFROMMODULESREQUEST']._serialized_end = 2663 + _globals['_GETMODELSFROMMODULESRESPONSE']._serialized_start = 2665 + _globals['_GETMODELSFROMMODULESRESPONSE']._serialized_end = 2747 + _globals['_DISCOVERCOMPONENTSREQUEST']._serialized_start = 2749 + _globals['_DISCOVERCOMPONENTSREQUEST']._serialized_end = 2833 + _globals['_DISCOVERCOMPONENTSRESPONSE']._serialized_start = 2835 + _globals['_DISCOVERCOMPONENTSRESPONSE']._serialized_end = 2919 + _globals['_STATUS']._serialized_start = 2922 + _globals['_STATUS']._serialized_end = 3102 + _globals['_GETSTATUSREQUEST']._serialized_start = 3104 + _globals['_GETSTATUSREQUEST']._serialized_end = 3191 + _globals['_GETSTATUSRESPONSE']._serialized_start = 3193 + _globals['_GETSTATUSRESPONSE']._serialized_end = 3259 + _globals['_STREAMSTATUSREQUEST']._serialized_start = 3262 + _globals['_STREAMSTATUSREQUEST']._serialized_end = 3401 + _globals['_STREAMSTATUSRESPONSE']._serialized_start = 3403 + _globals['_STREAMSTATUSRESPONSE']._serialized_end = 3472 + _globals['_STOPEXTRAPARAMETERS']._serialized_start = 3474 + _globals['_STOPEXTRAPARAMETERS']._serialized_end = 3594 + _globals['_STOPALLREQUEST']._serialized_start = 3596 + _globals['_STOPALLREQUEST']._serialized_end = 3670 + _globals['_STOPALLRESPONSE']._serialized_start = 3672 + _globals['_STOPALLRESPONSE']._serialized_end = 3689 + _globals['_STARTSESSIONREQUEST']._serialized_start = 3691 + _globals['_STARTSESSIONREQUEST']._serialized_end = 3736 + _globals['_STARTSESSIONRESPONSE']._serialized_start = 3738 + _globals['_STARTSESSIONRESPONSE']._serialized_end = 3846 + _globals['_SENDSESSIONHEARTBEATREQUEST']._serialized_start = 3848 + _globals['_SENDSESSIONHEARTBEATREQUEST']._serialized_end = 3893 + _globals['_SENDSESSIONHEARTBEATRESPONSE']._serialized_start = 3895 + _globals['_SENDSESSIONHEARTBEATRESPONSE']._serialized_end = 3925 + _globals['_LOGREQUEST']._serialized_start = 3927 + _globals['_LOGREQUEST']._serialized_end = 3985 + _globals['_LOGRESPONSE']._serialized_start = 3987 + _globals['_LOGRESPONSE']._serialized_end = 4000 + _globals['_GETCLOUDMETADATAREQUEST']._serialized_start = 4002 + _globals['_GETCLOUDMETADATAREQUEST']._serialized_end = 4027 + _globals['_GETCLOUDMETADATARESPONSE']._serialized_start = 4030 + _globals['_GETCLOUDMETADATARESPONSE']._serialized_end = 4238 + _globals['_RESTARTMODULEREQUEST']._serialized_start = 4240 + _globals['_RESTARTMODULEREQUEST']._serialized_end = 4342 + _globals['_RESTARTMODULERESPONSE']._serialized_start = 4344 + _globals['_RESTARTMODULERESPONSE']._serialized_end = 4367 + _globals['_SHUTDOWNREQUEST']._serialized_start = 4369 + _globals['_SHUTDOWNREQUEST']._serialized_end = 4386 + _globals['_SHUTDOWNRESPONSE']._serialized_start = 4388 + _globals['_SHUTDOWNRESPONSE']._serialized_end = 4406 + _globals['_GETMACHINESTATUSREQUEST']._serialized_start = 4408 + _globals['_GETMACHINESTATUSREQUEST']._serialized_end = 4433 + _globals['_GETMACHINESTATUSRESPONSE']._serialized_start = 4436 + _globals['_GETMACHINESTATUSRESPONSE']._serialized_end = 4720 + _globals['_GETMACHINESTATUSRESPONSE_STATE']._serialized_start = 4647 + _globals['_GETMACHINESTATUSRESPONSE_STATE']._serialized_end = 4720 + _globals['_RESOURCESTATUS']._serialized_start = 4723 + _globals['_RESOURCESTATUS']._serialized_end = 5203 + _globals['_RESOURCESTATUS_STATE']._serialized_start = 5049 + _globals['_RESOURCESTATUS_STATE']._serialized_end = 5184 + _globals['_CONFIGSTATUS']._serialized_start = 5205 + _globals['_CONFIGSTATUS']._serialized_end = 5310 + _globals['_GETVERSIONREQUEST']._serialized_start = 5312 + _globals['_GETVERSIONREQUEST']._serialized_end = 5331 + _globals['_GETVERSIONRESPONSE']._serialized_start = 5333 + _globals['_GETVERSIONRESPONSE']._serialized_end = 5440 + _globals['_ROBOTSERVICE']._serialized_start = 5567 + _globals['_ROBOTSERVICE']._serialized_end = 8480 \ 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 ede02420a..184070139 100644 --- a/src/viam/gen/robot/v1/robot_pb2.pyi +++ b/src/viam/gen/robot/v1/robot_pb2.pyi @@ -471,6 +471,49 @@ class Discovery(google.protobuf.message.Message): ... global___Discovery = Discovery +@typing.final +class ModuleModel(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + MODULE_NAME_FIELD_NUMBER: builtins.int + MODEL_FIELD_NUMBER: builtins.int + API_FIELD_NUMBER: builtins.int + FROM_LOCAL_MODULE_FIELD_NUMBER: builtins.int + module_name: builtins.str + model: builtins.str + api: builtins.str + from_local_module: builtins.bool + + def __init__(self, *, module_name: builtins.str=..., model: builtins.str=..., api: builtins.str=..., from_local_module: builtins.bool=...) -> None: + ... + + def ClearField(self, field_name: typing.Literal['api', b'api', 'from_local_module', b'from_local_module', 'model', b'model', 'module_name', b'module_name']) -> None: + ... +global___ModuleModel = ModuleModel + +@typing.final +class GetModelsFromModulesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__(self) -> None: + ... +global___GetModelsFromModulesRequest = GetModelsFromModulesRequest + +@typing.final +class GetModelsFromModulesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + MODELS_FIELD_NUMBER: builtins.int + + @property + def models(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ModuleModel]: + ... + + def __init__(self, *, models: collections.abc.Iterable[global___ModuleModel] | None=...) -> None: + ... + + def ClearField(self, field_name: typing.Literal['models', b'models']) -> None: + ... +global___GetModelsFromModulesResponse = GetModelsFromModulesResponse + @typing.final class DiscoverComponentsRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor diff --git a/src/viam/gen/service/discovery/__init__.py b/src/viam/gen/service/discovery/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/src/viam/gen/service/discovery/v1/__init__.py b/src/viam/gen/service/discovery/v1/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/src/viam/gen/service/discovery/v1/discovery_grpc.py b/src/viam/gen/service/discovery/v1/discovery_grpc.py new file mode 100644 index 000000000..18437dfb4 --- /dev/null +++ b/src/viam/gen/service/discovery/v1/discovery_grpc.py @@ -0,0 +1,39 @@ +import abc +import typing +import grpclib.const +import grpclib.client +import grpclib.exceptions +if typing.TYPE_CHECKING: + import grpclib.server +from .... import app +from .... import common +import google.api.annotations_pb2 +import google.protobuf.struct_pb2 +from .... import service + +class DiscoveryServiceBase(abc.ABC): + + @abc.abstractmethod + async def DiscoverResources(self, stream: 'grpclib.server.Stream[service.discovery.v1.discovery_pb2.DiscoverResourcesRequest, service.discovery.v1.discovery_pb2.DiscoverResourcesResponse]') -> None: + pass + + @abc.abstractmethod + async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None: + pass + + def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]: + return {'/viam.service.discovery.v1.DiscoveryService/DiscoverResources': grpclib.const.Handler(self.DiscoverResources, grpclib.const.Cardinality.UNARY_UNARY, service.discovery.v1.discovery_pb2.DiscoverResourcesRequest, service.discovery.v1.discovery_pb2.DiscoverResourcesResponse), '/viam.service.discovery.v1.DiscoveryService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)} + +class UnimplementedDiscoveryServiceBase(DiscoveryServiceBase): + + async def DiscoverResources(self, stream: 'grpclib.server.Stream[service.discovery.v1.discovery_pb2.DiscoverResourcesRequest, service.discovery.v1.discovery_pb2.DiscoverResourcesResponse]') -> None: + raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED) + + async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None: + raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED) + +class DiscoveryServiceStub: + + def __init__(self, channel: grpclib.client.Channel) -> None: + self.DiscoverResources = grpclib.client.UnaryUnaryMethod(channel, '/viam.service.discovery.v1.DiscoveryService/DiscoverResources', service.discovery.v1.discovery_pb2.DiscoverResourcesRequest, service.discovery.v1.discovery_pb2.DiscoverResourcesResponse) + self.DoCommand = grpclib.client.UnaryUnaryMethod(channel, '/viam.service.discovery.v1.DiscoveryService/DoCommand', common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse) \ No newline at end of file diff --git a/src/viam/gen/service/discovery/v1/discovery_pb2.py b/src/viam/gen/service/discovery/v1/discovery_pb2.py new file mode 100644 index 000000000..d0ea4fd0a --- /dev/null +++ b/src/viam/gen/service/discovery/v1/discovery_pb2.py @@ -0,0 +1,29 @@ +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 1, '', 'service/discovery/v1/discovery.proto') +_sym_db = _symbol_database.Default() +from ....app.v1 import robot_pb2 as app_dot_v1_dot_robot__pb2 +from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2 +from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$service/discovery/v1/discovery.proto\x12\x19viam.service.discovery.v1\x1a\x12app/v1/robot.proto\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"]\n\x18DiscoverResourcesRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"[\n\x19DiscoverResourcesResponse\x12>\n\x0bdiscoveries\x18\x01 \x03(\x0b2\x1c.viam.app.v1.ComponentConfigR\x0bdiscoveries2\xcf\x02\n\x10DiscoveryService\x12\xad\x01\n\x11DiscoverResources\x123.viam.service.discovery.v1.DiscoverResourcesRequest\x1a4.viam.service.discovery.v1.DiscoverResourcesResponse"-\x82\xd3\xe4\x93\x02\'\x12%/viam/api/v1/service/{name}/discovery\x12\x8a\x01\n\tDoCommand\x12 .viam.common.v1.DoCommandRequest\x1a!.viam.common.v1.DoCommandResponse"8\x82\xd3\xe4\x93\x022"0/viam/api/v1/service/discovery/{name}/do_commandBD\n\x1dcom.viam.service.discovery.v1Z#go.viam.com/api/service/discovey/v1b\x06proto3') +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'service.discovery.v1.discovery_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\x1dcom.viam.service.discovery.v1Z#go.viam.com/api/service/discovey/v1' + _globals['_DISCOVERYSERVICE'].methods_by_name['DiscoverResources']._loaded_options = None + _globals['_DISCOVERYSERVICE'].methods_by_name['DiscoverResources']._serialized_options = b"\x82\xd3\xe4\x93\x02'\x12%/viam/api/v1/service/{name}/discovery" + _globals['_DISCOVERYSERVICE'].methods_by_name['DoCommand']._loaded_options = None + _globals['_DISCOVERYSERVICE'].methods_by_name['DoCommand']._serialized_options = b'\x82\xd3\xe4\x93\x022"0/viam/api/v1/service/discovery/{name}/do_command' + _globals['_DISCOVERRESOURCESREQUEST']._serialized_start = 171 + _globals['_DISCOVERRESOURCESREQUEST']._serialized_end = 264 + _globals['_DISCOVERRESOURCESRESPONSE']._serialized_start = 266 + _globals['_DISCOVERRESOURCESRESPONSE']._serialized_end = 357 + _globals['_DISCOVERYSERVICE']._serialized_start = 360 + _globals['_DISCOVERYSERVICE']._serialized_end = 695 \ No newline at end of file diff --git a/src/viam/gen/service/discovery/v1/discovery_pb2.pyi b/src/viam/gen/service/discovery/v1/discovery_pb2.pyi new file mode 100644 index 000000000..fad274caf --- /dev/null +++ b/src/viam/gen/service/discovery/v1/discovery_pb2.pyi @@ -0,0 +1,51 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +from .... import app +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.struct_pb2 +import typing +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing.final +class DiscoverResourcesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + NAME_FIELD_NUMBER: builtins.int + EXTRA_FIELD_NUMBER: builtins.int + name: builtins.str + 'name of the discover service' + + @property + def extra(self) -> google.protobuf.struct_pb2.Struct: + """Additional arguments to the method""" + + def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None: + ... + + def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool: + ... + + def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name']) -> None: + ... +global___DiscoverResourcesRequest = DiscoverResourcesRequest + +@typing.final +class DiscoverResourcesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + DISCOVERIES_FIELD_NUMBER: builtins.int + + @property + def discoveries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[app.v1.robot_pb2.ComponentConfig]: + """list of ComponentConfigs that describe the components found by a discover service.""" + + def __init__(self, *, discoveries: collections.abc.Iterable[app.v1.robot_pb2.ComponentConfig] | None=...) -> None: + ... + + def ClearField(self, field_name: typing.Literal['discoveries', b'discoveries']) -> None: + ... +global___DiscoverResourcesResponse = DiscoverResourcesResponse \ No newline at end of file diff --git a/src/viam/proto/robot/__init__.py b/src/viam/proto/robot/__init__.py index 268d88b8f..a860e990d 100644 --- a/src/viam/proto/robot/__init__.py +++ b/src/viam/proto/robot/__init__.py @@ -21,6 +21,8 @@ GetCloudMetadataResponse, GetMachineStatusRequest, GetMachineStatusResponse, + GetModelsFromModulesRequest, + GetModelsFromModulesResponse, GetOperationsRequest, GetOperationsResponse, GetSessionsRequest, @@ -31,6 +33,7 @@ GetVersionResponse, LogRequest, LogResponse, + ModuleModel, Operation, PeerConnectionInfo, PeerConnectionType, @@ -81,6 +84,8 @@ "GetCloudMetadataResponse", "GetMachineStatusRequest", "GetMachineStatusResponse", + "GetModelsFromModulesRequest", + "GetModelsFromModulesResponse", "GetOperationsRequest", "GetOperationsResponse", "GetSessionsRequest", @@ -91,6 +96,7 @@ "GetVersionResponse", "LogRequest", "LogResponse", + "ModuleModel", "Operation", "PeerConnectionInfo", "PeerConnectionType", diff --git a/src/viam/proto/service/discovery/__init__.py b/src/viam/proto/service/discovery/__init__.py new file mode 100644 index 000000000..3593fd1fe --- /dev/null +++ b/src/viam/proto/service/discovery/__init__.py @@ -0,0 +1,15 @@ +""" +@generated by Viam. +Do not edit manually! +""" + +from ....gen.service.discovery.v1.discovery_grpc import DiscoveryServiceBase, DiscoveryServiceStub, UnimplementedDiscoveryServiceBase +from ....gen.service.discovery.v1.discovery_pb2 import DiscoverResourcesRequest, DiscoverResourcesResponse + +__all__ = [ + "DiscoveryServiceBase", + "DiscoveryServiceStub", + "UnimplementedDiscoveryServiceBase", + "DiscoverResourcesRequest", + "DiscoverResourcesResponse", +] diff --git a/src/viam/version_metadata.py b/src/viam/version_metadata.py index 3064a8d8c..02b540737 100644 --- a/src/viam/version_metadata.py +++ b/src/viam/version_metadata.py @@ -1,4 +1,4 @@ __version__ = "0.37.0" -API_VERSION = "v0.1.379" +API_VERSION = "v0.1.380" SDK_VERSION = __version__ diff --git a/uv.lock b/uv.lock index 59c79f69e..56800e97e 100644 --- a/uv.lock +++ b/uv.lock @@ -263,7 +263,7 @@ name = "click" version = "8.1.7" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "colorama", marker = "platform_system == 'Windows'" }, + { name = "colorama", marker = "sys_platform == 'win32'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/96/d3/f04c7bfcf5c1862a2a5b845c6b2b360488cf47af55dfa79c98f6a6bf98b5/click-8.1.7.tar.gz", hash = "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de", size = 336121 } wheels = [ @@ -633,7 +633,7 @@ name = "ipykernel" version = "6.29.5" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "appnope", marker = "platform_system == 'Darwin'" }, + { name = "appnope", marker = "sys_platform == 'darwin'" }, { name = "comm" }, { name = "debugpy" }, { name = "ipython" }, @@ -2433,7 +2433,7 @@ wheels = [ [[package]] name = "viam-sdk" -version = "0.36.0" +version = "0.37.0" source = { editable = "." } dependencies = [ { name = "googleapis-common-protos" },