added protobuf support to Device_Query