mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-13 06:54:48 +01:00
792 lines
27 KiB
C#
792 lines
27 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: battle_pass_reward_receive.proto
|
|
// </auto-generated>
|
|
#pragma warning disable 1591, 0612, 3021, 8981
|
|
#region Designer generated code
|
|
|
|
using pb = global::Google.Protobuf;
|
|
using pbc = global::Google.Protobuf.Collections;
|
|
using pbr = global::Google.Protobuf.Reflection;
|
|
using scg = global::System.Collections.Generic;
|
|
namespace Proto {
|
|
|
|
/// <summary>Holder for reflection information generated from battle_pass_reward_receive.proto</summary>
|
|
public static partial class BattlePassRewardReceiveReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for battle_pass_reward_receive.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static BattlePassRewardReceiveReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"CiBiYXR0bGVfcGFzc19yZXdhcmRfcmVjZWl2ZS5wcm90bxIFcHJvdG8aDHB1",
|
|
"YmxpYy5wcm90byKKAQoaQmF0dGxlUGFzc1Jld2FyZFJlY2VpdmVSZXESDwoH",
|
|
"VmVyc2lvbhgEIAEoDRIUCgtOZXh0UGFja2FnZRj/DyABKAwSGQoDQWxsGAEg",
|
|
"ASgLMgoucHJvdG8uTmlsSAASDwoFQmFzaWMYAiABKA1IABIRCgdQcmVtaXVt",
|
|
"GAMgASgNSABCBgoETW9kZSKCAQobQmF0dGxlUGFzc1Jld2FyZFJlY2VpdmVS",
|
|
"ZXNwEhMKC0Jhc2ljUmV3YXJkGAEgASgMEhUKDVByZW1pdW1SZXdhcmQYAiAB",
|
|
"KAwSIQoGQ2hhbmdlGAMgASgLMhEucHJvdG8uQ2hhbmdlSW5mbxIUCgtOZXh0",
|
|
"UGFja2FnZRj/DyABKAxQAGIGcHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::Proto.PublicReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.BattlePassRewardReceiveReq), global::Proto.BattlePassRewardReceiveReq.Parser, new[]{ "Version", "NextPackage", "All", "Basic", "Premium" }, new[]{ "Mode" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Proto.BattlePassRewardReceiveResp), global::Proto.BattlePassRewardReceiveResp.Parser, new[]{ "BasicReward", "PremiumReward", "Change", "NextPackage" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class BattlePassRewardReceiveReq : pb::IMessage<BattlePassRewardReceiveReq>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<BattlePassRewardReceiveReq> _parser = new pb::MessageParser<BattlePassRewardReceiveReq>(() => new BattlePassRewardReceiveReq());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<BattlePassRewardReceiveReq> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Proto.BattlePassRewardReceiveReflection.Descriptor.MessageTypes[0]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public BattlePassRewardReceiveReq() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public BattlePassRewardReceiveReq(BattlePassRewardReceiveReq other) : this() {
|
|
version_ = other.version_;
|
|
nextPackage_ = other.nextPackage_;
|
|
switch (other.ModeCase) {
|
|
case ModeOneofCase.All:
|
|
All = other.All.Clone();
|
|
break;
|
|
case ModeOneofCase.Basic:
|
|
Basic = other.Basic;
|
|
break;
|
|
case ModeOneofCase.Premium:
|
|
Premium = other.Premium;
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public BattlePassRewardReceiveReq Clone() {
|
|
return new BattlePassRewardReceiveReq(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "Version" field.</summary>
|
|
public const int VersionFieldNumber = 4;
|
|
private uint version_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint Version {
|
|
get { return version_; }
|
|
set {
|
|
version_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "NextPackage" field.</summary>
|
|
public const int NextPackageFieldNumber = 2047;
|
|
private pb::ByteString nextPackage_ = pb::ByteString.Empty;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pb::ByteString NextPackage {
|
|
get { return nextPackage_; }
|
|
set {
|
|
nextPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "All" field.</summary>
|
|
public const int AllFieldNumber = 1;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::Proto.Nil All {
|
|
get { return modeCase_ == ModeOneofCase.All ? (global::Proto.Nil) mode_ : null; }
|
|
set {
|
|
mode_ = value;
|
|
modeCase_ = value == null ? ModeOneofCase.None : ModeOneofCase.All;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Basic" field.</summary>
|
|
public const int BasicFieldNumber = 2;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint Basic {
|
|
get { return HasBasic ? (uint) mode_ : 0; }
|
|
set {
|
|
mode_ = value;
|
|
modeCase_ = ModeOneofCase.Basic;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "Basic" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool HasBasic {
|
|
get { return modeCase_ == ModeOneofCase.Basic; }
|
|
}
|
|
/// <summary> Clears the value of the oneof if it's currently set to "Basic" </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearBasic() {
|
|
if (HasBasic) {
|
|
ClearMode();
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Premium" field.</summary>
|
|
public const int PremiumFieldNumber = 3;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public uint Premium {
|
|
get { return HasPremium ? (uint) mode_ : 0; }
|
|
set {
|
|
mode_ = value;
|
|
modeCase_ = ModeOneofCase.Premium;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "Premium" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool HasPremium {
|
|
get { return modeCase_ == ModeOneofCase.Premium; }
|
|
}
|
|
/// <summary> Clears the value of the oneof if it's currently set to "Premium" </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearPremium() {
|
|
if (HasPremium) {
|
|
ClearMode();
|
|
}
|
|
}
|
|
|
|
private object mode_;
|
|
/// <summary>Enum of possible cases for the "Mode" oneof.</summary>
|
|
public enum ModeOneofCase {
|
|
None = 0,
|
|
All = 1,
|
|
Basic = 2,
|
|
Premium = 3,
|
|
}
|
|
private ModeOneofCase modeCase_ = ModeOneofCase.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ModeOneofCase ModeCase {
|
|
get { return modeCase_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearMode() {
|
|
modeCase_ = ModeOneofCase.None;
|
|
mode_ = null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as BattlePassRewardReceiveReq);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(BattlePassRewardReceiveReq other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Version != other.Version) return false;
|
|
if (NextPackage != other.NextPackage) return false;
|
|
if (!object.Equals(All, other.All)) return false;
|
|
if (Basic != other.Basic) return false;
|
|
if (Premium != other.Premium) return false;
|
|
if (ModeCase != other.ModeCase) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (Version != 0) hash ^= Version.GetHashCode();
|
|
if (NextPackage.Length != 0) hash ^= NextPackage.GetHashCode();
|
|
if (modeCase_ == ModeOneofCase.All) hash ^= All.GetHashCode();
|
|
if (HasBasic) hash ^= Basic.GetHashCode();
|
|
if (HasPremium) hash ^= Premium.GetHashCode();
|
|
hash ^= (int) modeCase_;
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
output.WriteRawMessage(this);
|
|
#else
|
|
if (modeCase_ == ModeOneofCase.All) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(All);
|
|
}
|
|
if (HasBasic) {
|
|
output.WriteRawTag(16);
|
|
output.WriteUInt32(Basic);
|
|
}
|
|
if (HasPremium) {
|
|
output.WriteRawTag(24);
|
|
output.WriteUInt32(Premium);
|
|
}
|
|
if (Version != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteUInt32(Version);
|
|
}
|
|
if (NextPackage.Length != 0) {
|
|
output.WriteRawTag(250, 127);
|
|
output.WriteBytes(NextPackage);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
if (modeCase_ == ModeOneofCase.All) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(All);
|
|
}
|
|
if (HasBasic) {
|
|
output.WriteRawTag(16);
|
|
output.WriteUInt32(Basic);
|
|
}
|
|
if (HasPremium) {
|
|
output.WriteRawTag(24);
|
|
output.WriteUInt32(Premium);
|
|
}
|
|
if (Version != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteUInt32(Version);
|
|
}
|
|
if (NextPackage.Length != 0) {
|
|
output.WriteRawTag(250, 127);
|
|
output.WriteBytes(NextPackage);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (Version != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Version);
|
|
}
|
|
if (NextPackage.Length != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeBytesSize(NextPackage);
|
|
}
|
|
if (modeCase_ == ModeOneofCase.All) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(All);
|
|
}
|
|
if (HasBasic) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Basic);
|
|
}
|
|
if (HasPremium) {
|
|
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Premium);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(BattlePassRewardReceiveReq other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Version != 0) {
|
|
Version = other.Version;
|
|
}
|
|
if (other.NextPackage.Length != 0) {
|
|
NextPackage = other.NextPackage;
|
|
}
|
|
switch (other.ModeCase) {
|
|
case ModeOneofCase.All:
|
|
if (All == null) {
|
|
All = new global::Proto.Nil();
|
|
}
|
|
All.MergeFrom(other.All);
|
|
break;
|
|
case ModeOneofCase.Basic:
|
|
Basic = other.Basic;
|
|
break;
|
|
case ModeOneofCase.Premium:
|
|
Premium = other.Premium;
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
global::Proto.Nil subBuilder = new global::Proto.Nil();
|
|
if (modeCase_ == ModeOneofCase.All) {
|
|
subBuilder.MergeFrom(All);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
All = subBuilder;
|
|
break;
|
|
}
|
|
case 16: {
|
|
Basic = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
Premium = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
Version = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 16378: {
|
|
NextPackage = input.ReadBytes();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
global::Proto.Nil subBuilder = new global::Proto.Nil();
|
|
if (modeCase_ == ModeOneofCase.All) {
|
|
subBuilder.MergeFrom(All);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
All = subBuilder;
|
|
break;
|
|
}
|
|
case 16: {
|
|
Basic = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 24: {
|
|
Premium = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
Version = input.ReadUInt32();
|
|
break;
|
|
}
|
|
case 16378: {
|
|
NextPackage = input.ReadBytes();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class BattlePassRewardReceiveResp : pb::IMessage<BattlePassRewardReceiveResp>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<BattlePassRewardReceiveResp> _parser = new pb::MessageParser<BattlePassRewardReceiveResp>(() => new BattlePassRewardReceiveResp());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<BattlePassRewardReceiveResp> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::Proto.BattlePassRewardReceiveReflection.Descriptor.MessageTypes[1]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public BattlePassRewardReceiveResp() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public BattlePassRewardReceiveResp(BattlePassRewardReceiveResp other) : this() {
|
|
basicReward_ = other.basicReward_;
|
|
premiumReward_ = other.premiumReward_;
|
|
change_ = other.change_ != null ? other.change_.Clone() : null;
|
|
nextPackage_ = other.nextPackage_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public BattlePassRewardReceiveResp Clone() {
|
|
return new BattlePassRewardReceiveResp(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "BasicReward" field.</summary>
|
|
public const int BasicRewardFieldNumber = 1;
|
|
private pb::ByteString basicReward_ = pb::ByteString.Empty;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pb::ByteString BasicReward {
|
|
get { return basicReward_; }
|
|
set {
|
|
basicReward_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "PremiumReward" field.</summary>
|
|
public const int PremiumRewardFieldNumber = 2;
|
|
private pb::ByteString premiumReward_ = pb::ByteString.Empty;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pb::ByteString PremiumReward {
|
|
get { return premiumReward_; }
|
|
set {
|
|
premiumReward_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Change" field.</summary>
|
|
public const int ChangeFieldNumber = 3;
|
|
private global::Proto.ChangeInfo change_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::Proto.ChangeInfo Change {
|
|
get { return change_; }
|
|
set {
|
|
change_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "NextPackage" field.</summary>
|
|
public const int NextPackageFieldNumber = 2047;
|
|
private pb::ByteString nextPackage_ = pb::ByteString.Empty;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pb::ByteString NextPackage {
|
|
get { return nextPackage_; }
|
|
set {
|
|
nextPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as BattlePassRewardReceiveResp);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(BattlePassRewardReceiveResp other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (BasicReward != other.BasicReward) return false;
|
|
if (PremiumReward != other.PremiumReward) return false;
|
|
if (!object.Equals(Change, other.Change)) return false;
|
|
if (NextPackage != other.NextPackage) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (BasicReward.Length != 0) hash ^= BasicReward.GetHashCode();
|
|
if (PremiumReward.Length != 0) hash ^= PremiumReward.GetHashCode();
|
|
if (change_ != null) hash ^= Change.GetHashCode();
|
|
if (NextPackage.Length != 0) hash ^= NextPackage.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
output.WriteRawMessage(this);
|
|
#else
|
|
if (BasicReward.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteBytes(BasicReward);
|
|
}
|
|
if (PremiumReward.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteBytes(PremiumReward);
|
|
}
|
|
if (change_ != null) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(Change);
|
|
}
|
|
if (NextPackage.Length != 0) {
|
|
output.WriteRawTag(250, 127);
|
|
output.WriteBytes(NextPackage);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
if (BasicReward.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteBytes(BasicReward);
|
|
}
|
|
if (PremiumReward.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteBytes(PremiumReward);
|
|
}
|
|
if (change_ != null) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(Change);
|
|
}
|
|
if (NextPackage.Length != 0) {
|
|
output.WriteRawTag(250, 127);
|
|
output.WriteBytes(NextPackage);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (BasicReward.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeBytesSize(BasicReward);
|
|
}
|
|
if (PremiumReward.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeBytesSize(PremiumReward);
|
|
}
|
|
if (change_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Change);
|
|
}
|
|
if (NextPackage.Length != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeBytesSize(NextPackage);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(BattlePassRewardReceiveResp other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.BasicReward.Length != 0) {
|
|
BasicReward = other.BasicReward;
|
|
}
|
|
if (other.PremiumReward.Length != 0) {
|
|
PremiumReward = other.PremiumReward;
|
|
}
|
|
if (other.change_ != null) {
|
|
if (change_ == null) {
|
|
Change = new global::Proto.ChangeInfo();
|
|
}
|
|
Change.MergeFrom(other.Change);
|
|
}
|
|
if (other.NextPackage.Length != 0) {
|
|
NextPackage = other.NextPackage;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
BasicReward = input.ReadBytes();
|
|
break;
|
|
}
|
|
case 18: {
|
|
PremiumReward = input.ReadBytes();
|
|
break;
|
|
}
|
|
case 26: {
|
|
if (change_ == null) {
|
|
Change = new global::Proto.ChangeInfo();
|
|
}
|
|
input.ReadMessage(Change);
|
|
break;
|
|
}
|
|
case 16378: {
|
|
NextPackage = input.ReadBytes();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
BasicReward = input.ReadBytes();
|
|
break;
|
|
}
|
|
case 18: {
|
|
PremiumReward = input.ReadBytes();
|
|
break;
|
|
}
|
|
case 26: {
|
|
if (change_ == null) {
|
|
Change = new global::Proto.ChangeInfo();
|
|
}
|
|
input.ReadMessage(Change);
|
|
break;
|
|
}
|
|
case 16378: {
|
|
NextPackage = input.ReadBytes();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|