コード例 #1
0
 public void MergeFrom(CreatePortfolio other)
 {
     if (other == null)
     {
         return;
     }
     if (other.receivedAt_ != null)
     {
         if (receivedAt_ == null)
         {
             receivedAt_ = new global::ProtocolBufferExperiments.Common.TimezoneTimestamp();
         }
         ReceivedAt.MergeFrom(other.ReceivedAt);
     }
     if (other.Client.Length != 0)
     {
         Client = other.Client;
     }
     if (other.PortfolioName.Length != 0)
     {
         PortfolioName = other.PortfolioName;
     }
     if (other.value_ != null)
     {
         if (value_ == null)
         {
             value_ = new global::DotNet.Decimal();
         }
         Value.MergeFrom(other.Value);
     }
 }
コード例 #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    ObjectUuid = input.ReadString();
                    break;
                }

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

                case 26: {
                    PortfolioName = input.ReadString();
                    break;
                }

                case 34: {
                    if (createdAt_ == null)
                    {
                        createdAt_ = new global::ProtocolBufferExperiments.Common.TimezoneTimestamp();
                    }
                    input.ReadMessage(createdAt_);
                    break;
                }

                case 42: {
                    if (receivedAt_ == null)
                    {
                        receivedAt_ = new global::ProtocolBufferExperiments.Common.TimezoneTimestamp();
                    }
                    input.ReadMessage(receivedAt_);
                    break;
                }

                case 50: {
                    if (value_ == null)
                    {
                        value_ = new global::DotNet.Decimal();
                    }
                    input.ReadMessage(value_);
                    break;
                }
                }
            }
        }