public override objectICarriableTrans.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry) { uint num; string str; this.PrepareBuilder(); UnknownFieldSet.Builder unknownFields = null; while (input.ReadTag(out num, out str)) { if ((num == 0) && (str != null)) { int index = Array.BinarySearch <string>(objectICarriableTrans._objectICarriableTransFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = objectICarriableTrans._objectICarriableTransFieldTags[index]; } else { if (unknownFields == null) { unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields); } this.ParseUnknownField(input, unknownFields, extensionRegistry, num, str); continue; } } switch (num) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 8: break; default: { if (WireFormat.IsEndGroupTag(num)) { if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); } if (unknownFields == null) { unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields); } this.ParseUnknownField(input, unknownFields, extensionRegistry, num, str); continue; } } this.result.hasTransCarrierID = input.ReadInt32(ref this.result.transCarrierID_); } if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); }
public override Blueprint.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry) { uint num; string str; this.PrepareBuilder(); UnknownFieldSet.Builder builder = null; while (input.ReadTag(ref num, ref str)) { if ((num == 0) && (str != null)) { int index = Array.BinarySearch <string>(Blueprint._blueprintFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = Blueprint._blueprintFieldTags[index]; } else { if (builder == null) { builder = UnknownFieldSet.CreateBuilder(this.get_UnknownFields()); } this.ParseUnknownField(input, builder, extensionRegistry, num, str); continue; } } switch (num) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 8: break; default: { if (WireFormat.IsEndGroupTag(num)) { if (builder != null) { this.set_UnknownFields(builder.Build()); } return(this); } if (builder == null) { builder = UnknownFieldSet.CreateBuilder(this.get_UnknownFields()); } this.ParseUnknownField(input, builder, extensionRegistry, num, str); continue; } } this.result.hasId = input.ReadInt32(ref this.result.id_); } if (builder != null) { this.set_UnknownFields(builder.Build()); } return(this); }
public void MergeFrom(CodedInputStream input) { uint tag; while (input.ReadTag(out tag)) { if (tag == 0) { throw InvalidProtocolBufferException.InvalidTag(); } if (tag == codec.keyCodec.Tag) { Key = codec.keyCodec.Read(input); } else if (tag == codec.valueCodec.Tag) { Value = codec.valueCodec.Read(input); } else if (WireFormat.IsEndGroupTag(tag)) { // TODO(jonskeet): Do we need this? (Given that we don't support groups...) return; } } }
public override PushListResult.Builder MergeFrom( ICodedInputStream input, ExtensionRegistry extensionRegistry) { this.PrepareBuilder(); UnknownFieldSet.Builder unknownFields = (UnknownFieldSet.Builder)null; uint fieldTag; string fieldName; while (input.ReadTag(out fieldTag, out fieldName)) { if (fieldTag == 0U && fieldName != null) { int index = Array.BinarySearch <string>(PushListResult._pushListResultFieldNames, fieldName, (IComparer <string>)StringComparer.Ordinal); if (index >= 0) { fieldTag = PushListResult._pushListResultFieldTags[index]; } else { if (unknownFields == null) { unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields); } this.ParseUnknownField(input, unknownFields, extensionRegistry, fieldTag, fieldName); continue; } } if (fieldTag == 0U) { throw InvalidProtocolBufferException.InvalidTag(); } if (fieldTag != 10U) { if (WireFormat.IsEndGroupTag(fieldTag)) { if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); } if (unknownFields == null) { unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields); } this.ParseUnknownField(input, unknownFields, extensionRegistry, fieldTag, fieldName); } else { input.ReadMessageArray <PushResult>(fieldTag, fieldName, (ICollection <PushResult>) this.result.results_, PushResult.DefaultInstance, extensionRegistry); } } if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); }
// Token: 0x06000898 RID: 2200 RVA: 0x00014930 File Offset: 0x00012B30 public override Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry) { PrepareBuilder(); UnknownFieldSet.Builder builder = null; while (input.ReadTag(out uint num, out string text)) { if (num == 0U && text != null) { int num2 = Array.BinarySearch(_endBatchTaskFieldNames, text, StringComparer.Ordinal); if (num2 < 0) { if (builder == null) { builder = UnknownFieldSet.CreateBuilder(UnknownFields); } ParseUnknownField(input, builder, extensionRegistry, num, text); continue; } num = _endBatchTaskFieldTags[num2]; } if (num == 0U) { throw InvalidProtocolBufferException.InvalidTag(); } if (num != 10U) { if (num != 18U) { if (WireFormat.IsEndGroupTag(num)) { if (builder != null) { UnknownFields = builder.Build(); } return(this); } if (builder == null) { builder = UnknownFieldSet.CreateBuilder(UnknownFields); } ParseUnknownField(input, builder, extensionRegistry, num, text); } else { result.HasSeqId = input.ReadString(ref result.seqId_); } } else { result.HasTaskId = input.ReadString(ref result.taskId_); } } if (builder != null) { UnknownFields = builder.Build(); } return(this); }
public override objectICarriableTrans.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry) { uint num; string str; this.PrepareBuilder(); UnknownFieldSet.Builder builder = null; while (input.ReadTag(out num, out str)) { if (num == 0 && str != null) { int num1 = Array.BinarySearch <string>(objectICarriableTrans._objectICarriableTransFieldNames, str, StringComparer.Ordinal); if (num1 < 0) { if (builder == null) { builder = UnknownFieldSet.CreateBuilder(this.UnknownFields); } this.ParseUnknownField(input, builder, extensionRegistry, num, str); continue; } else { num = objectICarriableTrans._objectICarriableTransFieldTags[num1]; } } uint num2 = num; if (num2 == 0) { throw InvalidProtocolBufferException.InvalidTag(); } if (num2 == 8) { this.result.hasTransCarrierID = input.ReadInt32(ref this.result.transCarrierID_); } else { if (WireFormat.IsEndGroupTag(num)) { if (builder != null) { this.UnknownFields = builder.Build(); } return(this); } if (builder == null) { builder = UnknownFieldSet.CreateBuilder(this.UnknownFields); } this.ParseUnknownField(input, builder, extensionRegistry, num, str); } } if (builder != null) { this.UnknownFields = builder.Build(); } return(this); }
public override ModChatRoomTopic.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry) { uint num; string str; this.PrepareBuilder(); while (input.ReadTag(out num, out str)) { if ((num == 0) && (str != null)) { int index = Array.BinarySearch <string>(ModChatRoomTopic._modChatRoomTopicFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = ModChatRoomTopic._modChatRoomTopicFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 10: { SKBuiltinString_t.Builder builder = SKBuiltinString_t.CreateBuilder(); if (this.result.hasChatRoomName) { builder.MergeFrom(this.ChatRoomName); } input.ReadMessage(builder, extensionRegistry); this.ChatRoomName = builder.BuildPartial(); continue; } case 0x12: { SKBuiltinString_t.Builder builder2 = SKBuiltinString_t.CreateBuilder(); if (this.result.hasChatRoomTopic) { builder2.MergeFrom(this.ChatRoomTopic); } input.ReadMessage(builder2, extensionRegistry); this.ChatRoomTopic = builder2.BuildPartial(); continue; } } if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); } return(this); }
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); }
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 SendAuthReq.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry) { this.PrepareBuilder(); uint num; string text; while (input.ReadTag(out num, out text)) { if (num == 0u && text != null) { int num2 = Array.BinarySearch <string>(SendAuthReq._sendAuthReqFieldNames, text, StringComparer.Ordinal); if (num2 < 0) { this.ParseUnknownField(input, extensionRegistry, num, text); continue; } num = SendAuthReq._sendAuthReqFieldTags[num2]; } uint num3 = num; if (num3 <= 10u) { if (num3 == 0u) { throw InvalidProtocolBufferException.InvalidTag(); } if (num3 == 10u) { BaseReqP.Builder builder = BaseReqP.CreateBuilder(); if (this.result.hasBase) { builder.MergeFrom(this.Base); } input.ReadMessage(builder, extensionRegistry); this.Base = builder.BuildPartial(); continue; } } else { if (num3 == 18u) { this.result.hasScope = input.ReadString(ref this.result.scope_); continue; } if (num3 == 26u) { this.result.hasState = input.ReadString(ref this.result.state_); continue; } } if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, text); } return(this); }
public override BaseRespP.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry) { this.PrepareBuilder(); uint num; string text; while (input.ReadTag(out num, out text)) { if (num == 0u && text != null) { int num2 = Array.BinarySearch <string>(BaseRespP._baseRespPFieldNames, text, StringComparer.Ordinal); if (num2 < 0) { this.ParseUnknownField(input, extensionRegistry, num, text); continue; } num = BaseRespP._baseRespPFieldTags[num2]; } uint num3 = num; if (num3 <= 8u) { if (num3 == 0u) { throw InvalidProtocolBufferException.InvalidTag(); } if (num3 == 8u) { this.result.hasType = input.ReadUInt32(ref this.result.type_); continue; } } else { if (num3 == 18u) { this.result.hasTransaction = input.ReadString(ref this.result.transaction_); continue; } if (num3 == 24u) { this.result.hasErrCode = input.ReadUInt32(ref this.result.errCode_); continue; } if (num3 == 34u) { this.result.hasErrStr = input.ReadString(ref this.result.errStr_); continue; } } if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, text); } return(this); }
public override WXAppExtendMessageP.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>(WXAppExtendMessageP._wXAppExtendMessagePFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = WXAppExtendMessageP._wXAppExtendMessagePFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 10: { this.result.hasFileData = input.ReadBytes(ref this.result.fileData_); continue; } case 0x12: { this.result.hasExtInfo = input.ReadString(ref this.result.extInfo_); continue; } case 0x1a: break; default: { if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } this.result.hasFileName = input.ReadString(ref this.result.fileName_); } return(this); }
public override DelContactMsg.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry) { uint num; string str; this.PrepareBuilder(); while (input.ReadTag(out num, out str)) { if ((num == 0) && (str != null)) { int index = Array.BinarySearch <string>(DelContactMsg._delContactMsgFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = DelContactMsg._delContactMsgFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 10: { SKBuiltinString_t.Builder builder = SKBuiltinString_t.CreateBuilder(); if (this.result.hasUserName) { builder.MergeFrom(this.UserName); } input.ReadMessage(builder, extensionRegistry); this.UserName = builder.BuildPartial(); continue; } case 0x10: break; default: { if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } this.result.hasMaxMsgId = input.ReadInt32(ref this.result.maxMsgId_); } return(this); }
public override LinkedinContactItem.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>(LinkedinContactItem._linkedinContactItemFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = LinkedinContactItem._linkedinContactItemFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 10: { this.result.hasLinkedinName = input.ReadString(ref this.result.linkedinName_); continue; } case 0x12: { this.result.hasLinkedinMemberID = input.ReadString(ref this.result.linkedinMemberID_); continue; } case 0x1a: break; default: { if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } this.result.hasLinkedinPublicUrl = input.ReadString(ref this.result.linkedinPublicUrl_); } return(this); }
public override GmailInfo.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>(GmailInfo._gmailInfoFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = GmailInfo._gmailInfoFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 10: { this.result.hasGmailAcct = input.ReadString(ref this.result.gmailAcct_); continue; } case 0x10: { this.result.hasGmailSwitch = input.ReadUInt32(ref this.result.gmailSwitch_); continue; } case 0x18: break; default: { if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } this.result.hasGmailErrCode = input.ReadUInt32(ref this.result.gmailErrCode_); } return(this); }
// Token: 0x06001103 RID: 4355 RVA: 0x0003E9B4 File Offset: 0x0003CBB4 public override RustProto.Blueprint.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry) { this.PrepareBuilder(); UnknownFieldSet.Builder builder = null; uint num; string text; while (input.ReadTag(ref num, ref text)) { if (num == 0u && text != null) { int num2 = Array.BinarySearch <string>(RustProto.Blueprint._blueprintFieldNames, text, StringComparer.Ordinal); if (num2 < 0) { if (builder == null) { builder = UnknownFieldSet.CreateBuilder(this.UnknownFields); } this.ParseUnknownField(input, builder, extensionRegistry, num, text); continue; } num = RustProto.Blueprint._blueprintFieldTags[num2]; } uint num3 = num; if (num3 == 0u) { throw InvalidProtocolBufferException.InvalidTag(); } if (num3 != 8u) { if (WireFormat.IsEndGroupTag(num)) { if (builder != null) { this.UnknownFields = builder.Build(); } return(this); } if (builder == null) { builder = UnknownFieldSet.CreateBuilder(this.UnknownFields); } this.ParseUnknownField(input, builder, extensionRegistry, num, text); } else { this.result.hasId = input.ReadInt32(ref this.result.id_); } } if (builder != null) { this.UnknownFields = builder.Build(); } return(this); }
public override ChatRoomMemberData.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>(ChatRoomMemberData._chatRoomMemberDataFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = ChatRoomMemberData._chatRoomMemberDataFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 8: { this.result.hasMemberCount = input.ReadUInt32(ref this.result.memberCount_); continue; } case 0x12: { input.ReadMessageArray <ChatRoomMemberInfo>(num, str, this.result.chatRoomMember_, ChatRoomMemberInfo.DefaultInstance, extensionRegistry); continue; } case 0x18: break; default: { if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } this.result.hasInfoMask = input.ReadUInt32(ref this.result.infoMask_); } return(this); }
public override BuiltinIP.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>(BuiltinIP._builtinIPFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = BuiltinIP._builtinIPFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 8: { this.result.hasType = input.ReadUInt32(ref this.result.type_); continue; } case 0x10: { this.result.hasPort = input.ReadUInt32(ref this.result.port_); continue; } case 0x1a: break; default: { if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } this.result.hasIP = input.ReadBytes(ref this.result.iP_); } return(this); }
public override GetMessageFromWXReq.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>(GetMessageFromWXReq._getMessageFromWXReqFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = GetMessageFromWXReq._getMessageFromWXReqFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 10: { BaseReqP.Builder builder = BaseReqP.CreateBuilder(); if (this.result.hasBase) { builder.MergeFrom(this.Base); } input.ReadMessage(builder, extensionRegistry); this.Base = builder.BuildPartial(); continue; } case 0x12: 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); }
public override PushListResult.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry) { this.PrepareBuilder(); UnknownFieldSet.Builder builder = null; uint num; string text; while (input.ReadTag(out num, out text)) { if (num == 0u && text != null) { int num2 = Array.BinarySearch <string>(PushListResult._pushListResultFieldNames, text, StringComparer.Ordinal); if (num2 < 0) { if (builder == null) { builder = UnknownFieldSet.CreateBuilder(this.UnknownFields); } this.ParseUnknownField(input, builder, extensionRegistry, num, text); continue; } num = PushListResult._pushListResultFieldTags[num2]; } if (num == 0u) { throw InvalidProtocolBufferException.InvalidTag(); } if (num != 10u) { if (WireFormat.IsEndGroupTag(num)) { if (builder != null) { this.UnknownFields = builder.Build(); } return(this); } if (builder == null) { builder = UnknownFieldSet.CreateBuilder(this.UnknownFields); } this.ParseUnknownField(input, builder, extensionRegistry, num, text); } else { input.ReadMessageArray <PushResult>(num, text, this.result.results_, PushResult.DefaultInstance, extensionRegistry); } } if (builder != null) { this.UnknownFields = builder.Build(); } return(this); }
public override BaseResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry) { uint num; string str; this.PrepareBuilder(); while (input.ReadTag(out num, out str)) { if ((num == 0) && (str != null)) { int index = Array.BinarySearch <string>(BaseResponse._baseResponseFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = BaseResponse._baseResponseFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 8: { this.result.hasRet = input.ReadInt32(ref this.result.ret_); continue; } case 0x12: { SKBuiltinString_t.Builder builder = SKBuiltinString_t.CreateBuilder(); if (this.result.hasErrMsg) { builder.MergeFrom(this.ErrMsg); } input.ReadMessage(builder, extensionRegistry); this.ErrMsg = builder.BuildPartial(); continue; } } if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); } return(this); }
public override WXAppExtendMessageP.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry) { this.PrepareBuilder(); uint num; string text; while (input.ReadTag(out num, out text)) { if (num == 0u && text != null) { int num2 = Array.BinarySearch <string>(WXAppExtendMessageP._wXAppExtendMessagePFieldNames, text, StringComparer.Ordinal); if (num2 < 0) { this.ParseUnknownField(input, extensionRegistry, num, text); continue; } num = WXAppExtendMessageP._wXAppExtendMessagePFieldTags[num2]; } uint num3 = num; if (num3 <= 10u) { if (num3 == 0u) { throw InvalidProtocolBufferException.InvalidTag(); } if (num3 == 10u) { this.result.hasFileData = input.ReadBytes(ref this.result.fileData_); continue; } } else { if (num3 == 18u) { this.result.hasExtInfo = input.ReadString(ref this.result.extInfo_); continue; } if (num3 == 26u) { this.result.hasFileName = input.ReadString(ref this.result.fileName_); continue; } } if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, text); } return(this); }
public override DeleteBottle.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>(DeleteBottle._deleteBottleFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = DeleteBottle._deleteBottleFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 10: { this.result.hasBottleId = input.ReadString(ref this.result.bottleId_); continue; } case 0x10: break; default: { if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } this.result.hasThrowBackType = input.ReadInt32(ref this.result.throwBackType_); } return(this); }
public override ModBrandSetting.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>(ModBrandSetting._modBrandSettingFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = ModBrandSetting._modBrandSettingFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 8: { this.result.hasBrandFlag = input.ReadUInt32(ref this.result.brandFlag_); continue; } case 0x12: 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); }
public override SafeDeviceList.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>(SafeDeviceList._safeDeviceListFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = SafeDeviceList._safeDeviceListFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 8: { this.result.hasCount = input.ReadUInt32(ref this.result.count_); continue; } case 0x12: break; default: { if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } input.ReadMessageArray <SafeDevice>(num, str, this.result.list_, SafeDevice.DefaultInstance, extensionRegistry); } return(this); }
public override Host.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>(Host._hostFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = Host._hostFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 10: { this.result.hasOrigin = input.ReadString(ref this.result.origin_); continue; } case 0x12: break; default: { if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } this.result.hasSubstitute = input.ReadString(ref this.result.substitute_); } return(this); }
public override AdditionalContactList.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>(AdditionalContactList._additionalContactListFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = AdditionalContactList._additionalContactListFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 10: { LinkedinContactItem.Builder builder = LinkedinContactItem.CreateBuilder(); if (this.result.hasLinkedinContactItem) { builder.MergeFrom(this.LinkedinContactItem); } input.ReadMessage(builder, extensionRegistry); this.LinkedinContactItem = builder.BuildPartial(); continue; } } if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); } return(this); }
public override SingleBatchItem.Builder MergeFrom( ICodedInputStream input, ExtensionRegistry extensionRegistry) { this.PrepareBuilder(); UnknownFieldSet.Builder unknownFields = (UnknownFieldSet.Builder)null; uint fieldTag; string fieldName; while (input.ReadTag(out fieldTag, out fieldName)) { if (fieldTag == 0U && fieldName != null) { int index = Array.BinarySearch <string>(SingleBatchItem._singleBatchItemFieldNames, fieldName, (IComparer <string>)StringComparer.Ordinal); if (index >= 0) { fieldTag = SingleBatchItem._singleBatchItemFieldTags[index]; } else { if (unknownFields == null) { unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields); } this.ParseUnknownField(input, unknownFields, extensionRegistry, fieldTag, fieldName); continue; } } switch (fieldTag) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 8: this.result.hasSeqId = input.ReadInt32(ref this.result.seqId_); continue; case 18: this.result.hasData = input.ReadString(ref this.result.data_); continue; default: if (WireFormat.IsEndGroupTag(fieldTag)) { if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); } if (unknownFields == null) { unknownFields = UnknownFieldSet.CreateBuilder(this.UnknownFields); } this.ParseUnknownField(input, unknownFields, extensionRegistry, fieldTag, fieldName); continue; } } if (unknownFields != null) { this.UnknownFields = unknownFields.Build(); } return(this); }
public override Item.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry) { uint num; string str; this.PrepareBuilder(); UnknownFieldSet.Builder builder = null; while (input.ReadTag(ref num, ref str)) { if ((num == 0) && (str != null)) { int index = Array.BinarySearch <string>(Item._itemFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = Item._itemFieldTags[index]; } else { if (builder == null) { builder = UnknownFieldSet.CreateBuilder(this.get_UnknownFields()); } this.ParseUnknownField(input, builder, extensionRegistry, num, str); continue; } } switch (num) { case 0: throw InvalidProtocolBufferException.InvalidTag(); case 8: { this.result.hasId = input.ReadInt32(ref this.result.id_); continue; } case 0x12: { this.result.hasName = input.ReadString(ref this.result.name_); continue; } case 0x18: { this.result.hasSlot = input.ReadInt32(ref this.result.slot_); continue; } case 0x20: { this.result.hasCount = input.ReadInt32(ref this.result.count_); continue; } case 0x2a: { input.ReadMessageArray <Item>(num, str, this.result.subitem_, Item.DefaultInstance, extensionRegistry); continue; } case 0x30: { this.result.hasSubslots = input.ReadInt32(ref this.result.subslots_); continue; } case 0x3d: { this.result.hasCondition = input.ReadFloat(ref this.result.condition_); continue; } case 0x45: break; default: { if (WireFormat.IsEndGroupTag(num)) { if (builder != null) { this.set_UnknownFields(builder.Build()); } return(this); } if (builder == null) { builder = UnknownFieldSet.CreateBuilder(this.get_UnknownFields()); } this.ParseUnknownField(input, builder, extensionRegistry, num, str); continue; } } this.result.hasMaxcondition = input.ReadFloat(ref this.result.maxcondition_); } if (builder != null) { this.set_UnknownFields(builder.Build()); } return(this); }
public override WXMessageP.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>(WXMessageP._wXMessagePFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = WXMessageP._wXMessagePFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0x1a: { this.result.hasDescription = input.ReadString(ref this.result.description_); continue; } case 0x22: { this.result.hasThumbData = input.ReadBytes(ref this.result.thumbData_); continue; } case 0x2a: { WXEmojiMessageP.Builder builder = WXEmojiMessageP.CreateBuilder(); if (this.result.hasEmojiMessage) { builder.MergeFrom(this.EmojiMessage); } input.ReadMessage(builder, extensionRegistry); this.EmojiMessage = builder.BuildPartial(); continue; } case 0: throw InvalidProtocolBufferException.InvalidTag(); case 8: { this.result.hasType = input.ReadUInt32(ref this.result.type_); continue; } case 0x12: { this.result.hasTitle = input.ReadString(ref this.result.title_); continue; } case 50: { WXFileMessageP.Builder builder2 = WXFileMessageP.CreateBuilder(); if (this.result.hasFileMessage) { builder2.MergeFrom(this.FileMessage); } input.ReadMessage(builder2, extensionRegistry); this.FileMessage = builder2.BuildPartial(); continue; } case 0x3a: { WXImageMessageP.Builder builder3 = WXImageMessageP.CreateBuilder(); if (this.result.hasImageMessage) { builder3.MergeFrom(this.ImageMessage); } input.ReadMessage(builder3, extensionRegistry); this.ImageMessage = builder3.BuildPartial(); continue; } case 0x42: { WXMusicMessageP.Builder builder4 = WXMusicMessageP.CreateBuilder(); if (this.result.hasMusicMessage) { builder4.MergeFrom(this.MusicMessage); } input.ReadMessage(builder4, extensionRegistry); this.MusicMessage = builder4.BuildPartial(); continue; } case 0x4a: { WXTextMessageP.Builder builder5 = WXTextMessageP.CreateBuilder(); if (this.result.hasTextMessage) { builder5.MergeFrom(this.TextMessage); } input.ReadMessage(builder5, extensionRegistry); this.TextMessage = builder5.BuildPartial(); continue; } case 0x52: { WXVideoMessageP.Builder builder6 = WXVideoMessageP.CreateBuilder(); if (this.result.hasVideoMessage) { builder6.MergeFrom(this.VideoMessage); } input.ReadMessage(builder6, extensionRegistry); this.VideoMessage = builder6.BuildPartial(); continue; } case 90: { WXWebpageMessageP.Builder builder7 = WXWebpageMessageP.CreateBuilder(); if (this.result.hasWebpageMessage) { builder7.MergeFrom(this.WebpageMessage); } input.ReadMessage(builder7, extensionRegistry); this.WebpageMessage = builder7.BuildPartial(); continue; } case 0x62: { WXAppExtendMessageP.Builder builder8 = WXAppExtendMessageP.CreateBuilder(); if (this.result.hasAppExtendMessage) { builder8.MergeFrom(this.AppExtendMessage); } input.ReadMessage(builder8, extensionRegistry); this.AppExtendMessage = builder8.BuildPartial(); continue; } } if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); } return(this); }