//
// Copyright (C) 2017 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/displayinfo.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 { DisplayCutoutProto } from "./displaycutout_pb";
import { file_protos_perfetto_trace_android_view_displaycutout } from "./displaycutout_pb";
import type { Message } from "@bufbuild/protobuf";

/**
 * Describes the file protos/perfetto/trace/android/view/displayinfo.proto.
 */
export const file_protos_perfetto_trace_android_view_displayinfo: GenFile = /*@__PURE__*/
  fileDesc("CjRwcm90b3MvcGVyZmV0dG8vdHJhY2UvYW5kcm9pZC92aWV3L2Rpc3BsYXlpbmZvLnByb3RvEg9wZXJmZXR0by5wcm90b3MiugEKEERpc3BsYXlJbmZvUHJvdG8SFQoNbG9naWNhbF93aWR0aBgBIAEoBRIWCg5sb2dpY2FsX2hlaWdodBgCIAEoBRIRCglhcHBfd2lkdGgYAyABKAUSEgoKYXBwX2hlaWdodBgEIAEoBRIMCgRuYW1lGAUgASgJEg0KBWZsYWdzGAYgASgFEjMKBmN1dG91dBgHIAEoCzIjLnBlcmZldHRvLnByb3Rvcy5EaXNwbGF5Q3V0b3V0UHJvdG8", [file_protos_perfetto_trace_android_view_displaycutout]);

/**
 * Represents DisplayInfo. Describes the characteristics of a particular
 * logical display.
 *
 * @generated from message perfetto.protos.DisplayInfoProto
 */
export type DisplayInfoProto = Message<"perfetto.protos.DisplayInfoProto"> & {
  /**
   * @generated from field: optional int32 logical_width = 1;
   */
  logicalWidth: number;

  /**
   * @generated from field: optional int32 logical_height = 2;
   */
  logicalHeight: number;

  /**
   * @generated from field: optional int32 app_width = 3;
   */
  appWidth: number;

  /**
   * @generated from field: optional int32 app_height = 4;
   */
  appHeight: number;

  /**
   * The human-readable name of the display.
   * Eg: "Built-in Screen"
   *
   * @generated from field: optional string name = 5;
   */
  name: string;

  /**
   * @generated from field: optional int32 flags = 6;
   */
  flags: number;

  /**
   * @generated from field: optional perfetto.protos.DisplayCutoutProto cutout = 7;
   */
  cutout?: DisplayCutoutProto;
};

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

