// 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 = "2023";

option optimize_for = LITE_RUNTIME;

package lens;

import "lens_overlay_phase_latencies_metadata.proto";

message LensOverlayClientLogs {
  // The phase latency metadata for any image preprocessing required for the
  // request.
  LensOverlayPhaseLatenciesMetadata phase_latencies_metadata = 1;

  enum LensOverlayEntryPoint {
    option features.enum_type = CLOSED;

    UNKNOWN_ENTRY_POINT = 0;
    APP_MENU = 1;
    PAGE_CONTEXT_MENU = 2;
    IMAGE_CONTEXT_MENU = 3;
    OMNIBOX_BUTTON = 4;
    TOOLBAR_BUTTON = 5;
    FIND_IN_PAGE = 6;
    OMNIBOX_PAGE_ACTION = 7;
    OMNIBOX_CONTEXTUAL_SUGGESTION = 8;
    HOMEWORK_ACTION_CHIP = 9;
    TEXT_CONTEXT_MENU = 10;
    VIDEO_CONTEXT_MENU = 11;
  }

  // The Lens Overlay entry point used to access lens.
  LensOverlayEntryPoint lens_overlay_entry_point = 2;

  // A unique identifier for associating events logged by lens asynchronously.
  uint64 paella_id = 3;

  // Whether the user has disabled metrics collection.
  bool metrics_collection_disabled = 5;

  reserved 4;
}
