Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / cacheinvalidation / src / javaexample / com / google / ipc / invalidation / examples / android2 / example_listener.proto
1 syntax = "proto2";
2 package ipc.invalidation.examples.android2;
3 option java_package = "com.google.ipc.invalidation.examples.android2";
4 option java_outer_classname = "ExampleListenerProto";
5
6 // Persistent state for the example listener.
7 message ExampleListenerStateProto {
8
9   message ObjectIdProto {
10     optional int32 source = 1;
11     optional bytes name = 2;
12   }
13
14   // State related to a particular object being tracked by the listener. See
15   // ExampleListenerState#ObjectState for information on fields.
16   message ObjectStateProto {
17     optional ObjectIdProto object_id = 1;
18     optional bool is_registered = 2;
19     optional bytes payload = 3;
20     optional int64 highest_version = 4;
21     optional int64 invalidation_time_millis = 5;
22     optional bool is_background = 6;
23   }
24
25   // List of objects for which state is being tracked.
26   repeated ObjectStateProto object_state = 1;
27
28   // (Optional) client id passed to the listener in ready() call.
29   optional bytes client_id = 2;
30 }