|
| 1 | +""" |
| 2 | +@generated by mypy-protobuf. Do not edit manually! |
| 3 | +isort:skip_file |
| 4 | +""" |
| 5 | + |
| 6 | +import abc |
| 7 | +import collections.abc |
| 8 | +import grpc |
| 9 | +import grpc.aio |
| 10 | +import ni.pythonpanel.v1.python_panel_service_pb2 |
| 11 | +import typing |
| 12 | + |
| 13 | +_T = typing.TypeVar("_T") |
| 14 | + |
| 15 | +class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ... |
| 16 | + |
| 17 | +class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg] |
| 18 | + ... |
| 19 | + |
| 20 | +class PythonPanelServiceStub: |
| 21 | + """Service interface for connecting to python panels""" |
| 22 | + |
| 23 | + def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ... |
| 24 | + Connect: grpc.UnaryUnaryMultiCallable[ |
| 25 | + ni.pythonpanel.v1.python_panel_service_pb2.ConnectRequest, |
| 26 | + ni.pythonpanel.v1.python_panel_service_pb2.ConnectResponse, |
| 27 | + ] |
| 28 | + """Connect to a panel and open it |
| 29 | + Status Codes for errors: |
| 30 | + - NOT_FOUND: the file for the panel was not found |
| 31 | + """ |
| 32 | + |
| 33 | + Disconnect: grpc.UnaryUnaryMultiCallable[ |
| 34 | + ni.pythonpanel.v1.python_panel_service_pb2.DisconnectRequest, |
| 35 | + ni.pythonpanel.v1.python_panel_service_pb2.DisconnectResponse, |
| 36 | + ] |
| 37 | + """Disconnect from a panel (does not close the panel) |
| 38 | + Status Codes for errors: |
| 39 | + - NOT_FOUND: the panel with the specified id was not found |
| 40 | + """ |
| 41 | + |
| 42 | + GetValue: grpc.UnaryUnaryMultiCallable[ |
| 43 | + ni.pythonpanel.v1.python_panel_service_pb2.GetValueRequest, |
| 44 | + ni.pythonpanel.v1.python_panel_service_pb2.GetValueResponse, |
| 45 | + ] |
| 46 | + """Get a value for a control on the panel |
| 47 | + Status Codes for errors: |
| 48 | + - NOT_FOUND: the panel with the specified id was not found |
| 49 | + """ |
| 50 | + |
| 51 | + SetValue: grpc.UnaryUnaryMultiCallable[ |
| 52 | + ni.pythonpanel.v1.python_panel_service_pb2.SetValueRequest, |
| 53 | + ni.pythonpanel.v1.python_panel_service_pb2.SetValueResponse, |
| 54 | + ] |
| 55 | + """Set a value for a control on the panel |
| 56 | + Status Codes for errors: |
| 57 | + - NOT_FOUND: the panel with the specified id was not found |
| 58 | + """ |
| 59 | + |
| 60 | +class PythonPanelServiceAsyncStub: |
| 61 | + """Service interface for connecting to python panels""" |
| 62 | + |
| 63 | + Connect: grpc.aio.UnaryUnaryMultiCallable[ |
| 64 | + ni.pythonpanel.v1.python_panel_service_pb2.ConnectRequest, |
| 65 | + ni.pythonpanel.v1.python_panel_service_pb2.ConnectResponse, |
| 66 | + ] |
| 67 | + """Connect to a panel and open it |
| 68 | + Status Codes for errors: |
| 69 | + - NOT_FOUND: the file for the panel was not found |
| 70 | + """ |
| 71 | + |
| 72 | + Disconnect: grpc.aio.UnaryUnaryMultiCallable[ |
| 73 | + ni.pythonpanel.v1.python_panel_service_pb2.DisconnectRequest, |
| 74 | + ni.pythonpanel.v1.python_panel_service_pb2.DisconnectResponse, |
| 75 | + ] |
| 76 | + """Disconnect from a panel (does not close the panel) |
| 77 | + Status Codes for errors: |
| 78 | + - NOT_FOUND: the panel with the specified id was not found |
| 79 | + """ |
| 80 | + |
| 81 | + GetValue: grpc.aio.UnaryUnaryMultiCallable[ |
| 82 | + ni.pythonpanel.v1.python_panel_service_pb2.GetValueRequest, |
| 83 | + ni.pythonpanel.v1.python_panel_service_pb2.GetValueResponse, |
| 84 | + ] |
| 85 | + """Get a value for a control on the panel |
| 86 | + Status Codes for errors: |
| 87 | + - NOT_FOUND: the panel with the specified id was not found |
| 88 | + """ |
| 89 | + |
| 90 | + SetValue: grpc.aio.UnaryUnaryMultiCallable[ |
| 91 | + ni.pythonpanel.v1.python_panel_service_pb2.SetValueRequest, |
| 92 | + ni.pythonpanel.v1.python_panel_service_pb2.SetValueResponse, |
| 93 | + ] |
| 94 | + """Set a value for a control on the panel |
| 95 | + Status Codes for errors: |
| 96 | + - NOT_FOUND: the panel with the specified id was not found |
| 97 | + """ |
| 98 | + |
| 99 | +class PythonPanelServiceServicer(metaclass=abc.ABCMeta): |
| 100 | + """Service interface for connecting to python panels""" |
| 101 | + |
| 102 | + @abc.abstractmethod |
| 103 | + def Connect( |
| 104 | + self, |
| 105 | + request: ni.pythonpanel.v1.python_panel_service_pb2.ConnectRequest, |
| 106 | + context: _ServicerContext, |
| 107 | + ) -> typing.Union[ni.pythonpanel.v1.python_panel_service_pb2.ConnectResponse, collections.abc.Awaitable[ni.pythonpanel.v1.python_panel_service_pb2.ConnectResponse]]: |
| 108 | + """Connect to a panel and open it |
| 109 | + Status Codes for errors: |
| 110 | + - NOT_FOUND: the file for the panel was not found |
| 111 | + """ |
| 112 | + |
| 113 | + @abc.abstractmethod |
| 114 | + def Disconnect( |
| 115 | + self, |
| 116 | + request: ni.pythonpanel.v1.python_panel_service_pb2.DisconnectRequest, |
| 117 | + context: _ServicerContext, |
| 118 | + ) -> typing.Union[ni.pythonpanel.v1.python_panel_service_pb2.DisconnectResponse, collections.abc.Awaitable[ni.pythonpanel.v1.python_panel_service_pb2.DisconnectResponse]]: |
| 119 | + """Disconnect from a panel (does not close the panel) |
| 120 | + Status Codes for errors: |
| 121 | + - NOT_FOUND: the panel with the specified id was not found |
| 122 | + """ |
| 123 | + |
| 124 | + @abc.abstractmethod |
| 125 | + def GetValue( |
| 126 | + self, |
| 127 | + request: ni.pythonpanel.v1.python_panel_service_pb2.GetValueRequest, |
| 128 | + context: _ServicerContext, |
| 129 | + ) -> typing.Union[ni.pythonpanel.v1.python_panel_service_pb2.GetValueResponse, collections.abc.Awaitable[ni.pythonpanel.v1.python_panel_service_pb2.GetValueResponse]]: |
| 130 | + """Get a value for a control on the panel |
| 131 | + Status Codes for errors: |
| 132 | + - NOT_FOUND: the panel with the specified id was not found |
| 133 | + """ |
| 134 | + |
| 135 | + @abc.abstractmethod |
| 136 | + def SetValue( |
| 137 | + self, |
| 138 | + request: ni.pythonpanel.v1.python_panel_service_pb2.SetValueRequest, |
| 139 | + context: _ServicerContext, |
| 140 | + ) -> typing.Union[ni.pythonpanel.v1.python_panel_service_pb2.SetValueResponse, collections.abc.Awaitable[ni.pythonpanel.v1.python_panel_service_pb2.SetValueResponse]]: |
| 141 | + """Set a value for a control on the panel |
| 142 | + Status Codes for errors: |
| 143 | + - NOT_FOUND: the panel with the specified id was not found |
| 144 | + """ |
| 145 | + |
| 146 | +def add_PythonPanelServiceServicer_to_server(servicer: PythonPanelServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ... |
0 commit comments