Debian Codegraph @

go/types/v1/product.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/product.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 Product_Scope int32
26
27 const (
28 Product_Unknown Product_Scope = 0
29 Product_Environment Product_Scope = 1
30 Product_Organization Product_Scope = 2
31 )
32
33 // Enum value maps for Product_Scope.
34 var (
35 Product_Scope_name = map[int32]string{
36 0: "Unknown",
37 1: "Environment",
38 2: "Organization",
39 }
40 Product_Scope_value = map[string]int32{
41 "Unknown": 0,
42 "Environment": 1,
43 "Organization": 2,
44 }
45 )
46
47 func (x Product_Scope) Enum() *Product_Scope {
48 p := new(Product_Scope)
49 *p = x
50 return p
51 }
52
53 func (x Product_Scope) String() string {
54 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
55 }
56
57 func (Product_Scope) Descriptor() protoreflect.EnumDescriptor {
58 return file_types_v1_product_proto_enumTypes[0].Descriptor()
59 }
60
61 func (Product_Scope) Type() protoreflect.EnumType {
62 return &file_types_v1_product_proto_enumTypes[0]
63 }
64
65 func (x Product_Scope) Number() protoreflect.EnumNumber {
66 return protoreflect.EnumNumber(x)
67 }
68
69 // Deprecated: Use Product_Scope.Descriptor instead.
70 func (Product_Scope) EnumDescriptor() ([]byte, []int) {
71 return file_types_v1_product_proto_rawDescGZIP(), []int{0, 0}
72 }
73
74 type Product struct {
75 state protoimpl.MessageState `protogen:"open.v1"`
76 CreatedAt *timestamppb.Timestamp `protobuf:"bytes,100,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
77 UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,101,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
78 StripeId string `protobuf:"bytes,1,opt,name=stripe_id,json=stripeId,proto3" json:"stripe_id,omitempty"`
79 DefaultPrice *Price `protobuf:"bytes,2,opt,name=default_price,json=defaultPrice,proto3" json:"default_price,omitempty"`
80 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
81 Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
82 MarketingFeatures []*Product_MarketingFeature `protobuf:"bytes,5,rep,name=marketing_features,json=marketingFeatures,proto3" json:"marketing_features,omitempty"`
83 CtaLink string `protobuf:"bytes,6,opt,name=cta_link,json=ctaLink,proto3" json:"cta_link,omitempty"`
84 Scope Product_Scope `protobuf:"varint,7,opt,name=scope,proto3,enum=types.v1.Product_Scope" json:"scope,omitempty"`
85 unknownFields protoimpl.UnknownFields
86 sizeCache protoimpl.SizeCache
87 }
88
89 func (x *Product) Reset() {
90 *x = Product{}
91 mi := &file_types_v1_product_proto_msgTypes[0]
92 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
93 ms.StoreMessageInfo(mi)
94 }
95
96 func (x *Product) String() string {
97 return protoimpl.X.MessageStringOf(x)
98 }
99
100 func (*Product) ProtoMessage() {}
101
102 func (x *Product) ProtoReflect() protoreflect.Message {
103 mi := &file_types_v1_product_proto_msgTypes[0]
104 if x != nil {
105 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
106 if ms.LoadMessageInfo() == nil {
107 ms.StoreMessageInfo(mi)
108 }
109 return ms
110 }
111 return mi.MessageOf(x)
112 }
113
114 // Deprecated: Use Product.ProtoReflect.Descriptor instead.
115 func (*Product) Descriptor() ([]byte, []int) {
116 return file_types_v1_product_proto_rawDescGZIP(), []int{0}
117 }
118
119 func (x *Product) GetCreatedAt() *timestamppb.Timestamp {
120 if x != nil {
121 return x.CreatedAt
122 }
123 return nil
124 }
125
126 func (x *Product) GetUpdatedAt() *timestamppb.Timestamp {
127 if x != nil {
128 return x.UpdatedAt
129 }
130 return nil
131 }
132
133 func (x *Product) GetStripeId() string {
134 if x != nil {
135 return x.StripeId
136 }
137 return ""
138 }
139
140 func (x *Product) GetDefaultPrice() *Price {
141 if x != nil {
142 return x.DefaultPrice
143 }
144 return nil
145 }
146
147 func (x *Product) GetName() string {
148 if x != nil {
149 return x.Name
150 }
151 return ""
152 }
153
154 func (x *Product) GetDescription() string {
155 if x != nil {
156 return x.Description
157 }
158 return ""
159 }
160
161 func (x *Product) GetMarketingFeatures() []*Product_MarketingFeature {
162 if x != nil {
163 return x.MarketingFeatures
164 }
165 return nil
166 }
167
168 func (x *Product) GetCtaLink() string {
169 if x != nil {
170 return x.CtaLink
171 }
172 return ""
173 }
174
175 func (x *Product) GetScope() Product_Scope {
176 if x != nil {
177 return x.Scope
178 }
179 return Product_Unknown
180 }
181
182 type Product_MarketingFeature struct {
183 state protoimpl.MessageState `protogen:"open.v1"`
184 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
185 unknownFields protoimpl.UnknownFields
186 sizeCache protoimpl.SizeCache
187 }
188
189 func (x *Product_MarketingFeature) Reset() {
190 *x = Product_MarketingFeature{}
191 mi := &file_types_v1_product_proto_msgTypes[1]
192 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
193 ms.StoreMessageInfo(mi)
194 }
195
196 func (x *Product_MarketingFeature) String() string {
197 return protoimpl.X.MessageStringOf(x)
198 }
199
200 func (*Product_MarketingFeature) ProtoMessage() {}
201
202 func (x *Product_MarketingFeature) ProtoReflect() protoreflect.Message {
203 mi := &file_types_v1_product_proto_msgTypes[1]
204 if x != nil {
205 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
206 if ms.LoadMessageInfo() == nil {
207 ms.StoreMessageInfo(mi)
208 }
209 return ms
210 }
211 return mi.MessageOf(x)
212 }
213
214 // Deprecated: Use Product_MarketingFeature.ProtoReflect.Descriptor instead.
215 func (*Product_MarketingFeature) Descriptor() ([]byte, []int) {
216 return file_types_v1_product_proto_rawDescGZIP(), []int{0, 0}
217 }
218
219 func (x *Product_MarketingFeature) GetName() string {
220 if x != nil {
221 return x.Name
222 }
223 return ""
224 }
225
226 var File_types_v1_product_proto protoreflect.FileDescriptor
227
228 var file_types_v1_product_proto_rawDesc = string([]byte{
229 0x0a, 0x16, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75,
230 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e,
231 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
232 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72,
233 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72,
234 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x04, 0x0a, 0x07, 0x50, 0x72,
235 0x6f, 0x64, 0x75, 0x63, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
236 0x5f, 0x61, 0x74, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
237 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
238 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74,
239 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x65,
240 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
241 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
242 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73,
243 0x74, 0x72, 0x69, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
244 0x73, 0x74, 0x72, 0x69, 0x70, 0x65, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61,
245 0x75, 0x6c, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
246 0x0f, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65,
247 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x12,
248 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
249 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
250 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
251 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x51, 0x0a, 0x12, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e,
252 0x67, 0x5f, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b,
253 0x32, 0x22, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x64,
254 0x75, 0x63, 0x74, 0x2e, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x46, 0x65, 0x61,
255 0x74, 0x75, 0x72, 0x65, 0x52, 0x11, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x46,
256 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x74, 0x61, 0x5f, 0x6c,
257 0x69, 0x6e, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x74, 0x61, 0x4c, 0x69,
258 0x6e, 0x6b, 0x12, 0x2d, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28,
259 0x0e, 0x32, 0x17, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f,
260 0x64, 0x75, 0x63, 0x74, 0x2e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70,
261 0x65, 0x1a, 0x26, 0x0a, 0x10, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x69, 0x6e, 0x67, 0x46, 0x65,
262 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
263 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x37, 0x0a, 0x05, 0x53, 0x63, 0x6f,
264 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12,
265 0x0f, 0x0a, 0x0b, 0x45, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x10, 0x01,
266 0x12, 0x10, 0x0a, 0x0c, 0x4f, 0x72, 0x67, 0x61, 0x6e, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e,
267 0x10, 0x02, 0x42, 0x8c, 0x01, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73,
268 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x50, 0x72, 0x6f, 0x74,
269 0x6f, 0x50, 0x01, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
270 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x6c, 0x6f, 0x67, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67,
271 0x6f, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73,
272 0x76, 0x31, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73,
273 0x2e, 0x56, 0x31, 0xca, 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02,
274 0x14, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,
275 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x09, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x56,
276 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
277 })
278
279 var (
280 file_types_v1_product_proto_rawDescOnce sync.Once
281 file_types_v1_product_proto_rawDescData []byte
282 )
283
284 func file_types_v1_product_proto_rawDescGZIP() []byte {
285 file_types_v1_product_proto_rawDescOnce.Do(func() {
286 file_types_v1_product_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_types_v1_product_proto_rawDesc), len(file_types_v1_product_proto_rawDesc)))
287 })
288 return file_types_v1_product_proto_rawDescData
289 }
290
291 var file_types_v1_product_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
292 var file_types_v1_product_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
293 var file_types_v1_product_proto_goTypes = []any{
294 (Product_Scope)(0), // 0: types.v1.Product.Scope
295 (*Product)(nil), // 1: types.v1.Product
296 (*Product_MarketingFeature)(nil), // 2: types.v1.Product.MarketingFeature
297 (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
298 (*Price)(nil), // 4: types.v1.Price
299 }
300 var file_types_v1_product_proto_depIdxs = []int32{
301 3, // 0: types.v1.Product.created_at:type_name -> google.protobuf.Timestamp
302 3, // 1: types.v1.Product.updated_at:type_name -> google.protobuf.Timestamp
303 4, // 2: types.v1.Product.default_price:type_name -> types.v1.Price
304 2, // 3: types.v1.Product.marketing_features:type_name -> types.v1.Product.MarketingFeature
305 0, // 4: types.v1.Product.scope:type_name -> types.v1.Product.Scope
306 5, // [5:5] is the sub-list for method output_type
307 5, // [5:5] is the sub-list for method input_type
308 5, // [5:5] is the sub-list for extension type_name
309 5, // [5:5] is the sub-list for extension extendee
310 0, // [0:5] is the sub-list for field type_name
311 }
312
313 func init() { file_types_v1_product_proto_init() }
314 func file_types_v1_product_proto_init() {
315 if File_types_v1_product_proto != nil {
316 return
317 }
318 file_types_v1_price_proto_init()
319 type x struct{}
320 out := protoimpl.TypeBuilder{
321 File: protoimpl.DescBuilder{
322 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
323 RawDescriptor: unsafe.Slice(unsafe.StringData(file_types_v1_product_proto_rawDesc), len(file_types_v1_product_proto_rawDesc)),
324 NumEnums: 1,
325 NumMessages: 2,
326 NumExtensions: 0,
327 NumServices: 0,
328 },
329 GoTypes: file_types_v1_product_proto_goTypes,
330 DependencyIndexes: file_types_v1_product_proto_depIdxs,
331 EnumInfos: file_types_v1_product_proto_enumTypes,
332 MessageInfos: file_types_v1_product_proto_msgTypes,
333 }.Build()
334 File_types_v1_product_proto = out.File
335 file_types_v1_product_proto_goTypes = nil
336 file_types_v1_product_proto_depIdxs = nil
337 }