123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.31.0
- // protoc v4.25.0
- // source: proto/payment_shopping_service.proto
- package shopping_service
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type CreatePaymentRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- OrderId int64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
- Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
- Status PaymentStatusEnum `protobuf:"varint,3,opt,name=status,proto3,enum=base_shopping_service.PaymentStatusEnum" json:"status,omitempty"`
- PaymentMethod PaymentMethodEnum `protobuf:"varint,4,opt,name=payment_method,json=paymentMethod,proto3,enum=base_shopping_service.PaymentMethodEnum" json:"payment_method,omitempty"`
- }
- func (x *CreatePaymentRequest) Reset() {
- *x = CreatePaymentRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_payment_shopping_service_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CreatePaymentRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CreatePaymentRequest) ProtoMessage() {}
- func (x *CreatePaymentRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_payment_shopping_service_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use CreatePaymentRequest.ProtoReflect.Descriptor instead.
- func (*CreatePaymentRequest) Descriptor() ([]byte, []int) {
- return file_proto_payment_shopping_service_proto_rawDescGZIP(), []int{0}
- }
- func (x *CreatePaymentRequest) GetOrderId() int64 {
- if x != nil {
- return x.OrderId
- }
- return 0
- }
- func (x *CreatePaymentRequest) GetAmount() int64 {
- if x != nil {
- return x.Amount
- }
- return 0
- }
- func (x *CreatePaymentRequest) GetStatus() PaymentStatusEnum {
- if x != nil {
- return x.Status
- }
- return PaymentStatusEnum_PAYMENT_UNKNOWN
- }
- func (x *CreatePaymentRequest) GetPaymentMethod() PaymentMethodEnum {
- if x != nil {
- return x.PaymentMethod
- }
- return PaymentMethodEnum_Payment_Method_UNKNOWN
- }
- type CreatePaymentResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *CreatePaymentResponse) Reset() {
- *x = CreatePaymentResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_payment_shopping_service_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CreatePaymentResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CreatePaymentResponse) ProtoMessage() {}
- func (x *CreatePaymentResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_payment_shopping_service_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use CreatePaymentResponse.ProtoReflect.Descriptor instead.
- func (*CreatePaymentResponse) Descriptor() ([]byte, []int) {
- return file_proto_payment_shopping_service_proto_rawDescGZIP(), []int{1}
- }
- var File_proto_payment_shopping_service_proto protoreflect.FileDescriptor
- var file_proto_payment_shopping_service_proto_rawDesc = []byte{
- 0x0a, 0x24, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f,
- 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f,
- 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
- 0x1a, 0x21, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f,
- 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72,
- 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61,
- 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08,
- 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07,
- 0x6f, 0x72, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e,
- 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12,
- 0x40, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32,
- 0x28, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f,
- 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53,
- 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
- 0x73, 0x12, 0x4f, 0x0a, 0x0e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6d, 0x65, 0x74,
- 0x68, 0x6f, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x62, 0x61, 0x73, 0x65,
- 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
- 0x65, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x45,
- 0x6e, 0x75, 0x6d, 0x52, 0x0d, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68,
- 0x6f, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d,
- 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x8a, 0x01, 0x0a, 0x16,
- 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x53,
- 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x70, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
- 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e,
- 0x74, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
- 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e,
- 0x74, 0x5f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
- 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74,
- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x1a, 0x5a, 0x18, 0x2e, 0x2f, 0x70, 0x72,
- 0x6f, 0x74, 0x6f, 0x3b, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x65, 0x72,
- 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_proto_payment_shopping_service_proto_rawDescOnce sync.Once
- file_proto_payment_shopping_service_proto_rawDescData = file_proto_payment_shopping_service_proto_rawDesc
- )
- func file_proto_payment_shopping_service_proto_rawDescGZIP() []byte {
- file_proto_payment_shopping_service_proto_rawDescOnce.Do(func() {
- file_proto_payment_shopping_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_payment_shopping_service_proto_rawDescData)
- })
- return file_proto_payment_shopping_service_proto_rawDescData
- }
- var file_proto_payment_shopping_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
- var file_proto_payment_shopping_service_proto_goTypes = []interface{}{
- (*CreatePaymentRequest)(nil), // 0: payment_shopping_service.CreatePaymentRequest
- (*CreatePaymentResponse)(nil), // 1: payment_shopping_service.CreatePaymentResponse
- (PaymentStatusEnum)(0), // 2: base_shopping_service.PaymentStatusEnum
- (PaymentMethodEnum)(0), // 3: base_shopping_service.PaymentMethodEnum
- }
- var file_proto_payment_shopping_service_proto_depIdxs = []int32{
- 2, // 0: payment_shopping_service.CreatePaymentRequest.status:type_name -> base_shopping_service.PaymentStatusEnum
- 3, // 1: payment_shopping_service.CreatePaymentRequest.payment_method:type_name -> base_shopping_service.PaymentMethodEnum
- 0, // 2: payment_shopping_service.PaymentShoppingService.CreatePayment:input_type -> payment_shopping_service.CreatePaymentRequest
- 1, // 3: payment_shopping_service.PaymentShoppingService.CreatePayment:output_type -> payment_shopping_service.CreatePaymentResponse
- 3, // [3:4] is the sub-list for method output_type
- 2, // [2:3] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] is the sub-list for field type_name
- }
- func init() { file_proto_payment_shopping_service_proto_init() }
- func file_proto_payment_shopping_service_proto_init() {
- if File_proto_payment_shopping_service_proto != nil {
- return
- }
- file_proto_base_shopping_service_proto_init()
- if !protoimpl.UnsafeEnabled {
- file_proto_payment_shopping_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CreatePaymentRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_payment_shopping_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CreatePaymentResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_proto_payment_shopping_service_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 2,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_proto_payment_shopping_service_proto_goTypes,
- DependencyIndexes: file_proto_payment_shopping_service_proto_depIdxs,
- MessageInfos: file_proto_payment_shopping_service_proto_msgTypes,
- }.Build()
- File_proto_payment_shopping_service_proto = out.File
- file_proto_payment_shopping_service_proto_rawDesc = nil
- file_proto_payment_shopping_service_proto_goTypes = nil
- file_proto_payment_shopping_service_proto_depIdxs = nil
- }
|