Debian Codegraph @

go/types/v1/price.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.36.5
4 // protoc (unknown)
5 // source: types/v1/price.proto
6
7 package typesv1
8
9 import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
13 reflect "reflect"
14 sync "sync"
15 unsafe "unsafe"
16 )
17
18 const (
19 // Verify that this generated code is sufficiently up-to-date.
20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21 // Verify that runtime/protoimpl is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23 )
24
25 type Price struct {
26 state protoimpl.MessageState `protogen:"open.v1"`
27 CreatedAt *timestamppb.Timestamp `protobuf:"bytes,100,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
28 StripeId string `protobuf:"bytes,1,opt,name=stripe_id,json=stripeId,proto3" json:"stripe_id,omitempty"`
29 Currency string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"`
30 UnitAmount int64 `protobuf:"varint,3,opt,name=unit_amount,json=unitAmount,proto3" json:"unit_amount,omitempty"`
31 Recurring *Price_Recurring `protobuf:"bytes,4,opt,name=recurring,proto3" json:"recurring,omitempty"`
32 LookupKey string `protobuf:"bytes,5,opt,name=lookup_key,json=lookupKey,proto3" json:"lookup_key,omitempty"`
33 unknownFields protoimpl.UnknownFields
34 sizeCache protoimpl.SizeCache
35 }
36
37 func (x *Price) Reset() {
38 *x = Price{}
39 mi := &file_types_v1_price_proto_msgTypes[0]
40 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
41 ms.StoreMessageInfo(mi)
42 }
43
44 func (x *Price) String() string {
45 return protoimpl.X.MessageStringOf(x)
46 }
47
48 func (*Price) ProtoMessage() {}
49
50 func (x *Price) ProtoReflect() protoreflect.Message {
51 mi := &file_types_v1_price_proto_msgTypes[0]
52 if x != nil {
53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
54 if ms.LoadMessageInfo() == nil {
55 ms.StoreMessageInfo(mi)
56 }
57 return ms
58 }
59 return mi.MessageOf(x)
60 }
61
62 // Deprecated: Use Price.ProtoReflect.Descriptor instead.
63 func (*Price) Descriptor() ([]byte, []int) {
64 return file_types_v1_price_proto_rawDescGZIP(), []int{0}
65 }
66
67 func (x *Price) GetCreatedAt() *timestamppb.Timestamp {
68 if x != nil {
69 return x.CreatedAt
70 }
71 return nil
72 }
73
74 func (x *Price) GetStripeId() string {
75 if x != nil {
76 return x.StripeId
77 }
78 return ""
79 }
80
81 func (x *Price) GetCurrency() string {
82 if x != nil {
83 return x.Currency
84 }
85 return ""
86 }
87
88 func (x *Price) GetUnitAmount() int64 {
89 if x != nil {
90 return x.UnitAmount
91 }
92 return 0
93 }
94
95 func (x *Price) GetRecurring() *Price_Recurring {
96 if x != nil {
97 return x.Recurring
98 }
99 return nil
100 }
101
102 func (x *Price) GetLookupKey() string {
103 if x != nil {
104 return x.LookupKey
105 }
106 return ""
107 }
108
109 type Price_Recurring struct {
110 state protoimpl.MessageState `protogen:"open.v1"`
111 Interval string `protobuf:"bytes,1,opt,name=interval,proto3" json:"interval,omitempty"`
112 IntervalCount int64 `protobuf:"varint,2,opt,name=interval_count,json=intervalCount,proto3" json:"interval_count,omitempty"`
113 TrialPeriodDays int64 `protobuf:"varint,3,opt,name=trial_period_days,json=trialPeriodDays,proto3" json:"trial_period_days,omitempty"`
114 unknownFields protoimpl.UnknownFields
115 sizeCache protoimpl.SizeCache
116 }
117
118 func (x *Price_Recurring) Reset() {
119 *x = Price_Recurring{}
120 mi := &file_types_v1_price_proto_msgTypes[1]
121 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
122 ms.StoreMessageInfo(mi)
123 }
124
125 func (x *Price_Recurring) String() string {
126 return protoimpl.X.MessageStringOf(x)
127 }
128
129 func (*Price_Recurring) ProtoMessage() {}
130
131 func (x *Price_Recurring) ProtoReflect() protoreflect.Message {
132 mi := &file_types_v1_price_proto_msgTypes[1]
133 if x != nil {
134 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
135 if ms.LoadMessageInfo() == nil {
136 ms.StoreMessageInfo(mi)
137 }
138 return ms
139 }
140 return mi.MessageOf(x)
141 }
142
143 // Deprecated: Use Price_Recurring.ProtoReflect.Descriptor instead.
144 func (*Price_Recurring) Descriptor() ([]byte, []int) {
145 return file_types_v1_price_proto_rawDescGZIP(), []int{0, 0}
146 }
147
148 func (x *Price_Recurring) GetInterval() string {
149 if x != nil {
150 return x.Interval
151 }
152 return ""
153 }
154
155 func (x *Price_Recurring) GetIntervalCount() int64 {
156 if x != nil {
157 return x.IntervalCount
158 }
159 return 0
160 }
161
162 func (x *Price_Recurring) GetTrialPeriodDays() int64 {
163 if x != nil {
164 return x.TrialPeriodDays
165 }
166 return 0
167 }
168
169 var File_types_v1_price_proto protoreflect.FileDescriptor
170
171 var file_types_v1_price_proto_rawDesc = string([]byte{
172 0x0a, 0x14, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x69, 0x63, 0x65,
173 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31,
174 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
175 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
176 0x6f, 0x22, 0xf0, 0x02, 0x0a, 0x05, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x63,
177 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32,
178 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
179 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65,
180 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x72, 0x69, 0x70, 0x65,
181 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x72, 0x69, 0x70,
182 0x65, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18,
183 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12,
184 0x1f, 0x0a, 0x0b, 0x75, 0x6e, 0x69, 0x74, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03,
185 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x6e, 0x69, 0x74, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74,
186 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x63, 0x75, 0x72, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20,
187 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50,
188 0x72, 0x69, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x63, 0x75, 0x72, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09,
189 0x72, 0x65, 0x63, 0x75, 0x72, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x6f, 0x6f,
190 0x6b, 0x75, 0x70, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c,
191 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x4b, 0x65, 0x79, 0x1a, 0x7a, 0x0a, 0x09, 0x52, 0x65, 0x63, 0x75,
192 0x72, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61,
193 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61,
194 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x63, 0x6f,
195 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x65, 0x72,
196 0x76, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x72, 0x69, 0x61,
197 0x6c, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x03, 0x20,
198 0x01, 0x28, 0x03, 0x52, 0x0f, 0x74, 0x72, 0x69, 0x61, 0x6c, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64,
199 0x44, 0x61, 0x79, 0x73, 0x42, 0x8a, 0x01, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x79, 0x70,
200 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x50, 0x72, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74,
201 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
202 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x6c, 0x6f, 0x67, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67,
203 0x6f, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73,
204 0x76, 0x31, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73,
205 0x2e, 0x56, 0x31, 0xca, 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02,
206 0x14, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
207 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x09, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x56,
208 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
209 })
210
211 var (
212 file_types_v1_price_proto_rawDescOnce sync.Once
213 file_types_v1_price_proto_rawDescData []byte
214 )
215
216 func file_types_v1_price_proto_rawDescGZIP() []byte {
217 file_types_v1_price_proto_rawDescOnce.Do(func() {
218 file_types_v1_price_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_types_v1_price_proto_rawDesc), len(file_types_v1_price_proto_rawDesc)))
219 })
220 return file_types_v1_price_proto_rawDescData
221 }
222
223 var file_types_v1_price_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
224 var file_types_v1_price_proto_goTypes = []any{
225 (*Price)(nil), // 0: types.v1.Price
226 (*Price_Recurring)(nil), // 1: types.v1.Price.Recurring
227 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
228 }
229 var file_types_v1_price_proto_depIdxs = []int32{
230 2, // 0: types.v1.Price.created_at:type_name -> google.protobuf.Timestamp
231 1, // 1: types.v1.Price.recurring:type_name -> types.v1.Price.Recurring
232 2, // [2:2] is the sub-list for method output_type
233 2, // [2:2] is the sub-list for method input_type
234 2, // [2:2] is the sub-list for extension type_name
235 2, // [2:2] is the sub-list for extension extendee
236 0, // [0:2] is the sub-list for field type_name
237 }
238
239 func init() { file_types_v1_price_proto_init() }
240 func file_types_v1_price_proto_init() {
241 if File_types_v1_price_proto != nil {
242 return
243 }
244 type x struct{}
245 out := protoimpl.TypeBuilder{
246 File: protoimpl.DescBuilder{
247 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
248 RawDescriptor: unsafe.Slice(unsafe.StringData(file_types_v1_price_proto_rawDesc), len(file_types_v1_price_proto_rawDesc)),
249 NumEnums: 0,
250 NumMessages: 2,
251 NumExtensions: 0,
252 NumServices: 0,
253 },
254 GoTypes: file_types_v1_price_proto_goTypes,
255 DependencyIndexes: file_types_v1_price_proto_depIdxs,
256 MessageInfos: file_types_v1_price_proto_msgTypes,
257 }.Build()
258 File_types_v1_price_proto = out.File
259 file_types_v1_price_proto_goTypes = nil
260 file_types_v1_price_proto_depIdxs = nil
261 }