UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

61 lines (53 loc) 2.38 kB
// // Copyright (C) 2019 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/track_event/chrome_user_event.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/track_event/chrome_user_event.proto. */ export const file_protos_perfetto_trace_track_event_chrome_user_event: GenFile = /*@__PURE__*/ fileDesc("Cjlwcm90b3MvcGVyZmV0dG8vdHJhY2UvdHJhY2tfZXZlbnQvY2hyb21lX3VzZXJfZXZlbnQucHJvdG8SD3BlcmZldHRvLnByb3RvcyI2Cg9DaHJvbWVVc2VyRXZlbnQSDgoGYWN0aW9uGAEgASgJEhMKC2FjdGlvbl9oYXNoGAIgASgE"); /** * Details about a UI interaction initiated by the user, such as opening or * closing a tab or a context menu. * * @generated from message perfetto.protos.ChromeUserEvent */ export type ChromeUserEvent = Message<"perfetto.protos.ChromeUserEvent"> & { /** * Name of the action, e.g. "NewTab", "ShowBookmarkManager", etc. (in * Chrome, these are usually static strings known at compile time, or * concatenations of multiple such static strings). * * @generated from field: optional string action = 1; */ action: string; /** * MD5 hash of the action string. * * @generated from field: optional uint64 action_hash = 2; */ actionHash: bigint; }; /** * Describes the message perfetto.protos.ChromeUserEvent. * Use `create(ChromeUserEventSchema)` to create a new message. */ export const ChromeUserEventSchema: GenMessage<ChromeUserEvent> = /*@__PURE__*/ messageDesc(file_protos_perfetto_trace_track_event_chrome_user_event, 0);