reading_list_specifics.proto 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright 2016 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. //
  5. // Sync protocol datatype extension for the reading list items.
  6. // If you change or add any fields in this file, update proto_visitors.h and
  7. // potentially proto_enum_conversions.{h, cc}.
  8. syntax = "proto2";
  9. option java_multiple_files = true;
  10. option java_package = "org.chromium.components.sync.protocol";
  11. option optimize_for = LITE_RUNTIME;
  12. package sync_pb;
  13. // Sync Reading list entry. This proto contains the fields synced for a reading
  14. // list entry. It must be kept synced with the reading_list.ReadingListLocal
  15. // protobuf.
  16. message ReadingListSpecifics {
  17. optional string entry_id = 1;
  18. optional string title = 2;
  19. optional string url = 3;
  20. optional int64 creation_time_us = 4;
  21. optional int64 update_time_us = 5;
  22. optional int64 first_read_time_us = 7;
  23. optional int64 update_title_time_us = 8;
  24. optional int32 estimated_read_time_seconds = 9;
  25. enum ReadingListEntryStatus {
  26. UNREAD = 0;
  27. READ = 1;
  28. UNSEEN = 2;
  29. }
  30. // If the field is not present, it defaults to UNSEEN.
  31. optional ReadingListEntryStatus status = 6;
  32. }