public override PushOSSingleMessage.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>(PushOSSingleMessage._pushOSSingleMessageFieldNames, fieldName, (IComparer <string>)StringComparer.Ordinal); if (index >= 0) { fieldTag = PushOSSingleMessage._pushOSSingleMessageFieldTags[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: this.result.hasSeqId = input.ReadString(ref this.result.seqId_); continue; case 18: OSMessage.Builder builder1 = OSMessage.CreateBuilder(); if (this.result.hasMessage) { builder1.MergeFrom(this.Message); } input.ReadMessage((IBuilderLite)builder1, extensionRegistry); this.Message = builder1.BuildPartial(); continue; case 26: Target.Builder builder2 = Target.CreateBuilder(); if (this.result.hasTarget) { builder2.MergeFrom(this.Target); } input.ReadMessage((IBuilderLite)builder2, extensionRegistry); this.Target = builder2.BuildPartial(); 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 PushOSSingleMessage.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>(PushOSSingleMessage._pushOSSingleMessageFieldNames, text, StringComparer.Ordinal); if (num2 < 0) { if (builder == null) { builder = UnknownFieldSet.CreateBuilder(this.UnknownFields); } this.ParseUnknownField(input, builder, extensionRegistry, num, text); continue; } num = PushOSSingleMessage._pushOSSingleMessageFieldTags[num2]; } if (num <= 10u) { if (num == 0u) { throw InvalidProtocolBufferException.InvalidTag(); } if (num == 10u) { this.result.hasSeqId = input.ReadString(ref this.result.seqId_); continue; } } else { if (num == 18u) { OSMessage.Builder builder2 = OSMessage.CreateBuilder(); if (this.result.hasMessage) { builder2.MergeFrom(this.Message); } input.ReadMessage(builder2, extensionRegistry); this.Message = builder2.BuildPartial(); continue; } if (num == 26u) { Target.Builder builder3 = Target.CreateBuilder(); if (this.result.hasTarget) { builder3.MergeFrom(this.Target); } input.ReadMessage(builder3, extensionRegistry); this.Target = builder3.BuildPartial(); 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); }