public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (location_ == null) { location_ = new global::Greenshot2.Editor.FileFormat.Point(); } input.ReadMessage(location_); break; } case 18: { if (size_ == null) { size_ = new global::Greenshot2.Editor.FileFormat.Size(); } input.ReadMessage(size_); break; } } } }
public void MergeFrom(Bounds other) { if (other == null) { return; } if (other.location_ != null) { if (location_ == null) { location_ = new global::Greenshot2.Editor.FileFormat.Point(); } Location.MergeFrom(other.Location); } if (other.size_ != null) { if (size_ == null) { size_ = new global::Greenshot2.Editor.FileFormat.Size(); } Size.MergeFrom(other.Size); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }