// Token: 0x060009F3 RID: 2547 RVA: 0x00017C30 File Offset: 0x00015E30 public Builder SetPushInfo(PushInfo.Builder builderForValue) { ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); PrepareBuilder(); result.HasPushInfo = true; result.pushInfo_ = builderForValue.Build(); return(this); }
public Transparent.Builder SetPushInfo(PushInfo.Builder builderForValue) { Google.ProtocolBuffers.ThrowHelper.ThrowIfNull((object)builderForValue, nameof(builderForValue)); this.PrepareBuilder(); this.result.hasPushInfo = true; this.result.pushInfo_ = builderForValue.Build(); return(this); }
public Transparent.Builder SetPushInfo(PushInfo.Builder builderForValue) { ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); this.PrepareBuilder(); this.result.hasPushInfo = true; this.result.pushInfo_ = builderForValue.Build(); return(this); }
// Token: 0x060009D0 RID: 2512 RVA: 0x0001762C File Offset: 0x0001582C 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(_transparentFieldNames, text, StringComparer.Ordinal); if (num2 < 0) { if (builder == null) { builder = UnknownFieldSet.CreateBuilder(UnknownFields); } ParseUnknownField(input, builder, extensionRegistry, num, text); continue; } num = _transparentFieldTags[num2]; } if (num <= 42U) { if (num <= 18U) { if (num == 0U) { throw InvalidProtocolBufferException.InvalidTag(); } if (num == 10U) { result.HasId = input.ReadString(ref result.id_); continue; } if (num == 18U) { result.HasAction = input.ReadString(ref result.action_); continue; } } else { if (num == 26U) { result.HasTaskId = input.ReadString(ref result.taskId_); continue; } if (num == 34U) { result.HasAppKey = input.ReadString(ref result.appKey_); continue; } if (num == 42U) { result.HasAppId = input.ReadString(ref result.appId_); continue; } } } else if (num <= 66U) { if (num == 50U) { result.HasMessageId = input.ReadString(ref result.messageId_); continue; } if (num == 58U) { PushInfo.Builder builder2 = PushInfo.CreateBuilder(); if (result.HasPushInfo) { builder2.MergeFrom(PushInfo); } input.ReadMessage(builder2, extensionRegistry); PushInfo = builder2.BuildPartial(); continue; } if (num == 66U) { input.ReadMessageArray(num, text, result.actionChain_, ActionChain.DefaultInstance, extensionRegistry); continue; } } else if (num <= 80U) { if (num == 74U) { input.ReadStringArray(num, text, result.condition_); continue; } if (num == 80U) { result.HasTemplateId = input.ReadInt32(ref result.templateId_); continue; } } else { if (num == 90U) { result.HasTaskGroupId = input.ReadString(ref result.taskGroupId_); continue; } if (num == 98U) { SmsInfo.Builder builder3 = SmsInfo.CreateBuilder(); if (result.HasSmsInfo) { builder3.MergeFrom(SmsInfo); } input.ReadMessage(builder3, extensionRegistry); SmsInfo = builder3.BuildPartial(); 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); }
public override Transparent.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>(Transparent._transparentFieldNames, fieldName, (IComparer <string>)StringComparer.Ordinal); if (index >= 0) { fieldTag = Transparent._transparentFieldTags[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.hasId = input.ReadString(ref this.result.id_); continue; case 18: this.result.hasAction = input.ReadString(ref this.result.action_); continue; case 26: this.result.hasTaskId = input.ReadString(ref this.result.taskId_); continue; case 34: this.result.hasAppKey = input.ReadString(ref this.result.appKey_); continue; case 42: this.result.hasAppId = input.ReadString(ref this.result.appId_); continue; case 50: this.result.hasMessageId = input.ReadString(ref this.result.messageId_); continue; case 58: PushInfo.Builder builder1 = PushInfo.CreateBuilder(); if (this.result.hasPushInfo) { builder1.MergeFrom(this.PushInfo); } input.ReadMessage((IBuilderLite)builder1, extensionRegistry); this.PushInfo = builder1.BuildPartial(); continue; case 66: input.ReadMessageArray <ActionChain>(fieldTag, fieldName, (ICollection <ActionChain>) this.result.actionChain_, ActionChain.DefaultInstance, extensionRegistry); continue; case 74: input.ReadStringArray(fieldTag, fieldName, (ICollection <string>) this.result.condition_); continue; case 80: this.result.hasTemplateId = input.ReadInt32(ref this.result.templateId_); continue; case 90: this.result.hasTaskGroupId = input.ReadString(ref this.result.taskGroupId_); continue; case 98: SmsInfo.Builder builder2 = SmsInfo.CreateBuilder(); if (this.result.hasSmsInfo) { builder2.MergeFrom(this.SmsInfo); } input.ReadMessage((IBuilderLite)builder2, extensionRegistry); this.SmsInfo = 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); }