-
Notifications
You must be signed in to change notification settings - Fork 1
/
support.pb.go
3263 lines (3129 loc) · 83.3 KB
/
support.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
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: support.proto
package v1
import (
context "context"
fmt "fmt"
v1 "github.com/arangodb-managed/apis/common/v1"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
)
// 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
// SupportRequest contains information about the request
type SupportRequest struct {
// ID of the request
// This is a read-only field
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Name of the user who submitted the support request
// This is a required field
UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
// User ID is only provided if the user submitting the request has authenticated
// This is an optional field
UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
// Email address of the user if applicable submitting the request
EmailAddress string `protobuf:"bytes,4,opt,name=email_address,json=emailAddress,proto3" json:"email_address,omitempty"`
// Optional identifier of the organization that is the subject of the support request
OrganizationId string `protobuf:"bytes,5,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
// Optional identifier of the project that is the subject of the support request
ProjectId string `protobuf:"bytes,6,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// Optional identifier of the deployment that is the subject of the support request
DeploymentId string `protobuf:"bytes,7,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"`
// Desciption which will contain the details provided by the submitter
Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
// Severity of the request. Can be one of the following: (low|normal|high|critical)
Severity string `protobuf:"bytes,9,opt,name=severity,proto3" json:"severity,omitempty"`
// Optional title which will contain the summary provided by the submitter (max 100 characters)
// If not provided a title will be extracted from the description.
Title string `protobuf:"bytes,10,opt,name=title,proto3" json:"title,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SupportRequest) Reset() { *m = SupportRequest{} }
func (m *SupportRequest) String() string { return proto.CompactTextString(m) }
func (*SupportRequest) ProtoMessage() {}
func (*SupportRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_61fc54fa3a6fab31, []int{0}
}
func (m *SupportRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SupportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SupportRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *SupportRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SupportRequest.Merge(m, src)
}
func (m *SupportRequest) XXX_Size() int {
return m.Size()
}
func (m *SupportRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SupportRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SupportRequest proto.InternalMessageInfo
func (m *SupportRequest) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *SupportRequest) GetUserName() string {
if m != nil {
return m.UserName
}
return ""
}
func (m *SupportRequest) GetUserId() string {
if m != nil {
return m.UserId
}
return ""
}
func (m *SupportRequest) GetEmailAddress() string {
if m != nil {
return m.EmailAddress
}
return ""
}
func (m *SupportRequest) GetOrganizationId() string {
if m != nil {
return m.OrganizationId
}
return ""
}
func (m *SupportRequest) GetProjectId() string {
if m != nil {
return m.ProjectId
}
return ""
}
func (m *SupportRequest) GetDeploymentId() string {
if m != nil {
return m.DeploymentId
}
return ""
}
func (m *SupportRequest) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *SupportRequest) GetSeverity() string {
if m != nil {
return m.Severity
}
return ""
}
func (m *SupportRequest) GetTitle() string {
if m != nil {
return m.Title
}
return ""
}
// Plan represents a specific support plan such as Bronze, Silver or Gold.
type Plan struct {
// System identifier of the plan.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Name of the plan.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// If set, this plan is the default support plan.
IsDefault bool `protobuf:"varint,3,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
// Human readable description of the plan
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
// If set, this plan is shown, but not selectable.
IsUnavailable bool `protobuf:"varint,5,opt,name=is_unavailable,json=isUnavailable,proto3" json:"is_unavailable,omitempty"`
// SLA times to first response for various situations.
// When this plan is unavailable, this field is optional.
FirstResponseTimes *ResponseTimes `protobuf:"bytes,6,opt,name=first_response_times,json=firstResponseTimes,proto3" json:"first_response_times,omitempty"`
// Support hours applicable to the SLA.
// Possible values are "business" and "24x7".
SupportHours string `protobuf:"bytes,7,opt,name=support_hours,json=supportHours,proto3" json:"support_hours,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Plan) Reset() { *m = Plan{} }
func (m *Plan) String() string { return proto.CompactTextString(m) }
func (*Plan) ProtoMessage() {}
func (*Plan) Descriptor() ([]byte, []int) {
return fileDescriptor_61fc54fa3a6fab31, []int{1}
}
func (m *Plan) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Plan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Plan.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Plan) XXX_Merge(src proto.Message) {
xxx_messageInfo_Plan.Merge(m, src)
}
func (m *Plan) XXX_Size() int {
return m.Size()
}
func (m *Plan) XXX_DiscardUnknown() {
xxx_messageInfo_Plan.DiscardUnknown(m)
}
var xxx_messageInfo_Plan proto.InternalMessageInfo
func (m *Plan) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Plan) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Plan) GetIsDefault() bool {
if m != nil {
return m.IsDefault
}
return false
}
func (m *Plan) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *Plan) GetIsUnavailable() bool {
if m != nil {
return m.IsUnavailable
}
return false
}
func (m *Plan) GetFirstResponseTimes() *ResponseTimes {
if m != nil {
return m.FirstResponseTimes
}
return nil
}
func (m *Plan) GetSupportHours() string {
if m != nil {
return m.SupportHours
}
return ""
}
// Response for various categories on situations.
// All values are in minutes.
// A value of 0 means "best effort".
type ResponseTimes struct {
// Response time for operation-impeding Error in a production environment.
Critical int32 `protobuf:"varint,1,opt,name=critical,proto3" json:"critical,omitempty"`
// Response time for operation-limiting error.
High int32 `protobuf:"varint,2,opt,name=high,proto3" json:"high,omitempty"`
// Response time for minor error.
Normal int32 `protobuf:"varint,3,opt,name=normal,proto3" json:"normal,omitempty"`
// Response time for usage question.
Low int32 `protobuf:"varint,4,opt,name=low,proto3" json:"low,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResponseTimes) Reset() { *m = ResponseTimes{} }
func (m *ResponseTimes) String() string { return proto.CompactTextString(m) }
func (*ResponseTimes) ProtoMessage() {}
func (*ResponseTimes) Descriptor() ([]byte, []int) {
return fileDescriptor_61fc54fa3a6fab31, []int{2}
}
func (m *ResponseTimes) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ResponseTimes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ResponseTimes.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ResponseTimes) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResponseTimes.Merge(m, src)
}
func (m *ResponseTimes) XXX_Size() int {
return m.Size()
}
func (m *ResponseTimes) XXX_DiscardUnknown() {
xxx_messageInfo_ResponseTimes.DiscardUnknown(m)
}
var xxx_messageInfo_ResponseTimes proto.InternalMessageInfo
func (m *ResponseTimes) GetCritical() int32 {
if m != nil {
return m.Critical
}
return 0
}
func (m *ResponseTimes) GetHigh() int32 {
if m != nil {
return m.High
}
return 0
}
func (m *ResponseTimes) GetNormal() int32 {
if m != nil {
return m.Normal
}
return 0
}
func (m *ResponseTimes) GetLow() int32 {
if m != nil {
return m.Low
}
return 0
}
// List of plans.
type PlanList struct {
Items []*Plan `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PlanList) Reset() { *m = PlanList{} }
func (m *PlanList) String() string { return proto.CompactTextString(m) }
func (*PlanList) ProtoMessage() {}
func (*PlanList) Descriptor() ([]byte, []int) {
return fileDescriptor_61fc54fa3a6fab31, []int{3}
}
func (m *PlanList) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PlanList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PlanList.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PlanList) XXX_Merge(src proto.Message) {
xxx_messageInfo_PlanList.Merge(m, src)
}
func (m *PlanList) XXX_Size() int {
return m.Size()
}
func (m *PlanList) XXX_DiscardUnknown() {
xxx_messageInfo_PlanList.DiscardUnknown(m)
}
var xxx_messageInfo_PlanList proto.InternalMessageInfo
func (m *PlanList) GetItems() []*Plan {
if m != nil {
return m.Items
}
return nil
}
// Arguments for a ListPlans request
type ListPlansRequest struct {
// Common list options
Options *v1.ListOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
// If set, list plans as they are available for the organization identified by this ID.
OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
// If set, list plans as they are available for the deployment model identified by this field.
Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListPlansRequest) Reset() { *m = ListPlansRequest{} }
func (m *ListPlansRequest) String() string { return proto.CompactTextString(m) }
func (*ListPlansRequest) ProtoMessage() {}
func (*ListPlansRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_61fc54fa3a6fab31, []int{4}
}
func (m *ListPlansRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ListPlansRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ListPlansRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ListPlansRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListPlansRequest.Merge(m, src)
}
func (m *ListPlansRequest) XXX_Size() int {
return m.Size()
}
func (m *ListPlansRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListPlansRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListPlansRequest proto.InternalMessageInfo
func (m *ListPlansRequest) GetOptions() *v1.ListOptions {
if m != nil {
return m.Options
}
return nil
}
func (m *ListPlansRequest) GetOrganizationId() string {
if m != nil {
return m.OrganizationId
}
return ""
}
func (m *ListPlansRequest) GetModel() string {
if m != nil {
return m.Model
}
return ""
}
// FaqGroup contains groups of faq entries
type FaqGroup struct {
// ID of the FAQ Group
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Name of the FAQ Group
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FaqGroup) Reset() { *m = FaqGroup{} }
func (m *FaqGroup) String() string { return proto.CompactTextString(m) }
func (*FaqGroup) ProtoMessage() {}
func (*FaqGroup) Descriptor() ([]byte, []int) {
return fileDescriptor_61fc54fa3a6fab31, []int{5}
}
func (m *FaqGroup) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FaqGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FaqGroup.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *FaqGroup) XXX_Merge(src proto.Message) {
xxx_messageInfo_FaqGroup.Merge(m, src)
}
func (m *FaqGroup) XXX_Size() int {
return m.Size()
}
func (m *FaqGroup) XXX_DiscardUnknown() {
xxx_messageInfo_FaqGroup.DiscardUnknown(m)
}
var xxx_messageInfo_FaqGroup proto.InternalMessageInfo
func (m *FaqGroup) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *FaqGroup) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// List of faq groups.
type FaqGroupList struct {
Items []*FaqGroup `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FaqGroupList) Reset() { *m = FaqGroupList{} }
func (m *FaqGroupList) String() string { return proto.CompactTextString(m) }
func (*FaqGroupList) ProtoMessage() {}
func (*FaqGroupList) Descriptor() ([]byte, []int) {
return fileDescriptor_61fc54fa3a6fab31, []int{6}
}
func (m *FaqGroupList) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FaqGroupList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FaqGroupList.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *FaqGroupList) XXX_Merge(src proto.Message) {
xxx_messageInfo_FaqGroupList.Merge(m, src)
}
func (m *FaqGroupList) XXX_Size() int {
return m.Size()
}
func (m *FaqGroupList) XXX_DiscardUnknown() {
xxx_messageInfo_FaqGroupList.DiscardUnknown(m)
}
var xxx_messageInfo_FaqGroupList proto.InternalMessageInfo
func (m *FaqGroupList) GetItems() []*FaqGroup {
if m != nil {
return m.Items
}
return nil
}
// FaqGroupEntry contains entries for a group
type FaqGroupEntry struct {
// The question of this entry
Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"`
// The answer to the question in this entry
Answer string `protobuf:"bytes,2,opt,name=answer,proto3" json:"answer,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FaqGroupEntry) Reset() { *m = FaqGroupEntry{} }
func (m *FaqGroupEntry) String() string { return proto.CompactTextString(m) }
func (*FaqGroupEntry) ProtoMessage() {}
func (*FaqGroupEntry) Descriptor() ([]byte, []int) {
return fileDescriptor_61fc54fa3a6fab31, []int{7}
}
func (m *FaqGroupEntry) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FaqGroupEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FaqGroupEntry.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *FaqGroupEntry) XXX_Merge(src proto.Message) {
xxx_messageInfo_FaqGroupEntry.Merge(m, src)
}
func (m *FaqGroupEntry) XXX_Size() int {
return m.Size()
}
func (m *FaqGroupEntry) XXX_DiscardUnknown() {
xxx_messageInfo_FaqGroupEntry.DiscardUnknown(m)
}
var xxx_messageInfo_FaqGroupEntry proto.InternalMessageInfo
func (m *FaqGroupEntry) GetQuestion() string {
if m != nil {
return m.Question
}
return ""
}
func (m *FaqGroupEntry) GetAnswer() string {
if m != nil {
return m.Answer
}
return ""
}
// List of faq group entries.
type FaqGroupEntryList struct {
Items []*FaqGroupEntry `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FaqGroupEntryList) Reset() { *m = FaqGroupEntryList{} }
func (m *FaqGroupEntryList) String() string { return proto.CompactTextString(m) }
func (*FaqGroupEntryList) ProtoMessage() {}
func (*FaqGroupEntryList) Descriptor() ([]byte, []int) {
return fileDescriptor_61fc54fa3a6fab31, []int{8}
}
func (m *FaqGroupEntryList) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FaqGroupEntryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FaqGroupEntryList.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *FaqGroupEntryList) XXX_Merge(src proto.Message) {
xxx_messageInfo_FaqGroupEntryList.Merge(m, src)
}
func (m *FaqGroupEntryList) XXX_Size() int {
return m.Size()
}
func (m *FaqGroupEntryList) XXX_DiscardUnknown() {
xxx_messageInfo_FaqGroupEntryList.DiscardUnknown(m)
}
var xxx_messageInfo_FaqGroupEntryList proto.InternalMessageInfo
func (m *FaqGroupEntryList) GetItems() []*FaqGroupEntry {
if m != nil {
return m.Items
}
return nil
}
func init() {
proto.RegisterType((*SupportRequest)(nil), "arangodb.cloud.support.v1.SupportRequest")
proto.RegisterType((*Plan)(nil), "arangodb.cloud.support.v1.Plan")
proto.RegisterType((*ResponseTimes)(nil), "arangodb.cloud.support.v1.ResponseTimes")
proto.RegisterType((*PlanList)(nil), "arangodb.cloud.support.v1.PlanList")
proto.RegisterType((*ListPlansRequest)(nil), "arangodb.cloud.support.v1.ListPlansRequest")
proto.RegisterType((*FaqGroup)(nil), "arangodb.cloud.support.v1.FaqGroup")
proto.RegisterType((*FaqGroupList)(nil), "arangodb.cloud.support.v1.FaqGroupList")
proto.RegisterType((*FaqGroupEntry)(nil), "arangodb.cloud.support.v1.FaqGroupEntry")
proto.RegisterType((*FaqGroupEntryList)(nil), "arangodb.cloud.support.v1.FaqGroupEntryList")
}
func init() { proto.RegisterFile("support.proto", fileDescriptor_61fc54fa3a6fab31) }
var fileDescriptor_61fc54fa3a6fab31 = []byte{
// 918 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x56, 0x4f, 0x6f, 0x1b, 0x45,
0x14, 0x67, 0x9d, 0xd8, 0xb1, 0x5f, 0xea, 0x50, 0x86, 0xd0, 0xba, 0x9b, 0xe6, 0x4f, 0xd7, 0x54,
0x0d, 0x2d, 0xb5, 0x49, 0x10, 0x48, 0x20, 0x01, 0x0a, 0x6d, 0x09, 0x96, 0x10, 0x54, 0x1b, 0xe0,
0xd0, 0x8b, 0x35, 0xf1, 0xbe, 0x6c, 0x06, 0xed, 0xee, 0x6c, 0x66, 0x66, 0xdd, 0x86, 0xd2, 0x4b,
0x3f, 0x02, 0xbd, 0xf4, 0xcc, 0xe7, 0xe0, 0xc4, 0x89, 0x23, 0x12, 0x5f, 0x00, 0x05, 0x3e, 0x08,
0x9a, 0xb7, 0xbb, 0xa9, 0xed, 0xc6, 0x89, 0x6f, 0xf3, 0x7e, 0xf3, 0x7b, 0xef, 0xfd, 0xe6, 0x37,
0x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xeb, 0x7b, 0xe7, 0xb4, 0x1f, 0xa7, 0xba, 0xb3, 0x53, 0xbd, 0xdb, 0x24, 0xf3, 0x5d, 0x6f, 0x7d,
0x52, 0x66, 0xb1, 0x54, 0x39, 0x4f, 0x7f, 0xea, 0xdc, 0xfe, 0xf2, 0xb3, 0x3f, 0x4f, 0xd6, 0x9c,
0xbf, 0x4e, 0xd6, 0x9c, 0x7f, 0x4e, 0xd6, 0x9c, 0x97, 0xff, 0xae, 0xbd, 0xf1, 0xe8, 0x4e, 0x28,
0xcc, 0x61, 0xb6, 0x6f, 0x0d, 0xeb, 0x96, 0x2d, 0xef, 0xc6, 0x3c, 0xe1, 0x21, 0x06, 0xb6, 0xa0,
0x1e, 0xa9, 0xb8, 0x5f, 0xa3, 0xff, 0x0d, 0x1f, 0xfe, 0x1f, 0x00, 0x00, 0xff, 0xff, 0x47, 0xdd,
0xc3, 0x6a, 0x99, 0x08, 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
// SupportServiceClient is the client API for SupportService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SupportServiceClient interface {
// Get the current API version of this service.
// Required permissions:
// - None
GetAPIVersion(ctx context.Context, in *v1.Empty, opts ...grpc.CallOption) (*v1.Version, error)
// Fetch all support plans that are supported by the ArangoDB cloud.
// Required permissions:
// - None
ListPlans(ctx context.Context, in *ListPlansRequest, opts ...grpc.CallOption) (*PlanList, error)
// Fetch a support plan by its id.
// Required permissions:
// - None
GetPlan(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*Plan, error)
// Fetch all FAQ groups.
// Required permissions:
// - None
ListFaqGroups(ctx context.Context, in *v1.ListOptions, opts ...grpc.CallOption) (*FaqGroupList, error)
// Fetch all FAQ group entries of the FAQ group identified by the given context ID.
// Required permissions:
// - None
ListFaqGroupEntries(ctx context.Context, in *v1.ListOptions, opts ...grpc.CallOption) (*FaqGroupEntryList, error)
// Submit a support request.
// Required permissions:
// - resourcemanager.organization.get (if organization id is set)
// - resourcemanager.project.get (if project id is set)
// - data.deployment.get (if deployment id is set)
// - None (if no ids are set)
CreateSupportRequest(ctx context.Context, in *SupportRequest, opts ...grpc.CallOption) (*SupportRequest, error)
}
type supportServiceClient struct {
cc *grpc.ClientConn
}
func NewSupportServiceClient(cc *grpc.ClientConn) SupportServiceClient {
return &supportServiceClient{cc}
}
func (c *supportServiceClient) GetAPIVersion(ctx context.Context, in *v1.Empty, opts ...grpc.CallOption) (*v1.Version, error) {
out := new(v1.Version)
err := c.cc.Invoke(ctx, "/arangodb.cloud.support.v1.SupportService/GetAPIVersion", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *supportServiceClient) ListPlans(ctx context.Context, in *ListPlansRequest, opts ...grpc.CallOption) (*PlanList, error) {
out := new(PlanList)
err := c.cc.Invoke(ctx, "/arangodb.cloud.support.v1.SupportService/ListPlans", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *supportServiceClient) GetPlan(ctx context.Context, in *v1.IDOptions, opts ...grpc.CallOption) (*Plan, error) {
out := new(Plan)
err := c.cc.Invoke(ctx, "/arangodb.cloud.support.v1.SupportService/GetPlan", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *supportServiceClient) ListFaqGroups(ctx context.Context, in *v1.ListOptions, opts ...grpc.CallOption) (*FaqGroupList, error) {
out := new(FaqGroupList)
err := c.cc.Invoke(ctx, "/arangodb.cloud.support.v1.SupportService/ListFaqGroups", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *supportServiceClient) ListFaqGroupEntries(ctx context.Context, in *v1.ListOptions, opts ...grpc.CallOption) (*FaqGroupEntryList, error) {
out := new(FaqGroupEntryList)
err := c.cc.Invoke(ctx, "/arangodb.cloud.support.v1.SupportService/ListFaqGroupEntries", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *supportServiceClient) CreateSupportRequest(ctx context.Context, in *SupportRequest, opts ...grpc.CallOption) (*SupportRequest, error) {
out := new(SupportRequest)
err := c.cc.Invoke(ctx, "/arangodb.cloud.support.v1.SupportService/CreateSupportRequest", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// SupportServiceServer is the server API for SupportService service.
type SupportServiceServer interface {
// Get the current API version of this service.
// Required permissions:
// - None
GetAPIVersion(context.Context, *v1.Empty) (*v1.Version, error)
// Fetch all support plans that are supported by the ArangoDB cloud.
// Required permissions:
// - None
ListPlans(context.Context, *ListPlansRequest) (*PlanList, error)
// Fetch a support plan by its id.
// Required permissions:
// - None
GetPlan(context.Context, *v1.IDOptions) (*Plan, error)
// Fetch all FAQ groups.
// Required permissions:
// - None
ListFaqGroups(context.Context, *v1.ListOptions) (*FaqGroupList, error)
// Fetch all FAQ group entries of the FAQ group identified by the given context ID.
// Required permissions:
// - None
ListFaqGroupEntries(context.Context, *v1.ListOptions) (*FaqGroupEntryList, error)
// Submit a support request.
// Required permissions:
// - resourcemanager.organization.get (if organization id is set)
// - resourcemanager.project.get (if project id is set)
// - data.deployment.get (if deployment id is set)
// - None (if no ids are set)
CreateSupportRequest(context.Context, *SupportRequest) (*SupportRequest, error)
}
// UnimplementedSupportServiceServer can be embedded to have forward compatible implementations.
type UnimplementedSupportServiceServer struct {
}
func (*UnimplementedSupportServiceServer) GetAPIVersion(ctx context.Context, req *v1.Empty) (*v1.Version, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAPIVersion not implemented")
}
func (*UnimplementedSupportServiceServer) ListPlans(ctx context.Context, req *ListPlansRequest) (*PlanList, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListPlans not implemented")
}
func (*UnimplementedSupportServiceServer) GetPlan(ctx context.Context, req *v1.IDOptions) (*Plan, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetPlan not implemented")
}
func (*UnimplementedSupportServiceServer) ListFaqGroups(ctx context.Context, req *v1.ListOptions) (*FaqGroupList, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListFaqGroups not implemented")
}
func (*UnimplementedSupportServiceServer) ListFaqGroupEntries(ctx context.Context, req *v1.ListOptions) (*FaqGroupEntryList, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListFaqGroupEntries not implemented")
}
func (*UnimplementedSupportServiceServer) CreateSupportRequest(ctx context.Context, req *SupportRequest) (*SupportRequest, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateSupportRequest not implemented")
}
func RegisterSupportServiceServer(s *grpc.Server, srv SupportServiceServer) {
s.RegisterService(&_SupportService_serviceDesc, srv)
}
func _SupportService_GetAPIVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SupportServiceServer).GetAPIVersion(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/arangodb.cloud.support.v1.SupportService/GetAPIVersion",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SupportServiceServer).GetAPIVersion(ctx, req.(*v1.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _SupportService_ListPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListPlansRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SupportServiceServer).ListPlans(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/arangodb.cloud.support.v1.SupportService/ListPlans",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SupportServiceServer).ListPlans(ctx, req.(*ListPlansRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SupportService_GetPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1.IDOptions)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SupportServiceServer).GetPlan(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/arangodb.cloud.support.v1.SupportService/GetPlan",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SupportServiceServer).GetPlan(ctx, req.(*v1.IDOptions))
}
return interceptor(ctx, in, info, handler)
}
func _SupportService_ListFaqGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1.ListOptions)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SupportServiceServer).ListFaqGroups(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/arangodb.cloud.support.v1.SupportService/ListFaqGroups",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SupportServiceServer).ListFaqGroups(ctx, req.(*v1.ListOptions))
}
return interceptor(ctx, in, info, handler)
}
func _SupportService_ListFaqGroupEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(v1.ListOptions)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SupportServiceServer).ListFaqGroupEntries(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/arangodb.cloud.support.v1.SupportService/ListFaqGroupEntries",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SupportServiceServer).ListFaqGroupEntries(ctx, req.(*v1.ListOptions))
}
return interceptor(ctx, in, info, handler)
}