Exemple #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
            input.ReadRawMessage(this);
    #else
            uint tag;
            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (result_ == null)
                    {
                        Result = new global::GoGoTalk.ProtoBuf.Result();
                    }
                    input.ReadMessage(Result);
                    break;
                }

                case 18: {
                    fileList_.AddEntriesFrom(input, _repeated_fileList_codec);
                    break;
                }
                }
            }
    #endif
        }
Exemple #2
0
        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
                    break;

                case 10: {
                    if (result_ == null)
                    {
                        Result = new global::GoGoTalk.ProtoBuf.Result();
                    }
                    input.ReadMessage(Result);
                    break;
                }

                case 18: {
                    fileList_.AddEntriesFrom(ref input, _repeated_fileList_codec);
                    break;
                }
                }
            }
        }
Exemple #3
0
        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
                    break;

                case 10: {
                    if (result_ == null)
                    {
                        Result = new global::GoGoTalk.ProtoBuf.Result();
                    }
                    input.ReadMessage(Result);
                    break;
                }

                case 18: {
                    if (user_ == null)
                    {
                        User = new global::GoGoTalk.ProtoBuf.UserInfo();
                    }
                    input.ReadMessage(User);
                    break;
                }
                }
            }
        }
Exemple #4
0
 public void MergeFrom(AddFriendsResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.result_ != null)
     {
         if (result_ == null)
         {
             Result = new global::GoGoTalk.ProtoBuf.Result();
         }
         Result.MergeFrom(other.Result);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemple #5
0
 public void MergeFrom(GetFileListResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.result_ != null)
     {
         if (result_ == null)
         {
             Result = new global::GoGoTalk.ProtoBuf.Result();
         }
         Result.MergeFrom(other.Result);
     }
     fileList_.Add(other.fileList_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemple #6
0
 public void MergeFrom(LoginResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.result_ != null)
     {
         if (result_ == null)
         {
             Result = new global::GoGoTalk.ProtoBuf.Result();
         }
         Result.MergeFrom(other.Result);
     }
     if (other.user_ != null)
     {
         if (user_ == null)
         {
             User = new global::GoGoTalk.ProtoBuf.UserInfo();
         }
         User.MergeFrom(other.User);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemple #7
0
 public void MergeFrom(UploadFileResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.result_ != null)
     {
         if (result_ == null)
         {
             Result = new global::GoGoTalk.ProtoBuf.Result();
         }
         Result.MergeFrom(other.Result);
     }
     if (other.FileName.Length != 0)
     {
         FileName = other.FileName;
     }
     if (other.DownUrl.Length != 0)
     {
         DownUrl = other.DownUrl;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }