autofill_wallet_usage_specifics.proto 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Copyright 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // If you change or add any fields in this file, update proto_visitors.h and
  5. // potentially proto_enum_conversions.{h, cc}.
  6. syntax = "proto2";
  7. option java_multiple_files = true;
  8. option java_package = "org.chromium.components.sync.protocol";
  9. option optimize_for = LITE_RUNTIME;
  10. package sync_pb;
  11. // Autofill usage data related objects which contains usage data of a payment
  12. // method related to a specific merchant.
  13. message AutofillWalletUsageSpecifics {
  14. // A unique ID identifying this item. Used as the client tag.
  15. optional string guid = 1;
  16. // The type of usage data this entity is associated with.
  17. oneof usage_data_type {
  18. VirtualCardUsageData virtual_card_usage_data = 2;
  19. }
  20. // A list of timestamps that correspond to the latest retrieval requests of a
  21. // specific Autofill wallet data model. These timestamps are collected when a
  22. // user selects an option in a Autofill suggestion dropdown and the client
  23. // records the time.
  24. repeated int64 retrieval_time_unix_epoch_micros = 3 [packed = true];
  25. message VirtualCardUsageData {
  26. // The instrument id of the actual card that the virtual card is related to.
  27. optional int64 instrument_id = 1;
  28. // The last four of the virtual card number. This is tied to the usage
  29. // data because the virtual card number may vary depending on merchants.
  30. optional string virtual_card_last_four = 2;
  31. // The url of the merchant where the virtual card is used.
  32. optional string merchant_url = 3;
  33. // The merchant the usage data is related to on the Android platform.
  34. optional string merchant_app_package = 4;
  35. }
  36. }