-
Notifications
You must be signed in to change notification settings - Fork 1
/
alerting_policy_service.pb.go
2955 lines (2629 loc) · 134 KB
/
alerting_policy_service.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-goten-go
// File: edgelq/monitoring/proto/v3/alerting_policy_service.proto
// DO NOT EDIT!!!
package alerting_policy_client
import (
"fmt"
"reflect"
"sync"
"google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto"
preflect "google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/runtime/protoimpl"
)
// proto imports
import (
alerting_policy "github.com/cloudwan/edgelq-sdk/monitoring/resources/v3/alerting_policy"
project "github.com/cloudwan/edgelq-sdk/monitoring/resources/v3/project"
view "github.com/cloudwan/goten-sdk/types/view"
watch_type "github.com/cloudwan/goten-sdk/types/watch_type"
emptypb "google.golang.org/protobuf/types/known/emptypb"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = fmt.Errorf
_ = reflect.Method{}
_ = sync.Once{}
_ = protojson.MarshalOptions{}
_ = proto.MarshalOptions{}
_ = preflect.Value{}
_ = protoimpl.DescBuilder{}
)
// make sure we're using proto imports
var (
_ = &alerting_policy.AlertingPolicy{}
_ = &project.Project{}
_ = &emptypb.Empty{}
_ = &fieldmaskpb.FieldMask{}
_ = ×tamppb.Timestamp{}
_ = view.View(0)
_ = watch_type.WatchType(0)
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Request message for method
// [GetAlertingPolicy][ntt.monitoring.v3.GetAlertingPolicy]
type GetAlertingPolicyRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of ntt.monitoring.v3.AlertingPolicy
Name *alerting_policy.Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
// A list of extra fields to be obtained for each response item on top of
// fields defined by request field view
FieldMask *alerting_policy.AlertingPolicy_FieldMask `protobuf:"bytes,3,opt,customtype=AlertingPolicy_FieldMask,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty" firestore:"fieldMask"`
// View defines list of standard response fields present in response items.
// Additional fields can be amended by request field field_mask
View view.View `protobuf:"varint,4,opt,name=view,proto3,enum=goten.types.View" json:"view,omitempty" firestore:"view"`
}
func (m *GetAlertingPolicyRequest) Reset() {
*m = GetAlertingPolicyRequest{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_monitoring_proto_v3_alerting_policy_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *GetAlertingPolicyRequest) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*GetAlertingPolicyRequest) ProtoMessage() {}
func (m *GetAlertingPolicyRequest) ProtoReflect() preflect.Message {
mi := &edgelq_monitoring_proto_v3_alerting_policy_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*GetAlertingPolicyRequest) GotenMessage() {}
// Deprecated, Use GetAlertingPolicyRequest.ProtoReflect.Descriptor instead.
func (*GetAlertingPolicyRequest) Descriptor() ([]byte, []int) {
return edgelq_monitoring_proto_v3_alerting_policy_service_proto_rawDescGZIP(), []int{0}
}
func (m *GetAlertingPolicyRequest) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *GetAlertingPolicyRequest) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *GetAlertingPolicyRequest) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *GetAlertingPolicyRequest) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *GetAlertingPolicyRequest) GetName() *alerting_policy.Name {
if m != nil {
return m.Name
}
return nil
}
func (m *GetAlertingPolicyRequest) GetFieldMask() *alerting_policy.AlertingPolicy_FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
func (m *GetAlertingPolicyRequest) GetView() view.View {
if m != nil {
return m.View
}
return view.View_UNSPECIFIED
}
func (m *GetAlertingPolicyRequest) SetName(fv *alerting_policy.Name) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Name", "GetAlertingPolicyRequest"))
}
m.Name = fv
}
func (m *GetAlertingPolicyRequest) SetFieldMask(fv *alerting_policy.AlertingPolicy_FieldMask) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "FieldMask", "GetAlertingPolicyRequest"))
}
m.FieldMask = fv
}
func (m *GetAlertingPolicyRequest) SetView(fv view.View) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "View", "GetAlertingPolicyRequest"))
}
m.View = fv
}
// Request message for method
// [BatchGetAlertingPolicies][ntt.monitoring.v3.BatchGetAlertingPolicies]
type BatchGetAlertingPoliciesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Names of AlertingPolicies
Names []*alerting_policy.Name `protobuf:"bytes,2,rep,customtype=Name,name=names,proto3" json:"names,omitempty" firestore:"names"`
// A list of extra fields to be obtained for each response item on top of
// fields defined by request field view
FieldMask *alerting_policy.AlertingPolicy_FieldMask `protobuf:"bytes,3,opt,customtype=AlertingPolicy_FieldMask,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty" firestore:"fieldMask"`
// View defines list of standard response fields present in response items.
// Additional fields can be amended by request field field_mask
View view.View `protobuf:"varint,4,opt,name=view,proto3,enum=goten.types.View" json:"view,omitempty" firestore:"view"`
}
func (m *BatchGetAlertingPoliciesRequest) Reset() {
*m = BatchGetAlertingPoliciesRequest{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_monitoring_proto_v3_alerting_policy_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *BatchGetAlertingPoliciesRequest) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*BatchGetAlertingPoliciesRequest) ProtoMessage() {}
func (m *BatchGetAlertingPoliciesRequest) ProtoReflect() preflect.Message {
mi := &edgelq_monitoring_proto_v3_alerting_policy_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*BatchGetAlertingPoliciesRequest) GotenMessage() {}
// Deprecated, Use BatchGetAlertingPoliciesRequest.ProtoReflect.Descriptor instead.
func (*BatchGetAlertingPoliciesRequest) Descriptor() ([]byte, []int) {
return edgelq_monitoring_proto_v3_alerting_policy_service_proto_rawDescGZIP(), []int{1}
}
func (m *BatchGetAlertingPoliciesRequest) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *BatchGetAlertingPoliciesRequest) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *BatchGetAlertingPoliciesRequest) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *BatchGetAlertingPoliciesRequest) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *BatchGetAlertingPoliciesRequest) GetNames() []*alerting_policy.Name {
if m != nil {
return m.Names
}
return nil
}
func (m *BatchGetAlertingPoliciesRequest) GetFieldMask() *alerting_policy.AlertingPolicy_FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
func (m *BatchGetAlertingPoliciesRequest) GetView() view.View {
if m != nil {
return m.View
}
return view.View_UNSPECIFIED
}
func (m *BatchGetAlertingPoliciesRequest) SetNames(fv []*alerting_policy.Name) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Names", "BatchGetAlertingPoliciesRequest"))
}
m.Names = fv
}
func (m *BatchGetAlertingPoliciesRequest) SetFieldMask(fv *alerting_policy.AlertingPolicy_FieldMask) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "FieldMask", "BatchGetAlertingPoliciesRequest"))
}
m.FieldMask = fv
}
func (m *BatchGetAlertingPoliciesRequest) SetView(fv view.View) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "View", "BatchGetAlertingPoliciesRequest"))
}
m.View = fv
}
// BatchGetAlertingPoliciesResponse
type BatchGetAlertingPoliciesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// found AlertingPolicies
AlertingPolicies []*alerting_policy.AlertingPolicy `protobuf:"bytes,1,rep,name=alerting_policies,json=alertingPolicies,proto3" json:"alerting_policies,omitempty" firestore:"alertingPolicies"`
// list of not found AlertingPolicies
Missing []*alerting_policy.Name `protobuf:"bytes,2,rep,customtype=Name,name=missing,proto3" json:"missing,omitempty" firestore:"missing"`
}
func (m *BatchGetAlertingPoliciesResponse) Reset() {
*m = BatchGetAlertingPoliciesResponse{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_monitoring_proto_v3_alerting_policy_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *BatchGetAlertingPoliciesResponse) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*BatchGetAlertingPoliciesResponse) ProtoMessage() {}
func (m *BatchGetAlertingPoliciesResponse) ProtoReflect() preflect.Message {
mi := &edgelq_monitoring_proto_v3_alerting_policy_service_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*BatchGetAlertingPoliciesResponse) GotenMessage() {}
// Deprecated, Use BatchGetAlertingPoliciesResponse.ProtoReflect.Descriptor instead.
func (*BatchGetAlertingPoliciesResponse) Descriptor() ([]byte, []int) {
return edgelq_monitoring_proto_v3_alerting_policy_service_proto_rawDescGZIP(), []int{2}
}
func (m *BatchGetAlertingPoliciesResponse) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *BatchGetAlertingPoliciesResponse) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *BatchGetAlertingPoliciesResponse) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *BatchGetAlertingPoliciesResponse) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *BatchGetAlertingPoliciesResponse) GetAlertingPolicies() []*alerting_policy.AlertingPolicy {
if m != nil {
return m.AlertingPolicies
}
return nil
}
func (m *BatchGetAlertingPoliciesResponse) GetMissing() []*alerting_policy.Name {
if m != nil {
return m.Missing
}
return nil
}
func (m *BatchGetAlertingPoliciesResponse) SetAlertingPolicies(fv []*alerting_policy.AlertingPolicy) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "AlertingPolicies", "BatchGetAlertingPoliciesResponse"))
}
m.AlertingPolicies = fv
}
func (m *BatchGetAlertingPoliciesResponse) SetMissing(fv []*alerting_policy.Name) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Missing", "BatchGetAlertingPoliciesResponse"))
}
m.Missing = fv
}
// Request message for method
// [ListAlertingPolicies][ntt.monitoring.v3.ListAlertingPolicies]
type ListAlertingPoliciesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Parent name of ntt.monitoring.v3.AlertingPolicy
Parent *alerting_policy.ParentName `protobuf:"bytes,1,opt,customtype=ParentName,name=parent,proto3" json:"parent,omitempty" firestore:"parent"`
// Requested page size. Server may return fewer AlertingPolicies than
// requested. If unspecified, server will pick an appropriate default.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty" firestore:"pageSize"`
// A token identifying a page of results the server should return.
// Typically, this is the value of
// [ListAlertingPoliciesResponse.next_page_token][ntt.monitoring.v3.ListAlertingPoliciesResponse.next_page_token]
PageToken *alerting_policy.PagerCursor `protobuf:"bytes,3,opt,customtype=PagerCursor,name=page_token,json=pageToken,proto3" json:"page_token,omitempty" firestore:"pageToken"`
// Order By -
// https://cloud.google.com/apis/design/design_patterns#list_pagination list
// of field path with order directive, either 'asc' or 'desc'. If direction is
// not provided, 'asc' is assumed. e.g. "state.nested_field asc,
// state.something.else desc, theme"
OrderBy *alerting_policy.OrderBy `protobuf:"bytes,4,opt,customtype=OrderBy,name=order_by,json=orderBy,proto3" json:"order_by,omitempty" firestore:"orderBy"`
// Filter - filter results by field criteria. Simplified SQL-like syntax with
// following operators:
// <=, >=, =, !=, <, >, LIKE, CONTAINS (aliases CONTAIN, HAS, HAVE), IN, IS
// [NOT] NULL | NaN . Combine conditions with OR | AND example: 'meta.labels
// CONTAINS "severity:important" OR (state.last_error_time >
// "2018-11-15T10:00:00Z" AND state.status = "ERROR")'
Filter *alerting_policy.Filter `protobuf:"bytes,5,opt,customtype=Filter,name=filter,proto3" json:"filter,omitempty" firestore:"filter"`
// A list of extra fields to be obtained for each response item on top of
// fields defined by request field view
FieldMask *alerting_policy.AlertingPolicy_FieldMask `protobuf:"bytes,6,opt,customtype=AlertingPolicy_FieldMask,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty" firestore:"fieldMask"`
// View defines list of standard response fields present in response items.
// Additional fields can be amended by request field field_mask
View view.View `protobuf:"varint,7,opt,name=view,proto3,enum=goten.types.View" json:"view,omitempty" firestore:"view"`
// Indicates if list response should contain total count and offset (fields
// current_offset and total_results_count).
IncludePagingInfo bool `protobuf:"varint,8,opt,name=include_paging_info,json=includePagingInfo,proto3" json:"include_paging_info,omitempty" firestore:"includePagingInfo"`
}
func (m *ListAlertingPoliciesRequest) Reset() {
*m = ListAlertingPoliciesRequest{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_monitoring_proto_v3_alerting_policy_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *ListAlertingPoliciesRequest) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*ListAlertingPoliciesRequest) ProtoMessage() {}
func (m *ListAlertingPoliciesRequest) ProtoReflect() preflect.Message {
mi := &edgelq_monitoring_proto_v3_alerting_policy_service_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*ListAlertingPoliciesRequest) GotenMessage() {}
// Deprecated, Use ListAlertingPoliciesRequest.ProtoReflect.Descriptor instead.
func (*ListAlertingPoliciesRequest) Descriptor() ([]byte, []int) {
return edgelq_monitoring_proto_v3_alerting_policy_service_proto_rawDescGZIP(), []int{3}
}
func (m *ListAlertingPoliciesRequest) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *ListAlertingPoliciesRequest) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *ListAlertingPoliciesRequest) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *ListAlertingPoliciesRequest) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *ListAlertingPoliciesRequest) GetParent() *alerting_policy.ParentName {
if m != nil {
return m.Parent
}
return nil
}
func (m *ListAlertingPoliciesRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return int32(0)
}
func (m *ListAlertingPoliciesRequest) GetPageToken() *alerting_policy.PagerCursor {
if m != nil {
return m.PageToken
}
return nil
}
func (m *ListAlertingPoliciesRequest) GetOrderBy() *alerting_policy.OrderBy {
if m != nil {
return m.OrderBy
}
return nil
}
func (m *ListAlertingPoliciesRequest) GetFilter() *alerting_policy.Filter {
if m != nil {
return m.Filter
}
return nil
}
func (m *ListAlertingPoliciesRequest) GetFieldMask() *alerting_policy.AlertingPolicy_FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
func (m *ListAlertingPoliciesRequest) GetView() view.View {
if m != nil {
return m.View
}
return view.View_UNSPECIFIED
}
func (m *ListAlertingPoliciesRequest) GetIncludePagingInfo() bool {
if m != nil {
return m.IncludePagingInfo
}
return false
}
func (m *ListAlertingPoliciesRequest) SetParent(fv *alerting_policy.ParentName) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Parent", "ListAlertingPoliciesRequest"))
}
m.Parent = fv
}
func (m *ListAlertingPoliciesRequest) SetPageSize(fv int32) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "PageSize", "ListAlertingPoliciesRequest"))
}
m.PageSize = fv
}
func (m *ListAlertingPoliciesRequest) SetPageToken(fv *alerting_policy.PagerCursor) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "PageToken", "ListAlertingPoliciesRequest"))
}
m.PageToken = fv
}
func (m *ListAlertingPoliciesRequest) SetOrderBy(fv *alerting_policy.OrderBy) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "OrderBy", "ListAlertingPoliciesRequest"))
}
m.OrderBy = fv
}
func (m *ListAlertingPoliciesRequest) SetFilter(fv *alerting_policy.Filter) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Filter", "ListAlertingPoliciesRequest"))
}
m.Filter = fv
}
func (m *ListAlertingPoliciesRequest) SetFieldMask(fv *alerting_policy.AlertingPolicy_FieldMask) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "FieldMask", "ListAlertingPoliciesRequest"))
}
m.FieldMask = fv
}
func (m *ListAlertingPoliciesRequest) SetView(fv view.View) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "View", "ListAlertingPoliciesRequest"))
}
m.View = fv
}
func (m *ListAlertingPoliciesRequest) SetIncludePagingInfo(fv bool) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "IncludePagingInfo", "ListAlertingPoliciesRequest"))
}
m.IncludePagingInfo = fv
}
// Request message for method
// [ListAlertingPolicies][ntt.monitoring.v3.ListAlertingPolicies]
type ListAlertingPoliciesResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The list of AlertingPolicies
AlertingPolicies []*alerting_policy.AlertingPolicy `protobuf:"bytes,1,rep,name=alerting_policies,json=alertingPolicies,proto3" json:"alerting_policies,omitempty" firestore:"alertingPolicies"`
// A token to retrieve previous page of results. Pass this value in the
// [ListAlertingPoliciesRequest.page_token][ntt.monitoring.v3.ListAlertingPoliciesRequest.page_token]
PrevPageToken *alerting_policy.PagerCursor `protobuf:"bytes,3,opt,customtype=PagerCursor,name=prev_page_token,json=prevPageToken,proto3" json:"prev_page_token,omitempty" firestore:"prevPageToken"`
// A token to retrieve next page of results. Pass this value in the
// [ListAlertingPoliciesRequest.page_token][ntt.monitoring.v3.ListAlertingPoliciesRequest.page_token]
NextPageToken *alerting_policy.PagerCursor `protobuf:"bytes,4,opt,customtype=PagerCursor,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty" firestore:"nextPageToken"`
// Current offset from the first page or 0 if no page tokens were given,
// paging info was not requested or there was an error while trying to get
// it). Page index can be computed from offset and limit provided in a
// request.
CurrentOffset int32 `protobuf:"varint,5,opt,name=current_offset,json=currentOffset,proto3" json:"current_offset,omitempty" firestore:"currentOffset"`
// Number of total AlertingPolicies across all pages or 0, if there are no
// items, paging info was not requested or there was an error while trying to
// get it.
TotalResultsCount int32 `protobuf:"varint,6,opt,name=total_results_count,json=totalResultsCount,proto3" json:"total_results_count,omitempty" firestore:"totalResultsCount"`
}
func (m *ListAlertingPoliciesResponse) Reset() {
*m = ListAlertingPoliciesResponse{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_monitoring_proto_v3_alerting_policy_service_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *ListAlertingPoliciesResponse) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*ListAlertingPoliciesResponse) ProtoMessage() {}
func (m *ListAlertingPoliciesResponse) ProtoReflect() preflect.Message {
mi := &edgelq_monitoring_proto_v3_alerting_policy_service_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*ListAlertingPoliciesResponse) GotenMessage() {}
// Deprecated, Use ListAlertingPoliciesResponse.ProtoReflect.Descriptor instead.
func (*ListAlertingPoliciesResponse) Descriptor() ([]byte, []int) {
return edgelq_monitoring_proto_v3_alerting_policy_service_proto_rawDescGZIP(), []int{4}
}
func (m *ListAlertingPoliciesResponse) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *ListAlertingPoliciesResponse) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *ListAlertingPoliciesResponse) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *ListAlertingPoliciesResponse) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *ListAlertingPoliciesResponse) GetAlertingPolicies() []*alerting_policy.AlertingPolicy {
if m != nil {
return m.AlertingPolicies
}
return nil
}
func (m *ListAlertingPoliciesResponse) GetPrevPageToken() *alerting_policy.PagerCursor {
if m != nil {
return m.PrevPageToken
}
return nil
}
func (m *ListAlertingPoliciesResponse) GetNextPageToken() *alerting_policy.PagerCursor {
if m != nil {
return m.NextPageToken
}
return nil
}
func (m *ListAlertingPoliciesResponse) GetCurrentOffset() int32 {
if m != nil {
return m.CurrentOffset
}
return int32(0)
}
func (m *ListAlertingPoliciesResponse) GetTotalResultsCount() int32 {
if m != nil {
return m.TotalResultsCount
}
return int32(0)
}
func (m *ListAlertingPoliciesResponse) SetAlertingPolicies(fv []*alerting_policy.AlertingPolicy) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "AlertingPolicies", "ListAlertingPoliciesResponse"))
}
m.AlertingPolicies = fv
}
func (m *ListAlertingPoliciesResponse) SetPrevPageToken(fv *alerting_policy.PagerCursor) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "PrevPageToken", "ListAlertingPoliciesResponse"))
}
m.PrevPageToken = fv
}
func (m *ListAlertingPoliciesResponse) SetNextPageToken(fv *alerting_policy.PagerCursor) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "NextPageToken", "ListAlertingPoliciesResponse"))
}
m.NextPageToken = fv
}
func (m *ListAlertingPoliciesResponse) SetCurrentOffset(fv int32) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "CurrentOffset", "ListAlertingPoliciesResponse"))
}
m.CurrentOffset = fv
}
func (m *ListAlertingPoliciesResponse) SetTotalResultsCount(fv int32) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "TotalResultsCount", "ListAlertingPoliciesResponse"))
}
m.TotalResultsCount = fv
}
// Request message for method
// [WatchAlertingPolicy][ntt.monitoring.v3.WatchAlertingPolicy]
type WatchAlertingPolicyRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of ntt.monitoring.v3.AlertingPolicy
Name *alerting_policy.Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
// A list of extra fields to be obtained for each response item on top of
// fields defined by request field view
FieldMask *alerting_policy.AlertingPolicy_FieldMask `protobuf:"bytes,2,opt,customtype=AlertingPolicy_FieldMask,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty" firestore:"fieldMask"`
// View defines list of standard response fields present in response items.
// Additional fields can be amended by request field field_mask
View view.View `protobuf:"varint,4,opt,name=view,proto3,enum=goten.types.View" json:"view,omitempty" firestore:"view"`
}
func (m *WatchAlertingPolicyRequest) Reset() {
*m = WatchAlertingPolicyRequest{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_monitoring_proto_v3_alerting_policy_service_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *WatchAlertingPolicyRequest) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*WatchAlertingPolicyRequest) ProtoMessage() {}
func (m *WatchAlertingPolicyRequest) ProtoReflect() preflect.Message {
mi := &edgelq_monitoring_proto_v3_alerting_policy_service_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*WatchAlertingPolicyRequest) GotenMessage() {}
// Deprecated, Use WatchAlertingPolicyRequest.ProtoReflect.Descriptor instead.
func (*WatchAlertingPolicyRequest) Descriptor() ([]byte, []int) {
return edgelq_monitoring_proto_v3_alerting_policy_service_proto_rawDescGZIP(), []int{5}
}
func (m *WatchAlertingPolicyRequest) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *WatchAlertingPolicyRequest) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *WatchAlertingPolicyRequest) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *WatchAlertingPolicyRequest) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *WatchAlertingPolicyRequest) GetName() *alerting_policy.Name {
if m != nil {
return m.Name
}
return nil
}
func (m *WatchAlertingPolicyRequest) GetFieldMask() *alerting_policy.AlertingPolicy_FieldMask {
if m != nil {
return m.FieldMask
}
return nil
}
func (m *WatchAlertingPolicyRequest) GetView() view.View {
if m != nil {
return m.View
}
return view.View_UNSPECIFIED
}
func (m *WatchAlertingPolicyRequest) SetName(fv *alerting_policy.Name) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Name", "WatchAlertingPolicyRequest"))
}
m.Name = fv
}
func (m *WatchAlertingPolicyRequest) SetFieldMask(fv *alerting_policy.AlertingPolicy_FieldMask) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "FieldMask", "WatchAlertingPolicyRequest"))
}
m.FieldMask = fv
}
func (m *WatchAlertingPolicyRequest) SetView(fv view.View) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "View", "WatchAlertingPolicyRequest"))
}
m.View = fv
}
// WatchAlertingPolicyResponse
type WatchAlertingPolicyResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Change *alerting_policy.AlertingPolicyChange `protobuf:"bytes,1,opt,name=change,proto3" json:"change,omitempty" firestore:"change"`
}
func (m *WatchAlertingPolicyResponse) Reset() {
*m = WatchAlertingPolicyResponse{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_monitoring_proto_v3_alerting_policy_service_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *WatchAlertingPolicyResponse) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*WatchAlertingPolicyResponse) ProtoMessage() {}
func (m *WatchAlertingPolicyResponse) ProtoReflect() preflect.Message {
mi := &edgelq_monitoring_proto_v3_alerting_policy_service_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*WatchAlertingPolicyResponse) GotenMessage() {}
// Deprecated, Use WatchAlertingPolicyResponse.ProtoReflect.Descriptor instead.
func (*WatchAlertingPolicyResponse) Descriptor() ([]byte, []int) {
return edgelq_monitoring_proto_v3_alerting_policy_service_proto_rawDescGZIP(), []int{6}
}
func (m *WatchAlertingPolicyResponse) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *WatchAlertingPolicyResponse) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *WatchAlertingPolicyResponse) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *WatchAlertingPolicyResponse) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *WatchAlertingPolicyResponse) GetChange() *alerting_policy.AlertingPolicyChange {
if m != nil {
return m.Change
}
return nil
}
func (m *WatchAlertingPolicyResponse) SetChange(fv *alerting_policy.AlertingPolicyChange) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Change", "WatchAlertingPolicyResponse"))
}
m.Change = fv
}
// Request message for method
// [WatchAlertingPolicies][ntt.monitoring.v3.WatchAlertingPolicies]
type WatchAlertingPoliciesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Type of a watch. Identifies how server stream data to a client, which
// fields in a request are allowed and which fields in response are relevant.
Type watch_type.WatchType `protobuf:"varint,9,opt,name=type,proto3,enum=goten.types.WatchType" json:"type,omitempty" firestore:"type"`
// Parent name of ntt.monitoring.v3.AlertingPolicy
Parent *alerting_policy.ParentName `protobuf:"bytes,1,opt,customtype=ParentName,name=parent,proto3" json:"parent,omitempty" firestore:"parent"`
// Requested page size. Server may return fewer AlertingPolicies than
// requested. If unspecified, server will pick an appropriate default. Can be
// populated only for stateful watch type.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty" firestore:"pageSize"`
// A token identifying a page of results the server should return.
// Can be populated only for stateful watch type.
PageToken *alerting_policy.PagerCursor `protobuf:"bytes,3,opt,customtype=PagerCursor,name=page_token,json=pageToken,proto3" json:"page_token,omitempty" firestore:"pageToken"`
// Order By -
// https://cloud.google.com/apis/design/design_patterns#list_pagination Can be
// populated only for stateful watch type.
OrderBy *alerting_policy.OrderBy `protobuf:"bytes,4,opt,customtype=OrderBy,name=order_by,json=orderBy,proto3" json:"order_by,omitempty" firestore:"orderBy"`
// A token identifying watch resume point from previous session.
// Can be populated only for stateless watch type.
ResumeToken string `protobuf:"bytes,10,opt,name=resume_token,json=resumeToken,proto3" json:"resume_token,omitempty" firestore:"resumeToken"`
// Point in the time from which we want to start getting updates. This field
// can be populated only for stateless watch type and if resume token is not
// known yet. If specified, initial snapshot will NOT be provided. It is
// assumed client can obtain it using separate means. Watch responses will
// contain resume tokens which should be used to resume broken connection.
StartingTime *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=starting_time,json=startingTime,proto3" json:"starting_time,omitempty" firestore:"startingTime"`
// Filter - filter results by field criteria. Simplified SQL-like syntax with
// following operators:
// <=, >=, =, !=, <, >, LIKE, CONTAINS (aliases CONTAIN, HAS, HAVE), IN, IS
// [NOT] NULL | NaN . Combine conditions with OR | AND example: 'meta.labels
// CONTAINS "severity:important" OR (state.last_error_time >
// "2018-11-15T10:00:00Z" AND state.status = "ERROR")'
Filter *alerting_policy.Filter `protobuf:"bytes,5,opt,customtype=Filter,name=filter,proto3" json:"filter,omitempty" firestore:"filter"`
// A list of extra fields to be obtained for each response item on top of
// fields defined by request field view Changes to AlertingPolicy that don't
// affect any of masked fields won't be sent back.
FieldMask *alerting_policy.AlertingPolicy_FieldMask `protobuf:"bytes,6,opt,customtype=AlertingPolicy_FieldMask,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty" firestore:"fieldMask"`
// View defines list of standard response fields present in response items.
// Additional fields can be amended by request field field_mask Changes to
// AlertingPolicy that don't affect any of masked fields won't be sent back.
View view.View `protobuf:"varint,8,opt,name=view,proto3,enum=goten.types.View" json:"view,omitempty" firestore:"view"`
// Maximum amount of changes in each response message. Query result response
// is divided on the server side into chunks with size of a specified amount
// to limit memory footprint of each message. Responses will hold information
// whether more elements will continue for the actual change. If unspecified,
// server will pick an appropriate default.
MaxChunkSize int32 `protobuf:"varint,11,opt,name=max_chunk_size,json=maxChunkSize,proto3" json:"max_chunk_size,omitempty" firestore:"maxChunkSize"`
}
func (m *WatchAlertingPoliciesRequest) Reset() {
*m = WatchAlertingPoliciesRequest{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_monitoring_proto_v3_alerting_policy_service_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *WatchAlertingPoliciesRequest) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*WatchAlertingPoliciesRequest) ProtoMessage() {}
func (m *WatchAlertingPoliciesRequest) ProtoReflect() preflect.Message {
mi := &edgelq_monitoring_proto_v3_alerting_policy_service_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && m != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(m)
}
func (*WatchAlertingPoliciesRequest) GotenMessage() {}
// Deprecated, Use WatchAlertingPoliciesRequest.ProtoReflect.Descriptor instead.
func (*WatchAlertingPoliciesRequest) Descriptor() ([]byte, []int) {
return edgelq_monitoring_proto_v3_alerting_policy_service_proto_rawDescGZIP(), []int{7}
}
func (m *WatchAlertingPoliciesRequest) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *WatchAlertingPoliciesRequest) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *WatchAlertingPoliciesRequest) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *WatchAlertingPoliciesRequest) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *WatchAlertingPoliciesRequest) GetType() watch_type.WatchType {
if m != nil {
return m.Type
}
return watch_type.WatchType_STATEFUL
}