//
// 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_calls_unagg.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 { AndroidBlockingCall } from "./android_blocking_call_pb";
import { file_protos_perfetto_metrics_android_android_blocking_call } from "./android_blocking_call_pb";
import type { AndroidProcessMetadata } from "./process_metadata_pb";
import { file_protos_perfetto_metrics_android_process_metadata } from "./process_metadata_pb";
import type { Message } from "@bufbuild/protobuf";

/**
 * Describes the file protos/perfetto/metrics/android/android_blocking_calls_unagg.proto.
 */
export const file_protos_perfetto_metrics_android_android_blocking_calls_unagg: GenFile = /*@__PURE__*/
  fileDesc("CkJwcm90b3MvcGVyZmV0dG8vbWV0cmljcy9hbmRyb2lkL2FuZHJvaWRfYmxvY2tpbmdfY2FsbHNfdW5hZ2cucHJvdG8SD3BlcmZldHRvLnByb3RvcyKaAgoZQW5kcm9pZEJsb2NraW5nQ2FsbHNVbmFnZxJoChtwcm9jZXNzX3dpdGhfYmxvY2tpbmdfY2FsbHMYASADKAsyQy5wZXJmZXR0by5wcm90b3MuQW5kcm9pZEJsb2NraW5nQ2FsbHNVbmFnZy5Qcm9jZXNzV2l0aEJsb2NraW5nQ2FsbHMakgEKGFByb2Nlc3NXaXRoQmxvY2tpbmdDYWxscxI4Cgdwcm9jZXNzGAEgASgLMicucGVyZmV0dG8ucHJvdG9zLkFuZHJvaWRQcm9jZXNzTWV0YWRhdGESPAoOYmxvY2tpbmdfY2FsbHMYAiADKAsyJC5wZXJmZXR0by5wcm90b3MuQW5kcm9pZEJsb2NraW5nQ2FsbA", [file_protos_perfetto_metrics_android_android_blocking_call, file_protos_perfetto_metrics_android_process_metadata]);

/**
 * All blocking calls for a trace. Shows count and total duration for each.
 *
 * @generated from message perfetto.protos.AndroidBlockingCallsUnagg
 */
export type AndroidBlockingCallsUnagg = Message<"perfetto.protos.AndroidBlockingCallsUnagg"> & {
  /**
   * @generated from field: repeated perfetto.protos.AndroidBlockingCallsUnagg.ProcessWithBlockingCalls process_with_blocking_calls = 1;
   */
  processWithBlockingCalls: AndroidBlockingCallsUnagg_ProcessWithBlockingCalls[];
};

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

/**
 * @generated from message perfetto.protos.AndroidBlockingCallsUnagg.ProcessWithBlockingCalls
 */
export type AndroidBlockingCallsUnagg_ProcessWithBlockingCalls = Message<"perfetto.protos.AndroidBlockingCallsUnagg.ProcessWithBlockingCalls"> & {
  /**
   * Details about the process (uid, version, etc)
   *
   * @generated from field: optional perfetto.protos.AndroidProcessMetadata process = 1;
   */
  process?: AndroidProcessMetadata;

  /**
   * List of blocking calls on the process main thread.
   *
   * @generated from field: repeated perfetto.protos.AndroidBlockingCall blocking_calls = 2;
   */
  blockingCalls: AndroidBlockingCall[];
};

/**
 * Describes the message perfetto.protos.AndroidBlockingCallsUnagg.ProcessWithBlockingCalls.
 * Use `create(AndroidBlockingCallsUnagg_ProcessWithBlockingCallsSchema)` to create a new message.
 */
export const AndroidBlockingCallsUnagg_ProcessWithBlockingCallsSchema: GenMessage<AndroidBlockingCallsUnagg_ProcessWithBlockingCalls> = /*@__PURE__*/
  messageDesc(file_protos_perfetto_metrics_android_android_blocking_calls_unagg, 0, 0);

