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 (issueDate_ == null) { IssueDate = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(IssueDate); break; } case 18: { if (supplier_ == null) { Supplier = new global::Asgt.Type.Supplier(); } input.ReadMessage(Supplier); break; } case 26: { CustomerRef = input.ReadString(); break; } case 34: { Text = input.ReadString(); break; } case 50: { Currency = input.ReadString(); break; } case 61: { Total = input.ReadFloat(); break; } } } }
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); }