mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-15 16:04:48 +01:00
504 lines
16 KiB
C#
504 lines
16 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: MallMonthlyCard.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 MallMonthlyCard.proto</summary>
|
|
public static partial class MallMonthlyCardReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for MallMonthlyCard.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static MallMonthlyCardReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChVNYWxsTW9udGhseUNhcmQucHJvdG8ioAEKD01hbGxNb250aGx5Q2FyZBIK",
|
|
"CgJpZBgBIAEoCRIMCgRuYW1lGAIgASgJEhcKD21vbnRobHlfY2FyZF9pZBgD",
|
|
"IAEoBRINCgVwcmljZRgEIAEoBRIUCgxiYXNlX2l0ZW1faWQYBSABKAUSFQoN",
|
|
"YmFzZV9pdGVtX3F0eRgGIAEoBRIQCghtYXhfZGF5cxgHIAEoBRIMCgRpY29u",
|
|
"GAggASgJQg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.MallMonthlyCard), global::Nova.Client.MallMonthlyCard.Parser, new[]{ "Id", "Name", "MonthlyCardId", "Price", "BaseItemId", "BaseItemQty", "MaxDays", "Icon" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class MallMonthlyCard : pb::IMessage<MallMonthlyCard>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<MallMonthlyCard> _parser = new pb::MessageParser<MallMonthlyCard>(() => new MallMonthlyCard());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<MallMonthlyCard> 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.MallMonthlyCardReflection.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 MallMonthlyCard() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public MallMonthlyCard(MallMonthlyCard other) : this() {
|
|
id_ = other.id_;
|
|
name_ = other.name_;
|
|
monthlyCardId_ = other.monthlyCardId_;
|
|
price_ = other.price_;
|
|
baseItemId_ = other.baseItemId_;
|
|
baseItemQty_ = other.baseItemQty_;
|
|
maxDays_ = other.maxDays_;
|
|
icon_ = other.icon_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public MallMonthlyCard Clone() {
|
|
return new MallMonthlyCard(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 1;
|
|
private string id_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Id {
|
|
get { return id_; }
|
|
set {
|
|
id_ = pb::ProtoPreconditions.CheckNotNull(value, "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 "monthly_card_id" field.</summary>
|
|
public const int MonthlyCardIdFieldNumber = 3;
|
|
private int monthlyCardId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int MonthlyCardId {
|
|
get { return monthlyCardId_; }
|
|
set {
|
|
monthlyCardId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "price" field.</summary>
|
|
public const int PriceFieldNumber = 4;
|
|
private int price_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Price {
|
|
get { return price_; }
|
|
set {
|
|
price_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "base_item_id" field.</summary>
|
|
public const int BaseItemIdFieldNumber = 5;
|
|
private int baseItemId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int BaseItemId {
|
|
get { return baseItemId_; }
|
|
set {
|
|
baseItemId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "base_item_qty" field.</summary>
|
|
public const int BaseItemQtyFieldNumber = 6;
|
|
private int baseItemQty_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int BaseItemQty {
|
|
get { return baseItemQty_; }
|
|
set {
|
|
baseItemQty_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "max_days" field.</summary>
|
|
public const int MaxDaysFieldNumber = 7;
|
|
private int maxDays_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int MaxDays {
|
|
get { return maxDays_; }
|
|
set {
|
|
maxDays_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "icon" field.</summary>
|
|
public const int IconFieldNumber = 8;
|
|
private string icon_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Icon {
|
|
get { return icon_; }
|
|
set {
|
|
icon_ = 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 MallMonthlyCard);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(MallMonthlyCard 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 (MonthlyCardId != other.MonthlyCardId) return false;
|
|
if (Price != other.Price) return false;
|
|
if (BaseItemId != other.BaseItemId) return false;
|
|
if (BaseItemQty != other.BaseItemQty) return false;
|
|
if (MaxDays != other.MaxDays) return false;
|
|
if (Icon != other.Icon) 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.Length != 0) hash ^= Id.GetHashCode();
|
|
if (Name.Length != 0) hash ^= Name.GetHashCode();
|
|
if (MonthlyCardId != 0) hash ^= MonthlyCardId.GetHashCode();
|
|
if (Price != 0) hash ^= Price.GetHashCode();
|
|
if (BaseItemId != 0) hash ^= BaseItemId.GetHashCode();
|
|
if (BaseItemQty != 0) hash ^= BaseItemQty.GetHashCode();
|
|
if (MaxDays != 0) hash ^= MaxDays.GetHashCode();
|
|
if (Icon.Length != 0) hash ^= Icon.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.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Id);
|
|
}
|
|
if (Name.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Name);
|
|
}
|
|
if (MonthlyCardId != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(MonthlyCardId);
|
|
}
|
|
if (Price != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteInt32(Price);
|
|
}
|
|
if (BaseItemId != 0) {
|
|
output.WriteRawTag(40);
|
|
output.WriteInt32(BaseItemId);
|
|
}
|
|
if (BaseItemQty != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteInt32(BaseItemQty);
|
|
}
|
|
if (MaxDays != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteInt32(MaxDays);
|
|
}
|
|
if (Icon.Length != 0) {
|
|
output.WriteRawTag(66);
|
|
output.WriteString(Icon);
|
|
}
|
|
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.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Id);
|
|
}
|
|
if (Name.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Name);
|
|
}
|
|
if (MonthlyCardId != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(MonthlyCardId);
|
|
}
|
|
if (Price != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteInt32(Price);
|
|
}
|
|
if (BaseItemId != 0) {
|
|
output.WriteRawTag(40);
|
|
output.WriteInt32(BaseItemId);
|
|
}
|
|
if (BaseItemQty != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteInt32(BaseItemQty);
|
|
}
|
|
if (MaxDays != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteInt32(MaxDays);
|
|
}
|
|
if (Icon.Length != 0) {
|
|
output.WriteRawTag(66);
|
|
output.WriteString(Icon);
|
|
}
|
|
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.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
|
|
}
|
|
if (Name.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
|
}
|
|
if (MonthlyCardId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(MonthlyCardId);
|
|
}
|
|
if (Price != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Price);
|
|
}
|
|
if (BaseItemId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(BaseItemId);
|
|
}
|
|
if (BaseItemQty != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(BaseItemQty);
|
|
}
|
|
if (MaxDays != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxDays);
|
|
}
|
|
if (Icon.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(MallMonthlyCard other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Id.Length != 0) {
|
|
Id = other.Id;
|
|
}
|
|
if (other.Name.Length != 0) {
|
|
Name = other.Name;
|
|
}
|
|
if (other.MonthlyCardId != 0) {
|
|
MonthlyCardId = other.MonthlyCardId;
|
|
}
|
|
if (other.Price != 0) {
|
|
Price = other.Price;
|
|
}
|
|
if (other.BaseItemId != 0) {
|
|
BaseItemId = other.BaseItemId;
|
|
}
|
|
if (other.BaseItemQty != 0) {
|
|
BaseItemQty = other.BaseItemQty;
|
|
}
|
|
if (other.MaxDays != 0) {
|
|
MaxDays = other.MaxDays;
|
|
}
|
|
if (other.Icon.Length != 0) {
|
|
Icon = other.Icon;
|
|
}
|
|
_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: {
|
|
Id = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Name = input.ReadString();
|
|
break;
|
|
}
|
|
case 24: {
|
|
MonthlyCardId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
Price = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 40: {
|
|
BaseItemId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
BaseItemQty = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
MaxDays = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 66: {
|
|
Icon = input.ReadString();
|
|
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: {
|
|
Id = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Name = input.ReadString();
|
|
break;
|
|
}
|
|
case 24: {
|
|
MonthlyCardId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 32: {
|
|
Price = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 40: {
|
|
BaseItemId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
BaseItemQty = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
MaxDays = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 66: {
|
|
Icon = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|