public SendPayReqP.Builder SetBase(BaseReqP value) { ThrowHelper.ThrowIfNull(value, "value"); this.PrepareBuilder(); this.result.hasBase = true; this.result.base_ = value; return(this); }
public GetMessageFromWXReq.Builder SetBase(BaseReqP value) { ThrowHelper.ThrowIfNull(value, "value"); this.PrepareBuilder(); this.result.hasBase = true; this.result.base_ = value; 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 ShowMessageFromWXReq.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>(ShowMessageFromWXReq._showMessageFromWXReqFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = ShowMessageFromWXReq._showMessageFromWXReqFieldTags[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: { WXMessageP.Builder builder2 = WXMessageP.CreateBuilder(); if (this.result.hasMsg) { builder2.MergeFrom(this.Msg); } input.ReadMessage(builder2, extensionRegistry); this.Msg = builder2.BuildPartial(); continue; } } if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); } return(this); }
public GetMessageFromWXReq.Builder MergeBase(BaseReqP value) { ThrowHelper.ThrowIfNull(value, "value"); this.PrepareBuilder(); if (this.result.hasBase && (this.result.base_ != BaseReqP.DefaultInstance)) { this.result.base_ = BaseReqP.CreateBuilder(this.result.base_).MergeFrom(value).BuildPartial(); } else { this.result.base_ = value; } this.result.hasBase = true; return(this); }
public override SendPayReqP.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>(SendPayReqP._sendPayReqPFieldNames, text, StringComparer.Ordinal); if (num2 < 0) { this.ParseUnknownField(input, extensionRegistry, num, text); continue; } num = SendPayReqP._sendPayReqPFieldTags[num2]; } uint num3 = num; if (num3 <= 26u) { 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.hasPartnerId = input.ReadString(ref this.result.partnerId_); continue; } if (num3 == 26u) { this.result.hasPrepayId = input.ReadString(ref this.result.prepayId_); continue; } } } else if (num3 <= 40u) { if (num3 == 34u) { this.result.hasNonceStr = input.ReadString(ref this.result.nonceStr_); continue; } if (num3 == 40u) { this.result.hasTimeStamp = input.ReadUInt32(ref this.result.timeStamp_); continue; } } else { if (num3 == 50u) { this.result.hasPackage = input.ReadString(ref this.result.package_); continue; } if (num3 == 58u) { this.result.hasSign = input.ReadString(ref this.result.sign_); continue; } } if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, text); } return(this); }
public override SendPayReqP.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>(SendPayReqP._sendPayReqPFieldNames, str, StringComparer.Ordinal); if (index >= 0) { num = SendPayReqP._sendPayReqPFieldTags[index]; } else { this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } switch (num) { case 0x12: { this.result.hasPartnerId = input.ReadString(ref this.result.partnerId_); continue; } case 0x1a: { this.result.hasPrepayId = input.ReadString(ref this.result.prepayId_); continue; } 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 0x22: { this.result.hasNonceStr = input.ReadString(ref this.result.nonceStr_); continue; } case 40: { this.result.hasTimeStamp = input.ReadUInt32(ref this.result.timeStamp_); continue; } case 50: { this.result.hasPackage = input.ReadString(ref this.result.package_); continue; } case 0x3a: break; default: { if (WireFormat.IsEndGroupTag(num)) { return(this); } this.ParseUnknownField(input, extensionRegistry, num, str); continue; } } this.result.hasSign = input.ReadString(ref this.result.sign_); } return(this); }