1syntax = "proto2"; 2package copresence; 3option optimize_for = LITE_RUNTIME; 4enum IdentityType { 5 IDENTITY_TYPE_UNKNOWN = 0; 6 GAIA_USER = 1; 7 CHROMECAST = 2; 8 ANDROID = 3; 9 CHROME = 4; 10 UNREGISTERED = 5; 11} 12enum PushService { 13 PUSH_SERVICE_UNKNOWN = 0; 14 GCM = 1; 15 APNS = 2; 16 PUSH_SERVICE_NONE = 3; 17} 18enum ErrorType { 19 ERROR_TYPE_UNKNOWN = 0; 20 TOKEN_EXPIRED = 1; 21 MAC_ADDRESS_UNAVAILABLE = 2; 22 MAC_ADDRESS_NEEDS_PERMISSION = 3; 23} 24enum TokenStatus { 25 TOKEN_STATUS_UNKNOWN = 0; 26 VALID = 1; 27 INVALID = 2; 28 TRANSITIVE = 3; 29} 30enum TokenMedium { 31 TOKEN_MEDIUM_UNKNOWN = 0; 32 AUDIO_ULTRASOUND_PASSBAND = 1; 33 BLUETOOTH_CLASSIC_NAME = 2; 34 BLE_ADVERTISING_PACKET = 3; 35 WIFI_DIRECT_SSID = 4; 36 LOCAL_DEVICE = 5; 37 BLE_GATT_SERVICE = 6; 38 WIFI_AP_SSID = 7; 39 AUDIO_AUDIBLE_DTMF = 8; 40} 41enum AclType { 42 UNKNOWN_ACL_TYPE = 0; 43 NO_ACL_CHECK = 1; 44 OWNER_ONLY = 2; 45 NAMED_ACL = 4; 46 MESSAGE_ACL = 5; 47 REFERENCED_ACL = 6; 48 OPTED_OUT_MESSAGE_ACL = 7; 49} 50enum TokenInstructionType { 51 UNKNOWN_TOKEN_INSTRUCTION_TYPE = 0; 52 TRANSMIT = 1; 53 RECEIVE = 2; 54} 55enum PlatformType { 56 UNKNOWN_PLATFORM_TYPE = 0; 57 CHROMECAST_PLATFORM_TYPE = 5; 58 ANDROID_PLATFORM_TYPE = 6; 59 IOS_PLATFORM_TYPE = 7; 60 CHROME_PLATFORM_TYPE = 8; 61} 62enum InstructionType { 63 UNKNOWN_INSTRUCTION_TYPE = 0; 64 TOKEN = 1; 65 SCAN_WIFI = 2; 66 SCAN_BLE = 3; 67} 68enum StatusCode { 69 STATUS_CODE_UNKNOWN = -1; 70 OK = 0; 71 COPRESENCE_DISABLED = 201; 72 LOCATION_HISTORY_DISABLED = 202; 73 UNDERAGED = 203; 74 DEVICE_RE_REGISTRATION_REQUIRED = 204; 75 RATE_LIMITED = 301; 76} 77enum OptInState { 78 UNKNOWN_OPT_IN_STATE = 0; 79 OPTED_IN = 1; 80 OPTED_OUT = 2; 81} 82enum AudioConfiguration { 83 AUDIO_CONFIGURATION_UNKNOWN = 0; 84 AUDIBLE = 1; 85} 86enum BroadcastScanConfiguration { 87 BROADCAST_SCAN_CONFIGURATION_UNKNOWN = 0; 88 BROADCAST_AND_SCAN = 1; 89 BROADCAST_ONLY = 2; 90 SCAN_ONLY = 3; 91} 92