3 option optimize_for = LITE_RUNTIME;
5 import "config_data.proto";
8 message RequestHeader {
9 optional ClientVersion client_version = 4;
10 optional ClientVersion framework_version = 5;
11 optional int64 current_time_millis = 6;
12 optional string registered_device_id = 7;
13 repeated string experiment_override = 8;
14 optional DeviceFingerprint device_fingerprint = 10;
15 optional string configuration_etag = 11;
17 message ResponseHeader {
18 optional DebugInfo debug_info = 2;
19 optional Status status = 3;
20 optional Configuration configuration = 4;
22 message RegisterDeviceRequest {
23 optional RequestHeader header = 1;
24 optional PushServiceRegistration push_service = 5;
25 optional DeviceIdentifiers device_identifiers = 6;
27 message RegisterDeviceResponse {
28 optional ResponseHeader header = 1;
29 optional string registered_device_id = 2;
31 message ReportRequest {
32 optional RequestHeader header = 1;
33 optional ManageMessagesRequest manage_messages_request = 2;
34 optional ManageSubscriptionsRequest manage_subscriptions_request = 3;
35 optional UpdateSignalsRequest update_signals_request = 4;
37 message UpdateSignalsRequest {
38 repeated TokenObservation token_observation = 1;
39 optional DeviceState state = 3;
41 message ManageMessagesRequest {
42 repeated PublishedMessage message_to_publish = 1;
43 repeated string id_to_unpublish = 2;
45 message ManageSubscriptionsRequest {
46 repeated Subscription subscription = 1;
47 repeated string id_to_unsubscribe = 2;
49 message ReportResponse {
50 optional ResponseHeader header = 1;
51 optional ManageMessagesResponse manage_messages_response = 2;
52 optional ManageSubscriptionsResponse manage_subscriptions_response = 3;
53 optional UpdateSignalsResponse update_signals_response = 4;
55 message UpdateSignalsResponse {
56 optional util.error.Code status = 1;
57 repeated Token token = 2;
58 repeated SubscribedMessage message = 3;
59 repeated Directive directive = 4;
61 message ManageMessagesResponse {
62 optional util.error.Code status = 1;
63 repeated MessageResult published_message_result = 3;
65 message ManageSubscriptionsResponse {
66 optional util.error.Code status = 1;
67 repeated SubscriptionResult subscription_result = 3;