Ejemplo n.º 1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (baseTransaction_ == null)
                    {
                        baseTransaction_ = new global::Cocopops.Protobuf.Model.BaseTransaction.BaseTransaction();
                    }
                    input.ReadMessage(baseTransaction_);
                    break;
                }

                case 18: {
                    Comments = input.ReadString();
                    break;
                }

                case 26: {
                    Extra = input.ReadString();
                    break;
                }
                }
            }
        }
Ejemplo n.º 2
0
 public void MergeFrom(ExtendedTransaction other)
 {
     if (other == null)
     {
         return;
     }
     if (other.baseTransaction_ != null)
     {
         if (baseTransaction_ == null)
         {
             baseTransaction_ = new global::Cocopops.Protobuf.Model.BaseTransaction.BaseTransaction();
         }
         BaseTransaction.MergeFrom(other.BaseTransaction);
     }
     if (other.Comments.Length != 0)
     {
         Comments = other.Comments;
     }
     if (other.Extra.Length != 0)
     {
         Extra = other.Extra;
     }
 }
Ejemplo n.º 3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    global::Cocopops.Protobuf.Model.BaseTransaction.BaseTransaction subBuilder = new global::Cocopops.Protobuf.Model.BaseTransaction.BaseTransaction();
                    if (transactionCase_ == TransactionOneofCase.BaseTransaction)
                    {
                        subBuilder.MergeFrom(BaseTransaction);
                    }
                    input.ReadMessage(subBuilder);
                    BaseTransaction = subBuilder;
                    break;
                }

                case 18: {
                    global::Cocopops.Protobuf.Model.ExtendedTransaction.ExtendedTransaction subBuilder = new global::Cocopops.Protobuf.Model.ExtendedTransaction.ExtendedTransaction();
                    if (transactionCase_ == TransactionOneofCase.ExtendedTransaction)
                    {
                        subBuilder.MergeFrom(ExtendedTransaction);
                    }
                    input.ReadMessage(subBuilder);
                    ExtendedTransaction = subBuilder;
                    break;
                }
                }
            }
        }