This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
/
category.pb.go
884 lines (788 loc) · 34.7 KB
/
category.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: category.proto
package pb
import (
context "context"
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type Category struct {
// category id
CategoryId *wrappers.StringValue `protobuf:"bytes,1,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
// category name,app belong to a category,eg.[AI|Firewall|cache|...]
Name *wrappers.StringValue `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// the i18n of this category, json format, sample: {"zh_cn": "数据库", "en": "database"}
Locale *wrappers.StringValue `protobuf:"bytes,3,opt,name=locale,proto3" json:"locale,omitempty"`
// owner path, concat string group_path:user_id
OwnerPath *wrappers.StringValue `protobuf:"bytes,4,opt,name=owner_path,json=ownerPath,proto3" json:"owner_path,omitempty"`
// the time when category create
CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// the time when category update
UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// category description
Description *wrappers.StringValue `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
// category icon
Icon *wrappers.StringValue `protobuf:"bytes,8,opt,name=icon,proto3" json:"icon,omitempty"`
// owner
Owner *wrappers.StringValue `protobuf:"bytes,9,opt,name=owner,proto3" json:"owner,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Category) Reset() { *m = Category{} }
func (m *Category) String() string { return proto.CompactTextString(m) }
func (*Category) ProtoMessage() {}
func (*Category) Descriptor() ([]byte, []int) {
return fileDescriptor_1c6ef5ed29d8d1a1, []int{0}
}
func (m *Category) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Category.Unmarshal(m, b)
}
func (m *Category) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Category.Marshal(b, m, deterministic)
}
func (m *Category) XXX_Merge(src proto.Message) {
xxx_messageInfo_Category.Merge(m, src)
}
func (m *Category) XXX_Size() int {
return xxx_messageInfo_Category.Size(m)
}
func (m *Category) XXX_DiscardUnknown() {
xxx_messageInfo_Category.DiscardUnknown(m)
}
var xxx_messageInfo_Category proto.InternalMessageInfo
func (m *Category) GetCategoryId() *wrappers.StringValue {
if m != nil {
return m.CategoryId
}
return nil
}
func (m *Category) GetName() *wrappers.StringValue {
if m != nil {
return m.Name
}
return nil
}
func (m *Category) GetLocale() *wrappers.StringValue {
if m != nil {
return m.Locale
}
return nil
}
func (m *Category) GetOwnerPath() *wrappers.StringValue {
if m != nil {
return m.OwnerPath
}
return nil
}
func (m *Category) GetCreateTime() *timestamp.Timestamp {
if m != nil {
return m.CreateTime
}
return nil
}
func (m *Category) GetUpdateTime() *timestamp.Timestamp {
if m != nil {
return m.UpdateTime
}
return nil
}
func (m *Category) GetDescription() *wrappers.StringValue {
if m != nil {
return m.Description
}
return nil
}
func (m *Category) GetIcon() *wrappers.StringValue {
if m != nil {
return m.Icon
}
return nil
}
func (m *Category) GetOwner() *wrappers.StringValue {
if m != nil {
return m.Owner
}
return nil
}
type DescribeCategoriesRequest struct {
// query key, can fields with these fields(category_id, status, locale, owner, name), default return all categories
SearchWord *wrappers.StringValue `protobuf:"bytes,1,opt,name=search_word,json=searchWord,proto3" json:"search_word,omitempty"`
// sort key, order by sort_key, default create_time
SortKey *wrappers.StringValue `protobuf:"bytes,2,opt,name=sort_key,json=sortKey,proto3" json:"sort_key,omitempty"`
// value = 0 sort ASC, value = 1 sort DESC
Reverse *wrappers.BoolValue `protobuf:"bytes,3,opt,name=reverse,proto3" json:"reverse,omitempty"`
// data limit per page, default value 20, max value 200
Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
// data offset, default 0
Offset uint32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
// select column to display
DisplayColumns []string `protobuf:"bytes,6,rep,name=display_columns,json=displayColumns,proto3" json:"display_columns,omitempty"`
// category ids
CategoryId []string `protobuf:"bytes,7,rep,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
// category name
Name []string `protobuf:"bytes,8,rep,name=name,proto3" json:"name,omitempty"`
// owner
Owner []string `protobuf:"bytes,9,rep,name=owner,proto3" json:"owner,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DescribeCategoriesRequest) Reset() { *m = DescribeCategoriesRequest{} }
func (m *DescribeCategoriesRequest) String() string { return proto.CompactTextString(m) }
func (*DescribeCategoriesRequest) ProtoMessage() {}
func (*DescribeCategoriesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1c6ef5ed29d8d1a1, []int{1}
}
func (m *DescribeCategoriesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DescribeCategoriesRequest.Unmarshal(m, b)
}
func (m *DescribeCategoriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DescribeCategoriesRequest.Marshal(b, m, deterministic)
}
func (m *DescribeCategoriesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DescribeCategoriesRequest.Merge(m, src)
}
func (m *DescribeCategoriesRequest) XXX_Size() int {
return xxx_messageInfo_DescribeCategoriesRequest.Size(m)
}
func (m *DescribeCategoriesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DescribeCategoriesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DescribeCategoriesRequest proto.InternalMessageInfo
func (m *DescribeCategoriesRequest) GetSearchWord() *wrappers.StringValue {
if m != nil {
return m.SearchWord
}
return nil
}
func (m *DescribeCategoriesRequest) GetSortKey() *wrappers.StringValue {
if m != nil {
return m.SortKey
}
return nil
}
func (m *DescribeCategoriesRequest) GetReverse() *wrappers.BoolValue {
if m != nil {
return m.Reverse
}
return nil
}
func (m *DescribeCategoriesRequest) GetLimit() uint32 {
if m != nil {
return m.Limit
}
return 0
}
func (m *DescribeCategoriesRequest) GetOffset() uint32 {
if m != nil {
return m.Offset
}
return 0
}
func (m *DescribeCategoriesRequest) GetDisplayColumns() []string {
if m != nil {
return m.DisplayColumns
}
return nil
}
func (m *DescribeCategoriesRequest) GetCategoryId() []string {
if m != nil {
return m.CategoryId
}
return nil
}
func (m *DescribeCategoriesRequest) GetName() []string {
if m != nil {
return m.Name
}
return nil
}
func (m *DescribeCategoriesRequest) GetOwner() []string {
if m != nil {
return m.Owner
}
return nil
}
type DescribeCategoriesResponse struct {
// total count of qualified category
TotalCount uint32 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
// list of category
CategorySet []*Category `protobuf:"bytes,2,rep,name=category_set,json=categorySet,proto3" json:"category_set,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DescribeCategoriesResponse) Reset() { *m = DescribeCategoriesResponse{} }
func (m *DescribeCategoriesResponse) String() string { return proto.CompactTextString(m) }
func (*DescribeCategoriesResponse) ProtoMessage() {}
func (*DescribeCategoriesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_1c6ef5ed29d8d1a1, []int{2}
}
func (m *DescribeCategoriesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DescribeCategoriesResponse.Unmarshal(m, b)
}
func (m *DescribeCategoriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DescribeCategoriesResponse.Marshal(b, m, deterministic)
}
func (m *DescribeCategoriesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DescribeCategoriesResponse.Merge(m, src)
}
func (m *DescribeCategoriesResponse) XXX_Size() int {
return xxx_messageInfo_DescribeCategoriesResponse.Size(m)
}
func (m *DescribeCategoriesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DescribeCategoriesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_DescribeCategoriesResponse proto.InternalMessageInfo
func (m *DescribeCategoriesResponse) GetTotalCount() uint32 {
if m != nil {
return m.TotalCount
}
return 0
}
func (m *DescribeCategoriesResponse) GetCategorySet() []*Category {
if m != nil {
return m.CategorySet
}
return nil
}
type CreateCategoryRequest struct {
// required, category name
Name *wrappers.StringValue `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// the i18n of this category, json format, sample: {"zh_cn": "数据库", "en": "database"}
Locale *wrappers.StringValue `protobuf:"bytes,3,opt,name=locale,proto3" json:"locale,omitempty"`
// category description
Description *wrappers.StringValue `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// category icon
Icon *wrappers.BytesValue `protobuf:"bytes,5,opt,name=icon,proto3" json:"icon,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateCategoryRequest) Reset() { *m = CreateCategoryRequest{} }
func (m *CreateCategoryRequest) String() string { return proto.CompactTextString(m) }
func (*CreateCategoryRequest) ProtoMessage() {}
func (*CreateCategoryRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1c6ef5ed29d8d1a1, []int{3}
}
func (m *CreateCategoryRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateCategoryRequest.Unmarshal(m, b)
}
func (m *CreateCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateCategoryRequest.Marshal(b, m, deterministic)
}
func (m *CreateCategoryRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateCategoryRequest.Merge(m, src)
}
func (m *CreateCategoryRequest) XXX_Size() int {
return xxx_messageInfo_CreateCategoryRequest.Size(m)
}
func (m *CreateCategoryRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CreateCategoryRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CreateCategoryRequest proto.InternalMessageInfo
func (m *CreateCategoryRequest) GetName() *wrappers.StringValue {
if m != nil {
return m.Name
}
return nil
}
func (m *CreateCategoryRequest) GetLocale() *wrappers.StringValue {
if m != nil {
return m.Locale
}
return nil
}
func (m *CreateCategoryRequest) GetDescription() *wrappers.StringValue {
if m != nil {
return m.Description
}
return nil
}
func (m *CreateCategoryRequest) GetIcon() *wrappers.BytesValue {
if m != nil {
return m.Icon
}
return nil
}
type CreateCategoryResponse struct {
// id of category created
CategoryId *wrappers.StringValue `protobuf:"bytes,1,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CreateCategoryResponse) Reset() { *m = CreateCategoryResponse{} }
func (m *CreateCategoryResponse) String() string { return proto.CompactTextString(m) }
func (*CreateCategoryResponse) ProtoMessage() {}
func (*CreateCategoryResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_1c6ef5ed29d8d1a1, []int{4}
}
func (m *CreateCategoryResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CreateCategoryResponse.Unmarshal(m, b)
}
func (m *CreateCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CreateCategoryResponse.Marshal(b, m, deterministic)
}
func (m *CreateCategoryResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CreateCategoryResponse.Merge(m, src)
}
func (m *CreateCategoryResponse) XXX_Size() int {
return xxx_messageInfo_CreateCategoryResponse.Size(m)
}
func (m *CreateCategoryResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CreateCategoryResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CreateCategoryResponse proto.InternalMessageInfo
func (m *CreateCategoryResponse) GetCategoryId() *wrappers.StringValue {
if m != nil {
return m.CategoryId
}
return nil
}
type ModifyCategoryRequest struct {
// required, id of category to modify
CategoryId *wrappers.StringValue `protobuf:"bytes,1,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
// category name
Name *wrappers.StringValue `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// the i18n of this category, json format, sample: {"zh_cn": "数据库", "en": "database"}
Locale *wrappers.StringValue `protobuf:"bytes,3,opt,name=locale,proto3" json:"locale,omitempty"`
// category description
Description *wrappers.StringValue `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// category icon
Icon *wrappers.BytesValue `protobuf:"bytes,5,opt,name=icon,proto3" json:"icon,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ModifyCategoryRequest) Reset() { *m = ModifyCategoryRequest{} }
func (m *ModifyCategoryRequest) String() string { return proto.CompactTextString(m) }
func (*ModifyCategoryRequest) ProtoMessage() {}
func (*ModifyCategoryRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1c6ef5ed29d8d1a1, []int{5}
}
func (m *ModifyCategoryRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ModifyCategoryRequest.Unmarshal(m, b)
}
func (m *ModifyCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ModifyCategoryRequest.Marshal(b, m, deterministic)
}
func (m *ModifyCategoryRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ModifyCategoryRequest.Merge(m, src)
}
func (m *ModifyCategoryRequest) XXX_Size() int {
return xxx_messageInfo_ModifyCategoryRequest.Size(m)
}
func (m *ModifyCategoryRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ModifyCategoryRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ModifyCategoryRequest proto.InternalMessageInfo
func (m *ModifyCategoryRequest) GetCategoryId() *wrappers.StringValue {
if m != nil {
return m.CategoryId
}
return nil
}
func (m *ModifyCategoryRequest) GetName() *wrappers.StringValue {
if m != nil {
return m.Name
}
return nil
}
func (m *ModifyCategoryRequest) GetLocale() *wrappers.StringValue {
if m != nil {
return m.Locale
}
return nil
}
func (m *ModifyCategoryRequest) GetDescription() *wrappers.StringValue {
if m != nil {
return m.Description
}
return nil
}
func (m *ModifyCategoryRequest) GetIcon() *wrappers.BytesValue {
if m != nil {
return m.Icon
}
return nil
}
type ModifyCategoryResponse struct {
// id of category modified
CategoryId *wrappers.StringValue `protobuf:"bytes,1,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ModifyCategoryResponse) Reset() { *m = ModifyCategoryResponse{} }
func (m *ModifyCategoryResponse) String() string { return proto.CompactTextString(m) }
func (*ModifyCategoryResponse) ProtoMessage() {}
func (*ModifyCategoryResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_1c6ef5ed29d8d1a1, []int{6}
}
func (m *ModifyCategoryResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ModifyCategoryResponse.Unmarshal(m, b)
}
func (m *ModifyCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ModifyCategoryResponse.Marshal(b, m, deterministic)
}
func (m *ModifyCategoryResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ModifyCategoryResponse.Merge(m, src)
}
func (m *ModifyCategoryResponse) XXX_Size() int {
return xxx_messageInfo_ModifyCategoryResponse.Size(m)
}
func (m *ModifyCategoryResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ModifyCategoryResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ModifyCategoryResponse proto.InternalMessageInfo
func (m *ModifyCategoryResponse) GetCategoryId() *wrappers.StringValue {
if m != nil {
return m.CategoryId
}
return nil
}
type DeleteCategoriesRequest struct {
// required, ids of category to delete
CategoryId []string `protobuf:"bytes,1,rep,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
// if true force delete category
Force *wrappers.BoolValue `protobuf:"bytes,2,opt,name=force,proto3" json:"force,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteCategoriesRequest) Reset() { *m = DeleteCategoriesRequest{} }
func (m *DeleteCategoriesRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteCategoriesRequest) ProtoMessage() {}
func (*DeleteCategoriesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_1c6ef5ed29d8d1a1, []int{7}
}
func (m *DeleteCategoriesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteCategoriesRequest.Unmarshal(m, b)
}
func (m *DeleteCategoriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteCategoriesRequest.Marshal(b, m, deterministic)
}
func (m *DeleteCategoriesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteCategoriesRequest.Merge(m, src)
}
func (m *DeleteCategoriesRequest) XXX_Size() int {
return xxx_messageInfo_DeleteCategoriesRequest.Size(m)
}
func (m *DeleteCategoriesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteCategoriesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteCategoriesRequest proto.InternalMessageInfo
func (m *DeleteCategoriesRequest) GetCategoryId() []string {
if m != nil {
return m.CategoryId
}
return nil
}
func (m *DeleteCategoriesRequest) GetForce() *wrappers.BoolValue {
if m != nil {
return m.Force
}
return nil
}
type DeleteCategoriesResponse struct {
// ids of category to deleted
CategoryId []string `protobuf:"bytes,1,rep,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeleteCategoriesResponse) Reset() { *m = DeleteCategoriesResponse{} }
func (m *DeleteCategoriesResponse) String() string { return proto.CompactTextString(m) }
func (*DeleteCategoriesResponse) ProtoMessage() {}
func (*DeleteCategoriesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_1c6ef5ed29d8d1a1, []int{8}
}
func (m *DeleteCategoriesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteCategoriesResponse.Unmarshal(m, b)
}
func (m *DeleteCategoriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteCategoriesResponse.Marshal(b, m, deterministic)
}
func (m *DeleteCategoriesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteCategoriesResponse.Merge(m, src)
}
func (m *DeleteCategoriesResponse) XXX_Size() int {
return xxx_messageInfo_DeleteCategoriesResponse.Size(m)
}
func (m *DeleteCategoriesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteCategoriesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteCategoriesResponse proto.InternalMessageInfo
func (m *DeleteCategoriesResponse) GetCategoryId() []string {
if m != nil {
return m.CategoryId
}
return nil
}
func init() {
proto.RegisterType((*Category)(nil), "openpitrix.Category")
proto.RegisterType((*DescribeCategoriesRequest)(nil), "openpitrix.DescribeCategoriesRequest")
proto.RegisterType((*DescribeCategoriesResponse)(nil), "openpitrix.DescribeCategoriesResponse")
proto.RegisterType((*CreateCategoryRequest)(nil), "openpitrix.CreateCategoryRequest")
proto.RegisterType((*CreateCategoryResponse)(nil), "openpitrix.CreateCategoryResponse")
proto.RegisterType((*ModifyCategoryRequest)(nil), "openpitrix.ModifyCategoryRequest")
proto.RegisterType((*ModifyCategoryResponse)(nil), "openpitrix.ModifyCategoryResponse")
proto.RegisterType((*DeleteCategoriesRequest)(nil), "openpitrix.DeleteCategoriesRequest")
proto.RegisterType((*DeleteCategoriesResponse)(nil), "openpitrix.DeleteCategoriesResponse")
}
func init() { proto.RegisterFile("category.proto", fileDescriptor_1c6ef5ed29d8d1a1) }
var fileDescriptor_1c6ef5ed29d8d1a1 = []byte{
// 878 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x54, 0xcf, 0x6f, 0x1b, 0x45,
0x14, 0x96, 0x1d, 0xdb, 0x49, 0x9e, 0x49, 0x52, 0xa6, 0x69, 0xbb, 0x35, 0x15, 0x19, 0x96, 0x5f,
0xa1, 0x72, 0xec, 0x62, 0x8a, 0x2a, 0x11, 0x81, 0x94, 0xa4, 0x12, 0x42, 0xa8, 0x12, 0x72, 0x11,
0x95, 0xb8, 0x58, 0x93, 0xdd, 0x67, 0x7b, 0xc4, 0x78, 0x67, 0x99, 0x99, 0x8d, 0xb1, 0xb8, 0x71,
0xe0, 0xc8, 0x21, 0xf4, 0xff, 0xe0, 0xc8, 0x1f, 0xc2, 0xbf, 0xc0, 0x8d, 0x0b, 0x67, 0x4e, 0x68,
0x67, 0x67, 0x1d, 0x7b, 0x6d, 0x1c, 0x23, 0x10, 0xa8, 0x27, 0x6b, 0xe7, 0x7d, 0x9f, 0xe7, 0x9b,
0xf7, 0xbe, 0xef, 0xc1, 0x6e, 0xc0, 0x0c, 0x0e, 0xa4, 0x9a, 0xb4, 0x62, 0x25, 0x8d, 0x24, 0x20,
0x63, 0x8c, 0x62, 0x6e, 0x14, 0xff, 0xa6, 0xf1, 0xea, 0x40, 0xca, 0x81, 0xc0, 0xb6, 0xad, 0x9c,
0x27, 0xfd, 0xf6, 0x58, 0xb1, 0x38, 0x46, 0xa5, 0x33, 0x6c, 0xe3, 0xa0, 0x58, 0x37, 0x7c, 0x84,
0xda, 0xb0, 0x51, 0xec, 0x00, 0xf7, 0x1c, 0x80, 0xc5, 0xbc, 0xcd, 0xa2, 0x48, 0x1a, 0x66, 0xb8,
0x8c, 0x72, 0x7a, 0xd3, 0xfe, 0x04, 0x47, 0x03, 0x8c, 0x8e, 0xf4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0x9a, 0x34, 0xc4, 0x3e, 0x4b, 0x84, 0xa1, 0x0a, 0x4d, 0xa2, 0x22, 0xca,
0x84, 0x98, 0xb9, 0xea, 0xbb, 0x5f, 0x7e, 0xfd, 0xb1, 0x7c, 0x83, 0xec, 0xb6, 0x2f, 0xde, 0x6d,
0x5f, 0x9d, 0x92, 0xef, 0x4b, 0xb0, 0x3b, 0x1f, 0x50, 0xf2, 0xda, 0xdc, 0x22, 0x5b, 0xb6, 0xae,
0x1a, 0xfe, 0x2a, 0x88, 0x7b, 0xf0, 0xd1, 0xe5, 0xc9, 0xcb, 0x64, 0x2f, 0x2b, 0xe6, 0x3a, 0x26,
0x56, 0xc5, 0x4d, 0xbf, 0xa0, 0xe2, 0x83, 0xd2, 0x7d, 0x2b, 0x64, 0xde, 0x9e, 0xf3, 0x42, 0x96,
0x66, 0x7d, 0x5e, 0xc8, 0x72, 0x77, 0x3b, 0x21, 0x59, 0xb1, 0x20, 0xa4, 0xb3, 0x44, 0xc8, 0xf3,
0x12, 0xdc, 0x28, 0x1a, 0x8c, 0xbc, 0x3e, 0x3f, 0xe5, 0xa5, 0x66, 0x6f, 0xbc, 0xb1, 0x1a, 0xe4,
0xe4, 0xbc, 0x7f, 0x79, 0x72, 0x97, 0xdc, 0x39, 0x65, 0x26, 0x18, 0xd2, 0xd0, 0x82, 0x8a, 0x53,
0xba, 0x79, 0x7f, 0x51, 0xd6, 0x69, 0xe5, 0xcb, 0x72, 0x7c, 0x7e, 0x5e, 0xb3, 0xb9, 0x78, 0xef,
0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x15, 0x3d, 0x72, 0xea, 0x0a, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// CategoryManagerClient is the client API for CategoryManager service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type CategoryManagerClient interface {
// Get categories, support filter with these fields(category_id, status, locale, owner, name), default return all categories
DescribeCategories(ctx context.Context, in *DescribeCategoriesRequest, opts ...grpc.CallOption) (*DescribeCategoriesResponse, error)
// Create category
CreateCategory(ctx context.Context, in *CreateCategoryRequest, opts ...grpc.CallOption) (*CreateCategoryResponse, error)
// Modify category
ModifyCategory(ctx context.Context, in *ModifyCategoryRequest, opts ...grpc.CallOption) (*ModifyCategoryResponse, error)
// Batch delete categories
DeleteCategories(ctx context.Context, in *DeleteCategoriesRequest, opts ...grpc.CallOption) (*DeleteCategoriesResponse, error)
}
type categoryManagerClient struct {
cc *grpc.ClientConn
}
func NewCategoryManagerClient(cc *grpc.ClientConn) CategoryManagerClient {
return &categoryManagerClient{cc}
}
func (c *categoryManagerClient) DescribeCategories(ctx context.Context, in *DescribeCategoriesRequest, opts ...grpc.CallOption) (*DescribeCategoriesResponse, error) {
out := new(DescribeCategoriesResponse)
err := c.cc.Invoke(ctx, "/openpitrix.CategoryManager/DescribeCategories", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *categoryManagerClient) CreateCategory(ctx context.Context, in *CreateCategoryRequest, opts ...grpc.CallOption) (*CreateCategoryResponse, error) {
out := new(CreateCategoryResponse)
err := c.cc.Invoke(ctx, "/openpitrix.CategoryManager/CreateCategory", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *categoryManagerClient) ModifyCategory(ctx context.Context, in *ModifyCategoryRequest, opts ...grpc.CallOption) (*ModifyCategoryResponse, error) {
out := new(ModifyCategoryResponse)
err := c.cc.Invoke(ctx, "/openpitrix.CategoryManager/ModifyCategory", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *categoryManagerClient) DeleteCategories(ctx context.Context, in *DeleteCategoriesRequest, opts ...grpc.CallOption) (*DeleteCategoriesResponse, error) {
out := new(DeleteCategoriesResponse)
err := c.cc.Invoke(ctx, "/openpitrix.CategoryManager/DeleteCategories", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// CategoryManagerServer is the server API for CategoryManager service.
type CategoryManagerServer interface {
// Get categories, support filter with these fields(category_id, status, locale, owner, name), default return all categories
DescribeCategories(context.Context, *DescribeCategoriesRequest) (*DescribeCategoriesResponse, error)
// Create category
CreateCategory(context.Context, *CreateCategoryRequest) (*CreateCategoryResponse, error)
// Modify category
ModifyCategory(context.Context, *ModifyCategoryRequest) (*ModifyCategoryResponse, error)
// Batch delete categories
DeleteCategories(context.Context, *DeleteCategoriesRequest) (*DeleteCategoriesResponse, error)
}
// UnimplementedCategoryManagerServer can be embedded to have forward compatible implementations.
type UnimplementedCategoryManagerServer struct {
}
func (*UnimplementedCategoryManagerServer) DescribeCategories(ctx context.Context, req *DescribeCategoriesRequest) (*DescribeCategoriesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DescribeCategories not implemented")
}
func (*UnimplementedCategoryManagerServer) CreateCategory(ctx context.Context, req *CreateCategoryRequest) (*CreateCategoryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateCategory not implemented")
}
func (*UnimplementedCategoryManagerServer) ModifyCategory(ctx context.Context, req *ModifyCategoryRequest) (*ModifyCategoryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ModifyCategory not implemented")
}
func (*UnimplementedCategoryManagerServer) DeleteCategories(ctx context.Context, req *DeleteCategoriesRequest) (*DeleteCategoriesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteCategories not implemented")
}
func RegisterCategoryManagerServer(s *grpc.Server, srv CategoryManagerServer) {
s.RegisterService(&_CategoryManager_serviceDesc, srv)
}
func _CategoryManager_DescribeCategories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DescribeCategoriesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CategoryManagerServer).DescribeCategories(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/openpitrix.CategoryManager/DescribeCategories",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CategoryManagerServer).DescribeCategories(ctx, req.(*DescribeCategoriesRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CategoryManager_CreateCategory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateCategoryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CategoryManagerServer).CreateCategory(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/openpitrix.CategoryManager/CreateCategory",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CategoryManagerServer).CreateCategory(ctx, req.(*CreateCategoryRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CategoryManager_ModifyCategory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ModifyCategoryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CategoryManagerServer).ModifyCategory(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/openpitrix.CategoryManager/ModifyCategory",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CategoryManagerServer).ModifyCategory(ctx, req.(*ModifyCategoryRequest))
}
return interceptor(ctx, in, info, handler)
}
func _CategoryManager_DeleteCategories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteCategoriesRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CategoryManagerServer).DeleteCategories(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/openpitrix.CategoryManager/DeleteCategories",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CategoryManagerServer).DeleteCategories(ctx, req.(*DeleteCategoriesRequest))
}
return interceptor(ctx, in, info, handler)
}
var _CategoryManager_serviceDesc = grpc.ServiceDesc{
ServiceName: "openpitrix.CategoryManager",
HandlerType: (*CategoryManagerServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "DescribeCategories",
Handler: _CategoryManager_DescribeCategories_Handler,
},
{
MethodName: "CreateCategory",
Handler: _CategoryManager_CreateCategory_Handler,
},
{
MethodName: "ModifyCategory",
Handler: _CategoryManager_ModifyCategory_Handler,
},
{
MethodName: "DeleteCategories",
Handler: _CategoryManager_DeleteCategories_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "category.proto",
}