Пример #1
0
 public TenPayRequest.Builder SetReqTextWx(SKBuiltinBuffer_t.Builder builderForValue)
 {
     ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
     this.PrepareBuilder();
     this.result.hasReqTextWx = true;
     this.result.reqTextWx_   = builderForValue.Build();
     return(this);
 }
 public CreateChatRoomResponse.Builder SetImgBuf(SKBuiltinBuffer_t.Builder builderForValue)
 {
     ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
     this.PrepareBuilder();
     this.result.hasImgBuf = true;
     this.result.imgBuf_   = builderForValue.Build();
     return(this);
 }
Пример #3
0
 public CDNDnsInfo.Builder SetAuthKey(SKBuiltinBuffer_t.Builder builderForValue)
 {
     ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
     this.PrepareBuilder();
     this.result.hasAuthKey = true;
     this.result.authKey_   = builderForValue.Build();
     return(this);
 }
Пример #4
0
 public AppMsg.Builder SetThumb(SKBuiltinBuffer_t.Builder builderForValue)
 {
     ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
     this.PrepareBuilder();
     this.result.hasThumb = true;
     this.result.thumb_   = builderForValue.Build();
     return(this);
 }
Пример #5
0
 public HongBaoReq.Builder SetReqText(SKBuiltinBuffer_t.Builder builderForValue)
 {
     ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
     this.PrepareBuilder();
     this.result.hasReqText = true;
     this.result.reqText_   = builderForValue.Build();
     return(this);
 }
Пример #6
0
 public NewInitRequest.Builder SetMaxSynckey(SKBuiltinBuffer_t.Builder builderForValue)
 {
     ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
     this.PrepareBuilder();
     this.result.hasMaxSynckey = true;
     this.result.maxSynckey_   = builderForValue.Build();
     return(this);
 }
Пример #7
0
 public GetA8KeyReq.Builder SetA2Key(SKBuiltinBuffer_t.Builder builderForValue)
 {
     ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
     this.PrepareBuilder();
     this.result.hasA2Key = true;
     this.result.a2Key_   = builderForValue.Build();
     return(this);
 }
Пример #8
0
 public UploadVoiceRequest.Builder SetVoiceId(SKBuiltinBuffer_t.Builder builderForValue)
 {
     ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
     this.PrepareBuilder();
     this.result.hasVoiceId = true;
     this.result.voiceId_   = builderForValue.Build();
     return(this);
 }
Пример #9
0
 public NewSyncResponse.Builder SetKeyBuf(SKBuiltinBuffer_t.Builder builderForValue)
 {
     ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
     this.PrepareBuilder();
     this.result.hasKeyBuf = true;
     this.result.keyBuf_   = builderForValue.Build();
     return(this);
 }
Пример #10
0
 public SnsObjectOp.Builder SetExt(SKBuiltinBuffer_t.Builder builderForValue)
 {
     ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
     this.PrepareBuilder();
     this.result.hasExt = true;
     this.result.ext_   = builderForValue.Build();
     return(this);
 }
Пример #11
0
 public CmdItem.Builder SetCmdBuf(SKBuiltinBuffer_t.Builder builderForValue)
 {
     ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
     this.PrepareBuilder();
     this.result.hasCmdBuf = true;
     this.result.cmdBuf_   = builderForValue.Build();
     return(this);
 }
Пример #12
0
 public NewInitResponse.Builder SetCurrentSynckey(SKBuiltinBuffer_t.Builder builderForValue)
 {
     ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
     this.PrepareBuilder();
     this.result.hasCurrentSynckey = true;
     this.result.currentSynckey_   = builderForValue.Build();
     return(this);
 }
Пример #13
0
 public DownloadVideoResponse.Builder SetData(SKBuiltinBuffer_t.Builder builderForValue)
 {
     ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
     this.PrepareBuilder();
     this.result.hasData = true;
     this.result.data_   = builderForValue.Build();
     return(this);
 }
Пример #14
0
            public override SnsObjectOp.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>(SnsObjectOp._snsObjectOpFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = SnsObjectOp._snsObjectOpFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 8:
                    {
                        this.result.hasId = input.ReadUInt64(ref this.result.id_);
                        continue;
                    }

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

                    case 0x1a:
                    {
                        SKBuiltinBuffer_t.Builder builder = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasExt)
                        {
                            builder.MergeFrom(this.Ext);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.Ext = builder.BuildPartial();
                        continue;
                    }
                    }
                    if (WireFormat.IsEndGroupTag(num))
                    {
                        return(this);
                    }
                    this.ParseUnknownField(input, extensionRegistry, num, str);
                }
                return(this);
            }
Пример #15
0
            public override DownloadVideoResponse.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>(DownloadVideoResponse._downloadVideoResponseFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = DownloadVideoResponse._downloadVideoResponseFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

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

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

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

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

                    case 0x2a:
                    {
                        SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasData)
                        {
                            builder2.MergeFrom(this.Data);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.Data = builder2.BuildPartial();
                        continue;
                    }
                    }
                    if (WireFormat.IsEndGroupTag(num))
                    {
                        return(this);
                    }
                    this.ParseUnknownField(input, extensionRegistry, num, str);
                }
                return(this);
            }
Пример #16
0
            public override NewInitRequest.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>(NewInitRequest._newInitRequestFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = NewInitRequest._newInitRequestFieldTags[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 0x12:
                    {
                        this.result.hasUserName = input.ReadString(ref this.result.userName_);
                        continue;
                    }

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

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

                    case 0x2a:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasLanguage = input.ReadString(ref this.result.language_);
                }
                return(this);
            }
Пример #17
0
            public override NewInitResponse.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>(NewInitResponse._newInitResponseFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = NewInitResponse._newInitResponseFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0x12:
                    {
                        SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasCurrentSynckey)
                        {
                            builder2.MergeFrom(this.CurrentSynckey);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.CurrentSynckey = builder2.BuildPartial();
                        continue;
                    }

                    case 0x1a:
                    {
                        SKBuiltinBuffer_t.Builder builder3 = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasMaxSynckey)
                        {
                            builder3.MergeFrom(this.MaxSynckey);
                        }
                        input.ReadMessage(builder3, extensionRegistry);
                        this.MaxSynckey = builder3.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 0x20:
                    {
                        this.result.hasContinueFlag = input.ReadUInt32(ref this.result.continueFlag_);
                        continue;
                    }

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

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

                    case 0x3a:
                    {
                        input.ReadMessageArray <CmdItem>(num, str, this.result.cmdList_, CmdItem.DefaultInstance, extensionRegistry);
                        continue;
                    }

                    case 0x40:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasRatio = input.ReadUInt32(ref this.result.ratio_);
                }
                return(this);
            }
Пример #18
0
            public override HongBaoReq.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>(HongBaoReq._hongBaoReqFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = HongBaoReq._hongBaoReqFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

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

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

                    case 0x18:
                    {
                        this.result.hasOutPutType = input.ReadUInt32(ref this.result.outPutType_);
                        continue;
                    }

                    case 0x22:
                    {
                        SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasReqText)
                        {
                            builder2.MergeFrom(this.ReqText);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.ReqText = builder2.BuildPartial();
                        continue;
                    }
                    }
                    if (WireFormat.IsEndGroupTag(num))
                    {
                        return(this);
                    }
                    this.ParseUnknownField(input, extensionRegistry, num, str);
                }
                return(this);
            }
Пример #19
0
            public override DownloadVoiceResponse.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>(DownloadVoiceResponse._downloadVoiceResponseFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = DownloadVoiceResponse._downloadVoiceResponseFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0x10:
                    {
                        this.result.hasOffset = input.ReadUInt32(ref this.result.offset_);
                        continue;
                    }

                    case 0x18:
                    {
                        this.result.hasLength = input.ReadUInt32(ref this.result.length_);
                        continue;
                    }

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

                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 8:
                    {
                        this.result.hasMsgId = input.ReadUInt32(ref this.result.msgId_);
                        continue;
                    }

                    case 50:
                    {
                        this.result.hasClientMsgId = input.ReadString(ref this.result.clientMsgId_);
                        continue;
                    }

                    case 0x3a:
                    {
                        SKBuiltinBuffer_t.Builder builder = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasData)
                        {
                            builder.MergeFrom(this.Data);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.Data = builder.BuildPartial();
                        continue;
                    }

                    case 0x40:
                    {
                        this.result.hasEndFlag = input.ReadUInt32(ref this.result.endFlag_);
                        continue;
                    }

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

                    case 80:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasCancelFlag = input.ReadUInt32(ref this.result.cancelFlag_);
                }
                return(this);
            }
Пример #20
0
            public override UploadVoiceRequest.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>(UploadVoiceRequest._uploadVoiceRequestFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = UploadVoiceRequest._uploadVoiceRequestFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0x12:
                    {
                        this.result.hasToUserName = input.ReadString(ref this.result.toUserName_);
                        continue;
                    }

                    case 0x18:
                    {
                        this.result.hasOffset = input.ReadUInt32(ref this.result.offset_);
                        continue;
                    }

                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                    {
                        this.result.hasFromUserName = input.ReadString(ref this.result.fromUserName_);
                        continue;
                    }

                    case 0x20:
                    {
                        this.result.hasLength = input.ReadUInt32(ref this.result.length_);
                        continue;
                    }

                    case 0x2a:
                    {
                        this.result.hasClientMsgId = input.ReadString(ref this.result.clientMsgId_);
                        continue;
                    }

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

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

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

                    case 0x58:
                    {
                        this.result.hasCancelFlag = input.ReadUInt32(ref this.result.cancelFlag_);
                        continue;
                    }

                    case 0x62:
                    {
                        this.result.hasMsgSource = input.ReadString(ref this.result.msgSource_);
                        continue;
                    }

                    case 0x68:
                    {
                        this.result.hasVoiceFormat = input.ReadUInt32(ref this.result.voiceFormat_);
                        continue;
                    }

                    case 0x48:
                    {
                        this.result.hasEndFlag = input.ReadUInt32(ref this.result.endFlag_);
                        continue;
                    }

                    case 0x52:
                    {
                        BaseRequest.Builder builder2 = BaseRequest.CreateBuilder();
                        if (this.result.hasBaseRequest)
                        {
                            builder2.MergeFrom(this.BaseRequest);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.BaseRequest = builder2.BuildPartial();
                        continue;
                    }

                    case 0x70:
                    {
                        this.result.hasUICreateTime = input.ReadUInt32(ref this.result.uICreateTime_);
                        continue;
                    }

                    case 120:
                    {
                        this.result.hasForwardFlag = input.ReadUInt32(ref this.result.forwardFlag_);
                        continue;
                    }

                    case 0x80:
                    {
                        this.result.hasNewMsgId = input.ReadUInt64(ref this.result.newMsgId_);
                        continue;
                    }

                    case 0x88:
                    {
                        this.result.hasReqTime = input.ReadUInt32(ref this.result.reqTime_);
                        continue;
                    }

                    case 0x92:
                    {
                        SKBuiltinBuffer_t.Builder builder3 = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasVoiceId)
                        {
                            builder3.MergeFrom(this.VoiceId);
                        }
                        input.ReadMessage(builder3, extensionRegistry);
                        this.VoiceId = builder3.BuildPartial();
                        continue;
                    }
                    }
                    if (WireFormat.IsEndGroupTag(num))
                    {
                        return(this);
                    }
                    this.ParseUnknownField(input, extensionRegistry, num, str);
                }
                return(this);
            }
Пример #21
0
            public override NewSyncResponse.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>(NewSyncResponse._newSyncResponseFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = NewSyncResponse._newSyncResponseFieldTags[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:
                    {
                        CmdList.Builder builder = CmdList.CreateBuilder();
                        if (this.result.hasCmdList)
                        {
                            builder.MergeFrom(this.CmdList);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.CmdList = builder.BuildPartial();
                        continue;
                    }

                    case 0x18:
                    {
                        this.result.hasContinueFlag = input.ReadUInt32(ref this.result.continueFlag_);
                        continue;
                    }

                    case 0x22:
                    {
                        SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasKeyBuf)
                        {
                            builder2.MergeFrom(this.KeyBuf);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.KeyBuf = builder2.BuildPartial();
                        continue;
                    }

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

                    case 0x30:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasOnlineVersion = input.ReadUInt32(ref this.result.onlineVersion_);
                }
                return(this);
            }
Пример #22
0
            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);
            }
Пример #23
0
            public override TenPayResponse.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>(TenPayResponse._tenPayResponseFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = TenPayResponse._tenPayResponseFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0x12:
                    {
                        SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasRetText)
                        {
                            builder2.MergeFrom(this.RetText);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.RetText = builder2.BuildPartial();
                        continue;
                    }

                    case 0x18:
                    {
                        this.result.hasPlatRet = input.ReadInt32(ref this.result.platRet_);
                        continue;
                    }

                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

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

                    case 0x22:
                    {
                        this.result.hasPlatMsg = input.ReadString(ref this.result.platMsg_);
                        continue;
                    }

                    case 40:
                    {
                        this.result.hasCgiCmdid = input.ReadInt32(ref this.result.cgiCmdid_);
                        continue;
                    }

                    case 0x30:
                    {
                        this.result.hasTenpayErrType = input.ReadInt32(ref this.result.tenpayErrType_);
                        continue;
                    }

                    case 0x3a:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasTenpayErrMsg = input.ReadString(ref this.result.tenpayErrMsg_);
                }
                return(this);
            }
Пример #24
0
            public override CDNDnsInfo.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>(CDNDnsInfo._cDNDnsInfoFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = CDNDnsInfo._cDNDnsInfoFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0x18:
                    {
                        this.result.hasExpireTime = input.ReadUInt32(ref this.result.expireTime_);
                        continue;
                    }

                    case 0x20:
                    {
                        this.result.hasFrontID = input.ReadInt32(ref this.result.frontID_);
                        continue;
                    }

                    case 40:
                    {
                        this.result.hasFrontIPCount = input.ReadInt32(ref this.result.frontIPCount_);
                        continue;
                    }

                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 8:
                    {
                        this.result.hasVer = input.ReadUInt32(ref this.result.ver_);
                        continue;
                    }

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

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

                    case 0x3a:
                    {
                        this.result.hasZoneDomain = input.ReadString(ref this.result.zoneDomain_);
                        continue;
                    }

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

                    case 0x48:
                    {
                        this.result.hasZoneID = input.ReadInt32(ref this.result.zoneID_);
                        continue;
                    }

                    case 80:
                    {
                        this.result.hasZoneIPCount = input.ReadInt32(ref this.result.zoneIPCount_);
                        continue;
                    }

                    case 90:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    input.ReadMessageArray <SKBuiltinString_t>(num, str, this.result.zoneIPList_, SKBuiltinString_t.DefaultInstance, extensionRegistry);
                }
                return(this);
            }
Пример #25
0
            public override GetA8KeyReq.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>(GetA8KeyReq._getA8KeyReqFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = GetA8KeyReq._getA8KeyReqFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0x1a:
                    {
                        SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasA2Key)
                        {
                            builder2.MergeFrom(this.A2Key);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.A2Key = builder2.BuildPartial();
                        continue;
                    }

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

                    case 0x2a:
                    {
                        SKBuiltinString_t.Builder builder4 = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasScope)
                        {
                            builder4.MergeFrom(this.Scope);
                        }
                        input.ReadMessage(builder4, extensionRegistry);
                        this.Scope = builder4.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 0x10:
                    {
                        this.result.hasOpCode = input.ReadUInt32(ref this.result.opCode_);
                        continue;
                    }

                    case 50:
                    {
                        SKBuiltinString_t.Builder builder5 = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasState)
                        {
                            builder5.MergeFrom(this.State);
                        }
                        input.ReadMessage(builder5, extensionRegistry);
                        this.State = builder5.BuildPartial();
                        continue;
                    }

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

                    case 0x42:
                    {
                        this.result.hasFriendUserName = input.ReadString(ref this.result.friendUserName_);
                        continue;
                    }

                    case 0x48:
                    {
                        this.result.hasFriendQQ = input.ReadUInt32(ref this.result.friendQQ_);
                        continue;
                    }

                    case 80:
                    {
                        this.result.hasScene = input.ReadUInt32(ref this.result.scene_);
                        continue;
                    }

                    case 90:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasUserName = input.ReadString(ref this.result.userName_);
                }
                return(this);
            }
Пример #26
0
            public override NewSyncRequest.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>(NewSyncRequest._newSyncRequestFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = NewSyncRequest._newSyncRequestFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                    {
                        CmdList.Builder builder = CmdList.CreateBuilder();
                        if (this.result.hasOplog)
                        {
                            builder.MergeFrom(this.Oplog);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.Oplog = builder.BuildPartial();
                        continue;
                    }

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

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

                    case 0x20:
                    {
                        this.result.hasScene = input.ReadUInt32(ref this.result.scene_);
                        continue;
                    }

                    case 0x2a:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasDeviceType = input.ReadBytes(ref this.result.deviceType_); //input.ReadString(ref this.result.deviceType_);
                }
                return(this);
            }
Пример #27
0
            public override AppMsg.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>(AppMsg._appMsgFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = AppMsg._appMsgFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0x18:
                    {
                        this.result.hasSdkVersion = input.ReadUInt32(ref this.result.sdkVersion_);
                        continue;
                    }

                    case 0x22:
                    {
                        this.result.hasToUserName = input.ReadString(ref this.result.toUserName_);
                        continue;
                    }

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

                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

                    case 10:
                    {
                        this.result.hasFromUserName = input.ReadString(ref this.result.fromUserName_);
                        continue;
                    }

                    case 0x12:
                    {
                        this.result.hasAppId = input.ReadString(ref this.result.appId_);
                        continue;
                    }

                    case 50:
                    {
                        this.result.hasContent = input.ReadString(ref this.result.content_);
                        continue;
                    }

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

                    case 0x42:
                    {
                        this.result.hasClientMsgId = input.ReadString(ref this.result.clientMsgId_);
                        continue;
                    }

                    case 0x4a:
                    {
                        SKBuiltinBuffer_t.Builder builder = SKBuiltinBuffer_t.CreateBuilder();
                        if (this.result.hasThumb)
                        {
                            builder.MergeFrom(this.Thumb);
                        }
                        input.ReadMessage(builder, extensionRegistry);
                        this.Thumb = builder.BuildPartial();
                        continue;
                    }

                    case 80:
                    {
                        this.result.hasSource = input.ReadInt32(ref this.result.source_);
                        continue;
                    }

                    case 0x58:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasRemindId = input.ReadInt32(ref this.result.remindId_);
                }
                return(this);
            }
Пример #28
0
            public override AddMsg.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>(AddMsg._addMsgFieldNames, str, StringComparer.Ordinal);
                        if (index >= 0)
                        {
                            num = AddMsg._addMsgFieldTags[index];
                        }
                        else
                        {
                            this.ParseUnknownField(input, extensionRegistry, num, str);
                            continue;
                        }
                    }
                    switch (num)
                    {
                    case 0x1a:
                    {
                        SKBuiltinString_t.Builder builder2 = SKBuiltinString_t.CreateBuilder();
                        if (this.result.hasToUserName)
                        {
                            builder2.MergeFrom(this.ToUserName);
                        }
                        input.ReadMessage(builder2, extensionRegistry);
                        this.ToUserName = builder2.BuildPartial();
                        continue;
                    }

                    case 0x20:
                    {
                        this.result.hasMsgType = input.ReadInt32(ref this.result.msgType_);
                        continue;
                    }

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

                    case 0:
                        throw InvalidProtocolBufferException.InvalidTag();

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

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

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

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

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

                    case 0x48:
                    {
                        this.result.hasCreateTime = input.ReadUInt32(ref this.result.createTime_);
                        continue;
                    }

                    case 0x52:
                    {
                        this.result.hasMsgSource = input.ReadString(ref this.result.msgSource_);
                        continue;
                    }

                    case 90:
                    {
                        this.result.hasPushContent = input.ReadString(ref this.result.pushContent_);
                        continue;
                    }

                    case 0x60:
                        break;

                    default:
                    {
                        if (WireFormat.IsEndGroupTag(num))
                        {
                            return(this);
                        }
                        this.ParseUnknownField(input, extensionRegistry, num, str);
                        continue;
                    }
                    }
                    this.result.hasNewMsgId = input.ReadInt64(ref this.result.newMsgId_);
                }
                return(this);
            }