//
// 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/viewcapture.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/android/viewcapture.proto.
 */
export const file_protos_perfetto_trace_android_viewcapture: GenFile = /*@__PURE__*/
  fileDesc("Ci9wcm90b3MvcGVyZmV0dG8vdHJhY2UvYW5kcm9pZC92aWV3Y2FwdHVyZS5wcm90bxIPcGVyZmV0dG8ucHJvdG9zIusDCgtWaWV3Q2FwdHVyZRIYChBwYWNrYWdlX25hbWVfaWlkGAEgASgFEhcKD3dpbmRvd19uYW1lX2lpZBgCIAEoBRIwCgV2aWV3cxgDIAMoCzIhLnBlcmZldHRvLnByb3Rvcy5WaWV3Q2FwdHVyZS5WaWV3GvYCCgRWaWV3EgoKAmlkGAEgASgFEhEKCXBhcmVudF9pZBgCIAEoBRIQCghoYXNoY29kZRgDIAEoBRITCgt2aWV3X2lkX2lpZBgEIAEoBRIWCg5jbGFzc19uYW1lX2lpZBgFIAEoBRIMCgRsZWZ0GAYgASgFEgsKA3RvcBgHIAEoBRINCgV3aWR0aBgIIAEoBRIOCgZoZWlnaHQYCSABKAUSEAoIc2Nyb2xsX3gYCiABKAUSEAoIc2Nyb2xsX3kYCyABKAUSFQoNdHJhbnNsYXRpb25feBgMIAEoAhIVCg10cmFuc2xhdGlvbl95GA0gASgCEg8KB3NjYWxlX3gYDiABKAISDwoHc2NhbGVfeRgPIAEoAhINCgVhbHBoYRgQIAEoAhIVCg13aWxsX25vdF9kcmF3GBEgASgIEhUKDWNsaXBfY2hpbGRyZW4YEiABKAgSEgoKdmlzaWJpbGl0eRgTIAEoBRIRCgllbGV2YXRpb24YFCABKAI");

/**
 * @generated from message perfetto.protos.ViewCapture
 */
export type ViewCapture = Message<"perfetto.protos.ViewCapture"> & {
  /**
   * @generated from field: optional int32 package_name_iid = 1;
   */
  packageNameIid: number;

  /**
   * @generated from field: optional int32 window_name_iid = 2;
   */
  windowNameIid: number;

  /**
   * @generated from field: repeated perfetto.protos.ViewCapture.View views = 3;
   */
  views: ViewCapture_View[];
};

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

/**
 * @generated from message perfetto.protos.ViewCapture.View
 */
export type ViewCapture_View = Message<"perfetto.protos.ViewCapture.View"> & {
  /**
   * @generated from field: optional int32 id = 1;
   */
  id: number;

  /**
   * @generated from field: optional int32 parent_id = 2;
   */
  parentId: number;

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

  /**
   * @generated from field: optional int32 view_id_iid = 4;
   */
  viewIdIid: number;

  /**
   * @generated from field: optional int32 class_name_iid = 5;
   */
  classNameIid: number;

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

  /**
   * @generated from field: optional int32 top = 7;
   */
  top: number;

  /**
   * @generated from field: optional int32 width = 8;
   */
  width: number;

  /**
   * @generated from field: optional int32 height = 9;
   */
  height: number;

  /**
   * @generated from field: optional int32 scroll_x = 10;
   */
  scrollX: number;

  /**
   * @generated from field: optional int32 scroll_y = 11;
   */
  scrollY: number;

  /**
   * @generated from field: optional float translation_x = 12;
   */
  translationX: number;

  /**
   * @generated from field: optional float translation_y = 13;
   */
  translationY: number;

  /**
   * @generated from field: optional float scale_x = 14;
   */
  scaleX: number;

  /**
   * @generated from field: optional float scale_y = 15;
   */
  scaleY: number;

  /**
   * @generated from field: optional float alpha = 16;
   */
  alpha: number;

  /**
   * @generated from field: optional bool will_not_draw = 17;
   */
  willNotDraw: boolean;

  /**
   * @generated from field: optional bool clip_children = 18;
   */
  clipChildren: boolean;

  /**
   * @generated from field: optional int32 visibility = 19;
   */
  visibility: number;

  /**
   * @generated from field: optional float elevation = 20;
   */
  elevation: number;
};

/**
 * Describes the message perfetto.protos.ViewCapture.View.
 * Use `create(ViewCapture_ViewSchema)` to create a new message.
 */
export const ViewCapture_ViewSchema: GenMessage<ViewCapture_View> = /*@__PURE__*/
  messageDesc(file_protos_perfetto_trace_android_viewcapture, 0, 0);

