public override DelMsg.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>(DelMsg._delMsgFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = DelMsg._delMsgFieldTags[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 0x18: case 0x1a: break; case 0x10: { this.result.hasCount = input.ReadUInt32(ref this.result.count_); continue; } default: { if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } input.ReadInt32Array(num, str, this.result.msgIdList_); } return(this); }
public override GetContactResponse.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>(GetContactResponse._getContactResponseFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = GetContactResponse._getContactResponseFieldTags[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 0x20: case 0x22: break; case 0x1a: { input.ReadMessageArray <ModContact>(num, str, this.result.contactList_, ModContact.DefaultInstance, extensionRegistry); continue; } case 0x10: { this.result.hasContactCount = input.ReadUInt32(ref this.result.contactCount_); continue; } default: { if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } input.ReadInt32Array(num, str, this.result.ret_); } return(this); }