//
// Copyright (C) 2024 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// @generated by protoc-gen-es v2.2.2 with parameter "target=ts"
// @generated from file protos/perfetto/trace/android/inputmethodservice/inputmethodservice.proto (package perfetto.protos, syntax proto2)
/* eslint-disable */

import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
import type { SoftInputWindowProto } from "./softinputwindow_pb";
import { file_protos_perfetto_trace_android_inputmethodservice_softinputwindow } from "./softinputwindow_pb";
import type { EditorInfoProto } from "../view/inputmethod/editorinfo_pb";
import { file_protos_perfetto_trace_android_view_inputmethod_editorinfo } from "../view/inputmethod/editorinfo_pb";
import type { InputConnectionCallProto } from "../view/inputmethod/inputconnection_pb";
import { file_protos_perfetto_trace_android_view_inputmethod_inputconnection } from "../view/inputmethod/inputconnection_pb";
import type { Message } from "@bufbuild/protobuf";

/**
 * Describes the file protos/perfetto/trace/android/inputmethodservice/inputmethodservice.proto.
 */
export const file_protos_perfetto_trace_android_inputmethodservice_inputmethodservice: GenFile = /*@__PURE__*/
  fileDesc("Cklwcm90b3MvcGVyZmV0dG8vdHJhY2UvYW5kcm9pZC9pbnB1dG1ldGhvZHNlcnZpY2UvaW5wdXRtZXRob2RzZXJ2aWNlLnByb3RvEg9wZXJmZXR0by5wcm90b3MigQgKF0lucHV0TWV0aG9kU2VydmljZVByb3RvEkAKEXNvZnRfaW5wdXRfd2luZG93GAEgASgLMiUucGVyZmV0dG8ucHJvdG9zLlNvZnRJbnB1dFdpbmRvd1Byb3RvEhUKDXZpZXdzX2NyZWF0ZWQYAiABKAgSG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AUSGgoSdmlzaWJsZV90b3BfaW5zZXRzGAIgASgFEhgKEHRvdWNoYWJsZV9pbnNldHMYAyABKAUSGAoQdG91Y2hhYmxlX3JlZ2lvbhgEIAEoCUoECBAQEUoECBEQEg", [file_protos_perfetto_trace_android_inputmethodservice_softinputwindow, file_protos_perfetto_trace_android_view_inputmethod_editorinfo, file_protos_perfetto_trace_android_view_inputmethod_inputconnection]);

/**
 * @generated from message perfetto.protos.InputMethodServiceProto
 */
export type InputMethodServiceProto = Message<"perfetto.protos.InputMethodServiceProto"> & {
  /**
   * @generated from field: optional perfetto.protos.SoftInputWindowProto soft_input_window = 1;
   */
  softInputWindow?: SoftInputWindowProto;

  /**
   * @generated from field: optional bool views_created = 2;
   */
  viewsCreated: boolean;

  /**
   * @generated from field: optional bool decor_view_visible = 3;
   */
  decorViewVisible: boolean;

  /**
   * @generated from field: optional bool decor_view_was_visible = 4;
   */
  decorViewWasVisible: boolean;

  /**
   * @generated from field: optional bool window_visible = 5;
   */
  windowVisible: boolean;

  /**
   * @generated from field: optional bool in_show_window = 6;
   */
  inShowWindow: boolean;

  /**
   * @generated from field: optional string configuration = 7;
   */
  configuration: string;

  /**
   * @generated from field: optional string token = 8;
   */
  token: string;

  /**
   * @generated from field: optional string input_binding = 9;
   */
  inputBinding: string;

  /**
   * @generated from field: optional bool input_started = 10;
   */
  inputStarted: boolean;

  /**
   * @generated from field: optional bool input_view_started = 11;
   */
  inputViewStarted: boolean;

  /**
   * @generated from field: optional bool candidates_view_started = 12;
   */
  candidatesViewStarted: boolean;

  /**
   * @generated from field: optional perfetto.protos.EditorInfoProto input_editor_info = 13;
   */
  inputEditorInfo?: EditorInfoProto;

  /**
   * @generated from field: optional bool show_input_requested = 14;
   */
  showInputRequested: boolean;

  /**
   * @generated from field: optional bool last_show_input_requested = 15;
   */
  lastShowInputRequested: boolean;

  /**
   * @generated from field: optional int32 show_input_flags = 18;
   */
  showInputFlags: number;

  /**
   * @generated from field: optional int32 candidates_visibility = 19;
   */
  candidatesVisibility: number;

  /**
   * @generated from field: optional bool fullscreen_applied = 20;
   */
  fullscreenApplied: boolean;

  /**
   * @generated from field: optional bool is_fullscreen = 21;
   */
  isFullscreen: boolean;

  /**
   * @generated from field: optional bool extract_view_hidden = 22;
   */
  extractViewHidden: boolean;

  /**
   * @generated from field: optional int32 extracted_token = 23;
   */
  extractedToken: number;

  /**
   * @generated from field: optional bool is_input_view_shown = 24;
   */
  isInputViewShown: boolean;

  /**
   * @generated from field: optional int32 status_icon = 25;
   */
  statusIcon: number;

  /**
   * @generated from field: optional perfetto.protos.InputMethodServiceProto.InsetsProto last_computed_insets = 26;
   */
  lastComputedInsets?: InputMethodServiceProto_InsetsProto;

  /**
   * @generated from field: optional string settings_observer = 27;
   */
  settingsObserver: string;

  /**
   * @generated from field: optional perfetto.protos.InputConnectionCallProto input_connection_call = 28;
   */
  inputConnectionCall?: InputConnectionCallProto;
};

/**
 * Describes the message perfetto.protos.InputMethodServiceProto.
 * Use `create(InputMethodServiceProtoSchema)` to create a new message.
 */
export const InputMethodServiceProtoSchema: GenMessage<InputMethodServiceProto> = /*@__PURE__*/
  messageDesc(file_protos_perfetto_trace_android_inputmethodservice_inputmethodservice, 0);

/**
 * @generated from message perfetto.protos.InputMethodServiceProto.InsetsProto
 */
export type InputMethodServiceProto_InsetsProto = Message<"perfetto.protos.InputMethodServiceProto.InsetsProto"> & {
  /**
   * @generated from field: optional int32 content_top_insets = 1;
   */
  contentTopInsets: number;

  /**
   * @generated from field: optional int32 visible_top_insets = 2;
   */
  visibleTopInsets: number;

  /**
   * @generated from field: optional int32 touchable_insets = 3;
   */
  touchableInsets: number;

  /**
   * @generated from field: optional string touchable_region = 4;
   */
  touchableRegion: string;
};

/**
 * Describes the message perfetto.protos.InputMethodServiceProto.InsetsProto.
 * Use `create(InputMethodServiceProto_InsetsProtoSchema)` to create a new message.
 */
export const InputMethodServiceProto_InsetsProtoSchema: GenMessage<InputMethodServiceProto_InsetsProto> = /*@__PURE__*/
  messageDesc(file_protos_perfetto_trace_android_inputmethodservice_inputmethodservice, 0, 0);

