mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-15 16:04:48 +01:00
955 lines
32 KiB
C#
955 lines
32 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: ResidentGoods.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 ResidentGoods.proto</summary>
|
|
public static partial class ResidentGoodsReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for ResidentGoods.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static ResidentGoodsReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChNSZXNpZGVudEdvb2RzLnByb3RvIsMDCg1SZXNpZGVudEdvb2RzEgoKAmlk",
|
|
"GAEgASgFEgwKBG5hbWUYAiABKAkSDAoEZGVzYxgDIAEoCRIPCgdzaG9wX2lk",
|
|
"GAQgASgFEhMKC3NhbGVfbnVtYmVyGAUgASgFEg8KB2l0ZW1faWQYBiABKAUS",
|
|
"FQoNaXRlbV9xdWFudGl0eRgHIAEoBRIVCg1tYXhpbXVtX2xpbWl0GAggASgF",
|
|
"EhgKEGN1cnJlbmN5X2l0ZW1faWQYCSABKAUSDQoFcHJpY2UYCiABKAUSFgoO",
|
|
"b3JpZ2luYWxfcHJpY2UYCyABKAUSEAoIZGlzY291bnQYDCABKAUSGAoQYXBw",
|
|
"ZWFyX2NvbmRfdHlwZRgNIAEoBRIaChJhcHBlYXJfY29uZF9wYXJhbXMYDiAB",
|
|
"KAkSGgoScHVyY2hhc2VfY29uZF90eXBlGA8gASgFEhwKFHB1cmNoYXNlX2Nv",
|
|
"bmRfcGFyYW1zGBAgASgJEhUKDXVwX3NoZWxmX3RpbWUYESABKAkSFwoPZG93",
|
|
"bl9zaGVsZl90aW1lGBIgASgJEhwKFHVubG9ja19wdXJjaGFzZV90aW1lGBMg",
|
|
"ASgJEhQKDGRpc3BsYXlfbW9kZRgUIAEoBUIOqgILTm92YS5DbGllbnRiBnBy",
|
|
"b3RvMw=="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.ResidentGoods), global::Nova.Client.ResidentGoods.Parser, new[]{ "Id", "Name", "Desc", "ShopId", "SaleNumber", "ItemId", "ItemQuantity", "MaximumLimit", "CurrencyItemId", "Price", "OriginalPrice", "Discount", "AppearCondType", "AppearCondParams", "PurchaseCondType", "PurchaseCondParams", "UpShelfTime", "DownShelfTime", "UnlockPurchaseTime", "DisplayMode" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class ResidentGoods : pb::IMessage<ResidentGoods>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<ResidentGoods> _parser = new pb::MessageParser<ResidentGoods>(() => new ResidentGoods());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<ResidentGoods> 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.ResidentGoodsReflection.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 ResidentGoods() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ResidentGoods(ResidentGoods other) : this() {
|
|
id_ = other.id_;
|
|
name_ = other.name_;
|
|
desc_ = other.desc_;
|
|
shopId_ = other.shopId_;
|
|
saleNumber_ = other.saleNumber_;
|
|
itemId_ = other.itemId_;
|
|
itemQuantity_ = other.itemQuantity_;
|
|
maximumLimit_ = other.maximumLimit_;
|
|
currencyItemId_ = other.currencyItemId_;
|
|
price_ = other.price_;
|
|
originalPrice_ = other.originalPrice_;
|
|
discount_ = other.discount_;
|
|
appearCondType_ = other.appearCondType_;
|
|
appearCondParams_ = other.appearCondParams_;
|
|
purchaseCondType_ = other.purchaseCondType_;
|
|
purchaseCondParams_ = other.purchaseCondParams_;
|
|
upShelfTime_ = other.upShelfTime_;
|
|
downShelfTime_ = other.downShelfTime_;
|
|
unlockPurchaseTime_ = other.unlockPurchaseTime_;
|
|
displayMode_ = other.displayMode_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ResidentGoods Clone() {
|
|
return new ResidentGoods(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 "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 "desc" field.</summary>
|
|
public const int DescFieldNumber = 3;
|
|
private string desc_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Desc {
|
|
get { return desc_; }
|
|
set {
|
|
desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "shop_id" field.</summary>
|
|
public const int ShopIdFieldNumber = 4;
|
|
private int shopId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int ShopId {
|
|
get { return shopId_; }
|
|
set {
|
|
shopId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "sale_number" field.</summary>
|
|
public const int SaleNumberFieldNumber = 5;
|
|
private int saleNumber_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int SaleNumber {
|
|
get { return saleNumber_; }
|
|
set {
|
|
saleNumber_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "item_id" field.</summary>
|
|
public const int ItemIdFieldNumber = 6;
|
|
private int itemId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int ItemId {
|
|
get { return itemId_; }
|
|
set {
|
|
itemId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "item_quantity" field.</summary>
|
|
public const int ItemQuantityFieldNumber = 7;
|
|
private int itemQuantity_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int ItemQuantity {
|
|
get { return itemQuantity_; }
|
|
set {
|
|
itemQuantity_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "maximum_limit" field.</summary>
|
|
public const int MaximumLimitFieldNumber = 8;
|
|
private int maximumLimit_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int MaximumLimit {
|
|
get { return maximumLimit_; }
|
|
set {
|
|
maximumLimit_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "currency_item_id" field.</summary>
|
|
public const int CurrencyItemIdFieldNumber = 9;
|
|
private int currencyItemId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CurrencyItemId {
|
|
get { return currencyItemId_; }
|
|
set {
|
|
currencyItemId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "price" field.</summary>
|
|
public const int PriceFieldNumber = 10;
|
|
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 "original_price" field.</summary>
|
|
public const int OriginalPriceFieldNumber = 11;
|
|
private int originalPrice_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int OriginalPrice {
|
|
get { return originalPrice_; }
|
|
set {
|
|
originalPrice_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "discount" field.</summary>
|
|
public const int DiscountFieldNumber = 12;
|
|
private int discount_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Discount {
|
|
get { return discount_; }
|
|
set {
|
|
discount_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "appear_cond_type" field.</summary>
|
|
public const int AppearCondTypeFieldNumber = 13;
|
|
private int appearCondType_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int AppearCondType {
|
|
get { return appearCondType_; }
|
|
set {
|
|
appearCondType_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "appear_cond_params" field.</summary>
|
|
public const int AppearCondParamsFieldNumber = 14;
|
|
private string appearCondParams_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string AppearCondParams {
|
|
get { return appearCondParams_; }
|
|
set {
|
|
appearCondParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "purchase_cond_type" field.</summary>
|
|
public const int PurchaseCondTypeFieldNumber = 15;
|
|
private int purchaseCondType_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int PurchaseCondType {
|
|
get { return purchaseCondType_; }
|
|
set {
|
|
purchaseCondType_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "purchase_cond_params" field.</summary>
|
|
public const int PurchaseCondParamsFieldNumber = 16;
|
|
private string purchaseCondParams_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string PurchaseCondParams {
|
|
get { return purchaseCondParams_; }
|
|
set {
|
|
purchaseCondParams_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "up_shelf_time" field.</summary>
|
|
public const int UpShelfTimeFieldNumber = 17;
|
|
private string upShelfTime_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string UpShelfTime {
|
|
get { return upShelfTime_; }
|
|
set {
|
|
upShelfTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "down_shelf_time" field.</summary>
|
|
public const int DownShelfTimeFieldNumber = 18;
|
|
private string downShelfTime_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string DownShelfTime {
|
|
get { return downShelfTime_; }
|
|
set {
|
|
downShelfTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "unlock_purchase_time" field.</summary>
|
|
public const int UnlockPurchaseTimeFieldNumber = 19;
|
|
private string unlockPurchaseTime_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string UnlockPurchaseTime {
|
|
get { return unlockPurchaseTime_; }
|
|
set {
|
|
unlockPurchaseTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "display_mode" field.</summary>
|
|
public const int DisplayModeFieldNumber = 20;
|
|
private int displayMode_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int DisplayMode {
|
|
get { return displayMode_; }
|
|
set {
|
|
displayMode_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as ResidentGoods);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(ResidentGoods 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 (Desc != other.Desc) return false;
|
|
if (ShopId != other.ShopId) return false;
|
|
if (SaleNumber != other.SaleNumber) return false;
|
|
if (ItemId != other.ItemId) return false;
|
|
if (ItemQuantity != other.ItemQuantity) return false;
|
|
if (MaximumLimit != other.MaximumLimit) return false;
|
|
if (CurrencyItemId != other.CurrencyItemId) return false;
|
|
if (Price != other.Price) return false;
|
|
if (OriginalPrice != other.OriginalPrice) return false;
|
|
if (Discount != other.Discount) return false;
|
|
if (AppearCondType != other.AppearCondType) return false;
|
|
if (AppearCondParams != other.AppearCondParams) return false;
|
|
if (PurchaseCondType != other.PurchaseCondType) return false;
|
|
if (PurchaseCondParams != other.PurchaseCondParams) return false;
|
|
if (UpShelfTime != other.UpShelfTime) return false;
|
|
if (DownShelfTime != other.DownShelfTime) return false;
|
|
if (UnlockPurchaseTime != other.UnlockPurchaseTime) return false;
|
|
if (DisplayMode != other.DisplayMode) 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 (Desc.Length != 0) hash ^= Desc.GetHashCode();
|
|
if (ShopId != 0) hash ^= ShopId.GetHashCode();
|
|
if (SaleNumber != 0) hash ^= SaleNumber.GetHashCode();
|
|
if (ItemId != 0) hash ^= ItemId.GetHashCode();
|
|
if (ItemQuantity != 0) hash ^= ItemQuantity.GetHashCode();
|
|
if (MaximumLimit != 0) hash ^= MaximumLimit.GetHashCode();
|
|
if (CurrencyItemId != 0) hash ^= CurrencyItemId.GetHashCode();
|
|
if (Price != 0) hash ^= Price.GetHashCode();
|
|
if (OriginalPrice != 0) hash ^= OriginalPrice.GetHashCode();
|
|
if (Discount != 0) hash ^= Discount.GetHashCode();
|
|
if (AppearCondType != 0) hash ^= AppearCondType.GetHashCode();
|
|
if (AppearCondParams.Length != 0) hash ^= AppearCondParams.GetHashCode();
|
|
if (PurchaseCondType != 0) hash ^= PurchaseCondType.GetHashCode();
|
|
if (PurchaseCondParams.Length != 0) hash ^= PurchaseCondParams.GetHashCode();
|
|
if (UpShelfTime.Length != 0) hash ^= UpShelfTime.GetHashCode();
|
|
if (DownShelfTime.Length != 0) hash ^= DownShelfTime.GetHashCode();
|
|
if (UnlockPurchaseTime.Length != 0) hash ^= UnlockPurchaseTime.GetHashCode();
|
|
if (DisplayMode != 0) hash ^= DisplayMode.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 (Desc.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(Desc);
|
|
}
|
|
if (ShopId != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteInt32(ShopId);
|
|
}
|
|
if (SaleNumber != 0) {
|
|
output.WriteRawTag(40);
|
|
output.WriteInt32(SaleNumber);
|
|
}
|
|
if (ItemId != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteInt32(ItemId);
|
|
}
|
|
if (ItemQuantity != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteInt32(ItemQuantity);
|
|
}
|
|
if (MaximumLimit != 0) {
|
|
output.WriteRawTag(64);
|
|
output.WriteInt32(MaximumLimit);
|
|
}
|
|
if (CurrencyItemId != 0) {
|
|
output.WriteRawTag(72);
|
|
output.WriteInt32(CurrencyItemId);
|
|
}
|
|
if (Price != 0) {
|
|
output.WriteRawTag(80);
|
|
output.WriteInt32(Price);
|
|
}
|
|
if (OriginalPrice != 0) {
|
|
output.WriteRawTag(88);
|
|
output.WriteInt32(OriginalPrice);
|
|
}
|
|
if (Discount != 0) {
|
|
output.WriteRawTag(96);
|
|
output.WriteInt32(Discount);
|
|
}
|
|
if (AppearCondType != 0) {
|
|
output.WriteRawTag(104);
|
|
output.WriteInt32(AppearCondType);
|
|
}
|
|
if (AppearCondParams.Length != 0) {
|
|
output.WriteRawTag(114);
|
|
output.WriteString(AppearCondParams);
|
|
}
|
|
if (PurchaseCondType != 0) {
|
|
output.WriteRawTag(120);
|
|
output.WriteInt32(PurchaseCondType);
|
|
}
|
|
if (PurchaseCondParams.Length != 0) {
|
|
output.WriteRawTag(130, 1);
|
|
output.WriteString(PurchaseCondParams);
|
|
}
|
|
if (UpShelfTime.Length != 0) {
|
|
output.WriteRawTag(138, 1);
|
|
output.WriteString(UpShelfTime);
|
|
}
|
|
if (DownShelfTime.Length != 0) {
|
|
output.WriteRawTag(146, 1);
|
|
output.WriteString(DownShelfTime);
|
|
}
|
|
if (UnlockPurchaseTime.Length != 0) {
|
|
output.WriteRawTag(154, 1);
|
|
output.WriteString(UnlockPurchaseTime);
|
|
}
|
|
if (DisplayMode != 0) {
|
|
output.WriteRawTag(160, 1);
|
|
output.WriteInt32(DisplayMode);
|
|
}
|
|
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 (Desc.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(Desc);
|
|
}
|
|
if (ShopId != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteInt32(ShopId);
|
|
}
|
|
if (SaleNumber != 0) {
|
|
output.WriteRawTag(40);
|
|
output.WriteInt32(SaleNumber);
|
|
}
|
|
if (ItemId != 0) {
|
|
output.WriteRawTag(48);
|
|
output.WriteInt32(ItemId);
|
|
}
|
|
if (ItemQuantity != 0) {
|
|
output.WriteRawTag(56);
|
|
output.WriteInt32(ItemQuantity);
|
|
}
|
|
if (MaximumLimit != 0) {
|
|
output.WriteRawTag(64);
|
|
output.WriteInt32(MaximumLimit);
|
|
}
|
|
if (CurrencyItemId != 0) {
|
|
output.WriteRawTag(72);
|
|
output.WriteInt32(CurrencyItemId);
|
|
}
|
|
if (Price != 0) {
|
|
output.WriteRawTag(80);
|
|
output.WriteInt32(Price);
|
|
}
|
|
if (OriginalPrice != 0) {
|
|
output.WriteRawTag(88);
|
|
output.WriteInt32(OriginalPrice);
|
|
}
|
|
if (Discount != 0) {
|
|
output.WriteRawTag(96);
|
|
output.WriteInt32(Discount);
|
|
}
|
|
if (AppearCondType != 0) {
|
|
output.WriteRawTag(104);
|
|
output.WriteInt32(AppearCondType);
|
|
}
|
|
if (AppearCondParams.Length != 0) {
|
|
output.WriteRawTag(114);
|
|
output.WriteString(AppearCondParams);
|
|
}
|
|
if (PurchaseCondType != 0) {
|
|
output.WriteRawTag(120);
|
|
output.WriteInt32(PurchaseCondType);
|
|
}
|
|
if (PurchaseCondParams.Length != 0) {
|
|
output.WriteRawTag(130, 1);
|
|
output.WriteString(PurchaseCondParams);
|
|
}
|
|
if (UpShelfTime.Length != 0) {
|
|
output.WriteRawTag(138, 1);
|
|
output.WriteString(UpShelfTime);
|
|
}
|
|
if (DownShelfTime.Length != 0) {
|
|
output.WriteRawTag(146, 1);
|
|
output.WriteString(DownShelfTime);
|
|
}
|
|
if (UnlockPurchaseTime.Length != 0) {
|
|
output.WriteRawTag(154, 1);
|
|
output.WriteString(UnlockPurchaseTime);
|
|
}
|
|
if (DisplayMode != 0) {
|
|
output.WriteRawTag(160, 1);
|
|
output.WriteInt32(DisplayMode);
|
|
}
|
|
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 (Desc.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc);
|
|
}
|
|
if (ShopId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ShopId);
|
|
}
|
|
if (SaleNumber != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SaleNumber);
|
|
}
|
|
if (ItemId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemId);
|
|
}
|
|
if (ItemQuantity != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ItemQuantity);
|
|
}
|
|
if (MaximumLimit != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaximumLimit);
|
|
}
|
|
if (CurrencyItemId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(CurrencyItemId);
|
|
}
|
|
if (Price != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Price);
|
|
}
|
|
if (OriginalPrice != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(OriginalPrice);
|
|
}
|
|
if (Discount != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Discount);
|
|
}
|
|
if (AppearCondType != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(AppearCondType);
|
|
}
|
|
if (AppearCondParams.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(AppearCondParams);
|
|
}
|
|
if (PurchaseCondType != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PurchaseCondType);
|
|
}
|
|
if (PurchaseCondParams.Length != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeStringSize(PurchaseCondParams);
|
|
}
|
|
if (UpShelfTime.Length != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeStringSize(UpShelfTime);
|
|
}
|
|
if (DownShelfTime.Length != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeStringSize(DownShelfTime);
|
|
}
|
|
if (UnlockPurchaseTime.Length != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeStringSize(UnlockPurchaseTime);
|
|
}
|
|
if (DisplayMode != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeInt32Size(DisplayMode);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(ResidentGoods other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Id != 0) {
|
|
Id = other.Id;
|
|
}
|
|
if (other.Name.Length != 0) {
|
|
Name = other.Name;
|
|
}
|
|
if (other.Desc.Length != 0) {
|
|
Desc = other.Desc;
|
|
}
|
|
if (other.ShopId != 0) {
|
|
ShopId = other.ShopId;
|
|
}
|
|
if (other.SaleNumber != 0) {
|
|
SaleNumber = other.SaleNumber;
|
|
}
|
|
if (other.ItemId != 0) {
|
|
ItemId = other.ItemId;
|
|
}
|
|
if (other.ItemQuantity != 0) {
|
|
ItemQuantity = other.ItemQuantity;
|
|
}
|
|
if (other.MaximumLimit != 0) {
|
|
MaximumLimit = other.MaximumLimit;
|
|
}
|
|
if (other.CurrencyItemId != 0) {
|
|
CurrencyItemId = other.CurrencyItemId;
|
|
}
|
|
if (other.Price != 0) {
|
|
Price = other.Price;
|
|
}
|
|
if (other.OriginalPrice != 0) {
|
|
OriginalPrice = other.OriginalPrice;
|
|
}
|
|
if (other.Discount != 0) {
|
|
Discount = other.Discount;
|
|
}
|
|
if (other.AppearCondType != 0) {
|
|
AppearCondType = other.AppearCondType;
|
|
}
|
|
if (other.AppearCondParams.Length != 0) {
|
|
AppearCondParams = other.AppearCondParams;
|
|
}
|
|
if (other.PurchaseCondType != 0) {
|
|
PurchaseCondType = other.PurchaseCondType;
|
|
}
|
|
if (other.PurchaseCondParams.Length != 0) {
|
|
PurchaseCondParams = other.PurchaseCondParams;
|
|
}
|
|
if (other.UpShelfTime.Length != 0) {
|
|
UpShelfTime = other.UpShelfTime;
|
|
}
|
|
if (other.DownShelfTime.Length != 0) {
|
|
DownShelfTime = other.DownShelfTime;
|
|
}
|
|
if (other.UnlockPurchaseTime.Length != 0) {
|
|
UnlockPurchaseTime = other.UnlockPurchaseTime;
|
|
}
|
|
if (other.DisplayMode != 0) {
|
|
DisplayMode = other.DisplayMode;
|
|
}
|
|
_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: {
|
|
Desc = input.ReadString();
|
|
break;
|
|
}
|
|
case 32: {
|
|
ShopId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 40: {
|
|
SaleNumber = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
ItemId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
ItemQuantity = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 64: {
|
|
MaximumLimit = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 72: {
|
|
CurrencyItemId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 80: {
|
|
Price = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 88: {
|
|
OriginalPrice = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 96: {
|
|
Discount = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 104: {
|
|
AppearCondType = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 114: {
|
|
AppearCondParams = input.ReadString();
|
|
break;
|
|
}
|
|
case 120: {
|
|
PurchaseCondType = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 130: {
|
|
PurchaseCondParams = input.ReadString();
|
|
break;
|
|
}
|
|
case 138: {
|
|
UpShelfTime = input.ReadString();
|
|
break;
|
|
}
|
|
case 146: {
|
|
DownShelfTime = input.ReadString();
|
|
break;
|
|
}
|
|
case 154: {
|
|
UnlockPurchaseTime = input.ReadString();
|
|
break;
|
|
}
|
|
case 160: {
|
|
DisplayMode = 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: {
|
|
Desc = input.ReadString();
|
|
break;
|
|
}
|
|
case 32: {
|
|
ShopId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 40: {
|
|
SaleNumber = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 48: {
|
|
ItemId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 56: {
|
|
ItemQuantity = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 64: {
|
|
MaximumLimit = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 72: {
|
|
CurrencyItemId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 80: {
|
|
Price = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 88: {
|
|
OriginalPrice = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 96: {
|
|
Discount = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 104: {
|
|
AppearCondType = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 114: {
|
|
AppearCondParams = input.ReadString();
|
|
break;
|
|
}
|
|
case 120: {
|
|
PurchaseCondType = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 130: {
|
|
PurchaseCondParams = input.ReadString();
|
|
break;
|
|
}
|
|
case 138: {
|
|
UpShelfTime = input.ReadString();
|
|
break;
|
|
}
|
|
case 146: {
|
|
DownShelfTime = input.ReadString();
|
|
break;
|
|
}
|
|
case 154: {
|
|
UnlockPurchaseTime = input.ReadString();
|
|
break;
|
|
}
|
|
case 160: {
|
|
DisplayMode = input.ReadInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|