//
// Copyright (C) 2018 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/remote_animation_target.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 { WindowConfigurationProto } from "../app/window_configuration_pb";
import { file_protos_perfetto_trace_android_app_window_configuration } from "../app/window_configuration_pb";
import type { PointProto } from "../graphics/point_pb";
import { file_protos_perfetto_trace_android_graphics_point } from "../graphics/point_pb";
import type { RectProto } from "../graphics/rect_pb";
import { file_protos_perfetto_trace_android_graphics_rect } from "../graphics/rect_pb";
import type { SurfaceControlProto } from "./surfacecontrol_pb";
import { file_protos_perfetto_trace_android_view_surfacecontrol } from "./surfacecontrol_pb";
import type { Message } from "@bufbuild/protobuf";

/**
 * Describes the file protos/perfetto/trace/android/view/remote_animation_target.proto.
 */
export const file_protos_perfetto_trace_android_view_remote_animation_target: GenFile = /*@__PURE__*/
  fileDesc("CkBwcm90b3MvcGVyZmV0dG8vdHJhY2UvYW5kcm9pZC92aWV3L3JlbW90ZV9hbmltYXRpb25fdGFyZ2V0LnByb3RvEg9wZXJmZXR0by5wcm90b3MilAUKGlJlbW90ZUFuaW1hdGlvblRhcmdldFByb3RvEg8KB3Rhc2tfaWQYASABKAUSDAoEbW9kZRgCIAEoBRIzCgVsZWFzaBgDIAEoCzIkLnBlcmZldHRvLnByb3Rvcy5TdXJmYWNlQ29udHJvbFByb3RvEhYKDmlzX3RyYW5zbHVjZW50GAQgASgIEi0KCWNsaXBfcmVjdBgFIAEoCzIaLnBlcmZldHRvLnByb3Rvcy5SZWN0UHJvdG8SMgoOY29udGVudF9pbnNldHMYBiABKAsyGi5wZXJmZXR0by5wcm90b3MuUmVjdFByb3RvEhoKEnByZWZpeF9vcmRlcl9pbmRleBgHIAEoBRItCghwb3NpdGlvbhgIIAEoCzIbLnBlcmZldHRvLnByb3Rvcy5Qb2ludFByb3RvEjsKF3NvdXJjZV9jb250YWluZXJfYm91bmRzGAkgASgLMhoucGVyZmV0dG8ucHJvdG9zLlJlY3RQcm90bxJHChR3aW5kb3dfY29uZmlndXJhdGlvbhgKIAEoCzIpLnBlcmZldHRvLnByb3Rvcy5XaW5kb3dDb25maWd1cmF0aW9uUHJvdG8SOQoLc3RhcnRfbGVhc2gYCyABKAsyJC5wZXJmZXR0by5wcm90b3MuU3VyZmFjZUNvbnRyb2xQcm90bxIwCgxzdGFydF9ib3VuZHMYDCABKAsyGi5wZXJmZXR0by5wcm90b3MuUmVjdFByb3RvEjAKDGxvY2FsX2JvdW5kcxgNIAEoCzIaLnBlcmZldHRvLnByb3Rvcy5SZWN0UHJvdG8SNwoTc2NyZWVuX3NwYWNlX2JvdW5kcxgOIAEoCzIaLnBlcmZldHRvLnByb3Rvcy5SZWN0UHJvdG8", [file_protos_perfetto_trace_android_app_window_configuration, file_protos_perfetto_trace_android_graphics_point, file_protos_perfetto_trace_android_graphics_rect, file_protos_perfetto_trace_android_view_surfacecontrol]);

/**
 * Proto representation for android.view.RemoteAnimationTarget.java class
 *
 * @generated from message perfetto.protos.RemoteAnimationTargetProto
 */
export type RemoteAnimationTargetProto = Message<"perfetto.protos.RemoteAnimationTargetProto"> & {
  /**
   * @generated from field: optional int32 task_id = 1;
   */
  taskId: number;

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

  /**
   * @generated from field: optional perfetto.protos.SurfaceControlProto leash = 3;
   */
  leash?: SurfaceControlProto;

  /**
   * @generated from field: optional bool is_translucent = 4;
   */
  isTranslucent: boolean;

  /**
   * @generated from field: optional perfetto.protos.RectProto clip_rect = 5;
   */
  clipRect?: RectProto;

  /**
   * @generated from field: optional perfetto.protos.RectProto content_insets = 6;
   */
  contentInsets?: RectProto;

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

  /**
   * The source position of the app, in screen spaces coordinates. If the
   * position of the leash is modified from the controlling app, any animation
   * transform needs to be offset by this amount.
   *
   * @generated from field: optional perfetto.protos.PointProto position = 8;
   */
  position?: PointProto;

  /**
   * @generated from field: optional perfetto.protos.RectProto source_container_bounds = 9;
   */
  sourceContainerBounds?: RectProto;

  /**
   * @generated from field: optional perfetto.protos.WindowConfigurationProto window_configuration = 10;
   */
  windowConfiguration?: WindowConfigurationProto;

  /**
   * @generated from field: optional perfetto.protos.SurfaceControlProto start_leash = 11;
   */
  startLeash?: SurfaceControlProto;

  /**
   * @generated from field: optional perfetto.protos.RectProto start_bounds = 12;
   */
  startBounds?: RectProto;

  /**
   * @generated from field: optional perfetto.protos.RectProto local_bounds = 13;
   */
  localBounds?: RectProto;

  /**
   * @generated from field: optional perfetto.protos.RectProto screen_space_bounds = 14;
   */
  screenSpaceBounds?: RectProto;
};

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

