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); }
public override UploadMsgImgResponse.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>(UploadMsgImgResponse._uploadMsgImgResponseFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = UploadMsgImgResponse._uploadMsgImgResponseFieldTags[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.hasClientImgId) { builder2.MergeFrom(this.ClientImgId); } input.ReadMessage(builder2, extensionRegistry); this.ClientImgId = builder2.BuildPartial(); continue; } case 0x22: { SKBuiltinString_t.Builder builder3 = SKBuiltinString_t.CreateBuilder(); if (this.result.hasFromUserName) { builder3.MergeFrom(this.FromUserName); } input.ReadMessage(builder3, extensionRegistry); this.FromUserName = builder3.BuildPartial(); 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 0x2a: { SKBuiltinString_t.Builder builder4 = SKBuiltinString_t.CreateBuilder(); if (this.result.hasToUserName) { builder4.MergeFrom(this.ToUserName); } input.ReadMessage(builder4, extensionRegistry); this.ToUserName = builder4.BuildPartial(); continue; } case 0x30: { this.result.hasTotalLen = input.ReadUInt32(ref this.result.totalLen_); continue; } case 0x38: { this.result.hasStartPos = input.ReadUInt32(ref this.result.startPos_); continue; } case 0x40: { this.result.hasDataLen = input.ReadUInt32(ref this.result.dataLen_); continue; } case 0x48: break; default: { if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } this.result.hasCreateTime = input.ReadUInt32(ref this.result.createTime_); } return(this); }
public override UploadVideoResponse.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>(UploadVideoResponse._uploadVideoResponseFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = UploadVideoResponse._uploadVideoResponseFieldTags[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 0x12: { this.result.hasClientMsgId = input.ReadString(ref this.result.clientMsgId_); continue; } case 0x18: { this.result.hasMsgId = input.ReadUInt32(ref this.result.msgId_); continue; } case 0x20: { this.result.hasThumbStartPos = input.ReadUInt32(ref this.result.thumbStartPos_); continue; } case 40: { this.result.hasVideoStartPos = input.ReadUInt32(ref this.result.videoStartPos_); continue; } case 0x30: break; default: { if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } this.result.hasNewMsgId = input.ReadUInt64(ref this.result.newMsgId_); } return(this); }
public override SendMsgResponseNew.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>(SendMsgResponseNew._sendMsgResponseNewFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = SendMsgResponseNew._sendMsgResponseNewFieldTags[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.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 <MicroMsgResponseNew>(num, str, this.result.list_, MicroMsgResponseNew.DefaultInstance, extensionRegistry); } return(this); }
public override GetChatroomMemberDetailResponse.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>(GetChatroomMemberDetailResponse._getChatroomMemberDetailResponseFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = GetChatroomMemberDetailResponse._getChatroomMemberDetailResponseFieldTags[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 0x12: { this.result.hasChatroomUserName = input.ReadString(ref this.result.chatroomUserName_); continue; } case 0x18: { this.result.hasServerVersion = input.ReadUInt32(ref this.result.serverVersion_); continue; } case 0x22: { ChatRoomMemberData.Builder builder2 = ChatRoomMemberData.CreateBuilder(); if (this.result.hasNewChatroomData) { builder2.MergeFrom(this.NewChatroomData); } input.ReadMessage(builder2, extensionRegistry); this.NewChatroomData = builder2.BuildPartial(); continue; } } if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); } return(this); }