//
// 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/trace/chrome/chrome_trigger.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/chrome/chrome_trigger.proto.
 */
export const file_protos_perfetto_trace_chrome_chrome_trigger: GenFile = /*@__PURE__*/
  fileDesc("CjFwcm90b3MvcGVyZmV0dG8vdHJhY2UvY2hyb21lL2Nocm9tZV90cmlnZ2VyLnByb3RvEg9wZXJmZXR0by5wcm90b3MiUQoNQ2hyb21lVHJpZ2dlchIUCgx0cmlnZ2VyX25hbWUYASABKAkSGQoRdHJpZ2dlcl9uYW1lX2hhc2gYAiABKAcSDwoHZmxvd19pZBgDIAEoBg");

/**
 * Information about a specific trigger during a background tracing scenario
 * Associated packet timestamps are useful to delimitate a scenario range in a
 * trace. Triggers are also useful for filtering traces.
 *
 * @generated from message perfetto.protos.ChromeTrigger
 */
export type ChromeTrigger = Message<"perfetto.protos.ChromeTrigger"> & {
  /**
   * Name of the trigger which was received.
   *
   * @generated from field: optional string trigger_name = 1;
   */
  triggerName: string;

  /**
   * SHA1 hash of the trigger name.
   *
   * @generated from field: optional fixed32 trigger_name_hash = 2;
   */
  triggerNameHash: number;

  /**
   * Flow id which should terminate on this trigger.
   *
   * @generated from field: optional fixed64 flow_id = 3;
   */
  flowId: bigint;
};

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

