public void MergeFrom(Invoice other) { if (other == null) { return; } if (other.issueDate_ != null) { if (issueDate_ == null) { IssueDate = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } IssueDate.MergeFrom(other.IssueDate); } if (other.supplier_ != null) { if (supplier_ == null) { Supplier = new global::Asgt.Type.Supplier(); } Supplier.MergeFrom(other.Supplier); } if (other.CustomerRef.Length != 0) { CustomerRef = other.CustomerRef; } if (other.Text.Length != 0) { Text = other.Text; } if (other.Currency.Length != 0) { Currency = other.Currency; } if (other.Total != 0F) { Total = other.Total; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }