From 33e1bea7928fa5dd725edf25be3a581fc38753d6 Mon Sep 17 00:00:00 2001 From: Samir Mlika Date: Tue, 15 Apr 2025 10:07:07 +0100 Subject: [PATCH 1/3] Fix AIElementCollection --- src/askui/models/askui/ai_element_utils.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/askui/models/askui/ai_element_utils.py b/src/askui/models/askui/ai_element_utils.py index bda8fb73..6c20745d 100644 --- a/src/askui/models/askui/ai_element_utils.py +++ b/src/askui/models/askui/ai_element_utils.py @@ -70,18 +70,19 @@ class AiElementCollection: def __init__(self, additional_ai_element_locations: Optional[List[pathlib.Path]] = None): workspace_id = os.getenv("ASKUI_WORKSPACE_ID") if workspace_id is None: - raise ValueError("ASKUI_WORKSPACE_ID is not set") + self.ai_element_locations = [] + return if additional_ai_element_locations is None: additional_ai_element_locations = [] - addional_ai_element_from_env = [] + additional_ai_element_from_env = [] if os.getenv("ASKUI_AI_ELEMENT_LOCATIONS", "") != "": - addional_ai_element_from_env = [pathlib.Path(ai_element_loc) for ai_element_loc in os.getenv("ASKUI_AI_ELEMENT_LOCATIONS", "").split(",")], + additional_ai_element_from_env = [pathlib.Path(ai_element_loc) for ai_element_loc in os.getenv("ASKUI_AI_ELEMENT_LOCATIONS", "").split(",")], self.ai_element_locations = [ pathlib.Path.home() / ".askui" / "SnippingTool" / "AIElement" / workspace_id, - *addional_ai_element_from_env, + *additional_ai_element_from_env, *additional_ai_element_locations ] From f59aa4e3553885eadcb9d391017c921f32df6b61 Mon Sep 17 00:00:00 2001 From: Samir Mlika Date: Tue, 15 Apr 2025 10:25:34 +0100 Subject: [PATCH 2/3] Add active window api support --- src/askui/agent.py | 2 +- src/askui/tools/askui/askui_controller.py | 171 +- .../Controller_V1_pb2.py | 331 ++-- .../Controller_V1_pb2.pyi | 485 +++++- .../Controller_V1_pb2_grpc.py | 1453 ++++++++++------- 5 files changed, 1638 insertions(+), 804 deletions(-) diff --git a/src/askui/agent.py b/src/askui/agent.py index 5ca927a7..cb2aa136 100644 --- a/src/askui/agent.py +++ b/src/askui/agent.py @@ -44,7 +44,7 @@ def __init__( self.client = None if enable_askui_controller: self.controller = AskUiControllerServer() - self.controller.start(True) + self.controller.start(True, (logger.level == logging.DEBUG)) time.sleep(0.5) self.client = AskUiControllerClient(display, self.report) self.client.connect() diff --git a/src/askui/tools/askui/askui_controller.py b/src/askui/tools/askui/askui_controller.py index 7911e20f..9f490d08 100644 --- a/src/askui/tools/askui/askui_controller.py +++ b/src/askui/tools/askui/askui_controller.py @@ -24,6 +24,10 @@ class AgentOSBinaryNotFoundException(Exception): pass + +class UnsupportedAskUISuiteError(Exception): + pass + class AskUISuiteNotInstalledError(Exception): pass @@ -68,43 +72,35 @@ def __init__(self) -> None: def _find_remote_device_controller(self) -> pathlib.Path: if self._settings.installation_directory is not None and self._settings.component_registry_file is None: - logger.warning("Outdated AskUI Suite detected. Please update to the latest version.") - askui_remote_device_controller_path = self._find_remote_device_controller_by_legacy_path() - if not os.path.isfile(askui_remote_device_controller_path): - raise FileNotFoundError(f"AskUIRemoteDeviceController executable does not exits under '{askui_remote_device_controller_path}'") - return askui_remote_device_controller_path + raise UnsupportedAskUISuiteError('Outdated AskUI Suite detected. Please update to the latest version.') return self._find_remote_device_controller_by_component_registry() def _find_remote_device_controller_by_component_registry(self) -> pathlib.Path: - assert self._settings.component_registry_file is not None, "Component registry file is not set" + if self._settings.component_registry_file is None: + raise AskUISuiteNotInstalledError('AskUI Suite not installed. Please install AskUI Suite to use AskUI Vision Agent.') component_registry = AskUiComponentRegistry.model_validate_json(self._settings.component_registry_file.read_text()) askui_remote_device_controller_path = component_registry.installed_packages.remote_device_controller_uuid.executables.askui_remote_device_controller if not os.path.isfile(askui_remote_device_controller_path): raise FileNotFoundError(f"AskUIRemoteDeviceController executable does not exits under '{askui_remote_device_controller_path}'") return askui_remote_device_controller_path - - def _find_remote_device_controller_by_legacy_path(self) -> pathlib.Path: - assert self._settings.installation_directory is not None, "Installation directory is not set" - match sys.platform: - case 'win32': - return pathlib.Path(os.path.join(self._settings.installation_directory, "Binaries", "resources", "assets", "binaries", "AskuiRemoteDeviceController.exe")) - case 'darwin': - return pathlib.Path(os.path.join(self._settings.installation_directory, "Binaries", "askui-ui-controller.app", "Contents", "Resources", "assets", "binaries", "AskuiRemoteDeviceController")) - case 'linux': - return pathlib.Path(os.path.join(self._settings.installation_directory, "Binaries", "resources", "assets", "binaries", "AskuiRemoteDeviceController")) - case _: - raise NotImplementedError(f"Platform {sys.platform} not supported by AskUI Remote Device Controller") - - def __start_process(self, path): - self.process = subprocess.Popen(path) + + def __start_process(self, path, verbose: bool = False) -> None: + if verbose: + self.process = subprocess.Popen(path) + else: + self.process = subprocess.Popen( + path, + stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL + ) wait_for_port(23000) - def start(self, clean_up=False): + def start(self, clean_up=False, verbose: bool = False) -> None: if sys.platform == 'win32' and clean_up and process_exists("AskuiRemoteDeviceController.exe"): self.clean_up() remote_device_controller_path = self._find_remote_device_controller() logger.debug("Starting AskUI Remote Device Controller: %s", remote_device_controller_path) - self.__start_process(remote_device_controller_path) + self.__start_process(remote_device_controller_path, verbose=verbose) def clean_up(self): if sys.platform == 'win32': @@ -131,6 +127,9 @@ def __init__(self, display: int = 1, report: SimpleReportGenerator | None = None self.display = display self.report = report + def _assert_stub_initialized(self): + assert isinstance(self.stub, controller_v1.ControllerAPIStub), "Stub is not initialized" + @telemetry.record_call() def connect(self) -> None: self.channel = grpc.insecure_channel('localhost:23000', options=[ @@ -143,12 +142,12 @@ def connect(self) -> None: def _run_recorder_action(self, acion_class_id: controller_v1_pbs.ActionClassID, action_parameters: controller_v1_pbs.ActionParameters): time.sleep(self.pre_action_wait) - assert isinstance(self.stub, controller_v1.ControllerAPIStub), "Stub is not initialized" + self._assert_stub_initialized() response: controller_v1_pbs.Response_RunRecordedAction = self.stub.RunRecordedAction(controller_v1_pbs.Request_RunRecordedAction(sessionInfo=self.session_info, actionClassID=acion_class_id, actionParameters=action_parameters)) time.sleep((response.requiredMilliseconds / 1000)) for num_retries in range(self.max_retries): - assert isinstance(self.stub, controller_v1.ControllerAPIStub), "Stub is not initialized" + self._assert_stub_initialized() poll_response: controller_v1_pbs.Response_Poll = self.stub.Poll(controller_v1_pbs.Request_Poll(sessionInfo=self.session_info, pollEventID=controller_v1_pbs.PollEventID.PollEventID_ActionFinished)) if poll_response.pollEventParameters.actionFinished.actionID == response.actionID: break @@ -178,7 +177,7 @@ def _stop_execution(self): @telemetry.record_call() def screenshot(self, report: bool = True) -> Image.Image: - assert isinstance(self.stub, controller_v1.ControllerAPIStub), "Stub is not initialized" + self._assert_stub_initialized() screenResponse = self.stub.CaptureScreen(controller_v1_pbs.Request_CaptureScreen(sessionInfo=self.session_info, captureParameters=controller_v1_pbs.CaptureParameters(displayID=self.display))) r, g, b, _ = Image.frombytes('RGBA', (screenResponse.bitmap.width, screenResponse.bitmap.height), screenResponse.bitmap.data).split() image = Image.merge("RGB", (b, g, r)) @@ -287,8 +286,126 @@ def keyboard_tap(self, key: PC_AND_MODIFIER_KEY, modifier_keys: List[MODIFIER_K @telemetry.record_call() def set_display(self, displayNumber: int = 1) -> None: - assert isinstance(self.stub, controller_v1.ControllerAPIStub), "Stub is not initialized" + self._assert_stub_initialized() if self.report is not None: self.report.add_message("AgentOS", f"set_display({displayNumber})") self.stub.SetActiveDisplay(controller_v1_pbs.Request_SetActiveDisplay(displayID=displayNumber)) self.display = displayNumber + + @telemetry.record_call() + def get_cursor_position(self) -> tuple[int, int]: + """Get the current cursor position from the controller. + Returns: + tuple[int, int]: Tuple containing the x and y coordinates of the cursor. + """ + self._assert_stub_initialized() + if self.report is not None: + self.report.add_message("AgentOS", "get_cursor_position()") + response = self.stub.GetMousePosition(controller_v1_pbs.Request_Void()) + return (response.x, response.y) + + @telemetry.record_call(exclude_response = True) + def get_display_information(self) -> List[controller_v1_pbs.DisplayInformation]: + """Get display information from the controller. + Returns: + List[controller_v1_pbs.DisplayInformation]: List of display information objects. + """ + self._assert_stub_initialized() + if self.report is not None: + self.report.add_message("AgentOS", "get_display_information()") + response = self.stub.GetDisplayInformation(controller_v1_pbs.Request_Void()) + return response.displays + + @telemetry.record_call(exclude_response = True) + def get_process_list(self, has_window:bool = False) -> List[controller_v1_pbs.ProcessInfo]: + """Get process list from the controller. + Args: + has_window (bool, optional): If True, only processes with windows are returned. Defaults to False. + Returns: + List[controller_v1_pbs.ProcessInfo]: List of process information objects. + """ + self._assert_stub_initialized() + if self.report is not None: + self.report.add_message("AgentOS", "get_process_list()") + response = self.stub.GetProcessList(controller_v1_pbs.Request_GetProcessList(getExtendedInfo=True)) + if has_window: + return [process for process in response.processes if process.extendedInfo.hasWindow is True] + return response.processes + + @telemetry.record_call(exclude_response = True) + def get_windows_list(self, process_id: int) -> List[controller_v1_pbs.WindowInfo]: + """"Get window list from the controller. + Args: + process_id (int): Process ID to get windows for. + Returns: + List[controller_v1_pbs.WindowInfo]: List of window information objects. + """ + self._assert_stub_initialized() + if self.report is not None: + self.report.add_message("AgentOS", "get_windows_list()") + response = self.stub.GetWindowList(controller_v1_pbs.Request_GetWindowList(processID=process_id)) + return response.windows + + @telemetry.record_call(exclude_response = True) + def get_all_window_names(self) -> List[str]: + """Get all window names from the controller. + Returns: + List[str]: List of window names. + """ + self._assert_stub_initialized() + if self.report is not None: + self.report.add_message("AgentOS", "get_all_window_names()") + process_list = self.get_process_list(has_window=True) + window_names = [] + for process in process_list: + window_list = self.get_windows_list(process.ID) + for window in window_list: + window_names.append(window.name) + return window_names + + @telemetry.record_call(exclude_response = True) + def set_active_window(self, window_id: int, process_id: int) -> None: + """Set the active window by window ID and process ID. + Args: + window_id (int): Window ID to set as active. + process_id (int): Process ID of the window. + """ + self._assert_stub_initialized() + if self.report is not None: + self.report.add_message("AgentOS", f"set_active_window({window_id})") + self.stub.SetActiveWindow(controller_v1_pbs.Request_SetActiveWindow(windowID=window_id, processID=process_id)) + + @telemetry.record_call(exclude_response = True) + def set_active_window_by_name(self, window_name: str) -> None: + """Set the active window by window name. + Args: + window_name (str): Window name to set as active. + Raises: + Exception: If no window is found with the specified name. + """ + self._assert_stub_initialized() + if self.report is not None: + self.report.add_message("AgentOS", f"set_active_window_by_name({window_name})") + process_list = self.get_process_list(has_window=True) + for process in process_list: + window_list = self.get_windows_list(process.ID) + for window in window_list: + if window.name == window_name: + self.set_active_window(window.ID, process.ID) + return + available_window_names = self.get_all_window_names() + raise Exception(f"No window found with name '{window_name}'. Available window names: {available_window_names}") + + @telemetry.record_call(exclude_response = True) + def set_window_as_display_by_name(self, window_name: str) -> None: + """Set the active window by window name and set it as the display. + Args: + window_name (str): Window name to set as active and display. + Raises: + Exception: If no window is found with the specified name. + """ + self._assert_stub_initialized() + if self.report is not None: + self.report.add_message("AgentOS", f"set_window_as_display_by_name({window_name})") + self.set_active_window_by_name(window_name) + self.set_display(len(self.get_display_information())) diff --git a/src/askui/tools/askui/askui_ui_controller_grpc/Controller_V1_pb2.py b/src/askui/tools/askui/askui_ui_controller_grpc/Controller_V1_pb2.py index 712614f3..116ec412 100644 --- a/src/askui/tools/askui/askui_ui_controller_grpc/Controller_V1_pb2.py +++ b/src/askui/tools/askui/askui_ui_controller_grpc/Controller_V1_pb2.py @@ -1,170 +1,197 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: Controller_V1.proto -# Protobuf Python Version: 5.26.1 +# Protobuf Python Version: 5.28.1 """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 + # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13\x43ontroller_V1.proto\x12\x0f\x41skui.API.TDKv1\"\x06\n\x04Void\"\x0e\n\x0cRequest_Void\"\x0f\n\rResponse_Void\"&\n\x05Size2\x12\r\n\x05width\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\r\"\x1e\n\x06\x44\x65lta2\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\"#\n\x0b\x43oordinate2\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\"E\n\tRectangle\x12\x0c\n\x04left\x18\x01 \x01(\x05\x12\x0b\n\x03top\x18\x02 \x01(\x05\x12\r\n\x05right\x18\x03 \x01(\x05\x12\x0e\n\x06\x62ottom\x18\x04 \x01(\x05\"u\n\x06\x42itmap\x12\r\n\x05width\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\r\x12\x11\n\tlineWidth\x18\x03 \x01(\r\x12\x14\n\x0c\x62itsPerPixel\x18\x04 \x01(\r\x12\x15\n\rbytesPerPixel\x18\x05 \x01(\r\x12\x0c\n\x04\x64\x61ta\x18\x06 \x01(\x0c\"(\n\x05\x43olor\x12\t\n\x01r\x18\x01 \x01(\r\x12\t\n\x01g\x18\x02 \x01(\r\x12\t\n\x01\x62\x18\x03 \x01(\r\")\n\x04GUID\x12\x10\n\x08highPart\x18\x01 \x01(\x04\x12\x0f\n\x07lowPart\x18\x02 \x01(\x04\"L\n\x0bSessionInfo\x12*\n\x0bsessionGUID\x18\x01 \x01(\x0b\x32\x15.Askui.API.TDKv1.GUID\x12\x11\n\tsessionID\x18\x02 \x01(\x04\"e\n\x0b\x43\x61ptureArea\x12$\n\x04size\x18\x03 \x01(\x0b\x32\x16.Askui.API.TDKv1.Size2\x12\x30\n\ncoordinate\x18\x02 \x01(\x0b\x32\x1c.Askui.API.TDKv1.Coordinate2\"\x81\x01\n\x11\x43\x61ptureParameters\x12\x16\n\tdisplayID\x18\x01 \x01(\rH\x00\x88\x01\x01\x12\x36\n\x0b\x63\x61ptureArea\x18\x02 \x01(\x0b\x32\x1c.Askui.API.TDKv1.CaptureAreaH\x01\x88\x01\x01\x42\x0c\n\n_displayIDB\x0e\n\x0c_captureArea\"6\n\"PollEventParameters_ActionFinished\x12\x10\n\x08\x61\x63tionID\x18\x01 \x01(\r\"n\n\x13PollEventParameters\x12M\n\x0e\x61\x63tionFinished\x18\x01 \x01(\x0b\x32\x33.Askui.API.TDKv1.PollEventParameters_ActionFinishedH\x00\x42\x08\n\x06\x64\x61taOf\"-\n\x15\x41\x63tionParameters_Wait\x12\x14\n\x0cmilliseconds\x18\x01 \x01(\r\"W\n\"ActionParameters_MouseButton_Press\x12\x31\n\x0bmouseButton\x18\x01 \x01(\x0e\x32\x1c.Askui.API.TDKv1.MouseButton\"Y\n$ActionParameters_MouseButton_Release\x12\x31\n\x0bmouseButton\x18\x01 \x01(\x0e\x32\x1c.Askui.API.TDKv1.MouseButton\"p\n,ActionParameters_MouseButton_PressAndRelease\x12\x31\n\x0bmouseButton\x18\x01 \x01(\x0e\x32\x1c.Askui.API.TDKv1.MouseButton\x12\r\n\x05\x63ount\x18\x02 \x01(\r\"\xc0\x01\n!ActionParameters_MouseWheelScroll\x12=\n\tdirection\x18\x01 \x01(\x0e\x32*.Askui.API.TDKv1.MouseWheelScrollDirection\x12\x37\n\tdeltaType\x18\x02 \x01(\x0e\x32$.Askui.API.TDKv1.MouseWheelDeltaType\x12\r\n\x05\x64\x65lta\x18\x03 \x01(\x05\x12\x14\n\x0cmilliseconds\x18\x04 \x01(\x05\"x\n\x1a\x41\x63tionParameters_MouseMove\x12.\n\x08position\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.Coordinate2\x12\x19\n\x0cmilliseconds\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\x0f\n\r_milliseconds\"v\n ActionParameters_MouseMove_Delta\x12&\n\x05\x64\x65lta\x18\x01 \x01(\x0b\x32\x17.Askui.API.TDKv1.Delta2\x12\x19\n\x0cmilliseconds\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\x0f\n\r_milliseconds\"O\n\"ActionParameters_KeyboardKey_Press\x12\x0f\n\x07keyName\x18\x01 \x01(\t\x12\x18\n\x10modifierKeyNames\x18\x02 \x03(\t\"Q\n$ActionParameters_KeyboardKey_Release\x12\x0f\n\x07keyName\x18\x01 \x01(\t\x12\x18\n\x10modifierKeyNames\x18\x02 \x03(\t\"Y\n,ActionParameters_KeyboardKey_PressAndRelease\x12\x0f\n\x07keyName\x18\x01 \x01(\t\x12\x18\n\x10modifierKeyNames\x18\x02 \x03(\t\"Q\n#ActionParameters_KeyboardKeys_Press\x12\x10\n\x08keyNames\x18\x01 \x03(\t\x12\x18\n\x10modifierKeyNames\x18\x02 \x03(\t\"S\n%ActionParameters_KeyboardKeys_Release\x12\x10\n\x08keyNames\x18\x01 \x03(\t\x12\x18\n\x10modifierKeyNames\x18\x02 \x03(\t\"[\n-ActionParameters_KeyboardKeys_PressAndRelease\x12\x10\n\x08keyNames\x18\x01 \x03(\t\x12\x18\n\x10modifierKeyNames\x18\x02 \x03(\t\"\x99\x01\n\"ActionParameters_KeyboardType_Text\x12\x0c\n\x04text\x18\x01 \x01(\t\x12;\n\x10typingSpeedValue\x18\x02 \x01(\x0e\x32!.Askui.API.TDKv1.TypingSpeedValue\x12\x18\n\x0btypingSpeed\x18\x03 \x01(\rH\x00\x88\x01\x01\x42\x0e\n\x0c_typingSpeed\"\xa0\x01\n)ActionParameters_KeyboardType_UnicodeText\x12\x0c\n\x04text\x18\x01 \x01(\x0c\x12;\n\x10typingSpeedValue\x18\x02 \x01(\x0e\x32!.Askui.API.TDKv1.TypingSpeedValue\x12\x18\n\x0btypingSpeed\x18\x03 \x01(\rH\x00\x88\x01\x01\x42\x0e\n\x0c_typingSpeed\"l\n\x1b\x41\x63tionParameters_RunCommand\x12\x0f\n\x07\x63ommand\x18\x01 \x01(\t\x12\"\n\x15timeoutInMilliseconds\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\x18\n\x16_timeoutInMilliseconds\"\xf5\n\n\x10\x41\x63tionParameters\x12%\n\x04none\x18\x01 \x01(\x0b\x32\x15.Askui.API.TDKv1.VoidH\x00\x12\x36\n\x04wait\x18\x02 \x01(\x0b\x32&.Askui.API.TDKv1.ActionParameters_WaitH\x00\x12O\n\x10mouseButtonPress\x18\x03 \x01(\x0b\x32\x33.Askui.API.TDKv1.ActionParameters_MouseButton_PressH\x00\x12S\n\x12mouseButtonRelease\x18\x04 \x01(\x0b\x32\x35.Askui.API.TDKv1.ActionParameters_MouseButton_ReleaseH\x00\x12\x63\n\x1amouseButtonPressAndRelease\x18\x05 \x01(\x0b\x32=.Askui.API.TDKv1.ActionParameters_MouseButton_PressAndReleaseH\x00\x12N\n\x10mouseWheelScroll\x18\x06 \x01(\x0b\x32\x32.Askui.API.TDKv1.ActionParameters_MouseWheelScrollH\x00\x12@\n\tmouseMove\x18\x07 \x01(\x0b\x32+.Askui.API.TDKv1.ActionParameters_MouseMoveH\x00\x12K\n\x0emouseMoveDelta\x18\x08 \x01(\x0b\x32\x31.Askui.API.TDKv1.ActionParameters_MouseMove_DeltaH\x00\x12O\n\x10keyboardKeyPress\x18\t \x01(\x0b\x32\x33.Askui.API.TDKv1.ActionParameters_KeyboardKey_PressH\x00\x12S\n\x12keyboardKeyRelease\x18\n \x01(\x0b\x32\x35.Askui.API.TDKv1.ActionParameters_KeyboardKey_ReleaseH\x00\x12\x63\n\x1akeyboardKeyPressAndRelease\x18\x0b \x01(\x0b\x32=.Askui.API.TDKv1.ActionParameters_KeyboardKey_PressAndReleaseH\x00\x12Q\n\x11keyboardKeysPress\x18\x0c \x01(\x0b\x32\x34.Askui.API.TDKv1.ActionParameters_KeyboardKeys_PressH\x00\x12U\n\x13keyboardKeysRelease\x18\r \x01(\x0b\x32\x36.Askui.API.TDKv1.ActionParameters_KeyboardKeys_ReleaseH\x00\x12\x65\n\x1bkeyboardKeysPressAndRelease\x18\x0e \x01(\x0b\x32>.Askui.API.TDKv1.ActionParameters_KeyboardKeys_PressAndReleaseH\x00\x12O\n\x10keyboardTypeText\x18\x0f \x01(\x0b\x32\x33.Askui.API.TDKv1.ActionParameters_KeyboardType_TextH\x00\x12]\n\x17keyboardTypeUnicodeText\x18\x10 \x01(\x0b\x32:.Askui.API.TDKv1.ActionParameters_KeyboardType_UnicodeTextH\x00\x12\x42\n\nruncommand\x18\x11 \x01(\x0b\x32,.Askui.API.TDKv1.ActionParameters_RunCommandH\x00\x42\x08\n\x06\x64\x61taOf\"G\n\x14Request_StartSession\x12\x13\n\x0bsessionGUID\x18\x01 \x01(\t\x12\x1a\n\x12immediateExecution\x18\x02 \x01(\x08\"J\n\x15Response_StartSession\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\"G\n\x12Request_EndSession\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\"t\n\x0cRequest_Poll\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x31\n\x0bpollEventID\x18\x02 \x01(\x0e\x32\x1c.Askui.API.TDKv1.PollEventID\"K\n\x16Request_StartExecution\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\"J\n\x15Request_StopExecution\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\"\x85\x01\n\rResponse_Poll\x12\x31\n\x0bpollEventID\x18\x01 \x01(\x0e\x32\x1c.Askui.API.TDKv1.PollEventID\x12\x41\n\x13pollEventParameters\x18\x02 \x01(\x0b\x32$.Askui.API.TDKv1.PollEventParameters\"\xc2\x01\n\x19Request_RunRecordedAction\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x35\n\ractionClassID\x18\x02 \x01(\x0e\x32\x1e.Askui.API.TDKv1.ActionClassID\x12;\n\x10\x61\x63tionParameters\x18\x03 \x01(\x0b\x32!.Askui.API.TDKv1.ActionParameters\"L\n\x1aResponse_RunRecordedAction\x12\x10\n\x08\x61\x63tionID\x18\x01 \x01(\r\x12\x1c\n\x14requiredMilliseconds\x18\x02 \x01(\r\"\xc6\x01\n\x1dRequest_ScheduleBatchedAction\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x35\n\ractionClassID\x18\x02 \x01(\x0e\x32\x1e.Askui.API.TDKv1.ActionClassID\x12;\n\x10\x61\x63tionParameters\x18\x03 \x01(\x0b\x32!.Askui.API.TDKv1.ActionParameters\"2\n\x1eResponse_ScheduleBatchedAction\x12\x10\n\x08\x61\x63tionID\x18\x01 \x01(\r\"K\n\x16Request_GetActionCount\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\".\n\x17Response_GetActionCount\x12\x13\n\x0b\x61\x63tionCount\x18\x01 \x01(\r\"[\n\x11Request_GetAction\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x13\n\x0b\x61\x63tionIndex\x18\x02 \x01(\r\"\x9a\x01\n\x12Response_GetAction\x12\x10\n\x08\x61\x63tionID\x18\x01 \x01(\r\x12\x35\n\ractionClassID\x18\x02 \x01(\x0e\x32\x1e.Askui.API.TDKv1.ActionClassID\x12;\n\x10\x61\x63tionParameters\x18\x03 \x01(\x0b\x32!.Askui.API.TDKv1.ActionParameters\"[\n\x14Request_RemoveAction\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x10\n\x08\x61\x63tionID\x18\x02 \x01(\r\"M\n\x18Request_RemoveAllActions\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\"J\n\x15Request_StartBatchRun\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\"I\n\x14Request_StopBatchRun\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\"\xa4\x01\n\x15Request_CaptureScreen\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x42\n\x11\x63\x61ptureParameters\x18\x02 \x01(\x0b\x32\".Askui.API.TDKv1.CaptureParametersH\x00\x88\x01\x01\x42\x14\n\x12_captureParameters\"A\n\x16Response_CaptureScreen\x12\'\n\x06\x62itmap\x18\x01 \x01(\x0b\x32\x17.Askui.API.TDKv1.Bitmap\"O\n$Response_GetContinuousCapturedScreen\x12\'\n\x06\x62itmap\x18\x01 \x01(\x0b\x32\x17.Askui.API.TDKv1.Bitmap\"\xde\x01\n\x1cReuqest_SetTestConfiguration\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x44\n\x18\x64\x65\x66\x61ultCaptureParameters\x18\x02 \x01(\x0b\x32\".Askui.API.TDKv1.CaptureParameters\x12 \n\x18mouseDelayInMilliseconds\x18\x03 \x01(\r\x12#\n\x1bkeyboardDelayInMilliseconds\x18\x04 \x01(\r\"g\n\x15Request_SetMouseDelay\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x1b\n\x13\x64\x65layInMilliseconds\x18\x02 \x01(\r\"j\n\x18Request_SetKeyboardDelay\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x1b\n\x13\x64\x65layInMilliseconds\x18\x02 \x01(\r\"\x9f\x01\n\x12\x44isplayInformation\x12\x11\n\tdisplayID\x18\x01 \x01(\r\x12\x0c\n\x04name\x18\x02 \x01(\t\x12,\n\x0csizeInPixels\x18\x03 \x01(\x0b\x32\x16.Askui.API.TDKv1.Size2\x12:\n\x16virtualScreenRectangle\x18\x04 \x01(\x0b\x32\x1a.Askui.API.TDKv1.Rectangle\"\x93\x01\n\x1eResponse_GetDisplayInformation\x12\x35\n\x08\x64isplays\x18\x01 \x03(\x0b\x32#.Askui.API.TDKv1.DisplayInformation\x12:\n\x16virtualScreenRectangle\x18\x02 \x01(\x0b\x32\x1a.Askui.API.TDKv1.Rectangle\"1\n\x19Response_GetMousePosition\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\"-\n\x18Request_SetActiveDisplay\x12\x11\n\tdisplayID\x18\x01 \x01(\r\"Q\n\x10Request_GetColor\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\x12\'\n\x06\x62itmap\x18\x03 \x01(\x0b\x32\x17.Askui.API.TDKv1.Bitmap\":\n\x11Response_GetColor\x12%\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x16.Askui.API.TDKv1.Color\"-\n\x15Request_GetPixelColor\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\"?\n\x16Response_GetPixelColor\x12%\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x16.Askui.API.TDKv1.Color\"n\n\x17Request_SetDisplayLabel\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x11\n\tdisplayID\x18\x02 \x01(\r\x12\r\n\x05label\x18\x03 \x01(\t*N\n\x0bPollEventID\x12\x19\n\x15PollEventID_Undefined\x10\x00\x12\x1e\n\x1aPollEventID_ActionFinished\x10\x02\"\x04\x08\x01\x10\x01*m\n\x0bMouseButton\x12\x19\n\x15MouseButton_Undefined\x10\x00\x12\x14\n\x10MouseButton_Left\x10\x01\x12\x15\n\x11MouseButton_Right\x10\x02\x12\x16\n\x12MouseButton_Middle\x10\x03*\x8b\x05\n\rActionClassID\x12\x1b\n\x17\x41\x63tionClassID_Undefined\x10\x00\x12\x16\n\x12\x41\x63tionClassID_Wait\x10\x01\x12#\n\x1f\x41\x63tionClassID_MouseButton_Press\x10\x08\x12%\n!ActionClassID_MouseButton_Release\x10\t\x12-\n)ActionClassID_MouseButton_PressAndRelease\x10\n\x12\"\n\x1e\x41\x63tionClassID_MouseWheelScroll\x10\x0b\x12\x1b\n\x17\x41\x63tionClassID_MouseMove\x10\x0c\x12!\n\x1d\x41\x63tionClassID_MouseMove_Delta\x10\r\x12#\n\x1f\x41\x63tionClassID_KeyboardKey_Press\x10\x0e\x12%\n!ActionClassID_KeyboardKey_Release\x10\x0f\x12-\n)ActionClassID_KeyboardKey_PressAndRelease\x10\x10\x12$\n ActionClassID_KeyboardKeys_Press\x10\x11\x12&\n\"ActionClassID_KeyboardKeys_Release\x10\x12\x12.\n*ActionClassID_KeyboardKeys_PressAndRelease\x10\x13\x12#\n\x1f\x41\x63tionClassID_KeyboardType_Text\x10\x14\x12*\n&ActionClassID_KeyboardType_UnicodeText\x10\x15\x12\x1c\n\x18\x41\x63tionClassID_RunCommand\x10\x16*i\n\x13MouseWheelDeltaType\x12\x1d\n\x19MouseWheelDelta_Undefined\x10\x00\x12\x17\n\x13MouseWheelDelta_Raw\x10\x01\x12\x1a\n\x16MouseWheelDelta_Detent\x10\x02*\x96\x01\n\x19MouseWheelScrollDirection\x12\'\n#MouseWheelScrollDirection_Undefined\x10\x00\x12&\n\"MouseWheelScrollDirection_Vertical\x10\x01\x12(\n$MouseWheelScrollDirection_Horizontal\x10\x02*z\n\x10TypingSpeedValue\x12\x1e\n\x1aTypingSpeedValue_Undefined\x10\x00\x12(\n$TypingSpeedValue_CharactersPerSecond\x10\x01\x12\x1c\n\x18TypingSpeedValue_Seconds\x10\x02\x32\xad\x11\n\rControllerAPI\x12_\n\x0cStartSession\x12%.Askui.API.TDKv1.Request_StartSession\x1a&.Askui.API.TDKv1.Response_StartSession\"\x00\x12S\n\nEndSession\x12#.Askui.API.TDKv1.Request_EndSession\x1a\x1e.Askui.API.TDKv1.Response_Void\"\x00\x12G\n\x04Poll\x12\x1d.Askui.API.TDKv1.Request_Poll\x1a\x1e.Askui.API.TDKv1.Response_Poll\"\x00\x12[\n\x0eStartExecution\x12\'.Askui.API.TDKv1.Request_StartExecution\x1a\x1e.Askui.API.TDKv1.Response_Void\"\x00\x12Y\n\rStopExecution\x12&.Askui.API.TDKv1.Request_StopExecution\x1a\x1e.Askui.API.TDKv1.Response_Void\"\x00\x12n\n\x11RunRecordedAction\x12*.Askui.API.TDKv1.Request_RunRecordedAction\x1a+.Askui.API.TDKv1.Response_RunRecordedAction\"\x00\x12z\n\x15ScheduleBatchedAction\x12..Askui.API.TDKv1.Request_ScheduleBatchedAction\x1a/.Askui.API.TDKv1.Response_ScheduleBatchedAction\"\x00\x12Y\n\rStartBatchRun\x12&.Askui.API.TDKv1.Request_StartBatchRun\x1a\x1e.Askui.API.TDKv1.Response_Void\"\x00\x12W\n\x0cStopBatchRun\x12%.Askui.API.TDKv1.Request_StopBatchRun\x1a\x1e.Askui.API.TDKv1.Response_Void\"\x00\x12\x65\n\x0eGetActionCount\x12\'.Askui.API.TDKv1.Request_GetActionCount\x1a(.Askui.API.TDKv1.Response_GetActionCount\"\x00\x12V\n\tGetAction\x12\".Askui.API.TDKv1.Request_GetAction\x1a#.Askui.API.TDKv1.Response_GetAction\"\x00\x12W\n\x0cRemoveAction\x12%.Askui.API.TDKv1.Request_RemoveAction\x1a\x1e.Askui.API.TDKv1.Response_Void\"\x00\x12_\n\x10RemoveAllActions\x12).Askui.API.TDKv1.Request_RemoveAllActions\x1a\x1e.Askui.API.TDKv1.Response_Void\"\x00\x12\x62\n\rCaptureScreen\x12&.Askui.API.TDKv1.Request_CaptureScreen\x1a\'.Askui.API.TDKv1.Response_CaptureScreen\"\x00\x12g\n\x14SetTestConfiguration\x12-.Askui.API.TDKv1.Reuqest_SetTestConfiguration\x1a\x1e.Askui.API.TDKv1.Response_Void\"\x00\x12Y\n\rSetMouseDelay\x12&.Askui.API.TDKv1.Request_SetMouseDelay\x1a\x1e.Askui.API.TDKv1.Response_Void\"\x00\x12_\n\x10SetKeyboardDelay\x12).Askui.API.TDKv1.Request_SetKeyboardDelay\x1a\x1e.Askui.API.TDKv1.Response_Void\"\x00\x12i\n\x15GetDisplayInformation\x12\x1d.Askui.API.TDKv1.Request_Void\x1a/.Askui.API.TDKv1.Response_GetDisplayInformation\"\x00\x12_\n\x10GetMousePosition\x12\x1d.Askui.API.TDKv1.Request_Void\x1a*.Askui.API.TDKv1.Response_GetMousePosition\"\x00\x12_\n\x10SetActiveDisplay\x12).Askui.API.TDKv1.Request_SetActiveDisplay\x1a\x1e.Askui.API.TDKv1.Response_Void\"\x00\x12S\n\x08GetColor\x12!.Askui.API.TDKv1.Request_GetColor\x1a\".Askui.API.TDKv1.Response_GetColor\"\x00\x12\x62\n\rGetPixelColor\x12&.Askui.API.TDKv1.Request_GetPixelColor\x1a\'.Askui.API.TDKv1.Response_GetPixelColor\"\x00\x12]\n\x0fSetDisplayLabel\x12(.Askui.API.TDKv1.Request_SetDisplayLabel\x1a\x1e.Askui.API.TDKv1.Response_Void\"\x00\x62\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( + b'\n\x13\x43ontroller_V1.proto\x12\x0f\x41skui.API.TDKv1"\x06\n\x04Void"\x0e\n\x0cRequest_Void"\x0f\n\rResponse_Void"&\n\x05Size2\x12\r\n\x05width\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\r"\x1e\n\x06\x44\x65lta2\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05"#\n\x0b\x43oordinate2\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05"E\n\tRectangle\x12\x0c\n\x04left\x18\x01 \x01(\x05\x12\x0b\n\x03top\x18\x02 \x01(\x05\x12\r\n\x05right\x18\x03 \x01(\x05\x12\x0e\n\x06\x62ottom\x18\x04 \x01(\x05"u\n\x06\x42itmap\x12\r\n\x05width\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\r\x12\x11\n\tlineWidth\x18\x03 \x01(\r\x12\x14\n\x0c\x62itsPerPixel\x18\x04 \x01(\r\x12\x15\n\rbytesPerPixel\x18\x05 \x01(\r\x12\x0c\n\x04\x64\x61ta\x18\x06 \x01(\x0c"(\n\x05\x43olor\x12\t\n\x01r\x18\x01 \x01(\r\x12\t\n\x01g\x18\x02 \x01(\r\x12\t\n\x01\x62\x18\x03 \x01(\r")\n\x04GUID\x12\x10\n\x08highPart\x18\x01 \x01(\x04\x12\x0f\n\x07lowPart\x18\x02 \x01(\x04"L\n\x0bSessionInfo\x12*\n\x0bsessionGUID\x18\x01 \x01(\x0b\x32\x15.Askui.API.TDKv1.GUID\x12\x11\n\tsessionID\x18\x02 \x01(\x04"e\n\x0b\x43\x61ptureArea\x12$\n\x04size\x18\x03 \x01(\x0b\x32\x16.Askui.API.TDKv1.Size2\x12\x30\n\ncoordinate\x18\x02 \x01(\x0b\x32\x1c.Askui.API.TDKv1.Coordinate2"\x81\x01\n\x11\x43\x61ptureParameters\x12\x16\n\tdisplayID\x18\x01 \x01(\rH\x00\x88\x01\x01\x12\x36\n\x0b\x63\x61ptureArea\x18\x02 \x01(\x0b\x32\x1c.Askui.API.TDKv1.CaptureAreaH\x01\x88\x01\x01\x42\x0c\n\n_displayIDB\x0e\n\x0c_captureArea"6\n"PollEventParameters_ActionFinished\x12\x10\n\x08\x61\x63tionID\x18\x01 \x01(\r"n\n\x13PollEventParameters\x12M\n\x0e\x61\x63tionFinished\x18\x01 \x01(\x0b\x32\x33.Askui.API.TDKv1.PollEventParameters_ActionFinishedH\x00\x42\x08\n\x06\x64\x61taOf"-\n\x15\x41\x63tionParameters_Wait\x12\x14\n\x0cmilliseconds\x18\x01 \x01(\r"W\n"ActionParameters_MouseButton_Press\x12\x31\n\x0bmouseButton\x18\x01 \x01(\x0e\x32\x1c.Askui.API.TDKv1.MouseButton"Y\n$ActionParameters_MouseButton_Release\x12\x31\n\x0bmouseButton\x18\x01 \x01(\x0e\x32\x1c.Askui.API.TDKv1.MouseButton"p\n,ActionParameters_MouseButton_PressAndRelease\x12\x31\n\x0bmouseButton\x18\x01 \x01(\x0e\x32\x1c.Askui.API.TDKv1.MouseButton\x12\r\n\x05\x63ount\x18\x02 \x01(\r"\xc0\x01\n!ActionParameters_MouseWheelScroll\x12=\n\tdirection\x18\x01 \x01(\x0e\x32*.Askui.API.TDKv1.MouseWheelScrollDirection\x12\x37\n\tdeltaType\x18\x02 \x01(\x0e\x32$.Askui.API.TDKv1.MouseWheelDeltaType\x12\r\n\x05\x64\x65lta\x18\x03 \x01(\x05\x12\x14\n\x0cmilliseconds\x18\x04 \x01(\x05"x\n\x1a\x41\x63tionParameters_MouseMove\x12.\n\x08position\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.Coordinate2\x12\x19\n\x0cmilliseconds\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\x0f\n\r_milliseconds"v\n ActionParameters_MouseMove_Delta\x12&\n\x05\x64\x65lta\x18\x01 \x01(\x0b\x32\x17.Askui.API.TDKv1.Delta2\x12\x19\n\x0cmilliseconds\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\x0f\n\r_milliseconds"O\n"ActionParameters_KeyboardKey_Press\x12\x0f\n\x07keyName\x18\x01 \x01(\t\x12\x18\n\x10modifierKeyNames\x18\x02 \x03(\t"Q\n$ActionParameters_KeyboardKey_Release\x12\x0f\n\x07keyName\x18\x01 \x01(\t\x12\x18\n\x10modifierKeyNames\x18\x02 \x03(\t"Y\n,ActionParameters_KeyboardKey_PressAndRelease\x12\x0f\n\x07keyName\x18\x01 \x01(\t\x12\x18\n\x10modifierKeyNames\x18\x02 \x03(\t"Q\n#ActionParameters_KeyboardKeys_Press\x12\x10\n\x08keyNames\x18\x01 \x03(\t\x12\x18\n\x10modifierKeyNames\x18\x02 \x03(\t"S\n%ActionParameters_KeyboardKeys_Release\x12\x10\n\x08keyNames\x18\x01 \x03(\t\x12\x18\n\x10modifierKeyNames\x18\x02 \x03(\t"[\n-ActionParameters_KeyboardKeys_PressAndRelease\x12\x10\n\x08keyNames\x18\x01 \x03(\t\x12\x18\n\x10modifierKeyNames\x18\x02 \x03(\t"\x99\x01\n"ActionParameters_KeyboardType_Text\x12\x0c\n\x04text\x18\x01 \x01(\t\x12;\n\x10typingSpeedValue\x18\x02 \x01(\x0e\x32!.Askui.API.TDKv1.TypingSpeedValue\x12\x18\n\x0btypingSpeed\x18\x03 \x01(\rH\x00\x88\x01\x01\x42\x0e\n\x0c_typingSpeed"\xa0\x01\n)ActionParameters_KeyboardType_UnicodeText\x12\x0c\n\x04text\x18\x01 \x01(\x0c\x12;\n\x10typingSpeedValue\x18\x02 \x01(\x0e\x32!.Askui.API.TDKv1.TypingSpeedValue\x12\x18\n\x0btypingSpeed\x18\x03 \x01(\rH\x00\x88\x01\x01\x42\x0e\n\x0c_typingSpeed"l\n\x1b\x41\x63tionParameters_RunCommand\x12\x0f\n\x07\x63ommand\x18\x01 \x01(\t\x12"\n\x15timeoutInMilliseconds\x18\x02 \x01(\rH\x00\x88\x01\x01\x42\x18\n\x16_timeoutInMilliseconds"\xf5\n\n\x10\x41\x63tionParameters\x12%\n\x04none\x18\x01 \x01(\x0b\x32\x15.Askui.API.TDKv1.VoidH\x00\x12\x36\n\x04wait\x18\x02 \x01(\x0b\x32&.Askui.API.TDKv1.ActionParameters_WaitH\x00\x12O\n\x10mouseButtonPress\x18\x03 \x01(\x0b\x32\x33.Askui.API.TDKv1.ActionParameters_MouseButton_PressH\x00\x12S\n\x12mouseButtonRelease\x18\x04 \x01(\x0b\x32\x35.Askui.API.TDKv1.ActionParameters_MouseButton_ReleaseH\x00\x12\x63\n\x1amouseButtonPressAndRelease\x18\x05 \x01(\x0b\x32=.Askui.API.TDKv1.ActionParameters_MouseButton_PressAndReleaseH\x00\x12N\n\x10mouseWheelScroll\x18\x06 \x01(\x0b\x32\x32.Askui.API.TDKv1.ActionParameters_MouseWheelScrollH\x00\x12@\n\tmouseMove\x18\x07 \x01(\x0b\x32+.Askui.API.TDKv1.ActionParameters_MouseMoveH\x00\x12K\n\x0emouseMoveDelta\x18\x08 \x01(\x0b\x32\x31.Askui.API.TDKv1.ActionParameters_MouseMove_DeltaH\x00\x12O\n\x10keyboardKeyPress\x18\t \x01(\x0b\x32\x33.Askui.API.TDKv1.ActionParameters_KeyboardKey_PressH\x00\x12S\n\x12keyboardKeyRelease\x18\n \x01(\x0b\x32\x35.Askui.API.TDKv1.ActionParameters_KeyboardKey_ReleaseH\x00\x12\x63\n\x1akeyboardKeyPressAndRelease\x18\x0b \x01(\x0b\x32=.Askui.API.TDKv1.ActionParameters_KeyboardKey_PressAndReleaseH\x00\x12Q\n\x11keyboardKeysPress\x18\x0c \x01(\x0b\x32\x34.Askui.API.TDKv1.ActionParameters_KeyboardKeys_PressH\x00\x12U\n\x13keyboardKeysRelease\x18\r \x01(\x0b\x32\x36.Askui.API.TDKv1.ActionParameters_KeyboardKeys_ReleaseH\x00\x12\x65\n\x1bkeyboardKeysPressAndRelease\x18\x0e \x01(\x0b\x32>.Askui.API.TDKv1.ActionParameters_KeyboardKeys_PressAndReleaseH\x00\x12O\n\x10keyboardTypeText\x18\x0f \x01(\x0b\x32\x33.Askui.API.TDKv1.ActionParameters_KeyboardType_TextH\x00\x12]\n\x17keyboardTypeUnicodeText\x18\x10 \x01(\x0b\x32:.Askui.API.TDKv1.ActionParameters_KeyboardType_UnicodeTextH\x00\x12\x42\n\nruncommand\x18\x11 \x01(\x0b\x32,.Askui.API.TDKv1.ActionParameters_RunCommandH\x00\x42\x08\n\x06\x64\x61taOf"G\n\x14Request_StartSession\x12\x13\n\x0bsessionGUID\x18\x01 \x01(\t\x12\x1a\n\x12immediateExecution\x18\x02 \x01(\x08"J\n\x15Response_StartSession\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo"G\n\x12Request_EndSession\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo"t\n\x0cRequest_Poll\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x31\n\x0bpollEventID\x18\x02 \x01(\x0e\x32\x1c.Askui.API.TDKv1.PollEventID"K\n\x16Request_StartExecution\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo"J\n\x15Request_StopExecution\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo"\x85\x01\n\rResponse_Poll\x12\x31\n\x0bpollEventID\x18\x01 \x01(\x0e\x32\x1c.Askui.API.TDKv1.PollEventID\x12\x41\n\x13pollEventParameters\x18\x02 \x01(\x0b\x32$.Askui.API.TDKv1.PollEventParameters"\xc2\x01\n\x19Request_RunRecordedAction\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x35\n\ractionClassID\x18\x02 \x01(\x0e\x32\x1e.Askui.API.TDKv1.ActionClassID\x12;\n\x10\x61\x63tionParameters\x18\x03 \x01(\x0b\x32!.Askui.API.TDKv1.ActionParameters"L\n\x1aResponse_RunRecordedAction\x12\x10\n\x08\x61\x63tionID\x18\x01 \x01(\r\x12\x1c\n\x14requiredMilliseconds\x18\x02 \x01(\r"\xc6\x01\n\x1dRequest_ScheduleBatchedAction\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x35\n\ractionClassID\x18\x02 \x01(\x0e\x32\x1e.Askui.API.TDKv1.ActionClassID\x12;\n\x10\x61\x63tionParameters\x18\x03 \x01(\x0b\x32!.Askui.API.TDKv1.ActionParameters"2\n\x1eResponse_ScheduleBatchedAction\x12\x10\n\x08\x61\x63tionID\x18\x01 \x01(\r"K\n\x16Request_GetActionCount\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo".\n\x17Response_GetActionCount\x12\x13\n\x0b\x61\x63tionCount\x18\x01 \x01(\r"[\n\x11Request_GetAction\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x13\n\x0b\x61\x63tionIndex\x18\x02 \x01(\r"\x9a\x01\n\x12Response_GetAction\x12\x10\n\x08\x61\x63tionID\x18\x01 \x01(\r\x12\x35\n\ractionClassID\x18\x02 \x01(\x0e\x32\x1e.Askui.API.TDKv1.ActionClassID\x12;\n\x10\x61\x63tionParameters\x18\x03 \x01(\x0b\x32!.Askui.API.TDKv1.ActionParameters"[\n\x14Request_RemoveAction\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x10\n\x08\x61\x63tionID\x18\x02 \x01(\r"M\n\x18Request_RemoveAllActions\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo"J\n\x15Request_StartBatchRun\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo"I\n\x14Request_StopBatchRun\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo"\xa4\x01\n\x15Request_CaptureScreen\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x42\n\x11\x63\x61ptureParameters\x18\x02 \x01(\x0b\x32".Askui.API.TDKv1.CaptureParametersH\x00\x88\x01\x01\x42\x14\n\x12_captureParameters"A\n\x16Response_CaptureScreen\x12\'\n\x06\x62itmap\x18\x01 \x01(\x0b\x32\x17.Askui.API.TDKv1.Bitmap"O\n$Response_GetContinuousCapturedScreen\x12\'\n\x06\x62itmap\x18\x01 \x01(\x0b\x32\x17.Askui.API.TDKv1.Bitmap"\xde\x01\n\x1cReuqest_SetTestConfiguration\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x44\n\x18\x64\x65\x66\x61ultCaptureParameters\x18\x02 \x01(\x0b\x32".Askui.API.TDKv1.CaptureParameters\x12 \n\x18mouseDelayInMilliseconds\x18\x03 \x01(\r\x12#\n\x1bkeyboardDelayInMilliseconds\x18\x04 \x01(\r"g\n\x15Request_SetMouseDelay\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x1b\n\x13\x64\x65layInMilliseconds\x18\x02 \x01(\r"j\n\x18Request_SetKeyboardDelay\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x1b\n\x13\x64\x65layInMilliseconds\x18\x02 \x01(\r"\x9f\x01\n\x12\x44isplayInformation\x12\x11\n\tdisplayID\x18\x01 \x01(\r\x12\x0c\n\x04name\x18\x02 \x01(\t\x12,\n\x0csizeInPixels\x18\x03 \x01(\x0b\x32\x16.Askui.API.TDKv1.Size2\x12:\n\x16virtualScreenRectangle\x18\x04 \x01(\x0b\x32\x1a.Askui.API.TDKv1.Rectangle"\x93\x01\n\x1eResponse_GetDisplayInformation\x12\x35\n\x08\x64isplays\x18\x01 \x03(\x0b\x32#.Askui.API.TDKv1.DisplayInformation\x12:\n\x16virtualScreenRectangle\x18\x02 \x01(\x0b\x32\x1a.Askui.API.TDKv1.Rectangle"1\n\x19Response_GetMousePosition\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05"(\n\x13ProcessInfoExtended\x12\x11\n\thasWindow\x18\x01 \x01(\x08"y\n\x0bProcessInfo\x12\n\n\x02ID\x18\x01 \x01(\x04\x12\x0c\n\x04name\x18\x02 \x01(\t\x12?\n\x0c\x65xtendedInfo\x18\x03 \x01(\x0b\x32$.Askui.API.TDKv1.ProcessInfoExtendedH\x00\x88\x01\x01\x42\x0f\n\r_extendedInfo"1\n\x16Request_GetProcessList\x12\x17\n\x0fgetExtendedInfo\x18\x01 \x01(\x08"J\n\x17Response_GetProcessList\x12/\n\tprocesses\x18\x01 \x03(\x0b\x32\x1c.Askui.API.TDKv1.ProcessInfo"*\n\x15Request_GetWindowList\x12\x11\n\tprocessID\x18\x01 \x01(\x04"&\n\nWindowInfo\x12\n\n\x02ID\x18\x01 \x01(\x04\x12\x0c\n\x04name\x18\x02 \x01(\t"F\n\x16Response_GetWindowList\x12,\n\x07windows\x18\x01 \x03(\x0b\x32\x1b.Askui.API.TDKv1.WindowInfo"-\n\x18Request_SetActiveDisplay\x12\x11\n\tdisplayID\x18\x01 \x01(\r">\n\x17Request_SetActiveWindow\x12\x11\n\tprocessID\x18\x01 \x01(\x04\x12\x10\n\x08windowID\x18\x02 \x01(\x04"q\n\x10\x41utomationTarget\x12\n\n\x02ID\x18\x01 \x01(\x04\x12\x33\n\x04type\x18\x02 \x01(\x0e\x32%.Askui.API.TDKv1.AutomationTargetType\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x0e\n\x06\x61\x63tive\x18\x04 \x01(\x08"V\n Response_GetAutomationTargetList\x12\x32\n\x07targets\x18\x01 \x03(\x0b\x32!.Askui.API.TDKv1.AutomationTarget"/\n!Request_SetActiveAutomationTarget\x12\n\n\x02ID\x18\x01 \x01(\x04"Q\n\x10Request_GetColor\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\x12\'\n\x06\x62itmap\x18\x03 \x01(\x0b\x32\x17.Askui.API.TDKv1.Bitmap":\n\x11Response_GetColor\x12%\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x16.Askui.API.TDKv1.Color"-\n\x15Request_GetPixelColor\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05"?\n\x16Response_GetPixelColor\x12%\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x16.Askui.API.TDKv1.Color"n\n\x17Request_SetDisplayLabel\x12\x31\n\x0bsessionInfo\x18\x01 \x01(\x0b\x32\x1c.Askui.API.TDKv1.SessionInfo\x12\x11\n\tdisplayID\x18\x02 \x01(\r\x12\r\n\x05label\x18\x03 \x01(\t*N\n\x0bPollEventID\x12\x19\n\x15PollEventID_Undefined\x10\x00\x12\x1e\n\x1aPollEventID_ActionFinished\x10\x02"\x04\x08\x01\x10\x01*m\n\x0bMouseButton\x12\x19\n\x15MouseButton_Undefined\x10\x00\x12\x14\n\x10MouseButton_Left\x10\x01\x12\x15\n\x11MouseButton_Right\x10\x02\x12\x16\n\x12MouseButton_Middle\x10\x03*\x8b\x05\n\rActionClassID\x12\x1b\n\x17\x41\x63tionClassID_Undefined\x10\x00\x12\x16\n\x12\x41\x63tionClassID_Wait\x10\x01\x12#\n\x1f\x41\x63tionClassID_MouseButton_Press\x10\x08\x12%\n!ActionClassID_MouseButton_Release\x10\t\x12-\n)ActionClassID_MouseButton_PressAndRelease\x10\n\x12"\n\x1e\x41\x63tionClassID_MouseWheelScroll\x10\x0b\x12\x1b\n\x17\x41\x63tionClassID_MouseMove\x10\x0c\x12!\n\x1d\x41\x63tionClassID_MouseMove_Delta\x10\r\x12#\n\x1f\x41\x63tionClassID_KeyboardKey_Press\x10\x0e\x12%\n!ActionClassID_KeyboardKey_Release\x10\x0f\x12-\n)ActionClassID_KeyboardKey_PressAndRelease\x10\x10\x12$\n ActionClassID_KeyboardKeys_Press\x10\x11\x12&\n"ActionClassID_KeyboardKeys_Release\x10\x12\x12.\n*ActionClassID_KeyboardKeys_PressAndRelease\x10\x13\x12#\n\x1f\x41\x63tionClassID_KeyboardType_Text\x10\x14\x12*\n&ActionClassID_KeyboardType_UnicodeText\x10\x15\x12\x1c\n\x18\x41\x63tionClassID_RunCommand\x10\x16*i\n\x13MouseWheelDeltaType\x12\x1d\n\x19MouseWheelDelta_Undefined\x10\x00\x12\x17\n\x13MouseWheelDelta_Raw\x10\x01\x12\x1a\n\x16MouseWheelDelta_Detent\x10\x02*\x96\x01\n\x19MouseWheelScrollDirection\x12\'\n#MouseWheelScrollDirection_Undefined\x10\x00\x12&\n"MouseWheelScrollDirection_Vertical\x10\x01\x12(\n$MouseWheelScrollDirection_Horizontal\x10\x02*z\n\x10TypingSpeedValue\x12\x1e\n\x1aTypingSpeedValue_Undefined\x10\x00\x12(\n$TypingSpeedValue_CharactersPerSecond\x10\x01\x12\x1c\n\x18TypingSpeedValue_Seconds\x10\x02*S\n\x14\x41utomationTargetType\x12\x1a\n\x16\x41utomationTarget_Local\x10\x00\x12\x1f\n\x1b\x41utomationTarget_Background\x10\x01\x32\xb9\x15\n\rControllerAPI\x12_\n\x0cStartSession\x12%.Askui.API.TDKv1.Request_StartSession\x1a&.Askui.API.TDKv1.Response_StartSession"\x00\x12S\n\nEndSession\x12#.Askui.API.TDKv1.Request_EndSession\x1a\x1e.Askui.API.TDKv1.Response_Void"\x00\x12G\n\x04Poll\x12\x1d.Askui.API.TDKv1.Request_Poll\x1a\x1e.Askui.API.TDKv1.Response_Poll"\x00\x12[\n\x0eStartExecution\x12\'.Askui.API.TDKv1.Request_StartExecution\x1a\x1e.Askui.API.TDKv1.Response_Void"\x00\x12Y\n\rStopExecution\x12&.Askui.API.TDKv1.Request_StopExecution\x1a\x1e.Askui.API.TDKv1.Response_Void"\x00\x12n\n\x11RunRecordedAction\x12*.Askui.API.TDKv1.Request_RunRecordedAction\x1a+.Askui.API.TDKv1.Response_RunRecordedAction"\x00\x12z\n\x15ScheduleBatchedAction\x12..Askui.API.TDKv1.Request_ScheduleBatchedAction\x1a/.Askui.API.TDKv1.Response_ScheduleBatchedAction"\x00\x12Y\n\rStartBatchRun\x12&.Askui.API.TDKv1.Request_StartBatchRun\x1a\x1e.Askui.API.TDKv1.Response_Void"\x00\x12W\n\x0cStopBatchRun\x12%.Askui.API.TDKv1.Request_StopBatchRun\x1a\x1e.Askui.API.TDKv1.Response_Void"\x00\x12\x65\n\x0eGetActionCount\x12\'.Askui.API.TDKv1.Request_GetActionCount\x1a(.Askui.API.TDKv1.Response_GetActionCount"\x00\x12V\n\tGetAction\x12".Askui.API.TDKv1.Request_GetAction\x1a#.Askui.API.TDKv1.Response_GetAction"\x00\x12W\n\x0cRemoveAction\x12%.Askui.API.TDKv1.Request_RemoveAction\x1a\x1e.Askui.API.TDKv1.Response_Void"\x00\x12_\n\x10RemoveAllActions\x12).Askui.API.TDKv1.Request_RemoveAllActions\x1a\x1e.Askui.API.TDKv1.Response_Void"\x00\x12\x62\n\rCaptureScreen\x12&.Askui.API.TDKv1.Request_CaptureScreen\x1a\'.Askui.API.TDKv1.Response_CaptureScreen"\x00\x12g\n\x14SetTestConfiguration\x12-.Askui.API.TDKv1.Reuqest_SetTestConfiguration\x1a\x1e.Askui.API.TDKv1.Response_Void"\x00\x12Y\n\rSetMouseDelay\x12&.Askui.API.TDKv1.Request_SetMouseDelay\x1a\x1e.Askui.API.TDKv1.Response_Void"\x00\x12_\n\x10SetKeyboardDelay\x12).Askui.API.TDKv1.Request_SetKeyboardDelay\x1a\x1e.Askui.API.TDKv1.Response_Void"\x00\x12i\n\x15GetDisplayInformation\x12\x1d.Askui.API.TDKv1.Request_Void\x1a/.Askui.API.TDKv1.Response_GetDisplayInformation"\x00\x12_\n\x10GetMousePosition\x12\x1d.Askui.API.TDKv1.Request_Void\x1a*.Askui.API.TDKv1.Response_GetMousePosition"\x00\x12\x65\n\x0eGetProcessList\x12\'.Askui.API.TDKv1.Request_GetProcessList\x1a(.Askui.API.TDKv1.Response_GetProcessList"\x00\x12\x62\n\rGetWindowList\x12&.Askui.API.TDKv1.Request_GetWindowList\x1a\'.Askui.API.TDKv1.Response_GetWindowList"\x00\x12m\n\x17GetAutomationTargetList\x12\x1d.Askui.API.TDKv1.Request_Void\x1a\x31.Askui.API.TDKv1.Response_GetAutomationTargetList"\x00\x12_\n\x10SetActiveDisplay\x12).Askui.API.TDKv1.Request_SetActiveDisplay\x1a\x1e.Askui.API.TDKv1.Response_Void"\x00\x12]\n\x0fSetActiveWindow\x12(.Askui.API.TDKv1.Request_SetActiveWindow\x1a\x1e.Askui.API.TDKv1.Response_Void"\x00\x12q\n\x19SetActiveAutomationTarget\x12\x32.Askui.API.TDKv1.Request_SetActiveAutomationTarget\x1a\x1e.Askui.API.TDKv1.Response_Void"\x00\x12S\n\x08GetColor\x12!.Askui.API.TDKv1.Request_GetColor\x1a".Askui.API.TDKv1.Response_GetColor"\x00\x12\x62\n\rGetPixelColor\x12&.Askui.API.TDKv1.Request_GetPixelColor\x1a\'.Askui.API.TDKv1.Response_GetPixelColor"\x00\x12]\n\x0fSetDisplayLabel\x12(.Askui.API.TDKv1.Request_SetDisplayLabel\x1a\x1e.Askui.API.TDKv1.Response_Void"\x00\x62\x06proto3' +) _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'Controller_V1_pb2', _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "Controller_V1_pb2", _globals) if not _descriptor._USE_C_DESCRIPTORS: - DESCRIPTOR._loaded_options = None - _globals['_POLLEVENTID']._serialized_start=7454 - _globals['_POLLEVENTID']._serialized_end=7532 - _globals['_MOUSEBUTTON']._serialized_start=7534 - _globals['_MOUSEBUTTON']._serialized_end=7643 - _globals['_ACTIONCLASSID']._serialized_start=7646 - _globals['_ACTIONCLASSID']._serialized_end=8297 - _globals['_MOUSEWHEELDELTATYPE']._serialized_start=8299 - _globals['_MOUSEWHEELDELTATYPE']._serialized_end=8404 - _globals['_MOUSEWHEELSCROLLDIRECTION']._serialized_start=8407 - _globals['_MOUSEWHEELSCROLLDIRECTION']._serialized_end=8557 - _globals['_TYPINGSPEEDVALUE']._serialized_start=8559 - _globals['_TYPINGSPEEDVALUE']._serialized_end=8681 - _globals['_VOID']._serialized_start=40 - _globals['_VOID']._serialized_end=46 - _globals['_REQUEST_VOID']._serialized_start=48 - _globals['_REQUEST_VOID']._serialized_end=62 - _globals['_RESPONSE_VOID']._serialized_start=64 - _globals['_RESPONSE_VOID']._serialized_end=79 - _globals['_SIZE2']._serialized_start=81 - _globals['_SIZE2']._serialized_end=119 - _globals['_DELTA2']._serialized_start=121 - _globals['_DELTA2']._serialized_end=151 - _globals['_COORDINATE2']._serialized_start=153 - _globals['_COORDINATE2']._serialized_end=188 - _globals['_RECTANGLE']._serialized_start=190 - _globals['_RECTANGLE']._serialized_end=259 - _globals['_BITMAP']._serialized_start=261 - _globals['_BITMAP']._serialized_end=378 - _globals['_COLOR']._serialized_start=380 - _globals['_COLOR']._serialized_end=420 - _globals['_GUID']._serialized_start=422 - _globals['_GUID']._serialized_end=463 - _globals['_SESSIONINFO']._serialized_start=465 - _globals['_SESSIONINFO']._serialized_end=541 - _globals['_CAPTUREAREA']._serialized_start=543 - _globals['_CAPTUREAREA']._serialized_end=644 - _globals['_CAPTUREPARAMETERS']._serialized_start=647 - _globals['_CAPTUREPARAMETERS']._serialized_end=776 - _globals['_POLLEVENTPARAMETERS_ACTIONFINISHED']._serialized_start=778 - _globals['_POLLEVENTPARAMETERS_ACTIONFINISHED']._serialized_end=832 - _globals['_POLLEVENTPARAMETERS']._serialized_start=834 - _globals['_POLLEVENTPARAMETERS']._serialized_end=944 - _globals['_ACTIONPARAMETERS_WAIT']._serialized_start=946 - _globals['_ACTIONPARAMETERS_WAIT']._serialized_end=991 - _globals['_ACTIONPARAMETERS_MOUSEBUTTON_PRESS']._serialized_start=993 - _globals['_ACTIONPARAMETERS_MOUSEBUTTON_PRESS']._serialized_end=1080 - _globals['_ACTIONPARAMETERS_MOUSEBUTTON_RELEASE']._serialized_start=1082 - _globals['_ACTIONPARAMETERS_MOUSEBUTTON_RELEASE']._serialized_end=1171 - _globals['_ACTIONPARAMETERS_MOUSEBUTTON_PRESSANDRELEASE']._serialized_start=1173 - _globals['_ACTIONPARAMETERS_MOUSEBUTTON_PRESSANDRELEASE']._serialized_end=1285 - _globals['_ACTIONPARAMETERS_MOUSEWHEELSCROLL']._serialized_start=1288 - _globals['_ACTIONPARAMETERS_MOUSEWHEELSCROLL']._serialized_end=1480 - _globals['_ACTIONPARAMETERS_MOUSEMOVE']._serialized_start=1482 - _globals['_ACTIONPARAMETERS_MOUSEMOVE']._serialized_end=1602 - _globals['_ACTIONPARAMETERS_MOUSEMOVE_DELTA']._serialized_start=1604 - _globals['_ACTIONPARAMETERS_MOUSEMOVE_DELTA']._serialized_end=1722 - _globals['_ACTIONPARAMETERS_KEYBOARDKEY_PRESS']._serialized_start=1724 - _globals['_ACTIONPARAMETERS_KEYBOARDKEY_PRESS']._serialized_end=1803 - _globals['_ACTIONPARAMETERS_KEYBOARDKEY_RELEASE']._serialized_start=1805 - _globals['_ACTIONPARAMETERS_KEYBOARDKEY_RELEASE']._serialized_end=1886 - _globals['_ACTIONPARAMETERS_KEYBOARDKEY_PRESSANDRELEASE']._serialized_start=1888 - _globals['_ACTIONPARAMETERS_KEYBOARDKEY_PRESSANDRELEASE']._serialized_end=1977 - _globals['_ACTIONPARAMETERS_KEYBOARDKEYS_PRESS']._serialized_start=1979 - _globals['_ACTIONPARAMETERS_KEYBOARDKEYS_PRESS']._serialized_end=2060 - _globals['_ACTIONPARAMETERS_KEYBOARDKEYS_RELEASE']._serialized_start=2062 - _globals['_ACTIONPARAMETERS_KEYBOARDKEYS_RELEASE']._serialized_end=2145 - _globals['_ACTIONPARAMETERS_KEYBOARDKEYS_PRESSANDRELEASE']._serialized_start=2147 - _globals['_ACTIONPARAMETERS_KEYBOARDKEYS_PRESSANDRELEASE']._serialized_end=2238 - _globals['_ACTIONPARAMETERS_KEYBOARDTYPE_TEXT']._serialized_start=2241 - _globals['_ACTIONPARAMETERS_KEYBOARDTYPE_TEXT']._serialized_end=2394 - _globals['_ACTIONPARAMETERS_KEYBOARDTYPE_UNICODETEXT']._serialized_start=2397 - _globals['_ACTIONPARAMETERS_KEYBOARDTYPE_UNICODETEXT']._serialized_end=2557 - _globals['_ACTIONPARAMETERS_RUNCOMMAND']._serialized_start=2559 - _globals['_ACTIONPARAMETERS_RUNCOMMAND']._serialized_end=2667 - _globals['_ACTIONPARAMETERS']._serialized_start=2670 - _globals['_ACTIONPARAMETERS']._serialized_end=4067 - _globals['_REQUEST_STARTSESSION']._serialized_start=4069 - _globals['_REQUEST_STARTSESSION']._serialized_end=4140 - _globals['_RESPONSE_STARTSESSION']._serialized_start=4142 - _globals['_RESPONSE_STARTSESSION']._serialized_end=4216 - _globals['_REQUEST_ENDSESSION']._serialized_start=4218 - _globals['_REQUEST_ENDSESSION']._serialized_end=4289 - _globals['_REQUEST_POLL']._serialized_start=4291 - _globals['_REQUEST_POLL']._serialized_end=4407 - _globals['_REQUEST_STARTEXECUTION']._serialized_start=4409 - _globals['_REQUEST_STARTEXECUTION']._serialized_end=4484 - _globals['_REQUEST_STOPEXECUTION']._serialized_start=4486 - _globals['_REQUEST_STOPEXECUTION']._serialized_end=4560 - _globals['_RESPONSE_POLL']._serialized_start=4563 - _globals['_RESPONSE_POLL']._serialized_end=4696 - _globals['_REQUEST_RUNRECORDEDACTION']._serialized_start=4699 - _globals['_REQUEST_RUNRECORDEDACTION']._serialized_end=4893 - _globals['_RESPONSE_RUNRECORDEDACTION']._serialized_start=4895 - _globals['_RESPONSE_RUNRECORDEDACTION']._serialized_end=4971 - _globals['_REQUEST_SCHEDULEBATCHEDACTION']._serialized_start=4974 - _globals['_REQUEST_SCHEDULEBATCHEDACTION']._serialized_end=5172 - _globals['_RESPONSE_SCHEDULEBATCHEDACTION']._serialized_start=5174 - _globals['_RESPONSE_SCHEDULEBATCHEDACTION']._serialized_end=5224 - _globals['_REQUEST_GETACTIONCOUNT']._serialized_start=5226 - _globals['_REQUEST_GETACTIONCOUNT']._serialized_end=5301 - _globals['_RESPONSE_GETACTIONCOUNT']._serialized_start=5303 - _globals['_RESPONSE_GETACTIONCOUNT']._serialized_end=5349 - _globals['_REQUEST_GETACTION']._serialized_start=5351 - _globals['_REQUEST_GETACTION']._serialized_end=5442 - _globals['_RESPONSE_GETACTION']._serialized_start=5445 - _globals['_RESPONSE_GETACTION']._serialized_end=5599 - _globals['_REQUEST_REMOVEACTION']._serialized_start=5601 - _globals['_REQUEST_REMOVEACTION']._serialized_end=5692 - _globals['_REQUEST_REMOVEALLACTIONS']._serialized_start=5694 - _globals['_REQUEST_REMOVEALLACTIONS']._serialized_end=5771 - _globals['_REQUEST_STARTBATCHRUN']._serialized_start=5773 - _globals['_REQUEST_STARTBATCHRUN']._serialized_end=5847 - _globals['_REQUEST_STOPBATCHRUN']._serialized_start=5849 - _globals['_REQUEST_STOPBATCHRUN']._serialized_end=5922 - _globals['_REQUEST_CAPTURESCREEN']._serialized_start=5925 - _globals['_REQUEST_CAPTURESCREEN']._serialized_end=6089 - _globals['_RESPONSE_CAPTURESCREEN']._serialized_start=6091 - _globals['_RESPONSE_CAPTURESCREEN']._serialized_end=6156 - _globals['_RESPONSE_GETCONTINUOUSCAPTUREDSCREEN']._serialized_start=6158 - _globals['_RESPONSE_GETCONTINUOUSCAPTUREDSCREEN']._serialized_end=6237 - _globals['_REUQEST_SETTESTCONFIGURATION']._serialized_start=6240 - _globals['_REUQEST_SETTESTCONFIGURATION']._serialized_end=6462 - _globals['_REQUEST_SETMOUSEDELAY']._serialized_start=6464 - _globals['_REQUEST_SETMOUSEDELAY']._serialized_end=6567 - _globals['_REQUEST_SETKEYBOARDDELAY']._serialized_start=6569 - _globals['_REQUEST_SETKEYBOARDDELAY']._serialized_end=6675 - _globals['_DISPLAYINFORMATION']._serialized_start=6678 - _globals['_DISPLAYINFORMATION']._serialized_end=6837 - _globals['_RESPONSE_GETDISPLAYINFORMATION']._serialized_start=6840 - _globals['_RESPONSE_GETDISPLAYINFORMATION']._serialized_end=6987 - _globals['_RESPONSE_GETMOUSEPOSITION']._serialized_start=6989 - _globals['_RESPONSE_GETMOUSEPOSITION']._serialized_end=7038 - _globals['_REQUEST_SETACTIVEDISPLAY']._serialized_start=7040 - _globals['_REQUEST_SETACTIVEDISPLAY']._serialized_end=7085 - _globals['_REQUEST_GETCOLOR']._serialized_start=7087 - _globals['_REQUEST_GETCOLOR']._serialized_end=7168 - _globals['_RESPONSE_GETCOLOR']._serialized_start=7170 - _globals['_RESPONSE_GETCOLOR']._serialized_end=7228 - _globals['_REQUEST_GETPIXELCOLOR']._serialized_start=7230 - _globals['_REQUEST_GETPIXELCOLOR']._serialized_end=7275 - _globals['_RESPONSE_GETPIXELCOLOR']._serialized_start=7277 - _globals['_RESPONSE_GETPIXELCOLOR']._serialized_end=7340 - _globals['_REQUEST_SETDISPLAYLABEL']._serialized_start=7342 - _globals['_REQUEST_SETDISPLAYLABEL']._serialized_end=7452 - _globals['_CONTROLLERAPI']._serialized_start=8684 - _globals['_CONTROLLERAPI']._serialized_end=10905 + DESCRIPTOR._loaded_options = None + _globals["_POLLEVENTID"]._serialized_start = 8218 + _globals["_POLLEVENTID"]._serialized_end = 8296 + _globals["_MOUSEBUTTON"]._serialized_start = 8298 + _globals["_MOUSEBUTTON"]._serialized_end = 8407 + _globals["_ACTIONCLASSID"]._serialized_start = 8410 + _globals["_ACTIONCLASSID"]._serialized_end = 9061 + _globals["_MOUSEWHEELDELTATYPE"]._serialized_start = 9063 + _globals["_MOUSEWHEELDELTATYPE"]._serialized_end = 9168 + _globals["_MOUSEWHEELSCROLLDIRECTION"]._serialized_start = 9171 + _globals["_MOUSEWHEELSCROLLDIRECTION"]._serialized_end = 9321 + _globals["_TYPINGSPEEDVALUE"]._serialized_start = 9323 + _globals["_TYPINGSPEEDVALUE"]._serialized_end = 9445 + _globals["_AUTOMATIONTARGETTYPE"]._serialized_start = 9447 + _globals["_AUTOMATIONTARGETTYPE"]._serialized_end = 9530 + _globals["_VOID"]._serialized_start = 40 + _globals["_VOID"]._serialized_end = 46 + _globals["_REQUEST_VOID"]._serialized_start = 48 + _globals["_REQUEST_VOID"]._serialized_end = 62 + _globals["_RESPONSE_VOID"]._serialized_start = 64 + _globals["_RESPONSE_VOID"]._serialized_end = 79 + _globals["_SIZE2"]._serialized_start = 81 + _globals["_SIZE2"]._serialized_end = 119 + _globals["_DELTA2"]._serialized_start = 121 + _globals["_DELTA2"]._serialized_end = 151 + _globals["_COORDINATE2"]._serialized_start = 153 + _globals["_COORDINATE2"]._serialized_end = 188 + _globals["_RECTANGLE"]._serialized_start = 190 + _globals["_RECTANGLE"]._serialized_end = 259 + _globals["_BITMAP"]._serialized_start = 261 + _globals["_BITMAP"]._serialized_end = 378 + _globals["_COLOR"]._serialized_start = 380 + _globals["_COLOR"]._serialized_end = 420 + _globals["_GUID"]._serialized_start = 422 + _globals["_GUID"]._serialized_end = 463 + _globals["_SESSIONINFO"]._serialized_start = 465 + _globals["_SESSIONINFO"]._serialized_end = 541 + _globals["_CAPTUREAREA"]._serialized_start = 543 + _globals["_CAPTUREAREA"]._serialized_end = 644 + _globals["_CAPTUREPARAMETERS"]._serialized_start = 647 + _globals["_CAPTUREPARAMETERS"]._serialized_end = 776 + _globals["_POLLEVENTPARAMETERS_ACTIONFINISHED"]._serialized_start = 778 + _globals["_POLLEVENTPARAMETERS_ACTIONFINISHED"]._serialized_end = 832 + _globals["_POLLEVENTPARAMETERS"]._serialized_start = 834 + _globals["_POLLEVENTPARAMETERS"]._serialized_end = 944 + _globals["_ACTIONPARAMETERS_WAIT"]._serialized_start = 946 + _globals["_ACTIONPARAMETERS_WAIT"]._serialized_end = 991 + _globals["_ACTIONPARAMETERS_MOUSEBUTTON_PRESS"]._serialized_start = 993 + _globals["_ACTIONPARAMETERS_MOUSEBUTTON_PRESS"]._serialized_end = 1080 + _globals["_ACTIONPARAMETERS_MOUSEBUTTON_RELEASE"]._serialized_start = 1082 + _globals["_ACTIONPARAMETERS_MOUSEBUTTON_RELEASE"]._serialized_end = 1171 + _globals["_ACTIONPARAMETERS_MOUSEBUTTON_PRESSANDRELEASE"]._serialized_start = 1173 + _globals["_ACTIONPARAMETERS_MOUSEBUTTON_PRESSANDRELEASE"]._serialized_end = 1285 + _globals["_ACTIONPARAMETERS_MOUSEWHEELSCROLL"]._serialized_start = 1288 + _globals["_ACTIONPARAMETERS_MOUSEWHEELSCROLL"]._serialized_end = 1480 + _globals["_ACTIONPARAMETERS_MOUSEMOVE"]._serialized_start = 1482 + _globals["_ACTIONPARAMETERS_MOUSEMOVE"]._serialized_end = 1602 + _globals["_ACTIONPARAMETERS_MOUSEMOVE_DELTA"]._serialized_start = 1604 + _globals["_ACTIONPARAMETERS_MOUSEMOVE_DELTA"]._serialized_end = 1722 + _globals["_ACTIONPARAMETERS_KEYBOARDKEY_PRESS"]._serialized_start = 1724 + _globals["_ACTIONPARAMETERS_KEYBOARDKEY_PRESS"]._serialized_end = 1803 + _globals["_ACTIONPARAMETERS_KEYBOARDKEY_RELEASE"]._serialized_start = 1805 + _globals["_ACTIONPARAMETERS_KEYBOARDKEY_RELEASE"]._serialized_end = 1886 + _globals["_ACTIONPARAMETERS_KEYBOARDKEY_PRESSANDRELEASE"]._serialized_start = 1888 + _globals["_ACTIONPARAMETERS_KEYBOARDKEY_PRESSANDRELEASE"]._serialized_end = 1977 + _globals["_ACTIONPARAMETERS_KEYBOARDKEYS_PRESS"]._serialized_start = 1979 + _globals["_ACTIONPARAMETERS_KEYBOARDKEYS_PRESS"]._serialized_end = 2060 + _globals["_ACTIONPARAMETERS_KEYBOARDKEYS_RELEASE"]._serialized_start = 2062 + _globals["_ACTIONPARAMETERS_KEYBOARDKEYS_RELEASE"]._serialized_end = 2145 + _globals["_ACTIONPARAMETERS_KEYBOARDKEYS_PRESSANDRELEASE"]._serialized_start = 2147 + _globals["_ACTIONPARAMETERS_KEYBOARDKEYS_PRESSANDRELEASE"]._serialized_end = 2238 + _globals["_ACTIONPARAMETERS_KEYBOARDTYPE_TEXT"]._serialized_start = 2241 + _globals["_ACTIONPARAMETERS_KEYBOARDTYPE_TEXT"]._serialized_end = 2394 + _globals["_ACTIONPARAMETERS_KEYBOARDTYPE_UNICODETEXT"]._serialized_start = 2397 + _globals["_ACTIONPARAMETERS_KEYBOARDTYPE_UNICODETEXT"]._serialized_end = 2557 + _globals["_ACTIONPARAMETERS_RUNCOMMAND"]._serialized_start = 2559 + _globals["_ACTIONPARAMETERS_RUNCOMMAND"]._serialized_end = 2667 + _globals["_ACTIONPARAMETERS"]._serialized_start = 2670 + _globals["_ACTIONPARAMETERS"]._serialized_end = 4067 + _globals["_REQUEST_STARTSESSION"]._serialized_start = 4069 + _globals["_REQUEST_STARTSESSION"]._serialized_end = 4140 + _globals["_RESPONSE_STARTSESSION"]._serialized_start = 4142 + _globals["_RESPONSE_STARTSESSION"]._serialized_end = 4216 + _globals["_REQUEST_ENDSESSION"]._serialized_start = 4218 + _globals["_REQUEST_ENDSESSION"]._serialized_end = 4289 + _globals["_REQUEST_POLL"]._serialized_start = 4291 + _globals["_REQUEST_POLL"]._serialized_end = 4407 + _globals["_REQUEST_STARTEXECUTION"]._serialized_start = 4409 + _globals["_REQUEST_STARTEXECUTION"]._serialized_end = 4484 + _globals["_REQUEST_STOPEXECUTION"]._serialized_start = 4486 + _globals["_REQUEST_STOPEXECUTION"]._serialized_end = 4560 + _globals["_RESPONSE_POLL"]._serialized_start = 4563 + _globals["_RESPONSE_POLL"]._serialized_end = 4696 + _globals["_REQUEST_RUNRECORDEDACTION"]._serialized_start = 4699 + _globals["_REQUEST_RUNRECORDEDACTION"]._serialized_end = 4893 + _globals["_RESPONSE_RUNRECORDEDACTION"]._serialized_start = 4895 + _globals["_RESPONSE_RUNRECORDEDACTION"]._serialized_end = 4971 + _globals["_REQUEST_SCHEDULEBATCHEDACTION"]._serialized_start = 4974 + _globals["_REQUEST_SCHEDULEBATCHEDACTION"]._serialized_end = 5172 + _globals["_RESPONSE_SCHEDULEBATCHEDACTION"]._serialized_start = 5174 + _globals["_RESPONSE_SCHEDULEBATCHEDACTION"]._serialized_end = 5224 + _globals["_REQUEST_GETACTIONCOUNT"]._serialized_start = 5226 + _globals["_REQUEST_GETACTIONCOUNT"]._serialized_end = 5301 + _globals["_RESPONSE_GETACTIONCOUNT"]._serialized_start = 5303 + _globals["_RESPONSE_GETACTIONCOUNT"]._serialized_end = 5349 + _globals["_REQUEST_GETACTION"]._serialized_start = 5351 + _globals["_REQUEST_GETACTION"]._serialized_end = 5442 + _globals["_RESPONSE_GETACTION"]._serialized_start = 5445 + _globals["_RESPONSE_GETACTION"]._serialized_end = 5599 + _globals["_REQUEST_REMOVEACTION"]._serialized_start = 5601 + _globals["_REQUEST_REMOVEACTION"]._serialized_end = 5692 + _globals["_REQUEST_REMOVEALLACTIONS"]._serialized_start = 5694 + _globals["_REQUEST_REMOVEALLACTIONS"]._serialized_end = 5771 + _globals["_REQUEST_STARTBATCHRUN"]._serialized_start = 5773 + _globals["_REQUEST_STARTBATCHRUN"]._serialized_end = 5847 + _globals["_REQUEST_STOPBATCHRUN"]._serialized_start = 5849 + _globals["_REQUEST_STOPBATCHRUN"]._serialized_end = 5922 + _globals["_REQUEST_CAPTURESCREEN"]._serialized_start = 5925 + _globals["_REQUEST_CAPTURESCREEN"]._serialized_end = 6089 + _globals["_RESPONSE_CAPTURESCREEN"]._serialized_start = 6091 + _globals["_RESPONSE_CAPTURESCREEN"]._serialized_end = 6156 + _globals["_RESPONSE_GETCONTINUOUSCAPTUREDSCREEN"]._serialized_start = 6158 + _globals["_RESPONSE_GETCONTINUOUSCAPTUREDSCREEN"]._serialized_end = 6237 + _globals["_REUQEST_SETTESTCONFIGURATION"]._serialized_start = 6240 + _globals["_REUQEST_SETTESTCONFIGURATION"]._serialized_end = 6462 + _globals["_REQUEST_SETMOUSEDELAY"]._serialized_start = 6464 + _globals["_REQUEST_SETMOUSEDELAY"]._serialized_end = 6567 + _globals["_REQUEST_SETKEYBOARDDELAY"]._serialized_start = 6569 + _globals["_REQUEST_SETKEYBOARDDELAY"]._serialized_end = 6675 + _globals["_DISPLAYINFORMATION"]._serialized_start = 6678 + _globals["_DISPLAYINFORMATION"]._serialized_end = 6837 + _globals["_RESPONSE_GETDISPLAYINFORMATION"]._serialized_start = 6840 + _globals["_RESPONSE_GETDISPLAYINFORMATION"]._serialized_end = 6987 + _globals["_RESPONSE_GETMOUSEPOSITION"]._serialized_start = 6989 + _globals["_RESPONSE_GETMOUSEPOSITION"]._serialized_end = 7038 + _globals["_PROCESSINFOEXTENDED"]._serialized_start = 7040 + _globals["_PROCESSINFOEXTENDED"]._serialized_end = 7080 + _globals["_PROCESSINFO"]._serialized_start = 7082 + _globals["_PROCESSINFO"]._serialized_end = 7203 + _globals["_REQUEST_GETPROCESSLIST"]._serialized_start = 7205 + _globals["_REQUEST_GETPROCESSLIST"]._serialized_end = 7254 + _globals["_RESPONSE_GETPROCESSLIST"]._serialized_start = 7256 + _globals["_RESPONSE_GETPROCESSLIST"]._serialized_end = 7330 + _globals["_REQUEST_GETWINDOWLIST"]._serialized_start = 7332 + _globals["_REQUEST_GETWINDOWLIST"]._serialized_end = 7374 + _globals["_WINDOWINFO"]._serialized_start = 7376 + _globals["_WINDOWINFO"]._serialized_end = 7414 + _globals["_RESPONSE_GETWINDOWLIST"]._serialized_start = 7416 + _globals["_RESPONSE_GETWINDOWLIST"]._serialized_end = 7486 + _globals["_REQUEST_SETACTIVEDISPLAY"]._serialized_start = 7488 + _globals["_REQUEST_SETACTIVEDISPLAY"]._serialized_end = 7533 + _globals["_REQUEST_SETACTIVEWINDOW"]._serialized_start = 7535 + _globals["_REQUEST_SETACTIVEWINDOW"]._serialized_end = 7597 + _globals["_AUTOMATIONTARGET"]._serialized_start = 7599 + _globals["_AUTOMATIONTARGET"]._serialized_end = 7712 + _globals["_RESPONSE_GETAUTOMATIONTARGETLIST"]._serialized_start = 7714 + _globals["_RESPONSE_GETAUTOMATIONTARGETLIST"]._serialized_end = 7800 + _globals["_REQUEST_SETACTIVEAUTOMATIONTARGET"]._serialized_start = 7802 + _globals["_REQUEST_SETACTIVEAUTOMATIONTARGET"]._serialized_end = 7849 + _globals["_REQUEST_GETCOLOR"]._serialized_start = 7851 + _globals["_REQUEST_GETCOLOR"]._serialized_end = 7932 + _globals["_RESPONSE_GETCOLOR"]._serialized_start = 7934 + _globals["_RESPONSE_GETCOLOR"]._serialized_end = 7992 + _globals["_REQUEST_GETPIXELCOLOR"]._serialized_start = 7994 + _globals["_REQUEST_GETPIXELCOLOR"]._serialized_end = 8039 + _globals["_RESPONSE_GETPIXELCOLOR"]._serialized_start = 8041 + _globals["_RESPONSE_GETPIXELCOLOR"]._serialized_end = 8104 + _globals["_REQUEST_SETDISPLAYLABEL"]._serialized_start = 8106 + _globals["_REQUEST_SETDISPLAYLABEL"]._serialized_end = 8216 + _globals["_CONTROLLERAPI"]._serialized_start = 9533 + _globals["_CONTROLLERAPI"]._serialized_end = 12278 # @@protoc_insertion_point(module_scope) diff --git a/src/askui/tools/askui/askui_ui_controller_grpc/Controller_V1_pb2.pyi b/src/askui/tools/askui/askui_ui_controller_grpc/Controller_V1_pb2.pyi index b7ff2127..fb4e9b7b 100644 --- a/src/askui/tools/askui/askui_ui_controller_grpc/Controller_V1_pb2.pyi +++ b/src/askui/tools/askui/askui_ui_controller_grpc/Controller_V1_pb2.pyi @@ -1,8 +1,13 @@ -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper +from typing import ClassVar as _ClassVar +from typing import Iterable as _Iterable +from typing import Mapping as _Mapping +from typing import Optional as _Optional +from typing import Union as _Union + from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +from google.protobuf.internal import containers as _containers +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper DESCRIPTOR: _descriptor.FileDescriptor @@ -55,6 +60,12 @@ class TypingSpeedValue(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): TypingSpeedValue_Undefined: _ClassVar[TypingSpeedValue] TypingSpeedValue_CharactersPerSecond: _ClassVar[TypingSpeedValue] TypingSpeedValue_Seconds: _ClassVar[TypingSpeedValue] + +class AutomationTargetType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = () + AutomationTarget_Local: _ClassVar[AutomationTargetType] + AutomationTarget_Background: _ClassVar[AutomationTargetType] + PollEventID_Undefined: PollEventID PollEventID_ActionFinished: PollEventID MouseButton_Undefined: MouseButton @@ -87,6 +98,8 @@ MouseWheelScrollDirection_Horizontal: MouseWheelScrollDirection TypingSpeedValue_Undefined: TypingSpeedValue TypingSpeedValue_CharactersPerSecond: TypingSpeedValue TypingSpeedValue_Seconds: TypingSpeedValue +AutomationTarget_Local: AutomationTargetType +AutomationTarget_Background: AutomationTargetType class Void(_message.Message): __slots__ = () @@ -106,7 +119,9 @@ class Size2(_message.Message): HEIGHT_FIELD_NUMBER: _ClassVar[int] width: int height: int - def __init__(self, width: _Optional[int] = ..., height: _Optional[int] = ...) -> None: ... + def __init__( + self, width: _Optional[int] = ..., height: _Optional[int] = ... + ) -> None: ... class Delta2(_message.Message): __slots__ = ("x", "y") @@ -134,10 +149,23 @@ class Rectangle(_message.Message): top: int right: int bottom: int - def __init__(self, left: _Optional[int] = ..., top: _Optional[int] = ..., right: _Optional[int] = ..., bottom: _Optional[int] = ...) -> None: ... + def __init__( + self, + left: _Optional[int] = ..., + top: _Optional[int] = ..., + right: _Optional[int] = ..., + bottom: _Optional[int] = ..., + ) -> None: ... class Bitmap(_message.Message): - __slots__ = ("width", "height", "lineWidth", "bitsPerPixel", "bytesPerPixel", "data") + __slots__ = ( + "width", + "height", + "lineWidth", + "bitsPerPixel", + "bytesPerPixel", + "data", + ) WIDTH_FIELD_NUMBER: _ClassVar[int] HEIGHT_FIELD_NUMBER: _ClassVar[int] LINEWIDTH_FIELD_NUMBER: _ClassVar[int] @@ -150,7 +178,15 @@ class Bitmap(_message.Message): bitsPerPixel: int bytesPerPixel: int data: bytes - def __init__(self, width: _Optional[int] = ..., height: _Optional[int] = ..., lineWidth: _Optional[int] = ..., bitsPerPixel: _Optional[int] = ..., bytesPerPixel: _Optional[int] = ..., data: _Optional[bytes] = ...) -> None: ... + def __init__( + self, + width: _Optional[int] = ..., + height: _Optional[int] = ..., + lineWidth: _Optional[int] = ..., + bitsPerPixel: _Optional[int] = ..., + bytesPerPixel: _Optional[int] = ..., + data: _Optional[bytes] = ..., + ) -> None: ... class Color(_message.Message): __slots__ = ("r", "g", "b") @@ -160,7 +196,9 @@ class Color(_message.Message): r: int g: int b: int - def __init__(self, r: _Optional[int] = ..., g: _Optional[int] = ..., b: _Optional[int] = ...) -> None: ... + def __init__( + self, r: _Optional[int] = ..., g: _Optional[int] = ..., b: _Optional[int] = ... + ) -> None: ... class GUID(_message.Message): __slots__ = ("highPart", "lowPart") @@ -168,7 +206,9 @@ class GUID(_message.Message): LOWPART_FIELD_NUMBER: _ClassVar[int] highPart: int lowPart: int - def __init__(self, highPart: _Optional[int] = ..., lowPart: _Optional[int] = ...) -> None: ... + def __init__( + self, highPart: _Optional[int] = ..., lowPart: _Optional[int] = ... + ) -> None: ... class SessionInfo(_message.Message): __slots__ = ("sessionGUID", "sessionID") @@ -176,7 +216,11 @@ class SessionInfo(_message.Message): SESSIONID_FIELD_NUMBER: _ClassVar[int] sessionGUID: GUID sessionID: int - def __init__(self, sessionGUID: _Optional[_Union[GUID, _Mapping]] = ..., sessionID: _Optional[int] = ...) -> None: ... + def __init__( + self, + sessionGUID: _Optional[_Union[GUID, _Mapping]] = ..., + sessionID: _Optional[int] = ..., + ) -> None: ... class CaptureArea(_message.Message): __slots__ = ("size", "coordinate") @@ -184,7 +228,11 @@ class CaptureArea(_message.Message): COORDINATE_FIELD_NUMBER: _ClassVar[int] size: Size2 coordinate: Coordinate2 - def __init__(self, size: _Optional[_Union[Size2, _Mapping]] = ..., coordinate: _Optional[_Union[Coordinate2, _Mapping]] = ...) -> None: ... + def __init__( + self, + size: _Optional[_Union[Size2, _Mapping]] = ..., + coordinate: _Optional[_Union[Coordinate2, _Mapping]] = ..., + ) -> None: ... class CaptureParameters(_message.Message): __slots__ = ("displayID", "captureArea") @@ -192,7 +240,11 @@ class CaptureParameters(_message.Message): CAPTUREAREA_FIELD_NUMBER: _ClassVar[int] displayID: int captureArea: CaptureArea - def __init__(self, displayID: _Optional[int] = ..., captureArea: _Optional[_Union[CaptureArea, _Mapping]] = ...) -> None: ... + def __init__( + self, + displayID: _Optional[int] = ..., + captureArea: _Optional[_Union[CaptureArea, _Mapping]] = ..., + ) -> None: ... class PollEventParameters_ActionFinished(_message.Message): __slots__ = ("actionID",) @@ -204,7 +256,12 @@ class PollEventParameters(_message.Message): __slots__ = ("actionFinished",) ACTIONFINISHED_FIELD_NUMBER: _ClassVar[int] actionFinished: PollEventParameters_ActionFinished - def __init__(self, actionFinished: _Optional[_Union[PollEventParameters_ActionFinished, _Mapping]] = ...) -> None: ... + def __init__( + self, + actionFinished: _Optional[ + _Union[PollEventParameters_ActionFinished, _Mapping] + ] = ..., + ) -> None: ... class ActionParameters_Wait(_message.Message): __slots__ = ("milliseconds",) @@ -216,13 +273,17 @@ class ActionParameters_MouseButton_Press(_message.Message): __slots__ = ("mouseButton",) MOUSEBUTTON_FIELD_NUMBER: _ClassVar[int] mouseButton: MouseButton - def __init__(self, mouseButton: _Optional[_Union[MouseButton, str]] = ...) -> None: ... + def __init__( + self, mouseButton: _Optional[_Union[MouseButton, str]] = ... + ) -> None: ... class ActionParameters_MouseButton_Release(_message.Message): __slots__ = ("mouseButton",) MOUSEBUTTON_FIELD_NUMBER: _ClassVar[int] mouseButton: MouseButton - def __init__(self, mouseButton: _Optional[_Union[MouseButton, str]] = ...) -> None: ... + def __init__( + self, mouseButton: _Optional[_Union[MouseButton, str]] = ... + ) -> None: ... class ActionParameters_MouseButton_PressAndRelease(_message.Message): __slots__ = ("mouseButton", "count") @@ -230,7 +291,11 @@ class ActionParameters_MouseButton_PressAndRelease(_message.Message): COUNT_FIELD_NUMBER: _ClassVar[int] mouseButton: MouseButton count: int - def __init__(self, mouseButton: _Optional[_Union[MouseButton, str]] = ..., count: _Optional[int] = ...) -> None: ... + def __init__( + self, + mouseButton: _Optional[_Union[MouseButton, str]] = ..., + count: _Optional[int] = ..., + ) -> None: ... class ActionParameters_MouseWheelScroll(_message.Message): __slots__ = ("direction", "deltaType", "delta", "milliseconds") @@ -242,7 +307,13 @@ class ActionParameters_MouseWheelScroll(_message.Message): deltaType: MouseWheelDeltaType delta: int milliseconds: int - def __init__(self, direction: _Optional[_Union[MouseWheelScrollDirection, str]] = ..., deltaType: _Optional[_Union[MouseWheelDeltaType, str]] = ..., delta: _Optional[int] = ..., milliseconds: _Optional[int] = ...) -> None: ... + def __init__( + self, + direction: _Optional[_Union[MouseWheelScrollDirection, str]] = ..., + deltaType: _Optional[_Union[MouseWheelDeltaType, str]] = ..., + delta: _Optional[int] = ..., + milliseconds: _Optional[int] = ..., + ) -> None: ... class ActionParameters_MouseMove(_message.Message): __slots__ = ("position", "milliseconds") @@ -250,7 +321,11 @@ class ActionParameters_MouseMove(_message.Message): MILLISECONDS_FIELD_NUMBER: _ClassVar[int] position: Coordinate2 milliseconds: int - def __init__(self, position: _Optional[_Union[Coordinate2, _Mapping]] = ..., milliseconds: _Optional[int] = ...) -> None: ... + def __init__( + self, + position: _Optional[_Union[Coordinate2, _Mapping]] = ..., + milliseconds: _Optional[int] = ..., + ) -> None: ... class ActionParameters_MouseMove_Delta(_message.Message): __slots__ = ("delta", "milliseconds") @@ -258,7 +333,11 @@ class ActionParameters_MouseMove_Delta(_message.Message): MILLISECONDS_FIELD_NUMBER: _ClassVar[int] delta: Delta2 milliseconds: int - def __init__(self, delta: _Optional[_Union[Delta2, _Mapping]] = ..., milliseconds: _Optional[int] = ...) -> None: ... + def __init__( + self, + delta: _Optional[_Union[Delta2, _Mapping]] = ..., + milliseconds: _Optional[int] = ..., + ) -> None: ... class ActionParameters_KeyboardKey_Press(_message.Message): __slots__ = ("keyName", "modifierKeyNames") @@ -266,7 +345,11 @@ class ActionParameters_KeyboardKey_Press(_message.Message): MODIFIERKEYNAMES_FIELD_NUMBER: _ClassVar[int] keyName: str modifierKeyNames: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, keyName: _Optional[str] = ..., modifierKeyNames: _Optional[_Iterable[str]] = ...) -> None: ... + def __init__( + self, + keyName: _Optional[str] = ..., + modifierKeyNames: _Optional[_Iterable[str]] = ..., + ) -> None: ... class ActionParameters_KeyboardKey_Release(_message.Message): __slots__ = ("keyName", "modifierKeyNames") @@ -274,7 +357,11 @@ class ActionParameters_KeyboardKey_Release(_message.Message): MODIFIERKEYNAMES_FIELD_NUMBER: _ClassVar[int] keyName: str modifierKeyNames: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, keyName: _Optional[str] = ..., modifierKeyNames: _Optional[_Iterable[str]] = ...) -> None: ... + def __init__( + self, + keyName: _Optional[str] = ..., + modifierKeyNames: _Optional[_Iterable[str]] = ..., + ) -> None: ... class ActionParameters_KeyboardKey_PressAndRelease(_message.Message): __slots__ = ("keyName", "modifierKeyNames") @@ -282,7 +369,11 @@ class ActionParameters_KeyboardKey_PressAndRelease(_message.Message): MODIFIERKEYNAMES_FIELD_NUMBER: _ClassVar[int] keyName: str modifierKeyNames: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, keyName: _Optional[str] = ..., modifierKeyNames: _Optional[_Iterable[str]] = ...) -> None: ... + def __init__( + self, + keyName: _Optional[str] = ..., + modifierKeyNames: _Optional[_Iterable[str]] = ..., + ) -> None: ... class ActionParameters_KeyboardKeys_Press(_message.Message): __slots__ = ("keyNames", "modifierKeyNames") @@ -290,7 +381,11 @@ class ActionParameters_KeyboardKeys_Press(_message.Message): MODIFIERKEYNAMES_FIELD_NUMBER: _ClassVar[int] keyNames: _containers.RepeatedScalarFieldContainer[str] modifierKeyNames: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, keyNames: _Optional[_Iterable[str]] = ..., modifierKeyNames: _Optional[_Iterable[str]] = ...) -> None: ... + def __init__( + self, + keyNames: _Optional[_Iterable[str]] = ..., + modifierKeyNames: _Optional[_Iterable[str]] = ..., + ) -> None: ... class ActionParameters_KeyboardKeys_Release(_message.Message): __slots__ = ("keyNames", "modifierKeyNames") @@ -298,7 +393,11 @@ class ActionParameters_KeyboardKeys_Release(_message.Message): MODIFIERKEYNAMES_FIELD_NUMBER: _ClassVar[int] keyNames: _containers.RepeatedScalarFieldContainer[str] modifierKeyNames: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, keyNames: _Optional[_Iterable[str]] = ..., modifierKeyNames: _Optional[_Iterable[str]] = ...) -> None: ... + def __init__( + self, + keyNames: _Optional[_Iterable[str]] = ..., + modifierKeyNames: _Optional[_Iterable[str]] = ..., + ) -> None: ... class ActionParameters_KeyboardKeys_PressAndRelease(_message.Message): __slots__ = ("keyNames", "modifierKeyNames") @@ -306,7 +405,11 @@ class ActionParameters_KeyboardKeys_PressAndRelease(_message.Message): MODIFIERKEYNAMES_FIELD_NUMBER: _ClassVar[int] keyNames: _containers.RepeatedScalarFieldContainer[str] modifierKeyNames: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, keyNames: _Optional[_Iterable[str]] = ..., modifierKeyNames: _Optional[_Iterable[str]] = ...) -> None: ... + def __init__( + self, + keyNames: _Optional[_Iterable[str]] = ..., + modifierKeyNames: _Optional[_Iterable[str]] = ..., + ) -> None: ... class ActionParameters_KeyboardType_Text(_message.Message): __slots__ = ("text", "typingSpeedValue", "typingSpeed") @@ -316,7 +419,12 @@ class ActionParameters_KeyboardType_Text(_message.Message): text: str typingSpeedValue: TypingSpeedValue typingSpeed: int - def __init__(self, text: _Optional[str] = ..., typingSpeedValue: _Optional[_Union[TypingSpeedValue, str]] = ..., typingSpeed: _Optional[int] = ...) -> None: ... + def __init__( + self, + text: _Optional[str] = ..., + typingSpeedValue: _Optional[_Union[TypingSpeedValue, str]] = ..., + typingSpeed: _Optional[int] = ..., + ) -> None: ... class ActionParameters_KeyboardType_UnicodeText(_message.Message): __slots__ = ("text", "typingSpeedValue", "typingSpeed") @@ -326,7 +434,12 @@ class ActionParameters_KeyboardType_UnicodeText(_message.Message): text: bytes typingSpeedValue: TypingSpeedValue typingSpeed: int - def __init__(self, text: _Optional[bytes] = ..., typingSpeedValue: _Optional[_Union[TypingSpeedValue, str]] = ..., typingSpeed: _Optional[int] = ...) -> None: ... + def __init__( + self, + text: _Optional[bytes] = ..., + typingSpeedValue: _Optional[_Union[TypingSpeedValue, str]] = ..., + typingSpeed: _Optional[int] = ..., + ) -> None: ... class ActionParameters_RunCommand(_message.Message): __slots__ = ("command", "timeoutInMilliseconds") @@ -334,10 +447,30 @@ class ActionParameters_RunCommand(_message.Message): TIMEOUTINMILLISECONDS_FIELD_NUMBER: _ClassVar[int] command: str timeoutInMilliseconds: int - def __init__(self, command: _Optional[str] = ..., timeoutInMilliseconds: _Optional[int] = ...) -> None: ... + def __init__( + self, command: _Optional[str] = ..., timeoutInMilliseconds: _Optional[int] = ... + ) -> None: ... class ActionParameters(_message.Message): - __slots__ = ("none", "wait", "mouseButtonPress", "mouseButtonRelease", "mouseButtonPressAndRelease", "mouseWheelScroll", "mouseMove", "mouseMoveDelta", "keyboardKeyPress", "keyboardKeyRelease", "keyboardKeyPressAndRelease", "keyboardKeysPress", "keyboardKeysRelease", "keyboardKeysPressAndRelease", "keyboardTypeText", "keyboardTypeUnicodeText", "runcommand") + __slots__ = ( + "none", + "wait", + "mouseButtonPress", + "mouseButtonRelease", + "mouseButtonPressAndRelease", + "mouseWheelScroll", + "mouseMove", + "mouseMoveDelta", + "keyboardKeyPress", + "keyboardKeyRelease", + "keyboardKeyPressAndRelease", + "keyboardKeysPress", + "keyboardKeysRelease", + "keyboardKeysPressAndRelease", + "keyboardTypeText", + "keyboardTypeUnicodeText", + "runcommand", + ) NONE_FIELD_NUMBER: _ClassVar[int] WAIT_FIELD_NUMBER: _ClassVar[int] MOUSEBUTTONPRESS_FIELD_NUMBER: _ClassVar[int] @@ -372,7 +505,52 @@ class ActionParameters(_message.Message): keyboardTypeText: ActionParameters_KeyboardType_Text keyboardTypeUnicodeText: ActionParameters_KeyboardType_UnicodeText runcommand: ActionParameters_RunCommand - def __init__(self, none: _Optional[_Union[Void, _Mapping]] = ..., wait: _Optional[_Union[ActionParameters_Wait, _Mapping]] = ..., mouseButtonPress: _Optional[_Union[ActionParameters_MouseButton_Press, _Mapping]] = ..., mouseButtonRelease: _Optional[_Union[ActionParameters_MouseButton_Release, _Mapping]] = ..., mouseButtonPressAndRelease: _Optional[_Union[ActionParameters_MouseButton_PressAndRelease, _Mapping]] = ..., mouseWheelScroll: _Optional[_Union[ActionParameters_MouseWheelScroll, _Mapping]] = ..., mouseMove: _Optional[_Union[ActionParameters_MouseMove, _Mapping]] = ..., mouseMoveDelta: _Optional[_Union[ActionParameters_MouseMove_Delta, _Mapping]] = ..., keyboardKeyPress: _Optional[_Union[ActionParameters_KeyboardKey_Press, _Mapping]] = ..., keyboardKeyRelease: _Optional[_Union[ActionParameters_KeyboardKey_Release, _Mapping]] = ..., keyboardKeyPressAndRelease: _Optional[_Union[ActionParameters_KeyboardKey_PressAndRelease, _Mapping]] = ..., keyboardKeysPress: _Optional[_Union[ActionParameters_KeyboardKeys_Press, _Mapping]] = ..., keyboardKeysRelease: _Optional[_Union[ActionParameters_KeyboardKeys_Release, _Mapping]] = ..., keyboardKeysPressAndRelease: _Optional[_Union[ActionParameters_KeyboardKeys_PressAndRelease, _Mapping]] = ..., keyboardTypeText: _Optional[_Union[ActionParameters_KeyboardType_Text, _Mapping]] = ..., keyboardTypeUnicodeText: _Optional[_Union[ActionParameters_KeyboardType_UnicodeText, _Mapping]] = ..., runcommand: _Optional[_Union[ActionParameters_RunCommand, _Mapping]] = ...) -> None: ... + def __init__( + self, + none: _Optional[_Union[Void, _Mapping]] = ..., + wait: _Optional[_Union[ActionParameters_Wait, _Mapping]] = ..., + mouseButtonPress: _Optional[ + _Union[ActionParameters_MouseButton_Press, _Mapping] + ] = ..., + mouseButtonRelease: _Optional[ + _Union[ActionParameters_MouseButton_Release, _Mapping] + ] = ..., + mouseButtonPressAndRelease: _Optional[ + _Union[ActionParameters_MouseButton_PressAndRelease, _Mapping] + ] = ..., + mouseWheelScroll: _Optional[ + _Union[ActionParameters_MouseWheelScroll, _Mapping] + ] = ..., + mouseMove: _Optional[_Union[ActionParameters_MouseMove, _Mapping]] = ..., + mouseMoveDelta: _Optional[ + _Union[ActionParameters_MouseMove_Delta, _Mapping] + ] = ..., + keyboardKeyPress: _Optional[ + _Union[ActionParameters_KeyboardKey_Press, _Mapping] + ] = ..., + keyboardKeyRelease: _Optional[ + _Union[ActionParameters_KeyboardKey_Release, _Mapping] + ] = ..., + keyboardKeyPressAndRelease: _Optional[ + _Union[ActionParameters_KeyboardKey_PressAndRelease, _Mapping] + ] = ..., + keyboardKeysPress: _Optional[ + _Union[ActionParameters_KeyboardKeys_Press, _Mapping] + ] = ..., + keyboardKeysRelease: _Optional[ + _Union[ActionParameters_KeyboardKeys_Release, _Mapping] + ] = ..., + keyboardKeysPressAndRelease: _Optional[ + _Union[ActionParameters_KeyboardKeys_PressAndRelease, _Mapping] + ] = ..., + keyboardTypeText: _Optional[ + _Union[ActionParameters_KeyboardType_Text, _Mapping] + ] = ..., + keyboardTypeUnicodeText: _Optional[ + _Union[ActionParameters_KeyboardType_UnicodeText, _Mapping] + ] = ..., + runcommand: _Optional[_Union[ActionParameters_RunCommand, _Mapping]] = ..., + ) -> None: ... class Request_StartSession(_message.Message): __slots__ = ("sessionGUID", "immediateExecution") @@ -380,19 +558,25 @@ class Request_StartSession(_message.Message): IMMEDIATEEXECUTION_FIELD_NUMBER: _ClassVar[int] sessionGUID: str immediateExecution: bool - def __init__(self, sessionGUID: _Optional[str] = ..., immediateExecution: bool = ...) -> None: ... + def __init__( + self, sessionGUID: _Optional[str] = ..., immediateExecution: bool = ... + ) -> None: ... class Response_StartSession(_message.Message): __slots__ = ("sessionInfo",) SESSIONINFO_FIELD_NUMBER: _ClassVar[int] sessionInfo: SessionInfo - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ...) -> None: ... + def __init__( + self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ... + ) -> None: ... class Request_EndSession(_message.Message): __slots__ = ("sessionInfo",) SESSIONINFO_FIELD_NUMBER: _ClassVar[int] sessionInfo: SessionInfo - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ...) -> None: ... + def __init__( + self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ... + ) -> None: ... class Request_Poll(_message.Message): __slots__ = ("sessionInfo", "pollEventID") @@ -400,19 +584,27 @@ class Request_Poll(_message.Message): POLLEVENTID_FIELD_NUMBER: _ClassVar[int] sessionInfo: SessionInfo pollEventID: PollEventID - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., pollEventID: _Optional[_Union[PollEventID, str]] = ...) -> None: ... + def __init__( + self, + sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., + pollEventID: _Optional[_Union[PollEventID, str]] = ..., + ) -> None: ... class Request_StartExecution(_message.Message): __slots__ = ("sessionInfo",) SESSIONINFO_FIELD_NUMBER: _ClassVar[int] sessionInfo: SessionInfo - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ...) -> None: ... + def __init__( + self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ... + ) -> None: ... class Request_StopExecution(_message.Message): __slots__ = ("sessionInfo",) SESSIONINFO_FIELD_NUMBER: _ClassVar[int] sessionInfo: SessionInfo - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ...) -> None: ... + def __init__( + self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ... + ) -> None: ... class Response_Poll(_message.Message): __slots__ = ("pollEventID", "pollEventParameters") @@ -420,7 +612,11 @@ class Response_Poll(_message.Message): POLLEVENTPARAMETERS_FIELD_NUMBER: _ClassVar[int] pollEventID: PollEventID pollEventParameters: PollEventParameters - def __init__(self, pollEventID: _Optional[_Union[PollEventID, str]] = ..., pollEventParameters: _Optional[_Union[PollEventParameters, _Mapping]] = ...) -> None: ... + def __init__( + self, + pollEventID: _Optional[_Union[PollEventID, str]] = ..., + pollEventParameters: _Optional[_Union[PollEventParameters, _Mapping]] = ..., + ) -> None: ... class Request_RunRecordedAction(_message.Message): __slots__ = ("sessionInfo", "actionClassID", "actionParameters") @@ -430,7 +626,12 @@ class Request_RunRecordedAction(_message.Message): sessionInfo: SessionInfo actionClassID: ActionClassID actionParameters: ActionParameters - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., actionClassID: _Optional[_Union[ActionClassID, str]] = ..., actionParameters: _Optional[_Union[ActionParameters, _Mapping]] = ...) -> None: ... + def __init__( + self, + sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., + actionClassID: _Optional[_Union[ActionClassID, str]] = ..., + actionParameters: _Optional[_Union[ActionParameters, _Mapping]] = ..., + ) -> None: ... class Response_RunRecordedAction(_message.Message): __slots__ = ("actionID", "requiredMilliseconds") @@ -438,7 +639,9 @@ class Response_RunRecordedAction(_message.Message): REQUIREDMILLISECONDS_FIELD_NUMBER: _ClassVar[int] actionID: int requiredMilliseconds: int - def __init__(self, actionID: _Optional[int] = ..., requiredMilliseconds: _Optional[int] = ...) -> None: ... + def __init__( + self, actionID: _Optional[int] = ..., requiredMilliseconds: _Optional[int] = ... + ) -> None: ... class Request_ScheduleBatchedAction(_message.Message): __slots__ = ("sessionInfo", "actionClassID", "actionParameters") @@ -448,7 +651,12 @@ class Request_ScheduleBatchedAction(_message.Message): sessionInfo: SessionInfo actionClassID: ActionClassID actionParameters: ActionParameters - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., actionClassID: _Optional[_Union[ActionClassID, str]] = ..., actionParameters: _Optional[_Union[ActionParameters, _Mapping]] = ...) -> None: ... + def __init__( + self, + sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., + actionClassID: _Optional[_Union[ActionClassID, str]] = ..., + actionParameters: _Optional[_Union[ActionParameters, _Mapping]] = ..., + ) -> None: ... class Response_ScheduleBatchedAction(_message.Message): __slots__ = ("actionID",) @@ -460,7 +668,9 @@ class Request_GetActionCount(_message.Message): __slots__ = ("sessionInfo",) SESSIONINFO_FIELD_NUMBER: _ClassVar[int] sessionInfo: SessionInfo - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ...) -> None: ... + def __init__( + self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ... + ) -> None: ... class Response_GetActionCount(_message.Message): __slots__ = ("actionCount",) @@ -474,7 +684,11 @@ class Request_GetAction(_message.Message): ACTIONINDEX_FIELD_NUMBER: _ClassVar[int] sessionInfo: SessionInfo actionIndex: int - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., actionIndex: _Optional[int] = ...) -> None: ... + def __init__( + self, + sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., + actionIndex: _Optional[int] = ..., + ) -> None: ... class Response_GetAction(_message.Message): __slots__ = ("actionID", "actionClassID", "actionParameters") @@ -484,7 +698,12 @@ class Response_GetAction(_message.Message): actionID: int actionClassID: ActionClassID actionParameters: ActionParameters - def __init__(self, actionID: _Optional[int] = ..., actionClassID: _Optional[_Union[ActionClassID, str]] = ..., actionParameters: _Optional[_Union[ActionParameters, _Mapping]] = ...) -> None: ... + def __init__( + self, + actionID: _Optional[int] = ..., + actionClassID: _Optional[_Union[ActionClassID, str]] = ..., + actionParameters: _Optional[_Union[ActionParameters, _Mapping]] = ..., + ) -> None: ... class Request_RemoveAction(_message.Message): __slots__ = ("sessionInfo", "actionID") @@ -492,25 +711,35 @@ class Request_RemoveAction(_message.Message): ACTIONID_FIELD_NUMBER: _ClassVar[int] sessionInfo: SessionInfo actionID: int - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., actionID: _Optional[int] = ...) -> None: ... + def __init__( + self, + sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., + actionID: _Optional[int] = ..., + ) -> None: ... class Request_RemoveAllActions(_message.Message): __slots__ = ("sessionInfo",) SESSIONINFO_FIELD_NUMBER: _ClassVar[int] sessionInfo: SessionInfo - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ...) -> None: ... + def __init__( + self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ... + ) -> None: ... class Request_StartBatchRun(_message.Message): __slots__ = ("sessionInfo",) SESSIONINFO_FIELD_NUMBER: _ClassVar[int] sessionInfo: SessionInfo - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ...) -> None: ... + def __init__( + self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ... + ) -> None: ... class Request_StopBatchRun(_message.Message): __slots__ = ("sessionInfo",) SESSIONINFO_FIELD_NUMBER: _ClassVar[int] sessionInfo: SessionInfo - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ...) -> None: ... + def __init__( + self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ... + ) -> None: ... class Request_CaptureScreen(_message.Message): __slots__ = ("sessionInfo", "captureParameters") @@ -518,7 +747,11 @@ class Request_CaptureScreen(_message.Message): CAPTUREPARAMETERS_FIELD_NUMBER: _ClassVar[int] sessionInfo: SessionInfo captureParameters: CaptureParameters - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., captureParameters: _Optional[_Union[CaptureParameters, _Mapping]] = ...) -> None: ... + def __init__( + self, + sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., + captureParameters: _Optional[_Union[CaptureParameters, _Mapping]] = ..., + ) -> None: ... class Response_CaptureScreen(_message.Message): __slots__ = ("bitmap",) @@ -533,7 +766,12 @@ class Response_GetContinuousCapturedScreen(_message.Message): def __init__(self, bitmap: _Optional[_Union[Bitmap, _Mapping]] = ...) -> None: ... class Reuqest_SetTestConfiguration(_message.Message): - __slots__ = ("sessionInfo", "defaultCaptureParameters", "mouseDelayInMilliseconds", "keyboardDelayInMilliseconds") + __slots__ = ( + "sessionInfo", + "defaultCaptureParameters", + "mouseDelayInMilliseconds", + "keyboardDelayInMilliseconds", + ) SESSIONINFO_FIELD_NUMBER: _ClassVar[int] DEFAULTCAPTUREPARAMETERS_FIELD_NUMBER: _ClassVar[int] MOUSEDELAYINMILLISECONDS_FIELD_NUMBER: _ClassVar[int] @@ -542,7 +780,13 @@ class Reuqest_SetTestConfiguration(_message.Message): defaultCaptureParameters: CaptureParameters mouseDelayInMilliseconds: int keyboardDelayInMilliseconds: int - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., defaultCaptureParameters: _Optional[_Union[CaptureParameters, _Mapping]] = ..., mouseDelayInMilliseconds: _Optional[int] = ..., keyboardDelayInMilliseconds: _Optional[int] = ...) -> None: ... + def __init__( + self, + sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., + defaultCaptureParameters: _Optional[_Union[CaptureParameters, _Mapping]] = ..., + mouseDelayInMilliseconds: _Optional[int] = ..., + keyboardDelayInMilliseconds: _Optional[int] = ..., + ) -> None: ... class Request_SetMouseDelay(_message.Message): __slots__ = ("sessionInfo", "delayInMilliseconds") @@ -550,7 +794,11 @@ class Request_SetMouseDelay(_message.Message): DELAYINMILLISECONDS_FIELD_NUMBER: _ClassVar[int] sessionInfo: SessionInfo delayInMilliseconds: int - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., delayInMilliseconds: _Optional[int] = ...) -> None: ... + def __init__( + self, + sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., + delayInMilliseconds: _Optional[int] = ..., + ) -> None: ... class Request_SetKeyboardDelay(_message.Message): __slots__ = ("sessionInfo", "delayInMilliseconds") @@ -558,7 +806,11 @@ class Request_SetKeyboardDelay(_message.Message): DELAYINMILLISECONDS_FIELD_NUMBER: _ClassVar[int] sessionInfo: SessionInfo delayInMilliseconds: int - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., delayInMilliseconds: _Optional[int] = ...) -> None: ... + def __init__( + self, + sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., + delayInMilliseconds: _Optional[int] = ..., + ) -> None: ... class DisplayInformation(_message.Message): __slots__ = ("displayID", "name", "sizeInPixels", "virtualScreenRectangle") @@ -570,7 +822,13 @@ class DisplayInformation(_message.Message): name: str sizeInPixels: Size2 virtualScreenRectangle: Rectangle - def __init__(self, displayID: _Optional[int] = ..., name: _Optional[str] = ..., sizeInPixels: _Optional[_Union[Size2, _Mapping]] = ..., virtualScreenRectangle: _Optional[_Union[Rectangle, _Mapping]] = ...) -> None: ... + def __init__( + self, + displayID: _Optional[int] = ..., + name: _Optional[str] = ..., + sizeInPixels: _Optional[_Union[Size2, _Mapping]] = ..., + virtualScreenRectangle: _Optional[_Union[Rectangle, _Mapping]] = ..., + ) -> None: ... class Response_GetDisplayInformation(_message.Message): __slots__ = ("displays", "virtualScreenRectangle") @@ -578,7 +836,11 @@ class Response_GetDisplayInformation(_message.Message): VIRTUALSCREENRECTANGLE_FIELD_NUMBER: _ClassVar[int] displays: _containers.RepeatedCompositeFieldContainer[DisplayInformation] virtualScreenRectangle: Rectangle - def __init__(self, displays: _Optional[_Iterable[_Union[DisplayInformation, _Mapping]]] = ..., virtualScreenRectangle: _Optional[_Union[Rectangle, _Mapping]] = ...) -> None: ... + def __init__( + self, + displays: _Optional[_Iterable[_Union[DisplayInformation, _Mapping]]] = ..., + virtualScreenRectangle: _Optional[_Union[Rectangle, _Mapping]] = ..., + ) -> None: ... class Response_GetMousePosition(_message.Message): __slots__ = ("x", "y") @@ -588,12 +850,113 @@ class Response_GetMousePosition(_message.Message): y: int def __init__(self, x: _Optional[int] = ..., y: _Optional[int] = ...) -> None: ... +class ProcessInfoExtended(_message.Message): + __slots__ = ("hasWindow",) + HASWINDOW_FIELD_NUMBER: _ClassVar[int] + hasWindow: bool + def __init__(self, hasWindow: bool = ...) -> None: ... + +class ProcessInfo(_message.Message): + __slots__ = ("ID", "name", "extendedInfo") + ID_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + EXTENDEDINFO_FIELD_NUMBER: _ClassVar[int] + ID: int + name: str + extendedInfo: ProcessInfoExtended + def __init__( + self, + ID: _Optional[int] = ..., + name: _Optional[str] = ..., + extendedInfo: _Optional[_Union[ProcessInfoExtended, _Mapping]] = ..., + ) -> None: ... + +class Request_GetProcessList(_message.Message): + __slots__ = ("getExtendedInfo",) + GETEXTENDEDINFO_FIELD_NUMBER: _ClassVar[int] + getExtendedInfo: bool + def __init__(self, getExtendedInfo: bool = ...) -> None: ... + +class Response_GetProcessList(_message.Message): + __slots__ = ("processes",) + PROCESSES_FIELD_NUMBER: _ClassVar[int] + processes: _containers.RepeatedCompositeFieldContainer[ProcessInfo] + def __init__( + self, processes: _Optional[_Iterable[_Union[ProcessInfo, _Mapping]]] = ... + ) -> None: ... + +class Request_GetWindowList(_message.Message): + __slots__ = ("processID",) + PROCESSID_FIELD_NUMBER: _ClassVar[int] + processID: int + def __init__(self, processID: _Optional[int] = ...) -> None: ... + +class WindowInfo(_message.Message): + __slots__ = ("ID", "name") + ID_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + ID: int + name: str + def __init__( + self, ID: _Optional[int] = ..., name: _Optional[str] = ... + ) -> None: ... + +class Response_GetWindowList(_message.Message): + __slots__ = ("windows",) + WINDOWS_FIELD_NUMBER: _ClassVar[int] + windows: _containers.RepeatedCompositeFieldContainer[WindowInfo] + def __init__( + self, windows: _Optional[_Iterable[_Union[WindowInfo, _Mapping]]] = ... + ) -> None: ... + class Request_SetActiveDisplay(_message.Message): __slots__ = ("displayID",) DISPLAYID_FIELD_NUMBER: _ClassVar[int] displayID: int def __init__(self, displayID: _Optional[int] = ...) -> None: ... +class Request_SetActiveWindow(_message.Message): + __slots__ = ("processID", "windowID") + PROCESSID_FIELD_NUMBER: _ClassVar[int] + WINDOWID_FIELD_NUMBER: _ClassVar[int] + processID: int + windowID: int + def __init__( + self, processID: _Optional[int] = ..., windowID: _Optional[int] = ... + ) -> None: ... + +class AutomationTarget(_message.Message): + __slots__ = ("ID", "type", "name", "active") + ID_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + NAME_FIELD_NUMBER: _ClassVar[int] + ACTIVE_FIELD_NUMBER: _ClassVar[int] + ID: int + type: AutomationTargetType + name: str + active: bool + def __init__( + self, + ID: _Optional[int] = ..., + type: _Optional[_Union[AutomationTargetType, str]] = ..., + name: _Optional[str] = ..., + active: bool = ..., + ) -> None: ... + +class Response_GetAutomationTargetList(_message.Message): + __slots__ = ("targets",) + TARGETS_FIELD_NUMBER: _ClassVar[int] + targets: _containers.RepeatedCompositeFieldContainer[AutomationTarget] + def __init__( + self, targets: _Optional[_Iterable[_Union[AutomationTarget, _Mapping]]] = ... + ) -> None: ... + +class Request_SetActiveAutomationTarget(_message.Message): + __slots__ = ("ID",) + ID_FIELD_NUMBER: _ClassVar[int] + ID: int + def __init__(self, ID: _Optional[int] = ...) -> None: ... + class Request_GetColor(_message.Message): __slots__ = ("x", "y", "bitmap") X_FIELD_NUMBER: _ClassVar[int] @@ -602,7 +965,12 @@ class Request_GetColor(_message.Message): x: int y: int bitmap: Bitmap - def __init__(self, x: _Optional[int] = ..., y: _Optional[int] = ..., bitmap: _Optional[_Union[Bitmap, _Mapping]] = ...) -> None: ... + def __init__( + self, + x: _Optional[int] = ..., + y: _Optional[int] = ..., + bitmap: _Optional[_Union[Bitmap, _Mapping]] = ..., + ) -> None: ... class Response_GetColor(_message.Message): __slots__ = ("color",) @@ -632,4 +1000,9 @@ class Request_SetDisplayLabel(_message.Message): sessionInfo: SessionInfo displayID: int label: str - def __init__(self, sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., displayID: _Optional[int] = ..., label: _Optional[str] = ...) -> None: ... + def __init__( + self, + sessionInfo: _Optional[_Union[SessionInfo, _Mapping]] = ..., + displayID: _Optional[int] = ..., + label: _Optional[str] = ..., + ) -> None: ... diff --git a/src/askui/tools/askui/askui_ui_controller_grpc/Controller_V1_pb2_grpc.py b/src/askui/tools/askui/askui_ui_controller_grpc/Controller_V1_pb2_grpc.py index f7ef8d00..d7bf2e87 100644 --- a/src/askui/tools/askui/askui_ui_controller_grpc/Controller_V1_pb2_grpc.py +++ b/src/askui/tools/askui/askui_ui_controller_grpc/Controller_V1_pb2_grpc.py @@ -1,32 +1,31 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" -import grpc import warnings +import grpc + import askui.tools.askui.askui_ui_controller_grpc.Controller_V1_pb2 as Controller__V1__pb2 -GRPC_GENERATED_VERSION = '1.64.1' +GRPC_GENERATED_VERSION = "1.68.0" GRPC_VERSION = grpc.__version__ -EXPECTED_ERROR_RELEASE = '1.65.0' -SCHEDULED_RELEASE_DATE = 'June 25, 2024' _version_not_supported = False try: from grpc._utilities import first_version_is_lower - _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) + + _version_not_supported = first_version_is_lower( + GRPC_VERSION, GRPC_GENERATED_VERSION + ) except ImportError: _version_not_supported = True if _version_not_supported: - warnings.warn( - f'The grpc package installed is at version {GRPC_VERSION},' - + f' but the generated code in Controller_V1_pb2_grpc.py depends on' - + f' grpcio>={GRPC_GENERATED_VERSION}.' - + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' - + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - + f' This warning will become an error in {EXPECTED_ERROR_RELEASE},' - + f' scheduled for release on {SCHEDULED_RELEASE_DATE}.', - RuntimeWarning + raise RuntimeError( + f"The grpc package installed is at version {GRPC_VERSION}," + + f" but the generated code in Controller_V1_pb2_grpc.py depends on" + + f" grpcio>={GRPC_GENERATED_VERSION}." + + f" Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}" + + f" or downgrade your generated code using grpcio-tools<={GRPC_VERSION}." ) @@ -40,419 +39,520 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.StartSession = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/StartSession', - request_serializer=Controller__V1__pb2.Request_StartSession.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_StartSession.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/StartSession", + request_serializer=Controller__V1__pb2.Request_StartSession.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_StartSession.FromString, + _registered_method=True, + ) self.EndSession = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/EndSession', - request_serializer=Controller__V1__pb2.Request_EndSession.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_Void.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/EndSession", + request_serializer=Controller__V1__pb2.Request_EndSession.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_Void.FromString, + _registered_method=True, + ) self.Poll = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/Poll', - request_serializer=Controller__V1__pb2.Request_Poll.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_Poll.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/Poll", + request_serializer=Controller__V1__pb2.Request_Poll.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_Poll.FromString, + _registered_method=True, + ) self.StartExecution = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/StartExecution', - request_serializer=Controller__V1__pb2.Request_StartExecution.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_Void.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/StartExecution", + request_serializer=Controller__V1__pb2.Request_StartExecution.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_Void.FromString, + _registered_method=True, + ) self.StopExecution = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/StopExecution', - request_serializer=Controller__V1__pb2.Request_StopExecution.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_Void.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/StopExecution", + request_serializer=Controller__V1__pb2.Request_StopExecution.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_Void.FromString, + _registered_method=True, + ) self.RunRecordedAction = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/RunRecordedAction', - request_serializer=Controller__V1__pb2.Request_RunRecordedAction.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_RunRecordedAction.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/RunRecordedAction", + request_serializer=Controller__V1__pb2.Request_RunRecordedAction.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_RunRecordedAction.FromString, + _registered_method=True, + ) self.ScheduleBatchedAction = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/ScheduleBatchedAction', - request_serializer=Controller__V1__pb2.Request_ScheduleBatchedAction.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_ScheduleBatchedAction.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/ScheduleBatchedAction", + request_serializer=Controller__V1__pb2.Request_ScheduleBatchedAction.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_ScheduleBatchedAction.FromString, + _registered_method=True, + ) self.StartBatchRun = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/StartBatchRun', - request_serializer=Controller__V1__pb2.Request_StartBatchRun.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_Void.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/StartBatchRun", + request_serializer=Controller__V1__pb2.Request_StartBatchRun.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_Void.FromString, + _registered_method=True, + ) self.StopBatchRun = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/StopBatchRun', - request_serializer=Controller__V1__pb2.Request_StopBatchRun.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_Void.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/StopBatchRun", + request_serializer=Controller__V1__pb2.Request_StopBatchRun.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_Void.FromString, + _registered_method=True, + ) self.GetActionCount = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/GetActionCount', - request_serializer=Controller__V1__pb2.Request_GetActionCount.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_GetActionCount.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/GetActionCount", + request_serializer=Controller__V1__pb2.Request_GetActionCount.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_GetActionCount.FromString, + _registered_method=True, + ) self.GetAction = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/GetAction', - request_serializer=Controller__V1__pb2.Request_GetAction.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_GetAction.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/GetAction", + request_serializer=Controller__V1__pb2.Request_GetAction.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_GetAction.FromString, + _registered_method=True, + ) self.RemoveAction = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/RemoveAction', - request_serializer=Controller__V1__pb2.Request_RemoveAction.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_Void.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/RemoveAction", + request_serializer=Controller__V1__pb2.Request_RemoveAction.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_Void.FromString, + _registered_method=True, + ) self.RemoveAllActions = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/RemoveAllActions', - request_serializer=Controller__V1__pb2.Request_RemoveAllActions.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_Void.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/RemoveAllActions", + request_serializer=Controller__V1__pb2.Request_RemoveAllActions.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_Void.FromString, + _registered_method=True, + ) self.CaptureScreen = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/CaptureScreen', - request_serializer=Controller__V1__pb2.Request_CaptureScreen.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_CaptureScreen.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/CaptureScreen", + request_serializer=Controller__V1__pb2.Request_CaptureScreen.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_CaptureScreen.FromString, + _registered_method=True, + ) self.SetTestConfiguration = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/SetTestConfiguration', - request_serializer=Controller__V1__pb2.Reuqest_SetTestConfiguration.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_Void.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/SetTestConfiguration", + request_serializer=Controller__V1__pb2.Reuqest_SetTestConfiguration.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_Void.FromString, + _registered_method=True, + ) self.SetMouseDelay = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/SetMouseDelay', - request_serializer=Controller__V1__pb2.Request_SetMouseDelay.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_Void.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/SetMouseDelay", + request_serializer=Controller__V1__pb2.Request_SetMouseDelay.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_Void.FromString, + _registered_method=True, + ) self.SetKeyboardDelay = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/SetKeyboardDelay', - request_serializer=Controller__V1__pb2.Request_SetKeyboardDelay.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_Void.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/SetKeyboardDelay", + request_serializer=Controller__V1__pb2.Request_SetKeyboardDelay.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_Void.FromString, + _registered_method=True, + ) self.GetDisplayInformation = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/GetDisplayInformation', - request_serializer=Controller__V1__pb2.Request_Void.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_GetDisplayInformation.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/GetDisplayInformation", + request_serializer=Controller__V1__pb2.Request_Void.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_GetDisplayInformation.FromString, + _registered_method=True, + ) self.GetMousePosition = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/GetMousePosition', - request_serializer=Controller__V1__pb2.Request_Void.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_GetMousePosition.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/GetMousePosition", + request_serializer=Controller__V1__pb2.Request_Void.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_GetMousePosition.FromString, + _registered_method=True, + ) + self.GetProcessList = channel.unary_unary( + "/Askui.API.TDKv1.ControllerAPI/GetProcessList", + request_serializer=Controller__V1__pb2.Request_GetProcessList.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_GetProcessList.FromString, + _registered_method=True, + ) + self.GetWindowList = channel.unary_unary( + "/Askui.API.TDKv1.ControllerAPI/GetWindowList", + request_serializer=Controller__V1__pb2.Request_GetWindowList.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_GetWindowList.FromString, + _registered_method=True, + ) + self.GetAutomationTargetList = channel.unary_unary( + "/Askui.API.TDKv1.ControllerAPI/GetAutomationTargetList", + request_serializer=Controller__V1__pb2.Request_Void.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_GetAutomationTargetList.FromString, + _registered_method=True, + ) self.SetActiveDisplay = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/SetActiveDisplay', - request_serializer=Controller__V1__pb2.Request_SetActiveDisplay.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_Void.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/SetActiveDisplay", + request_serializer=Controller__V1__pb2.Request_SetActiveDisplay.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_Void.FromString, + _registered_method=True, + ) + self.SetActiveWindow = channel.unary_unary( + "/Askui.API.TDKv1.ControllerAPI/SetActiveWindow", + request_serializer=Controller__V1__pb2.Request_SetActiveWindow.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_Void.FromString, + _registered_method=True, + ) + self.SetActiveAutomationTarget = channel.unary_unary( + "/Askui.API.TDKv1.ControllerAPI/SetActiveAutomationTarget", + request_serializer=Controller__V1__pb2.Request_SetActiveAutomationTarget.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_Void.FromString, + _registered_method=True, + ) self.GetColor = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/GetColor', - request_serializer=Controller__V1__pb2.Request_GetColor.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_GetColor.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/GetColor", + request_serializer=Controller__V1__pb2.Request_GetColor.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_GetColor.FromString, + _registered_method=True, + ) self.GetPixelColor = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/GetPixelColor', - request_serializer=Controller__V1__pb2.Request_GetPixelColor.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_GetPixelColor.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/GetPixelColor", + request_serializer=Controller__V1__pb2.Request_GetPixelColor.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_GetPixelColor.FromString, + _registered_method=True, + ) self.SetDisplayLabel = channel.unary_unary( - '/Askui.API.TDKv1.ControllerAPI/SetDisplayLabel', - request_serializer=Controller__V1__pb2.Request_SetDisplayLabel.SerializeToString, - response_deserializer=Controller__V1__pb2.Response_Void.FromString, - _registered_method=True) + "/Askui.API.TDKv1.ControllerAPI/SetDisplayLabel", + request_serializer=Controller__V1__pb2.Request_SetDisplayLabel.SerializeToString, + response_deserializer=Controller__V1__pb2.Response_Void.FromString, + _registered_method=True, + ) class ControllerAPIServicer(object): """Missing associated documentation comment in .proto file.""" def StartSession(self, request, context): - """General - """ + """General""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def EndSession(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def Poll(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def StartExecution(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def StopExecution(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def RunRecordedAction(self, request, context): - """Run action and record it - """ + """Run action and record it""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def ScheduleBatchedAction(self, request, context): - """Schedule an action - """ + """Schedule an action""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def StartBatchRun(self, request, context): - """Start and stop batched execution - """ + """Start and stop batched execution""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def StopBatchRun(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def GetActionCount(self, request, context): - """Recorded or batched actions access - """ + """Recorded or batched actions access""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def GetAction(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def RemoveAction(self, request, context): - """Modify acvtions batch - """ + """Modify actions batch""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def RemoveAllActions(self, request, context): - """Clear all batched or recorded actions - """ + """Clear all batched or recorded actions""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def CaptureScreen(self, request, context): - """Capturing - """ + """Capturing""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def SetTestConfiguration(self, request, context): - """Configuration - """ + """Configuration""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def SetMouseDelay(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def SetKeyboardDelay(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def GetDisplayInformation(self, request, context): - """Device Information - """ + """Device Information""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def GetMousePosition(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def GetProcessList(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def GetWindowList(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def GetAutomationTargetList(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def SetActiveDisplay(self, request, context): - """Device Configuration - """ + """Device Configuration""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def SetActiveWindow(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + + def SetActiveAutomationTarget(self, request, context): + """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def GetColor(self, request, context): - """Deprecated Utilities - """ + """Deprecated Utilities""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def GetPixelColor(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def SetDisplayLabel(self, request, context): """Missing associated documentation comment in .proto file.""" context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") def add_ControllerAPIServicer_to_server(servicer, server): rpc_method_handlers = { - 'StartSession': grpc.unary_unary_rpc_method_handler( - servicer.StartSession, - request_deserializer=Controller__V1__pb2.Request_StartSession.FromString, - response_serializer=Controller__V1__pb2.Response_StartSession.SerializeToString, - ), - 'EndSession': grpc.unary_unary_rpc_method_handler( - servicer.EndSession, - request_deserializer=Controller__V1__pb2.Request_EndSession.FromString, - response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, - ), - 'Poll': grpc.unary_unary_rpc_method_handler( - servicer.Poll, - request_deserializer=Controller__V1__pb2.Request_Poll.FromString, - response_serializer=Controller__V1__pb2.Response_Poll.SerializeToString, - ), - 'StartExecution': grpc.unary_unary_rpc_method_handler( - servicer.StartExecution, - request_deserializer=Controller__V1__pb2.Request_StartExecution.FromString, - response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, - ), - 'StopExecution': grpc.unary_unary_rpc_method_handler( - servicer.StopExecution, - request_deserializer=Controller__V1__pb2.Request_StopExecution.FromString, - response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, - ), - 'RunRecordedAction': grpc.unary_unary_rpc_method_handler( - servicer.RunRecordedAction, - request_deserializer=Controller__V1__pb2.Request_RunRecordedAction.FromString, - response_serializer=Controller__V1__pb2.Response_RunRecordedAction.SerializeToString, - ), - 'ScheduleBatchedAction': grpc.unary_unary_rpc_method_handler( - servicer.ScheduleBatchedAction, - request_deserializer=Controller__V1__pb2.Request_ScheduleBatchedAction.FromString, - response_serializer=Controller__V1__pb2.Response_ScheduleBatchedAction.SerializeToString, - ), - 'StartBatchRun': grpc.unary_unary_rpc_method_handler( - servicer.StartBatchRun, - request_deserializer=Controller__V1__pb2.Request_StartBatchRun.FromString, - response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, - ), - 'StopBatchRun': grpc.unary_unary_rpc_method_handler( - servicer.StopBatchRun, - request_deserializer=Controller__V1__pb2.Request_StopBatchRun.FromString, - response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, - ), - 'GetActionCount': grpc.unary_unary_rpc_method_handler( - servicer.GetActionCount, - request_deserializer=Controller__V1__pb2.Request_GetActionCount.FromString, - response_serializer=Controller__V1__pb2.Response_GetActionCount.SerializeToString, - ), - 'GetAction': grpc.unary_unary_rpc_method_handler( - servicer.GetAction, - request_deserializer=Controller__V1__pb2.Request_GetAction.FromString, - response_serializer=Controller__V1__pb2.Response_GetAction.SerializeToString, - ), - 'RemoveAction': grpc.unary_unary_rpc_method_handler( - servicer.RemoveAction, - request_deserializer=Controller__V1__pb2.Request_RemoveAction.FromString, - response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, - ), - 'RemoveAllActions': grpc.unary_unary_rpc_method_handler( - servicer.RemoveAllActions, - request_deserializer=Controller__V1__pb2.Request_RemoveAllActions.FromString, - response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, - ), - 'CaptureScreen': grpc.unary_unary_rpc_method_handler( - servicer.CaptureScreen, - request_deserializer=Controller__V1__pb2.Request_CaptureScreen.FromString, - response_serializer=Controller__V1__pb2.Response_CaptureScreen.SerializeToString, - ), - 'SetTestConfiguration': grpc.unary_unary_rpc_method_handler( - servicer.SetTestConfiguration, - request_deserializer=Controller__V1__pb2.Reuqest_SetTestConfiguration.FromString, - response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, - ), - 'SetMouseDelay': grpc.unary_unary_rpc_method_handler( - servicer.SetMouseDelay, - request_deserializer=Controller__V1__pb2.Request_SetMouseDelay.FromString, - response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, - ), - 'SetKeyboardDelay': grpc.unary_unary_rpc_method_handler( - servicer.SetKeyboardDelay, - request_deserializer=Controller__V1__pb2.Request_SetKeyboardDelay.FromString, - response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, - ), - 'GetDisplayInformation': grpc.unary_unary_rpc_method_handler( - servicer.GetDisplayInformation, - request_deserializer=Controller__V1__pb2.Request_Void.FromString, - response_serializer=Controller__V1__pb2.Response_GetDisplayInformation.SerializeToString, - ), - 'GetMousePosition': grpc.unary_unary_rpc_method_handler( - servicer.GetMousePosition, - request_deserializer=Controller__V1__pb2.Request_Void.FromString, - response_serializer=Controller__V1__pb2.Response_GetMousePosition.SerializeToString, - ), - 'SetActiveDisplay': grpc.unary_unary_rpc_method_handler( - servicer.SetActiveDisplay, - request_deserializer=Controller__V1__pb2.Request_SetActiveDisplay.FromString, - response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, - ), - 'GetColor': grpc.unary_unary_rpc_method_handler( - servicer.GetColor, - request_deserializer=Controller__V1__pb2.Request_GetColor.FromString, - response_serializer=Controller__V1__pb2.Response_GetColor.SerializeToString, - ), - 'GetPixelColor': grpc.unary_unary_rpc_method_handler( - servicer.GetPixelColor, - request_deserializer=Controller__V1__pb2.Request_GetPixelColor.FromString, - response_serializer=Controller__V1__pb2.Response_GetPixelColor.SerializeToString, - ), - 'SetDisplayLabel': grpc.unary_unary_rpc_method_handler( - servicer.SetDisplayLabel, - request_deserializer=Controller__V1__pb2.Request_SetDisplayLabel.FromString, - response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, - ), + "StartSession": grpc.unary_unary_rpc_method_handler( + servicer.StartSession, + request_deserializer=Controller__V1__pb2.Request_StartSession.FromString, + response_serializer=Controller__V1__pb2.Response_StartSession.SerializeToString, + ), + "EndSession": grpc.unary_unary_rpc_method_handler( + servicer.EndSession, + request_deserializer=Controller__V1__pb2.Request_EndSession.FromString, + response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, + ), + "Poll": grpc.unary_unary_rpc_method_handler( + servicer.Poll, + request_deserializer=Controller__V1__pb2.Request_Poll.FromString, + response_serializer=Controller__V1__pb2.Response_Poll.SerializeToString, + ), + "StartExecution": grpc.unary_unary_rpc_method_handler( + servicer.StartExecution, + request_deserializer=Controller__V1__pb2.Request_StartExecution.FromString, + response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, + ), + "StopExecution": grpc.unary_unary_rpc_method_handler( + servicer.StopExecution, + request_deserializer=Controller__V1__pb2.Request_StopExecution.FromString, + response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, + ), + "RunRecordedAction": grpc.unary_unary_rpc_method_handler( + servicer.RunRecordedAction, + request_deserializer=Controller__V1__pb2.Request_RunRecordedAction.FromString, + response_serializer=Controller__V1__pb2.Response_RunRecordedAction.SerializeToString, + ), + "ScheduleBatchedAction": grpc.unary_unary_rpc_method_handler( + servicer.ScheduleBatchedAction, + request_deserializer=Controller__V1__pb2.Request_ScheduleBatchedAction.FromString, + response_serializer=Controller__V1__pb2.Response_ScheduleBatchedAction.SerializeToString, + ), + "StartBatchRun": grpc.unary_unary_rpc_method_handler( + servicer.StartBatchRun, + request_deserializer=Controller__V1__pb2.Request_StartBatchRun.FromString, + response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, + ), + "StopBatchRun": grpc.unary_unary_rpc_method_handler( + servicer.StopBatchRun, + request_deserializer=Controller__V1__pb2.Request_StopBatchRun.FromString, + response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, + ), + "GetActionCount": grpc.unary_unary_rpc_method_handler( + servicer.GetActionCount, + request_deserializer=Controller__V1__pb2.Request_GetActionCount.FromString, + response_serializer=Controller__V1__pb2.Response_GetActionCount.SerializeToString, + ), + "GetAction": grpc.unary_unary_rpc_method_handler( + servicer.GetAction, + request_deserializer=Controller__V1__pb2.Request_GetAction.FromString, + response_serializer=Controller__V1__pb2.Response_GetAction.SerializeToString, + ), + "RemoveAction": grpc.unary_unary_rpc_method_handler( + servicer.RemoveAction, + request_deserializer=Controller__V1__pb2.Request_RemoveAction.FromString, + response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, + ), + "RemoveAllActions": grpc.unary_unary_rpc_method_handler( + servicer.RemoveAllActions, + request_deserializer=Controller__V1__pb2.Request_RemoveAllActions.FromString, + response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, + ), + "CaptureScreen": grpc.unary_unary_rpc_method_handler( + servicer.CaptureScreen, + request_deserializer=Controller__V1__pb2.Request_CaptureScreen.FromString, + response_serializer=Controller__V1__pb2.Response_CaptureScreen.SerializeToString, + ), + "SetTestConfiguration": grpc.unary_unary_rpc_method_handler( + servicer.SetTestConfiguration, + request_deserializer=Controller__V1__pb2.Reuqest_SetTestConfiguration.FromString, + response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, + ), + "SetMouseDelay": grpc.unary_unary_rpc_method_handler( + servicer.SetMouseDelay, + request_deserializer=Controller__V1__pb2.Request_SetMouseDelay.FromString, + response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, + ), + "SetKeyboardDelay": grpc.unary_unary_rpc_method_handler( + servicer.SetKeyboardDelay, + request_deserializer=Controller__V1__pb2.Request_SetKeyboardDelay.FromString, + response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, + ), + "GetDisplayInformation": grpc.unary_unary_rpc_method_handler( + servicer.GetDisplayInformation, + request_deserializer=Controller__V1__pb2.Request_Void.FromString, + response_serializer=Controller__V1__pb2.Response_GetDisplayInformation.SerializeToString, + ), + "GetMousePosition": grpc.unary_unary_rpc_method_handler( + servicer.GetMousePosition, + request_deserializer=Controller__V1__pb2.Request_Void.FromString, + response_serializer=Controller__V1__pb2.Response_GetMousePosition.SerializeToString, + ), + "GetProcessList": grpc.unary_unary_rpc_method_handler( + servicer.GetProcessList, + request_deserializer=Controller__V1__pb2.Request_GetProcessList.FromString, + response_serializer=Controller__V1__pb2.Response_GetProcessList.SerializeToString, + ), + "GetWindowList": grpc.unary_unary_rpc_method_handler( + servicer.GetWindowList, + request_deserializer=Controller__V1__pb2.Request_GetWindowList.FromString, + response_serializer=Controller__V1__pb2.Response_GetWindowList.SerializeToString, + ), + "GetAutomationTargetList": grpc.unary_unary_rpc_method_handler( + servicer.GetAutomationTargetList, + request_deserializer=Controller__V1__pb2.Request_Void.FromString, + response_serializer=Controller__V1__pb2.Response_GetAutomationTargetList.SerializeToString, + ), + "SetActiveDisplay": grpc.unary_unary_rpc_method_handler( + servicer.SetActiveDisplay, + request_deserializer=Controller__V1__pb2.Request_SetActiveDisplay.FromString, + response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, + ), + "SetActiveWindow": grpc.unary_unary_rpc_method_handler( + servicer.SetActiveWindow, + request_deserializer=Controller__V1__pb2.Request_SetActiveWindow.FromString, + response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, + ), + "SetActiveAutomationTarget": grpc.unary_unary_rpc_method_handler( + servicer.SetActiveAutomationTarget, + request_deserializer=Controller__V1__pb2.Request_SetActiveAutomationTarget.FromString, + response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, + ), + "GetColor": grpc.unary_unary_rpc_method_handler( + servicer.GetColor, + request_deserializer=Controller__V1__pb2.Request_GetColor.FromString, + response_serializer=Controller__V1__pb2.Response_GetColor.SerializeToString, + ), + "GetPixelColor": grpc.unary_unary_rpc_method_handler( + servicer.GetPixelColor, + request_deserializer=Controller__V1__pb2.Request_GetPixelColor.FromString, + response_serializer=Controller__V1__pb2.Response_GetPixelColor.SerializeToString, + ), + "SetDisplayLabel": grpc.unary_unary_rpc_method_handler( + servicer.SetDisplayLabel, + request_deserializer=Controller__V1__pb2.Request_SetDisplayLabel.FromString, + response_serializer=Controller__V1__pb2.Response_Void.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( - 'Askui.API.TDKv1.ControllerAPI', rpc_method_handlers) + "Askui.API.TDKv1.ControllerAPI", rpc_method_handlers + ) server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('Askui.API.TDKv1.ControllerAPI', rpc_method_handlers) + server.add_registered_method_handlers( + "Askui.API.TDKv1.ControllerAPI", rpc_method_handlers + ) - # This class is part of an EXPERIMENTAL API. +# This class is part of an EXPERIMENTAL API. class ControllerAPI(object): """Missing associated documentation comment in .proto file.""" @staticmethod - def StartSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def StartSession( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/StartSession', + "/Askui.API.TDKv1.ControllerAPI/StartSession", Controller__V1__pb2.Request_StartSession.SerializeToString, Controller__V1__pb2.Response_StartSession.FromString, options, @@ -463,23 +563,26 @@ def StartSession(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def EndSession(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def EndSession( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/EndSession', + "/Askui.API.TDKv1.ControllerAPI/EndSession", Controller__V1__pb2.Request_EndSession.SerializeToString, Controller__V1__pb2.Response_Void.FromString, options, @@ -490,23 +593,26 @@ def EndSession(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def Poll(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def Poll( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/Poll', + "/Askui.API.TDKv1.ControllerAPI/Poll", Controller__V1__pb2.Request_Poll.SerializeToString, Controller__V1__pb2.Response_Poll.FromString, options, @@ -517,23 +623,26 @@ def Poll(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def StartExecution(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def StartExecution( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/StartExecution', + "/Askui.API.TDKv1.ControllerAPI/StartExecution", Controller__V1__pb2.Request_StartExecution.SerializeToString, Controller__V1__pb2.Response_Void.FromString, options, @@ -544,23 +653,26 @@ def StartExecution(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def StopExecution(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def StopExecution( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/StopExecution', + "/Askui.API.TDKv1.ControllerAPI/StopExecution", Controller__V1__pb2.Request_StopExecution.SerializeToString, Controller__V1__pb2.Response_Void.FromString, options, @@ -571,23 +683,26 @@ def StopExecution(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def RunRecordedAction(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def RunRecordedAction( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/RunRecordedAction', + "/Askui.API.TDKv1.ControllerAPI/RunRecordedAction", Controller__V1__pb2.Request_RunRecordedAction.SerializeToString, Controller__V1__pb2.Response_RunRecordedAction.FromString, options, @@ -598,23 +713,26 @@ def RunRecordedAction(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def ScheduleBatchedAction(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def ScheduleBatchedAction( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/ScheduleBatchedAction', + "/Askui.API.TDKv1.ControllerAPI/ScheduleBatchedAction", Controller__V1__pb2.Request_ScheduleBatchedAction.SerializeToString, Controller__V1__pb2.Response_ScheduleBatchedAction.FromString, options, @@ -625,23 +743,26 @@ def ScheduleBatchedAction(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def StartBatchRun(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def StartBatchRun( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/StartBatchRun', + "/Askui.API.TDKv1.ControllerAPI/StartBatchRun", Controller__V1__pb2.Request_StartBatchRun.SerializeToString, Controller__V1__pb2.Response_Void.FromString, options, @@ -652,23 +773,26 @@ def StartBatchRun(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def StopBatchRun(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def StopBatchRun( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/StopBatchRun', + "/Askui.API.TDKv1.ControllerAPI/StopBatchRun", Controller__V1__pb2.Request_StopBatchRun.SerializeToString, Controller__V1__pb2.Response_Void.FromString, options, @@ -679,23 +803,26 @@ def StopBatchRun(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def GetActionCount(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def GetActionCount( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/GetActionCount', + "/Askui.API.TDKv1.ControllerAPI/GetActionCount", Controller__V1__pb2.Request_GetActionCount.SerializeToString, Controller__V1__pb2.Response_GetActionCount.FromString, options, @@ -706,23 +833,26 @@ def GetActionCount(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def GetAction(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def GetAction( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/GetAction', + "/Askui.API.TDKv1.ControllerAPI/GetAction", Controller__V1__pb2.Request_GetAction.SerializeToString, Controller__V1__pb2.Response_GetAction.FromString, options, @@ -733,23 +863,26 @@ def GetAction(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def RemoveAction(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def RemoveAction( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/RemoveAction', + "/Askui.API.TDKv1.ControllerAPI/RemoveAction", Controller__V1__pb2.Request_RemoveAction.SerializeToString, Controller__V1__pb2.Response_Void.FromString, options, @@ -760,23 +893,26 @@ def RemoveAction(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def RemoveAllActions(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def RemoveAllActions( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/RemoveAllActions', + "/Askui.API.TDKv1.ControllerAPI/RemoveAllActions", Controller__V1__pb2.Request_RemoveAllActions.SerializeToString, Controller__V1__pb2.Response_Void.FromString, options, @@ -787,23 +923,26 @@ def RemoveAllActions(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def CaptureScreen(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def CaptureScreen( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/CaptureScreen', + "/Askui.API.TDKv1.ControllerAPI/CaptureScreen", Controller__V1__pb2.Request_CaptureScreen.SerializeToString, Controller__V1__pb2.Response_CaptureScreen.FromString, options, @@ -814,23 +953,26 @@ def CaptureScreen(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def SetTestConfiguration(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def SetTestConfiguration( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/SetTestConfiguration', + "/Askui.API.TDKv1.ControllerAPI/SetTestConfiguration", Controller__V1__pb2.Reuqest_SetTestConfiguration.SerializeToString, Controller__V1__pb2.Response_Void.FromString, options, @@ -841,23 +983,26 @@ def SetTestConfiguration(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def SetMouseDelay(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def SetMouseDelay( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/SetMouseDelay', + "/Askui.API.TDKv1.ControllerAPI/SetMouseDelay", Controller__V1__pb2.Request_SetMouseDelay.SerializeToString, Controller__V1__pb2.Response_Void.FromString, options, @@ -868,23 +1013,26 @@ def SetMouseDelay(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def SetKeyboardDelay(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def SetKeyboardDelay( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/SetKeyboardDelay', + "/Askui.API.TDKv1.ControllerAPI/SetKeyboardDelay", Controller__V1__pb2.Request_SetKeyboardDelay.SerializeToString, Controller__V1__pb2.Response_Void.FromString, options, @@ -895,23 +1043,26 @@ def SetKeyboardDelay(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def GetDisplayInformation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def GetDisplayInformation( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/GetDisplayInformation', + "/Askui.API.TDKv1.ControllerAPI/GetDisplayInformation", Controller__V1__pb2.Request_Void.SerializeToString, Controller__V1__pb2.Response_GetDisplayInformation.FromString, options, @@ -922,23 +1073,26 @@ def GetDisplayInformation(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def GetMousePosition(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def GetMousePosition( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/GetMousePosition', + "/Askui.API.TDKv1.ControllerAPI/GetMousePosition", Controller__V1__pb2.Request_Void.SerializeToString, Controller__V1__pb2.Response_GetMousePosition.FromString, options, @@ -949,23 +1103,116 @@ def GetMousePosition(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def SetActiveDisplay(request, + def GetProcessList( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + "/Askui.API.TDKv1.ControllerAPI/GetProcessList", + Controller__V1__pb2.Request_GetProcessList.SerializeToString, + Controller__V1__pb2.Response_GetProcessList.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True, + ) + + @staticmethod + def GetWindowList( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/Askui.API.TDKv1.ControllerAPI/GetWindowList", + Controller__V1__pb2.Request_GetWindowList.SerializeToString, + Controller__V1__pb2.Response_GetWindowList.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True, + ) + + @staticmethod + def GetAutomationTargetList( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/Askui.API.TDKv1.ControllerAPI/GetAutomationTargetList", + Controller__V1__pb2.Request_Void.SerializeToString, + Controller__V1__pb2.Response_GetAutomationTargetList.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True, + ) + + @staticmethod + def SetActiveDisplay( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/SetActiveDisplay', + "/Askui.API.TDKv1.ControllerAPI/SetActiveDisplay", Controller__V1__pb2.Request_SetActiveDisplay.SerializeToString, Controller__V1__pb2.Response_Void.FromString, options, @@ -976,23 +1223,86 @@ def SetActiveDisplay(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) + + @staticmethod + def SetActiveWindow( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, + target, + "/Askui.API.TDKv1.ControllerAPI/SetActiveWindow", + Controller__V1__pb2.Request_SetActiveWindow.SerializeToString, + Controller__V1__pb2.Response_Void.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True, + ) @staticmethod - def GetColor(request, + def SetActiveAutomationTarget( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): + return grpc.experimental.unary_unary( + request, target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + "/Askui.API.TDKv1.ControllerAPI/SetActiveAutomationTarget", + Controller__V1__pb2.Request_SetActiveAutomationTarget.SerializeToString, + Controller__V1__pb2.Response_Void.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True, + ) + + @staticmethod + def GetColor( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/GetColor', + "/Askui.API.TDKv1.ControllerAPI/GetColor", Controller__V1__pb2.Request_GetColor.SerializeToString, Controller__V1__pb2.Response_GetColor.FromString, options, @@ -1003,23 +1313,26 @@ def GetColor(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def GetPixelColor(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def GetPixelColor( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/GetPixelColor', + "/Askui.API.TDKv1.ControllerAPI/GetPixelColor", Controller__V1__pb2.Request_GetPixelColor.SerializeToString, Controller__V1__pb2.Response_GetPixelColor.FromString, options, @@ -1030,23 +1343,26 @@ def GetPixelColor(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) @staticmethod - def SetDisplayLabel(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): + def SetDisplayLabel( + request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None, + ): return grpc.experimental.unary_unary( request, target, - '/Askui.API.TDKv1.ControllerAPI/SetDisplayLabel', + "/Askui.API.TDKv1.ControllerAPI/SetDisplayLabel", Controller__V1__pb2.Request_SetDisplayLabel.SerializeToString, Controller__V1__pb2.Response_Void.FromString, options, @@ -1057,4 +1373,5 @@ def SetDisplayLabel(request, wait_for_ready, timeout, metadata, - _registered_method=True) + _registered_method=True, + ) From 28cde1a9038f37efb4feb1d33a7603cebc3357e6 Mon Sep 17 00:00:00 2001 From: Samir Mlika Date: Thu, 17 Apr 2025 09:12:57 +0100 Subject: [PATCH 3/3] Implement review remarks --- src/askui/agent.py | 2 +- src/askui/tools/askui/askui_controller.py | 21 +++++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/askui/agent.py b/src/askui/agent.py index cb2aa136..eb8914b3 100644 --- a/src/askui/agent.py +++ b/src/askui/agent.py @@ -44,7 +44,7 @@ def __init__( self.client = None if enable_askui_controller: self.controller = AskUiControllerServer() - self.controller.start(True, (logger.level == logging.DEBUG)) + self.controller.start(True, (logger.level < logging.INFO)) time.sleep(0.5) self.client = AskUiControllerClient(display, self.report) self.client.connect() diff --git a/src/askui/tools/askui/askui_controller.py b/src/askui/tools/askui/askui_controller.py index 9f490d08..4223b1cb 100644 --- a/src/askui/tools/askui/askui_controller.py +++ b/src/askui/tools/askui/askui_controller.py @@ -77,15 +77,15 @@ def _find_remote_device_controller(self) -> pathlib.Path: def _find_remote_device_controller_by_component_registry(self) -> pathlib.Path: if self._settings.component_registry_file is None: - raise AskUISuiteNotInstalledError('AskUI Suite not installed. Please install AskUI Suite to use AskUI Vision Agent.') + raise AskUISuiteNotInstalledError(f"AskUI Suite is not installed. Please install AskUI Suite to use AskUI Vision Agent. For more information, please refer to 'https://docs.askui.com/introduction/01-introduction/02-quickstart'.") component_registry = AskUiComponentRegistry.model_validate_json(self._settings.component_registry_file.read_text()) askui_remote_device_controller_path = component_registry.installed_packages.remote_device_controller_uuid.executables.askui_remote_device_controller if not os.path.isfile(askui_remote_device_controller_path): raise FileNotFoundError(f"AskUIRemoteDeviceController executable does not exits under '{askui_remote_device_controller_path}'") return askui_remote_device_controller_path - def __start_process(self, path, verbose: bool = False) -> None: - if verbose: + def __start_process(self, path, quite: bool = True) -> None: + if not quite: self.process = subprocess.Popen(path) else: self.process = subprocess.Popen( @@ -95,12 +95,12 @@ def __start_process(self, path, verbose: bool = False) -> None: ) wait_for_port(23000) - def start(self, clean_up=False, verbose: bool = False) -> None: + def start(self, clean_up=False, start_process_quite: bool = True) -> None: if sys.platform == 'win32' and clean_up and process_exists("AskuiRemoteDeviceController.exe"): self.clean_up() remote_device_controller_path = self._find_remote_device_controller() logger.debug("Starting AskUI Remote Device Controller: %s", remote_device_controller_path) - self.__start_process(remote_device_controller_path, verbose=verbose) + self.__start_process(remote_device_controller_path, quite=start_process_quite) def clean_up(self): if sys.platform == 'win32': @@ -333,8 +333,9 @@ def get_process_list(self, has_window:bool = False) -> List[controller_v1_pbs.Pr return response.processes @telemetry.record_call(exclude_response = True) - def get_windows_list(self, process_id: int) -> List[controller_v1_pbs.WindowInfo]: - """"Get window list from the controller. + def get_window_list_for_process_id(self, process_id: int) -> List[controller_v1_pbs.WindowInfo]: + """"Get window list for a specific process ID from the controller. + This method retrieves the list of windows associated with a given process ID. Args: process_id (int): Process ID to get windows for. Returns: @@ -342,7 +343,7 @@ def get_windows_list(self, process_id: int) -> List[controller_v1_pbs.WindowInfo """ self._assert_stub_initialized() if self.report is not None: - self.report.add_message("AgentOS", "get_windows_list()") + self.report.add_message("AgentOS", f"get_window_list_for_process_id({process_id})") response = self.stub.GetWindowList(controller_v1_pbs.Request_GetWindowList(processID=process_id)) return response.windows @@ -358,7 +359,7 @@ def get_all_window_names(self) -> List[str]: process_list = self.get_process_list(has_window=True) window_names = [] for process in process_list: - window_list = self.get_windows_list(process.ID) + window_list = self.get_window_list_for_process_id(process.ID) for window in window_list: window_names.append(window.name) return window_names @@ -388,7 +389,7 @@ def set_active_window_by_name(self, window_name: str) -> None: self.report.add_message("AgentOS", f"set_active_window_by_name({window_name})") process_list = self.get_process_list(has_window=True) for process in process_list: - window_list = self.get_windows_list(process.ID) + window_list = self.get_window_list_for_process_id(process.ID) for window in window_list: if window.name == window_name: self.set_active_window(window.ID, process.ID)