Esempio n. 1
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::LaksaCsharp.Proto.ProtoTransaction();
                    }
                    input.ReadMessage(transaction_);
                    break;
                }

                case 18: {
                    if (receipt_ == null)
                    {
                        receipt_ = new global::LaksaCsharp.Proto.ProtoTransactionReceipt();
                    }
                    input.ReadMessage(receipt_);
                    break;
                }
                }
            }
        }
Esempio n. 2
0
 public void MergeFrom(ProtoTransactionWithReceipt other)
 {
     if (other == null)
     {
         return;
     }
     if (other.transaction_ != null)
     {
         if (transaction_ == null)
         {
             transaction_ = new global::LaksaCsharp.Proto.ProtoTransaction();
         }
         Transaction.MergeFrom(other.Transaction);
     }
     if (other.receipt_ != null)
     {
         if (receipt_ == null)
         {
             receipt_ = new global::LaksaCsharp.Proto.ProtoTransactionReceipt();
         }
         Receipt.MergeFrom(other.Receipt);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }