a.pb.go 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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_a/a.proto
  6. package pb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. proto_b "proto/proto_b"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type ListBookResponse struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Books []*Book `protobuf:"bytes,1,rep,name=books,proto3" json:"books,omitempty"`
  25. Page *proto_b.PageInfo `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
  26. }
  27. func (x *ListBookResponse) Reset() {
  28. *x = ListBookResponse{}
  29. if protoimpl.UnsafeEnabled {
  30. mi := &file_proto_proto_a_a_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. }
  35. func (x *ListBookResponse) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*ListBookResponse) ProtoMessage() {}
  39. func (x *ListBookResponse) ProtoReflect() protoreflect.Message {
  40. mi := &file_proto_proto_a_a_proto_msgTypes[0]
  41. if protoimpl.UnsafeEnabled && x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use ListBookResponse.ProtoReflect.Descriptor instead.
  51. func (*ListBookResponse) Descriptor() ([]byte, []int) {
  52. return file_proto_proto_a_a_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *ListBookResponse) GetBooks() []*Book {
  55. if x != nil {
  56. return x.Books
  57. }
  58. return nil
  59. }
  60. func (x *ListBookResponse) GetPage() *proto_b.PageInfo {
  61. if x != nil {
  62. return x.Page
  63. }
  64. return nil
  65. }
  66. type Book struct {
  67. state protoimpl.MessageState
  68. sizeCache protoimpl.SizeCache
  69. unknownFields protoimpl.UnknownFields
  70. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  71. Price string `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"`
  72. }
  73. func (x *Book) Reset() {
  74. *x = Book{}
  75. if protoimpl.UnsafeEnabled {
  76. mi := &file_proto_proto_a_a_proto_msgTypes[1]
  77. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  78. ms.StoreMessageInfo(mi)
  79. }
  80. }
  81. func (x *Book) String() string {
  82. return protoimpl.X.MessageStringOf(x)
  83. }
  84. func (*Book) ProtoMessage() {}
  85. func (x *Book) ProtoReflect() protoreflect.Message {
  86. mi := &file_proto_proto_a_a_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 Book.ProtoReflect.Descriptor instead.
  97. func (*Book) Descriptor() ([]byte, []int) {
  98. return file_proto_proto_a_a_proto_rawDescGZIP(), []int{1}
  99. }
  100. func (x *Book) GetName() string {
  101. if x != nil {
  102. return x.Name
  103. }
  104. return ""
  105. }
  106. func (x *Book) GetPrice() string {
  107. if x != nil {
  108. return x.Price
  109. }
  110. return ""
  111. }
  112. var File_proto_proto_a_a_proto protoreflect.FileDescriptor
  113. var file_proto_proto_a_a_proto_rawDesc = []byte{
  114. 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x61, 0x2f,
  115. 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x01, 0x61, 0x1a, 0x15, 0x70, 0x72, 0x6f, 0x74,
  116. 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x62, 0x2f, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  117. 0x6f, 0x22, 0x52, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x73,
  118. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x05, 0x62, 0x6f, 0x6f, 0x6b, 0x73, 0x18, 0x01,
  119. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x61, 0x2e, 0x42, 0x6f, 0x6f, 0x6b, 0x52, 0x05, 0x62,
  120. 0x6f, 0x6f, 0x6b, 0x73, 0x12, 0x1f, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01,
  121. 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x62, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52,
  122. 0x04, 0x70, 0x61, 0x67, 0x65, 0x22, 0x30, 0x0a, 0x04, 0x42, 0x6f, 0x6f, 0x6b, 0x12, 0x12, 0x0a,
  123. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
  124. 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  125. 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x42, 0x12, 0x5a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  126. 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x61, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
  127. 0x74, 0x6f, 0x33,
  128. }
  129. var (
  130. file_proto_proto_a_a_proto_rawDescOnce sync.Once
  131. file_proto_proto_a_a_proto_rawDescData = file_proto_proto_a_a_proto_rawDesc
  132. )
  133. func file_proto_proto_a_a_proto_rawDescGZIP() []byte {
  134. file_proto_proto_a_a_proto_rawDescOnce.Do(func() {
  135. file_proto_proto_a_a_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_proto_a_a_proto_rawDescData)
  136. })
  137. return file_proto_proto_a_a_proto_rawDescData
  138. }
  139. var file_proto_proto_a_a_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  140. var file_proto_proto_a_a_proto_goTypes = []interface{}{
  141. (*ListBookResponse)(nil), // 0: a.ListBookResponse
  142. (*Book)(nil), // 1: a.Book
  143. (*proto_b.PageInfo)(nil), // 2: b.PageInfo
  144. }
  145. var file_proto_proto_a_a_proto_depIdxs = []int32{
  146. 1, // 0: a.ListBookResponse.books:type_name -> a.Book
  147. 2, // 1: a.ListBookResponse.page:type_name -> b.PageInfo
  148. 2, // [2:2] is the sub-list for method output_type
  149. 2, // [2:2] is the sub-list for method input_type
  150. 2, // [2:2] is the sub-list for extension type_name
  151. 2, // [2:2] is the sub-list for extension extendee
  152. 0, // [0:2] is the sub-list for field type_name
  153. }
  154. func init() { file_proto_proto_a_a_proto_init() }
  155. func file_proto_proto_a_a_proto_init() {
  156. if File_proto_proto_a_a_proto != nil {
  157. return
  158. }
  159. if !protoimpl.UnsafeEnabled {
  160. file_proto_proto_a_a_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  161. switch v := v.(*ListBookResponse); i {
  162. case 0:
  163. return &v.state
  164. case 1:
  165. return &v.sizeCache
  166. case 2:
  167. return &v.unknownFields
  168. default:
  169. return nil
  170. }
  171. }
  172. file_proto_proto_a_a_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  173. switch v := v.(*Book); i {
  174. case 0:
  175. return &v.state
  176. case 1:
  177. return &v.sizeCache
  178. case 2:
  179. return &v.unknownFields
  180. default:
  181. return nil
  182. }
  183. }
  184. }
  185. type x struct{}
  186. out := protoimpl.TypeBuilder{
  187. File: protoimpl.DescBuilder{
  188. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  189. RawDescriptor: file_proto_proto_a_a_proto_rawDesc,
  190. NumEnums: 0,
  191. NumMessages: 2,
  192. NumExtensions: 0,
  193. NumServices: 0,
  194. },
  195. GoTypes: file_proto_proto_a_a_proto_goTypes,
  196. DependencyIndexes: file_proto_proto_a_a_proto_depIdxs,
  197. MessageInfos: file_proto_proto_a_a_proto_msgTypes,
  198. }.Build()
  199. File_proto_proto_a_a_proto = out.File
  200. file_proto_proto_a_a_proto_rawDesc = nil
  201. file_proto_proto_a_a_proto_goTypes = nil
  202. file_proto_proto_a_a_proto_depIdxs = nil
  203. }