order.pb.go 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.0
  4. // protoc v5.26.1
  5. // source: order.proto
  6. package prod
  7. import (
  8. _ "google.golang.org/genproto/googleapis/api/annotations"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  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 OrderRequest struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. ProdMain *ProdMain `protobuf:"bytes,1,opt,name=prod_main,json=prodMain,proto3" json:"prod_main,omitempty"`
  25. }
  26. func (x *OrderRequest) Reset() {
  27. *x = OrderRequest{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_order_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *OrderRequest) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*OrderRequest) ProtoMessage() {}
  38. func (x *OrderRequest) ProtoReflect() protoreflect.Message {
  39. mi := &file_order_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 OrderRequest.ProtoReflect.Descriptor instead.
  50. func (*OrderRequest) Descriptor() ([]byte, []int) {
  51. return file_order_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *OrderRequest) GetProdMain() *ProdMain {
  54. if x != nil {
  55. return x.ProdMain
  56. }
  57. return nil
  58. }
  59. type OrderResponse struct {
  60. state protoimpl.MessageState
  61. sizeCache protoimpl.SizeCache
  62. unknownFields protoimpl.UnknownFields
  63. Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
  64. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  65. }
  66. func (x *OrderResponse) Reset() {
  67. *x = OrderResponse{}
  68. if protoimpl.UnsafeEnabled {
  69. mi := &file_order_proto_msgTypes[1]
  70. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  71. ms.StoreMessageInfo(mi)
  72. }
  73. }
  74. func (x *OrderResponse) String() string {
  75. return protoimpl.X.MessageStringOf(x)
  76. }
  77. func (*OrderResponse) ProtoMessage() {}
  78. func (x *OrderResponse) ProtoReflect() protoreflect.Message {
  79. mi := &file_order_proto_msgTypes[1]
  80. if protoimpl.UnsafeEnabled && x != nil {
  81. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  82. if ms.LoadMessageInfo() == nil {
  83. ms.StoreMessageInfo(mi)
  84. }
  85. return ms
  86. }
  87. return mi.MessageOf(x)
  88. }
  89. // Deprecated: Use OrderResponse.ProtoReflect.Descriptor instead.
  90. func (*OrderResponse) Descriptor() ([]byte, []int) {
  91. return file_order_proto_rawDescGZIP(), []int{1}
  92. }
  93. func (x *OrderResponse) GetStatus() string {
  94. if x != nil {
  95. return x.Status
  96. }
  97. return ""
  98. }
  99. func (x *OrderResponse) GetMessage() string {
  100. if x != nil {
  101. return x.Message
  102. }
  103. return ""
  104. }
  105. var File_order_proto protoreflect.FileDescriptor
  106. var file_order_proto_rawDesc = []byte{
  107. 0x0a, 0x0b, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x73,
  108. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
  109. 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
  110. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2e, 0x70, 0x72,
  111. 0x6f, 0x74, 0x6f, 0x22, 0x3f, 0x0a, 0x0c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
  112. 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x64, 0x5f, 0x6d, 0x61, 0x69, 0x6e,
  113. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
  114. 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x4d, 0x61, 0x69, 0x6e, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x64,
  115. 0x4d, 0x61, 0x69, 0x6e, 0x22, 0x41, 0x0a, 0x0d, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73,
  116. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18,
  117. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a,
  118. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
  119. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x6a, 0x0a, 0x0c, 0x4f, 0x72, 0x64, 0x65, 0x72,
  120. 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5a, 0x0a, 0x08, 0x4e, 0x65, 0x77, 0x4f, 0x72,
  121. 0x64, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x4f,
  122. 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x73, 0x65,
  123. 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70,
  124. 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x3a, 0x09, 0x70, 0x72,
  125. 0x6f, 0x64, 0x5f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x0a, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x72, 0x64,
  126. 0x65, 0x72, 0x73, 0x42, 0x07, 0x5a, 0x05, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x62, 0x06, 0x70, 0x72,
  127. 0x6f, 0x74, 0x6f, 0x33,
  128. }
  129. var (
  130. file_order_proto_rawDescOnce sync.Once
  131. file_order_proto_rawDescData = file_order_proto_rawDesc
  132. )
  133. func file_order_proto_rawDescGZIP() []byte {
  134. file_order_proto_rawDescOnce.Do(func() {
  135. file_order_proto_rawDescData = protoimpl.X.CompressGZIP(file_order_proto_rawDescData)
  136. })
  137. return file_order_proto_rawDescData
  138. }
  139. var file_order_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  140. var file_order_proto_goTypes = []interface{}{
  141. (*OrderRequest)(nil), // 0: services.OrderRequest
  142. (*OrderResponse)(nil), // 1: services.OrderResponse
  143. (*ProdMain)(nil), // 2: services.ProdMain
  144. }
  145. var file_order_proto_depIdxs = []int32{
  146. 2, // 0: services.OrderRequest.prod_main:type_name -> services.ProdMain
  147. 0, // 1: services.OrderService.NewOrder:input_type -> services.OrderRequest
  148. 1, // 2: services.OrderService.NewOrder:output_type -> services.OrderResponse
  149. 2, // [2:3] is the sub-list for method output_type
  150. 1, // [1:2] is the sub-list for method input_type
  151. 1, // [1:1] is the sub-list for extension type_name
  152. 1, // [1:1] is the sub-list for extension extendee
  153. 0, // [0:1] is the sub-list for field type_name
  154. }
  155. func init() { file_order_proto_init() }
  156. func file_order_proto_init() {
  157. if File_order_proto != nil {
  158. return
  159. }
  160. file_models_proto_init()
  161. if !protoimpl.UnsafeEnabled {
  162. file_order_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  163. switch v := v.(*OrderRequest); i {
  164. case 0:
  165. return &v.state
  166. case 1:
  167. return &v.sizeCache
  168. case 2:
  169. return &v.unknownFields
  170. default:
  171. return nil
  172. }
  173. }
  174. file_order_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  175. switch v := v.(*OrderResponse); i {
  176. case 0:
  177. return &v.state
  178. case 1:
  179. return &v.sizeCache
  180. case 2:
  181. return &v.unknownFields
  182. default:
  183. return nil
  184. }
  185. }
  186. }
  187. type x struct{}
  188. out := protoimpl.TypeBuilder{
  189. File: protoimpl.DescBuilder{
  190. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  191. RawDescriptor: file_order_proto_rawDesc,
  192. NumEnums: 0,
  193. NumMessages: 2,
  194. NumExtensions: 0,
  195. NumServices: 1,
  196. },
  197. GoTypes: file_order_proto_goTypes,
  198. DependencyIndexes: file_order_proto_depIdxs,
  199. MessageInfos: file_order_proto_msgTypes,
  200. }.Build()
  201. File_order_proto = out.File
  202. file_order_proto_rawDesc = nil
  203. file_order_proto_goTypes = nil
  204. file_order_proto_depIdxs = nil
  205. }