show.pb.go 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. // message结构的属性名请使用 驼峰小写字母开始
  2. // Code generated by protoc-gen-go. DO NOT EDIT.
  3. // versions:
  4. // protoc-gen-go v1.36.8
  5. // protoc v6.31.1
  6. // source: show.proto
  7. package pb
  8. import (
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // 主城外观推送
  22. type MainCityShowPush struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. // 当前选择主城外观ID D-地图-主城外观表主城外观ID
  25. MainCityShowID int32 `protobuf:"varint,1,opt,name=MainCityShowID,proto3" json:"MainCityShowID,omitempty"`
  26. // 已激活的主城外观列表
  27. List []*MainCityShow `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
  28. unknownFields protoimpl.UnknownFields
  29. sizeCache protoimpl.SizeCache
  30. }
  31. func (x *MainCityShowPush) Reset() {
  32. *x = MainCityShowPush{}
  33. mi := &file_show_proto_msgTypes[0]
  34. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  35. ms.StoreMessageInfo(mi)
  36. }
  37. func (x *MainCityShowPush) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*MainCityShowPush) ProtoMessage() {}
  41. func (x *MainCityShowPush) ProtoReflect() protoreflect.Message {
  42. mi := &file_show_proto_msgTypes[0]
  43. if x != nil {
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. if ms.LoadMessageInfo() == nil {
  46. ms.StoreMessageInfo(mi)
  47. }
  48. return ms
  49. }
  50. return mi.MessageOf(x)
  51. }
  52. // Deprecated: Use MainCityShowPush.ProtoReflect.Descriptor instead.
  53. func (*MainCityShowPush) Descriptor() ([]byte, []int) {
  54. return file_show_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *MainCityShowPush) GetMainCityShowID() int32 {
  57. if x != nil {
  58. return x.MainCityShowID
  59. }
  60. return 0
  61. }
  62. func (x *MainCityShowPush) GetList() []*MainCityShow {
  63. if x != nil {
  64. return x.List
  65. }
  66. return nil
  67. }
  68. // 主城外观变更推送
  69. type MainCityShowChangePush struct {
  70. state protoimpl.MessageState `protogen:"open.v1"`
  71. // 过期主城外观ID列表
  72. DelShowIDs []int32 `protobuf:"varint,1,rep,packed,name=delShowIDs,proto3" json:"delShowIDs,omitempty"`
  73. // 变更主城外观列表
  74. List []*MainCityShow `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
  75. unknownFields protoimpl.UnknownFields
  76. sizeCache protoimpl.SizeCache
  77. }
  78. func (x *MainCityShowChangePush) Reset() {
  79. *x = MainCityShowChangePush{}
  80. mi := &file_show_proto_msgTypes[1]
  81. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  82. ms.StoreMessageInfo(mi)
  83. }
  84. func (x *MainCityShowChangePush) String() string {
  85. return protoimpl.X.MessageStringOf(x)
  86. }
  87. func (*MainCityShowChangePush) ProtoMessage() {}
  88. func (x *MainCityShowChangePush) ProtoReflect() protoreflect.Message {
  89. mi := &file_show_proto_msgTypes[1]
  90. if x != nil {
  91. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  92. if ms.LoadMessageInfo() == nil {
  93. ms.StoreMessageInfo(mi)
  94. }
  95. return ms
  96. }
  97. return mi.MessageOf(x)
  98. }
  99. // Deprecated: Use MainCityShowChangePush.ProtoReflect.Descriptor instead.
  100. func (*MainCityShowChangePush) Descriptor() ([]byte, []int) {
  101. return file_show_proto_rawDescGZIP(), []int{1}
  102. }
  103. func (x *MainCityShowChangePush) GetDelShowIDs() []int32 {
  104. if x != nil {
  105. return x.DelShowIDs
  106. }
  107. return nil
  108. }
  109. func (x *MainCityShowChangePush) GetList() []*MainCityShow {
  110. if x != nil {
  111. return x.List
  112. }
  113. return nil
  114. }
  115. // 主城外观
  116. type MainCityShow struct {
  117. state protoimpl.MessageState `protogen:"open.v1"`
  118. // 主城外观ID
  119. ShowID int32 `protobuf:"varint,1,opt,name=showID,proto3" json:"showID,omitempty"`
  120. // 过期时间戳 单位秒
  121. ExpireTime int64 `protobuf:"varint,2,opt,name=expireTime,proto3" json:"expireTime,omitempty"`
  122. // 是否已查看
  123. IsViewed bool `protobuf:"varint,3,opt,name=isViewed,proto3" json:"isViewed,omitempty"`
  124. unknownFields protoimpl.UnknownFields
  125. sizeCache protoimpl.SizeCache
  126. }
  127. func (x *MainCityShow) Reset() {
  128. *x = MainCityShow{}
  129. mi := &file_show_proto_msgTypes[2]
  130. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  131. ms.StoreMessageInfo(mi)
  132. }
  133. func (x *MainCityShow) String() string {
  134. return protoimpl.X.MessageStringOf(x)
  135. }
  136. func (*MainCityShow) ProtoMessage() {}
  137. func (x *MainCityShow) ProtoReflect() protoreflect.Message {
  138. mi := &file_show_proto_msgTypes[2]
  139. if x != nil {
  140. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  141. if ms.LoadMessageInfo() == nil {
  142. ms.StoreMessageInfo(mi)
  143. }
  144. return ms
  145. }
  146. return mi.MessageOf(x)
  147. }
  148. // Deprecated: Use MainCityShow.ProtoReflect.Descriptor instead.
  149. func (*MainCityShow) Descriptor() ([]byte, []int) {
  150. return file_show_proto_rawDescGZIP(), []int{2}
  151. }
  152. func (x *MainCityShow) GetShowID() int32 {
  153. if x != nil {
  154. return x.ShowID
  155. }
  156. return 0
  157. }
  158. func (x *MainCityShow) GetExpireTime() int64 {
  159. if x != nil {
  160. return x.ExpireTime
  161. }
  162. return 0
  163. }
  164. func (x *MainCityShow) GetIsViewed() bool {
  165. if x != nil {
  166. return x.IsViewed
  167. }
  168. return false
  169. }
  170. var File_show_proto protoreflect.FileDescriptor
  171. const file_show_proto_rawDesc = "" +
  172. "\n" +
  173. "\n" +
  174. "show.proto\x12\x02pb\"`\n" +
  175. "\x10MainCityShowPush\x12&\n" +
  176. "\x0eMainCityShowID\x18\x01 \x01(\x05R\x0eMainCityShowID\x12$\n" +
  177. "\x04list\x18\x02 \x03(\v2\x10.pb.MainCityShowR\x04list\"^\n" +
  178. "\x16MainCityShowChangePush\x12\x1e\n" +
  179. "\n" +
  180. "delShowIDs\x18\x01 \x03(\x05R\n" +
  181. "delShowIDs\x12$\n" +
  182. "\x04list\x18\x02 \x03(\v2\x10.pb.MainCityShowR\x04list\"b\n" +
  183. "\fMainCityShow\x12\x16\n" +
  184. "\x06showID\x18\x01 \x01(\x05R\x06showID\x12\x1e\n" +
  185. "\n" +
  186. "expireTime\x18\x02 \x01(\x03R\n" +
  187. "expireTime\x12\x1a\n" +
  188. "\bisViewed\x18\x03 \x01(\bR\bisViewedB\x05Z\x03/pbb\x06proto3"
  189. var (
  190. file_show_proto_rawDescOnce sync.Once
  191. file_show_proto_rawDescData []byte
  192. )
  193. func file_show_proto_rawDescGZIP() []byte {
  194. file_show_proto_rawDescOnce.Do(func() {
  195. file_show_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_show_proto_rawDesc), len(file_show_proto_rawDesc)))
  196. })
  197. return file_show_proto_rawDescData
  198. }
  199. var file_show_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  200. var file_show_proto_goTypes = []any{
  201. (*MainCityShowPush)(nil), // 0: pb.MainCityShowPush
  202. (*MainCityShowChangePush)(nil), // 1: pb.MainCityShowChangePush
  203. (*MainCityShow)(nil), // 2: pb.MainCityShow
  204. }
  205. var file_show_proto_depIdxs = []int32{
  206. 2, // 0: pb.MainCityShowPush.list:type_name -> pb.MainCityShow
  207. 2, // 1: pb.MainCityShowChangePush.list:type_name -> pb.MainCityShow
  208. 2, // [2:2] is the sub-list for method output_type
  209. 2, // [2:2] is the sub-list for method input_type
  210. 2, // [2:2] is the sub-list for extension type_name
  211. 2, // [2:2] is the sub-list for extension extendee
  212. 0, // [0:2] is the sub-list for field type_name
  213. }
  214. func init() { file_show_proto_init() }
  215. func file_show_proto_init() {
  216. if File_show_proto != nil {
  217. return
  218. }
  219. type x struct{}
  220. out := protoimpl.TypeBuilder{
  221. File: protoimpl.DescBuilder{
  222. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  223. RawDescriptor: unsafe.Slice(unsafe.StringData(file_show_proto_rawDesc), len(file_show_proto_rawDesc)),
  224. NumEnums: 0,
  225. NumMessages: 3,
  226. NumExtensions: 0,
  227. NumServices: 0,
  228. },
  229. GoTypes: file_show_proto_goTypes,
  230. DependencyIndexes: file_show_proto_depIdxs,
  231. MessageInfos: file_show_proto_msgTypes,
  232. }.Build()
  233. File_show_proto = out.File
  234. file_show_proto_goTypes = nil
  235. file_show_proto_depIdxs = nil
  236. }