Ejemplo 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 (from_ == null)
                    {
                        From = new global::Protocol.Endpoint();
                    }
                    input.ReadMessage(From);
                    break;
                }

                case 18: {
                    neighbours_.AddEntriesFrom(input, _repeated_neighbours_codec);
                    break;
                }

                case 24: {
                    Timestamp = input.ReadInt64();
                    break;
                }
                }
            }
        }
Ejemplo n.º 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 (from_ == null)
                    {
                        From = new global::Protocol.Endpoint();
                    }
                    input.ReadMessage(From);
                    break;
                }

                case 16: {
                    Echo = input.ReadInt32();
                    break;
                }

                case 24: {
                    Timestamp = input.ReadInt64();
                    break;
                }
                }
            }
        }
Ejemplo n.º 3
0
 public void MergeFrom(PingMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.from_ != null)
     {
         if (from_ == null)
         {
             From = new global::Protocol.Endpoint();
         }
         From.MergeFrom(other.From);
     }
     if (other.to_ != null)
     {
         if (to_ == null)
         {
             To = new global::Protocol.Endpoint();
         }
         To.MergeFrom(other.To);
     }
     if (other.Version != 0)
     {
         Version = other.Version;
     }
     if (other.Timestamp != 0L)
     {
         Timestamp = other.Timestamp;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Ejemplo n.º 4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    if (from_ == null)
                    {
                        from_ = new global::Protocol.Endpoint();
                    }
                    input.ReadMessage(from_);
                    break;
                }

                case 18: {
                    TargetId = input.ReadBytes();
                    break;
                }

                case 24: {
                    Timestamp = input.ReadInt64();
                    break;
                }
                }
            }
        }
Ejemplo n.º 5
0
 public void MergeFrom(PingMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.from_ != null)
     {
         if (from_ == null)
         {
             from_ = new global::Protocol.Endpoint();
         }
         From.MergeFrom(other.From);
     }
     if (other.to_ != null)
     {
         if (to_ == null)
         {
             to_ = new global::Protocol.Endpoint();
         }
         To.MergeFrom(other.To);
     }
     if (other.Version != 0)
     {
         Version = other.Version;
     }
     if (other.Timestamp != 0L)
     {
         Timestamp = other.Timestamp;
     }
 }
Ejemplo n.º 6
0
 public void MergeFrom(Neighbours other)
 {
     if (other == null)
     {
         return;
     }
     if (other.from_ != null)
     {
         if (from_ == null)
         {
             from_ = new global::Protocol.Endpoint();
         }
         From.MergeFrom(other.From);
     }
     neighbours_.Add(other.neighbours_);
     if (other.Timestamp != 0L)
     {
         Timestamp = other.Timestamp;
     }
 }
Ejemplo n.º 7
0
 public void MergeFrom(Neighbours other)
 {
     if (other == null)
     {
         return;
     }
     if (other.from_ != null)
     {
         if (from_ == null)
         {
             From = new global::Protocol.Endpoint();
         }
         From.MergeFrom(other.From);
     }
     neighbours_.Add(other.neighbours_);
     if (other.Timestamp != 0L)
     {
         Timestamp = other.Timestamp;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Ejemplo n.º 8
0
 public void MergeFrom(FindNeighbours other)
 {
     if (other == null)
     {
         return;
     }
     if (other.from_ != null)
     {
         if (from_ == null)
         {
             from_ = new global::Protocol.Endpoint();
         }
         From.MergeFrom(other.From);
     }
     if (other.TargetId.Length != 0)
     {
         TargetId = other.TargetId;
     }
     if (other.Timestamp != 0L)
     {
         Timestamp = other.Timestamp;
     }
 }
Ejemplo n.º 9
0
 public void MergeFrom(PongMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.from_ != null)
     {
         if (from_ == null)
         {
             from_ = new global::Protocol.Endpoint();
         }
         From.MergeFrom(other.From);
     }
     if (other.Echo != 0)
     {
         Echo = other.Echo;
     }
     if (other.Timestamp != 0L)
     {
         Timestamp = other.Timestamp;
     }
 }
Ejemplo n.º 10
0
 public void MergeFrom(PongMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.from_ != null)
     {
         if (from_ == null)
         {
             From = new global::Protocol.Endpoint();
         }
         From.MergeFrom(other.From);
     }
     if (other.Echo != 0)
     {
         Echo = other.Echo;
     }
     if (other.Timestamp != 0L)
     {
         Timestamp = other.Timestamp;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Ejemplo n.º 11
0
 public void MergeFrom(FindNeighbours other)
 {
     if (other == null)
     {
         return;
     }
     if (other.from_ != null)
     {
         if (from_ == null)
         {
             From = new global::Protocol.Endpoint();
         }
         From.MergeFrom(other.From);
     }
     if (other.TargetId.Length != 0)
     {
         TargetId = other.TargetId;
     }
     if (other.Timestamp != 0L)
     {
         Timestamp = other.Timestamp;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }