OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Protocol buffer definitions for Syncable FileSystem. | 5 // Protocol buffer definitions for Syncable FileSystem. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
11 package sync_file_system; | 11 package sync_file_system; |
12 | 12 |
13 message DriveMetadata { | 13 message DriveMetadata { |
14 required string resource_id = 1; | 14 required string resource_id = 1; |
15 required string md5_checksum = 2; | 15 required string md5_checksum = 2; |
16 required bool conflicted = 3; | 16 required bool conflicted = 3; |
17 | 17 |
18 // When true, indicates that the remote file identified by |resource_id| | 18 // When true, indicates that the remote file identified by |resource_id| |
19 // should be fetched for solving the conflict (resolve-to-remote resolution). | 19 // should be fetched for solving the conflict (resolve-to-remote resolution). |
20 required bool to_be_fetched = 4; | 20 required bool to_be_fetched = 4; |
| 21 |
| 22 enum ResourceType { |
| 23 RESOURCE_TYPE_FILE = 0; |
| 24 RESOURCE_TYPE_FOLDER = 1; |
| 25 } |
| 26 |
| 27 optional ResourceType type = 5 [default = RESOURCE_TYPE_FILE]; |
21 } | 28 } |
OLD | NEW |