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