1syntax = "proto3"; 2 3package aae.blemessagestream; 4 5import "packages/services/Car/service/proto/operation_type.proto"; 6 7option java_package = "com.android.car.BLEStreamProtos"; 8option java_outer_classname = "BLEMessageProto"; 9 10// A message across a BLE channel. 11message BLEMessage { 12 // The current version of the protocol. 13 int32 version = 1; 14 15 // The operation that this message represents. 16 OperationType operation = 2; 17 18 // A 1-based packet number. The first message will have a value of "1" rather 19 // than "0". 20 fixed32 packet_number = 3; 21 22 // The total number of packets in the message stream. 23 fixed32 total_packets = 4; 24 25 // Whether the payload field is encrypted. 26 bool is_payload_encrypted = 5; 27 28 // The bytes that represent the message content for this packet. 29 bytes payload = 6; 30} 31