b.pb.go 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.26.0
  4. // protoc v3.20.0
  5. // source: proto/proto_b/b.proto
  6. package pb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type People struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  24. Page *PageInfo `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
  25. }
  26. func (x *People) Reset() {
  27. *x = People{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_proto_proto_b_b_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *People) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*People) ProtoMessage() {}
  38. func (x *People) ProtoReflect() protoreflect.Message {
  39. mi := &file_proto_proto_b_b_proto_msgTypes[0]
  40. if protoimpl.UnsafeEnabled && x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use People.ProtoReflect.Descriptor instead.
  50. func (*People) Descriptor() ([]byte, []int) {
  51. return file_proto_proto_b_b_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *People) GetName() string {
  54. if x != nil {
  55. return x.Name
  56. }
  57. return ""
  58. }
  59. func (x *People) GetPage() *PageInfo {
  60. if x != nil {
  61. return x.Page
  62. }
  63. return nil
  64. }
  65. type PageInfo struct {
  66. state protoimpl.MessageState
  67. sizeCache protoimpl.SizeCache
  68. unknownFields protoimpl.UnknownFields
  69. TotalCount uint64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // 总数
  70. TotalPage uint64 `protobuf:"varint,2,opt,name=total_page,json=totalPage,proto3" json:"total_page,omitempty"` // 总页码
  71. CurrentPage uint64 `protobuf:"varint,3,opt,name=current_page,json=currentPage,proto3" json:"current_page,omitempty"` // 当前页码
  72. }
  73. func (x *PageInfo) Reset() {
  74. *x = PageInfo{}
  75. if protoimpl.UnsafeEnabled {
  76. mi := &file_proto_proto_b_b_proto_msgTypes[1]
  77. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  78. ms.StoreMessageInfo(mi)
  79. }
  80. }
  81. func (x *PageInfo) String() string {
  82. return protoimpl.X.MessageStringOf(x)
  83. }
  84. func (*PageInfo) ProtoMessage() {}
  85. func (x *PageInfo) ProtoReflect() protoreflect.Message {
  86. mi := &file_proto_proto_b_b_proto_msgTypes[1]
  87. if protoimpl.UnsafeEnabled && x != nil {
  88. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  89. if ms.LoadMessageInfo() == nil {
  90. ms.StoreMessageInfo(mi)
  91. }
  92. return ms
  93. }
  94. return mi.MessageOf(x)
  95. }
  96. // Deprecated: Use PageInfo.ProtoReflect.Descriptor instead.
  97. func (*PageInfo) Descriptor() ([]byte, []int) {
  98. return file_proto_proto_b_b_proto_rawDescGZIP(), []int{1}
  99. }
  100. func (x *PageInfo) GetTotalCount() uint64 {
  101. if x != nil {
  102. return x.TotalCount
  103. }
  104. return 0
  105. }
  106. func (x *PageInfo) GetTotalPage() uint64 {
  107. if x != nil {
  108. return x.TotalPage
  109. }
  110. return 0
  111. }
  112. func (x *PageInfo) GetCurrentPage() uint64 {
  113. if x != nil {
  114. return x.CurrentPage
  115. }
  116. return 0
  117. }
  118. var File_proto_proto_b_b_proto protoreflect.FileDescriptor
  119. var file_proto_proto_b_b_proto_rawDesc = []byte{
  120. 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x62, 0x2f,
  121. 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x01, 0x62, 0x22, 0x3d, 0x0a, 0x06, 0x50, 0x65,
  122. 0x6f, 0x70, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
  123. 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65,
  124. 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x62, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x49,
  125. 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x22, 0x6d, 0x0a, 0x08, 0x50, 0x61, 0x67,
  126. 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63,
  127. 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61,
  128. 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f,
  129. 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x6f, 0x74, 0x61,
  130. 0x6c, 0x50, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74,
  131. 0x5f, 0x70, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x63, 0x75, 0x72,
  132. 0x72, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x67, 0x65, 0x42, 0x12, 0x5a, 0x10, 0x70, 0x72, 0x6f, 0x74,
  133. 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x62, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
  134. 0x6f, 0x74, 0x6f, 0x33,
  135. }
  136. var (
  137. file_proto_proto_b_b_proto_rawDescOnce sync.Once
  138. file_proto_proto_b_b_proto_rawDescData = file_proto_proto_b_b_proto_rawDesc
  139. )
  140. func file_proto_proto_b_b_proto_rawDescGZIP() []byte {
  141. file_proto_proto_b_b_proto_rawDescOnce.Do(func() {
  142. file_proto_proto_b_b_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_proto_b_b_proto_rawDescData)
  143. })
  144. return file_proto_proto_b_b_proto_rawDescData
  145. }
  146. var file_proto_proto_b_b_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  147. var file_proto_proto_b_b_proto_goTypes = []interface{}{
  148. (*People)(nil), // 0: b.People
  149. (*PageInfo)(nil), // 1: b.PageInfo
  150. }
  151. var file_proto_proto_b_b_proto_depIdxs = []int32{
  152. 1, // 0: b.People.page:type_name -> b.PageInfo
  153. 1, // [1:1] is the sub-list for method output_type
  154. 1, // [1:1] is the sub-list for method input_type
  155. 1, // [1:1] is the sub-list for extension type_name
  156. 1, // [1:1] is the sub-list for extension extendee
  157. 0, // [0:1] is the sub-list for field type_name
  158. }
  159. func init() { file_proto_proto_b_b_proto_init() }
  160. func file_proto_proto_b_b_proto_init() {
  161. if File_proto_proto_b_b_proto != nil {
  162. return
  163. }
  164. if !protoimpl.UnsafeEnabled {
  165. file_proto_proto_b_b_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  166. switch v := v.(*People); i {
  167. case 0:
  168. return &v.state
  169. case 1:
  170. return &v.sizeCache
  171. case 2:
  172. return &v.unknownFields
  173. default:
  174. return nil
  175. }
  176. }
  177. file_proto_proto_b_b_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  178. switch v := v.(*PageInfo); i {
  179. case 0:
  180. return &v.state
  181. case 1:
  182. return &v.sizeCache
  183. case 2:
  184. return &v.unknownFields
  185. default:
  186. return nil
  187. }
  188. }
  189. }
  190. type x struct{}
  191. out := protoimpl.TypeBuilder{
  192. File: protoimpl.DescBuilder{
  193. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  194. RawDescriptor: file_proto_proto_b_b_proto_rawDesc,
  195. NumEnums: 0,
  196. NumMessages: 2,
  197. NumExtensions: 0,
  198. NumServices: 0,
  199. },
  200. GoTypes: file_proto_proto_b_b_proto_goTypes,
  201. DependencyIndexes: file_proto_proto_b_b_proto_depIdxs,
  202. MessageInfos: file_proto_proto_b_b_proto_msgTypes,
  203. }.Build()
  204. File_proto_proto_b_b_proto = out.File
  205. file_proto_proto_b_b_proto_rawDesc = nil
  206. file_proto_proto_b_b_proto_goTypes = nil
  207. file_proto_proto_b_b_proto_depIdxs = nil
  208. }