use protobuf class