UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

84 lines (73 loc) 3.55 kB
// // Copyright (C) 2023 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/config/android/surfaceflinger_transactions_config.proto (package perfetto.protos, syntax proto2) /* eslint-disable */ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file protos/perfetto/config/android/surfaceflinger_transactions_config.proto. */ export const file_protos_perfetto_config_android_surfaceflinger_transactions_config: GenFile = /*@__PURE__*/ fileDesc("Ckdwcm90b3MvcGVyZmV0dG8vY29uZmlnL2FuZHJvaWQvc3VyZmFjZWZsaW5nZXJfdHJhbnNhY3Rpb25zX2NvbmZpZy5wcm90bxIPcGVyZmV0dG8ucHJvdG9zIqwBCiBTdXJmYWNlRmxpbmdlclRyYW5zYWN0aW9uc0NvbmZpZxJECgRtb2RlGAEgASgOMjYucGVyZmV0dG8ucHJvdG9zLlN1cmZhY2VGbGluZ2VyVHJhbnNhY3Rpb25zQ29uZmlnLk1vZGUiQgoETW9kZRIUChBNT0RFX1VOU1BFQ0lGSUVEEAASEwoPTU9ERV9DT05USU5VT1VTEAESDwoLTU9ERV9BQ1RJVkUQAg"); /** * Custom configuration for the "android.surfaceflinger.transactions" data * source. * * @generated from message perfetto.protos.SurfaceFlingerTransactionsConfig */ export type SurfaceFlingerTransactionsConfig = Message<"perfetto.protos.SurfaceFlingerTransactionsConfig"> & { /** * @generated from field: optional perfetto.protos.SurfaceFlingerTransactionsConfig.Mode mode = 1; */ mode: SurfaceFlingerTransactionsConfig_Mode; }; /** * Describes the message perfetto.protos.SurfaceFlingerTransactionsConfig. * Use `create(SurfaceFlingerTransactionsConfigSchema)` to create a new message. */ export const SurfaceFlingerTransactionsConfigSchema: GenMessage<SurfaceFlingerTransactionsConfig> = /*@__PURE__*/ messageDesc(file_protos_perfetto_config_android_surfaceflinger_transactions_config, 0); /** * @generated from enum perfetto.protos.SurfaceFlingerTransactionsConfig.Mode */ export enum SurfaceFlingerTransactionsConfig_Mode { /** * @generated from enum value: MODE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * Default mode (applied by SurfaceFlinger if no mode is specified). * SurfaceFlinger writes its internal ring buffer of transactions every time * the data source is flushed. The ring buffer contains the SurfaceFlinger's * initial state and the latest transactions. * * @generated from enum value: MODE_CONTINUOUS = 1; */ CONTINUOUS = 1, /** * SurfaceFlinger writes the initial state and then each incoming * transaction until the data source is stopped. * * @generated from enum value: MODE_ACTIVE = 2; */ ACTIVE = 2, } /** * Describes the enum perfetto.protos.SurfaceFlingerTransactionsConfig.Mode. */ export const SurfaceFlingerTransactionsConfig_ModeSchema: GenEnum<SurfaceFlingerTransactionsConfig_Mode> = /*@__PURE__*/ enumDesc(file_protos_perfetto_config_android_surfaceflinger_transactions_config, 0, 0);