payment_shopping_service.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.31.0
  4. // protoc v4.25.0
  5. // source: proto/payment_shopping_service.proto
  6. package shopping_service
  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 CreatePaymentRequest struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. OrderId int64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
  24. Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
  25. Status PaymentStatusEnum `protobuf:"varint,3,opt,name=status,proto3,enum=base_shopping_service.PaymentStatusEnum" json:"status,omitempty"`
  26. PaymentMethod PaymentMethodEnum `protobuf:"varint,4,opt,name=payment_method,json=paymentMethod,proto3,enum=base_shopping_service.PaymentMethodEnum" json:"payment_method,omitempty"`
  27. }
  28. func (x *CreatePaymentRequest) Reset() {
  29. *x = CreatePaymentRequest{}
  30. if protoimpl.UnsafeEnabled {
  31. mi := &file_proto_payment_shopping_service_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. }
  36. func (x *CreatePaymentRequest) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*CreatePaymentRequest) ProtoMessage() {}
  40. func (x *CreatePaymentRequest) ProtoReflect() protoreflect.Message {
  41. mi := &file_proto_payment_shopping_service_proto_msgTypes[0]
  42. if protoimpl.UnsafeEnabled && x != nil {
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. if ms.LoadMessageInfo() == nil {
  45. ms.StoreMessageInfo(mi)
  46. }
  47. return ms
  48. }
  49. return mi.MessageOf(x)
  50. }
  51. // Deprecated: Use CreatePaymentRequest.ProtoReflect.Descriptor instead.
  52. func (*CreatePaymentRequest) Descriptor() ([]byte, []int) {
  53. return file_proto_payment_shopping_service_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *CreatePaymentRequest) GetOrderId() int64 {
  56. if x != nil {
  57. return x.OrderId
  58. }
  59. return 0
  60. }
  61. func (x *CreatePaymentRequest) GetAmount() int64 {
  62. if x != nil {
  63. return x.Amount
  64. }
  65. return 0
  66. }
  67. func (x *CreatePaymentRequest) GetStatus() PaymentStatusEnum {
  68. if x != nil {
  69. return x.Status
  70. }
  71. return PaymentStatusEnum_PAYMENT_UNKNOWN
  72. }
  73. func (x *CreatePaymentRequest) GetPaymentMethod() PaymentMethodEnum {
  74. if x != nil {
  75. return x.PaymentMethod
  76. }
  77. return PaymentMethodEnum_Payment_Method_UNKNOWN
  78. }
  79. type CreatePaymentResponse struct {
  80. state protoimpl.MessageState
  81. sizeCache protoimpl.SizeCache
  82. unknownFields protoimpl.UnknownFields
  83. }
  84. func (x *CreatePaymentResponse) Reset() {
  85. *x = CreatePaymentResponse{}
  86. if protoimpl.UnsafeEnabled {
  87. mi := &file_proto_payment_shopping_service_proto_msgTypes[1]
  88. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  89. ms.StoreMessageInfo(mi)
  90. }
  91. }
  92. func (x *CreatePaymentResponse) String() string {
  93. return protoimpl.X.MessageStringOf(x)
  94. }
  95. func (*CreatePaymentResponse) ProtoMessage() {}
  96. func (x *CreatePaymentResponse) ProtoReflect() protoreflect.Message {
  97. mi := &file_proto_payment_shopping_service_proto_msgTypes[1]
  98. if protoimpl.UnsafeEnabled && x != nil {
  99. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  100. if ms.LoadMessageInfo() == nil {
  101. ms.StoreMessageInfo(mi)
  102. }
  103. return ms
  104. }
  105. return mi.MessageOf(x)
  106. }
  107. // Deprecated: Use CreatePaymentResponse.ProtoReflect.Descriptor instead.
  108. func (*CreatePaymentResponse) Descriptor() ([]byte, []int) {
  109. return file_proto_payment_shopping_service_proto_rawDescGZIP(), []int{1}
  110. }
  111. var File_proto_payment_shopping_service_proto protoreflect.FileDescriptor
  112. var file_proto_payment_shopping_service_proto_rawDesc = []byte{
  113. 0x0a, 0x24, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f,
  114. 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
  115. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f,
  116. 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
  117. 0x1a, 0x21, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f,
  118. 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72,
  119. 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61,
  120. 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08,
  121. 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07,
  122. 0x6f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e,
  123. 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12,
  124. 0x40, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32,
  125. 0x28, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f,
  126. 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53,
  127. 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
  128. 0x73, 0x12, 0x4f, 0x0a, 0x0e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x65, 0x74,
  129. 0x68, 0x6f, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x62, 0x61, 0x73, 0x65,
  130. 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
  131. 0x65, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x45,
  132. 0x6e, 0x75, 0x6d, 0x52, 0x0d, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68,
  133. 0x6f, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d,
  134. 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x8a, 0x01, 0x0a, 0x16,
  135. 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x53,
  136. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x70, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
  137. 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e,
  138. 0x74, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
  139. 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74,
  140. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e,
  141. 0x74, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
  142. 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74,
  143. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x1a, 0x5a, 0x18, 0x2e, 0x2f, 0x70, 0x72,
  144. 0x6f, 0x74, 0x6f, 0x3b, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72,
  145. 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  146. }
  147. var (
  148. file_proto_payment_shopping_service_proto_rawDescOnce sync.Once
  149. file_proto_payment_shopping_service_proto_rawDescData = file_proto_payment_shopping_service_proto_rawDesc
  150. )
  151. func file_proto_payment_shopping_service_proto_rawDescGZIP() []byte {
  152. file_proto_payment_shopping_service_proto_rawDescOnce.Do(func() {
  153. file_proto_payment_shopping_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_payment_shopping_service_proto_rawDescData)
  154. })
  155. return file_proto_payment_shopping_service_proto_rawDescData
  156. }
  157. var file_proto_payment_shopping_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  158. var file_proto_payment_shopping_service_proto_goTypes = []interface{}{
  159. (*CreatePaymentRequest)(nil), // 0: payment_shopping_service.CreatePaymentRequest
  160. (*CreatePaymentResponse)(nil), // 1: payment_shopping_service.CreatePaymentResponse
  161. (PaymentStatusEnum)(0), // 2: base_shopping_service.PaymentStatusEnum
  162. (PaymentMethodEnum)(0), // 3: base_shopping_service.PaymentMethodEnum
  163. }
  164. var file_proto_payment_shopping_service_proto_depIdxs = []int32{
  165. 2, // 0: payment_shopping_service.CreatePaymentRequest.status:type_name -> base_shopping_service.PaymentStatusEnum
  166. 3, // 1: payment_shopping_service.CreatePaymentRequest.payment_method:type_name -> base_shopping_service.PaymentMethodEnum
  167. 0, // 2: payment_shopping_service.PaymentShoppingService.CreatePayment:input_type -> payment_shopping_service.CreatePaymentRequest
  168. 1, // 3: payment_shopping_service.PaymentShoppingService.CreatePayment:output_type -> payment_shopping_service.CreatePaymentResponse
  169. 3, // [3:4] is the sub-list for method output_type
  170. 2, // [2:3] is the sub-list for method input_type
  171. 2, // [2:2] is the sub-list for extension type_name
  172. 2, // [2:2] is the sub-list for extension extendee
  173. 0, // [0:2] is the sub-list for field type_name
  174. }
  175. func init() { file_proto_payment_shopping_service_proto_init() }
  176. func file_proto_payment_shopping_service_proto_init() {
  177. if File_proto_payment_shopping_service_proto != nil {
  178. return
  179. }
  180. file_proto_base_shopping_service_proto_init()
  181. if !protoimpl.UnsafeEnabled {
  182. file_proto_payment_shopping_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  183. switch v := v.(*CreatePaymentRequest); i {
  184. case 0:
  185. return &v.state
  186. case 1:
  187. return &v.sizeCache
  188. case 2:
  189. return &v.unknownFields
  190. default:
  191. return nil
  192. }
  193. }
  194. file_proto_payment_shopping_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  195. switch v := v.(*CreatePaymentResponse); i {
  196. case 0:
  197. return &v.state
  198. case 1:
  199. return &v.sizeCache
  200. case 2:
  201. return &v.unknownFields
  202. default:
  203. return nil
  204. }
  205. }
  206. }
  207. type x struct{}
  208. out := protoimpl.TypeBuilder{
  209. File: protoimpl.DescBuilder{
  210. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  211. RawDescriptor: file_proto_payment_shopping_service_proto_rawDesc,
  212. NumEnums: 0,
  213. NumMessages: 2,
  214. NumExtensions: 0,
  215. NumServices: 1,
  216. },
  217. GoTypes: file_proto_payment_shopping_service_proto_goTypes,
  218. DependencyIndexes: file_proto_payment_shopping_service_proto_depIdxs,
  219. MessageInfos: file_proto_payment_shopping_service_proto_msgTypes,
  220. }.Build()
  221. File_proto_payment_shopping_service_proto = out.File
  222. file_proto_payment_shopping_service_proto_rawDesc = nil
  223. file_proto_payment_shopping_service_proto_goTypes = nil
  224. file_proto_payment_shopping_service_proto_depIdxs = nil
  225. }