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 (host_ == null)
                    {
                        host_ = new Bgs.Protocol.ProcessId();
                    }
                    input.ReadMessage(host_);
                    break;
                }

                case 16:
                {
                    ObjectId = input.ReadUInt64();
                    break;
                }
                }
            }
        }
Ejemplo n.º 2
0
 public void MergeFrom(ObjectAddress other)
 {
     if (other == null)
     {
         return;
     }
     if (other.host_ != null)
     {
         if (host_ == null)
         {
             host_ = new Bgs.Protocol.ProcessId();
         }
         Host.MergeFrom(other.Host);
     }
     if (other.ObjectId != 0UL)
     {
         ObjectId = other.ObjectId;
     }
 }
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: {
                    if (senderId_ == null)
                    {
                        senderId_ = new Bgs.Protocol.EntityId();
                    }
                    input.ReadMessage(senderId_);
                    break;
                }

                case 18: {
                    if (targetId_ == null)
                    {
                        targetId_ = new Bgs.Protocol.EntityId();
                    }
                    input.ReadMessage(targetId_);
                    break;
                }

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

                case 34: {
                    attribute_.AddEntriesFrom(input, _repeated_attribute_codec);
                    break;
                }

                case 42: {
                    if (senderAccountId_ == null)
                    {
                        senderAccountId_ = new Bgs.Protocol.EntityId();
                    }
                    input.ReadMessage(senderAccountId_);
                    break;
                }

                case 50: {
                    if (targetAccountId_ == null)
                    {
                        targetAccountId_ = new Bgs.Protocol.EntityId();
                    }
                    input.ReadMessage(targetAccountId_);
                    break;
                }

                case 58: {
                    SenderBattleTag = input.ReadString();
                    break;
                }

                case 66: {
                    TargetBattleTag = input.ReadString();
                    break;
                }

                case 74: {
                    if (peer_ == null)
                    {
                        peer_ = new Bgs.Protocol.ProcessId();
                    }
                    input.ReadMessage(peer_);
                    break;
                }

                case 82: {
                    if (forwardingIdentity_ == null)
                    {
                        forwardingIdentity_ = new Bgs.Protocol.Account.V1.Identity();
                    }
                    input.ReadMessage(forwardingIdentity_);
                    break;
                }
                }
            }
        }
Ejemplo n.º 4
0
 public void MergeFrom(Notification other)
 {
     if (other == null)
     {
         return;
     }
     if (other.senderId_ != null)
     {
         if (senderId_ == null)
         {
             senderId_ = new Bgs.Protocol.EntityId();
         }
         SenderId.MergeFrom(other.SenderId);
     }
     if (other.targetId_ != null)
     {
         if (targetId_ == null)
         {
             targetId_ = new Bgs.Protocol.EntityId();
         }
         TargetId.MergeFrom(other.TargetId);
     }
     if (other.Type.Length != 0)
     {
         Type = other.Type;
     }
     attribute_.Add(other.attribute_);
     if (other.senderAccountId_ != null)
     {
         if (senderAccountId_ == null)
         {
             senderAccountId_ = new Bgs.Protocol.EntityId();
         }
         SenderAccountId.MergeFrom(other.SenderAccountId);
     }
     if (other.targetAccountId_ != null)
     {
         if (targetAccountId_ == null)
         {
             targetAccountId_ = new Bgs.Protocol.EntityId();
         }
         TargetAccountId.MergeFrom(other.TargetAccountId);
     }
     if (other.SenderBattleTag.Length != 0)
     {
         SenderBattleTag = other.SenderBattleTag;
     }
     if (other.TargetBattleTag.Length != 0)
     {
         TargetBattleTag = other.TargetBattleTag;
     }
     if (other.peer_ != null)
     {
         if (peer_ == null)
         {
             peer_ = new Bgs.Protocol.ProcessId();
         }
         Peer.MergeFrom(other.Peer);
     }
     if (other.forwardingIdentity_ != null)
     {
         if (forwardingIdentity_ == null)
         {
             forwardingIdentity_ = new Bgs.Protocol.Account.V1.Identity();
         }
         ForwardingIdentity.MergeFrom(other.ForwardingIdentity);
     }
 }