1syntax = "proto2"; 2 3package ping_test; 4 5option java_package = "com.google.android.chre.nanoapp.proto"; 6option java_outer_classname = "PingTest"; 7 8// Nanoapp message type can be either host to chre (H2C) or chre to host (C2H) 9enum MessageType { 10 // Reserved for corrupted messages 11 UNDEFINED = 0; 12 13 // H2C: A message to ping the nanoapp. The nanoapp will respond to the host 14 // with a message, with options specified by this command. 15 // Payload must be PingCommand. 16 PING_COMMAND = 1; 17 18 // C2H: A message indicating the test result. The ping test nanoapp will only 19 // use this message to report a failure. 20 // Payload must be chre_test_common.TestResult. 21 TEST_RESULT = 2; 22 23 // C2H: A message indicating a response from a ping command. 24 // Payload is arbitrary. 25 PING_RESPONSE = 3; 26} 27 28// A message to ping the nanoapp, with some optional specifications. 29message PingCommand { 30 // Specifies the permission to use in chreSendMessageWithPermissions(). 31 optional uint32 permissions = 1; 32} 33