summaryrefslogtreecommitdiff
path: root/proto/atoms.proto
blob: 293b46688e41fd2da0c5965021b5fa4b6a9d3a29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
syntax = "proto2";

package mobiledatadownload.logs;

option java_multiple_files = true;
option java_package = "com.google.mobiledatadownload";
option java_outer_classname = "AtomsProto";

/**
 * These protos are duplicates of the MobileDataDownload protos logged as
 * MODE_BYTES in go/atoms.proto.
 * TODO(b/243579271): remove this duplication
 */
/** Shared data among MobileDataDownload statistics. Not meant to be a top level
 * atom proto.*/
message MobileDataDownloadFileGroupStats {
  // The name of the file group. This a string set server side used to retrieve
  // the files. Does not contain PII.
  optional string file_group_name = 1;
  // Allows the clients to identify a file group based on a given set of
  // properties. This string is set server side and does not contain PII.
  optional string variant_id = 2;
  // Identifier for the data file group created to identify the version of the
  // file group.
  optional int64 build_id = 3;
  // The number of files in the file group.
  optional int32 file_count = 4;
  // Whether the file group has an account associated with it.
  optional bool has_account = 5;
  // Inverse of the sampling rate used to sample this event.
  optional int32 sampling_interval = 6;
  // Note: we do not have owner_package since that's already transmitted.
}

/**
 * Container for MobileDataDownloadFileGroupStorageStats
 */
message MobileDataDownloadStorageStats {
  repeated MobileDataDownloadFileGroupStorageStats
      mobile_data_download_file_group_storage_stats = 1;
}

/**
 * Storage stats for a single file group. This is logged as a nested field and
 * is not meant to be logged as a top level proto.
 */
message MobileDataDownloadFileGroupStorageStats {
  // The total number of bytes used by this file group
  optional int64 total_bytes_used = 1;
  // The total number of inline file bytes used by this file group
  optional int64 total_inline_bytes_used = 2;
  // The number of bytes used for the downloaded version of the file group
  optional int64 downloaded_group_bytes_used = 3;
  // Specifies which file group this storage is associated with
  optional MobileDataDownloadFileGroupStats file_group_stats = 4;
}