Пример #1
0
 public void MergeFrom(PingMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.from_ != null)
     {
         if (from_ == null)
         {
             from_ = new global::Latoken.CurrencyProvider.Protocol.Tron.Grpc.Core.Endpoint();
         }
         From.MergeFrom(other.From);
     }
     if (other.to_ != null)
     {
         if (to_ == null)
         {
             to_ = new global::Latoken.CurrencyProvider.Protocol.Tron.Grpc.Core.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);
 }
Пример #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::Latoken.CurrencyProvider.Protocol.Tron.Grpc.Core.Endpoint();
                    }
                    input.ReadMessage(from_);
                    break;
                }

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

                case 24: {
                    Timestamp = input.ReadInt64();
                    break;
                }
                }
            }
        }
Пример #3
0
 public void MergeFrom(Neighbours other)
 {
     if (other == null)
     {
         return;
     }
     if (other.from_ != null)
     {
         if (from_ == null)
         {
             from_ = new global::Latoken.CurrencyProvider.Protocol.Tron.Grpc.Core.Endpoint();
         }
         From.MergeFrom(other.From);
     }
     neighbours_.Add(other.neighbours_);
     if (other.Timestamp != 0L)
     {
         Timestamp = other.Timestamp;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }