-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
logging_config.pb.go
executable file
·8108 lines (7474 loc) · 365 KB
/
logging_config.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
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc v4.25.3
// source: google/logging/v2/logging_config.proto
package loggingpb
import (
context "context"
reflect "reflect"
sync "sync"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
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)
)
// List of different operation states.
// High level state of the operation. This is used to report the job's
// current state to the user. Once a long running operation is created,
// the current state of the operation can be queried even before the
// operation is finished and the final result is available.
type OperationState int32
const (
// Should not be used.
OperationState_OPERATION_STATE_UNSPECIFIED OperationState = 0
// The operation is scheduled.
OperationState_OPERATION_STATE_SCHEDULED OperationState = 1
// Waiting for necessary permissions.
OperationState_OPERATION_STATE_WAITING_FOR_PERMISSIONS OperationState = 2
// The operation is running.
OperationState_OPERATION_STATE_RUNNING OperationState = 3
// The operation was completed successfully.
OperationState_OPERATION_STATE_SUCCEEDED OperationState = 4
// The operation failed.
OperationState_OPERATION_STATE_FAILED OperationState = 5
// The operation was cancelled by the user.
OperationState_OPERATION_STATE_CANCELLED OperationState = 6
)
// Enum value maps for OperationState.
var (
OperationState_name = map[int32]string{
0: "OPERATION_STATE_UNSPECIFIED",
1: "OPERATION_STATE_SCHEDULED",
2: "OPERATION_STATE_WAITING_FOR_PERMISSIONS",
3: "OPERATION_STATE_RUNNING",
4: "OPERATION_STATE_SUCCEEDED",
5: "OPERATION_STATE_FAILED",
6: "OPERATION_STATE_CANCELLED",
}
OperationState_value = map[string]int32{
"OPERATION_STATE_UNSPECIFIED": 0,
"OPERATION_STATE_SCHEDULED": 1,
"OPERATION_STATE_WAITING_FOR_PERMISSIONS": 2,
"OPERATION_STATE_RUNNING": 3,
"OPERATION_STATE_SUCCEEDED": 4,
"OPERATION_STATE_FAILED": 5,
"OPERATION_STATE_CANCELLED": 6,
}
)
func (x OperationState) Enum() *OperationState {
p := new(OperationState)
*p = x
return p
}
func (x OperationState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (OperationState) Descriptor() protoreflect.EnumDescriptor {
return file_google_logging_v2_logging_config_proto_enumTypes[0].Descriptor()
}
func (OperationState) Type() protoreflect.EnumType {
return &file_google_logging_v2_logging_config_proto_enumTypes[0]
}
func (x OperationState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use OperationState.Descriptor instead.
func (OperationState) EnumDescriptor() ([]byte, []int) {
return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{0}
}
// LogBucket lifecycle states.
type LifecycleState int32
const (
// Unspecified state. This is only used/useful for distinguishing unset
// values.
LifecycleState_LIFECYCLE_STATE_UNSPECIFIED LifecycleState = 0
// The normal and active state.
LifecycleState_ACTIVE LifecycleState = 1
// The resource has been marked for deletion by the user. For some resources
// (e.g. buckets), this can be reversed by an un-delete operation.
LifecycleState_DELETE_REQUESTED LifecycleState = 2
// The resource has been marked for an update by the user. It will remain in
// this state until the update is complete.
LifecycleState_UPDATING LifecycleState = 3
// The resource has been marked for creation by the user. It will remain in
// this state until the creation is complete.
LifecycleState_CREATING LifecycleState = 4
// The resource is in an INTERNAL error state.
LifecycleState_FAILED LifecycleState = 5
)
// Enum value maps for LifecycleState.
var (
LifecycleState_name = map[int32]string{
0: "LIFECYCLE_STATE_UNSPECIFIED",
1: "ACTIVE",
2: "DELETE_REQUESTED",
3: "UPDATING",
4: "CREATING",
5: "FAILED",
}
LifecycleState_value = map[string]int32{
"LIFECYCLE_STATE_UNSPECIFIED": 0,
"ACTIVE": 1,
"DELETE_REQUESTED": 2,
"UPDATING": 3,
"CREATING": 4,
"FAILED": 5,
}
)
func (x LifecycleState) Enum() *LifecycleState {
p := new(LifecycleState)
*p = x
return p
}
func (x LifecycleState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (LifecycleState) Descriptor() protoreflect.EnumDescriptor {
return file_google_logging_v2_logging_config_proto_enumTypes[1].Descriptor()
}
func (LifecycleState) Type() protoreflect.EnumType {
return &file_google_logging_v2_logging_config_proto_enumTypes[1]
}
func (x LifecycleState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use LifecycleState.Descriptor instead.
func (LifecycleState) EnumDescriptor() ([]byte, []int) {
return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{1}
}
// IndexType is used for custom indexing. It describes the type of an indexed
// field.
type IndexType int32
const (
// The index's type is unspecified.
IndexType_INDEX_TYPE_UNSPECIFIED IndexType = 0
// The index is a string-type index.
IndexType_INDEX_TYPE_STRING IndexType = 1
// The index is a integer-type index.
IndexType_INDEX_TYPE_INTEGER IndexType = 2
)
// Enum value maps for IndexType.
var (
IndexType_name = map[int32]string{
0: "INDEX_TYPE_UNSPECIFIED",
1: "INDEX_TYPE_STRING",
2: "INDEX_TYPE_INTEGER",
}
IndexType_value = map[string]int32{
"INDEX_TYPE_UNSPECIFIED": 0,
"INDEX_TYPE_STRING": 1,
"INDEX_TYPE_INTEGER": 2,
}
)
func (x IndexType) Enum() *IndexType {
p := new(IndexType)
*p = x
return p
}
func (x IndexType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (IndexType) Descriptor() protoreflect.EnumDescriptor {
return file_google_logging_v2_logging_config_proto_enumTypes[2].Descriptor()
}
func (IndexType) Type() protoreflect.EnumType {
return &file_google_logging_v2_logging_config_proto_enumTypes[2]
}
func (x IndexType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use IndexType.Descriptor instead.
func (IndexType) EnumDescriptor() ([]byte, []int) {
return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{2}
}
// Deprecated. This is unused.
type LogSink_VersionFormat int32
const (
// An unspecified format version that will default to V2.
LogSink_VERSION_FORMAT_UNSPECIFIED LogSink_VersionFormat = 0
// `LogEntry` version 2 format.
LogSink_V2 LogSink_VersionFormat = 1
// `LogEntry` version 1 format.
LogSink_V1 LogSink_VersionFormat = 2
)
// Enum value maps for LogSink_VersionFormat.
var (
LogSink_VersionFormat_name = map[int32]string{
0: "VERSION_FORMAT_UNSPECIFIED",
1: "V2",
2: "V1",
}
LogSink_VersionFormat_value = map[string]int32{
"VERSION_FORMAT_UNSPECIFIED": 0,
"V2": 1,
"V1": 2,
}
)
func (x LogSink_VersionFormat) Enum() *LogSink_VersionFormat {
p := new(LogSink_VersionFormat)
*p = x
return p
}
func (x LogSink_VersionFormat) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (LogSink_VersionFormat) Descriptor() protoreflect.EnumDescriptor {
return file_google_logging_v2_logging_config_proto_enumTypes[3].Descriptor()
}
func (LogSink_VersionFormat) Type() protoreflect.EnumType {
return &file_google_logging_v2_logging_config_proto_enumTypes[3]
}
func (x LogSink_VersionFormat) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use LogSink_VersionFormat.Descriptor instead.
func (LogSink_VersionFormat) EnumDescriptor() ([]byte, []int) {
return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{3, 0}
}
// Configuration for an indexed field.
type IndexConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The LogEntry field path to index.
//
// Note that some paths are automatically indexed, and other paths are not
// eligible for indexing. See [indexing documentation](
// https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields)
// for details.
//
// For example: `jsonPayload.request.status`
FieldPath string `protobuf:"bytes,1,opt,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"`
// Required. The type of data in this index.
Type IndexType `protobuf:"varint,2,opt,name=type,proto3,enum=google.logging.v2.IndexType" json:"type,omitempty"`
// Output only. The timestamp when the index was last modified.
//
// This is used to return the timestamp, and will be ignored if supplied
// during update.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
}
func (x *IndexConfig) Reset() {
*x = IndexConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_logging_v2_logging_config_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IndexConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IndexConfig) ProtoMessage() {}
func (x *IndexConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_logging_v2_logging_config_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IndexConfig.ProtoReflect.Descriptor instead.
func (*IndexConfig) Descriptor() ([]byte, []int) {
return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{0}
}
func (x *IndexConfig) GetFieldPath() string {
if x != nil {
return x.FieldPath
}
return ""
}
func (x *IndexConfig) GetType() IndexType {
if x != nil {
return x.Type
}
return IndexType_INDEX_TYPE_UNSPECIFIED
}
func (x *IndexConfig) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
// Describes a repository in which log entries are stored.
type LogBucket struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. The resource name of the bucket.
//
// For example:
//
// `projects/my-project/locations/global/buckets/my-bucket`
//
// For a list of supported locations, see [Supported
// Regions](https://cloud.google.com/logging/docs/region-support)
//
// For the location of `global` it is unspecified where log entries are
// actually stored.
//
// After a bucket has been created, the location cannot be changed.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Describes this bucket.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The creation timestamp of the bucket. This is not set for any
// of the default buckets.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The last update timestamp of the bucket.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Logs will be retained by default for this amount of time, after which they
// will automatically be deleted. The minimum retention period is 1 day. If
// this value is set to zero at bucket creation time, the default time of 30
// days will be used.
RetentionDays int32 `protobuf:"varint,11,opt,name=retention_days,json=retentionDays,proto3" json:"retention_days,omitempty"`
// Whether the bucket is locked.
//
// The retention period on a locked bucket cannot be changed. Locked buckets
// may only be deleted if they are empty.
Locked bool `protobuf:"varint,9,opt,name=locked,proto3" json:"locked,omitempty"`
// Output only. The bucket lifecycle state.
LifecycleState LifecycleState `protobuf:"varint,12,opt,name=lifecycle_state,json=lifecycleState,proto3,enum=google.logging.v2.LifecycleState" json:"lifecycle_state,omitempty"`
// Whether log analytics is enabled for this bucket.
//
// Once enabled, log analytics features cannot be disabled.
AnalyticsEnabled bool `protobuf:"varint,14,opt,name=analytics_enabled,json=analyticsEnabled,proto3" json:"analytics_enabled,omitempty"`
// Log entry field paths that are denied access in this bucket.
//
// The following fields and their children are eligible: `textPayload`,
// `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
//
// Restricting a repeated field will restrict all values. Adding a parent will
// block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
RestrictedFields []string `protobuf:"bytes,15,rep,name=restricted_fields,json=restrictedFields,proto3" json:"restricted_fields,omitempty"`
// A list of indexed fields and related configuration data.
IndexConfigs []*IndexConfig `protobuf:"bytes,17,rep,name=index_configs,json=indexConfigs,proto3" json:"index_configs,omitempty"`
// The CMEK settings of the log bucket. If present, new log entries written to
// this log bucket are encrypted using the CMEK key provided in this
// configuration. If a log bucket has CMEK settings, the CMEK settings cannot
// be disabled later by updating the log bucket. Changing the KMS key is
// allowed.
CmekSettings *CmekSettings `protobuf:"bytes,19,opt,name=cmek_settings,json=cmekSettings,proto3" json:"cmek_settings,omitempty"`
}
func (x *LogBucket) Reset() {
*x = LogBucket{}
if protoimpl.UnsafeEnabled {
mi := &file_google_logging_v2_logging_config_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LogBucket) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LogBucket) ProtoMessage() {}
func (x *LogBucket) ProtoReflect() protoreflect.Message {
mi := &file_google_logging_v2_logging_config_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LogBucket.ProtoReflect.Descriptor instead.
func (*LogBucket) Descriptor() ([]byte, []int) {
return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{1}
}
func (x *LogBucket) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *LogBucket) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *LogBucket) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *LogBucket) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *LogBucket) GetRetentionDays() int32 {
if x != nil {
return x.RetentionDays
}
return 0
}
func (x *LogBucket) GetLocked() bool {
if x != nil {
return x.Locked
}
return false
}
func (x *LogBucket) GetLifecycleState() LifecycleState {
if x != nil {
return x.LifecycleState
}
return LifecycleState_LIFECYCLE_STATE_UNSPECIFIED
}
func (x *LogBucket) GetAnalyticsEnabled() bool {
if x != nil {
return x.AnalyticsEnabled
}
return false
}
func (x *LogBucket) GetRestrictedFields() []string {
if x != nil {
return x.RestrictedFields
}
return nil
}
func (x *LogBucket) GetIndexConfigs() []*IndexConfig {
if x != nil {
return x.IndexConfigs
}
return nil
}
func (x *LogBucket) GetCmekSettings() *CmekSettings {
if x != nil {
return x.CmekSettings
}
return nil
}
// Describes a view over log entries in a bucket.
type LogView struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The resource name of the view.
//
// For example:
//
// `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Describes this view.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The creation timestamp of the view.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The last update timestamp of the view.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Filter that restricts which log entries in a bucket are visible in this
// view.
//
// Filters are restricted to be a logical AND of ==/!= of any of the
// following:
//
// - originating project/folder/organization/billing account.
// - resource type
// - log id
//
// For example:
//
// SOURCE("projects/myproject") AND resource.type = "gce_instance"
// AND LOG_ID("stdout")
Filter string `protobuf:"bytes,7,opt,name=filter,proto3" json:"filter,omitempty"`
}
func (x *LogView) Reset() {
*x = LogView{}
if protoimpl.UnsafeEnabled {
mi := &file_google_logging_v2_logging_config_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LogView) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LogView) ProtoMessage() {}
func (x *LogView) ProtoReflect() protoreflect.Message {
mi := &file_google_logging_v2_logging_config_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LogView.ProtoReflect.Descriptor instead.
func (*LogView) Descriptor() ([]byte, []int) {
return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{2}
}
func (x *LogView) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *LogView) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *LogView) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *LogView) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *LogView) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
// Describes a sink used to export log entries to one of the following
// destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a
// Pub/Sub topic or a Cloud Logging log bucket. A logs filter controls which log
// entries are exported. The sink must be created within a project,
// organization, billing account, or folder.
type LogSink struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The client-assigned sink identifier, unique within the project.
//
// For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
// to 100 characters and can include only the following characters: upper and
// lower-case alphanumeric characters, underscores, hyphens, and periods.
// First character has to be alphanumeric.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The export destination:
//
// "storage.googleapis.com/[GCS_BUCKET]"
// "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
// "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
//
// The sink's `writer_identity`, set when the sink is created, must have
// permission to write to the destination or else the log entries are not
// exported. For more information, see
// [Exporting Logs with
// Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
Destination string `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination,omitempty"`
// Optional. An [advanced logs
// filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
// only exported log entries are those that are in the resource owning the
// sink and that match the filter.
//
// For example:
//
// `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR`
Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. A description of this sink.
//
// The maximum length of the description is 8000 characters.
Description string `protobuf:"bytes,18,opt,name=description,proto3" json:"description,omitempty"`
// Optional. If set to true, then this sink is disabled and it does not export
// any log entries.
Disabled bool `protobuf:"varint,19,opt,name=disabled,proto3" json:"disabled,omitempty"`
// Optional. Log entries that match any of these exclusion filters will not be
// exported.
//
// If a log entry is matched by both `filter` and one of `exclusion_filters`
// it will not be exported.
Exclusions []*LogExclusion `protobuf:"bytes,16,rep,name=exclusions,proto3" json:"exclusions,omitempty"`
// Deprecated. This field is unused.
//
// Deprecated: Marked as deprecated in google/logging/v2/logging_config.proto.
OutputVersionFormat LogSink_VersionFormat `protobuf:"varint,6,opt,name=output_version_format,json=outputVersionFormat,proto3,enum=google.logging.v2.LogSink_VersionFormat" json:"output_version_format,omitempty"`
// Output only. An IAM identity—a service account or group—under
// which Cloud Logging writes the exported log entries to the sink's
// destination. This field is either set by specifying
// `custom_writer_identity` or set automatically by
// [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
// [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
// value of `unique_writer_identity` in those methods.
//
// Until you grant this identity write-access to the destination, log entry
// exports from this sink will fail. For more information, see [Granting
// Access for a
// Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
// Consult the destination service's documentation to determine the
// appropriate IAM roles to assign to the identity.
//
// Sinks that have a destination that is a log bucket in the same project as
// the sink cannot have a writer_identity and no additional permissions are
// required.
WriterIdentity string `protobuf:"bytes,8,opt,name=writer_identity,json=writerIdentity,proto3" json:"writer_identity,omitempty"`
// Optional. This field applies only to sinks owned by organizations and
// folders. If the field is false, the default, only the logs owned by the
// sink's parent resource are available for export. If the field is true, then
// log entries from all the projects, folders, and billing accounts contained
// in the sink's parent resource are also available for export. Whether a
// particular log entry from the children is exported depends on the sink's
// filter expression.
//
// For example, if this field is true, then the filter
// `resource.type=gce_instance` would export all Compute Engine VM instance
// log entries from all projects in the sink's parent.
//
// To only export entries from certain child projects, filter on the project
// part of the log name:
//
// logName:("projects/test-project1/" OR "projects/test-project2/") AND
// resource.type=gce_instance
IncludeChildren bool `protobuf:"varint,9,opt,name=include_children,json=includeChildren,proto3" json:"include_children,omitempty"`
// Destination dependent options.
//
// Types that are assignable to Options:
//
// *LogSink_BigqueryOptions
Options isLogSink_Options `protobuf_oneof:"options"`
// Output only. The creation timestamp of the sink.
//
// This field may not be present for older sinks.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The last update timestamp of the sink.
//
// This field may not be present for older sinks.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
}
func (x *LogSink) Reset() {
*x = LogSink{}
if protoimpl.UnsafeEnabled {
mi := &file_google_logging_v2_logging_config_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LogSink) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LogSink) ProtoMessage() {}
func (x *LogSink) ProtoReflect() protoreflect.Message {
mi := &file_google_logging_v2_logging_config_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LogSink.ProtoReflect.Descriptor instead.
func (*LogSink) Descriptor() ([]byte, []int) {
return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{3}
}
func (x *LogSink) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *LogSink) GetDestination() string {
if x != nil {
return x.Destination
}
return ""
}
func (x *LogSink) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *LogSink) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *LogSink) GetDisabled() bool {
if x != nil {
return x.Disabled
}
return false
}
func (x *LogSink) GetExclusions() []*LogExclusion {
if x != nil {
return x.Exclusions
}
return nil
}
// Deprecated: Marked as deprecated in google/logging/v2/logging_config.proto.
func (x *LogSink) GetOutputVersionFormat() LogSink_VersionFormat {
if x != nil {
return x.OutputVersionFormat
}
return LogSink_VERSION_FORMAT_UNSPECIFIED
}
func (x *LogSink) GetWriterIdentity() string {
if x != nil {
return x.WriterIdentity
}
return ""
}
func (x *LogSink) GetIncludeChildren() bool {
if x != nil {
return x.IncludeChildren
}
return false
}
func (m *LogSink) GetOptions() isLogSink_Options {
if m != nil {
return m.Options
}
return nil
}
func (x *LogSink) GetBigqueryOptions() *BigQueryOptions {
if x, ok := x.GetOptions().(*LogSink_BigqueryOptions); ok {
return x.BigqueryOptions
}
return nil
}
func (x *LogSink) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *LogSink) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
type isLogSink_Options interface {
isLogSink_Options()
}
type LogSink_BigqueryOptions struct {
// Optional. Options that affect sinks exporting data to BigQuery.
BigqueryOptions *BigQueryOptions `protobuf:"bytes,12,opt,name=bigquery_options,json=bigqueryOptions,proto3,oneof"`
}
func (*LogSink_BigqueryOptions) isLogSink_Options() {}
// Describes a BigQuery dataset that was created by a link.
type BigQueryDataset struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. The full resource name of the BigQuery dataset. The DATASET_ID
// will match the ID of the link, so the link must match the naming
// restrictions of BigQuery datasets (alphanumeric characters and underscores
// only).
//
// The dataset will have a resource path of
//
// "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET_ID]"
DatasetId string `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"`
}
func (x *BigQueryDataset) Reset() {
*x = BigQueryDataset{}
if protoimpl.UnsafeEnabled {
mi := &file_google_logging_v2_logging_config_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BigQueryDataset) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BigQueryDataset) ProtoMessage() {}
func (x *BigQueryDataset) ProtoReflect() protoreflect.Message {
mi := &file_google_logging_v2_logging_config_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BigQueryDataset.ProtoReflect.Descriptor instead.
func (*BigQueryDataset) Descriptor() ([]byte, []int) {
return file_google_logging_v2_logging_config_proto_rawDescGZIP(), []int{4}
}
func (x *BigQueryDataset) GetDatasetId() string {
if x != nil {
return x.DatasetId
}
return ""
}
// Describes a link connected to an analytics enabled bucket.
type Link struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The resource name of the link. The name can have up to 100 characters.
// A valid link id (at the end of the link name) must only have alphanumeric
// characters and underscores within it.
//
// "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
// "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
// "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
// "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
//
// For example:
//
// `projects/my-project/locations/global/buckets/my-bucket/links/my_link
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Describes this link.
//
// The maximum length of the description is 8000 characters.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The creation timestamp of the link.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The resource lifecycle state.
LifecycleState LifecycleState `protobuf:"varint,4,opt,name=lifecycle_state,json=lifecycleState,proto3,enum=google.logging.v2.LifecycleState" json:"lifecycle_state,omitempty"`
// The information of a BigQuery Dataset. When a link is created, a BigQuery
// dataset is created along with it, in the same project as the LogBucket it's
// linked to. This dataset will also have BigQuery Views corresponding to the
// LogViews in the bucket.
BigqueryDataset *BigQueryDataset `protobuf:"bytes,5,opt,name=bigquery_dataset,json=bigqueryDataset,proto3" json:"bigquery_dataset,omitempty"`
}
func (x *Link) Reset() {
*x = Link{}
if protoimpl.UnsafeEnabled {
mi := &file_google_logging_v2_logging_config_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Link) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Link) ProtoMessage() {}
func (x *Link) ProtoReflect() protoreflect.Message {
mi := &file_google_logging_v2_logging_config_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms