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 = 2; |
27 optional string title = 3; | 27 optional string resource_id = 3; |
28 optional string resource_id = 4; | 28 optional string parent_resource_id = 4; |
satorux1
2012/04/27 21:35:41
please don't renumber. This will break compatibili
achuithb
2012/04/27 22:15:03
Done.
| |
29 optional string edit_url = 5; | 29 optional string edit_url = 5; |
30 optional string content_url = 6; | 30 optional string content_url = 6; |
31 } | 31 } |
32 | 32 |
33 // Represents GDataFile. | 33 // Represents GDataFile. |
34 message GDataFileProto { | 34 message GDataFileProto { |
35 optional GDataEntryProto gdata_entry = 1; | 35 optional GDataEntryProto gdata_entry = 1; |
36 optional uint32 kind = 2; | 36 optional uint32 kind = 2; |
37 optional string thumbnail_url = 3; | 37 optional string thumbnail_url = 3; |
38 optional string alternate_url = 4; | 38 optional string alternate_url = 4; |
(...skipping 14 matching lines...) Expand all Loading... | |
53 optional string upload_url = 5; | 53 optional string upload_url = 5; |
54 optional uint32 origin = 6; | 54 optional uint32 origin = 6; |
55 repeated GDataDirectoryProto child_directories = 7; | 55 repeated GDataDirectoryProto child_directories = 7; |
56 repeated GDataFileProto child_files = 8; | 56 repeated GDataFileProto child_files = 8; |
57 } | 57 } |
58 // Represents GDataRootDirectory. | 58 // Represents GDataRootDirectory. |
59 message GDataRootDirectoryProto { | 59 message GDataRootDirectoryProto { |
60 optional GDataDirectoryProto gdata_directory = 1; | 60 optional GDataDirectoryProto gdata_directory = 1; |
61 optional int32 largest_changestamp = 2; | 61 optional int32 largest_changestamp = 2; |
62 } | 62 } |
OLD | NEW |