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 serializing GData files and directories. | 5 // Protocol buffer definitions for serializing GData files and directories. |
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 gdata; | 11 package gdata; |
12 | 12 |
13 // Represents base::PlatformFileInfo. | 13 // Represents base::PlatformFileInfo. |
14 message PlatformFileInfoProto { | 14 message PlatformFileInfoProto { |
15 optional int64 size = 1; | 15 optional int64 size = 1; |
16 optional bool is_directory = 2; | 16 optional bool is_directory = 2; |
17 optional bool is_symbolic_link = 3; | 17 optional bool is_symbolic_link = 3; |
18 optional int64 last_modified = 4; | 18 optional int64 last_modified = 4; |
19 optional int64 last_accessed = 5; | 19 optional int64 last_accessed = 5; |
20 optional int64 creation_time = 6; | 20 optional int64 creation_time = 6; |
21 } | 21 } |
22 | 22 |
23 // Represents GDataEntry. | 23 // Represents GDataEntry. |
24 message GDataEntryProto { | 24 message GDataEntryProto { |
25 optional PlatformFileInfoProto file_info = 1; | 25 optional PlatformFileInfoProto file_info = 1; |
| 26 optional string file_name = 2; |
26 optional string title = 3; | 27 optional string title = 3; |
27 optional string resource_id = 4; | 28 optional string resource_id = 4; |
28 optional string edit_url = 5; | 29 optional string edit_url = 5; |
29 optional string content_url = 6; | 30 optional string content_url = 6; |
30 optional string parent_resource_id = 7; | 31 optional string parent_resource_id = 7; |
31 } | 32 } |
32 | 33 |
33 // Represents GDataFile. | 34 // Represents GDataFile. |
34 message GDataFileProto { | 35 message GDataFileProto { |
35 optional GDataEntryProto gdata_entry = 1; | 36 optional GDataEntryProto gdata_entry = 1; |
(...skipping 17 matching lines...) Expand all Loading... |
53 optional string upload_url = 5; | 54 optional string upload_url = 5; |
54 optional uint32 origin = 6; | 55 optional uint32 origin = 6; |
55 repeated GDataDirectoryProto child_directories = 7; | 56 repeated GDataDirectoryProto child_directories = 7; |
56 repeated GDataFileProto child_files = 8; | 57 repeated GDataFileProto child_files = 8; |
57 } | 58 } |
58 // Represents GDataRootDirectory. | 59 // Represents GDataRootDirectory. |
59 message GDataRootDirectoryProto { | 60 message GDataRootDirectoryProto { |
60 optional GDataDirectoryProto gdata_directory = 1; | 61 optional GDataDirectoryProto gdata_directory = 1; |
61 optional int32 largest_changestamp = 2; | 62 optional int32 largest_changestamp = 2; |
62 } | 63 } |
OLD | NEW |