This is exactly how protobufs will work though. Except that they have a helper function for this if you want to assign a literal. E.g. if this were a protobuf and you wanted to assign a literal, it would be:

pty.Attrs.MemoryLimitMb = proto.Int32(100)

But since we won't assign literals usually, it would just look like my code now with protobufs. Do you think it's worth doing it differently now?