add bat for general_protobuf