//
// Copyright (C) 2024 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/android_blocking_call_per_frame.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/android_blocking_call_per_frame.proto.
 */
export const file_protos_perfetto_metrics_android_android_blocking_call_per_frame: GenFile = /*@__PURE__*/
  fileDesc("CkVwcm90b3MvcGVyZmV0dG8vbWV0cmljcy9hbmRyb2lkL2FuZHJvaWRfYmxvY2tpbmdfY2FsbF9wZXJfZnJhbWUucHJvdG8SD3BlcmZldHRvLnByb3RvcyLcAQobQW5kcm9pZEJsb2NraW5nQ2FsbFBlckZyYW1lEgwKBG5hbWUYASABKAkSHAoUbWF4X2R1cl9wZXJfZnJhbWVfbXMYAiABKAMSHAoUbWF4X2R1cl9wZXJfZnJhbWVfbnMYAyABKAMSHQoVbWVhbl9kdXJfcGVyX2ZyYW1lX21zGAQgASgDEh0KFW1lYW5fZHVyX3Blcl9mcmFtZV9ucxgFIAEoAxIZChFtYXhfY250X3Blcl9mcmFtZRgGIAEoAxIaChJtZWFuX2NudF9wZXJfZnJhbWUYByABKAE");

/**
 * Blocking call per frame on the main thread.
 *
 * @generated from message perfetto.protos.AndroidBlockingCallPerFrame
 */
export type AndroidBlockingCallPerFrame = Message<"perfetto.protos.AndroidBlockingCallPerFrame"> & {
  /**
   * Name of the blocking call
   *
   * @generated from field: optional string name = 1;
   */
  name: string;

  /**
   * Maximal duration within a frame.
   *
   * @generated from field: optional int64 max_dur_per_frame_ms = 2;
   */
  maxDurPerFrameMs: bigint;

  /**
   * Maximal duration within a frame in nanoseconds
   *
   * @generated from field: optional int64 max_dur_per_frame_ns = 3;
   */
  maxDurPerFrameNs: bigint;

  /**
   * Mean duration within the CUJ
   *
   * @generated from field: optional int64 mean_dur_per_frame_ms = 4;
   */
  meanDurPerFrameMs: bigint;

  /**
   * Mean duration within the CUJ in nanoseconds
   *
   * @generated from field: optional int64 mean_dur_per_frame_ns = 5;
   */
  meanDurPerFrameNs: bigint;

  /**
   * Max count in a frame
   *
   * @generated from field: optional int64 max_cnt_per_frame = 6;
   */
  maxCntPerFrame: bigint;

  /**
   * Mean count in a frame
   *
   * @generated from field: optional double mean_cnt_per_frame = 7;
   */
  meanCntPerFrame: number;
};

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

