| // 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; | |
| import "components/data_sharing/public/protocol/group_data.proto"; | |
| package data_sharing_pb; | |
| message GroupMetadata { | |
| // Group data gets updated whenever corresponding CollaborationGroup changes. | |
| // This field is derived from | |
| // `CollaborationGroupSpecifics::consistency_token` that triggered last | |
| // successful update. In other words, if it doesn't match the value in | |
| // CollaborationGroup, then GroupData should be considered stale. | |
| optional string last_processed_version_token = 1; | |
| // Timestamp of the last update (local time), used for periodic polling. | |
| optional int64 last_updated_timestamp_millis_since_unix_epoch = 2; | |
| }; | |
| message GroupEntity { | |
| optional GroupMetadata metadata = 1; | |
| optional GroupData data = 2; | |
| }; |