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