UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

145 lines (128 loc) 5.26 kB
// // Copyright (C) 2018 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_processor/metrics_impl.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_processor/metrics_impl.proto. */ export const file_protos_perfetto_trace_processor_metrics_impl: GenFile = /*@__PURE__*/ fileDesc("CjJwcm90b3MvcGVyZmV0dG8vdHJhY2VfcHJvY2Vzc29yL21ldHJpY3NfaW1wbC5wcm90bxIPcGVyZmV0dG8ucHJvdG9zIqcBChJQcm90b0J1aWxkZXJSZXN1bHQSEwoLaXNfcmVwZWF0ZWQYASABKAgSNgoGc2luZ2xlGAIgASgLMiQucGVyZmV0dG8ucHJvdG9zLlNpbmdsZUJ1aWxkZXJSZXN1bHRIABI6CghyZXBlYXRlZBgDIAEoCzImLnBlcmZldHRvLnByb3Rvcy5SZXBlYXRlZEJ1aWxkZXJSZXN1bHRIAEIICgZyZXN1bHQidgoVUmVwZWF0ZWRCdWlsZGVyUmVzdWx0EhYKCmludF92YWx1ZXMYASADKBBCAhABEhkKDWRvdWJsZV92YWx1ZXMYAiADKAFCAhABEhUKDXN0cmluZ192YWx1ZXMYAyADKAkSEwoLYnl0ZV92YWx1ZXMYBCADKAwiSAoTU2luZ2xlQnVpbGRlclJlc3VsdBIMCgR0eXBlGAEgASgNEhEKCXR5cGVfbmFtZRgCIAEoCRIQCghwcm90b2J1ZhgDIAEoDA"); /** * The wrapping result of any metric builder function in trace processor. This * is an internal implementation detail of trace processor so should not be * relied on. * * @generated from message perfetto.protos.ProtoBuilderResult */ export type ProtoBuilderResult = Message<"perfetto.protos.ProtoBuilderResult"> & { /** * Whether the result is a singular proto builder result or the result of * a repeated field builder. * * @generated from field: optional bool is_repeated = 1; */ isRepeated: boolean; /** * @generated from oneof perfetto.protos.ProtoBuilderResult.result */ result: { /** * @generated from field: perfetto.protos.SingleBuilderResult single = 2; */ value: SingleBuilderResult; case: "single"; } | { /** * @generated from field: perfetto.protos.RepeatedBuilderResult repeated = 3; */ value: RepeatedBuilderResult; case: "repeated"; } | { case: undefined; value?: undefined }; }; /** * Describes the message perfetto.protos.ProtoBuilderResult. * Use `create(ProtoBuilderResultSchema)` to create a new message. */ export const ProtoBuilderResultSchema: GenMessage<ProtoBuilderResult> = /*@__PURE__*/ messageDesc(file_protos_perfetto_trace_processor_metrics_impl, 0); /** * The result of a repeated field function for a metric proto in trace * processor. This is an internal implementation detail of trace processor so * should not be relied on. * * @generated from message perfetto.protos.RepeatedBuilderResult */ export type RepeatedBuilderResult = Message<"perfetto.protos.RepeatedBuilderResult"> & { /** * @generated from field: repeated sfixed64 int_values = 1 [packed = true]; */ intValues: bigint[]; /** * @generated from field: repeated double double_values = 2 [packed = true]; */ doubleValues: number[]; /** * @generated from field: repeated string string_values = 3; */ stringValues: string[]; /** * @generated from field: repeated bytes byte_values = 4; */ byteValues: Uint8Array[]; }; /** * Describes the message perfetto.protos.RepeatedBuilderResult. * Use `create(RepeatedBuilderResultSchema)` to create a new message. */ export const RepeatedBuilderResultSchema: GenMessage<RepeatedBuilderResult> = /*@__PURE__*/ messageDesc(file_protos_perfetto_trace_processor_metrics_impl, 1); /** * The result of a builder function for a metric proto in trace processor. This * is an internal implementation detail of trace processor so should not be * relied on. * * @generated from message perfetto.protos.SingleBuilderResult */ export type SingleBuilderResult = Message<"perfetto.protos.SingleBuilderResult"> & { /** * The type of the result. The possible values are given by * FieldDescriptorProto::Type. * * @generated from field: optional uint32 type = 1; */ type: number; /** * The type name of the result if the result is a message or enum type. * * @generated from field: optional string type_name = 2; */ typeName: string; /** * The raw proto bytes of a message. * * @generated from field: optional bytes protobuf = 3; */ protobuf: Uint8Array; }; /** * Describes the message perfetto.protos.SingleBuilderResult. * Use `create(SingleBuilderResultSchema)` to create a new message. */ export const SingleBuilderResultSchema: GenMessage<SingleBuilderResult> = /*@__PURE__*/ messageDesc(file_protos_perfetto_trace_processor_metrics_impl, 2);