//
// Copyright (C) 2023 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/io_unagg_metric.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/io_unagg_metric.proto.
 */
export const file_protos_perfetto_metrics_android_io_unagg_metric: GenFile = /*@__PURE__*/
  fileDesc("CjVwcm90b3MvcGVyZmV0dG8vbWV0cmljcy9hbmRyb2lkL2lvX3VuYWdnX21ldHJpYy5wcm90bxIPcGVyZmV0dG8ucHJvdG9zIv4BChVBbmRyb2lkSW9VbmFnZ3JlZ2F0ZWQSaAodZjJmc193cml0ZV91bmFnZ3JlZ2F0ZWRfc3RhdHMYASADKAsyQS5wZXJmZXR0by5wcm90b3MuQW5kcm9pZElvVW5hZ2dyZWdhdGVkLkYyZnNXcml0ZVVuYWdncmVhZ2F0ZWRTdGF0GnsKGkYyZnNXcml0ZVVuYWdncmVhZ2F0ZWRTdGF0EgsKA3RpZBgBIAEoDRITCgt0aHJlYWRfbmFtZRgCIAEoCRILCgNwaWQYAyABKA0SFAoMcHJvY2Vzc19uYW1lGAQgASgJEgsKA2lubxgFIAEoAxILCgNkZXYYBiABKAM");

/**
 * IO metrics on Android in unaggregated form.
 * Note: this generates a lot of data so should not be requested unless it
 * is clear that this data is necessary.
 *
 * @generated from message perfetto.protos.AndroidIoUnaggregated
 */
export type AndroidIoUnaggregated = Message<"perfetto.protos.AndroidIoUnaggregated"> & {
  /**
   * F2fs write stats which are grouped by thread and inode.
   *
   * @generated from field: repeated perfetto.protos.AndroidIoUnaggregated.F2fsWriteUnaggreagatedStat f2fs_write_unaggregated_stats = 1;
   */
  f2fsWriteUnaggregatedStats: AndroidIoUnaggregated_F2fsWriteUnaggreagatedStat[];
};

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

/**
 * Next id: 2
 *
 * @generated from message perfetto.protos.AndroidIoUnaggregated.F2fsWriteUnaggreagatedStat
 */
export type AndroidIoUnaggregated_F2fsWriteUnaggreagatedStat = Message<"perfetto.protos.AndroidIoUnaggregated.F2fsWriteUnaggreagatedStat"> & {
  /**
   * @generated from field: optional uint32 tid = 1;
   */
  tid: number;

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

  /**
   * @generated from field: optional uint32 pid = 3;
   */
  pid: number;

  /**
   * @generated from field: optional string process_name = 4;
   */
  processName: string;

  /**
   * @generated from field: optional int64 ino = 5;
   */
  ino: bigint;

  /**
   * @generated from field: optional int64 dev = 6;
   */
  dev: bigint;
};

/**
 * Describes the message perfetto.protos.AndroidIoUnaggregated.F2fsWriteUnaggreagatedStat.
 * Use `create(AndroidIoUnaggregated_F2fsWriteUnaggreagatedStatSchema)` to create a new message.
 */
export const AndroidIoUnaggregated_F2fsWriteUnaggreagatedStatSchema: GenMessage<AndroidIoUnaggregated_F2fsWriteUnaggreagatedStat> = /*@__PURE__*/
  messageDesc(file_protos_perfetto_metrics_android_io_unagg_metric, 0, 0);

