// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

edition = "2024";

option optimize_for = LITE_RUNTIME;

package lens;

import "lens_overlay_geometry.proto";
import "lens_overlay_interaction_request_metadata.proto";
import "lens_overlay_visual_search_interaction_log_data.proto";

option features.field_presence = IMPLICIT;

// Metadata associated with a Lens Visual Search request.
message LensOverlayVisualSearchInteractionData {
  // The type of interaction.
  LensOverlayInteractionRequestMetadata.Type interaction_type = 1;

  // The selected region for this interaction, instead of the object id.
  ZoomedCrop zoomed_crop = 7;

  // The selected object id for this interaction, instead of the zoomed crop.
  // Currently unsupported and should not be populated.
  string object_id = 3;

  // The selected text for this interaction.
  message TextSelect {
    // The selected texts string for a text selection interaction. This is set
    // when sending a text selection interaction from Lens surfaces.
    string selected_texts = 5;

    reserved 1, 2, 3, 4;
  }

  TextSelect text_select = 4;

  // Logging-specific data.
  LensOverlayVisualSearchInteractionLogData log_data = 5;

  reserved 2, 6;
}
