| Index: third_party/cacheinvalidation/src/javaexample/com/google/ipc/invalidation/examples/android2/example_listener.proto
|
| diff --git a/third_party/cacheinvalidation/src/javaexample/com/google/ipc/invalidation/examples/android2/example_listener.proto b/third_party/cacheinvalidation/src/javaexample/com/google/ipc/invalidation/examples/android2/example_listener.proto
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bb6d91e64d86315d9a057c1ccaff1585aa1af732
|
| --- /dev/null
|
| +++ b/third_party/cacheinvalidation/src/javaexample/com/google/ipc/invalidation/examples/android2/example_listener.proto
|
| @@ -0,0 +1,30 @@
|
| +syntax = "proto2";
|
| +package ipc.invalidation.examples.android2;
|
| +option java_package = "com.google.ipc.invalidation.examples.android2";
|
| +option java_outer_classname = "ExampleListenerProto";
|
| +
|
| +// Persistent state for the example listener.
|
| +message ExampleListenerStateProto {
|
| +
|
| + message ObjectIdProto {
|
| + optional int32 source = 1;
|
| + optional bytes name = 2;
|
| + }
|
| +
|
| + // State related to a particular object being tracked by the listener. See
|
| + // ExampleListenerState#ObjectState for information on fields.
|
| + message ObjectStateProto {
|
| + optional ObjectIdProto object_id = 1;
|
| + optional bool is_registered = 2;
|
| + optional bytes payload = 3;
|
| + optional int64 highest_version = 4;
|
| + optional int64 invalidation_time_millis = 5;
|
| + optional bool is_background = 6;
|
| + }
|
| +
|
| + // List of objects for which state is being tracked.
|
| + repeated ObjectStateProto object_state = 1;
|
| +
|
| + // (Optional) client id passed to the listener in ready() call.
|
| + optional bytes client_id = 2;
|
| +}
|
|
|