Exemple #1
0
 public void MergeFrom(Data other)
 {
     if (other == null)
     {
         return;
     }
     if (other.transaction_ != null)
     {
         if (transaction_ == null)
         {
             Transaction = new global::Asgt.Type.Transaction();
         }
         Transaction.MergeFrom(other.Transaction);
     }
     if (other.invoice_ != null)
     {
         if (invoice_ == null)
         {
             Invoice = new global::Asgt.Type.Invoice();
         }
         Invoice.MergeFrom(other.Invoice);
     }
     if (other.invoiceLine_ != null)
     {
         if (invoiceLine_ == null)
         {
             InvoiceLine = new global::Asgt.Type.InvoiceLine();
         }
         InvoiceLine.MergeFrom(other.InvoiceLine);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemple #2
0
        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 (transaction_ == null)
                    {
                        Transaction = new global::Asgt.Type.Transaction();
                    }
                    input.ReadMessage(Transaction);
                    break;
                }

                case 18: {
                    if (invoice_ == null)
                    {
                        Invoice = new global::Asgt.Type.Invoice();
                    }
                    input.ReadMessage(Invoice);
                    break;
                }

                case 26: {
                    if (invoiceLine_ == null)
                    {
                        InvoiceLine = new global::Asgt.Type.InvoiceLine();
                    }
                    input.ReadMessage(InvoiceLine);
                    break;
                }
                }
            }
        }