UNPKG

perfetto-protos

Version:

Perfetto protos exposed via protobuf-es for browser and node

81 lines 2.9 kB
import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1"; import type { FieldOptions, MessageOptions } from "@bufbuild/protobuf/wkt"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file protos/perfetto/trace/android/privacy.proto. */ export declare const file_protos_perfetto_trace_android_privacy: GenFile; /** * @generated from message perfetto.protos.PrivacyFlags */ export type PrivacyFlags = Message<"perfetto.protos.PrivacyFlags"> & { /** * @generated from field: optional perfetto.protos.Destination dest = 1 [default = DEST_UNSET]; */ dest: Destination; /** * regex to filter pii sensitive info from a string field type. * * @generated from field: repeated string patterns = 2; */ patterns: string[]; }; /** * Describes the message perfetto.protos.PrivacyFlags. * Use `create(PrivacyFlagsSchema)` to create a new message. */ export declare const PrivacyFlagsSchema: GenMessage<PrivacyFlags>; /** * @generated from enum perfetto.protos.Destination */ export declare enum Destination { /** * Fields or messages annotated with DEST_LOCAL must never be * extracted from the device automatically. They can be accessed * by tools on the developer's workstation or test lab devices. * * @generated from enum value: DEST_LOCAL = 0; */ DEST_LOCAL = 0, /** * Fields or messages annotated with DEST_EXPLICIT can be sent * off the device with an explicit user action. * * @generated from enum value: DEST_EXPLICIT = 100; */ DEST_EXPLICIT = 100, /** * Fields or messages annotated with DEST_AUTOMATIC can be sent by * automatic means, without per-sending user consent. The user * still must have previously accepted a consent to share this * information. * * @generated from enum value: DEST_AUTOMATIC = 200; */ DEST_AUTOMATIC = 200, /** * This is the default value, which could be overridden by other values. * The reason to pick 255 is it fits into one byte. UNSET fields are treated * as EXPLICIT. * * @generated from enum value: DEST_UNSET = 255; */ DEST_UNSET = 255 } /** * Describes the enum perfetto.protos.Destination. */ export declare const DestinationSchema: GenEnum<Destination>; /** * Flags used to annotate a field with right privacy level. * * @generated from extension: optional perfetto.protos.PrivacyFlags privacy = 102672883; */ export declare const privacy: GenExtension<FieldOptions, PrivacyFlags>; /** * Flags used to annotate a message which all its unset primitive fields inhert this tag. * * @generated from extension: optional perfetto.protos.PrivacyFlags msg_privacy = 102672883; */ export declare const msg_privacy: GenExtension<MessageOptions, PrivacyFlags>; //# sourceMappingURL=privacy_pb.d.ts.map