Files
Novaria/Novaria.Common/Protos/ResidentShop.cs

617 lines
20 KiB
C#

// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ResidentShop.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 ResidentShop.proto</summary>
public static partial class ResidentShopReflection {
#region Descriptor
/// <summary>File descriptor for ResidentShop.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ResidentShopReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChJSZXNpZGVudFNob3AucHJvdG8i7QEKDFJlc2lkZW50U2hvcBIKCgJpZBgB",
"IAEoBRIRCglzaG9wX2NvaW4YAiABKAUSDAoEdHlwZRgDIAEoBRIMCgRuYW1l",
"GAQgASgJEhAKCHNlcXVlbmNlGAUgASgFEhkKEXJlZnJlc2hfdGltZV90eXBl",
"GAYgASgFEhgKEHJlZnJlc2hfaW50ZXJ2YWwYByABKAUSGAoQdW5sb2NrX2Nv",
"bmRfdHlwZRgIIAEoBRIaChJ1bmxvY2tfY29uZF9wYXJhbXMYCSABKAkSEQoJ",
"b3Blbl90aW1lGAogASgJEhIKCmNsb3NlX3RpbWUYCyABKAlCDqoCC05vdmEu",
"Q2xpZW50YgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.ResidentShop), global::Nova.Client.ResidentShop.Parser, new[]{ "Id", "ShopCoin", "Type", "Name", "Sequence", "RefreshTimeType", "RefreshInterval", "UnlockCondType", "UnlockCondParams", "OpenTime", "CloseTime" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class ResidentShop : pb::IMessage<ResidentShop>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<ResidentShop> _parser = new pb::MessageParser<ResidentShop>(() => new ResidentShop());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<ResidentShop> 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.ResidentShopReflection.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 ResidentShop() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ResidentShop(ResidentShop other) : this() {
id_ = other.id_;
shopCoin_ = other.shopCoin_;
type_ = other.type_;
name_ = other.name_;
sequence_ = other.sequence_;
refreshTimeType_ = other.refreshTimeType_;
refreshInterval_ = other.refreshInterval_;
unlockCondType_ = other.unlockCondType_;
unlockCondParams_ = other.unlockCondParams_;
openTime_ = other.openTime_;
closeTime_ = other.closeTime_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ResidentShop Clone() {
return new ResidentShop(this);
}
/// <summary>Field number for the "id" 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 "shop_coin" field.</summary>
public const int ShopCoinFieldNumber = 2;
private int shopCoin_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int ShopCoin {
get { return shopCoin_; }
set {
shopCoin_ = value;
}
}
/// <summary>Field number for the "type" field.</summary>
public const int TypeFieldNumber = 3;
private int type_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Type {
get { return type_; }
set {
type_ = value;
}
}
/// <summary>Field number for the "name" field.</summary>
public const int NameFieldNumber = 4;
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 "sequence" field.</summary>
public const int SequenceFieldNumber = 5;
private int sequence_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Sequence {
get { return sequence_; }
set {
sequence_ = value;
}
}
/// <summary>Field number for the "refresh_time_type" field.</summary>
public const int RefreshTimeTypeFieldNumber = 6;
private int refreshTimeType_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int RefreshTimeType {
get { return refreshTimeType_; }
set {
refreshTimeType_ = value;
}
}
/// <summary>Field number for the "refresh_interval" field.</summary>
public const int RefreshIntervalFieldNumber = 7;
private int refreshInterval_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int RefreshInterval {
get { return refreshInterval_; }
set {
refreshInterval_ = value;
}
}
/// <summary>Field number for the "unlock_cond_type" field.</summary>
public const int UnlockCondTypeFieldNumber = 8;
private int unlockCondType_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int UnlockCondType {
get { return unlockCondType_; }
set {
unlockCondType_ = value;
}
}
/// <summary>Field number for the "unlock_cond_params" field.</summary>
public const int UnlockCondParamsFieldNumber = 9;
private string unlockCondParams_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string UnlockCondParams {
get { return unlockCondParams_; }
set {
unlockCondParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "open_time" field.</summary>
public const int OpenTimeFieldNumber = 10;
private string openTime_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string OpenTime {
get { return openTime_; }
set {
openTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "close_time" field.</summary>
public const int CloseTimeFieldNumber = 11;
private string closeTime_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string CloseTime {
get { return closeTime_; }
set {
closeTime_ = 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 ResidentShop);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ResidentShop other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (ShopCoin != other.ShopCoin) return false;
if (Type != other.Type) return false;
if (Name != other.Name) return false;
if (Sequence != other.Sequence) return false;
if (RefreshTimeType != other.RefreshTimeType) return false;
if (RefreshInterval != other.RefreshInterval) return false;
if (UnlockCondType != other.UnlockCondType) return false;
if (UnlockCondParams != other.UnlockCondParams) return false;
if (OpenTime != other.OpenTime) return false;
if (CloseTime != other.CloseTime) 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 (ShopCoin != 0) hash ^= ShopCoin.GetHashCode();
if (Type != 0) hash ^= Type.GetHashCode();
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (Sequence != 0) hash ^= Sequence.GetHashCode();
if (RefreshTimeType != 0) hash ^= RefreshTimeType.GetHashCode();
if (RefreshInterval != 0) hash ^= RefreshInterval.GetHashCode();
if (UnlockCondType != 0) hash ^= UnlockCondType.GetHashCode();
if (UnlockCondParams.Length != 0) hash ^= UnlockCondParams.GetHashCode();
if (OpenTime.Length != 0) hash ^= OpenTime.GetHashCode();
if (CloseTime.Length != 0) hash ^= CloseTime.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 (ShopCoin != 0) {
output.WriteRawTag(16);
output.WriteInt32(ShopCoin);
}
if (Type != 0) {
output.WriteRawTag(24);
output.WriteInt32(Type);
}
if (Name.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Name);
}
if (Sequence != 0) {
output.WriteRawTag(40);
output.WriteInt32(Sequence);
}
if (RefreshTimeType != 0) {
output.WriteRawTag(48);
output.WriteInt32(RefreshTimeType);
}
if (RefreshInterval != 0) {
output.WriteRawTag(56);
output.WriteInt32(RefreshInterval);
}
if (UnlockCondType != 0) {
output.WriteRawTag(64);
output.WriteInt32(UnlockCondType);
}
if (UnlockCondParams.Length != 0) {
output.WriteRawTag(74);
output.WriteString(UnlockCondParams);
}
if (OpenTime.Length != 0) {
output.WriteRawTag(82);
output.WriteString(OpenTime);
}
if (CloseTime.Length != 0) {
output.WriteRawTag(90);
output.WriteString(CloseTime);
}
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 (ShopCoin != 0) {
output.WriteRawTag(16);
output.WriteInt32(ShopCoin);
}
if (Type != 0) {
output.WriteRawTag(24);
output.WriteInt32(Type);
}
if (Name.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Name);
}
if (Sequence != 0) {
output.WriteRawTag(40);
output.WriteInt32(Sequence);
}
if (RefreshTimeType != 0) {
output.WriteRawTag(48);
output.WriteInt32(RefreshTimeType);
}
if (RefreshInterval != 0) {
output.WriteRawTag(56);
output.WriteInt32(RefreshInterval);
}
if (UnlockCondType != 0) {
output.WriteRawTag(64);
output.WriteInt32(UnlockCondType);
}
if (UnlockCondParams.Length != 0) {
output.WriteRawTag(74);
output.WriteString(UnlockCondParams);
}
if (OpenTime.Length != 0) {
output.WriteRawTag(82);
output.WriteString(OpenTime);
}
if (CloseTime.Length != 0) {
output.WriteRawTag(90);
output.WriteString(CloseTime);
}
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 (ShopCoin != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShopCoin);
}
if (Type != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type);
}
if (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (Sequence != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sequence);
}
if (RefreshTimeType != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RefreshTimeType);
}
if (RefreshInterval != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RefreshInterval);
}
if (UnlockCondType != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(UnlockCondType);
}
if (UnlockCondParams.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(UnlockCondParams);
}
if (OpenTime.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(OpenTime);
}
if (CloseTime.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CloseTime);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ResidentShop other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.ShopCoin != 0) {
ShopCoin = other.ShopCoin;
}
if (other.Type != 0) {
Type = other.Type;
}
if (other.Name.Length != 0) {
Name = other.Name;
}
if (other.Sequence != 0) {
Sequence = other.Sequence;
}
if (other.RefreshTimeType != 0) {
RefreshTimeType = other.RefreshTimeType;
}
if (other.RefreshInterval != 0) {
RefreshInterval = other.RefreshInterval;
}
if (other.UnlockCondType != 0) {
UnlockCondType = other.UnlockCondType;
}
if (other.UnlockCondParams.Length != 0) {
UnlockCondParams = other.UnlockCondParams;
}
if (other.OpenTime.Length != 0) {
OpenTime = other.OpenTime;
}
if (other.CloseTime.Length != 0) {
CloseTime = other.CloseTime;
}
_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 16: {
ShopCoin = input.ReadInt32();
break;
}
case 24: {
Type = input.ReadInt32();
break;
}
case 34: {
Name = input.ReadString();
break;
}
case 40: {
Sequence = input.ReadInt32();
break;
}
case 48: {
RefreshTimeType = input.ReadInt32();
break;
}
case 56: {
RefreshInterval = input.ReadInt32();
break;
}
case 64: {
UnlockCondType = input.ReadInt32();
break;
}
case 74: {
UnlockCondParams = input.ReadString();
break;
}
case 82: {
OpenTime = input.ReadString();
break;
}
case 90: {
CloseTime = 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 8: {
Id = input.ReadInt32();
break;
}
case 16: {
ShopCoin = input.ReadInt32();
break;
}
case 24: {
Type = input.ReadInt32();
break;
}
case 34: {
Name = input.ReadString();
break;
}
case 40: {
Sequence = input.ReadInt32();
break;
}
case 48: {
RefreshTimeType = input.ReadInt32();
break;
}
case 56: {
RefreshInterval = input.ReadInt32();
break;
}
case 64: {
UnlockCondType = input.ReadInt32();
break;
}
case 74: {
UnlockCondParams = input.ReadString();
break;
}
case 82: {
OpenTime = input.ReadString();
break;
}
case 90: {
CloseTime = input.ReadString();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code