public override StartMMPBatchTask.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>(StartMMPBatchTask._startMMPBatchTaskFieldNames, fieldName, (IComparer <string>)StringComparer.Ordinal); if (index >= 0) { fieldTag = StartMMPBatchTask._startMMPBatchTaskFieldTags[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 10: MMPMessage.Builder builder = MMPMessage.CreateBuilder(); if (this.result.hasMessage) { builder.MergeFrom(this.Message); } input.ReadMessage((IBuilderLite)builder, extensionRegistry); this.Message = builder.BuildPartial(); continue; case 16: this.result.hasExpire = input.ReadInt64(ref this.result.expire_); continue; case 26: this.result.hasSeqId = input.ReadString(ref this.result.seqId_); continue; case 34: this.result.hasTaskGroupName = input.ReadString(ref this.result.taskGroupName_); 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 StartMMPBatchTask.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>(StartMMPBatchTask._startMMPBatchTaskFieldNames, text, StringComparer.Ordinal); if (num2 < 0) { if (builder == null) { builder = UnknownFieldSet.CreateBuilder(this.UnknownFields); } this.ParseUnknownField(input, builder, extensionRegistry, num, text); continue; } num = StartMMPBatchTask._startMMPBatchTaskFieldTags[num2]; } if (num <= 10u) { if (num == 0u) { throw InvalidProtocolBufferException.InvalidTag(); } if (num == 10u) { MMPMessage.Builder builder2 = MMPMessage.CreateBuilder(); if (this.result.hasMessage) { builder2.MergeFrom(this.Message); } input.ReadMessage(builder2, extensionRegistry); this.Message = builder2.BuildPartial(); continue; } } else { if (num == 16u) { this.result.hasExpire = input.ReadInt64(ref this.result.expire_); continue; } if (num == 26u) { this.result.hasSeqId = input.ReadString(ref this.result.seqId_); continue; } if (num == 34u) { this.result.hasTaskGroupName = input.ReadString(ref this.result.taskGroupName_); continue; } } 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); } if (builder != null) { this.UnknownFields = builder.Build(); } return(this); }
// Token: 0x060007B7 RID: 1975 RVA: 0x00012874 File Offset: 0x00010A74 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(_pushMMPSingleMessageFieldNames, text, StringComparer.Ordinal); if (num2 < 0) { if (builder == null) { builder = UnknownFieldSet.CreateBuilder(UnknownFields); } ParseUnknownField(input, builder, extensionRegistry, num, text); continue; } num = _pushMMPSingleMessageFieldTags[num2]; } if (num <= 10U) { if (num == 0U) { throw InvalidProtocolBufferException.InvalidTag(); } if (num == 10U) { result.HasSeqId = input.ReadString(ref result.seqId_); continue; } } else { if (num == 18U) { MMPMessage.Builder builder2 = MMPMessage.CreateBuilder(); if (result.HasMessage) { builder2.MergeFrom(Message); } input.ReadMessage(builder2, extensionRegistry); Message = builder2.BuildPartial(); continue; } if (num == 26U) { Target.Builder builder3 = Target.CreateBuilder(); if (result.HasTarget) { builder3.MergeFrom(Target); } input.ReadMessage(builder3, extensionRegistry); Target = builder3.BuildPartial(); continue; } if (num == 34U) { result.HasRequestId = input.ReadString(ref result.requestId_); continue; } } 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); } if (builder != null) { UnknownFields = builder.Build(); } return(this); }