Example #1
0
 public void MergeFrom(ProtoTransferDispatchMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.message_ != null)
     {
         if (message_ == null)
         {
             Message = new global::OpenVASP.ProtocolMessages.Messages.ProtoMessage();
         }
         Message.MergeFrom(other.Message);
     }
     if (other.originator_ != null)
     {
         if (originator_ == null)
         {
             Originator = new global::OpenVASP.ProtocolMessages.Messages.ProtoOriginator();
         }
         Originator.MergeFrom(other.Originator);
     }
     if (other.beneficiary_ != null)
     {
         if (beneficiary_ == null)
         {
             Beneficiary = new global::OpenVASP.ProtocolMessages.Messages.ProtoBeneficiary();
         }
         Beneficiary.MergeFrom(other.Beneficiary);
     }
     if (other.transfer_ != null)
     {
         if (transfer_ == null)
         {
             Transfer = new global::OpenVASP.ProtocolMessages.Messages.ProtoTransferReply();
         }
         Transfer.MergeFrom(other.Transfer);
     }
     if (other.transaction_ != null)
     {
         if (transaction_ == null)
         {
             Transaction = new global::OpenVASP.ProtocolMessages.Messages.ProtoTransaction();
         }
         Transaction.MergeFrom(other.Transaction);
     }
     if (other.Comment.Length != 0)
     {
         Comment = other.Comment;
     }
     if (other.vaspInfo_ != null)
     {
         if (vaspInfo_ == null)
         {
             VaspInfo = new global::OpenVASP.ProtocolMessages.Messages.ProtoVaspInfo();
         }
         VaspInfo.MergeFrom(other.VaspInfo);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Example #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 (message_ == null)
                    {
                        Message = new global::OpenVASP.ProtocolMessages.Messages.ProtoMessage();
                    }
                    input.ReadMessage(Message);
                    break;
                }

                case 18: {
                    if (originator_ == null)
                    {
                        Originator = new global::OpenVASP.ProtocolMessages.Messages.ProtoOriginator();
                    }
                    input.ReadMessage(Originator);
                    break;
                }

                case 26: {
                    if (beneficiary_ == null)
                    {
                        Beneficiary = new global::OpenVASP.ProtocolMessages.Messages.ProtoBeneficiary();
                    }
                    input.ReadMessage(Beneficiary);
                    break;
                }

                case 34: {
                    if (transfer_ == null)
                    {
                        Transfer = new global::OpenVASP.ProtocolMessages.Messages.ProtoTransferReply();
                    }
                    input.ReadMessage(Transfer);
                    break;
                }

                case 42: {
                    Comment = input.ReadString();
                    break;
                }

                case 50: {
                    if (vaspInfo_ == null)
                    {
                        VaspInfo = new global::OpenVASP.ProtocolMessages.Messages.ProtoVaspInfo();
                    }
                    input.ReadMessage(VaspInfo);
                    break;
                }
                }
            }
        }