Assign protobuf values correctly