/
storage.pb.go
executable file
·4135 lines (3700 loc) · 164 KB
/
storage.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/privacy/dlp/v2/storage.proto
package dlppb
import (
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
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)
)
// Coarse-grained confidence level of how well a particular finding
// satisfies the criteria to match a particular infoType.
//
// Likelihood is calculated based on the number of signals a
// finding has that implies that the finding matches the infoType. For
// example, a string that has an '@' and a '.com' is more likely to be a
// match for an email address than a string that only has an '@'.
//
// In general, the highest likelihood level has the strongest signals that
// indicate a match. That is, a finding with a high likelihood has a low chance
// of being a false positive.
//
// For more information about each likelihood level
// and how likelihood works, see [Match
// likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood).
type Likelihood int32
const (
// Default value; same as POSSIBLE.
Likelihood_LIKELIHOOD_UNSPECIFIED Likelihood = 0
// Highest chance of a false positive.
Likelihood_VERY_UNLIKELY Likelihood = 1
// High chance of a false positive.
Likelihood_UNLIKELY Likelihood = 2
// Some matching signals. The default value.
Likelihood_POSSIBLE Likelihood = 3
// Low chance of a false positive.
Likelihood_LIKELY Likelihood = 4
// Confidence level is high. Lowest chance of a false positive.
Likelihood_VERY_LIKELY Likelihood = 5
)
// Enum value maps for Likelihood.
var (
Likelihood_name = map[int32]string{
0: "LIKELIHOOD_UNSPECIFIED",
1: "VERY_UNLIKELY",
2: "UNLIKELY",
3: "POSSIBLE",
4: "LIKELY",
5: "VERY_LIKELY",
}
Likelihood_value = map[string]int32{
"LIKELIHOOD_UNSPECIFIED": 0,
"VERY_UNLIKELY": 1,
"UNLIKELY": 2,
"POSSIBLE": 3,
"LIKELY": 4,
"VERY_LIKELY": 5,
}
)
func (x Likelihood) Enum() *Likelihood {
p := new(Likelihood)
*p = x
return p
}
func (x Likelihood) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Likelihood) Descriptor() protoreflect.EnumDescriptor {
return file_google_privacy_dlp_v2_storage_proto_enumTypes[0].Descriptor()
}
func (Likelihood) Type() protoreflect.EnumType {
return &file_google_privacy_dlp_v2_storage_proto_enumTypes[0]
}
func (x Likelihood) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Likelihood.Descriptor instead.
func (Likelihood) EnumDescriptor() ([]byte, []int) {
return file_google_privacy_dlp_v2_storage_proto_rawDescGZIP(), []int{0}
}
// Definitions of file type groups to scan. New types will be added to this
// list.
type FileType int32
const (
// Includes all files.
FileType_FILE_TYPE_UNSPECIFIED FileType = 0
// Includes all file extensions not covered by another entry. Binary
// scanning attempts to convert the content of the file to utf_8 to scan
// the file.
// If you wish to avoid this fall back, specify one or more of the other
// file types in your storage scan.
FileType_BINARY_FILE FileType = 1
// Included file extensions:
//
// asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart,
// dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm,
// mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht,
// properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex,
// shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml,
// ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd,
// yml, yaml.
FileType_TEXT_FILE FileType = 2
// Included file extensions:
//
// bmp, gif, jpg, jpeg, jpe, png. Setting
//
// [bytes_limit_per_file][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file]
// or
// [bytes_limit_per_file_percent][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file]
// has no effect on image files. Image inspection is restricted to the
// `global`, `us`, `asia`, and `europe` regions.
FileType_IMAGE FileType = 3
// Microsoft Word files larger than 30 MB will be scanned as binary files.
// Included file extensions:
//
// docx, dotx, docm, dotm. Setting `bytes_limit_per_file` or
// `bytes_limit_per_file_percent` has no effect on Word files.
FileType_WORD FileType = 5
// PDF files larger than 30 MB will be scanned as binary files.
// Included file extensions:
//
// pdf. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent`
//
// has no effect on PDF files.
FileType_PDF FileType = 6
// Included file extensions:
//
// avro
FileType_AVRO FileType = 7
// Included file extensions:
//
// csv
FileType_CSV FileType = 8
// Included file extensions:
//
// tsv
FileType_TSV FileType = 9
// Microsoft PowerPoint files larger than 30 MB will be scanned as binary
// files. Included file extensions:
//
// pptx, pptm, potx, potm, pot. Setting `bytes_limit_per_file` or
// `bytes_limit_per_file_percent` has no effect on PowerPoint files.
FileType_POWERPOINT FileType = 11
// Microsoft Excel files larger than 30 MB will be scanned as binary files.
// Included file extensions:
//
// xlsx, xlsm, xltx, xltm. Setting `bytes_limit_per_file` or
// `bytes_limit_per_file_percent` has no effect on Excel files.
FileType_EXCEL FileType = 12
)
// Enum value maps for FileType.
var (
FileType_name = map[int32]string{
0: "FILE_TYPE_UNSPECIFIED",
1: "BINARY_FILE",
2: "TEXT_FILE",
3: "IMAGE",
5: "WORD",
6: "PDF",
7: "AVRO",
8: "CSV",
9: "TSV",
11: "POWERPOINT",
12: "EXCEL",
}
FileType_value = map[string]int32{
"FILE_TYPE_UNSPECIFIED": 0,
"BINARY_FILE": 1,
"TEXT_FILE": 2,
"IMAGE": 3,
"WORD": 5,
"PDF": 6,
"AVRO": 7,
"CSV": 8,
"TSV": 9,
"POWERPOINT": 11,
"EXCEL": 12,
}
)
func (x FileType) Enum() *FileType {
p := new(FileType)
*p = x
return p
}
func (x FileType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (FileType) Descriptor() protoreflect.EnumDescriptor {
return file_google_privacy_dlp_v2_storage_proto_enumTypes[1].Descriptor()
}
func (FileType) Type() protoreflect.EnumType {
return &file_google_privacy_dlp_v2_storage_proto_enumTypes[1]
}
func (x FileType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use FileType.Descriptor instead.
func (FileType) EnumDescriptor() ([]byte, []int) {
return file_google_privacy_dlp_v2_storage_proto_rawDescGZIP(), []int{1}
}
// Various sensitivity score levels for resources.
type SensitivityScore_SensitivityScoreLevel int32
const (
// Unused.
SensitivityScore_SENSITIVITY_SCORE_UNSPECIFIED SensitivityScore_SensitivityScoreLevel = 0
// No sensitive information detected. The resource isn't publicly
// accessible.
SensitivityScore_SENSITIVITY_LOW SensitivityScore_SensitivityScoreLevel = 10
// Medium risk. Contains personally identifiable information (PII),
// potentially sensitive data, or fields with free-text data that are at a
// higher risk of having intermittent sensitive data. Consider limiting
// access.
SensitivityScore_SENSITIVITY_MODERATE SensitivityScore_SensitivityScoreLevel = 20
// High risk. Sensitive personally identifiable information (SPII) can be
// present. Exfiltration of data can lead to user data loss.
// Re-identification of users might be possible. Consider limiting usage and
// or removing SPII.
SensitivityScore_SENSITIVITY_HIGH SensitivityScore_SensitivityScoreLevel = 30
)
// Enum value maps for SensitivityScore_SensitivityScoreLevel.
var (
SensitivityScore_SensitivityScoreLevel_name = map[int32]string{
0: "SENSITIVITY_SCORE_UNSPECIFIED",
10: "SENSITIVITY_LOW",
20: "SENSITIVITY_MODERATE",
30: "SENSITIVITY_HIGH",
}
SensitivityScore_SensitivityScoreLevel_value = map[string]int32{
"SENSITIVITY_SCORE_UNSPECIFIED": 0,
"SENSITIVITY_LOW": 10,
"SENSITIVITY_MODERATE": 20,
"SENSITIVITY_HIGH": 30,
}
)
func (x SensitivityScore_SensitivityScoreLevel) Enum() *SensitivityScore_SensitivityScoreLevel {
p := new(SensitivityScore_SensitivityScoreLevel)
*p = x
return p
}
func (x SensitivityScore_SensitivityScoreLevel) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SensitivityScore_SensitivityScoreLevel) Descriptor() protoreflect.EnumDescriptor {
return file_google_privacy_dlp_v2_storage_proto_enumTypes[2].Descriptor()
}
func (SensitivityScore_SensitivityScoreLevel) Type() protoreflect.EnumType {
return &file_google_privacy_dlp_v2_storage_proto_enumTypes[2]
}
func (x SensitivityScore_SensitivityScoreLevel) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SensitivityScore_SensitivityScoreLevel.Descriptor instead.
func (SensitivityScore_SensitivityScoreLevel) EnumDescriptor() ([]byte, []int) {
return file_google_privacy_dlp_v2_storage_proto_rawDescGZIP(), []int{1, 0}
}
// Type of exclusion rule.
type CustomInfoType_ExclusionType int32
const (
// A finding of this custom info type will not be excluded from results.
CustomInfoType_EXCLUSION_TYPE_UNSPECIFIED CustomInfoType_ExclusionType = 0
// A finding of this custom info type will be excluded from final results,
// but can still affect rule execution.
CustomInfoType_EXCLUSION_TYPE_EXCLUDE CustomInfoType_ExclusionType = 1
)
// Enum value maps for CustomInfoType_ExclusionType.
var (
CustomInfoType_ExclusionType_name = map[int32]string{
0: "EXCLUSION_TYPE_UNSPECIFIED",
1: "EXCLUSION_TYPE_EXCLUDE",
}
CustomInfoType_ExclusionType_value = map[string]int32{
"EXCLUSION_TYPE_UNSPECIFIED": 0,
"EXCLUSION_TYPE_EXCLUDE": 1,
}
)
func (x CustomInfoType_ExclusionType) Enum() *CustomInfoType_ExclusionType {
p := new(CustomInfoType_ExclusionType)
*p = x
return p
}
func (x CustomInfoType_ExclusionType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CustomInfoType_ExclusionType) Descriptor() protoreflect.EnumDescriptor {
return file_google_privacy_dlp_v2_storage_proto_enumTypes[3].Descriptor()
}
func (CustomInfoType_ExclusionType) Type() protoreflect.EnumType {
return &file_google_privacy_dlp_v2_storage_proto_enumTypes[3]
}
func (x CustomInfoType_ExclusionType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CustomInfoType_ExclusionType.Descriptor instead.
func (CustomInfoType_ExclusionType) EnumDescriptor() ([]byte, []int) {
return file_google_privacy_dlp_v2_storage_proto_rawDescGZIP(), []int{3, 0}
}
// How to sample bytes if not all bytes are scanned. Meaningful only when used
// in conjunction with bytes_limit_per_file. If not specified, scanning would
// start from the top.
type CloudStorageOptions_SampleMethod int32
const (
// No sampling.
CloudStorageOptions_SAMPLE_METHOD_UNSPECIFIED CloudStorageOptions_SampleMethod = 0
// Scan from the top (default).
CloudStorageOptions_TOP CloudStorageOptions_SampleMethod = 1
// For each file larger than bytes_limit_per_file, randomly pick the offset
// to start scanning. The scanned bytes are contiguous.
CloudStorageOptions_RANDOM_START CloudStorageOptions_SampleMethod = 2
)
// Enum value maps for CloudStorageOptions_SampleMethod.
var (
CloudStorageOptions_SampleMethod_name = map[int32]string{
0: "SAMPLE_METHOD_UNSPECIFIED",
1: "TOP",
2: "RANDOM_START",
}
CloudStorageOptions_SampleMethod_value = map[string]int32{
"SAMPLE_METHOD_UNSPECIFIED": 0,
"TOP": 1,
"RANDOM_START": 2,
}
)
func (x CloudStorageOptions_SampleMethod) Enum() *CloudStorageOptions_SampleMethod {
p := new(CloudStorageOptions_SampleMethod)
*p = x
return p
}
func (x CloudStorageOptions_SampleMethod) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CloudStorageOptions_SampleMethod) Descriptor() protoreflect.EnumDescriptor {
return file_google_privacy_dlp_v2_storage_proto_enumTypes[4].Descriptor()
}
func (CloudStorageOptions_SampleMethod) Type() protoreflect.EnumType {
return &file_google_privacy_dlp_v2_storage_proto_enumTypes[4]
}
func (x CloudStorageOptions_SampleMethod) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CloudStorageOptions_SampleMethod.Descriptor instead.
func (CloudStorageOptions_SampleMethod) EnumDescriptor() ([]byte, []int) {
return file_google_privacy_dlp_v2_storage_proto_rawDescGZIP(), []int{9, 0}
}
// How to sample rows if not all rows are scanned. Meaningful only when used
// in conjunction with either rows_limit or rows_limit_percent. If not
// specified, rows are scanned in the order BigQuery reads them.
type BigQueryOptions_SampleMethod int32
const (
// No sampling.
BigQueryOptions_SAMPLE_METHOD_UNSPECIFIED BigQueryOptions_SampleMethod = 0
// Scan groups of rows in the order BigQuery provides (default). Multiple
// groups of rows may be scanned in parallel, so results may not appear in
// the same order the rows are read.
BigQueryOptions_TOP BigQueryOptions_SampleMethod = 1
// Randomly pick groups of rows to scan.
BigQueryOptions_RANDOM_START BigQueryOptions_SampleMethod = 2
)
// Enum value maps for BigQueryOptions_SampleMethod.
var (
BigQueryOptions_SampleMethod_name = map[int32]string{
0: "SAMPLE_METHOD_UNSPECIFIED",
1: "TOP",
2: "RANDOM_START",
}
BigQueryOptions_SampleMethod_value = map[string]int32{
"SAMPLE_METHOD_UNSPECIFIED": 0,
"TOP": 1,
"RANDOM_START": 2,
}
)
func (x BigQueryOptions_SampleMethod) Enum() *BigQueryOptions_SampleMethod {
p := new(BigQueryOptions_SampleMethod)
*p = x
return p
}
func (x BigQueryOptions_SampleMethod) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BigQueryOptions_SampleMethod) Descriptor() protoreflect.EnumDescriptor {
return file_google_privacy_dlp_v2_storage_proto_enumTypes[5].Descriptor()
}
func (BigQueryOptions_SampleMethod) Type() protoreflect.EnumType {
return &file_google_privacy_dlp_v2_storage_proto_enumTypes[5]
}
func (x BigQueryOptions_SampleMethod) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BigQueryOptions_SampleMethod.Descriptor instead.
func (BigQueryOptions_SampleMethod) EnumDescriptor() ([]byte, []int) {
return file_google_privacy_dlp_v2_storage_proto_rawDescGZIP(), []int{12, 0}
}
// Type of information detected by the API.
type InfoType struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name of the information type. Either a name of your choosing when
// creating a CustomInfoType, or one of the names listed
// at
// https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
// when specifying a built-in type. When sending Cloud DLP results to Data
// Catalog, infoType names should conform to the pattern
// `[A-Za-z0-9$_-]{1,64}`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional version name for this InfoType.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// Optional custom sensitivity for this InfoType.
// This only applies to data profiling.
SensitivityScore *SensitivityScore `protobuf:"bytes,3,opt,name=sensitivity_score,json=sensitivityScore,proto3" json:"sensitivity_score,omitempty"`
}
func (x *InfoType) Reset() {
*x = InfoType{}
if protoimpl.UnsafeEnabled {
mi := &file_google_privacy_dlp_v2_storage_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InfoType) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InfoType) ProtoMessage() {}
func (x *InfoType) ProtoReflect() protoreflect.Message {
mi := &file_google_privacy_dlp_v2_storage_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 InfoType.ProtoReflect.Descriptor instead.
func (*InfoType) Descriptor() ([]byte, []int) {
return file_google_privacy_dlp_v2_storage_proto_rawDescGZIP(), []int{0}
}
func (x *InfoType) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *InfoType) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *InfoType) GetSensitivityScore() *SensitivityScore {
if x != nil {
return x.SensitivityScore
}
return nil
}
// Score is calculated from of all elements in the data profile.
// A higher level means the data is more sensitive.
type SensitivityScore struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The sensitivity score applied to the resource.
Score SensitivityScore_SensitivityScoreLevel `protobuf:"varint,1,opt,name=score,proto3,enum=google.privacy.dlp.v2.SensitivityScore_SensitivityScoreLevel" json:"score,omitempty"`
}
func (x *SensitivityScore) Reset() {
*x = SensitivityScore{}
if protoimpl.UnsafeEnabled {
mi := &file_google_privacy_dlp_v2_storage_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SensitivityScore) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SensitivityScore) ProtoMessage() {}
func (x *SensitivityScore) ProtoReflect() protoreflect.Message {
mi := &file_google_privacy_dlp_v2_storage_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 SensitivityScore.ProtoReflect.Descriptor instead.
func (*SensitivityScore) Descriptor() ([]byte, []int) {
return file_google_privacy_dlp_v2_storage_proto_rawDescGZIP(), []int{1}
}
func (x *SensitivityScore) GetScore() SensitivityScore_SensitivityScoreLevel {
if x != nil {
return x.Score
}
return SensitivityScore_SENSITIVITY_SCORE_UNSPECIFIED
}
// A reference to a StoredInfoType to use with scanning.
type StoredType struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Resource name of the requested `StoredInfoType`, for example
// `organizations/433245324/storedInfoTypes/432452342` or
// `projects/project-id/storedInfoTypes/432452342`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Timestamp indicating when the version of the `StoredInfoType` used for
// inspection was created. Output-only field, populated by the system.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
}
func (x *StoredType) Reset() {
*x = StoredType{}
if protoimpl.UnsafeEnabled {
mi := &file_google_privacy_dlp_v2_storage_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StoredType) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StoredType) ProtoMessage() {}
func (x *StoredType) ProtoReflect() protoreflect.Message {
mi := &file_google_privacy_dlp_v2_storage_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 StoredType.ProtoReflect.Descriptor instead.
func (*StoredType) Descriptor() ([]byte, []int) {
return file_google_privacy_dlp_v2_storage_proto_rawDescGZIP(), []int{2}
}
func (x *StoredType) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *StoredType) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
// Custom information type provided by the user. Used to find domain-specific
// sensitive information configurable to the data in question.
type CustomInfoType struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// CustomInfoType can either be a new infoType, or an extension of built-in
// infoType, when the name matches one of existing infoTypes and that infoType
// is specified in `InspectContent.info_types` field. Specifying the latter
// adds findings to the one detected by the system. If built-in info type is
// not specified in `InspectContent.info_types` list then the name is treated
// as a custom info type.
InfoType *InfoType `protobuf:"bytes,1,opt,name=info_type,json=infoType,proto3" json:"info_type,omitempty"`
// Likelihood to return for this CustomInfoType. This base value can be
// altered by a detection rule if the finding meets the criteria specified by
// the rule. Defaults to `VERY_LIKELY` if not specified.
Likelihood Likelihood `protobuf:"varint,6,opt,name=likelihood,proto3,enum=google.privacy.dlp.v2.Likelihood" json:"likelihood,omitempty"`
// Type of custom detector.
//
// Types that are assignable to Type:
//
// *CustomInfoType_Dictionary_
// *CustomInfoType_Regex_
// *CustomInfoType_SurrogateType_
// *CustomInfoType_StoredType
Type isCustomInfoType_Type `protobuf_oneof:"type"`
// Set of detection rules to apply to all findings of this CustomInfoType.
// Rules are applied in order that they are specified. Not supported for the
// `surrogate_type` CustomInfoType.
DetectionRules []*CustomInfoType_DetectionRule `protobuf:"bytes,7,rep,name=detection_rules,json=detectionRules,proto3" json:"detection_rules,omitempty"`
// If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding
// to be returned. It still can be used for rules matching.
ExclusionType CustomInfoType_ExclusionType `protobuf:"varint,8,opt,name=exclusion_type,json=exclusionType,proto3,enum=google.privacy.dlp.v2.CustomInfoType_ExclusionType" json:"exclusion_type,omitempty"`
// Sensitivity for this CustomInfoType. If this CustomInfoType extends an
// existing InfoType, the sensitivity here will take precedence over that of
// the original InfoType. If unset for a CustomInfoType, it will default to
// HIGH.
// This only applies to data profiling.
SensitivityScore *SensitivityScore `protobuf:"bytes,9,opt,name=sensitivity_score,json=sensitivityScore,proto3" json:"sensitivity_score,omitempty"`
}
func (x *CustomInfoType) Reset() {
*x = CustomInfoType{}
if protoimpl.UnsafeEnabled {
mi := &file_google_privacy_dlp_v2_storage_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CustomInfoType) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CustomInfoType) ProtoMessage() {}
func (x *CustomInfoType) ProtoReflect() protoreflect.Message {
mi := &file_google_privacy_dlp_v2_storage_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 CustomInfoType.ProtoReflect.Descriptor instead.
func (*CustomInfoType) Descriptor() ([]byte, []int) {
return file_google_privacy_dlp_v2_storage_proto_rawDescGZIP(), []int{3}
}
func (x *CustomInfoType) GetInfoType() *InfoType {
if x != nil {
return x.InfoType
}
return nil
}
func (x *CustomInfoType) GetLikelihood() Likelihood {
if x != nil {
return x.Likelihood
}
return Likelihood_LIKELIHOOD_UNSPECIFIED
}
func (m *CustomInfoType) GetType() isCustomInfoType_Type {
if m != nil {
return m.Type
}
return nil
}
func (x *CustomInfoType) GetDictionary() *CustomInfoType_Dictionary {
if x, ok := x.GetType().(*CustomInfoType_Dictionary_); ok {
return x.Dictionary
}
return nil
}
func (x *CustomInfoType) GetRegex() *CustomInfoType_Regex {
if x, ok := x.GetType().(*CustomInfoType_Regex_); ok {
return x.Regex
}
return nil
}
func (x *CustomInfoType) GetSurrogateType() *CustomInfoType_SurrogateType {
if x, ok := x.GetType().(*CustomInfoType_SurrogateType_); ok {
return x.SurrogateType
}
return nil
}
func (x *CustomInfoType) GetStoredType() *StoredType {
if x, ok := x.GetType().(*CustomInfoType_StoredType); ok {
return x.StoredType
}
return nil
}
func (x *CustomInfoType) GetDetectionRules() []*CustomInfoType_DetectionRule {
if x != nil {
return x.DetectionRules
}
return nil
}
func (x *CustomInfoType) GetExclusionType() CustomInfoType_ExclusionType {
if x != nil {
return x.ExclusionType
}
return CustomInfoType_EXCLUSION_TYPE_UNSPECIFIED
}
func (x *CustomInfoType) GetSensitivityScore() *SensitivityScore {
if x != nil {
return x.SensitivityScore
}
return nil
}
type isCustomInfoType_Type interface {
isCustomInfoType_Type()
}
type CustomInfoType_Dictionary_ struct {
// A list of phrases to detect as a CustomInfoType.
Dictionary *CustomInfoType_Dictionary `protobuf:"bytes,2,opt,name=dictionary,proto3,oneof"`
}
type CustomInfoType_Regex_ struct {
// Regular expression based CustomInfoType.
Regex *CustomInfoType_Regex `protobuf:"bytes,3,opt,name=regex,proto3,oneof"`
}
type CustomInfoType_SurrogateType_ struct {
// Message for detecting output from deidentification transformations that
// support reversing.
SurrogateType *CustomInfoType_SurrogateType `protobuf:"bytes,4,opt,name=surrogate_type,json=surrogateType,proto3,oneof"`
}
type CustomInfoType_StoredType struct {
// Load an existing `StoredInfoType` resource for use in
// `InspectDataSource`. Not currently supported in `InspectContent`.
StoredType *StoredType `protobuf:"bytes,5,opt,name=stored_type,json=storedType,proto3,oneof"`
}
func (*CustomInfoType_Dictionary_) isCustomInfoType_Type() {}
func (*CustomInfoType_Regex_) isCustomInfoType_Type() {}
func (*CustomInfoType_SurrogateType_) isCustomInfoType_Type() {}
func (*CustomInfoType_StoredType) isCustomInfoType_Type() {}
// General identifier of a data field in a storage service.
type FieldId struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Name describing the field.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *FieldId) Reset() {
*x = FieldId{}
if protoimpl.UnsafeEnabled {
mi := &file_google_privacy_dlp_v2_storage_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FieldId) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FieldId) ProtoMessage() {}
func (x *FieldId) ProtoReflect() protoreflect.Message {
mi := &file_google_privacy_dlp_v2_storage_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 FieldId.ProtoReflect.Descriptor instead.
func (*FieldId) Descriptor() ([]byte, []int) {
return file_google_privacy_dlp_v2_storage_proto_rawDescGZIP(), []int{4}
}
func (x *FieldId) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Datastore partition ID.
// A partition ID identifies a grouping of entities. The grouping is always
// by project and namespace, however the namespace ID may be empty.
//
// A partition ID contains several dimensions:
// project ID and namespace ID.
type PartitionId struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The ID of the project to which the entities belong.
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// If not empty, the ID of the namespace to which the entities belong.
NamespaceId string `protobuf:"bytes,4,opt,name=namespace_id,json=namespaceId,proto3" json:"namespace_id,omitempty"`
}
func (x *PartitionId) Reset() {
*x = PartitionId{}
if protoimpl.UnsafeEnabled {
mi := &file_google_privacy_dlp_v2_storage_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PartitionId) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PartitionId) ProtoMessage() {}
func (x *PartitionId) ProtoReflect() protoreflect.Message {
mi := &file_google_privacy_dlp_v2_storage_proto_msgTypes[5]
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 PartitionId.ProtoReflect.Descriptor instead.
func (*PartitionId) Descriptor() ([]byte, []int) {
return file_google_privacy_dlp_v2_storage_proto_rawDescGZIP(), []int{5}
}
func (x *PartitionId) GetProjectId() string {
if x != nil {
return x.ProjectId
}
return ""
}
func (x *PartitionId) GetNamespaceId() string {
if x != nil {
return x.NamespaceId
}
return ""
}
// A representation of a Datastore kind.
type KindExpression struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The name of the kind.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *KindExpression) Reset() {
*x = KindExpression{}
if protoimpl.UnsafeEnabled {
mi := &file_google_privacy_dlp_v2_storage_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *KindExpression) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*KindExpression) ProtoMessage() {}
func (x *KindExpression) ProtoReflect() protoreflect.Message {
mi := &file_google_privacy_dlp_v2_storage_proto_msgTypes[6]
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 KindExpression.ProtoReflect.Descriptor instead.
func (*KindExpression) Descriptor() ([]byte, []int) {
return file_google_privacy_dlp_v2_storage_proto_rawDescGZIP(), []int{6}
}
func (x *KindExpression) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Options defining a data set within Google Cloud Datastore.
type DatastoreOptions struct {