modify protobuf data structure