//
// 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/metrics/android/task_names.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/metrics/android/task_names.proto.
 */
export const file_protos_perfetto_metrics_android_task_names: GenFile = /*@__PURE__*/
  fileDesc("CjBwcm90b3MvcGVyZmV0dG8vbWV0cmljcy9hbmRyb2lkL3Rhc2tfbmFtZXMucHJvdG8SD3BlcmZldHRvLnByb3RvcyLEAQoQQW5kcm9pZFRhc2tOYW1lcxI6Cgdwcm9jZXNzGAEgAygLMikucGVyZmV0dG8ucHJvdG9zLkFuZHJvaWRUYXNrTmFtZXMuUHJvY2Vzcxp0CgdQcm9jZXNzEgsKA3BpZBgBIAEoAxIUCgxwcm9jZXNzX25hbWUYAiABKAkSEwoLdGhyZWFkX25hbWUYAyADKAkSCwoDdWlkGAQgASgDEhgKEHVpZF9wYWNrYWdlX25hbWUYBSADKAlKBAgGEAdKBAgHEAg");

/**
 * @generated from message perfetto.protos.AndroidTaskNames
 */
export type AndroidTaskNames = Message<"perfetto.protos.AndroidTaskNames"> & {
  /**
   * @generated from field: repeated perfetto.protos.AndroidTaskNames.Process process = 1;
   */
  process: AndroidTaskNames_Process[];
};

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

/**
 * @generated from message perfetto.protos.AndroidTaskNames.Process
 */
export type AndroidTaskNames_Process = Message<"perfetto.protos.AndroidTaskNames.Process"> & {
  /**
   * @generated from field: optional int64 pid = 1;
   */
  pid: bigint;

  /**
   * Process name.
   *
   * @generated from field: optional string process_name = 2;
   */
  processName: string;

  /**
   * Names of all threads for this process.
   *
   * @generated from field: repeated string thread_name = 3;
   */
  threadName: string[];

  /**
   * User id under which this process runs.
   *
   * @generated from field: optional int64 uid = 4;
   */
  uid: bigint;

  /**
   * Packages matching the process uid.
   *
   * @generated from field: repeated string uid_package_name = 5;
   */
  uidPackageName: string[];
};

/**
 * Describes the message perfetto.protos.AndroidTaskNames.Process.
 * Use `create(AndroidTaskNames_ProcessSchema)` to create a new message.
 */
export const AndroidTaskNames_ProcessSchema: GenMessage<AndroidTaskNames_Process> = /*@__PURE__*/
  messageDesc(file_protos_perfetto_metrics_android_task_names, 0, 0);

