perfetto-protos
Version:
Perfetto protos exposed via protobuf-es for browser and node
119 lines (104 loc) • 4.66 kB
text/typescript
//
// Copyright (C) 2016 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/privacy.proto (package perfetto.protos, syntax proto2)
/* eslint-disable */
import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { enumDesc, extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
import type { FieldOptions, MessageOptions } from "@bufbuild/protobuf/wkt";
import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file protos/perfetto/trace/android/privacy.proto.
*/
export const file_protos_perfetto_trace_android_privacy: GenFile = /*@__PURE__*/
fileDesc("Citwcm90b3MvcGVyZmV0dG8vdHJhY2UvYW5kcm9pZC9wcml2YWN5LnByb3RvEg9wZXJmZXR0by5wcm90b3MiWAoMUHJpdmFjeUZsYWdzEjYKBGRlc3QYASABKA4yHC5wZXJmZXR0by5wcm90b3MuRGVzdGluYXRpb246CkRFU1RfVU5TRVQSEAoIcGF0dGVybnMYAiADKAkqVgoLRGVzdGluYXRpb24SDgoKREVTVF9MT0NBTBAAEhEKDURFU1RfRVhQTElDSVQQZBITCg5ERVNUX0FVVE9NQVRJQxDIARIPCgpERVNUX1VOU0VUEP8BOlkKB3ByaXZhY3kSHS5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zGPPT+jAgASgLMh0ucGVyZmV0dG8ucHJvdG9zLlByaXZhY3lGbGFnc1IHcHJpdmFjeTpiCgttc2dfcHJpdmFjeRIfLmdvb2dsZS5wcm90b2J1Zi5NZXNzYWdlT3B0aW9ucxjz0/owIAEoCzIdLnBlcmZldHRvLnByb3Rvcy5Qcml2YWN5RmxhZ3NSCm1zZ1ByaXZhY3k", [file_google_protobuf_descriptor]);
/**
* @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 const PrivacyFlagsSchema: GenMessage<PrivacyFlags> = /*@__PURE__*/
messageDesc(file_protos_perfetto_trace_android_privacy, 0);
/**
* @generated from enum perfetto.protos.Destination
*/
export 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 const DestinationSchema: GenEnum<Destination> = /*@__PURE__*/
enumDesc(file_protos_perfetto_trace_android_privacy, 0);
/**
* Flags used to annotate a field with right privacy level.
*
* @generated from extension: optional perfetto.protos.PrivacyFlags privacy = 102672883;
*/
export const privacy: GenExtension<FieldOptions, PrivacyFlags> = /*@__PURE__*/
extDesc(file_protos_perfetto_trace_android_privacy, 0);
/**
* 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 const msg_privacy: GenExtension<MessageOptions, PrivacyFlags> = /*@__PURE__*/
extDesc(file_protos_perfetto_trace_android_privacy, 1);