//
// 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/android/view/insetsstate.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 { RectProto } from "../graphics/rect_pb";
import { file_protos_perfetto_trace_android_graphics_rect } from "../graphics/rect_pb";
import type { DisplayCutoutProto } from "./displaycutout_pb";
import { file_protos_perfetto_trace_android_view_displaycutout } from "./displaycutout_pb";
import type { InsetsSourceProto } from "./insetssource_pb";
import { file_protos_perfetto_trace_android_view_insetssource } from "./insetssource_pb";
import type { Message } from "@bufbuild/protobuf";

/**
 * Describes the file protos/perfetto/trace/android/view/insetsstate.proto.
 */
export const file_protos_perfetto_trace_android_view_insetsstate: GenFile = /*@__PURE__*/
  fileDesc("CjRwcm90b3MvcGVyZmV0dG8vdHJhY2UvYW5kcm9pZC92aWV3L2luc2V0c3N0YXRlLnByb3RvEg9wZXJmZXR0by5wcm90b3MitwEKEEluc2V0c1N0YXRlUHJvdG8SMwoHc291cmNlcxgBIAMoCzIiLnBlcmZldHRvLnByb3Rvcy5JbnNldHNTb3VyY2VQcm90bxIxCg1kaXNwbGF5X2ZyYW1lGAIgASgLMhoucGVyZmV0dG8ucHJvdG9zLlJlY3RQcm90bxI7Cg5kaXNwbGF5X2N1dG91dBgDIAEoCzIjLnBlcmZldHRvLnByb3Rvcy5EaXNwbGF5Q3V0b3V0UHJvdG8", [file_protos_perfetto_trace_android_graphics_rect, file_protos_perfetto_trace_android_view_displaycutout, file_protos_perfetto_trace_android_view_insetssource]);

/**
 * Represents a {@link android.view.InsetsState} object
 *
 * @generated from message perfetto.protos.InsetsStateProto
 */
export type InsetsStateProto = Message<"perfetto.protos.InsetsStateProto"> & {
  /**
   * @generated from field: repeated perfetto.protos.InsetsSourceProto sources = 1;
   */
  sources: InsetsSourceProto[];

  /**
   * @generated from field: optional perfetto.protos.RectProto display_frame = 2;
   */
  displayFrame?: RectProto;

  /**
   * @generated from field: optional perfetto.protos.DisplayCutoutProto display_cutout = 3;
   */
  displayCutout?: DisplayCutoutProto;
};

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

