• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2022 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14syntax = "proto2";
15
16package mdi.download.populator;
17
18option java_package = "com.google.mobiledatadownload.populator";
19option java_outer_classname = "MetadataProto";
20
21// Bookkeeps the metadata of manifest file.
22// Next tag: 4
23message ManifestFileBookkeeping {
24  // The url where the manifest file is served.
25  optional string manifest_file_url = 3;
26
27  // The cached ETag that is fetched from the target url and stored on device.
28  // This is used for content change detection.
29  optional string cached_etag = 1;
30
31  // The status of downloading the manifest file.
32  enum Status {
33    INVALID = 0;
34
35    // The file is absent or the download has started.
36    PENDING = 1;
37
38    // The download has completed but the file has not been parsed.
39    DOWNLOADED = 2;
40
41    // The file was parsed and file groups were added to MDD.
42    COMMITTED = 3;
43  }
44
45  optional Status status = 2;
46}
47