// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: resident_shop_purchase.proto // #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 { /// Holder for reflection information generated from resident_shop_purchase.proto public static partial class ResidentShopPurchaseReflection { #region Descriptor /// File descriptor for resident_shop_purchase.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static ResidentShopPurchaseReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChxyZXNpZGVudF9zaG9wX3B1cmNoYXNlLnByb3RvEgVwcm90bxoMcHVibGlj", "LnByb3RvInUKF1Jlc2lkZW50U2hvcFB1cmNoYXNlUmVxEg4KBlNob3BJZBgB", "IAEoDRITCgtSZWZyZXNoVGltZRgCIAEoAxIPCgdHb29kc0lkGAMgASgNEg4K", "Bk51bWJlchgEIAEoDRIUCgtOZXh0UGFja2FnZRj/DyABKAwiogEKGFJlc2lk", "ZW50U2hvcFB1cmNoYXNlUmVzcBIRCglJc1JlZnJlc2gYASABKAgSIQoEU2hv", "cBgCIAEoCzITLnByb3RvLlJlc2lkZW50U2hvcBIXCg9QdXJjaGFzZWROdW1i", "ZXIYAyABKA0SIQoGQ2hhbmdlGAQgASgLMhEucHJvdG8uQ2hhbmdlSW5mbxIU", "CgtOZXh0UGFja2FnZRj/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.ResidentShopPurchaseReq), global::Proto.ResidentShopPurchaseReq.Parser, new[]{ "ShopId", "RefreshTime", "GoodsId", "Number", "NextPackage" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Proto.ResidentShopPurchaseResp), global::Proto.ResidentShopPurchaseResp.Parser, new[]{ "IsRefresh", "Shop", "PurchasedNumber", "Change", "NextPackage" }, null, null, null, null) })); } #endregion } #region Messages [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ResidentShopPurchaseReq : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResidentShopPurchaseReq()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Proto.ResidentShopPurchaseReflection.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 ResidentShopPurchaseReq() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ResidentShopPurchaseReq(ResidentShopPurchaseReq other) : this() { shopId_ = other.shopId_; refreshTime_ = other.refreshTime_; goodsId_ = other.goodsId_; number_ = other.number_; nextPackage_ = other.nextPackage_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ResidentShopPurchaseReq Clone() { return new ResidentShopPurchaseReq(this); } /// Field number for the "ShopId" field. public const int ShopIdFieldNumber = 1; private uint shopId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint ShopId { get { return shopId_; } set { shopId_ = value; } } /// Field number for the "RefreshTime" field. public const int RefreshTimeFieldNumber = 2; private long refreshTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long RefreshTime { get { return refreshTime_; } set { refreshTime_ = value; } } /// Field number for the "GoodsId" field. public const int GoodsIdFieldNumber = 3; private uint goodsId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint GoodsId { get { return goodsId_; } set { goodsId_ = value; } } /// Field number for the "Number" field. public const int NumberFieldNumber = 4; private uint number_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint Number { get { return number_; } set { number_ = value; } } /// Field number for the "NextPackage" field. 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 ResidentShopPurchaseReq); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ResidentShopPurchaseReq other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (ShopId != other.ShopId) return false; if (RefreshTime != other.RefreshTime) return false; if (GoodsId != other.GoodsId) return false; if (Number != other.Number) 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 (ShopId != 0) hash ^= ShopId.GetHashCode(); if (RefreshTime != 0L) hash ^= RefreshTime.GetHashCode(); if (GoodsId != 0) hash ^= GoodsId.GetHashCode(); if (Number != 0) hash ^= Number.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 (ShopId != 0) { output.WriteRawTag(8); output.WriteUInt32(ShopId); } if (RefreshTime != 0L) { output.WriteRawTag(16); output.WriteInt64(RefreshTime); } if (GoodsId != 0) { output.WriteRawTag(24); output.WriteUInt32(GoodsId); } if (Number != 0) { output.WriteRawTag(32); output.WriteUInt32(Number); } 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 (ShopId != 0) { output.WriteRawTag(8); output.WriteUInt32(ShopId); } if (RefreshTime != 0L) { output.WriteRawTag(16); output.WriteInt64(RefreshTime); } if (GoodsId != 0) { output.WriteRawTag(24); output.WriteUInt32(GoodsId); } if (Number != 0) { output.WriteRawTag(32); output.WriteUInt32(Number); } 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 (ShopId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ShopId); } if (RefreshTime != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(RefreshTime); } if (GoodsId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(GoodsId); } if (Number != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Number); } 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(ResidentShopPurchaseReq other) { if (other == null) { return; } if (other.ShopId != 0) { ShopId = other.ShopId; } if (other.RefreshTime != 0L) { RefreshTime = other.RefreshTime; } if (other.GoodsId != 0) { GoodsId = other.GoodsId; } if (other.Number != 0) { Number = other.Number; } 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 8: { ShopId = input.ReadUInt32(); break; } case 16: { RefreshTime = input.ReadInt64(); break; } case 24: { GoodsId = input.ReadUInt32(); break; } case 32: { Number = 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 8: { ShopId = input.ReadUInt32(); break; } case 16: { RefreshTime = input.ReadInt64(); break; } case 24: { GoodsId = input.ReadUInt32(); break; } case 32: { Number = input.ReadUInt32(); break; } case 16378: { NextPackage = input.ReadBytes(); break; } } } } #endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class ResidentShopPurchaseResp : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResidentShopPurchaseResp()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Proto.ResidentShopPurchaseReflection.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 ResidentShopPurchaseResp() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ResidentShopPurchaseResp(ResidentShopPurchaseResp other) : this() { isRefresh_ = other.isRefresh_; shop_ = other.shop_ != null ? other.shop_.Clone() : null; purchasedNumber_ = other.purchasedNumber_; 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 ResidentShopPurchaseResp Clone() { return new ResidentShopPurchaseResp(this); } /// Field number for the "IsRefresh" field. public const int IsRefreshFieldNumber = 1; private bool isRefresh_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsRefresh { get { return isRefresh_; } set { isRefresh_ = value; } } /// Field number for the "Shop" field. public const int ShopFieldNumber = 2; private global::Proto.ResidentShop shop_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Proto.ResidentShop Shop { get { return shop_; } set { shop_ = value; } } /// Field number for the "PurchasedNumber" field. public const int PurchasedNumberFieldNumber = 3; private uint purchasedNumber_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public uint PurchasedNumber { get { return purchasedNumber_; } set { purchasedNumber_ = value; } } /// Field number for the "Change" field. public const int ChangeFieldNumber = 4; 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; } } /// Field number for the "NextPackage" field. 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 ResidentShopPurchaseResp); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ResidentShopPurchaseResp other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IsRefresh != other.IsRefresh) return false; if (!object.Equals(Shop, other.Shop)) return false; if (PurchasedNumber != other.PurchasedNumber) 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 (IsRefresh != false) hash ^= IsRefresh.GetHashCode(); if (shop_ != null) hash ^= Shop.GetHashCode(); if (PurchasedNumber != 0) hash ^= PurchasedNumber.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 (IsRefresh != false) { output.WriteRawTag(8); output.WriteBool(IsRefresh); } if (shop_ != null) { output.WriteRawTag(18); output.WriteMessage(Shop); } if (PurchasedNumber != 0) { output.WriteRawTag(24); output.WriteUInt32(PurchasedNumber); } if (change_ != null) { output.WriteRawTag(34); 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 (IsRefresh != false) { output.WriteRawTag(8); output.WriteBool(IsRefresh); } if (shop_ != null) { output.WriteRawTag(18); output.WriteMessage(Shop); } if (PurchasedNumber != 0) { output.WriteRawTag(24); output.WriteUInt32(PurchasedNumber); } if (change_ != null) { output.WriteRawTag(34); 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 (IsRefresh != false) { size += 1 + 1; } if (shop_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Shop); } if (PurchasedNumber != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(PurchasedNumber); } 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(ResidentShopPurchaseResp other) { if (other == null) { return; } if (other.IsRefresh != false) { IsRefresh = other.IsRefresh; } if (other.shop_ != null) { if (shop_ == null) { Shop = new global::Proto.ResidentShop(); } Shop.MergeFrom(other.Shop); } if (other.PurchasedNumber != 0) { PurchasedNumber = other.PurchasedNumber; } 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 8: { IsRefresh = input.ReadBool(); break; } case 18: { if (shop_ == null) { Shop = new global::Proto.ResidentShop(); } input.ReadMessage(Shop); break; } case 24: { PurchasedNumber = input.ReadUInt32(); break; } case 34: { 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 8: { IsRefresh = input.ReadBool(); break; } case 18: { if (shop_ == null) { Shop = new global::Proto.ResidentShop(); } input.ReadMessage(Shop); break; } case 24: { PurchasedNumber = input.ReadUInt32(); break; } case 34: { if (change_ == null) { Change = new global::Proto.ChangeInfo(); } input.ReadMessage(Change); break; } case 16378: { NextPackage = input.ReadBytes(); break; } } } } #endif } #endregion } #endregion Designer generated code