public MicroMsgRequestNew.Builder SetToUserName(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasToUserName = true;
     this.result.toUserName_   = value;
     return(this);
 }
 public UploadMsgImgResponse.Builder SetClientImgId(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasClientImgId = true;
     this.result.clientImgId_   = value;
     return(this);
 }
Example #3
0
 public DelUserDomainEmail.Builder SetEmail(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasEmail = true;
     this.result.email_   = value;
     return(this);
 }
Example #4
0
 public DelContactMsg.Builder SetUserName(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasUserName = true;
     this.result.userName_   = value;
     return(this);
 }
Example #5
0
 public RoomInfo.Builder SetNickName(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasNickName = true;
     this.result.nickName_   = value;
     return(this);
 }
Example #6
0
 public MicroMsgResponse.Builder SetFromUserName(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasFromUserName = true;
     this.result.fromUserName_   = value;
     return(this);
 }
 public ModChatRoomNotify.Builder SetChatRoomName(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasChatRoomName = true;
     this.result.chatRoomName_   = value;
     return(this);
 }
Example #8
0
 public DelMemberReq.Builder SetMemberName(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasMemberName = true;
     this.result.memberName_   = value;
     return(this);
 }
Example #9
0
 public CloseMicroBlog.Builder SetMicroBlogUserName(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasMicroBlogUserName = true;
     this.result.microBlogUserName_   = value;
     return(this);
 }
 public CreateChatRoomRequest.Builder SetTopic(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasTopic = true;
     this.result.topic_   = value;
     return(this);
 }
Example #11
0
 public AddMsg.Builder SetContent(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasContent = true;
     this.result.content_   = value;
     return(this);
 }
Example #12
0
 public UserInfoExt.Builder SetExtXml(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasExtXml = true;
     this.result.extXml_   = value;
     return(this);
 }
 public UploadMsgImgResponse.Builder SetToUserName(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     this.result.hasToUserName = true;
     this.result.toUserName_   = value;
     return(this);
 }
Example #14
0
            public override ModChatRoomTopic.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                while (input.ReadTag(out num, out str))
                {
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(ModChatRoomTopic._modChatRoomTopicFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = ModChatRoomTopic._modChatRoomTopicFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                    {
                        SKBuiltinString_t.Builder builder = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasChatRoomName)
                        {
                            builder.MergeFrom(this.ChatRoomName);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.ChatRoomName = builder.BuildPartial();
                        continue;
                    }

                    case 0x12:
                    {
                        SKBuiltinString_t.Builder builder2 = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasChatRoomTopic)
                        {
                            builder2.MergeFrom(this.ChatRoomTopic);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.ChatRoomTopic = builder2.BuildPartial();
                        continue;
                    }
                    }
                    if (WireFormat.IsEndGroupTag(num))
                    {
                        return(this);
                    }
                    this.ParseUnknownField(input, extensionRegistry, num, str);
                }
                return(this);
            }
Example #15
0
            public override DelContactMsg.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                while (input.ReadTag(out num, out str))
                {
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(DelContactMsg._delContactMsgFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = DelContactMsg._delContactMsgFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                    {
                        SKBuiltinString_t.Builder builder = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasUserName)
                        {
                            builder.MergeFrom(this.UserName);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.UserName = builder.BuildPartial();
                        continue;
                    }

                    case 0x10:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasMaxMsgId = input.ReadInt32(ref this.result.maxMsgId_);
                }
                return(this);
            }
Example #16
0
            public override BaseResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                while (input.ReadTag(out num, out str))
                {
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(BaseResponse._baseResponseFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = BaseResponse._baseResponseFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 8:
                    {
                        this.result.hasRet = input.ReadInt32(ref this.result.ret_);
                        continue;
                    }

                    case 0x12:
                    {
                        SKBuiltinString_t.Builder builder = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasErrMsg)
                        {
                            builder.MergeFrom(this.ErrMsg);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.ErrMsg = builder.BuildPartial();
                        continue;
                    }
                    }
                    if (WireFormat.IsEndGroupTag(num))
                    {
                        return(this);
                    }
                    this.ParseUnknownField(input, extensionRegistry, num, str);
                }
                return(this);
            }
Example #17
0
 public RoomInfo.Builder MergeNickName(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasNickName && (this.result.nickName_ != SKBuiltinString_t.DefaultInstance))
     {
         this.result.nickName_ = SKBuiltinString_t.CreateBuilder(this.result.nickName_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.nickName_ = value;
     }
     this.result.hasNickName = true;
     return(this);
 }
Example #18
0
 public AddMsg.Builder MergeContent(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasContent && (this.result.content_ != SKBuiltinString_t.DefaultInstance))
     {
         this.result.content_ = SKBuiltinString_t.CreateBuilder(this.result.content_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.content_ = value;
     }
     this.result.hasContent = true;
     return(this);
 }
Example #19
0
 public BaseResponse.Builder MergeErrMsg(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasErrMsg && (this.result.errMsg_ != SKBuiltinString_t.DefaultInstance))
     {
         this.result.errMsg_ = SKBuiltinString_t.CreateBuilder(this.result.errMsg_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.errMsg_ = value;
     }
     this.result.hasErrMsg = true;
     return(this);
 }
Example #20
0
 public OpenQQMicroBlog.Builder MergeMicroBlogUserName(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasMicroBlogUserName && (this.result.microBlogUserName_ != SKBuiltinString_t.DefaultInstance))
     {
         this.result.microBlogUserName_ = SKBuiltinString_t.CreateBuilder(this.result.microBlogUserName_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.microBlogUserName_ = value;
     }
     this.result.hasMicroBlogUserName = true;
     return(this);
 }
Example #21
0
 public GetA8KeyReq.Builder MergeState(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasState && (this.result.state_ != SKBuiltinString_t.DefaultInstance))
     {
         this.result.state_ = SKBuiltinString_t.CreateBuilder(this.result.state_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.state_ = value;
     }
     this.result.hasState = true;
     return(this);
 }
 public UploadMsgImgResponse.Builder MergeClientImgId(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasClientImgId && (this.result.clientImgId_ != SKBuiltinString_t.DefaultInstance))
     {
         this.result.clientImgId_ = SKBuiltinString_t.CreateBuilder(this.result.clientImgId_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.clientImgId_ = value;
     }
     this.result.hasClientImgId = true;
     return(this);
 }
 public InviteChatRoomMemberRequest.Builder MergeChatRoomName(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasChatRoomName && (this.result.chatRoomName_ != SKBuiltinString_t.DefaultInstance))
     {
         this.result.chatRoomName_ = SKBuiltinString_t.CreateBuilder(this.result.chatRoomName_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.chatRoomName_ = value;
     }
     this.result.hasChatRoomName = true;
     return(this);
 }
Example #24
0
 public DelUserDomainEmail.Builder MergeUserName(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasUserName && (this.result.userName_ != SKBuiltinString_t.DefaultInstance))
     {
         this.result.userName_ = SKBuiltinString_t.CreateBuilder(this.result.userName_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.userName_ = value;
     }
     this.result.hasUserName = true;
     return(this);
 }
 public CreateChatRoomResponse.Builder MergeTopic(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasTopic && (this.result.topic_ != SKBuiltinString_t.DefaultInstance))
     {
         this.result.topic_ = SKBuiltinString_t.CreateBuilder(this.result.topic_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.topic_ = value;
     }
     this.result.hasTopic = true;
     return(this);
 }
Example #26
0
 public UserInfoExt.Builder MergeExtXml(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasExtXml && (this.result.extXml_ != SKBuiltinString_t.DefaultInstance))
     {
         this.result.extXml_ = SKBuiltinString_t.CreateBuilder(this.result.extXml_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.extXml_ = value;
     }
     this.result.hasExtXml = true;
     return(this);
 }
Example #27
0
 public GetMsgImgRequest.Builder MergeToUserName(SKBuiltinString_t value)
 {
     ThrowHelper.ThrowIfNull(value, "value");
     this.PrepareBuilder();
     if (this.result.hasToUserName && (this.result.toUserName_ != SKBuiltinString_t.DefaultInstance))
     {
         this.result.toUserName_ = SKBuiltinString_t.CreateBuilder(this.result.toUserName_).MergeFrom(value).BuildPartial();
     }
     else
     {
         this.result.toUserName_ = value;
     }
     this.result.hasToUserName = true;
     return(this);
 }
            public override CreateChatRoomResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                while (input.ReadTag(out num, out str))
                {
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(CreateChatRoomResponse._createChatRoomResponseFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = CreateChatRoomResponse._createChatRoomResponseFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0x12:
                    {
                        SKBuiltinString_t.Builder builder2 = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasTopic)
                        {
                            builder2.MergeFrom(this.Topic);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.Topic = builder2.BuildPartial();
                        continue;
                    }

                    case 0x1a:
                    {
                        SKBuiltinString_t.Builder builder3 = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasPYInitial)
                        {
                            builder3.MergeFrom(this.PYInitial);
                        }
                        input.ReadMessage(builder3, extensionRegistry);
                        this.PYInitial = builder3.BuildPartial();
                        continue;
                    }

                    case 0x22:
                    {
                        SKBuiltinString_t.Builder builder4 = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasQuanPin)
                        {
                            builder4.MergeFrom(this.QuanPin);
                        }
                        input.ReadMessage(builder4, extensionRegistry);
                        this.QuanPin = builder4.BuildPartial();
                        continue;
                    }

                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                    {
                        micromsg.BaseResponse.Builder builder = micromsg.BaseResponse.CreateBuilder();
                        if (this.result.hasBaseResponse)
                        {
                            builder.MergeFrom(this.BaseResponse);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.BaseResponse = builder.BuildPartial();
                        continue;
                    }

                    case 40:
                    {
                        this.result.hasMemberCount = input.ReadUInt32(ref this.result.memberCount_);
                        continue;
                    }

                    case 50:
                    {
                        input.ReadMessageArray <MemberResp>(num, str, this.result.memberList_, MemberResp.DefaultInstance, extensionRegistry);
                        continue;
                    }

                    case 0x3a:
                    {
                        SKBuiltinString_t.Builder builder5 = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasChatRoomName)
                        {
                            builder5.MergeFrom(this.ChatRoomName);
                        }
                        input.ReadMessage(builder5, extensionRegistry);
                        this.ChatRoomName = builder5.BuildPartial();
                        continue;
                    }

                    case 0x42:
                    {
                        SKBuiltinBuffer_t.Builder builder6 = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasImgBuf)
                        {
                            builder6.MergeFrom(this.ImgBuf);
                        }
                        input.ReadMessage(builder6, extensionRegistry);
                        this.ImgBuf = builder6.BuildPartial();
                        continue;
                    }

                    case 0x4a:
                    {
                        this.result.hasBigHeadImgUrl = input.ReadString(ref this.result.bigHeadImgUrl_);
                        continue;
                    }

                    case 0x52:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasSmallHeadImgUrl = input.ReadString(ref this.result.smallHeadImgUrl_);
                }
                return(this);
            }
Example #29
0
            public override GetMsgImgRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                while (input.ReadTag(out num, out str))
                {
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(GetMsgImgRequest._getMsgImgRequestFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = GetMsgImgRequest._getMsgImgRequestFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0x10:
                    {
                        this.result.hasMsgId = input.ReadUInt32(ref this.result.msgId_);
                        continue;
                    }

                    case 0x1a:
                    {
                        SKBuiltinString_t.Builder builder2 = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasFromUserName)
                        {
                            builder2.MergeFrom(this.FromUserName);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.FromUserName = builder2.BuildPartial();
                        continue;
                    }

                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                    {
                        micromsg.BaseRequest.Builder builder = micromsg.BaseRequest.CreateBuilder();
                        if (this.result.hasBaseRequest)
                        {
                            builder.MergeFrom(this.BaseRequest);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.BaseRequest = builder.BuildPartial();
                        continue;
                    }

                    case 0x22:
                    {
                        SKBuiltinString_t.Builder builder3 = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasToUserName)
                        {
                            builder3.MergeFrom(this.ToUserName);
                        }
                        input.ReadMessage(builder3, extensionRegistry);
                        this.ToUserName = builder3.BuildPartial();
                        continue;
                    }

                    case 40:
                    {
                        this.result.hasTotalLen = input.ReadUInt32(ref this.result.totalLen_);
                        continue;
                    }

                    case 0x30:
                    {
                        this.result.hasStartPos = input.ReadUInt32(ref this.result.startPos_);
                        continue;
                    }

                    case 0x38:
                    {
                        this.result.hasDataLen = input.ReadUInt32(ref this.result.dataLen_);
                        continue;
                    }

                    case 0x40:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasCompressType = input.ReadUInt32(ref this.result.compressType_);
                }
                return(this);
            }
            public override InviteChatRoomMemberRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
            {
                uint   num;
                string str;

                this.PrepareBuilder();
                while (input.ReadTag(out num, out str))
                {
                    if ((num == 0) && (str != null))
                    {
                        int index = Array.BinarySearch <string>(InviteChatRoomMemberRequest._inviteChatRoomMemberRequestFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = InviteChatRoomMemberRequest._inviteChatRoomMemberRequestFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                    {
                        micromsg.BaseRequest.Builder builder = micromsg.BaseRequest.CreateBuilder();
                        if (this.result.hasBaseRequest)
                        {
                            builder.MergeFrom(this.BaseRequest);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.BaseRequest = builder.BuildPartial();
                        continue;
                    }

                    case 0x10:
                    {
                        this.result.hasMemberCount = input.ReadUInt32(ref this.result.memberCount_);
                        continue;
                    }

                    case 0x1a:
                    {
                        input.ReadMessageArray <MemberReq>(num, str, this.result.memberList_, MemberReq.DefaultInstance, extensionRegistry);
                        continue;
                    }

                    case 0x22:
                    {
                        SKBuiltinString_t.Builder builder2 = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasChatRoomName)
                        {
                            builder2.MergeFrom(this.ChatRoomName);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.ChatRoomName = builder2.BuildPartial();
                        continue;
                    }
                    }
                    if (WireFormat.IsEndGroupTag(num))
                    {
                        return(this);
                    }
                    this.ParseUnknownField(input, extensionRegistry, num, str);
                }
                return(this);
            }