public override SnsObjectDetailResponse.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>(SnsObjectDetailResponse._snsObjectDetailResponseFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = SnsObjectDetailResponse._snsObjectDetailResponseFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { 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 0x12: { SnsObject.Builder builder2 = SnsObject.CreateBuilder(); if (this.result.hasObject) { builder2.MergeFrom(this.Object); } input.ReadMessage(builder2, extensionRegistry); this.Object = builder2.BuildPartial(); continue; } } if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); } 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); }
public override SnsUserPageResponse.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>(SnsUserPageResponse._snsUserPageResponseFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = SnsUserPageResponse._snsUserPageResponseFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0x12: { this.result.hasFirstPageMd5 = input.ReadString(ref this.result.firstPageMd5_); continue; } case 0x18: { this.result.hasObjectCount = input.ReadUInt32(ref this.result.objectCount_); 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 0x22: { input.ReadMessageArray <SnsObject>(num, str, this.result.objectList_, SnsObject.DefaultInstance, extensionRegistry); continue; } case 40: { this.result.hasObjectTotalCount = input.ReadUInt32(ref this.result.objectTotalCount_); continue; } case 50: { micromsg.SnsUserInfo.Builder builder2 = micromsg.SnsUserInfo.CreateBuilder(); if (this.result.hasSnsUserInfo) { builder2.MergeFrom(this.SnsUserInfo); } input.ReadMessage(builder2, extensionRegistry); this.SnsUserInfo = builder2.BuildPartial(); continue; } case 0x38: break; default: { if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } this.result.hasNewRequestTime = input.ReadUInt32(ref this.result.newRequestTime_); } return(this); }
public override GetA8KeyResp.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>(GetA8KeyResp._getA8KeyRespFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = GetA8KeyResp._getA8KeyRespFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0x12: { this.result.hasFullURL = input.ReadString(ref this.result.fullURL_); continue; } case 0x1a: { this.result.hasA8Key = input.ReadString(ref this.result.a8Key_); 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.hasActionCode = input.ReadUInt32(ref this.result.actionCode_); continue; } case 0x2a: { this.result.hasTitle = input.ReadString(ref this.result.title_); continue; } case 50: { this.result.hasContent = input.ReadString(ref this.result.content_); continue; } case 0x3a: { JSAPIPermissionBitSet.Builder builder2 = JSAPIPermissionBitSet.CreateBuilder(); if (this.result.hasJSAPIPermission) { builder2.MergeFrom(this.JSAPIPermission); } input.ReadMessage(builder2, extensionRegistry); this.JSAPIPermission = builder2.BuildPartial(); continue; } case 0x42: { micromsg.GeneralControlBitSet.Builder builder3 = micromsg.GeneralControlBitSet.CreateBuilder(); if (this.result.hasGeneralControlBitSet) { builder3.MergeFrom(this.GeneralControlBitSet); } input.ReadMessage(builder3, extensionRegistry); this.GeneralControlBitSet = builder3.BuildPartial(); continue; } } if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); } return(this); }
public override BindOpMobileResponse.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>(BindOpMobileResponse._bindOpMobileResponseFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = BindOpMobileResponse._bindOpMobileResponseFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { 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 0x12: { this.result.hasTicket = input.ReadString(ref this.result.ticket_); continue; } case 0x2a: { this.result.hasPwd = input.ReadString(ref this.result.pwd_); continue; } case 50: { this.result.hasUsername = input.ReadString(ref this.result.username_); continue; } case 0x1a: { this.result.hasSmsNo = input.ReadString(ref this.result.smsNo_); continue; } case 0x20: { this.result.hasNeedSetPwd = input.ReadUInt32(ref this.result.needSetPwd_); continue; } case 0x4a: { micromsg.NetworkControl.Builder builder4 = micromsg.NetworkControl.CreateBuilder(); if (this.result.hasNetworkControl) { builder4.MergeFrom(this.NetworkControl); } input.ReadMessage(builder4, extensionRegistry); this.NetworkControl = builder4.BuildPartial(); continue; } case 0x52: { this.result.hasAuthTicket = input.ReadString(ref this.result.authTicket_); continue; } case 0x3a: { HostList.Builder builder2 = HostList.CreateBuilder(); if (this.result.hasNewHostList) { builder2.MergeFrom(this.NewHostList); } input.ReadMessage(builder2, extensionRegistry); this.NewHostList = builder2.BuildPartial(); continue; } case 0x42: { micromsg.BuiltinIPList.Builder builder3 = micromsg.BuiltinIPList.CreateBuilder(); if (this.result.hasBuiltinIPList) { builder3.MergeFrom(this.BuiltinIPList); } input.ReadMessage(builder3, extensionRegistry); this.BuiltinIPList = builder3.BuildPartial(); continue; } case 0x58: { this.result.hasSafeDevice = input.ReadUInt32(ref this.result.safeDevice_); continue; } case 0x62: { this.result.hasMainAcct = input.ReadString(ref this.result.mainAcct_); continue; } case 0x68: { this.result.hasMainAcctType = input.ReadUInt32(ref this.result.mainAcctType_); continue; } case 0x72: { micromsg.SafeDeviceList.Builder builder5 = micromsg.SafeDeviceList.CreateBuilder(); if (this.result.hasSafeDeviceList) { builder5.MergeFrom(this.SafeDeviceList); } input.ReadMessage(builder5, extensionRegistry); this.SafeDeviceList = builder5.BuildPartial(); continue; } } if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); } return(this); }
public override SendMsgResponse.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>(SendMsgResponse._sendMsgResponseFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = SendMsgResponse._sendMsgResponseFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { 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 0x10: { this.result.hasCount = input.ReadUInt32(ref this.result.count_); continue; } case 0x1a: break; default: { if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } input.ReadMessageArray <MicroMsgResponse>(num, str, this.result.list_, MicroMsgResponse.DefaultInstance, extensionRegistry); } return(this); }
public override UploadVoiceResponse.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>(UploadVoiceResponse._uploadVoiceResponseFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = UploadVoiceResponse._uploadVoiceResponseFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0x18: { this.result.hasOffset = input.ReadUInt32(ref this.result.offset_); continue; } case 0x20: { this.result.hasLength = input.ReadUInt32(ref this.result.length_); continue; } case 40: { this.result.hasCreateTime = input.ReadUInt32(ref this.result.createTime_); continue; } case 0: throw InvalidProtocolBufferException.InvalidTag(); case 10: { this.result.hasFromUserName = input.ReadString(ref this.result.fromUserName_); continue; } case 0x12: { this.result.hasToUserName = input.ReadString(ref this.result.toUserName_); continue; } case 50: { this.result.hasClientMsgId = input.ReadString(ref this.result.clientMsgId_); continue; } case 0x38: { this.result.hasMsgId = input.ReadUInt32(ref this.result.msgId_); continue; } case 0x40: { this.result.hasVoiceLength = input.ReadUInt32(ref this.result.voiceLength_); continue; } case 0x48: { this.result.hasEndFlag = input.ReadUInt32(ref this.result.endFlag_); continue; } case 0x52: { 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 0x58: 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); }
public override GetMsgImgResponse.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>(GetMsgImgResponse._getMsgImgResponseFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = GetMsgImgResponse._getMsgImgResponseFieldTags[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.BaseResponse.Builder builder = micromsg.BaseResponse.CreateBuilder(); if (this.result.hasBaseResponse) { builder.MergeFrom(this.BaseResponse); } input.ReadMessage(builder, extensionRegistry); this.BaseResponse = 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 0x42: { SKBuiltinBuffer_t.Builder builder4 = SKBuiltinBuffer_t.CreateBuilder(); if (this.result.hasData) { builder4.MergeFrom(this.Data); } input.ReadMessage(builder4, extensionRegistry); this.Data = builder4.BuildPartial(); continue; } } if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); } return(this); }
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); }