perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
311 lines (272 loc) • 13.7 kB
text/typescript
//
// 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/view/inputmethod/inputconnection.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 { Message } from "@bufbuild/protobuf";
/**
* Describes the file protos/perfetto/trace/android/view/inputmethod/inputconnection.proto.
*/
export const file_protos_perfetto_trace_android_view_inputmethod_inputconnection: GenFile = /*@__PURE__*/
fileDesc("CkRwcm90b3MvcGVyZmV0dG8vdHJhY2UvYW5kcm9pZC92aWV3L2lucHV0bWV0aG9kL2lucHV0Y29ubmVjdGlvbi5wcm90bxIPcGVyZmV0dG8ucHJvdG9zInQKFElucHV0Q29ubmVjdGlvblByb3RvEhsKE3NlbGVjdGVkX3RleHRfc3RhcnQYAyABKAUSGQoRc2VsZWN0ZWRfdGV4dF9lbmQYBCABKAUSGAoQY3Vyc29yX2NhcHNfbW9kZRgFIAEoBUoECAEQAkoECAIQAyKpCgoYSW5wdXRDb25uZWN0aW9uQ2FsbFByb3RvEl8KFmdldF90ZXh0X2JlZm9yZV9jdXJzb3IYASABKAsyPS5wZXJmZXR0by5wcm90b3MuSW5wdXRDb25uZWN0aW9uQ2FsbFByb3RvLkdldFRleHRCZWZvcmVDdXJzb3JIABJdChVnZXRfdGV4dF9hZnRlcl9jdXJzb3IYAiABKAsyPC5wZ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zZWxlY3Rpb25fZW5kGAMgASgFEg4KBm9mZnNldBgEIAEoBUoECAEQAho2ChFHZXRDdXJzb3JDYXBzTW9kZRIRCglyZXFfbW9kZXMYASABKAUSDgoGcmVzdWx0GAIgASgFGu8BChBHZXRFeHRyYWN0ZWRUZXh0EmAKB3JlcXVlc3QYASABKAsyTy5wZXJmZXR0by5wcm90b3MuSW5wdXRDb25uZWN0aW9uQ2FsbFByb3RvLkdldEV4dHJhY3RlZFRleHQuRXh0cmFjdGVkVGV4dFJlcXVlc3QSDQoFZmxhZ3MYAiABKAUaZAoURXh0cmFjdGVkVGV4dFJlcXVlc3QSDQoFdG9rZW4YASABKAUSDQoFZmxhZ3MYAiABKAUSFgoOaGludF9tYXhfbGluZXMYAyABKAUSFgoOaGludF9tYXhfY2hhcnMYBCABKAVKBAgDEARCDQoLbWV0aG9kX2NhbGw");
/**
* Represents a {@link android.view.inputmethod.InputConnection} object
*
* @generated from message perfetto.protos.InputConnectionProto
*/
export type InputConnectionProto = Message<"perfetto.protos.InputConnectionProto"> & {
/**
* @generated from field: optional int32 selected_text_start = 3;
*/
selectedTextStart: number;
/**
* @generated from field: optional int32 selected_text_end = 4;
*/
selectedTextEnd: number;
/**
* @generated from field: optional int32 cursor_caps_mode = 5;
*/
cursorCapsMode: number;
};
/**
* Describes the message perfetto.protos.InputConnectionProto.
* Use `create(InputConnectionProtoSchema)` to create a new message.
*/
export const InputConnectionProtoSchema: GenMessage<InputConnectionProto> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_android_view_inputmethod_inputconnection, 0);
/**
* Shows information about parameters and result for method calls to
* {@link android.view.inputmethod.InputConnection}
*
* @generated from message perfetto.protos.InputConnectionCallProto
*/
export type InputConnectionCallProto = Message<"perfetto.protos.InputConnectionCallProto"> & {
/**
* @generated from oneof perfetto.protos.InputConnectionCallProto.method_call
*/
methodCall: {
/**
* @generated from field: perfetto.protos.InputConnectionCallProto.GetTextBeforeCursor get_text_before_cursor = 1;
*/
value: InputConnectionCallProto_GetTextBeforeCursor;
case: "getTextBeforeCursor";
} | {
/**
* @generated from field: perfetto.protos.InputConnectionCallProto.GetTextAfterCursor get_text_after_cursor = 2;
*/
value: InputConnectionCallProto_GetTextAfterCursor;
case: "getTextAfterCursor";
} | {
/**
* @generated from field: perfetto.protos.InputConnectionCallProto.GetSelectedText get_selected_text = 3;
*/
value: InputConnectionCallProto_GetSelectedText;
case: "getSelectedText";
} | {
/**
* @generated from field: perfetto.protos.InputConnectionCallProto.GetSurroundingText get_surrounding_text = 4;
*/
value: InputConnectionCallProto_GetSurroundingText;
case: "getSurroundingText";
} | {
/**
* @generated from field: perfetto.protos.InputConnectionCallProto.GetCursorCapsMode get_cursor_caps_mode = 5;
*/
value: InputConnectionCallProto_GetCursorCapsMode;
case: "getCursorCapsMode";
} | {
/**
* @generated from field: perfetto.protos.InputConnectionCallProto.GetExtractedText get_extracted_text = 6;
*/
value: InputConnectionCallProto_GetExtractedText;
case: "getExtractedText";
} | { case: undefined; value?: undefined };
};
/**
* Describes the message perfetto.protos.InputConnectionCallProto.
* Use `create(InputConnectionCallProtoSchema)` to create a new message.
*/
export const InputConnectionCallProtoSchema: GenMessage<InputConnectionCallProto> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_android_view_inputmethod_inputconnection, 1);
/**
* @generated from message perfetto.protos.InputConnectionCallProto.GetTextBeforeCursor
*/
export type InputConnectionCallProto_GetTextBeforeCursor = Message<"perfetto.protos.InputConnectionCallProto.GetTextBeforeCursor"> & {
/**
* @generated from field: optional int32 length = 1;
*/
length: number;
/**
* @generated from field: optional int32 flags = 2;
*/
flags: number;
};
/**
* Describes the message perfetto.protos.InputConnectionCallProto.GetTextBeforeCursor.
* Use `create(InputConnectionCallProto_GetTextBeforeCursorSchema)` to create a new message.
*/
export const InputConnectionCallProto_GetTextBeforeCursorSchema: GenMessage<InputConnectionCallProto_GetTextBeforeCursor> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_android_view_inputmethod_inputconnection, 1, 0);
/**
* @generated from message perfetto.protos.InputConnectionCallProto.GetTextAfterCursor
*/
export type InputConnectionCallProto_GetTextAfterCursor = Message<"perfetto.protos.InputConnectionCallProto.GetTextAfterCursor"> & {
/**
* @generated from field: optional int32 length = 1;
*/
length: number;
/**
* @generated from field: optional int32 flags = 2;
*/
flags: number;
};
/**
* Describes the message perfetto.protos.InputConnectionCallProto.GetTextAfterCursor.
* Use `create(InputConnectionCallProto_GetTextAfterCursorSchema)` to create a new message.
*/
export const InputConnectionCallProto_GetTextAfterCursorSchema: GenMessage<InputConnectionCallProto_GetTextAfterCursor> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_android_view_inputmethod_inputconnection, 1, 1);
/**
* @generated from message perfetto.protos.InputConnectionCallProto.GetSelectedText
*/
export type InputConnectionCallProto_GetSelectedText = Message<"perfetto.protos.InputConnectionCallProto.GetSelectedText"> & {
/**
* @generated from field: optional int32 flags = 1;
*/
flags: number;
};
/**
* Describes the message perfetto.protos.InputConnectionCallProto.GetSelectedText.
* Use `create(InputConnectionCallProto_GetSelectedTextSchema)` to create a new message.
*/
export const InputConnectionCallProto_GetSelectedTextSchema: GenMessage<InputConnectionCallProto_GetSelectedText> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_android_view_inputmethod_inputconnection, 1, 2);
/**
* @generated from message perfetto.protos.InputConnectionCallProto.GetSurroundingText
*/
export type InputConnectionCallProto_GetSurroundingText = Message<"perfetto.protos.InputConnectionCallProto.GetSurroundingText"> & {
/**
* @generated from field: optional int32 before_length = 1;
*/
beforeLength: number;
/**
* @generated from field: optional int32 after_length = 2;
*/
afterLength: number;
/**
* @generated from field: optional int32 flags = 3;
*/
flags: number;
/**
* @generated from field: optional perfetto.protos.InputConnectionCallProto.GetSurroundingText.SurroundingText result = 4;
*/
result?: InputConnectionCallProto_GetSurroundingText_SurroundingText;
};
/**
* Describes the message perfetto.protos.InputConnectionCallProto.GetSurroundingText.
* Use `create(InputConnectionCallProto_GetSurroundingTextSchema)` to create a new message.
*/
export const InputConnectionCallProto_GetSurroundingTextSchema: GenMessage<InputConnectionCallProto_GetSurroundingText> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_android_view_inputmethod_inputconnection, 1, 3);
/**
* @generated from message perfetto.protos.InputConnectionCallProto.GetSurroundingText.SurroundingText
*/
export type InputConnectionCallProto_GetSurroundingText_SurroundingText = Message<"perfetto.protos.InputConnectionCallProto.GetSurroundingText.SurroundingText"> & {
/**
* @generated from field: optional int32 selection_start = 2;
*/
selectionStart: number;
/**
* @generated from field: optional int32 selection_end = 3;
*/
selectionEnd: number;
/**
* @generated from field: optional int32 offset = 4;
*/
offset: number;
};
/**
* Describes the message perfetto.protos.InputConnectionCallProto.GetSurroundingText.SurroundingText.
* Use `create(InputConnectionCallProto_GetSurroundingText_SurroundingTextSchema)` to create a new message.
*/
export const InputConnectionCallProto_GetSurroundingText_SurroundingTextSchema: GenMessage<InputConnectionCallProto_GetSurroundingText_SurroundingText> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_android_view_inputmethod_inputconnection, 1, 3, 0);
/**
* @generated from message perfetto.protos.InputConnectionCallProto.GetCursorCapsMode
*/
export type InputConnectionCallProto_GetCursorCapsMode = Message<"perfetto.protos.InputConnectionCallProto.GetCursorCapsMode"> & {
/**
* @generated from field: optional int32 req_modes = 1;
*/
reqModes: number;
/**
* @generated from field: optional int32 result = 2;
*/
result: number;
};
/**
* Describes the message perfetto.protos.InputConnectionCallProto.GetCursorCapsMode.
* Use `create(InputConnectionCallProto_GetCursorCapsModeSchema)` to create a new message.
*/
export const InputConnectionCallProto_GetCursorCapsModeSchema: GenMessage<InputConnectionCallProto_GetCursorCapsMode> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_android_view_inputmethod_inputconnection, 1, 4);
/**
* @generated from message perfetto.protos.InputConnectionCallProto.GetExtractedText
*/
export type InputConnectionCallProto_GetExtractedText = Message<"perfetto.protos.InputConnectionCallProto.GetExtractedText"> & {
/**
* @generated from field: optional perfetto.protos.InputConnectionCallProto.GetExtractedText.ExtractedTextRequest request = 1;
*/
request?: InputConnectionCallProto_GetExtractedText_ExtractedTextRequest;
/**
* @generated from field: optional int32 flags = 2;
*/
flags: number;
};
/**
* Describes the message perfetto.protos.InputConnectionCallProto.GetExtractedText.
* Use `create(InputConnectionCallProto_GetExtractedTextSchema)` to create a new message.
*/
export const InputConnectionCallProto_GetExtractedTextSchema: GenMessage<InputConnectionCallProto_GetExtractedText> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_android_view_inputmethod_inputconnection, 1, 5);
/**
* @generated from message perfetto.protos.InputConnectionCallProto.GetExtractedText.ExtractedTextRequest
*/
export type InputConnectionCallProto_GetExtractedText_ExtractedTextRequest = Message<"perfetto.protos.InputConnectionCallProto.GetExtractedText.ExtractedTextRequest"> & {
/**
* @generated from field: optional int32 token = 1;
*/
token: number;
/**
* @generated from field: optional int32 flags = 2;
*/
flags: number;
/**
* @generated from field: optional int32 hint_max_lines = 3;
*/
hintMaxLines: number;
/**
* @generated from field: optional int32 hint_max_chars = 4;
*/
hintMaxChars: number;
};
/**
* Describes the message perfetto.protos.InputConnectionCallProto.GetExtractedText.ExtractedTextRequest.
* Use `create(InputConnectionCallProto_GetExtractedText_ExtractedTextRequestSchema)` to create a new message.
*/
export const InputConnectionCallProto_GetExtractedText_ExtractedTextRequestSchema: GenMessage<InputConnectionCallProto_GetExtractedText_ExtractedTextRequest> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_android_view_inputmethod_inputconnection, 1, 5, 0);