Debian Codegraph @

go/svc/product/v1/service.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: svc/product/v1/service.proto
6
7 package productv1
8
9 import (
10 v1 "github.com/humanlogio/api/go/types/v1"
11 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
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 ListProductRequest struct {
26 state protoimpl.MessageState `protogen:"open.v1"`
27 Cursor *v1.Cursor `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"`
28 Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
29 Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"`
30 // filters
31 Scope *v1.Product_Scope `protobuf:"varint,400,opt,name=scope,proto3,enum=types.v1.Product_Scope,oneof" json:"scope,omitempty"`
32 unknownFields protoimpl.UnknownFields
33 sizeCache protoimpl.SizeCache
34 }
35
36 func (x *ListProductRequest) Reset() {
37 *x = ListProductRequest{}
38 mi := &file_svc_product_v1_service_proto_msgTypes[0]
39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
40 ms.StoreMessageInfo(mi)
41 }
42
43 func (x *ListProductRequest) String() string {
44 return protoimpl.X.MessageStringOf(x)
45 }
46
47 func (*ListProductRequest) ProtoMessage() {}
48
49 func (x *ListProductRequest) ProtoReflect() protoreflect.Message {
50 mi := &file_svc_product_v1_service_proto_msgTypes[0]
51 if x != nil {
52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53 if ms.LoadMessageInfo() == nil {
54 ms.StoreMessageInfo(mi)
55 }
56 return ms
57 }
58 return mi.MessageOf(x)
59 }
60
61 // Deprecated: Use ListProductRequest.ProtoReflect.Descriptor instead.
62 func (*ListProductRequest) Descriptor() ([]byte, []int) {
63 return file_svc_product_v1_service_proto_rawDescGZIP(), []int{0}
64 }
65
66 func (x *ListProductRequest) GetCursor() *v1.Cursor {
67 if x != nil {
68 return x.Cursor
69 }
70 return nil
71 }
72
73 func (x *ListProductRequest) GetLimit() int32 {
74 if x != nil {
75 return x.Limit
76 }
77 return 0
78 }
79
80 func (x *ListProductRequest) GetCategory() string {
81 if x != nil {
82 return x.Category
83 }
84 return ""
85 }
86
87 func (x *ListProductRequest) GetScope() v1.Product_Scope {
88 if x != nil && x.Scope != nil {
89 return *x.Scope
90 }
91 return v1.Product_Scope(0)
92 }
93
94 type ListProductResponse struct {
95 state protoimpl.MessageState `protogen:"open.v1"`
96 Next *v1.Cursor `protobuf:"bytes,1,opt,name=next,proto3" json:"next,omitempty"`
97 Items []*ListProductResponse_ListItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
98 DefaultProduct *v1.Product `protobuf:"bytes,3,opt,name=default_product,json=defaultProduct,proto3" json:"default_product,omitempty"`
99 unknownFields protoimpl.UnknownFields
100 sizeCache protoimpl.SizeCache
101 }
102
103 func (x *ListProductResponse) Reset() {
104 *x = ListProductResponse{}
105 mi := &file_svc_product_v1_service_proto_msgTypes[1]
106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
107 ms.StoreMessageInfo(mi)
108 }
109
110 func (x *ListProductResponse) String() string {
111 return protoimpl.X.MessageStringOf(x)
112 }
113
114 func (*ListProductResponse) ProtoMessage() {}
115
116 func (x *ListProductResponse) ProtoReflect() protoreflect.Message {
117 mi := &file_svc_product_v1_service_proto_msgTypes[1]
118 if x != nil {
119 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
120 if ms.LoadMessageInfo() == nil {
121 ms.StoreMessageInfo(mi)
122 }
123 return ms
124 }
125 return mi.MessageOf(x)
126 }
127
128 // Deprecated: Use ListProductResponse.ProtoReflect.Descriptor instead.
129 func (*ListProductResponse) Descriptor() ([]byte, []int) {
130 return file_svc_product_v1_service_proto_rawDescGZIP(), []int{1}
131 }
132
133 func (x *ListProductResponse) GetNext() *v1.Cursor {
134 if x != nil {
135 return x.Next
136 }
137 return nil
138 }
139
140 func (x *ListProductResponse) GetItems() []*ListProductResponse_ListItem {
141 if x != nil {
142 return x.Items
143 }
144 return nil
145 }
146
147 func (x *ListProductResponse) GetDefaultProduct() *v1.Product {
148 if x != nil {
149 return x.DefaultProduct
150 }
151 return nil
152 }
153
154 type ListProductResponse_ListItem struct {
155 state protoimpl.MessageState `protogen:"open.v1"`
156 Product *v1.Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
157 Prices []*v1.Price `protobuf:"bytes,2,rep,name=prices,proto3" json:"prices,omitempty"`
158 unknownFields protoimpl.UnknownFields
159 sizeCache protoimpl.SizeCache
160 }
161
162 func (x *ListProductResponse_ListItem) Reset() {
163 *x = ListProductResponse_ListItem{}
164 mi := &file_svc_product_v1_service_proto_msgTypes[2]
165 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
166 ms.StoreMessageInfo(mi)
167 }
168
169 func (x *ListProductResponse_ListItem) String() string {
170 return protoimpl.X.MessageStringOf(x)
171 }
172
173 func (*ListProductResponse_ListItem) ProtoMessage() {}
174
175 func (x *ListProductResponse_ListItem) ProtoReflect() protoreflect.Message {
176 mi := &file_svc_product_v1_service_proto_msgTypes[2]
177 if x != nil {
178 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
179 if ms.LoadMessageInfo() == nil {
180 ms.StoreMessageInfo(mi)
181 }
182 return ms
183 }
184 return mi.MessageOf(x)
185 }
186
187 // Deprecated: Use ListProductResponse_ListItem.ProtoReflect.Descriptor instead.
188 func (*ListProductResponse_ListItem) Descriptor() ([]byte, []int) {
189 return file_svc_product_v1_service_proto_rawDescGZIP(), []int{1, 0}
190 }
191
192 func (x *ListProductResponse_ListItem) GetProduct() *v1.Product {
193 if x != nil {
194 return x.Product
195 }
196 return nil
197 }
198
199 func (x *ListProductResponse_ListItem) GetPrices() []*v1.Price {
200 if x != nil {
201 return x.Prices
202 }
203 return nil
204 }
205
206 var File_svc_product_v1_service_proto protoreflect.FileDescriptor
207
208 var file_svc_product_v1_service_proto_rawDesc = string([]byte{
209 0x0a, 0x1c, 0x73, 0x76, 0x63, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2f, 0x76, 0x31,
210 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e,
211 0x73, 0x76, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x1a, 0x15,
212 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x2e,
213 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f,
214 0x70, 0x72, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x74, 0x79, 0x70,
215 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72,
216 0x6f, 0x74, 0x6f, 0x22, 0xaf, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x64,
217 0x75, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x06, 0x63, 0x75,
218 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x79, 0x70,
219 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x06, 0x63, 0x75,
220 0x72, 0x73, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20,
221 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61,
222 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61,
223 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x33, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18,
224 0x90, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76,
225 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x48,
226 0x00, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f,
227 0x73, 0x63, 0x6f, 0x70, 0x65, 0x22, 0x9d, 0x02, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72,
228 0x6f, 0x64, 0x75, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a,
229 0x04, 0x6e, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x79,
230 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x52, 0x04, 0x6e,
231 0x65, 0x78, 0x74, 0x12, 0x42, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03,
232 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
233 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x52,
234 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d,
235 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x3a, 0x0a, 0x0f, 0x64, 0x65, 0x66, 0x61, 0x75,
236 0x6c, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
237 0x32, 0x11, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x64,
238 0x75, 0x63, 0x74, 0x52, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x6f, 0x64,
239 0x75, 0x63, 0x74, 0x1a, 0x60, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x12,
240 0x2b, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
241 0x32, 0x11, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x64,
242 0x75, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x12, 0x27, 0x0a, 0x06,
243 0x70, 0x72, 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74,
244 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x06, 0x70,
245 0x72, 0x69, 0x63, 0x65, 0x73, 0x32, 0x68, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
246 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x50,
247 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x12, 0x22, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x70, 0x72, 0x6f,
248 0x64, 0x75, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x64,
249 0x75, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x73, 0x76, 0x63,
250 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74,
251 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42,
252 0xb3, 0x01, 0x0a, 0x12, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x76, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x64,
253 0x75, 0x63, 0x74, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50,
254 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
255 0x6f, 0x6d, 0x2f, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x6c, 0x6f, 0x67, 0x69, 0x6f, 0x2f, 0x61, 0x70,
256 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x76, 0x63, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
257 0x2f, 0x76, 0x31, 0x3b, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x76, 0x31, 0xa2, 0x02, 0x03,
258 0x53, 0x50, 0x58, 0xaa, 0x02, 0x0e, 0x53, 0x76, 0x63, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63,
259 0x74, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0e, 0x53, 0x76, 0x63, 0x5c, 0x50, 0x72, 0x6f, 0x64, 0x75,
260 0x63, 0x74, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1a, 0x53, 0x76, 0x63, 0x5c, 0x50, 0x72, 0x6f, 0x64,
261 0x75, 0x63, 0x74, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
262 0x74, 0x61, 0xea, 0x02, 0x10, 0x53, 0x76, 0x63, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63,
263 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
264 })
265
266 var (
267 file_svc_product_v1_service_proto_rawDescOnce sync.Once
268 file_svc_product_v1_service_proto_rawDescData []byte
269 )
270
271 func file_svc_product_v1_service_proto_rawDescGZIP() []byte {
272 file_svc_product_v1_service_proto_rawDescOnce.Do(func() {
273 file_svc_product_v1_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_svc_product_v1_service_proto_rawDesc), len(file_svc_product_v1_service_proto_rawDesc)))
274 })
275 return file_svc_product_v1_service_proto_rawDescData
276 }
277
278 var file_svc_product_v1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
279 var file_svc_product_v1_service_proto_goTypes = []any{
280 (*ListProductRequest)(nil), // 0: svc.product.v1.ListProductRequest
281 (*ListProductResponse)(nil), // 1: svc.product.v1.ListProductResponse
282 (*ListProductResponse_ListItem)(nil), // 2: svc.product.v1.ListProductResponse.ListItem
283 (*v1.Cursor)(nil), // 3: types.v1.Cursor
284 (v1.Product_Scope)(0), // 4: types.v1.Product.Scope
285 (*v1.Product)(nil), // 5: types.v1.Product
286 (*v1.Price)(nil), // 6: types.v1.Price
287 }
288 var file_svc_product_v1_service_proto_depIdxs = []int32{
289 3, // 0: svc.product.v1.ListProductRequest.cursor:type_name -> types.v1.Cursor
290 4, // 1: svc.product.v1.ListProductRequest.scope:type_name -> types.v1.Product.Scope
291 3, // 2: svc.product.v1.ListProductResponse.next:type_name -> types.v1.Cursor
292 2, // 3: svc.product.v1.ListProductResponse.items:type_name -> svc.product.v1.ListProductResponse.ListItem
293 5, // 4: svc.product.v1.ListProductResponse.default_product:type_name -> types.v1.Product
294 5, // 5: svc.product.v1.ListProductResponse.ListItem.product:type_name -> types.v1.Product
295 6, // 6: svc.product.v1.ListProductResponse.ListItem.prices:type_name -> types.v1.Price
296 0, // 7: svc.product.v1.ProductService.ListProduct:input_type -> svc.product.v1.ListProductRequest
297 1, // 8: svc.product.v1.ProductService.ListProduct:output_type -> svc.product.v1.ListProductResponse
298 8, // [8:9] is the sub-list for method output_type
299 7, // [7:8] is the sub-list for method input_type
300 7, // [7:7] is the sub-list for extension type_name
301 7, // [7:7] is the sub-list for extension extendee
302 0, // [0:7] is the sub-list for field type_name
303 }
304
305 func init() { file_svc_product_v1_service_proto_init() }
306 func file_svc_product_v1_service_proto_init() {
307 if File_svc_product_v1_service_proto != nil {
308 return
309 }
310 file_svc_product_v1_service_proto_msgTypes[0].OneofWrappers = []any{}
311 type x struct{}
312 out := protoimpl.TypeBuilder{
313 File: protoimpl.DescBuilder{
314 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
315 RawDescriptor: unsafe.Slice(unsafe.StringData(file_svc_product_v1_service_proto_rawDesc), len(file_svc_product_v1_service_proto_rawDesc)),
316 NumEnums: 0,
317 NumMessages: 3,
318 NumExtensions: 0,
319 NumServices: 1,
320 },
321 GoTypes: file_svc_product_v1_service_proto_goTypes,
322 DependencyIndexes: file_svc_product_v1_service_proto_depIdxs,
323 MessageInfos: file_svc_product_v1_service_proto_msgTypes,
324 }.Build()
325 File_svc_product_v1_service_proto = out.File
326 file_svc_product_v1_service_proto_goTypes = nil
327 file_svc_product_v1_service_proto_depIdxs = nil
328 }