//
// 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/common/track_event_descriptor.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/common/track_event_descriptor.proto.
 */
export const file_protos_perfetto_common_track_event_descriptor: GenFile = /*@__PURE__*/
  fileDesc("CjNwcm90b3MvcGVyZmV0dG8vY29tbW9uL3RyYWNrX2V2ZW50X2Rlc2NyaXB0b3IucHJvdG8SD3BlcmZldHRvLnByb3RvcyJFChJUcmFja0V2ZW50Q2F0ZWdvcnkSDAoEbmFtZRgBIAEoCRITCgtkZXNjcmlwdGlvbhgCIAEoCRIMCgR0YWdzGAMgAygJIlkKFFRyYWNrRXZlbnREZXNjcmlwdG9yEkEKFGF2YWlsYWJsZV9jYXRlZ29yaWVzGAEgAygLMiMucGVyZmV0dG8ucHJvdG9zLlRyYWNrRXZlbnRDYXRlZ29yeQ");

/**
 * @generated from message perfetto.protos.TrackEventCategory
 */
export type TrackEventCategory = Message<"perfetto.protos.TrackEventCategory"> & {
  /**
   * @generated from field: optional string name = 1;
   */
  name: string;

  /**
   * @generated from field: optional string description = 2;
   */
  description: string;

  /**
   * @generated from field: repeated string tags = 3;
   */
  tags: string[];
};

/**
 * Describes the message perfetto.protos.TrackEventCategory.
 * Use `create(TrackEventCategorySchema)` to create a new message.
 */
export const TrackEventCategorySchema: GenMessage<TrackEventCategory> = /*@__PURE__*/
  messageDesc(file_protos_perfetto_common_track_event_descriptor, 0);

/**
 * @generated from message perfetto.protos.TrackEventDescriptor
 */
export type TrackEventDescriptor = Message<"perfetto.protos.TrackEventDescriptor"> & {
  /**
   * @generated from field: repeated perfetto.protos.TrackEventCategory available_categories = 1;
   */
  availableCategories: TrackEventCategory[];
};

/**
 * Describes the message perfetto.protos.TrackEventDescriptor.
 * Use `create(TrackEventDescriptorSchema)` to create a new message.
 */
export const TrackEventDescriptorSchema: GenMessage<TrackEventDescriptor> = /*@__PURE__*/
  messageDesc(file_protos_perfetto_common_track_event_descriptor, 1);

