chromium/third_party/lens_server_proto/lens_overlay_visual_search_interaction_log_data.proto

// 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.

syntax = 'proto2';

option optimize_for = LITE_RUNTIME;

package lens;

import "lens_overlay_client_platform.proto";
import "lens_overlay_filters.proto";
import "lens_overlay_selection_type.proto";

// Log data for a Lens Overlay visual search interaction.
message LensOverlayVisualSearchInteractionLogData {
  // Filter related metadata.
  optional FilterData filter_data = 1;

  // User Selection metadata.
  optional UserSelectionData user_selection_data = 2;

  // Whether the query is a parent query.
  optional bool is_parent_query = 3;

  // The client platform this query was originated from.
  optional ClientPlatform client_platform = 4;
}

// Filter data.
// Next ID: 2
message FilterData {
  // The filter type associated with this interaction (auto, translate, etc.).
  optional LensOverlayFilterType filter_type = 1;
}

// User selection data.
// Next ID: 2
message UserSelectionData {
  // The selection type associated with this interaction (e.g. region search).
  optional LensOverlaySelectionType selection_type = 1;
}