//
// Copyright (C) 2020 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/trace/track_event/chrome_message_pump.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/trace/track_event/chrome_message_pump.proto.
 */
export const file_protos_perfetto_trace_track_event_chrome_message_pump: GenFile = /*@__PURE__*/
  fileDesc("Cjtwcm90b3MvcGVyZmV0dG8vdHJhY2UvdHJhY2tfZXZlbnQvY2hyb21lX21lc3NhZ2VfcHVtcC5wcm90bxIPcGVyZmV0dG8ucHJvdG9zIlQKEUNocm9tZU1lc3NhZ2VQdW1wEh4KFnNlbnRfbWVzc2FnZXNfaW5fcXVldWUYASABKAgSHwoXaW9faGFuZGxlcl9sb2NhdGlvbl9paWQYAiABKAQ");

/**
 * Details about Chrome message pump events
 *
 * @generated from message perfetto.protos.ChromeMessagePump
 */
export type ChromeMessagePump = Message<"perfetto.protos.ChromeMessagePump"> & {
  /**
   * True if there are sent messages in the queue.
   *
   * @generated from field: optional bool sent_messages_in_queue = 1;
   */
  sentMessagesInQueue: boolean;

  /**
   * Interned SourceLocation of IO handler that MessagePumpForIO is about to
   * invoke.
   *
   * @generated from field: optional uint64 io_handler_location_iid = 2;
   */
  ioHandlerLocationIid: bigint;
};

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

