~ggalancs/ubuntuone-windows-installer/add_vs2010

« back to all changes in this revision

Viewing changes to proto/folder.proto

  • Committer: Manuel de la Pena
  • Date: 2010-07-12 15:50:38 UTC
  • Revision ID: mandel@themacaque.com-20100712155038-9pqxv99zgmkzcmzn
Updated the proto definition to make its conversion to Csharp nicer. The definition is the same only the names of the fields have changed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
message FolderMessage{
2
2
        // enumerate the different types of messages that will be used
3
 
        enum Type {
 
3
        enum MessageType {
4
4
                // Message that will be sent from the client to the daemon
5
5
                // to create a new folder.
6
6
                // Client --> Daemon 
41
41
        }
42
42
        
43
43
        // we allways need to state the exact type of message.
44
 
        required Type type = 1;
 
44
        required MessageType type = 1;
45
45
        
46
46
        // Optional data that is used to state the path we are interested in 
47
47
        // the followinf messages:
59
59
        // the data of a udf will be returned. In order to do 
60
60
        // that and maintain consistency we will use a node 
61
61
        // message
62
 
        message Node {
 
62
        message NodeMessage {
63
63
                required string path = 1;
64
64
                required string node_id = 2;
65
65
                required string volume_id = 3;
66
66
        }
67
67
        
68
 
        message UdfData{
69
 
                required Node node = 1;
 
68
        message UdfDataMessage{
 
69
                required NodeMessage node = 1;
70
70
                required string suggested_path = 2;
71
71
                required bool is_subscribed = 3;
72
72
        }
73
73
        
74
74
        // udf data
75
 
        repeated UdfData udfs = 3;
 
75
        repeated UdfDataMessage udfs = 3;
76
76
}
 
 
b'\\ No newline at end of file'