//
// 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_broadcasts_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/android_broadcasts_metric.proto.
 */
export const file_protos_perfetto_metrics_android_android_broadcasts_metric: GenFile = /*@__PURE__*/
  fileDesc("Cj9wcm90b3MvcGVyZmV0dG8vbWV0cmljcy9hbmRyb2lkL2FuZHJvaWRfYnJvYWRjYXN0c19tZXRyaWMucHJvdG8SD3BlcmZldHRvLnByb3RvcyLxBAoXQW5kcm9pZEJyb2FkY2FzdHNNZXRyaWMSYwoXcHJvY2Vzc19jb3VudF9ieV9pbnRlbnQYASADKAsyQi5wZXJmZXR0by5wcm90b3MuQW5kcm9pZEJyb2FkY2FzdHNNZXRyaWMuQnJvYWRjYXN0Q291bnRBZ2dyZWdhdGlvbhJmChpicm9hZGNhc3RfY291bnRfYnlfcHJvY2VzcxgCIAMoCzJCLnBlcmZldHRvLnByb3Rvcy5BbmRyb2lkQnJvYWRjYXN0c01ldHJpYy5Ccm9hZGNhc3RDb3VudEFnZ3JlZ2F0aW9uEm4KH2Jyb2RjYXN0X2R1cmF0aW9uX2FnZ19ieV9pbnRlbnQYAyADKAsyRS5wZXJmZXR0by5wcm90b3MuQW5kcm9pZEJyb2FkY2FzdHNNZXRyaWMuQnJvYWRjYXN0RHVyYXRpb25BZ2dyZWdhdGlvbhJvCiBicm9kY2FzdF9kdXJhdGlvbl9hZ2dfYnlfcHJvY2VzcxgEIAMoCzJFLnBlcmZldHRvLnByb3Rvcy5BbmRyb2lkQnJvYWRjYXN0c01ldHJpYy5Ccm9hZGNhc3REdXJhdGlvbkFnZ3JlZ2F0aW9uGjgKGUJyb2FkY2FzdENvdW50QWdncmVnYXRpb24SDAoEbmFtZRgBIAEoCRINCgVjb3VudBgCIAEoAxpuChxCcm9hZGNhc3REdXJhdGlvbkFnZ3JlZ2F0aW9uEgwKBG5hbWUYASABKAkSFAoMYXZnX2R1cmF0aW9uGAIgASgBEhQKDG1heF9kdXJhdGlvbhgDIAEoAxIUCgxzdW1fZHVyYXRpb24YBCABKAM");

/**
 * Provides aggregated information about broadcasts
 *
 * @generated from message perfetto.protos.AndroidBroadcastsMetric
 */
export type AndroidBroadcastsMetric = Message<"perfetto.protos.AndroidBroadcastsMetric"> & {
  /**
   * @generated from field: repeated perfetto.protos.AndroidBroadcastsMetric.BroadcastCountAggregation process_count_by_intent = 1;
   */
  processCountByIntent: AndroidBroadcastsMetric_BroadcastCountAggregation[];

  /**
   * @generated from field: repeated perfetto.protos.AndroidBroadcastsMetric.BroadcastCountAggregation broadcast_count_by_process = 2;
   */
  broadcastCountByProcess: AndroidBroadcastsMetric_BroadcastCountAggregation[];

  /**
   * @generated from field: repeated perfetto.protos.AndroidBroadcastsMetric.BroadcastDurationAggregation brodcast_duration_agg_by_intent = 3;
   */
  brodcastDurationAggByIntent: AndroidBroadcastsMetric_BroadcastDurationAggregation[];

  /**
   * @generated from field: repeated perfetto.protos.AndroidBroadcastsMetric.BroadcastDurationAggregation brodcast_duration_agg_by_process = 4;
   */
  brodcastDurationAggByProcess: AndroidBroadcastsMetric_BroadcastDurationAggregation[];
};

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

/**
 * Next id: 5
 * Stats for Broadcasts aggregated with count.
 *
 * @generated from message perfetto.protos.AndroidBroadcastsMetric.BroadcastCountAggregation
 */
export type AndroidBroadcastsMetric_BroadcastCountAggregation = Message<"perfetto.protos.AndroidBroadcastsMetric.BroadcastCountAggregation"> & {
  /**
   * @generated from field: optional string name = 1;
   */
  name: string;

  /**
   * @generated from field: optional int64 count = 2;
   */
  count: bigint;
};

/**
 * Describes the message perfetto.protos.AndroidBroadcastsMetric.BroadcastCountAggregation.
 * Use `create(AndroidBroadcastsMetric_BroadcastCountAggregationSchema)` to create a new message.
 */
export const AndroidBroadcastsMetric_BroadcastCountAggregationSchema: GenMessage<AndroidBroadcastsMetric_BroadcastCountAggregation> = /*@__PURE__*/
  messageDesc(file_protos_perfetto_metrics_android_android_broadcasts_metric, 0, 0);

/**
 * Stats for Broadcasts aggregated with duration.
 *
 * @generated from message perfetto.protos.AndroidBroadcastsMetric.BroadcastDurationAggregation
 */
export type AndroidBroadcastsMetric_BroadcastDurationAggregation = Message<"perfetto.protos.AndroidBroadcastsMetric.BroadcastDurationAggregation"> & {
  /**
   * @generated from field: optional string name = 1;
   */
  name: string;

  /**
   * @generated from field: optional double avg_duration = 2;
   */
  avgDuration: number;

  /**
   * @generated from field: optional int64 max_duration = 3;
   */
  maxDuration: bigint;

  /**
   * @generated from field: optional int64 sum_duration = 4;
   */
  sumDuration: bigint;
};

/**
 * Describes the message perfetto.protos.AndroidBroadcastsMetric.BroadcastDurationAggregation.
 * Use `create(AndroidBroadcastsMetric_BroadcastDurationAggregationSchema)` to create a new message.
 */
export const AndroidBroadcastsMetric_BroadcastDurationAggregationSchema: GenMessage<AndroidBroadcastsMetric_BroadcastDurationAggregation> = /*@__PURE__*/
  messageDesc(file_protos_perfetto_metrics_android_android_broadcasts_metric, 0, 1);

