OLD | NEW |
1 syntax = "proto2"; | 1 syntax = "proto2"; |
2 package copresence; | 2 package copresence; |
3 option optimize_for = LITE_RUNTIME; | 3 option optimize_for = LITE_RUNTIME; |
4 import "enums.proto"; | 4 import "enums.proto"; |
5 import "identity.proto"; | 5 import "identity.proto"; |
6 message ClientVersion { | 6 message ClientVersion { |
7 optional string client = 1; | 7 optional string client = 1; |
8 optional string version_name = 2; | 8 optional string version_name = 2; |
9 optional int64 version_code = 3; | 9 optional int64 version_code = 3; |
10 optional string certificate_fingerprint = 4; | 10 optional string certificate_fingerprint = 4; |
11 } | 11 } |
12 message Status { | 12 message Status { |
13 optional StatusCode code = 1; | 13 optional StatusCode code = 1; |
14 optional string message = 2; | 14 optional string message = 2; |
15 } | 15 } |
16 message DeviceRegistration { | |
17 optional PushService service = 1 [deprecated = true]; | |
18 optional string device_token = 2 [deprecated = true]; | |
19 optional DeviceIdentity device_identity = 3 [deprecated = true]; | |
20 optional string app_name = 4 [deprecated = true]; | |
21 optional bytes device_token_binary = 5 [deprecated = true]; | |
22 optional string registered_device_id = 6 [deprecated = true]; | |
23 optional int32 ulr_device_id = 7 [deprecated = true]; | |
24 optional Identity registrant = 8 [deprecated = true]; | |
25 } | |
26 message PushServiceRegistration { | 16 message PushServiceRegistration { |
27 optional PushService service = 1; | 17 optional PushService service = 1; |
28 } | 18 } |
29 message DeviceIdentifiers { | 19 message DeviceIdentifiers { |
30 optional int32 ulr_device_id = 1; | 20 optional int32 ulr_device_id = 1; |
31 optional DeviceIdentity device_identity = 2; | 21 optional DeviceIdentity device_identity = 2; |
32 optional Identity registrant = 3; | 22 optional Identity registrant = 3; |
33 } | 23 } |
34 message Token { | 24 message Token { |
35 message Debug { | 25 message Debug { |
36 repeated string email = 2; | 26 repeated string email = 2; |
37 extensions 1 to 1; | |
38 } | 27 } |
39 optional string id = 1; | 28 optional string id = 1; |
40 optional uint32 ttl_millis_deprecated = 2 [deprecated = true]; | |
41 optional TokenStatus status = 3; | 29 optional TokenStatus status = 3; |
42 optional Debug debug = 4; | 30 optional Debug debug = 4; |
43 } | 31 } |
44 message TokenTechnology { | 32 message TokenTechnology { |
45 optional TokenMedium medium = 1; | 33 optional TokenMedium medium = 1; |
46 repeated TokenInstructionType instruction_type = 2; | 34 repeated TokenInstructionType instruction_type = 2; |
47 } | 35 } |
48 message DeviceCapabilities { | 36 message DeviceCapabilities { |
49 repeated TokenTechnology token_technology = 2; | 37 repeated TokenTechnology token_technology = 2; |
50 } | 38 } |
51 message TokenInstruction { | 39 message TokenInstruction { |
52 optional TokenInstructionType token_instruction_type = 1; | 40 optional TokenInstructionType token_instruction_type = 1; |
53 optional TokenMedium medium = 2; | 41 optional TokenMedium medium = 2; |
54 optional string token_id = 4; | 42 optional string token_id = 4; |
55 } | 43 } |
56 message Directive { | 44 message Directive { |
57 optional InstructionType instruction_type = 1; | 45 optional InstructionType instruction_type = 1; |
58 optional TokenInstruction token_instruction = 2; | 46 optional TokenInstruction token_instruction = 2; |
59 optional int64 delay_millis = 3; | 47 optional int64 delay_millis = 3; |
60 optional int64 ttl_millis = 4; | 48 optional int64 ttl_millis = 4; |
61 optional string published_message_id = 5; | 49 optional string published_message_id = 5; |
62 optional string subscription_id = 6; | 50 optional string subscription_id = 6; |
63 } | 51 } |
64 message DeviceState { | 52 message DeviceState { |
65 optional DeviceCapabilities capabilities = 1; | 53 optional DeviceCapabilities capabilities = 1; |
66 repeated Directive active_directive = 2; | 54 repeated Directive active_directive = 2; |
67 } | 55 } |
68 message DebugInfo { | 56 message DebugInfo { |
69 optional string served_by_task = 1; | 57 optional string served_by_task = 1; |
70 optional bool listen_initiated_by_location_deprecated = 2 [deprecated = true]; | |
71 repeated string token_id = 3; | 58 repeated string token_id = 3; |
72 optional int64 request_time_millis = 4; | 59 optional int64 request_time_millis = 4; |
73 } | 60 } |
74 message TokenObservation { | 61 message TokenObservation { |
75 optional string token_id = 1; | 62 optional string token_id = 1; |
76 repeated TokenSignals signals = 2; | 63 repeated TokenSignals signals = 2; |
77 } | 64 } |
78 message TokenSignals { | 65 message TokenSignals { |
79 optional TokenMedium medium = 1; | 66 optional TokenMedium medium = 1; |
80 optional int32 rssi = 2; | 67 optional int32 rssi = 2; |
81 optional int64 observed_time_millis = 3; | 68 optional int64 observed_time_millis = 3; |
82 } | 69 } |
83 message AccessPolicy { | 70 message AccessPolicy { |
84 optional int64 ttl_millis = 1; | 71 optional int64 ttl_millis = 1; |
85 optional Acl acl = 2; | 72 optional Acl acl = 2; |
86 extensions 4 to 4; | |
87 } | 73 } |
88 message Acl { | 74 message Acl { |
89 optional AclType acl_type = 1; | 75 optional AclType acl_type = 1; |
90 optional string named_acl_name = 2; | 76 optional string named_acl_name = 2; |
91 optional bytes referenced_acl_consistency_token = 5; | 77 optional bytes referenced_acl_consistency_token = 5; |
92 } | 78 } |
93 message PublishedMessage { | 79 message PublishedMessage { |
94 optional string id = 1; | 80 optional string id = 1; |
95 optional AccessPolicy access_policy = 2; | 81 optional AccessPolicy access_policy = 2; |
96 optional Message message = 3; | 82 optional Message message = 3; |
(...skipping 28 matching lines...) Expand all Loading... |
125 optional string type = 2; | 111 optional string type = 2; |
126 } | 112 } |
127 message Subscription { | 113 message Subscription { |
128 optional string id = 1; | 114 optional string id = 1; |
129 optional TransmissionStrategy strategy = 2; | 115 optional TransmissionStrategy strategy = 2; |
130 optional int64 ttl_millis = 3; | 116 optional int64 ttl_millis = 3; |
131 optional MessageType message_type = 4; | 117 optional MessageType message_type = 4; |
132 optional TokenExchangeStrategy token_exchange_strategy = 7; | 118 optional TokenExchangeStrategy token_exchange_strategy = 7; |
133 optional OptInStateFilter opt_in_state_filter = 8; | 119 optional OptInStateFilter opt_in_state_filter = 8; |
134 } | 120 } |
135 message DeleteAll { | |
136 optional DeleteAllType type = 1; | |
137 repeated string namespace = 2; | |
138 } | |
139 message MessageResult { | 121 message MessageResult { |
140 optional string published_message_id = 1; | 122 optional string published_message_id = 1; |
141 } | 123 } |
142 message SubscriptionResult { | 124 message SubscriptionResult { |
143 optional string subscription_id = 1; | 125 optional string subscription_id = 1; |
144 } | 126 } |
145 message OptInStateFilter { | 127 message OptInStateFilter { |
146 repeated OptInState allowed_opt_in_state = 1; | 128 repeated OptInState allowed_opt_in_state = 1; |
147 } | 129 } |
OLD | NEW |