//
// 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/monitor_contention_agg_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/monitor_contention_agg_metric.proto.
 */
export const file_protos_perfetto_metrics_android_monitor_contention_agg_metric: GenFile = /*@__PURE__*/
  fileDesc("CkNwcm90b3MvcGVyZmV0dG8vbWV0cmljcy9hbmRyb2lkL21vbml0b3JfY29udGVudGlvbl9hZ2dfbWV0cmljLnByb3RvEg9wZXJmZXR0by5wcm90b3MitAIKIUFuZHJvaWRNb25pdG9yQ29udGVudGlvbkFnZ01ldHJpYxJiChNwcm9jZXNzX2FnZ3JlZ2F0aW9uGAEgAygLMkUucGVyZmV0dG8ucHJvdG9zLkFuZHJvaWRNb25pdG9yQ29udGVudGlvbkFnZ01ldHJpYy5Qcm9jZXNzQWdncmVnYXRpb24aqgEKElByb2Nlc3NBZ2dyZWdhdGlvbhIMCgRuYW1lGAEgASgJEh4KFnRvdGFsX2NvbnRlbnRpb25fY291bnQYAiABKAMSHAoUdG90YWxfY29udGVudGlvbl9kdXIYAyABKAMSJAocbWFpbl90aHJlYWRfY29udGVudGlvbl9jb3VudBgEIAEoAxIiChptYWluX3RocmVhZF9jb250ZW50aW9uX2R1chgFIAEoAw");

/**
 * This metric provides aggregated information about monitor contention graph
 * in a trace
 *
 * @generated from message perfetto.protos.AndroidMonitorContentionAggMetric
 */
export type AndroidMonitorContentionAggMetric = Message<"perfetto.protos.AndroidMonitorContentionAggMetric"> & {
  /**
   * @generated from field: repeated perfetto.protos.AndroidMonitorContentionAggMetric.ProcessAggregation process_aggregation = 1;
   */
  processAggregation: AndroidMonitorContentionAggMetric_ProcessAggregation[];
};

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

/**
 * Next id: 2
 * Stats for Monitor contention aggregated by process.
 *
 * @generated from message perfetto.protos.AndroidMonitorContentionAggMetric.ProcessAggregation
 */
export type AndroidMonitorContentionAggMetric_ProcessAggregation = Message<"perfetto.protos.AndroidMonitorContentionAggMetric.ProcessAggregation"> & {
  /**
   * @generated from field: optional string name = 1;
   */
  name: string;

  /**
   * @generated from field: optional int64 total_contention_count = 2;
   */
  totalContentionCount: bigint;

  /**
   * @generated from field: optional int64 total_contention_dur = 3;
   */
  totalContentionDur: bigint;

  /**
   * @generated from field: optional int64 main_thread_contention_count = 4;
   */
  mainThreadContentionCount: bigint;

  /**
   * @generated from field: optional int64 main_thread_contention_dur = 5;
   */
  mainThreadContentionDur: bigint;
};

/**
 * Describes the message perfetto.protos.AndroidMonitorContentionAggMetric.ProcessAggregation.
 * Use `create(AndroidMonitorContentionAggMetric_ProcessAggregationSchema)` to create a new message.
 */
export const AndroidMonitorContentionAggMetric_ProcessAggregationSchema: GenMessage<AndroidMonitorContentionAggMetric_ProcessAggregation> = /*@__PURE__*/
  messageDesc(file_protos_perfetto_metrics_android_monitor_contention_agg_metric, 0, 0);

