-
Notifications
You must be signed in to change notification settings - Fork 1
/
activity_log.pb.go
2073 lines (1840 loc) · 80.4 KB
/
activity_log.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/audit/proto/v1/activity_log.proto
// DO NOT EDIT!!!
package activity_log
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 (
common "github.com/cloudwan/edgelq-sdk/audit/resources/v1/common"
rpc "github.com/cloudwan/edgelq-sdk/common/rpc"
iam_organization "github.com/cloudwan/edgelq-sdk/iam/resources/v1/organization"
iam_project "github.com/cloudwan/edgelq-sdk/iam/resources/v1/project"
meta_service "github.com/cloudwan/goten-sdk/meta-service/resources/v1/service"
anypb "google.golang.org/protobuf/types/known/anypb"
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 (
_ = &common.Authentication{}
_ = &rpc.Status{}
_ = &iam_organization.Organization{}
_ = &iam_project.Project{}
_ = &anypb.Any{}
_ = &fieldmaskpb.FieldMask{}
_ = ×tamppb.Timestamp{}
_ = &meta_service.Service{}
)
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)
)
// Activity log category.
// Each activity log basically describes read or write action,
// optionally describes other "operation" type.
type ActivityLog_Category int32
const (
// Undefined, should never be used
ActivityLog_Undefined ActivityLog_Category = 0
// Describes all requests that involved execution of some special operation,
// for example, SSH connection could be put in this category.
// It's for requests that cannot be classified clearly as a read or write.
ActivityLog_Operation ActivityLog_Category = 2
// Describes all requests that involved creation of a new resource.
ActivityLog_Creation ActivityLog_Category = 1
// Describes all requests which involved deletion of an existing resource.
ActivityLog_Deletion ActivityLog_Category = 11
// Describes all update requests that changed specification fields in
// an existing resource(s).
ActivityLog_SpecUpdate ActivityLog_Category = 3
// Describes all update requests that changed state fields in an existing
// resource(s) (but not specification).
ActivityLog_StateUpdate ActivityLog_Category = 4
// Describes all update requests that are neither of SpecUpdate or
// StateUpdate type. It is for non-significant updates like modification of
// metadata annotations.
ActivityLog_MetaUpdate ActivityLog_Category = 6
// Describes an internal update of the system (like controller creating role
// binding for each group member for each role assigned to group).
// It includes all CUD requests as long as they are result of an internal
// system balancing.
ActivityLog_Internal ActivityLog_Category = 5
// Describes request that has been rejected and therefore no action
// has happened. This is result of lack of permission/authentication.
ActivityLog_Rejected ActivityLog_Category = 7
// Describes request that has failed due to client error (like validation
// error)
ActivityLog_ClientError ActivityLog_Category = 8
// Describes request that has failed due to server issue.
ActivityLog_ServerError ActivityLog_Category = 9
// Describes any read request (like BatchGet, Get, List, Watch).
ActivityLog_Read ActivityLog_Category = 10
)
var (
ActivityLog_Category_name = map[int32]string{
0: "Undefined",
2: "Operation",
1: "Creation",
11: "Deletion",
3: "SpecUpdate",
4: "StateUpdate",
6: "MetaUpdate",
5: "Internal",
7: "Rejected",
8: "ClientError",
9: "ServerError",
10: "Read",
}
ActivityLog_Category_value = map[string]int32{
"Undefined": 0,
"Operation": 2,
"Creation": 1,
"Deletion": 11,
"SpecUpdate": 3,
"StateUpdate": 4,
"MetaUpdate": 6,
"Internal": 5,
"Rejected": 7,
"ClientError": 8,
"ServerError": 9,
"Read": 10,
}
)
func (x ActivityLog_Category) Enum() *ActivityLog_Category {
p := new(ActivityLog_Category)
*p = x
return p
}
func (x ActivityLog_Category) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), preflect.EnumNumber(x))
}
func (ActivityLog_Category) Descriptor() preflect.EnumDescriptor {
return edgelq_audit_proto_v1_activity_log_proto_enumTypes[0].Descriptor()
}
func (ActivityLog_Category) Type() preflect.EnumType {
return &edgelq_audit_proto_v1_activity_log_proto_enumTypes[0]
}
func (x ActivityLog_Category) Number() preflect.EnumNumber {
return preflect.EnumNumber(x)
}
// Deprecated, Use ActivityLog_Category.ProtoReflect.Descriptor instead.
func (ActivityLog_Category) EnumDescriptor() ([]byte, []int) {
return edgelq_audit_proto_v1_activity_log_proto_rawDescGZIP(), []int{0, 0}
}
// ActivityLog Resource - describes notification of
// activity triggered by a request sent to an API service.
// ActivityLog creation is triggered by an API service
// when it receives either unary or stream request.
//
// ActivityLog contains messages exchanged between client
// and server within single API call and finally exit status.
// ActivityLog is method oriented - service name + method name
// (for example IAM/CreateRoleBinding) is a leading information.
//
// ActivityLog can have N associated ResourceChangeLog objects,
// if API call it describes made some changes in a data store.
// You can combine ActivityLog and ResourceChangeLog by making
// queries with request_id specified in a filter.
type ActivityLog struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of ActivityLog. It contains scope + ID of the log.
// ID is a base64 encoded unique key that identifies tuple:
// scope
// request_id
// authentication.principal
// request_metadata.ip_address
// request_metadata.user_agent
// request_routing.via_region
// request_routing.dest_regions
// authorization.granted_permissions
// authorization.denied_permissions
// service.name
// service.region_id
// method.type
// method.version
// resource.name
// resource.difference.fields
// category
// labels
//
// Key is not to be decoded outside of service, but treated as opaque string
Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty" firestore:"name"`
// Contains scope from name field without resource ID.
// Used for internal purpose for filtering (logs are using custom store).
// Example formats are:
// - organization/umbrella
// - projects/mars_exploration
// - services/devices.edgelq.com
Scope string `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty" firestore:"scope"`
// Generated ID of the request. Same ID must be used in ResourceChangeLog
// objects associated with this request.
RequestId uint64 `protobuf:"varint,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty" firestore:"requestId"`
// Authentication data - informs who made a request
Authentication *common.Authentication `protobuf:"bytes,5,opt,name=authentication,proto3" json:"authentication,omitempty" firestore:"authentication"`
// Authorization data - informs what permissions were
// granted or denied for associated request
Authorization *common.Authorization `protobuf:"bytes,6,opt,name=authorization,proto3" json:"authorization,omitempty" firestore:"authorization"`
// Information about the service
Service *common.ServiceData `protobuf:"bytes,7,opt,name=service,proto3" json:"service,omitempty" firestore:"service"`
// Information about the method
Method *ActivityLog_Method `protobuf:"bytes,8,opt,name=method,proto3" json:"method,omitempty" firestore:"method"`
// Request metadata
RequestMetadata *ActivityLog_RequestMetadata `protobuf:"bytes,13,opt,name=request_metadata,json=requestMetadata,proto3" json:"request_metadata,omitempty" firestore:"requestMetadata"`
// Request routing
RequestRouting *ActivityLog_RequestRouting `protobuf:"bytes,14,opt,name=request_routing,json=requestRouting,proto3" json:"request_routing,omitempty" firestore:"requestRouting"`
// Primary resource for this activity.
Resource *ActivityLog_Resource `protobuf:"bytes,11,opt,name=resource,proto3" json:"resource,omitempty" firestore:"resource"`
// Category of the activity log.
Category ActivityLog_Category `protobuf:"varint,12,opt,name=category,proto3,enum=ntt.audit.v1.ActivityLog_Category" json:"category,omitempty" firestore:"category"`
// List of query-able labels
Labels map[string]string `protobuf:"bytes,9,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" firestore:"labels"`
// List of events attached to this log
Events []*ActivityLog_Event `protobuf:"bytes,10,rep,name=events,proto3" json:"events,omitempty" firestore:"events"`
}
func (m *ActivityLog) Reset() {
*m = ActivityLog{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_audit_proto_v1_activity_log_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *ActivityLog) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*ActivityLog) ProtoMessage() {}
func (m *ActivityLog) ProtoReflect() preflect.Message {
mi := &edgelq_audit_proto_v1_activity_log_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 (*ActivityLog) GotenMessage() {}
// Deprecated, Use ActivityLog.ProtoReflect.Descriptor instead.
func (*ActivityLog) Descriptor() ([]byte, []int) {
return edgelq_audit_proto_v1_activity_log_proto_rawDescGZIP(), []int{0}
}
func (m *ActivityLog) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *ActivityLog) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *ActivityLog) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *ActivityLog) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *ActivityLog) GetName() *Name {
if m != nil {
return m.Name
}
return nil
}
func (m *ActivityLog) GetScope() string {
if m != nil {
return m.Scope
}
return ""
}
func (m *ActivityLog) GetRequestId() uint64 {
if m != nil {
return m.RequestId
}
return uint64(0)
}
func (m *ActivityLog) GetAuthentication() *common.Authentication {
if m != nil {
return m.Authentication
}
return nil
}
func (m *ActivityLog) GetAuthorization() *common.Authorization {
if m != nil {
return m.Authorization
}
return nil
}
func (m *ActivityLog) GetService() *common.ServiceData {
if m != nil {
return m.Service
}
return nil
}
func (m *ActivityLog) GetMethod() *ActivityLog_Method {
if m != nil {
return m.Method
}
return nil
}
func (m *ActivityLog) GetRequestMetadata() *ActivityLog_RequestMetadata {
if m != nil {
return m.RequestMetadata
}
return nil
}
func (m *ActivityLog) GetRequestRouting() *ActivityLog_RequestRouting {
if m != nil {
return m.RequestRouting
}
return nil
}
func (m *ActivityLog) GetResource() *ActivityLog_Resource {
if m != nil {
return m.Resource
}
return nil
}
func (m *ActivityLog) GetCategory() ActivityLog_Category {
if m != nil {
return m.Category
}
return ActivityLog_Undefined
}
func (m *ActivityLog) GetLabels() map[string]string {
if m != nil {
return m.Labels
}
return nil
}
func (m *ActivityLog) GetEvents() []*ActivityLog_Event {
if m != nil {
return m.Events
}
return nil
}
func (m *ActivityLog) SetName(fv *Name) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Name", "ActivityLog"))
}
m.Name = fv
}
func (m *ActivityLog) SetScope(fv string) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Scope", "ActivityLog"))
}
m.Scope = fv
}
func (m *ActivityLog) SetRequestId(fv uint64) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "RequestId", "ActivityLog"))
}
m.RequestId = fv
}
func (m *ActivityLog) SetAuthentication(fv *common.Authentication) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Authentication", "ActivityLog"))
}
m.Authentication = fv
}
func (m *ActivityLog) SetAuthorization(fv *common.Authorization) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Authorization", "ActivityLog"))
}
m.Authorization = fv
}
func (m *ActivityLog) SetService(fv *common.ServiceData) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Service", "ActivityLog"))
}
m.Service = fv
}
func (m *ActivityLog) SetMethod(fv *ActivityLog_Method) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Method", "ActivityLog"))
}
m.Method = fv
}
func (m *ActivityLog) SetRequestMetadata(fv *ActivityLog_RequestMetadata) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "RequestMetadata", "ActivityLog"))
}
m.RequestMetadata = fv
}
func (m *ActivityLog) SetRequestRouting(fv *ActivityLog_RequestRouting) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "RequestRouting", "ActivityLog"))
}
m.RequestRouting = fv
}
func (m *ActivityLog) SetResource(fv *ActivityLog_Resource) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Resource", "ActivityLog"))
}
m.Resource = fv
}
func (m *ActivityLog) SetCategory(fv ActivityLog_Category) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Category", "ActivityLog"))
}
m.Category = fv
}
func (m *ActivityLog) SetLabels(fv map[string]string) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Labels", "ActivityLog"))
}
m.Labels = fv
}
func (m *ActivityLog) SetEvents(fv []*ActivityLog_Event) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Events", "ActivityLog"))
}
m.Events = fv
}
// Event associated with activity.
type ActivityLog_Event struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are valid to be assigned to Evt:
// *ActivityLog_Event_ClientMessage
// *ActivityLog_Event_ServerMessage
// *ActivityLog_Event_Exit
// *ActivityLog_Event_RegionalServerMessage
// *ActivityLog_Event_RegionalExit
Evt isActivityLog_Event_Evt `protobuf_oneof:"evt"`
}
func (m *ActivityLog_Event) Reset() {
*m = ActivityLog_Event{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_audit_proto_v1_activity_log_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *ActivityLog_Event) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*ActivityLog_Event) ProtoMessage() {}
func (m *ActivityLog_Event) ProtoReflect() preflect.Message {
mi := &edgelq_audit_proto_v1_activity_log_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 (*ActivityLog_Event) GotenMessage() {}
// Deprecated, Use ActivityLog_Event.ProtoReflect.Descriptor instead.
func (*ActivityLog_Event) Descriptor() ([]byte, []int) {
return edgelq_audit_proto_v1_activity_log_proto_rawDescGZIP(), []int{0, 0}
}
func (m *ActivityLog_Event) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *ActivityLog_Event) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *ActivityLog_Event) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *ActivityLog_Event) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
type isActivityLog_Event_Evt interface {
isActivityLog_Event_Evt()
}
type ActivityLog_Event_ClientMessage struct {
// Client message received event
ClientMessage *ActivityLog_Event_ClientMsgEvent `protobuf:"bytes,1,opt,name=client_message,json=clientMessage,proto3,oneof" firestore:"clientMessage"`
}
type ActivityLog_Event_ServerMessage struct {
// Server message sent event
ServerMessage *ActivityLog_Event_ServerMsgEvent `protobuf:"bytes,2,opt,name=server_message,json=serverMessage,proto3,oneof" firestore:"serverMessage"`
}
type ActivityLog_Event_Exit struct {
// Request finished event
Exit *ActivityLog_Event_ExitEvent `protobuf:"bytes,3,opt,name=exit,proto3,oneof" firestore:"exit"`
}
type ActivityLog_Event_RegionalServerMessage struct {
// Server received response from another server (used for split & merge)
// which describes PARTIAL result to be sent to the client.
RegionalServerMessage *ActivityLog_Event_RegionalServerMsgEvent `protobuf:"bytes,4,opt,name=regional_server_message,json=regionalServerMessage,proto3,oneof" firestore:"regionalServerMessage"`
}
type ActivityLog_Event_RegionalExit struct {
// Server received exit code from another server (used for split & merge).
// In case it contains error, its likely final exit will contain this too.
RegionalExit *ActivityLog_Event_RegionalServerMsgEvent `protobuf:"bytes,5,opt,name=regional_exit,json=regionalExit,proto3,oneof" firestore:"regionalExit"`
}
func (*ActivityLog_Event_ClientMessage) isActivityLog_Event_Evt() {}
func (*ActivityLog_Event_ServerMessage) isActivityLog_Event_Evt() {}
func (*ActivityLog_Event_Exit) isActivityLog_Event_Evt() {}
func (*ActivityLog_Event_RegionalServerMessage) isActivityLog_Event_Evt() {}
func (*ActivityLog_Event_RegionalExit) isActivityLog_Event_Evt() {}
func (m *ActivityLog_Event) GetEvt() isActivityLog_Event_Evt {
if m != nil {
return m.Evt
}
return nil
}
func (m *ActivityLog_Event) GetClientMessage() *ActivityLog_Event_ClientMsgEvent {
if x, ok := m.GetEvt().(*ActivityLog_Event_ClientMessage); ok {
return x.ClientMessage
}
return nil
}
func (m *ActivityLog_Event) GetServerMessage() *ActivityLog_Event_ServerMsgEvent {
if x, ok := m.GetEvt().(*ActivityLog_Event_ServerMessage); ok {
return x.ServerMessage
}
return nil
}
func (m *ActivityLog_Event) GetExit() *ActivityLog_Event_ExitEvent {
if x, ok := m.GetEvt().(*ActivityLog_Event_Exit); ok {
return x.Exit
}
return nil
}
func (m *ActivityLog_Event) GetRegionalServerMessage() *ActivityLog_Event_RegionalServerMsgEvent {
if x, ok := m.GetEvt().(*ActivityLog_Event_RegionalServerMessage); ok {
return x.RegionalServerMessage
}
return nil
}
func (m *ActivityLog_Event) GetRegionalExit() *ActivityLog_Event_RegionalServerMsgEvent {
if x, ok := m.GetEvt().(*ActivityLog_Event_RegionalExit); ok {
return x.RegionalExit
}
return nil
}
func (m *ActivityLog_Event) SetEvt(ofv isActivityLog_Event_Evt) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "isActivityLog_Event_Evt", "ActivityLog_Event"))
}
m.Evt = ofv
}
func (m *ActivityLog_Event) SetClientMessage(fv *ActivityLog_Event_ClientMsgEvent) {
m.SetEvt(&ActivityLog_Event_ClientMessage{ClientMessage: fv})
}
func (m *ActivityLog_Event) SetServerMessage(fv *ActivityLog_Event_ServerMsgEvent) {
m.SetEvt(&ActivityLog_Event_ServerMessage{ServerMessage: fv})
}
func (m *ActivityLog_Event) SetExit(fv *ActivityLog_Event_ExitEvent) {
m.SetEvt(&ActivityLog_Event_Exit{Exit: fv})
}
func (m *ActivityLog_Event) SetRegionalServerMessage(fv *ActivityLog_Event_RegionalServerMsgEvent) {
m.SetEvt(&ActivityLog_Event_RegionalServerMessage{RegionalServerMessage: fv})
}
func (m *ActivityLog_Event) SetRegionalExit(fv *ActivityLog_Event_RegionalServerMsgEvent) {
m.SetEvt(&ActivityLog_Event_RegionalExit{RegionalExit: fv})
}
// Description of the executed method
type ActivityLog_Method struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Type name of a method, for example "UpdateRoleBinding".
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty" firestore:"type"`
// Version in which method was executed.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty" firestore:"version"`
}
func (m *ActivityLog_Method) Reset() {
*m = ActivityLog_Method{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_audit_proto_v1_activity_log_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *ActivityLog_Method) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*ActivityLog_Method) ProtoMessage() {}
func (m *ActivityLog_Method) ProtoReflect() preflect.Message {
mi := &edgelq_audit_proto_v1_activity_log_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 (*ActivityLog_Method) GotenMessage() {}
// Deprecated, Use ActivityLog_Method.ProtoReflect.Descriptor instead.
func (*ActivityLog_Method) Descriptor() ([]byte, []int) {
return edgelq_audit_proto_v1_activity_log_proto_rawDescGZIP(), []int{0, 1}
}
func (m *ActivityLog_Method) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *ActivityLog_Method) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *ActivityLog_Method) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *ActivityLog_Method) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *ActivityLog_Method) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *ActivityLog_Method) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
func (m *ActivityLog_Method) SetType(fv string) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Type", "ActivityLog_Method"))
}
m.Type = fv
}
func (m *ActivityLog_Method) SetVersion(fv string) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Version", "ActivityLog_Method"))
}
m.Version = fv
}
// Additional information about request caller
type ActivityLog_RequestMetadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Source IP from where request came
IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty" firestore:"ipAddress"`
// Agent used by the request caller
UserAgent string `protobuf:"bytes,2,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty" firestore:"userAgent"`
}
func (m *ActivityLog_RequestMetadata) Reset() {
*m = ActivityLog_RequestMetadata{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_audit_proto_v1_activity_log_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *ActivityLog_RequestMetadata) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*ActivityLog_RequestMetadata) ProtoMessage() {}
func (m *ActivityLog_RequestMetadata) ProtoReflect() preflect.Message {
mi := &edgelq_audit_proto_v1_activity_log_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 (*ActivityLog_RequestMetadata) GotenMessage() {}
// Deprecated, Use ActivityLog_RequestMetadata.ProtoReflect.Descriptor instead.
func (*ActivityLog_RequestMetadata) Descriptor() ([]byte, []int) {
return edgelq_audit_proto_v1_activity_log_proto_rawDescGZIP(), []int{0, 2}
}
func (m *ActivityLog_RequestMetadata) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *ActivityLog_RequestMetadata) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *ActivityLog_RequestMetadata) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *ActivityLog_RequestMetadata) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *ActivityLog_RequestMetadata) GetIpAddress() string {
if m != nil {
return m.IpAddress
}
return ""
}
func (m *ActivityLog_RequestMetadata) GetUserAgent() string {
if m != nil {
return m.UserAgent
}
return ""
}
func (m *ActivityLog_RequestMetadata) SetIpAddress(fv string) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "IpAddress", "ActivityLog_RequestMetadata"))
}
m.IpAddress = fv
}
func (m *ActivityLog_RequestMetadata) SetUserAgent(fv string) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "UserAgent", "ActivityLog_RequestMetadata"))
}
m.UserAgent = fv
}
// Additional information regarding request routing. Request can be:
// * Received and executed locally
// * Received and redirected to another region
// * Received, then split across multiple-regions. Responses are merged before
// sending back to client
type ActivityLog_RequestRouting struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of a region which originally received request, if redirection or split
// & merge was required
ViaRegion string `protobuf:"bytes,1,opt,name=via_region,json=viaRegion,proto3" json:"via_region,omitempty" firestore:"viaRegion"`
// IDs of regions to which request was actually addressed.
DestRegions []string `protobuf:"bytes,2,rep,name=dest_regions,json=destRegions,proto3" json:"dest_regions,omitempty" firestore:"destRegions"`
}
func (m *ActivityLog_RequestRouting) Reset() {
*m = ActivityLog_RequestRouting{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_audit_proto_v1_activity_log_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *ActivityLog_RequestRouting) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*ActivityLog_RequestRouting) ProtoMessage() {}
func (m *ActivityLog_RequestRouting) ProtoReflect() preflect.Message {
mi := &edgelq_audit_proto_v1_activity_log_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 (*ActivityLog_RequestRouting) GotenMessage() {}
// Deprecated, Use ActivityLog_RequestRouting.ProtoReflect.Descriptor instead.
func (*ActivityLog_RequestRouting) Descriptor() ([]byte, []int) {
return edgelq_audit_proto_v1_activity_log_proto_rawDescGZIP(), []int{0, 3}
}
func (m *ActivityLog_RequestRouting) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *ActivityLog_RequestRouting) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *ActivityLog_RequestRouting) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *ActivityLog_RequestRouting) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *ActivityLog_RequestRouting) GetViaRegion() string {
if m != nil {
return m.ViaRegion
}
return ""
}
func (m *ActivityLog_RequestRouting) GetDestRegions() []string {
if m != nil {
return m.DestRegions
}
return nil
}
func (m *ActivityLog_RequestRouting) SetViaRegion(fv string) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "ViaRegion", "ActivityLog_RequestRouting"))
}
m.ViaRegion = fv
}
func (m *ActivityLog_RequestRouting) SetDestRegions(fv []string) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "DestRegions", "ActivityLog_RequestRouting"))
}
m.DestRegions = fv
}
// Description of the main resource activity refers to.
// For standard, goten-generated actions it's same as resource
// assigned to the the method. For custom actions, in some cases, developer
// may pick however different resource (it is customizable in proto audit
// spec).
type ActivityLog_Resource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// full name of the resource
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" firestore:"name"`
// difference contains update information of the resource.
// Left empty if the request described by this activity log did not
// update the resource.
Difference *ActivityLog_Resource_Difference `protobuf:"bytes,2,opt,name=difference,proto3" json:"difference,omitempty" firestore:"difference"`
}
func (m *ActivityLog_Resource) Reset() {
*m = ActivityLog_Resource{}
if protoimpl.UnsafeEnabled {
mi := &edgelq_audit_proto_v1_activity_log_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
ms.StoreMessageInfo(mi)
}
}
func (m *ActivityLog_Resource) String() string {
return protoimpl.X.MessageStringOf(m)
}
func (*ActivityLog_Resource) ProtoMessage() {}
func (m *ActivityLog_Resource) ProtoReflect() preflect.Message {
mi := &edgelq_audit_proto_v1_activity_log_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 (*ActivityLog_Resource) GotenMessage() {}
// Deprecated, Use ActivityLog_Resource.ProtoReflect.Descriptor instead.
func (*ActivityLog_Resource) Descriptor() ([]byte, []int) {
return edgelq_audit_proto_v1_activity_log_proto_rawDescGZIP(), []int{0, 4}
}
func (m *ActivityLog_Resource) Unmarshal(b []byte) error {
return proto.Unmarshal(b, m)
}
func (m *ActivityLog_Resource) Marshal() ([]byte, error) {
return proto.Marshal(m)
}
func (m *ActivityLog_Resource) MarshalJSON() ([]byte, error) {
return protojson.MarshalOptions{}.Marshal(m)
}
func (m *ActivityLog_Resource) UnmarshalJSON(data []byte) error {
return protojson.Unmarshal(data, m)
}
func (m *ActivityLog_Resource) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ActivityLog_Resource) GetDifference() *ActivityLog_Resource_Difference {
if m != nil {
return m.Difference
}
return nil
}
func (m *ActivityLog_Resource) SetName(fv string) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Name", "ActivityLog_Resource"))
}
m.Name = fv
}
func (m *ActivityLog_Resource) SetDifference(fv *ActivityLog_Resource_Difference) {
if m == nil {
panic(fmt.Errorf("can't set %s on nil %s", "Difference", "ActivityLog_Resource"))
}
m.Difference = fv
}
// Describes client message event
type ActivityLog_Event_ClientMsgEvent struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Message contents
Data *anypb.Any `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty" firestore:"data"`
// Time of a message
Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty" firestore:"time"`
}
func (m *ActivityLog_Event_ClientMsgEvent) Reset() {