github.com/s7techlab/cckit@v0.10.5/examples/payment/schema/payment.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.27.1
     4  // 	protoc        (unknown)
     5  // source: payment/schema/payment.proto
     6  
     7  package schema
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type Payment struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	Type   string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
    29  	Id     string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
    30  	Amount int32  `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
    31  }
    32  
    33  func (x *Payment) Reset() {
    34  	*x = Payment{}
    35  	if protoimpl.UnsafeEnabled {
    36  		mi := &file_payment_schema_payment_proto_msgTypes[0]
    37  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    38  		ms.StoreMessageInfo(mi)
    39  	}
    40  }
    41  
    42  func (x *Payment) String() string {
    43  	return protoimpl.X.MessageStringOf(x)
    44  }
    45  
    46  func (*Payment) ProtoMessage() {}
    47  
    48  func (x *Payment) ProtoReflect() protoreflect.Message {
    49  	mi := &file_payment_schema_payment_proto_msgTypes[0]
    50  	if protoimpl.UnsafeEnabled && x != nil {
    51  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    52  		if ms.LoadMessageInfo() == nil {
    53  			ms.StoreMessageInfo(mi)
    54  		}
    55  		return ms
    56  	}
    57  	return mi.MessageOf(x)
    58  }
    59  
    60  // Deprecated: Use Payment.ProtoReflect.Descriptor instead.
    61  func (*Payment) Descriptor() ([]byte, []int) {
    62  	return file_payment_schema_payment_proto_rawDescGZIP(), []int{0}
    63  }
    64  
    65  func (x *Payment) GetType() string {
    66  	if x != nil {
    67  		return x.Type
    68  	}
    69  	return ""
    70  }
    71  
    72  func (x *Payment) GetId() string {
    73  	if x != nil {
    74  		return x.Id
    75  	}
    76  	return ""
    77  }
    78  
    79  func (x *Payment) GetAmount() int32 {
    80  	if x != nil {
    81  		return x.Amount
    82  	}
    83  	return 0
    84  }
    85  
    86  type PaymentList struct {
    87  	state         protoimpl.MessageState
    88  	sizeCache     protoimpl.SizeCache
    89  	unknownFields protoimpl.UnknownFields
    90  
    91  	Items []*Payment `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
    92  }
    93  
    94  func (x *PaymentList) Reset() {
    95  	*x = PaymentList{}
    96  	if protoimpl.UnsafeEnabled {
    97  		mi := &file_payment_schema_payment_proto_msgTypes[1]
    98  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    99  		ms.StoreMessageInfo(mi)
   100  	}
   101  }
   102  
   103  func (x *PaymentList) String() string {
   104  	return protoimpl.X.MessageStringOf(x)
   105  }
   106  
   107  func (*PaymentList) ProtoMessage() {}
   108  
   109  func (x *PaymentList) ProtoReflect() protoreflect.Message {
   110  	mi := &file_payment_schema_payment_proto_msgTypes[1]
   111  	if protoimpl.UnsafeEnabled && x != nil {
   112  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   113  		if ms.LoadMessageInfo() == nil {
   114  			ms.StoreMessageInfo(mi)
   115  		}
   116  		return ms
   117  	}
   118  	return mi.MessageOf(x)
   119  }
   120  
   121  // Deprecated: Use PaymentList.ProtoReflect.Descriptor instead.
   122  func (*PaymentList) Descriptor() ([]byte, []int) {
   123  	return file_payment_schema_payment_proto_rawDescGZIP(), []int{1}
   124  }
   125  
   126  func (x *PaymentList) GetItems() []*Payment {
   127  	if x != nil {
   128  		return x.Items
   129  	}
   130  	return nil
   131  }
   132  
   133  type PaymentEvent struct {
   134  	state         protoimpl.MessageState
   135  	sizeCache     protoimpl.SizeCache
   136  	unknownFields protoimpl.UnknownFields
   137  
   138  	Type   string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
   139  	Id     string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
   140  	Amount int32  `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
   141  }
   142  
   143  func (x *PaymentEvent) Reset() {
   144  	*x = PaymentEvent{}
   145  	if protoimpl.UnsafeEnabled {
   146  		mi := &file_payment_schema_payment_proto_msgTypes[2]
   147  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   148  		ms.StoreMessageInfo(mi)
   149  	}
   150  }
   151  
   152  func (x *PaymentEvent) String() string {
   153  	return protoimpl.X.MessageStringOf(x)
   154  }
   155  
   156  func (*PaymentEvent) ProtoMessage() {}
   157  
   158  func (x *PaymentEvent) ProtoReflect() protoreflect.Message {
   159  	mi := &file_payment_schema_payment_proto_msgTypes[2]
   160  	if protoimpl.UnsafeEnabled && x != nil {
   161  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   162  		if ms.LoadMessageInfo() == nil {
   163  			ms.StoreMessageInfo(mi)
   164  		}
   165  		return ms
   166  	}
   167  	return mi.MessageOf(x)
   168  }
   169  
   170  // Deprecated: Use PaymentEvent.ProtoReflect.Descriptor instead.
   171  func (*PaymentEvent) Descriptor() ([]byte, []int) {
   172  	return file_payment_schema_payment_proto_rawDescGZIP(), []int{2}
   173  }
   174  
   175  func (x *PaymentEvent) GetType() string {
   176  	if x != nil {
   177  		return x.Type
   178  	}
   179  	return ""
   180  }
   181  
   182  func (x *PaymentEvent) GetId() string {
   183  	if x != nil {
   184  		return x.Id
   185  	}
   186  	return ""
   187  }
   188  
   189  func (x *PaymentEvent) GetAmount() int32 {
   190  	if x != nil {
   191  		return x.Amount
   192  	}
   193  	return 0
   194  }
   195  
   196  var File_payment_schema_payment_proto protoreflect.FileDescriptor
   197  
   198  var file_payment_schema_payment_proto_rawDesc = []byte{
   199  	0x0a, 0x1c, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
   200  	0x2f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
   201  	0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0x45, 0x0a, 0x07, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e,
   202  	0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
   203  	0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
   204  	0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18,
   205  	0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x34, 0x0a,
   206  	0x0b, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x05,
   207  	0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x73, 0x63,
   208  	0x68, 0x65, 0x6d, 0x61, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x69, 0x74,
   209  	0x65, 0x6d, 0x73, 0x22, 0x4a, 0x0a, 0x0c, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x45, 0x76,
   210  	0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
   211  	0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20,
   212  	0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e,
   213  	0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x42,
   214  	0x3b, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x37,
   215  	0x74, 0x65, 0x63, 0x68, 0x6c, 0x61, 0x62, 0x2f, 0x63, 0x63, 0x6b, 0x69, 0x74, 0x2f, 0x65, 0x78,
   216  	0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x73,
   217  	0x63, 0x68, 0x65, 0x6d, 0x61, 0x3b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x62, 0x06, 0x70, 0x72,
   218  	0x6f, 0x74, 0x6f, 0x33,
   219  }
   220  
   221  var (
   222  	file_payment_schema_payment_proto_rawDescOnce sync.Once
   223  	file_payment_schema_payment_proto_rawDescData = file_payment_schema_payment_proto_rawDesc
   224  )
   225  
   226  func file_payment_schema_payment_proto_rawDescGZIP() []byte {
   227  	file_payment_schema_payment_proto_rawDescOnce.Do(func() {
   228  		file_payment_schema_payment_proto_rawDescData = protoimpl.X.CompressGZIP(file_payment_schema_payment_proto_rawDescData)
   229  	})
   230  	return file_payment_schema_payment_proto_rawDescData
   231  }
   232  
   233  var file_payment_schema_payment_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   234  var file_payment_schema_payment_proto_goTypes = []interface{}{
   235  	(*Payment)(nil),      // 0: schema.Payment
   236  	(*PaymentList)(nil),  // 1: schema.PaymentList
   237  	(*PaymentEvent)(nil), // 2: schema.PaymentEvent
   238  }
   239  var file_payment_schema_payment_proto_depIdxs = []int32{
   240  	0, // 0: schema.PaymentList.items:type_name -> schema.Payment
   241  	1, // [1:1] is the sub-list for method output_type
   242  	1, // [1:1] is the sub-list for method input_type
   243  	1, // [1:1] is the sub-list for extension type_name
   244  	1, // [1:1] is the sub-list for extension extendee
   245  	0, // [0:1] is the sub-list for field type_name
   246  }
   247  
   248  func init() { file_payment_schema_payment_proto_init() }
   249  func file_payment_schema_payment_proto_init() {
   250  	if File_payment_schema_payment_proto != nil {
   251  		return
   252  	}
   253  	if !protoimpl.UnsafeEnabled {
   254  		file_payment_schema_payment_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   255  			switch v := v.(*Payment); i {
   256  			case 0:
   257  				return &v.state
   258  			case 1:
   259  				return &v.sizeCache
   260  			case 2:
   261  				return &v.unknownFields
   262  			default:
   263  				return nil
   264  			}
   265  		}
   266  		file_payment_schema_payment_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   267  			switch v := v.(*PaymentList); i {
   268  			case 0:
   269  				return &v.state
   270  			case 1:
   271  				return &v.sizeCache
   272  			case 2:
   273  				return &v.unknownFields
   274  			default:
   275  				return nil
   276  			}
   277  		}
   278  		file_payment_schema_payment_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   279  			switch v := v.(*PaymentEvent); i {
   280  			case 0:
   281  				return &v.state
   282  			case 1:
   283  				return &v.sizeCache
   284  			case 2:
   285  				return &v.unknownFields
   286  			default:
   287  				return nil
   288  			}
   289  		}
   290  	}
   291  	type x struct{}
   292  	out := protoimpl.TypeBuilder{
   293  		File: protoimpl.DescBuilder{
   294  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   295  			RawDescriptor: file_payment_schema_payment_proto_rawDesc,
   296  			NumEnums:      0,
   297  			NumMessages:   3,
   298  			NumExtensions: 0,
   299  			NumServices:   0,
   300  		},
   301  		GoTypes:           file_payment_schema_payment_proto_goTypes,
   302  		DependencyIndexes: file_payment_schema_payment_proto_depIdxs,
   303  		MessageInfos:      file_payment_schema_payment_proto_msgTypes,
   304  	}.Build()
   305  	File_payment_schema_payment_proto = out.File
   306  	file_payment_schema_payment_proto_rawDesc = nil
   307  	file_payment_schema_payment_proto_goTypes = nil
   308  	file_payment_schema_payment_proto_depIdxs = nil
   309  }