Files
Novaria/NTR.Common/protos/BattlePass.cs
2025-01-08 20:08:36 -05:00

975 lines
34 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BattlePass.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 Nova.Client {
/// <summary>Holder for reflection information generated from BattlePass.proto</summary>
public static partial class BattlePassReflection {
#region Descriptor
/// <summary>File descriptor for BattlePass.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static BattlePassReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChBCYXR0bGVQYXNzLnByb3RvIvwDCgpCYXR0bGVQYXNzEgsKA2lfZBgBIAEo",
"BRIMCgRuYW1lGAIgASgJEhIKCnN0YXJ0X3RpbWUYAyABKAkSEAoIZW5kX3Rp",
"bWUYBCABKAkSGQoRbHV4dXJ5X3Byb2R1Y3RfaWQYBSABKAkSFAoMbHV4dXJ5",
"X3ByaWNlGAYgASgFEhoKEmx1eHVyeV9ib251c19sZXZlbBgHIAEoBRISCgps",
"dXh1cnlfdGlkGAggASgFEhIKCmx1eHVyeV9xdHkYCSABKAUSGgoScHJlbWl1",
"bV9wcm9kdWN0X2lkGAogASgJEhUKDXByZW1pdW1fcHJpY2UYCyABKAUSEwoL",
"cHJlbWl1bV90aWQYDCABKAUSEwoLcHJlbWl1bV9xdHkYDSABKAUSIAoYY29t",
"cGxlbWVudGFyeV9wcm9kdWN0X2lkGA4gASgJEhsKE2NvbXBsZW1lbnRhcnlf",
"cHJpY2UYDyABKAUSGQoRY29tcGxlbWVudGFyeV90aWQYECABKAUSGQoRY29t",
"cGxlbWVudGFyeV9xdHkYESABKAUSDQoFY292ZXIYEiABKAkSGgoScHJlbWl1",
"bV9zaG93X2l0ZW1zGBMgAygFEhkKEWx1eHVyeV9zaG93X2l0ZW1zGBQgAygF",
"EiAKGG91dGZpdF9wYWNrYWdlX3Nob3dfaXRlbRgVIAEoBUIOqgILTm92YS5D",
"bGllbnRiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.BattlePass), global::Nova.Client.BattlePass.Parser, new[]{ "ID", "Name", "StartTime", "EndTime", "LuxuryProductId", "LuxuryPrice", "LuxuryBonusLevel", "LuxuryTid", "LuxuryQty", "PremiumProductId", "PremiumPrice", "PremiumTid", "PremiumQty", "ComplementaryProductId", "ComplementaryPrice", "ComplementaryTid", "ComplementaryQty", "Cover", "PremiumShowItems", "LuxuryShowItems", "OutfitPackageShowItem" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class BattlePass : pb::IMessage<BattlePass>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<BattlePass> _parser = new pb::MessageParser<BattlePass>(() => new BattlePass());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<BattlePass> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Nova.Client.BattlePassReflection.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 BattlePass() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BattlePass(BattlePass other) : this() {
iD_ = other.iD_;
name_ = other.name_;
startTime_ = other.startTime_;
endTime_ = other.endTime_;
luxuryProductId_ = other.luxuryProductId_;
luxuryPrice_ = other.luxuryPrice_;
luxuryBonusLevel_ = other.luxuryBonusLevel_;
luxuryTid_ = other.luxuryTid_;
luxuryQty_ = other.luxuryQty_;
premiumProductId_ = other.premiumProductId_;
premiumPrice_ = other.premiumPrice_;
premiumTid_ = other.premiumTid_;
premiumQty_ = other.premiumQty_;
complementaryProductId_ = other.complementaryProductId_;
complementaryPrice_ = other.complementaryPrice_;
complementaryTid_ = other.complementaryTid_;
complementaryQty_ = other.complementaryQty_;
cover_ = other.cover_;
premiumShowItems_ = other.premiumShowItems_.Clone();
luxuryShowItems_ = other.luxuryShowItems_.Clone();
outfitPackageShowItem_ = other.outfitPackageShowItem_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BattlePass Clone() {
return new BattlePass(this);
}
/// <summary>Field number for the "i_d" field.</summary>
public const int IDFieldNumber = 1;
private int iD_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int ID {
get { return iD_; }
set {
iD_ = value;
}
}
/// <summary>Field number for the "name" field.</summary>
public const int NameFieldNumber = 2;
private string name_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Name {
get { return name_; }
set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "start_time" field.</summary>
public const int StartTimeFieldNumber = 3;
private string startTime_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string StartTime {
get { return startTime_; }
set {
startTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "end_time" field.</summary>
public const int EndTimeFieldNumber = 4;
private string endTime_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string EndTime {
get { return endTime_; }
set {
endTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "luxury_product_id" field.</summary>
public const int LuxuryProductIdFieldNumber = 5;
private string luxuryProductId_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string LuxuryProductId {
get { return luxuryProductId_; }
set {
luxuryProductId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "luxury_price" field.</summary>
public const int LuxuryPriceFieldNumber = 6;
private int luxuryPrice_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int LuxuryPrice {
get { return luxuryPrice_; }
set {
luxuryPrice_ = value;
}
}
/// <summary>Field number for the "luxury_bonus_level" field.</summary>
public const int LuxuryBonusLevelFieldNumber = 7;
private int luxuryBonusLevel_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int LuxuryBonusLevel {
get { return luxuryBonusLevel_; }
set {
luxuryBonusLevel_ = value;
}
}
/// <summary>Field number for the "luxury_tid" field.</summary>
public const int LuxuryTidFieldNumber = 8;
private int luxuryTid_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int LuxuryTid {
get { return luxuryTid_; }
set {
luxuryTid_ = value;
}
}
/// <summary>Field number for the "luxury_qty" field.</summary>
public const int LuxuryQtyFieldNumber = 9;
private int luxuryQty_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int LuxuryQty {
get { return luxuryQty_; }
set {
luxuryQty_ = value;
}
}
/// <summary>Field number for the "premium_product_id" field.</summary>
public const int PremiumProductIdFieldNumber = 10;
private string premiumProductId_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string PremiumProductId {
get { return premiumProductId_; }
set {
premiumProductId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "premium_price" field.</summary>
public const int PremiumPriceFieldNumber = 11;
private int premiumPrice_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int PremiumPrice {
get { return premiumPrice_; }
set {
premiumPrice_ = value;
}
}
/// <summary>Field number for the "premium_tid" field.</summary>
public const int PremiumTidFieldNumber = 12;
private int premiumTid_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int PremiumTid {
get { return premiumTid_; }
set {
premiumTid_ = value;
}
}
/// <summary>Field number for the "premium_qty" field.</summary>
public const int PremiumQtyFieldNumber = 13;
private int premiumQty_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int PremiumQty {
get { return premiumQty_; }
set {
premiumQty_ = value;
}
}
/// <summary>Field number for the "complementary_product_id" field.</summary>
public const int ComplementaryProductIdFieldNumber = 14;
private string complementaryProductId_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ComplementaryProductId {
get { return complementaryProductId_; }
set {
complementaryProductId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "complementary_price" field.</summary>
public const int ComplementaryPriceFieldNumber = 15;
private int complementaryPrice_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int ComplementaryPrice {
get { return complementaryPrice_; }
set {
complementaryPrice_ = value;
}
}
/// <summary>Field number for the "complementary_tid" field.</summary>
public const int ComplementaryTidFieldNumber = 16;
private int complementaryTid_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int ComplementaryTid {
get { return complementaryTid_; }
set {
complementaryTid_ = value;
}
}
/// <summary>Field number for the "complementary_qty" field.</summary>
public const int ComplementaryQtyFieldNumber = 17;
private int complementaryQty_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int ComplementaryQty {
get { return complementaryQty_; }
set {
complementaryQty_ = value;
}
}
/// <summary>Field number for the "cover" field.</summary>
public const int CoverFieldNumber = 18;
private string cover_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Cover {
get { return cover_; }
set {
cover_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "premium_show_items" field.</summary>
public const int PremiumShowItemsFieldNumber = 19;
private static readonly pb::FieldCodec<int> _repeated_premiumShowItems_codec
= pb::FieldCodec.ForInt32(154);
private readonly pbc::RepeatedField<int> premiumShowItems_ = new pbc::RepeatedField<int>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<int> PremiumShowItems {
get { return premiumShowItems_; }
}
/// <summary>Field number for the "luxury_show_items" field.</summary>
public const int LuxuryShowItemsFieldNumber = 20;
private static readonly pb::FieldCodec<int> _repeated_luxuryShowItems_codec
= pb::FieldCodec.ForInt32(162);
private readonly pbc::RepeatedField<int> luxuryShowItems_ = new pbc::RepeatedField<int>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<int> LuxuryShowItems {
get { return luxuryShowItems_; }
}
/// <summary>Field number for the "outfit_package_show_item" field.</summary>
public const int OutfitPackageShowItemFieldNumber = 21;
private int outfitPackageShowItem_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int OutfitPackageShowItem {
get { return outfitPackageShowItem_; }
set {
outfitPackageShowItem_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as BattlePass);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(BattlePass other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ID != other.ID) return false;
if (Name != other.Name) return false;
if (StartTime != other.StartTime) return false;
if (EndTime != other.EndTime) return false;
if (LuxuryProductId != other.LuxuryProductId) return false;
if (LuxuryPrice != other.LuxuryPrice) return false;
if (LuxuryBonusLevel != other.LuxuryBonusLevel) return false;
if (LuxuryTid != other.LuxuryTid) return false;
if (LuxuryQty != other.LuxuryQty) return false;
if (PremiumProductId != other.PremiumProductId) return false;
if (PremiumPrice != other.PremiumPrice) return false;
if (PremiumTid != other.PremiumTid) return false;
if (PremiumQty != other.PremiumQty) return false;
if (ComplementaryProductId != other.ComplementaryProductId) return false;
if (ComplementaryPrice != other.ComplementaryPrice) return false;
if (ComplementaryTid != other.ComplementaryTid) return false;
if (ComplementaryQty != other.ComplementaryQty) return false;
if (Cover != other.Cover) return false;
if(!premiumShowItems_.Equals(other.premiumShowItems_)) return false;
if(!luxuryShowItems_.Equals(other.luxuryShowItems_)) return false;
if (OutfitPackageShowItem != other.OutfitPackageShowItem) 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 (ID != 0) hash ^= ID.GetHashCode();
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (StartTime.Length != 0) hash ^= StartTime.GetHashCode();
if (EndTime.Length != 0) hash ^= EndTime.GetHashCode();
if (LuxuryProductId.Length != 0) hash ^= LuxuryProductId.GetHashCode();
if (LuxuryPrice != 0) hash ^= LuxuryPrice.GetHashCode();
if (LuxuryBonusLevel != 0) hash ^= LuxuryBonusLevel.GetHashCode();
if (LuxuryTid != 0) hash ^= LuxuryTid.GetHashCode();
if (LuxuryQty != 0) hash ^= LuxuryQty.GetHashCode();
if (PremiumProductId.Length != 0) hash ^= PremiumProductId.GetHashCode();
if (PremiumPrice != 0) hash ^= PremiumPrice.GetHashCode();
if (PremiumTid != 0) hash ^= PremiumTid.GetHashCode();
if (PremiumQty != 0) hash ^= PremiumQty.GetHashCode();
if (ComplementaryProductId.Length != 0) hash ^= ComplementaryProductId.GetHashCode();
if (ComplementaryPrice != 0) hash ^= ComplementaryPrice.GetHashCode();
if (ComplementaryTid != 0) hash ^= ComplementaryTid.GetHashCode();
if (ComplementaryQty != 0) hash ^= ComplementaryQty.GetHashCode();
if (Cover.Length != 0) hash ^= Cover.GetHashCode();
hash ^= premiumShowItems_.GetHashCode();
hash ^= luxuryShowItems_.GetHashCode();
if (OutfitPackageShowItem != 0) hash ^= OutfitPackageShowItem.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 (ID != 0) {
output.WriteRawTag(8);
output.WriteInt32(ID);
}
if (Name.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Name);
}
if (StartTime.Length != 0) {
output.WriteRawTag(26);
output.WriteString(StartTime);
}
if (EndTime.Length != 0) {
output.WriteRawTag(34);
output.WriteString(EndTime);
}
if (LuxuryProductId.Length != 0) {
output.WriteRawTag(42);
output.WriteString(LuxuryProductId);
}
if (LuxuryPrice != 0) {
output.WriteRawTag(48);
output.WriteInt32(LuxuryPrice);
}
if (LuxuryBonusLevel != 0) {
output.WriteRawTag(56);
output.WriteInt32(LuxuryBonusLevel);
}
if (LuxuryTid != 0) {
output.WriteRawTag(64);
output.WriteInt32(LuxuryTid);
}
if (LuxuryQty != 0) {
output.WriteRawTag(72);
output.WriteInt32(LuxuryQty);
}
if (PremiumProductId.Length != 0) {
output.WriteRawTag(82);
output.WriteString(PremiumProductId);
}
if (PremiumPrice != 0) {
output.WriteRawTag(88);
output.WriteInt32(PremiumPrice);
}
if (PremiumTid != 0) {
output.WriteRawTag(96);
output.WriteInt32(PremiumTid);
}
if (PremiumQty != 0) {
output.WriteRawTag(104);
output.WriteInt32(PremiumQty);
}
if (ComplementaryProductId.Length != 0) {
output.WriteRawTag(114);
output.WriteString(ComplementaryProductId);
}
if (ComplementaryPrice != 0) {
output.WriteRawTag(120);
output.WriteInt32(ComplementaryPrice);
}
if (ComplementaryTid != 0) {
output.WriteRawTag(128, 1);
output.WriteInt32(ComplementaryTid);
}
if (ComplementaryQty != 0) {
output.WriteRawTag(136, 1);
output.WriteInt32(ComplementaryQty);
}
if (Cover.Length != 0) {
output.WriteRawTag(146, 1);
output.WriteString(Cover);
}
premiumShowItems_.WriteTo(output, _repeated_premiumShowItems_codec);
luxuryShowItems_.WriteTo(output, _repeated_luxuryShowItems_codec);
if (OutfitPackageShowItem != 0) {
output.WriteRawTag(168, 1);
output.WriteInt32(OutfitPackageShowItem);
}
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 (ID != 0) {
output.WriteRawTag(8);
output.WriteInt32(ID);
}
if (Name.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Name);
}
if (StartTime.Length != 0) {
output.WriteRawTag(26);
output.WriteString(StartTime);
}
if (EndTime.Length != 0) {
output.WriteRawTag(34);
output.WriteString(EndTime);
}
if (LuxuryProductId.Length != 0) {
output.WriteRawTag(42);
output.WriteString(LuxuryProductId);
}
if (LuxuryPrice != 0) {
output.WriteRawTag(48);
output.WriteInt32(LuxuryPrice);
}
if (LuxuryBonusLevel != 0) {
output.WriteRawTag(56);
output.WriteInt32(LuxuryBonusLevel);
}
if (LuxuryTid != 0) {
output.WriteRawTag(64);
output.WriteInt32(LuxuryTid);
}
if (LuxuryQty != 0) {
output.WriteRawTag(72);
output.WriteInt32(LuxuryQty);
}
if (PremiumProductId.Length != 0) {
output.WriteRawTag(82);
output.WriteString(PremiumProductId);
}
if (PremiumPrice != 0) {
output.WriteRawTag(88);
output.WriteInt32(PremiumPrice);
}
if (PremiumTid != 0) {
output.WriteRawTag(96);
output.WriteInt32(PremiumTid);
}
if (PremiumQty != 0) {
output.WriteRawTag(104);
output.WriteInt32(PremiumQty);
}
if (ComplementaryProductId.Length != 0) {
output.WriteRawTag(114);
output.WriteString(ComplementaryProductId);
}
if (ComplementaryPrice != 0) {
output.WriteRawTag(120);
output.WriteInt32(ComplementaryPrice);
}
if (ComplementaryTid != 0) {
output.WriteRawTag(128, 1);
output.WriteInt32(ComplementaryTid);
}
if (ComplementaryQty != 0) {
output.WriteRawTag(136, 1);
output.WriteInt32(ComplementaryQty);
}
if (Cover.Length != 0) {
output.WriteRawTag(146, 1);
output.WriteString(Cover);
}
premiumShowItems_.WriteTo(ref output, _repeated_premiumShowItems_codec);
luxuryShowItems_.WriteTo(ref output, _repeated_luxuryShowItems_codec);
if (OutfitPackageShowItem != 0) {
output.WriteRawTag(168, 1);
output.WriteInt32(OutfitPackageShowItem);
}
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 (ID != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ID);
}
if (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (StartTime.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(StartTime);
}
if (EndTime.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(EndTime);
}
if (LuxuryProductId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(LuxuryProductId);
}
if (LuxuryPrice != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(LuxuryPrice);
}
if (LuxuryBonusLevel != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(LuxuryBonusLevel);
}
if (LuxuryTid != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(LuxuryTid);
}
if (LuxuryQty != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(LuxuryQty);
}
if (PremiumProductId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PremiumProductId);
}
if (PremiumPrice != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PremiumPrice);
}
if (PremiumTid != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PremiumTid);
}
if (PremiumQty != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PremiumQty);
}
if (ComplementaryProductId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ComplementaryProductId);
}
if (ComplementaryPrice != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ComplementaryPrice);
}
if (ComplementaryTid != 0) {
size += 2 + pb::CodedOutputStream.ComputeInt32Size(ComplementaryTid);
}
if (ComplementaryQty != 0) {
size += 2 + pb::CodedOutputStream.ComputeInt32Size(ComplementaryQty);
}
if (Cover.Length != 0) {
size += 2 + pb::CodedOutputStream.ComputeStringSize(Cover);
}
size += premiumShowItems_.CalculateSize(_repeated_premiumShowItems_codec);
size += luxuryShowItems_.CalculateSize(_repeated_luxuryShowItems_codec);
if (OutfitPackageShowItem != 0) {
size += 2 + pb::CodedOutputStream.ComputeInt32Size(OutfitPackageShowItem);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(BattlePass other) {
if (other == null) {
return;
}
if (other.ID != 0) {
ID = other.ID;
}
if (other.Name.Length != 0) {
Name = other.Name;
}
if (other.StartTime.Length != 0) {
StartTime = other.StartTime;
}
if (other.EndTime.Length != 0) {
EndTime = other.EndTime;
}
if (other.LuxuryProductId.Length != 0) {
LuxuryProductId = other.LuxuryProductId;
}
if (other.LuxuryPrice != 0) {
LuxuryPrice = other.LuxuryPrice;
}
if (other.LuxuryBonusLevel != 0) {
LuxuryBonusLevel = other.LuxuryBonusLevel;
}
if (other.LuxuryTid != 0) {
LuxuryTid = other.LuxuryTid;
}
if (other.LuxuryQty != 0) {
LuxuryQty = other.LuxuryQty;
}
if (other.PremiumProductId.Length != 0) {
PremiumProductId = other.PremiumProductId;
}
if (other.PremiumPrice != 0) {
PremiumPrice = other.PremiumPrice;
}
if (other.PremiumTid != 0) {
PremiumTid = other.PremiumTid;
}
if (other.PremiumQty != 0) {
PremiumQty = other.PremiumQty;
}
if (other.ComplementaryProductId.Length != 0) {
ComplementaryProductId = other.ComplementaryProductId;
}
if (other.ComplementaryPrice != 0) {
ComplementaryPrice = other.ComplementaryPrice;
}
if (other.ComplementaryTid != 0) {
ComplementaryTid = other.ComplementaryTid;
}
if (other.ComplementaryQty != 0) {
ComplementaryQty = other.ComplementaryQty;
}
if (other.Cover.Length != 0) {
Cover = other.Cover;
}
premiumShowItems_.Add(other.premiumShowItems_);
luxuryShowItems_.Add(other.luxuryShowItems_);
if (other.OutfitPackageShowItem != 0) {
OutfitPackageShowItem = other.OutfitPackageShowItem;
}
_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 8: {
ID = input.ReadInt32();
break;
}
case 18: {
Name = input.ReadString();
break;
}
case 26: {
StartTime = input.ReadString();
break;
}
case 34: {
EndTime = input.ReadString();
break;
}
case 42: {
LuxuryProductId = input.ReadString();
break;
}
case 48: {
LuxuryPrice = input.ReadInt32();
break;
}
case 56: {
LuxuryBonusLevel = input.ReadInt32();
break;
}
case 64: {
LuxuryTid = input.ReadInt32();
break;
}
case 72: {
LuxuryQty = input.ReadInt32();
break;
}
case 82: {
PremiumProductId = input.ReadString();
break;
}
case 88: {
PremiumPrice = input.ReadInt32();
break;
}
case 96: {
PremiumTid = input.ReadInt32();
break;
}
case 104: {
PremiumQty = input.ReadInt32();
break;
}
case 114: {
ComplementaryProductId = input.ReadString();
break;
}
case 120: {
ComplementaryPrice = input.ReadInt32();
break;
}
case 128: {
ComplementaryTid = input.ReadInt32();
break;
}
case 136: {
ComplementaryQty = input.ReadInt32();
break;
}
case 146: {
Cover = input.ReadString();
break;
}
case 154:
case 152: {
premiumShowItems_.AddEntriesFrom(input, _repeated_premiumShowItems_codec);
break;
}
case 162:
case 160: {
luxuryShowItems_.AddEntriesFrom(input, _repeated_luxuryShowItems_codec);
break;
}
case 168: {
OutfitPackageShowItem = input.ReadInt32();
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 8: {
ID = input.ReadInt32();
break;
}
case 18: {
Name = input.ReadString();
break;
}
case 26: {
StartTime = input.ReadString();
break;
}
case 34: {
EndTime = input.ReadString();
break;
}
case 42: {
LuxuryProductId = input.ReadString();
break;
}
case 48: {
LuxuryPrice = input.ReadInt32();
break;
}
case 56: {
LuxuryBonusLevel = input.ReadInt32();
break;
}
case 64: {
LuxuryTid = input.ReadInt32();
break;
}
case 72: {
LuxuryQty = input.ReadInt32();
break;
}
case 82: {
PremiumProductId = input.ReadString();
break;
}
case 88: {
PremiumPrice = input.ReadInt32();
break;
}
case 96: {
PremiumTid = input.ReadInt32();
break;
}
case 104: {
PremiumQty = input.ReadInt32();
break;
}
case 114: {
ComplementaryProductId = input.ReadString();
break;
}
case 120: {
ComplementaryPrice = input.ReadInt32();
break;
}
case 128: {
ComplementaryTid = input.ReadInt32();
break;
}
case 136: {
ComplementaryQty = input.ReadInt32();
break;
}
case 146: {
Cover = input.ReadString();
break;
}
case 154:
case 152: {
premiumShowItems_.AddEntriesFrom(ref input, _repeated_premiumShowItems_codec);
break;
}
case 162:
case 160: {
luxuryShowItems_.AddEntriesFrom(ref input, _repeated_luxuryShowItems_codec);
break;
}
case 168: {
OutfitPackageShowItem = input.ReadInt32();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code