google-cloud-dlp-v2 0.1.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,7 +24,7 @@ module Google
24
24
  module V2
25
25
  module DlpService
26
26
  # Credentials for the DlpService API.
27
- class Credentials < Google::Auth::Credentials
27
+ class Credentials < ::Google::Auth::Credentials
28
28
  self.scope = [
29
29
  "https://www.googleapis.com/auth/cloud-platform"
30
30
  ]
@@ -61,35 +61,35 @@ module Google
61
61
  # @param location [String]
62
62
  # @param deidentify_template [String]
63
63
  #
64
- # @return [String]
64
+ # @return [::String]
65
65
  def deidentify_template_path **args
66
66
  resources = {
67
67
  "deidentify_template:organization" => (proc do |organization:, deidentify_template:|
68
- raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
68
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
69
69
 
70
70
  "organizations/#{organization}/deidentifyTemplates/#{deidentify_template}"
71
71
  end),
72
72
  "deidentify_template:project" => (proc do |project:, deidentify_template:|
73
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
73
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
74
74
 
75
75
  "projects/#{project}/deidentifyTemplates/#{deidentify_template}"
76
76
  end),
77
77
  "deidentify_template:location:organization" => (proc do |organization:, location:, deidentify_template:|
78
- raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
79
- raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
78
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
79
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
80
80
 
81
81
  "organizations/#{organization}/locations/#{location}/deidentifyTemplates/#{deidentify_template}"
82
82
  end),
83
83
  "deidentify_template:location:project" => (proc do |project:, location:, deidentify_template:|
84
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
85
- raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
84
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
85
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
86
86
 
87
87
  "projects/#{project}/locations/#{location}/deidentifyTemplates/#{deidentify_template}"
88
88
  end)
89
89
  }
90
90
 
91
91
  resource = resources[args.keys.sort.join(":")]
92
- raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
92
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
93
93
  resource.call(**args)
94
94
  end
95
95
 
@@ -113,24 +113,24 @@ module Google
113
113
  # @param location [String]
114
114
  # @param dlp_job [String]
115
115
  #
116
- # @return [String]
116
+ # @return [::String]
117
117
  def dlp_job_path **args
118
118
  resources = {
119
119
  "dlp_job:project" => (proc do |project:, dlp_job:|
120
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
120
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
121
121
 
122
122
  "projects/#{project}/dlpJobs/#{dlp_job}"
123
123
  end),
124
124
  "dlp_job:location:project" => (proc do |project:, location:, dlp_job:|
125
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
126
- raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
125
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
126
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
127
127
 
128
128
  "projects/#{project}/locations/#{location}/dlpJobs/#{dlp_job}"
129
129
  end)
130
130
  }
131
131
 
132
132
  resource = resources[args.keys.sort.join(":")]
133
- raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
133
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
134
134
  resource.call(**args)
135
135
  end
136
136
 
@@ -171,35 +171,35 @@ module Google
171
171
  # @param location [String]
172
172
  # @param inspect_template [String]
173
173
  #
174
- # @return [String]
174
+ # @return [::String]
175
175
  def inspect_template_path **args
176
176
  resources = {
177
177
  "inspect_template:organization" => (proc do |organization:, inspect_template:|
178
- raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
178
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
179
179
 
180
180
  "organizations/#{organization}/inspectTemplates/#{inspect_template}"
181
181
  end),
182
182
  "inspect_template:project" => (proc do |project:, inspect_template:|
183
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
183
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
184
184
 
185
185
  "projects/#{project}/inspectTemplates/#{inspect_template}"
186
186
  end),
187
187
  "inspect_template:location:organization" => (proc do |organization:, location:, inspect_template:|
188
- raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
189
- raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
188
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
189
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
190
190
 
191
191
  "organizations/#{organization}/locations/#{location}/inspectTemplates/#{inspect_template}"
192
192
  end),
193
193
  "inspect_template:location:project" => (proc do |project:, location:, inspect_template:|
194
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
195
- raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
194
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
195
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
196
196
 
197
197
  "projects/#{project}/locations/#{location}/inspectTemplates/#{inspect_template}"
198
198
  end)
199
199
  }
200
200
 
201
201
  resource = resources[args.keys.sort.join(":")]
202
- raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
202
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
203
203
  resource.call(**args)
204
204
  end
205
205
 
@@ -223,24 +223,24 @@ module Google
223
223
  # @param location [String]
224
224
  # @param job_trigger [String]
225
225
  #
226
- # @return [String]
226
+ # @return [::String]
227
227
  def job_trigger_path **args
228
228
  resources = {
229
229
  "job_trigger:project" => (proc do |project:, job_trigger:|
230
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
230
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
231
231
 
232
232
  "projects/#{project}/jobTriggers/#{job_trigger}"
233
233
  end),
234
234
  "job_trigger:location:project" => (proc do |project:, location:, job_trigger:|
235
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
236
- raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
235
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
236
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
237
237
 
238
238
  "projects/#{project}/locations/#{location}/jobTriggers/#{job_trigger}"
239
239
  end)
240
240
  }
241
241
 
242
242
  resource = resources[args.keys.sort.join(":")]
243
- raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
243
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
244
244
  resource.call(**args)
245
245
  end
246
246
 
@@ -254,9 +254,9 @@ module Google
254
254
  # @param project [String]
255
255
  # @param location [String]
256
256
  #
257
- # @return [String]
257
+ # @return [::String]
258
258
  def location_path project:, location:
259
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
259
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
260
260
 
261
261
  "projects/#{project}/locations/#{location}"
262
262
  end
@@ -270,7 +270,7 @@ module Google
270
270
  #
271
271
  # @param organization [String]
272
272
  #
273
- # @return [String]
273
+ # @return [::String]
274
274
  def organization_path organization:
275
275
  "organizations/#{organization}"
276
276
  end
@@ -285,9 +285,9 @@ module Google
285
285
  # @param organization [String]
286
286
  # @param location [String]
287
287
  #
288
- # @return [String]
288
+ # @return [::String]
289
289
  def organization_location_path organization:, location:
290
- raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
290
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
291
291
 
292
292
  "organizations/#{organization}/locations/#{location}"
293
293
  end
@@ -301,7 +301,7 @@ module Google
301
301
  #
302
302
  # @param project [String]
303
303
  #
304
- # @return [String]
304
+ # @return [::String]
305
305
  def project_path project:
306
306
  "projects/#{project}"
307
307
  end
@@ -343,35 +343,35 @@ module Google
343
343
  # @param location [String]
344
344
  # @param stored_info_type [String]
345
345
  #
346
- # @return [String]
346
+ # @return [::String]
347
347
  def stored_info_type_path **args
348
348
  resources = {
349
349
  "organization:stored_info_type" => (proc do |organization:, stored_info_type:|
350
- raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
350
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
351
351
 
352
352
  "organizations/#{organization}/storedInfoTypes/#{stored_info_type}"
353
353
  end),
354
354
  "project:stored_info_type" => (proc do |project:, stored_info_type:|
355
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
355
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
356
356
 
357
357
  "projects/#{project}/storedInfoTypes/#{stored_info_type}"
358
358
  end),
359
359
  "location:organization:stored_info_type" => (proc do |organization:, location:, stored_info_type:|
360
- raise ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
361
- raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
360
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
361
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
362
362
 
363
363
  "organizations/#{organization}/locations/#{location}/storedInfoTypes/#{stored_info_type}"
364
364
  end),
365
365
  "location:project:stored_info_type" => (proc do |project:, location:, stored_info_type:|
366
- raise ArgumentError, "project cannot contain /" if project.to_s.include? "/"
367
- raise ArgumentError, "location cannot contain /" if location.to_s.include? "/"
366
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
367
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
368
368
 
369
369
  "projects/#{project}/locations/#{location}/storedInfoTypes/#{stored_info_type}"
370
370
  end)
371
371
  }
372
372
 
373
373
  resource = resources[args.keys.sort.join(":")]
374
- raise ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
374
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
375
375
  resource.call(**args)
376
376
  end
377
377
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Dlp
23
23
  module V2
24
- VERSION = "0.1.0"
24
+ VERSION = "0.3.2"
25
25
  end
26
26
  end
27
27
  end
@@ -70,6 +70,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
70
70
  value :IMAGE_PNG, 3
71
71
  value :IMAGE_SVG, 4
72
72
  value :TEXT_UTF8, 5
73
+ value :WORD_DOCUMENT, 7
74
+ value :PDF, 8
73
75
  value :AVRO, 11
74
76
  end
75
77
  add_message "google.privacy.dlp.v2.ContentItem" do
@@ -118,8 +120,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
118
120
  optional :record_location, :message, 2, "google.privacy.dlp.v2.RecordLocation"
119
121
  optional :image_location, :message, 3, "google.privacy.dlp.v2.ImageLocation"
120
122
  optional :document_location, :message, 5, "google.privacy.dlp.v2.DocumentLocation"
123
+ optional :metadata_location, :message, 8, "google.privacy.dlp.v2.MetadataLocation"
121
124
  end
122
125
  end
126
+ add_message "google.privacy.dlp.v2.MetadataLocation" do
127
+ optional :type, :enum, 1, "google.privacy.dlp.v2.MetadataType"
128
+ oneof :label do
129
+ optional :storage_label, :message, 3, "google.privacy.dlp.v2.StorageMetadataLabel"
130
+ end
131
+ end
132
+ add_message "google.privacy.dlp.v2.StorageMetadataLabel" do
133
+ optional :key, :string, 1
134
+ end
123
135
  add_message "google.privacy.dlp.v2.DocumentLocation" do
124
136
  optional :file_offset, :int64, 1
125
137
  end
@@ -258,6 +270,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
258
270
  optional :description, :string, 4
259
271
  end
260
272
  add_message "google.privacy.dlp.v2.ListInfoTypesRequest" do
273
+ optional :parent, :string, 4
261
274
  optional :language_code, :string, 1
262
275
  optional :filter, :string, 2
263
276
  optional :location_id, :string, 3
@@ -987,6 +1000,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
987
1000
  value :CONTENT_TEXT, 1
988
1001
  value :CONTENT_IMAGE, 2
989
1002
  end
1003
+ add_enum "google.privacy.dlp.v2.MetadataType" do
1004
+ value :METADATATYPE_UNSPECIFIED, 0
1005
+ value :STORAGE_METADATA, 2
1006
+ end
990
1007
  add_enum "google.privacy.dlp.v2.InfoTypeSupportedBy" do
991
1008
  value :ENUM_TYPE_UNSPECIFIED, 0
992
1009
  value :INSPECT, 1
@@ -1027,6 +1044,8 @@ module Google
1027
1044
  Finding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Finding").msgclass
1028
1045
  Location = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Location").msgclass
1029
1046
  ContentLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ContentLocation").msgclass
1047
+ MetadataLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.MetadataLocation").msgclass
1048
+ StorageMetadataLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StorageMetadataLabel").msgclass
1030
1049
  DocumentLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DocumentLocation").msgclass
1031
1050
  RecordLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RecordLocation").msgclass
1032
1051
  TableLocation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TableLocation").msgclass
@@ -1192,6 +1211,7 @@ module Google
1192
1211
  RelationalOperator = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RelationalOperator").enummodule
1193
1212
  MatchingType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.MatchingType").enummodule
1194
1213
  ContentOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.ContentOption").enummodule
1214
+ MetadataType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.MetadataType").enummodule
1195
1215
  InfoTypeSupportedBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoTypeSupportedBy").enummodule
1196
1216
  DlpJobType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DlpJobType").enummodule
1197
1217
  StoredInfoTypeState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StoredInfoTypeState").enummodule
@@ -194,6 +194,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
194
194
  value :BINARY_FILE, 1
195
195
  value :TEXT_FILE, 2
196
196
  value :IMAGE, 3
197
+ value :WORD, 5
198
+ value :PDF, 6
197
199
  value :AVRO, 7
198
200
  end
199
201
  end
@@ -128,7 +128,7 @@ module Google
128
128
  # - pattern: "shelves/{shelf}"
129
129
  # parent_type: "cloudresourcemanager.googleapis.com/Folder"
130
130
  # @!attribute [rw] type
131
- # @return [String]
131
+ # @return [::String]
132
132
  # The resource type. It must be in the format of
133
133
  # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be
134
134
  # singular and must not include version numbers.
@@ -140,7 +140,7 @@ module Google
140
140
  # should use PascalCase (UpperCamelCase). The maximum number of
141
141
  # characters allowed for the `resource_type_kind` is 100.
142
142
  # @!attribute [rw] pattern
143
- # @return [Array<String>]
143
+ # @return [::Array<::String>]
144
144
  # Optional. The relative resource name pattern associated with this resource
145
145
  # type. The DNS prefix of the full resource name shouldn't be specified here.
146
146
  #
@@ -161,11 +161,11 @@ module Google
161
161
  # the same component name (e.g. "project") refers to IDs of the same
162
162
  # type of resource.
163
163
  # @!attribute [rw] name_field
164
- # @return [String]
164
+ # @return [::String]
165
165
  # Optional. The field on the resource that designates the resource name
166
166
  # field. If omitted, this is assumed to be "name".
167
167
  # @!attribute [rw] history
168
- # @return [Google::Api::ResourceDescriptor::History]
168
+ # @return [::Google::Api::ResourceDescriptor::History]
169
169
  # Optional. The historical or future-looking state of the resource pattern.
170
170
  #
171
171
  # Example:
@@ -182,19 +182,19 @@ module Google
182
182
  # };
183
183
  # }
184
184
  # @!attribute [rw] plural
185
- # @return [String]
185
+ # @return [::String]
186
186
  # The plural name used in the resource name, such as 'projects' for
187
187
  # the name of 'projects/\\{project}'. It is the same concept of the `plural`
188
188
  # field in k8s CRD spec
189
189
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
190
190
  # @!attribute [rw] singular
191
- # @return [String]
191
+ # @return [::String]
192
192
  # The same concept of the `singular` field in k8s CRD spec
193
193
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
194
194
  # Such as "project" for the `resourcemanager.googleapis.com/Project` type.
195
195
  class ResourceDescriptor
196
- include Google::Protobuf::MessageExts
197
- extend Google::Protobuf::MessageExts::ClassMethods
196
+ include ::Google::Protobuf::MessageExts
197
+ extend ::Google::Protobuf::MessageExts::ClassMethods
198
198
 
199
199
  # A description of the historical or future-looking state of the
200
200
  # resource pattern.
@@ -216,7 +216,7 @@ module Google
216
216
  # Defines a proto annotation that describes a string field that refers to
217
217
  # an API resource.
218
218
  # @!attribute [rw] type
219
- # @return [String]
219
+ # @return [::String]
220
220
  # The resource type that the annotated field references.
221
221
  #
222
222
  # Example:
@@ -227,7 +227,7 @@ module Google
227
227
  # }];
228
228
  # }
229
229
  # @!attribute [rw] child_type
230
- # @return [String]
230
+ # @return [::String]
231
231
  # The resource type of a child collection that the annotated field
232
232
  # references. This is useful for annotating the `parent` field that
233
233
  # doesn't have a fixed resource type.
@@ -240,8 +240,8 @@ module Google
240
240
  # };
241
241
  # }
242
242
  class ResourceReference
243
- include Google::Protobuf::MessageExts
244
- extend Google::Protobuf::MessageExts::ClassMethods
243
+ include ::Google::Protobuf::MessageExts
244
+ extend ::Google::Protobuf::MessageExts::ClassMethods
245
245
  end
246
246
  end
247
247
  end
@@ -23,7 +23,7 @@ module Google
23
23
  module V2
24
24
  # List of exclude infoTypes.
25
25
  # @!attribute [rw] info_types
26
- # @return [Array<Google::Cloud::Dlp::V2::InfoType>]
26
+ # @return [::Array<::Google::Cloud::Dlp::V2::InfoType>]
27
27
  # InfoType list in ExclusionRule rule drops a finding when it overlaps or
28
28
  # contained within with a finding of an infoType from this list. For
29
29
  # example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
@@ -33,60 +33,60 @@ module Google
33
33
  # That leads to "555-222-2222@example.org" to generate only a single
34
34
  # finding, namely email address.
35
35
  class ExcludeInfoTypes
36
- include Google::Protobuf::MessageExts
37
- extend Google::Protobuf::MessageExts::ClassMethods
36
+ include ::Google::Protobuf::MessageExts
37
+ extend ::Google::Protobuf::MessageExts::ClassMethods
38
38
  end
39
39
 
40
40
  # The rule that specifies conditions when findings of infoTypes specified in
41
41
  # `InspectionRuleSet` are removed from results.
42
42
  # @!attribute [rw] dictionary
43
- # @return [Google::Cloud::Dlp::V2::CustomInfoType::Dictionary]
43
+ # @return [::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary]
44
44
  # Dictionary which defines the rule.
45
45
  # @!attribute [rw] regex
46
- # @return [Google::Cloud::Dlp::V2::CustomInfoType::Regex]
46
+ # @return [::Google::Cloud::Dlp::V2::CustomInfoType::Regex]
47
47
  # Regular expression which defines the rule.
48
48
  # @!attribute [rw] exclude_info_types
49
- # @return [Google::Cloud::Dlp::V2::ExcludeInfoTypes]
49
+ # @return [::Google::Cloud::Dlp::V2::ExcludeInfoTypes]
50
50
  # Set of infoTypes for which findings would affect this rule.
51
51
  # @!attribute [rw] matching_type
52
- # @return [Google::Cloud::Dlp::V2::MatchingType]
52
+ # @return [::Google::Cloud::Dlp::V2::MatchingType]
53
53
  # How the rule is applied, see MatchingType documentation for details.
54
54
  class ExclusionRule
55
- include Google::Protobuf::MessageExts
56
- extend Google::Protobuf::MessageExts::ClassMethods
55
+ include ::Google::Protobuf::MessageExts
56
+ extend ::Google::Protobuf::MessageExts::ClassMethods
57
57
  end
58
58
 
59
59
  # A single inspection rule to be applied to infoTypes, specified in
60
60
  # `InspectionRuleSet`.
61
61
  # @!attribute [rw] hotword_rule
62
- # @return [Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule::HotwordRule]
62
+ # @return [::Google::Cloud::Dlp::V2::CustomInfoType::DetectionRule::HotwordRule]
63
63
  # Hotword-based detection rule.
64
64
  # @!attribute [rw] exclusion_rule
65
- # @return [Google::Cloud::Dlp::V2::ExclusionRule]
65
+ # @return [::Google::Cloud::Dlp::V2::ExclusionRule]
66
66
  # Exclusion rule.
67
67
  class InspectionRule
68
- include Google::Protobuf::MessageExts
69
- extend Google::Protobuf::MessageExts::ClassMethods
68
+ include ::Google::Protobuf::MessageExts
69
+ extend ::Google::Protobuf::MessageExts::ClassMethods
70
70
  end
71
71
 
72
72
  # Rule set for modifying a set of infoTypes to alter behavior under certain
73
73
  # circumstances, depending on the specific details of the rules within the set.
74
74
  # @!attribute [rw] info_types
75
- # @return [Array<Google::Cloud::Dlp::V2::InfoType>]
75
+ # @return [::Array<::Google::Cloud::Dlp::V2::InfoType>]
76
76
  # List of infoTypes this rule set is applied to.
77
77
  # @!attribute [rw] rules
78
- # @return [Array<Google::Cloud::Dlp::V2::InspectionRule>]
78
+ # @return [::Array<::Google::Cloud::Dlp::V2::InspectionRule>]
79
79
  # Set of rules to be applied to infoTypes. The rules are applied in order.
80
80
  class InspectionRuleSet
81
- include Google::Protobuf::MessageExts
82
- extend Google::Protobuf::MessageExts::ClassMethods
81
+ include ::Google::Protobuf::MessageExts
82
+ extend ::Google::Protobuf::MessageExts::ClassMethods
83
83
  end
84
84
 
85
85
  # Configuration description of the scanning process.
86
86
  # When used with redactContent only info_types and min_likelihood are currently
87
87
  # used.
88
88
  # @!attribute [rw] info_types
89
- # @return [Array<Google::Cloud::Dlp::V2::InfoType>]
89
+ # @return [::Array<::Google::Cloud::Dlp::V2::InfoType>]
90
90
  # Restricts what info_types to look for. The values must correspond to
91
91
  # InfoType values returned by ListInfoTypes or listed at
92
92
  # https://cloud.google.com/dlp/docs/infotypes-reference.
@@ -99,86 +99,86 @@ module Google
99
99
  # run you should specify specific InfoTypes listed in the reference,
100
100
  # otherwise a default list will be used, which may change over time.
101
101
  # @!attribute [rw] min_likelihood
102
- # @return [Google::Cloud::Dlp::V2::Likelihood]
102
+ # @return [::Google::Cloud::Dlp::V2::Likelihood]
103
103
  # Only returns findings equal or above this threshold. The default is
104
104
  # POSSIBLE.
105
105
  # See https://cloud.google.com/dlp/docs/likelihood to learn more.
106
106
  # @!attribute [rw] limits
107
- # @return [Google::Cloud::Dlp::V2::InspectConfig::FindingLimits]
107
+ # @return [::Google::Cloud::Dlp::V2::InspectConfig::FindingLimits]
108
108
  # Configuration to control the number of findings returned.
109
109
  # @!attribute [rw] include_quote
110
- # @return [Boolean]
110
+ # @return [::Boolean]
111
111
  # When true, a contextual quote from the data that triggered a finding is
112
112
  # included in the response; see Finding.quote.
113
113
  # @!attribute [rw] exclude_info_types
114
- # @return [Boolean]
114
+ # @return [::Boolean]
115
115
  # When true, excludes type information of the findings.
116
116
  # @!attribute [rw] custom_info_types
117
- # @return [Array<Google::Cloud::Dlp::V2::CustomInfoType>]
117
+ # @return [::Array<::Google::Cloud::Dlp::V2::CustomInfoType>]
118
118
  # CustomInfoTypes provided by the user. See
119
119
  # https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
120
120
  # @!attribute [rw] content_options
121
- # @return [Array<Google::Cloud::Dlp::V2::ContentOption>]
121
+ # @return [::Array<::Google::Cloud::Dlp::V2::ContentOption>]
122
122
  # List of options defining data content to scan.
123
123
  # If empty, text, images, and other content will be included.
124
124
  # @!attribute [rw] rule_set
125
- # @return [Array<Google::Cloud::Dlp::V2::InspectionRuleSet>]
125
+ # @return [::Array<::Google::Cloud::Dlp::V2::InspectionRuleSet>]
126
126
  # Set of rules to apply to the findings for this InspectConfig.
127
127
  # Exclusion rules, contained in the set are executed in the end, other
128
128
  # rules are executed in the order they are specified for each info type.
129
129
  class InspectConfig
130
- include Google::Protobuf::MessageExts
131
- extend Google::Protobuf::MessageExts::ClassMethods
130
+ include ::Google::Protobuf::MessageExts
131
+ extend ::Google::Protobuf::MessageExts::ClassMethods
132
132
 
133
133
  # Configuration to control the number of findings returned.
134
134
  # @!attribute [rw] max_findings_per_item
135
- # @return [Integer]
135
+ # @return [::Integer]
136
136
  # Max number of findings that will be returned for each item scanned.
137
137
  # When set within `InspectJobConfig`,
138
138
  # the maximum returned is 2000 regardless if this is set higher.
139
139
  # When set within `InspectContentRequest`, this field is ignored.
140
140
  # @!attribute [rw] max_findings_per_request
141
- # @return [Integer]
141
+ # @return [::Integer]
142
142
  # Max number of findings that will be returned per request/job.
143
143
  # When set within `InspectContentRequest`, the maximum returned is 2000
144
144
  # regardless if this is set higher.
145
145
  # @!attribute [rw] max_findings_per_info_type
146
- # @return [Array<Google::Cloud::Dlp::V2::InspectConfig::FindingLimits::InfoTypeLimit>]
146
+ # @return [::Array<::Google::Cloud::Dlp::V2::InspectConfig::FindingLimits::InfoTypeLimit>]
147
147
  # Configuration of findings limit given for specified infoTypes.
148
148
  class FindingLimits
149
- include Google::Protobuf::MessageExts
150
- extend Google::Protobuf::MessageExts::ClassMethods
149
+ include ::Google::Protobuf::MessageExts
150
+ extend ::Google::Protobuf::MessageExts::ClassMethods
151
151
 
152
152
  # Max findings configuration per infoType, per content item or long
153
153
  # running DlpJob.
154
154
  # @!attribute [rw] info_type
155
- # @return [Google::Cloud::Dlp::V2::InfoType]
155
+ # @return [::Google::Cloud::Dlp::V2::InfoType]
156
156
  # Type of information the findings limit applies to. Only one limit per
157
157
  # info_type should be provided. If InfoTypeLimit does not have an
158
158
  # info_type, the DLP API applies the limit against all info_types that
159
159
  # are found but not specified in another InfoTypeLimit.
160
160
  # @!attribute [rw] max_findings
161
- # @return [Integer]
161
+ # @return [::Integer]
162
162
  # Max findings limit for the given infoType.
163
163
  class InfoTypeLimit
164
- include Google::Protobuf::MessageExts
165
- extend Google::Protobuf::MessageExts::ClassMethods
164
+ include ::Google::Protobuf::MessageExts
165
+ extend ::Google::Protobuf::MessageExts::ClassMethods
166
166
  end
167
167
  end
168
168
  end
169
169
 
170
170
  # Container for bytes to inspect or redact.
171
171
  # @!attribute [rw] type
172
- # @return [Google::Cloud::Dlp::V2::ByteContentItem::BytesType]
172
+ # @return [::Google::Cloud::Dlp::V2::ByteContentItem::BytesType]
173
173
  # The type of data stored in the bytes string. Default will be TEXT_UTF8.
174
174
  # @!attribute [rw] data
175
- # @return [String]
175
+ # @return [::String]
176
176
  # Content data to inspect or redact.
177
177
  class ByteContentItem
178
- include Google::Protobuf::MessageExts
179
- extend Google::Protobuf::MessageExts::ClassMethods
178
+ include ::Google::Protobuf::MessageExts
179
+ extend ::Google::Protobuf::MessageExts::ClassMethods
180
180
 
181
- # The type of data being sent to in data.
181
+ # The type of data being sent for inspection.
182
182
  module BytesType
183
183
  # Unused
184
184
  BYTES_TYPE_UNSPECIFIED = 0
@@ -201,6 +201,12 @@ module Google
201
201
  # plain text
202
202
  TEXT_UTF8 = 5
203
203
 
204
+ # docx, docm, dotx, dotm
205
+ WORD_DOCUMENT = 7
206
+
207
+ # pdf
208
+ PDF = 8
209
+
204
210
  # avro
205
211
  AVRO = 11
206
212
  end
@@ -208,50 +214,50 @@ module Google
208
214
 
209
215
  # Container structure for the content to inspect.
210
216
  # @!attribute [rw] value
211
- # @return [String]
217
+ # @return [::String]
212
218
  # String data to inspect or redact.
213
219
  # @!attribute [rw] table
214
- # @return [Google::Cloud::Dlp::V2::Table]
220
+ # @return [::Google::Cloud::Dlp::V2::Table]
215
221
  # Structured content for inspection. See
216
222
  # https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
217
223
  # learn more.
218
224
  # @!attribute [rw] byte_item
219
- # @return [Google::Cloud::Dlp::V2::ByteContentItem]
225
+ # @return [::Google::Cloud::Dlp::V2::ByteContentItem]
220
226
  # Content data to inspect or redact. Replaces `type` and `data`.
221
227
  class ContentItem
222
- include Google::Protobuf::MessageExts
223
- extend Google::Protobuf::MessageExts::ClassMethods
228
+ include ::Google::Protobuf::MessageExts
229
+ extend ::Google::Protobuf::MessageExts::ClassMethods
224
230
  end
225
231
 
226
232
  # Structured content to inspect. Up to 50,000 `Value`s per request allowed.
227
233
  # See https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
228
234
  # learn more.
229
235
  # @!attribute [rw] headers
230
- # @return [Array<Google::Cloud::Dlp::V2::FieldId>]
236
+ # @return [::Array<::Google::Cloud::Dlp::V2::FieldId>]
231
237
  # Headers of the table.
232
238
  # @!attribute [rw] rows
233
- # @return [Array<Google::Cloud::Dlp::V2::Table::Row>]
239
+ # @return [::Array<::Google::Cloud::Dlp::V2::Table::Row>]
234
240
  # Rows of the table.
235
241
  class Table
236
- include Google::Protobuf::MessageExts
237
- extend Google::Protobuf::MessageExts::ClassMethods
242
+ include ::Google::Protobuf::MessageExts
243
+ extend ::Google::Protobuf::MessageExts::ClassMethods
238
244
 
239
245
  # Values of the row.
240
246
  # @!attribute [rw] values
241
- # @return [Array<Google::Cloud::Dlp::V2::Value>]
247
+ # @return [::Array<::Google::Cloud::Dlp::V2::Value>]
242
248
  # Individual cells.
243
249
  class Row
244
- include Google::Protobuf::MessageExts
245
- extend Google::Protobuf::MessageExts::ClassMethods
250
+ include ::Google::Protobuf::MessageExts
251
+ extend ::Google::Protobuf::MessageExts::ClassMethods
246
252
  end
247
253
  end
248
254
 
249
255
  # All the findings for a single scanned item.
250
256
  # @!attribute [rw] findings
251
- # @return [Array<Google::Cloud::Dlp::V2::Finding>]
257
+ # @return [::Array<::Google::Cloud::Dlp::V2::Finding>]
252
258
  # List of findings for an item.
253
259
  # @!attribute [rw] findings_truncated
254
- # @return [Boolean]
260
+ # @return [::Boolean]
255
261
  # If true, then this item might have more findings than were returned,
256
262
  # and the findings returned are an arbitrary subset of all findings.
257
263
  # The findings list might be truncated because the input items were too
@@ -259,54 +265,50 @@ module Google
259
265
  # allowed for a single API call. For best results, divide the input into
260
266
  # smaller batches.
261
267
  class InspectResult
262
- include Google::Protobuf::MessageExts
263
- extend Google::Protobuf::MessageExts::ClassMethods
268
+ include ::Google::Protobuf::MessageExts
269
+ extend ::Google::Protobuf::MessageExts::ClassMethods
264
270
  end
265
271
 
266
272
  # Represents a piece of potentially sensitive content.
267
273
  # @!attribute [rw] name
268
- # @return [String]
274
+ # @return [::String]
269
275
  # Resource name in format
270
276
  # projects/\\{project}/locations/\\{location}/findings/\\{finding}
271
277
  # Populated only when viewing persisted findings.
272
278
  # @!attribute [rw] quote
273
- # @return [String]
279
+ # @return [::String]
274
280
  # The content that was found. Even if the content is not textual, it
275
281
  # may be converted to a textual representation here.
276
282
  # Provided if `include_quote` is true and the finding is
277
283
  # less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes
278
284
  # in length, the quote may be omitted.
279
285
  # @!attribute [rw] info_type
280
- # @return [Google::Cloud::Dlp::V2::InfoType]
286
+ # @return [::Google::Cloud::Dlp::V2::InfoType]
281
287
  # The type of content that might have been found.
282
288
  # Provided if `excluded_types` is false.
283
289
  # @!attribute [rw] likelihood
284
- # @return [Google::Cloud::Dlp::V2::Likelihood]
290
+ # @return [::Google::Cloud::Dlp::V2::Likelihood]
285
291
  # Confidence of how likely it is that the `info_type` is correct.
286
292
  # @!attribute [rw] location
287
- # @return [Google::Cloud::Dlp::V2::Location]
293
+ # @return [::Google::Cloud::Dlp::V2::Location]
288
294
  # Where the content was found.
289
295
  # @!attribute [rw] create_time
290
- # @return [Google::Protobuf::Timestamp]
296
+ # @return [::Google::Protobuf::Timestamp]
291
297
  # Timestamp when finding was detected.
292
298
  # @!attribute [rw] quote_info
293
- # @return [Google::Cloud::Dlp::V2::QuoteInfo]
299
+ # @return [::Google::Cloud::Dlp::V2::QuoteInfo]
294
300
  # Contains data parsed from quotes. Only populated if include_quote was set
295
301
  # to true and a supported infoType was requested. Currently supported
296
302
  # infoTypes: DATE, DATE_OF_BIRTH and TIME.
297
303
  # @!attribute [rw] resource_name
298
- # @return [String]
304
+ # @return [::String]
299
305
  # The job that stored the finding.
300
306
  # @!attribute [rw] trigger_name
301
- # @return [String]
307
+ # @return [::String]
302
308
  # Job trigger name, if applicable, for this finding.
303
- # (-- api-linter: core::0122::name-suffix=disabled
304
- # aip.dev/not-precedent: AIP-122 discourages _name suffixes for
305
- # resource names, but this has existed as part of the bigquery schema
306
- # before this rule existed. --)
307
309
  # @!attribute [rw] labels
308
- # @return [Google::Protobuf::Map{String => String}]
309
- # The labels associated with this `InspectFinding`.
310
+ # @return [::Google::Protobuf::Map{::String => ::String}]
311
+ # The labels associated with this `Finding`.
310
312
  #
311
313
  # Label keys must be between 1 and 63 characters long and must conform
312
314
  # to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
@@ -320,58 +322,54 @@ module Google
320
322
  # * `"environment" : "production"`
321
323
  # * `"pipeline" : "etl"`
322
324
  # @!attribute [rw] job_create_time
323
- # @return [Google::Protobuf::Timestamp]
325
+ # @return [::Google::Protobuf::Timestamp]
324
326
  # Time the job started that produced this finding.
325
327
  # @!attribute [rw] job_name
326
- # @return [String]
328
+ # @return [::String]
327
329
  # The job that stored the finding.
328
- # (-- api-linter: core::0122::name-suffix=disabled
329
- # aip.dev/not-precedent: AIP-122 discourages _name suffixes for
330
- # resource names, but this has existed as part of the bigquery schema
331
- # before this rule existed. --)
332
330
  class Finding
333
- include Google::Protobuf::MessageExts
334
- extend Google::Protobuf::MessageExts::ClassMethods
331
+ include ::Google::Protobuf::MessageExts
332
+ extend ::Google::Protobuf::MessageExts::ClassMethods
335
333
 
336
334
  # @!attribute [rw] key
337
- # @return [String]
335
+ # @return [::String]
338
336
  # @!attribute [rw] value
339
- # @return [String]
337
+ # @return [::String]
340
338
  class LabelsEntry
341
- include Google::Protobuf::MessageExts
342
- extend Google::Protobuf::MessageExts::ClassMethods
339
+ include ::Google::Protobuf::MessageExts
340
+ extend ::Google::Protobuf::MessageExts::ClassMethods
343
341
  end
344
342
  end
345
343
 
346
344
  # Specifies the location of the finding.
347
345
  # @!attribute [rw] byte_range
348
- # @return [Google::Cloud::Dlp::V2::Range]
346
+ # @return [::Google::Cloud::Dlp::V2::Range]
349
347
  # Zero-based byte offsets delimiting the finding.
350
348
  # These are relative to the finding's containing element.
351
349
  # Note that when the content is not textual, this references
352
350
  # the UTF-8 encoded textual representation of the content.
353
351
  # Omitted if content is an image.
354
352
  # @!attribute [rw] codepoint_range
355
- # @return [Google::Cloud::Dlp::V2::Range]
353
+ # @return [::Google::Cloud::Dlp::V2::Range]
356
354
  # Unicode character offsets delimiting the finding.
357
355
  # These are relative to the finding's containing element.
358
356
  # Provided when the content is text.
359
357
  # @!attribute [rw] content_locations
360
- # @return [Array<Google::Cloud::Dlp::V2::ContentLocation>]
358
+ # @return [::Array<::Google::Cloud::Dlp::V2::ContentLocation>]
361
359
  # List of nested objects pointing to the precise location of the finding
362
360
  # within the file or record.
363
361
  # @!attribute [rw] container
364
- # @return [Google::Cloud::Dlp::V2::Container]
362
+ # @return [::Google::Cloud::Dlp::V2::Container]
365
363
  # Information about the container where this finding occurred, if available.
366
364
  class Location
367
- include Google::Protobuf::MessageExts
368
- extend Google::Protobuf::MessageExts::ClassMethods
365
+ include ::Google::Protobuf::MessageExts
366
+ extend ::Google::Protobuf::MessageExts::ClassMethods
369
367
  end
370
368
 
371
369
  # Precise location of the finding within a document, record, image, or metadata
372
370
  # container.
373
371
  # @!attribute [rw] container_name
374
- # @return [String]
372
+ # @return [::String]
375
373
  # Name of the container where the finding is located.
376
374
  # The top level name is the source file name or table name. Names of some
377
375
  # common storage containers are formatted as follows:
@@ -383,80 +381,108 @@ module Google
383
381
  # Nested names could be absent if the embedded object has no string
384
382
  # identifier (for an example an image contained within a document).
385
383
  # @!attribute [rw] record_location
386
- # @return [Google::Cloud::Dlp::V2::RecordLocation]
384
+ # @return [::Google::Cloud::Dlp::V2::RecordLocation]
387
385
  # Location within a row or record of a database table.
388
386
  # @!attribute [rw] image_location
389
- # @return [Google::Cloud::Dlp::V2::ImageLocation]
387
+ # @return [::Google::Cloud::Dlp::V2::ImageLocation]
390
388
  # Location within an image's pixels.
391
389
  # @!attribute [rw] document_location
392
- # @return [Google::Cloud::Dlp::V2::DocumentLocation]
390
+ # @return [::Google::Cloud::Dlp::V2::DocumentLocation]
393
391
  # Location data for document files.
392
+ # @!attribute [rw] metadata_location
393
+ # @return [::Google::Cloud::Dlp::V2::MetadataLocation]
394
+ # Location within the metadata for inspected content.
394
395
  # @!attribute [rw] container_timestamp
395
- # @return [Google::Protobuf::Timestamp]
396
+ # @return [::Google::Protobuf::Timestamp]
396
397
  # Findings container modification timestamp, if applicable.
397
398
  # For Google Cloud Storage contains last file modification timestamp.
398
399
  # For BigQuery table contains last_modified_time property.
399
400
  # For Datastore - not populated.
400
401
  # @!attribute [rw] container_version
401
- # @return [String]
402
+ # @return [::String]
402
403
  # Findings container version, if available
403
404
  # ("generation" for Google Cloud Storage).
404
405
  class ContentLocation
405
- include Google::Protobuf::MessageExts
406
- extend Google::Protobuf::MessageExts::ClassMethods
406
+ include ::Google::Protobuf::MessageExts
407
+ extend ::Google::Protobuf::MessageExts::ClassMethods
408
+ end
409
+
410
+ # Metadata Location
411
+ # @!attribute [rw] type
412
+ # @return [::Google::Cloud::Dlp::V2::MetadataType]
413
+ # Type of metadata containing the finding.
414
+ # @!attribute [rw] storage_label
415
+ # @return [::Google::Cloud::Dlp::V2::StorageMetadataLabel]
416
+ # Storage metadata.
417
+ class MetadataLocation
418
+ include ::Google::Protobuf::MessageExts
419
+ extend ::Google::Protobuf::MessageExts::ClassMethods
420
+ end
421
+
422
+ # Storage metadata label to indicate which metadata entry contains findings.
423
+ # @!attribute [rw] key
424
+ # @return [::String]
425
+ class StorageMetadataLabel
426
+ include ::Google::Protobuf::MessageExts
427
+ extend ::Google::Protobuf::MessageExts::ClassMethods
407
428
  end
408
429
 
409
430
  # Location of a finding within a document.
410
431
  # @!attribute [rw] file_offset
411
- # @return [Integer]
432
+ # @return [::Integer]
412
433
  # Offset of the line, from the beginning of the file, where the finding
413
434
  # is located.
414
435
  class DocumentLocation
415
- include Google::Protobuf::MessageExts
416
- extend Google::Protobuf::MessageExts::ClassMethods
436
+ include ::Google::Protobuf::MessageExts
437
+ extend ::Google::Protobuf::MessageExts::ClassMethods
417
438
  end
418
439
 
419
440
  # Location of a finding within a row or record.
420
441
  # @!attribute [rw] record_key
421
- # @return [Google::Cloud::Dlp::V2::RecordKey]
442
+ # @return [::Google::Cloud::Dlp::V2::RecordKey]
422
443
  # Key of the finding.
423
444
  # @!attribute [rw] field_id
424
- # @return [Google::Cloud::Dlp::V2::FieldId]
445
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
425
446
  # Field id of the field containing the finding.
426
447
  # @!attribute [rw] table_location
427
- # @return [Google::Cloud::Dlp::V2::TableLocation]
448
+ # @return [::Google::Cloud::Dlp::V2::TableLocation]
428
449
  # Location within a `ContentItem.Table`.
429
450
  class RecordLocation
430
- include Google::Protobuf::MessageExts
431
- extend Google::Protobuf::MessageExts::ClassMethods
451
+ include ::Google::Protobuf::MessageExts
452
+ extend ::Google::Protobuf::MessageExts::ClassMethods
432
453
  end
433
454
 
434
455
  # Location of a finding within a table.
435
456
  # @!attribute [rw] row_index
436
- # @return [Integer]
437
- # The zero-based index of the row where the finding is located.
457
+ # @return [::Integer]
458
+ # The zero-based index of the row where the finding is located. Only
459
+ # populated for resources that have a natural ordering, not BigQuery. In
460
+ # BigQuery, to identify the row a finding came from, populate
461
+ # BigQueryOptions.identifying_fields with your primary key column names and
462
+ # when you store the findings the value of those columns will be stored
463
+ # inside of Finding.
438
464
  class TableLocation
439
- include Google::Protobuf::MessageExts
440
- extend Google::Protobuf::MessageExts::ClassMethods
465
+ include ::Google::Protobuf::MessageExts
466
+ extend ::Google::Protobuf::MessageExts::ClassMethods
441
467
  end
442
468
 
443
469
  # Represents a container that may contain DLP findings.
444
470
  # Examples of a container include a file, table, or database record.
445
471
  # @!attribute [rw] type
446
- # @return [String]
472
+ # @return [::String]
447
473
  # Container type, for example BigQuery or Google Cloud Storage.
448
474
  # @!attribute [rw] project_id
449
- # @return [String]
475
+ # @return [::String]
450
476
  # Project where the finding was found.
451
477
  # Can be different from the project that owns the finding.
452
478
  # @!attribute [rw] full_path
453
- # @return [String]
479
+ # @return [::String]
454
480
  # A string representation of the full container name.
455
481
  # Examples:
456
482
  # - BigQuery: 'Project:DataSetId.TableId'
457
483
  # - Google Cloud Storage: 'gs://Bucket/folders/filename.txt'
458
484
  # @!attribute [rw] root_path
459
- # @return [String]
485
+ # @return [::String]
460
486
  # The root of the container.
461
487
  # Examples:
462
488
  # - For BigQuery table `project_id:dataset_id.table_id`, the root is
@@ -464,7 +490,7 @@ module Google
464
490
  # - For Google Cloud Storage file `gs://bucket/folder/filename.txt`, the root
465
491
  # is `gs://bucket`
466
492
  # @!attribute [rw] relative_path
467
- # @return [String]
493
+ # @return [::String]
468
494
  # The rest of the path after the root.
469
495
  # Examples:
470
496
  # - For BigQuery table `project_id:dataset_id.table_id`, the relative path is
@@ -472,196 +498,196 @@ module Google
472
498
  # - Google Cloud Storage file `gs://bucket/folder/filename.txt`, the relative
473
499
  # path is `folder/filename.txt`
474
500
  # @!attribute [rw] update_time
475
- # @return [Google::Protobuf::Timestamp]
501
+ # @return [::Google::Protobuf::Timestamp]
476
502
  # Findings container modification timestamp, if applicable.
477
503
  # For Google Cloud Storage contains last file modification timestamp.
478
504
  # For BigQuery table contains last_modified_time property.
479
505
  # For Datastore - not populated.
480
506
  # @!attribute [rw] version
481
- # @return [String]
507
+ # @return [::String]
482
508
  # Findings container version, if available
483
509
  # ("generation" for Google Cloud Storage).
484
510
  class Container
485
- include Google::Protobuf::MessageExts
486
- extend Google::Protobuf::MessageExts::ClassMethods
511
+ include ::Google::Protobuf::MessageExts
512
+ extend ::Google::Protobuf::MessageExts::ClassMethods
487
513
  end
488
514
 
489
515
  # Generic half-open interval [start, end)
490
516
  # @!attribute [rw] start
491
- # @return [Integer]
517
+ # @return [::Integer]
492
518
  # Index of the first character of the range (inclusive).
493
519
  # @!attribute [rw] end
494
- # @return [Integer]
520
+ # @return [::Integer]
495
521
  # Index of the last character of the range (exclusive).
496
522
  class Range
497
- include Google::Protobuf::MessageExts
498
- extend Google::Protobuf::MessageExts::ClassMethods
523
+ include ::Google::Protobuf::MessageExts
524
+ extend ::Google::Protobuf::MessageExts::ClassMethods
499
525
  end
500
526
 
501
527
  # Location of the finding within an image.
502
528
  # @!attribute [rw] bounding_boxes
503
- # @return [Array<Google::Cloud::Dlp::V2::BoundingBox>]
529
+ # @return [::Array<::Google::Cloud::Dlp::V2::BoundingBox>]
504
530
  # Bounding boxes locating the pixels within the image containing the finding.
505
531
  class ImageLocation
506
- include Google::Protobuf::MessageExts
507
- extend Google::Protobuf::MessageExts::ClassMethods
532
+ include ::Google::Protobuf::MessageExts
533
+ extend ::Google::Protobuf::MessageExts::ClassMethods
508
534
  end
509
535
 
510
536
  # Bounding box encompassing detected text within an image.
511
537
  # @!attribute [rw] top
512
- # @return [Integer]
538
+ # @return [::Integer]
513
539
  # Top coordinate of the bounding box. (0,0) is upper left.
514
540
  # @!attribute [rw] left
515
- # @return [Integer]
541
+ # @return [::Integer]
516
542
  # Left coordinate of the bounding box. (0,0) is upper left.
517
543
  # @!attribute [rw] width
518
- # @return [Integer]
544
+ # @return [::Integer]
519
545
  # Width of the bounding box in pixels.
520
546
  # @!attribute [rw] height
521
- # @return [Integer]
547
+ # @return [::Integer]
522
548
  # Height of the bounding box in pixels.
523
549
  class BoundingBox
524
- include Google::Protobuf::MessageExts
525
- extend Google::Protobuf::MessageExts::ClassMethods
550
+ include ::Google::Protobuf::MessageExts
551
+ extend ::Google::Protobuf::MessageExts::ClassMethods
526
552
  end
527
553
 
528
554
  # Request to search for potentially sensitive info in an image and redact it
529
555
  # by covering it with a colored rectangle.
530
556
  # @!attribute [rw] parent
531
- # @return [String]
532
- # The parent resource name, for example projects/my-project-id.
557
+ # @return [::String]
558
+ # The parent resource name, for example projects/my-project-id
559
+ # or projects/my-project-id/locations/\\{location_id}.
533
560
  # @!attribute [rw] location_id
534
- # @return [String]
535
- # The geographic location to process the request. Reserved for future
536
- # extensions.
561
+ # @return [::String]
562
+ # Deprecated. This field has no effect.
537
563
  # @!attribute [rw] inspect_config
538
- # @return [Google::Cloud::Dlp::V2::InspectConfig]
564
+ # @return [::Google::Cloud::Dlp::V2::InspectConfig]
539
565
  # Configuration for the inspector.
540
566
  # @!attribute [rw] image_redaction_configs
541
- # @return [Array<Google::Cloud::Dlp::V2::RedactImageRequest::ImageRedactionConfig>]
567
+ # @return [::Array<::Google::Cloud::Dlp::V2::RedactImageRequest::ImageRedactionConfig>]
542
568
  # The configuration for specifying what content to redact from images.
543
569
  # @!attribute [rw] include_findings
544
- # @return [Boolean]
570
+ # @return [::Boolean]
545
571
  # Whether the response should include findings along with the redacted
546
572
  # image.
547
573
  # @!attribute [rw] byte_item
548
- # @return [Google::Cloud::Dlp::V2::ByteContentItem]
574
+ # @return [::Google::Cloud::Dlp::V2::ByteContentItem]
549
575
  # The content must be PNG, JPEG, SVG or BMP.
550
576
  class RedactImageRequest
551
- include Google::Protobuf::MessageExts
552
- extend Google::Protobuf::MessageExts::ClassMethods
577
+ include ::Google::Protobuf::MessageExts
578
+ extend ::Google::Protobuf::MessageExts::ClassMethods
553
579
 
554
580
  # Configuration for determining how redaction of images should occur.
555
581
  # @!attribute [rw] info_type
556
- # @return [Google::Cloud::Dlp::V2::InfoType]
582
+ # @return [::Google::Cloud::Dlp::V2::InfoType]
557
583
  # Only one per info_type should be provided per request. If not
558
584
  # specified, and redact_all_text is false, the DLP API will redact all
559
585
  # text that it matches against all info_types that are found, but not
560
586
  # specified in another ImageRedactionConfig.
561
587
  # @!attribute [rw] redact_all_text
562
- # @return [Boolean]
588
+ # @return [::Boolean]
563
589
  # If true, all text found in the image, regardless whether it matches an
564
590
  # info_type, is redacted. Only one should be provided.
565
591
  # @!attribute [rw] redaction_color
566
- # @return [Google::Cloud::Dlp::V2::Color]
592
+ # @return [::Google::Cloud::Dlp::V2::Color]
567
593
  # The color to use when redacting content from an image. If not specified,
568
594
  # the default is black.
569
595
  class ImageRedactionConfig
570
- include Google::Protobuf::MessageExts
571
- extend Google::Protobuf::MessageExts::ClassMethods
596
+ include ::Google::Protobuf::MessageExts
597
+ extend ::Google::Protobuf::MessageExts::ClassMethods
572
598
  end
573
599
  end
574
600
 
575
601
  # Represents a color in the RGB color space.
576
602
  # @!attribute [rw] red
577
- # @return [Float]
603
+ # @return [::Float]
578
604
  # The amount of red in the color as a value in the interval [0, 1].
579
605
  # @!attribute [rw] green
580
- # @return [Float]
606
+ # @return [::Float]
581
607
  # The amount of green in the color as a value in the interval [0, 1].
582
608
  # @!attribute [rw] blue
583
- # @return [Float]
609
+ # @return [::Float]
584
610
  # The amount of blue in the color as a value in the interval [0, 1].
585
611
  class Color
586
- include Google::Protobuf::MessageExts
587
- extend Google::Protobuf::MessageExts::ClassMethods
612
+ include ::Google::Protobuf::MessageExts
613
+ extend ::Google::Protobuf::MessageExts::ClassMethods
588
614
  end
589
615
 
590
616
  # Results of redacting an image.
591
617
  # @!attribute [rw] redacted_image
592
- # @return [String]
618
+ # @return [::String]
593
619
  # The redacted image. The type will be the same as the original image.
594
620
  # @!attribute [rw] extracted_text
595
- # @return [String]
621
+ # @return [::String]
596
622
  # If an image was being inspected and the InspectConfig's include_quote was
597
623
  # set to true, then this field will include all text, if any, that was found
598
624
  # in the image.
599
625
  # @!attribute [rw] inspect_result
600
- # @return [Google::Cloud::Dlp::V2::InspectResult]
626
+ # @return [::Google::Cloud::Dlp::V2::InspectResult]
601
627
  # The findings. Populated when include_findings in the request is true.
602
628
  class RedactImageResponse
603
- include Google::Protobuf::MessageExts
604
- extend Google::Protobuf::MessageExts::ClassMethods
629
+ include ::Google::Protobuf::MessageExts
630
+ extend ::Google::Protobuf::MessageExts::ClassMethods
605
631
  end
606
632
 
607
633
  # Request to de-identify a list of items.
608
634
  # @!attribute [rw] parent
609
- # @return [String]
610
- # The parent resource name, for example projects/my-project-id.
635
+ # @return [::String]
636
+ # The parent resource name, for example projects/my-project-id
637
+ # or projects/my-project-id/locations/\\{location_id}.
611
638
  # @!attribute [rw] deidentify_config
612
- # @return [Google::Cloud::Dlp::V2::DeidentifyConfig]
639
+ # @return [::Google::Cloud::Dlp::V2::DeidentifyConfig]
613
640
  # Configuration for the de-identification of the content item.
614
641
  # Items specified here will override the template referenced by the
615
642
  # deidentify_template_name argument.
616
643
  # @!attribute [rw] inspect_config
617
- # @return [Google::Cloud::Dlp::V2::InspectConfig]
644
+ # @return [::Google::Cloud::Dlp::V2::InspectConfig]
618
645
  # Configuration for the inspector.
619
646
  # Items specified here will override the template referenced by the
620
647
  # inspect_template_name argument.
621
648
  # @!attribute [rw] item
622
- # @return [Google::Cloud::Dlp::V2::ContentItem]
649
+ # @return [::Google::Cloud::Dlp::V2::ContentItem]
623
650
  # The item to de-identify. Will be treated as text.
624
651
  # @!attribute [rw] inspect_template_name
625
- # @return [String]
652
+ # @return [::String]
626
653
  # Template to use. Any configuration directly specified in
627
654
  # inspect_config will override those set in the template. Singular fields
628
655
  # that are set in this request will replace their corresponding fields in the
629
656
  # template. Repeated fields are appended. Singular sub-messages and groups
630
657
  # are recursively merged.
631
658
  # @!attribute [rw] deidentify_template_name
632
- # @return [String]
659
+ # @return [::String]
633
660
  # Template to use. Any configuration directly specified in
634
661
  # deidentify_config will override those set in the template. Singular fields
635
662
  # that are set in this request will replace their corresponding fields in the
636
663
  # template. Repeated fields are appended. Singular sub-messages and groups
637
664
  # are recursively merged.
638
665
  # @!attribute [rw] location_id
639
- # @return [String]
640
- # The geographic location to process de-identification. Reserved for future
641
- # extensions.
666
+ # @return [::String]
667
+ # Deprecated. This field has no effect.
642
668
  class DeidentifyContentRequest
643
- include Google::Protobuf::MessageExts
644
- extend Google::Protobuf::MessageExts::ClassMethods
669
+ include ::Google::Protobuf::MessageExts
670
+ extend ::Google::Protobuf::MessageExts::ClassMethods
645
671
  end
646
672
 
647
673
  # Results of de-identifying a ContentItem.
648
674
  # @!attribute [rw] item
649
- # @return [Google::Cloud::Dlp::V2::ContentItem]
675
+ # @return [::Google::Cloud::Dlp::V2::ContentItem]
650
676
  # The de-identified item.
651
677
  # @!attribute [rw] overview
652
- # @return [Google::Cloud::Dlp::V2::TransformationOverview]
678
+ # @return [::Google::Cloud::Dlp::V2::TransformationOverview]
653
679
  # An overview of the changes that were made on the `item`.
654
680
  class DeidentifyContentResponse
655
- include Google::Protobuf::MessageExts
656
- extend Google::Protobuf::MessageExts::ClassMethods
681
+ include ::Google::Protobuf::MessageExts
682
+ extend ::Google::Protobuf::MessageExts::ClassMethods
657
683
  end
658
684
 
659
685
  # Request to re-identify an item.
660
686
  # @!attribute [rw] parent
661
- # @return [String]
687
+ # @return [::String]
662
688
  # Required. The parent resource name.
663
689
  # @!attribute [rw] reidentify_config
664
- # @return [Google::Cloud::Dlp::V2::DeidentifyConfig]
690
+ # @return [::Google::Cloud::Dlp::V2::DeidentifyConfig]
665
691
  # Configuration for the re-identification of the content item.
666
692
  # This field shares the same proto message type that is used for
667
693
  # de-identification, however its usage here is for the reversal of the
@@ -673,20 +699,20 @@ module Google
673
699
  # - `CryptoDeterministicConfig`
674
700
  # - `CryptoReplaceFfxFpeConfig`
675
701
  # @!attribute [rw] inspect_config
676
- # @return [Google::Cloud::Dlp::V2::InspectConfig]
702
+ # @return [::Google::Cloud::Dlp::V2::InspectConfig]
677
703
  # Configuration for the inspector.
678
704
  # @!attribute [rw] item
679
- # @return [Google::Cloud::Dlp::V2::ContentItem]
705
+ # @return [::Google::Cloud::Dlp::V2::ContentItem]
680
706
  # The item to re-identify. Will be treated as text.
681
707
  # @!attribute [rw] inspect_template_name
682
- # @return [String]
708
+ # @return [::String]
683
709
  # Template to use. Any configuration directly specified in
684
710
  # `inspect_config` will override those set in the template. Singular fields
685
711
  # that are set in this request will replace their corresponding fields in the
686
712
  # template. Repeated fields are appended. Singular sub-messages and groups
687
713
  # are recursively merged.
688
714
  # @!attribute [rw] reidentify_template_name
689
- # @return [String]
715
+ # @return [::String]
690
716
  # Template to use. References an instance of `DeidentifyTemplate`.
691
717
  # Any configuration directly specified in `reidentify_config` or
692
718
  # `inspect_config` will override those set in the template. Singular fields
@@ -694,65 +720,64 @@ module Google
694
720
  # template. Repeated fields are appended. Singular sub-messages and groups
695
721
  # are recursively merged.
696
722
  # @!attribute [rw] location_id
697
- # @return [String]
698
- # The geographic location to process content reidentification. Reserved for
699
- # future extensions.
723
+ # @return [::String]
724
+ # Deprecated. This field has no effect.
700
725
  class ReidentifyContentRequest
701
- include Google::Protobuf::MessageExts
702
- extend Google::Protobuf::MessageExts::ClassMethods
726
+ include ::Google::Protobuf::MessageExts
727
+ extend ::Google::Protobuf::MessageExts::ClassMethods
703
728
  end
704
729
 
705
730
  # Results of re-identifying a item.
706
731
  # @!attribute [rw] item
707
- # @return [Google::Cloud::Dlp::V2::ContentItem]
732
+ # @return [::Google::Cloud::Dlp::V2::ContentItem]
708
733
  # The re-identified item.
709
734
  # @!attribute [rw] overview
710
- # @return [Google::Cloud::Dlp::V2::TransformationOverview]
735
+ # @return [::Google::Cloud::Dlp::V2::TransformationOverview]
711
736
  # An overview of the changes that were made to the `item`.
712
737
  class ReidentifyContentResponse
713
- include Google::Protobuf::MessageExts
714
- extend Google::Protobuf::MessageExts::ClassMethods
738
+ include ::Google::Protobuf::MessageExts
739
+ extend ::Google::Protobuf::MessageExts::ClassMethods
715
740
  end
716
741
 
717
742
  # Request to search for potentially sensitive info in a ContentItem.
718
743
  # @!attribute [rw] parent
719
- # @return [String]
720
- # The parent resource name, for example projects/my-project-id.
744
+ # @return [::String]
745
+ # The parent resource name, for example projects/my-project-id
746
+ # or projects/my-project-id/locations/\\{location_id}
721
747
  # @!attribute [rw] inspect_config
722
- # @return [Google::Cloud::Dlp::V2::InspectConfig]
748
+ # @return [::Google::Cloud::Dlp::V2::InspectConfig]
723
749
  # Configuration for the inspector. What specified here will override
724
750
  # the template referenced by the inspect_template_name argument.
725
751
  # @!attribute [rw] item
726
- # @return [Google::Cloud::Dlp::V2::ContentItem]
752
+ # @return [::Google::Cloud::Dlp::V2::ContentItem]
727
753
  # The item to inspect.
728
754
  # @!attribute [rw] inspect_template_name
729
- # @return [String]
755
+ # @return [::String]
730
756
  # Template to use. Any configuration directly specified in
731
757
  # inspect_config will override those set in the template. Singular fields
732
758
  # that are set in this request will replace their corresponding fields in the
733
759
  # template. Repeated fields are appended. Singular sub-messages and groups
734
760
  # are recursively merged.
735
761
  # @!attribute [rw] location_id
736
- # @return [String]
737
- # The geographic location to process content inspection. Reserved for future
738
- # extensions.
762
+ # @return [::String]
763
+ # Deprecated. This field has no effect.
739
764
  class InspectContentRequest
740
- include Google::Protobuf::MessageExts
741
- extend Google::Protobuf::MessageExts::ClassMethods
765
+ include ::Google::Protobuf::MessageExts
766
+ extend ::Google::Protobuf::MessageExts::ClassMethods
742
767
  end
743
768
 
744
769
  # Results of inspecting an item.
745
770
  # @!attribute [rw] result
746
- # @return [Google::Cloud::Dlp::V2::InspectResult]
771
+ # @return [::Google::Cloud::Dlp::V2::InspectResult]
747
772
  # The findings.
748
773
  class InspectContentResponse
749
- include Google::Protobuf::MessageExts
750
- extend Google::Protobuf::MessageExts::ClassMethods
774
+ include ::Google::Protobuf::MessageExts
775
+ extend ::Google::Protobuf::MessageExts::ClassMethods
751
776
  end
752
777
 
753
778
  # Cloud repository for storing output.
754
779
  # @!attribute [rw] table
755
- # @return [Google::Cloud::Dlp::V2::BigQueryTable]
780
+ # @return [::Google::Cloud::Dlp::V2::BigQueryTable]
756
781
  # Store findings in an existing table or a new table in an existing
757
782
  # dataset. If table_id is not set a new one will be generated
758
783
  # for you with the following format:
@@ -768,7 +793,7 @@ module Google
768
793
  # compute a different privacy metric, or use different sets of
769
794
  # quasi-identifiers, cannot store their results in the same table.
770
795
  # @!attribute [rw] output_schema
771
- # @return [Google::Cloud::Dlp::V2::OutputStorageConfig::OutputSchema]
796
+ # @return [::Google::Cloud::Dlp::V2::OutputStorageConfig::OutputSchema]
772
797
  # Schema used for writing the findings for Inspect jobs. This field is only
773
798
  # used for Inspect and must be unspecified for Risk jobs. Columns are derived
774
799
  # from the `Finding` object. If appending to an existing table, any columns
@@ -780,8 +805,8 @@ module Google
780
805
  # existing table that has a schema.
781
806
  # Only for use with external storage.
782
807
  class OutputStorageConfig
783
- include Google::Protobuf::MessageExts
784
- extend Google::Protobuf::MessageExts::ClassMethods
808
+ include ::Google::Protobuf::MessageExts
809
+ extend ::Google::Protobuf::MessageExts::ClassMethods
785
810
 
786
811
  # Predefined schemas for storing findings.
787
812
  # Only for use with external storage.
@@ -809,170 +834,172 @@ module Google
809
834
 
810
835
  # Statistics regarding a specific InfoType.
811
836
  # @!attribute [rw] info_type
812
- # @return [Google::Cloud::Dlp::V2::InfoType]
837
+ # @return [::Google::Cloud::Dlp::V2::InfoType]
813
838
  # The type of finding this stat is for.
814
839
  # @!attribute [rw] count
815
- # @return [Integer]
840
+ # @return [::Integer]
816
841
  # Number of findings for this infoType.
817
842
  class InfoTypeStats
818
- include Google::Protobuf::MessageExts
819
- extend Google::Protobuf::MessageExts::ClassMethods
843
+ include ::Google::Protobuf::MessageExts
844
+ extend ::Google::Protobuf::MessageExts::ClassMethods
820
845
  end
821
846
 
822
847
  # The results of an inspect DataSource job.
823
848
  # @!attribute [rw] requested_options
824
- # @return [Google::Cloud::Dlp::V2::InspectDataSourceDetails::RequestedOptions]
849
+ # @return [::Google::Cloud::Dlp::V2::InspectDataSourceDetails::RequestedOptions]
825
850
  # The configuration used for this job.
826
851
  # @!attribute [rw] result
827
- # @return [Google::Cloud::Dlp::V2::InspectDataSourceDetails::Result]
852
+ # @return [::Google::Cloud::Dlp::V2::InspectDataSourceDetails::Result]
828
853
  # A summary of the outcome of this inspect job.
829
854
  class InspectDataSourceDetails
830
- include Google::Protobuf::MessageExts
831
- extend Google::Protobuf::MessageExts::ClassMethods
855
+ include ::Google::Protobuf::MessageExts
856
+ extend ::Google::Protobuf::MessageExts::ClassMethods
832
857
 
833
858
  # Snapshot of the inspection configuration.
834
859
  # @!attribute [rw] snapshot_inspect_template
835
- # @return [Google::Cloud::Dlp::V2::InspectTemplate]
860
+ # @return [::Google::Cloud::Dlp::V2::InspectTemplate]
836
861
  # If run with an InspectTemplate, a snapshot of its state at the time of
837
862
  # this run.
838
863
  # @!attribute [rw] job_config
839
- # @return [Google::Cloud::Dlp::V2::InspectJobConfig]
864
+ # @return [::Google::Cloud::Dlp::V2::InspectJobConfig]
840
865
  # Inspect config.
841
866
  class RequestedOptions
842
- include Google::Protobuf::MessageExts
843
- extend Google::Protobuf::MessageExts::ClassMethods
867
+ include ::Google::Protobuf::MessageExts
868
+ extend ::Google::Protobuf::MessageExts::ClassMethods
844
869
  end
845
870
 
846
871
  # All result fields mentioned below are updated while the job is processing.
847
872
  # @!attribute [rw] processed_bytes
848
- # @return [Integer]
873
+ # @return [::Integer]
849
874
  # Total size in bytes that were processed.
850
875
  # @!attribute [rw] total_estimated_bytes
851
- # @return [Integer]
876
+ # @return [::Integer]
852
877
  # Estimate of the number of bytes to process.
853
878
  # @!attribute [rw] info_type_stats
854
- # @return [Array<Google::Cloud::Dlp::V2::InfoTypeStats>]
879
+ # @return [::Array<::Google::Cloud::Dlp::V2::InfoTypeStats>]
855
880
  # Statistics of how many instances of each info type were found during
856
881
  # inspect job.
857
882
  # @!attribute [rw] hybrid_stats
858
- # @return [Google::Cloud::Dlp::V2::HybridInspectStatistics]
883
+ # @return [::Google::Cloud::Dlp::V2::HybridInspectStatistics]
859
884
  # Statistics related to the processing of hybrid inspect.
860
885
  # Early access feature is in a pre-release state and might change or have
861
886
  # limited support. For more information, see
862
887
  # https://cloud.google.com/products#product-launch-stages.
863
888
  class Result
864
- include Google::Protobuf::MessageExts
865
- extend Google::Protobuf::MessageExts::ClassMethods
889
+ include ::Google::Protobuf::MessageExts
890
+ extend ::Google::Protobuf::MessageExts::ClassMethods
866
891
  end
867
892
  end
868
893
 
869
894
  # Statistics related to processing hybrid inspect requests.s
870
895
  # @!attribute [rw] processed_count
871
- # @return [Integer]
896
+ # @return [::Integer]
872
897
  # The number of hybrid inspection requests processed within this job.
873
898
  # @!attribute [rw] aborted_count
874
- # @return [Integer]
899
+ # @return [::Integer]
875
900
  # The number of hybrid inspection requests aborted because the job ran
876
901
  # out of quota or was ended before they could be processed.
877
902
  # @!attribute [rw] pending_count
878
- # @return [Integer]
903
+ # @return [::Integer]
879
904
  # The number of hybrid requests currently being processed. Only populated
880
905
  # when called via method `getDlpJob`.
881
906
  # A burst of traffic may cause hybrid inspect requests to be enqueued.
882
907
  # Processing will take place as quickly as possible, but resource limitations
883
908
  # may impact how long a request is enqueued for.
884
909
  class HybridInspectStatistics
885
- include Google::Protobuf::MessageExts
886
- extend Google::Protobuf::MessageExts::ClassMethods
910
+ include ::Google::Protobuf::MessageExts
911
+ extend ::Google::Protobuf::MessageExts::ClassMethods
887
912
  end
888
913
 
889
914
  # InfoType description.
890
915
  # @!attribute [rw] name
891
- # @return [String]
916
+ # @return [::String]
892
917
  # Internal name of the infoType.
893
918
  # @!attribute [rw] display_name
894
- # @return [String]
919
+ # @return [::String]
895
920
  # Human readable form of the infoType name.
896
921
  # @!attribute [rw] supported_by
897
- # @return [Array<Google::Cloud::Dlp::V2::InfoTypeSupportedBy>]
922
+ # @return [::Array<::Google::Cloud::Dlp::V2::InfoTypeSupportedBy>]
898
923
  # Which parts of the API supports this InfoType.
899
924
  # @!attribute [rw] description
900
- # @return [String]
925
+ # @return [::String]
901
926
  # Description of the infotype. Translated when language is provided in the
902
927
  # request.
903
928
  class InfoTypeDescription
904
- include Google::Protobuf::MessageExts
905
- extend Google::Protobuf::MessageExts::ClassMethods
929
+ include ::Google::Protobuf::MessageExts
930
+ extend ::Google::Protobuf::MessageExts::ClassMethods
906
931
  end
907
932
 
908
933
  # Request for the list of infoTypes.
934
+ # @!attribute [rw] parent
935
+ # @return [::String]
936
+ # The parent resource name, for example locations/\\{location_id}
909
937
  # @!attribute [rw] language_code
910
- # @return [String]
938
+ # @return [::String]
911
939
  # BCP-47 language code for localized infoType friendly
912
940
  # names. If omitted, or if localized strings are not available,
913
941
  # en-US strings will be returned.
914
942
  # @!attribute [rw] filter
915
- # @return [String]
943
+ # @return [::String]
916
944
  # filter to only return infoTypes supported by certain parts of the
917
945
  # API. Defaults to supported_by=INSPECT.
918
946
  # @!attribute [rw] location_id
919
- # @return [String]
920
- # The geographic location to list info types. Reserved for future
921
- # extensions.
947
+ # @return [::String]
948
+ # Deprecated. This field has no effect.
922
949
  class ListInfoTypesRequest
923
- include Google::Protobuf::MessageExts
924
- extend Google::Protobuf::MessageExts::ClassMethods
950
+ include ::Google::Protobuf::MessageExts
951
+ extend ::Google::Protobuf::MessageExts::ClassMethods
925
952
  end
926
953
 
927
954
  # Response to the ListInfoTypes request.
928
955
  # @!attribute [rw] info_types
929
- # @return [Array<Google::Cloud::Dlp::V2::InfoTypeDescription>]
956
+ # @return [::Array<::Google::Cloud::Dlp::V2::InfoTypeDescription>]
930
957
  # Set of sensitive infoTypes.
931
958
  class ListInfoTypesResponse
932
- include Google::Protobuf::MessageExts
933
- extend Google::Protobuf::MessageExts::ClassMethods
959
+ include ::Google::Protobuf::MessageExts
960
+ extend ::Google::Protobuf::MessageExts::ClassMethods
934
961
  end
935
962
 
936
963
  # Configuration for a risk analysis job. See
937
964
  # https://cloud.google.com/dlp/docs/concepts-risk-analysis to learn more.
938
965
  # @!attribute [rw] privacy_metric
939
- # @return [Google::Cloud::Dlp::V2::PrivacyMetric]
966
+ # @return [::Google::Cloud::Dlp::V2::PrivacyMetric]
940
967
  # Privacy metric to compute.
941
968
  # @!attribute [rw] source_table
942
- # @return [Google::Cloud::Dlp::V2::BigQueryTable]
969
+ # @return [::Google::Cloud::Dlp::V2::BigQueryTable]
943
970
  # Input dataset to compute metrics over.
944
971
  # @!attribute [rw] actions
945
- # @return [Array<Google::Cloud::Dlp::V2::Action>]
972
+ # @return [::Array<::Google::Cloud::Dlp::V2::Action>]
946
973
  # Actions to execute at the completion of the job. Are executed in the order
947
974
  # provided.
948
975
  class RiskAnalysisJobConfig
949
- include Google::Protobuf::MessageExts
950
- extend Google::Protobuf::MessageExts::ClassMethods
976
+ include ::Google::Protobuf::MessageExts
977
+ extend ::Google::Protobuf::MessageExts::ClassMethods
951
978
  end
952
979
 
953
980
  # A column with a semantic tag attached.
954
981
  # @!attribute [rw] field
955
- # @return [Google::Cloud::Dlp::V2::FieldId]
982
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
956
983
  # Required. Identifies the column.
957
984
  # @!attribute [rw] info_type
958
- # @return [Google::Cloud::Dlp::V2::InfoType]
985
+ # @return [::Google::Cloud::Dlp::V2::InfoType]
959
986
  # A column can be tagged with a InfoType to use the relevant public
960
987
  # dataset as a statistical model of population, if available. We
961
988
  # currently support US ZIP codes, region codes, ages and genders.
962
989
  # To programmatically obtain the list of supported InfoTypes, use
963
990
  # ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
964
991
  # @!attribute [rw] custom_tag
965
- # @return [String]
992
+ # @return [::String]
966
993
  # A column can be tagged with a custom tag. In this case, the user must
967
994
  # indicate an auxiliary table that contains statistical information on
968
995
  # the possible values of this column (below).
969
996
  # @!attribute [rw] inferred
970
- # @return [Google::Protobuf::Empty]
997
+ # @return [::Google::Protobuf::Empty]
971
998
  # If no semantic tag is indicated, we infer the statistical model from
972
999
  # the distribution of values in the input data
973
1000
  class QuasiId
974
- include Google::Protobuf::MessageExts
975
- extend Google::Protobuf::MessageExts::ClassMethods
1001
+ include ::Google::Protobuf::MessageExts
1002
+ extend ::Google::Protobuf::MessageExts::ClassMethods
976
1003
  end
977
1004
 
978
1005
  # An auxiliary table containing statistical information on the relative
@@ -983,92 +1010,92 @@ module Google
983
1010
  # corresponding relative frequency is assumed to be zero (and thus, the
984
1011
  # tuple is highly reidentifiable).
985
1012
  # @!attribute [rw] table
986
- # @return [Google::Cloud::Dlp::V2::BigQueryTable]
1013
+ # @return [::Google::Cloud::Dlp::V2::BigQueryTable]
987
1014
  # Required. Auxiliary table location.
988
1015
  # @!attribute [rw] quasi_ids
989
- # @return [Array<Google::Cloud::Dlp::V2::StatisticalTable::QuasiIdentifierField>]
1016
+ # @return [::Array<::Google::Cloud::Dlp::V2::StatisticalTable::QuasiIdentifierField>]
990
1017
  # Required. Quasi-identifier columns.
991
1018
  # @!attribute [rw] relative_frequency
992
- # @return [Google::Cloud::Dlp::V2::FieldId]
1019
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
993
1020
  # Required. The relative frequency column must contain a floating-point
994
1021
  # number between 0 and 1 (inclusive). Null values are assumed to be zero.
995
1022
  class StatisticalTable
996
- include Google::Protobuf::MessageExts
997
- extend Google::Protobuf::MessageExts::ClassMethods
1023
+ include ::Google::Protobuf::MessageExts
1024
+ extend ::Google::Protobuf::MessageExts::ClassMethods
998
1025
 
999
1026
  # A quasi-identifier column has a custom_tag, used to know which column
1000
1027
  # in the data corresponds to which column in the statistical model.
1001
1028
  # @!attribute [rw] field
1002
- # @return [Google::Cloud::Dlp::V2::FieldId]
1029
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
1003
1030
  # Identifies the column.
1004
1031
  # @!attribute [rw] custom_tag
1005
- # @return [String]
1032
+ # @return [::String]
1006
1033
  # A column can be tagged with a custom tag. In this case, the user must
1007
1034
  # indicate an auxiliary table that contains statistical information on
1008
1035
  # the possible values of this column (below).
1009
1036
  class QuasiIdentifierField
1010
- include Google::Protobuf::MessageExts
1011
- extend Google::Protobuf::MessageExts::ClassMethods
1037
+ include ::Google::Protobuf::MessageExts
1038
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1012
1039
  end
1013
1040
  end
1014
1041
 
1015
1042
  # Privacy metric to compute for reidentification risk analysis.
1016
1043
  # @!attribute [rw] numerical_stats_config
1017
- # @return [Google::Cloud::Dlp::V2::PrivacyMetric::NumericalStatsConfig]
1044
+ # @return [::Google::Cloud::Dlp::V2::PrivacyMetric::NumericalStatsConfig]
1018
1045
  # Numerical stats
1019
1046
  # @!attribute [rw] categorical_stats_config
1020
- # @return [Google::Cloud::Dlp::V2::PrivacyMetric::CategoricalStatsConfig]
1047
+ # @return [::Google::Cloud::Dlp::V2::PrivacyMetric::CategoricalStatsConfig]
1021
1048
  # Categorical stats
1022
1049
  # @!attribute [rw] k_anonymity_config
1023
- # @return [Google::Cloud::Dlp::V2::PrivacyMetric::KAnonymityConfig]
1050
+ # @return [::Google::Cloud::Dlp::V2::PrivacyMetric::KAnonymityConfig]
1024
1051
  # K-anonymity
1025
1052
  # @!attribute [rw] l_diversity_config
1026
- # @return [Google::Cloud::Dlp::V2::PrivacyMetric::LDiversityConfig]
1053
+ # @return [::Google::Cloud::Dlp::V2::PrivacyMetric::LDiversityConfig]
1027
1054
  # l-diversity
1028
1055
  # @!attribute [rw] k_map_estimation_config
1029
- # @return [Google::Cloud::Dlp::V2::PrivacyMetric::KMapEstimationConfig]
1056
+ # @return [::Google::Cloud::Dlp::V2::PrivacyMetric::KMapEstimationConfig]
1030
1057
  # k-map
1031
1058
  # @!attribute [rw] delta_presence_estimation_config
1032
- # @return [Google::Cloud::Dlp::V2::PrivacyMetric::DeltaPresenceEstimationConfig]
1059
+ # @return [::Google::Cloud::Dlp::V2::PrivacyMetric::DeltaPresenceEstimationConfig]
1033
1060
  # delta-presence
1034
1061
  class PrivacyMetric
1035
- include Google::Protobuf::MessageExts
1036
- extend Google::Protobuf::MessageExts::ClassMethods
1062
+ include ::Google::Protobuf::MessageExts
1063
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1037
1064
 
1038
1065
  # Compute numerical stats over an individual column, including
1039
1066
  # min, max, and quantiles.
1040
1067
  # @!attribute [rw] field
1041
- # @return [Google::Cloud::Dlp::V2::FieldId]
1068
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
1042
1069
  # Field to compute numerical stats on. Supported types are
1043
1070
  # integer, float, date, datetime, timestamp, time.
1044
1071
  class NumericalStatsConfig
1045
- include Google::Protobuf::MessageExts
1046
- extend Google::Protobuf::MessageExts::ClassMethods
1072
+ include ::Google::Protobuf::MessageExts
1073
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1047
1074
  end
1048
1075
 
1049
1076
  # Compute numerical stats over an individual column, including
1050
1077
  # number of distinct values and value count distribution.
1051
1078
  # @!attribute [rw] field
1052
- # @return [Google::Cloud::Dlp::V2::FieldId]
1079
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
1053
1080
  # Field to compute categorical stats on. All column types are
1054
1081
  # supported except for arrays and structs. However, it may be more
1055
1082
  # informative to use NumericalStats when the field type is supported,
1056
1083
  # depending on the data.
1057
1084
  class CategoricalStatsConfig
1058
- include Google::Protobuf::MessageExts
1059
- extend Google::Protobuf::MessageExts::ClassMethods
1085
+ include ::Google::Protobuf::MessageExts
1086
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1060
1087
  end
1061
1088
 
1062
1089
  # k-anonymity metric, used for analysis of reidentification risk.
1063
1090
  # @!attribute [rw] quasi_ids
1064
- # @return [Array<Google::Cloud::Dlp::V2::FieldId>]
1091
+ # @return [::Array<::Google::Cloud::Dlp::V2::FieldId>]
1065
1092
  # Set of fields to compute k-anonymity over. When multiple fields are
1066
1093
  # specified, they are considered a single composite key. Structs and
1067
1094
  # repeated data types are not supported; however, nested fields are
1068
1095
  # supported so long as they are not structs themselves or nested within
1069
1096
  # a repeated field.
1070
1097
  # @!attribute [rw] entity_id
1071
- # @return [Google::Cloud::Dlp::V2::EntityId]
1098
+ # @return [::Google::Cloud::Dlp::V2::EntityId]
1072
1099
  # Message indicating that multiple rows might be associated to a
1073
1100
  # single individual. If the same entity_id is associated to multiple
1074
1101
  # quasi-identifier tuples over distinct rows, we consider the entire
@@ -1080,22 +1107,22 @@ module Google
1080
1107
  # entity ID. If more rows are associated with the same entity ID, some
1081
1108
  # might be ignored.
1082
1109
  class KAnonymityConfig
1083
- include Google::Protobuf::MessageExts
1084
- extend Google::Protobuf::MessageExts::ClassMethods
1110
+ include ::Google::Protobuf::MessageExts
1111
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1085
1112
  end
1086
1113
 
1087
1114
  # l-diversity metric, used for analysis of reidentification risk.
1088
1115
  # @!attribute [rw] quasi_ids
1089
- # @return [Array<Google::Cloud::Dlp::V2::FieldId>]
1116
+ # @return [::Array<::Google::Cloud::Dlp::V2::FieldId>]
1090
1117
  # Set of quasi-identifiers indicating how equivalence classes are
1091
1118
  # defined for the l-diversity computation. When multiple fields are
1092
1119
  # specified, they are considered a single composite key.
1093
1120
  # @!attribute [rw] sensitive_attribute
1094
- # @return [Google::Cloud::Dlp::V2::FieldId]
1121
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
1095
1122
  # Sensitive field for computing the l-value.
1096
1123
  class LDiversityConfig
1097
- include Google::Protobuf::MessageExts
1098
- extend Google::Protobuf::MessageExts::ClassMethods
1124
+ include ::Google::Protobuf::MessageExts
1125
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1099
1126
  end
1100
1127
 
1101
1128
  # Reidentifiability metric. This corresponds to a risk model similar to what
@@ -1105,46 +1132,46 @@ module Google
1105
1132
  # statistical model (indicated as one or several BigQuery tables), or by
1106
1133
  # extrapolating from the distribution of values in the input dataset.
1107
1134
  # @!attribute [rw] quasi_ids
1108
- # @return [Array<Google::Cloud::Dlp::V2::PrivacyMetric::KMapEstimationConfig::TaggedField>]
1135
+ # @return [::Array<::Google::Cloud::Dlp::V2::PrivacyMetric::KMapEstimationConfig::TaggedField>]
1109
1136
  # Required. Fields considered to be quasi-identifiers. No two columns can
1110
1137
  # have the same tag.
1111
1138
  # @!attribute [rw] region_code
1112
- # @return [String]
1139
+ # @return [::String]
1113
1140
  # ISO 3166-1 alpha-2 region code to use in the statistical modeling.
1114
1141
  # Set if no column is tagged with a region-specific InfoType (like
1115
1142
  # US_ZIP_5) or a region code.
1116
1143
  # @!attribute [rw] auxiliary_tables
1117
- # @return [Array<Google::Cloud::Dlp::V2::PrivacyMetric::KMapEstimationConfig::AuxiliaryTable>]
1144
+ # @return [::Array<::Google::Cloud::Dlp::V2::PrivacyMetric::KMapEstimationConfig::AuxiliaryTable>]
1118
1145
  # Several auxiliary tables can be used in the analysis. Each custom_tag
1119
1146
  # used to tag a quasi-identifiers column must appear in exactly one column
1120
1147
  # of one auxiliary table.
1121
1148
  class KMapEstimationConfig
1122
- include Google::Protobuf::MessageExts
1123
- extend Google::Protobuf::MessageExts::ClassMethods
1149
+ include ::Google::Protobuf::MessageExts
1150
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1124
1151
 
1125
1152
  # A column with a semantic tag attached.
1126
1153
  # @!attribute [rw] field
1127
- # @return [Google::Cloud::Dlp::V2::FieldId]
1154
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
1128
1155
  # Required. Identifies the column.
1129
1156
  # @!attribute [rw] info_type
1130
- # @return [Google::Cloud::Dlp::V2::InfoType]
1157
+ # @return [::Google::Cloud::Dlp::V2::InfoType]
1131
1158
  # A column can be tagged with a InfoType to use the relevant public
1132
1159
  # dataset as a statistical model of population, if available. We
1133
1160
  # currently support US ZIP codes, region codes, ages and genders.
1134
1161
  # To programmatically obtain the list of supported InfoTypes, use
1135
1162
  # ListInfoTypes with the supported_by=RISK_ANALYSIS filter.
1136
1163
  # @!attribute [rw] custom_tag
1137
- # @return [String]
1164
+ # @return [::String]
1138
1165
  # A column can be tagged with a custom tag. In this case, the user must
1139
1166
  # indicate an auxiliary table that contains statistical information on
1140
1167
  # the possible values of this column (below).
1141
1168
  # @!attribute [rw] inferred
1142
- # @return [Google::Protobuf::Empty]
1169
+ # @return [::Google::Protobuf::Empty]
1143
1170
  # If no semantic tag is indicated, we infer the statistical model from
1144
1171
  # the distribution of values in the input data
1145
1172
  class TaggedField
1146
- include Google::Protobuf::MessageExts
1147
- extend Google::Protobuf::MessageExts::ClassMethods
1173
+ include ::Google::Protobuf::MessageExts
1174
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1148
1175
  end
1149
1176
 
1150
1177
  # An auxiliary table contains statistical information on the relative
@@ -1155,30 +1182,30 @@ module Google
1155
1182
  # corresponding relative frequency is assumed to be zero (and thus, the
1156
1183
  # tuple is highly reidentifiable).
1157
1184
  # @!attribute [rw] table
1158
- # @return [Google::Cloud::Dlp::V2::BigQueryTable]
1185
+ # @return [::Google::Cloud::Dlp::V2::BigQueryTable]
1159
1186
  # Required. Auxiliary table location.
1160
1187
  # @!attribute [rw] quasi_ids
1161
- # @return [Array<Google::Cloud::Dlp::V2::PrivacyMetric::KMapEstimationConfig::AuxiliaryTable::QuasiIdField>]
1188
+ # @return [::Array<::Google::Cloud::Dlp::V2::PrivacyMetric::KMapEstimationConfig::AuxiliaryTable::QuasiIdField>]
1162
1189
  # Required. Quasi-identifier columns.
1163
1190
  # @!attribute [rw] relative_frequency
1164
- # @return [Google::Cloud::Dlp::V2::FieldId]
1191
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
1165
1192
  # Required. The relative frequency column must contain a floating-point
1166
1193
  # number between 0 and 1 (inclusive). Null values are assumed to be zero.
1167
1194
  class AuxiliaryTable
1168
- include Google::Protobuf::MessageExts
1169
- extend Google::Protobuf::MessageExts::ClassMethods
1195
+ include ::Google::Protobuf::MessageExts
1196
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1170
1197
 
1171
1198
  # A quasi-identifier column has a custom_tag, used to know which column
1172
1199
  # in the data corresponds to which column in the statistical model.
1173
1200
  # @!attribute [rw] field
1174
- # @return [Google::Cloud::Dlp::V2::FieldId]
1201
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
1175
1202
  # Identifies the column.
1176
1203
  # @!attribute [rw] custom_tag
1177
- # @return [String]
1204
+ # @return [::String]
1178
1205
  # A auxiliary field.
1179
1206
  class QuasiIdField
1180
- include Google::Protobuf::MessageExts
1181
- extend Google::Protobuf::MessageExts::ClassMethods
1207
+ include ::Google::Protobuf::MessageExts
1208
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1182
1209
  end
1183
1210
  end
1184
1211
  end
@@ -1188,203 +1215,203 @@ module Google
1188
1215
  # Similarly to the k-map metric, we cannot compute δ-presence exactly without
1189
1216
  # knowing the attack dataset, so we use a statistical model instead.
1190
1217
  # @!attribute [rw] quasi_ids
1191
- # @return [Array<Google::Cloud::Dlp::V2::QuasiId>]
1218
+ # @return [::Array<::Google::Cloud::Dlp::V2::QuasiId>]
1192
1219
  # Required. Fields considered to be quasi-identifiers. No two fields can
1193
1220
  # have the same tag.
1194
1221
  # @!attribute [rw] region_code
1195
- # @return [String]
1222
+ # @return [::String]
1196
1223
  # ISO 3166-1 alpha-2 region code to use in the statistical modeling.
1197
1224
  # Set if no column is tagged with a region-specific InfoType (like
1198
1225
  # US_ZIP_5) or a region code.
1199
1226
  # @!attribute [rw] auxiliary_tables
1200
- # @return [Array<Google::Cloud::Dlp::V2::StatisticalTable>]
1227
+ # @return [::Array<::Google::Cloud::Dlp::V2::StatisticalTable>]
1201
1228
  # Several auxiliary tables can be used in the analysis. Each custom_tag
1202
1229
  # used to tag a quasi-identifiers field must appear in exactly one
1203
1230
  # field of one auxiliary table.
1204
1231
  class DeltaPresenceEstimationConfig
1205
- include Google::Protobuf::MessageExts
1206
- extend Google::Protobuf::MessageExts::ClassMethods
1232
+ include ::Google::Protobuf::MessageExts
1233
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1207
1234
  end
1208
1235
  end
1209
1236
 
1210
1237
  # Result of a risk analysis operation request.
1211
1238
  # @!attribute [rw] requested_privacy_metric
1212
- # @return [Google::Cloud::Dlp::V2::PrivacyMetric]
1239
+ # @return [::Google::Cloud::Dlp::V2::PrivacyMetric]
1213
1240
  # Privacy metric to compute.
1214
1241
  # @!attribute [rw] requested_source_table
1215
- # @return [Google::Cloud::Dlp::V2::BigQueryTable]
1242
+ # @return [::Google::Cloud::Dlp::V2::BigQueryTable]
1216
1243
  # Input dataset to compute metrics over.
1217
1244
  # @!attribute [rw] numerical_stats_result
1218
- # @return [Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::NumericalStatsResult]
1245
+ # @return [::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::NumericalStatsResult]
1219
1246
  # Numerical stats result
1220
1247
  # @!attribute [rw] categorical_stats_result
1221
- # @return [Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::CategoricalStatsResult]
1248
+ # @return [::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::CategoricalStatsResult]
1222
1249
  # Categorical stats result
1223
1250
  # @!attribute [rw] k_anonymity_result
1224
- # @return [Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult]
1251
+ # @return [::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult]
1225
1252
  # K-anonymity result
1226
1253
  # @!attribute [rw] l_diversity_result
1227
- # @return [Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult]
1254
+ # @return [::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult]
1228
1255
  # L-divesity result
1229
1256
  # @!attribute [rw] k_map_estimation_result
1230
- # @return [Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult]
1257
+ # @return [::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult]
1231
1258
  # K-map result
1232
1259
  # @!attribute [rw] delta_presence_estimation_result
1233
- # @return [Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult]
1260
+ # @return [::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult]
1234
1261
  # Delta-presence result
1235
1262
  class AnalyzeDataSourceRiskDetails
1236
- include Google::Protobuf::MessageExts
1237
- extend Google::Protobuf::MessageExts::ClassMethods
1263
+ include ::Google::Protobuf::MessageExts
1264
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1238
1265
 
1239
1266
  # Result of the numerical stats computation.
1240
1267
  # @!attribute [rw] min_value
1241
- # @return [Google::Cloud::Dlp::V2::Value]
1268
+ # @return [::Google::Cloud::Dlp::V2::Value]
1242
1269
  # Minimum value appearing in the column.
1243
1270
  # @!attribute [rw] max_value
1244
- # @return [Google::Cloud::Dlp::V2::Value]
1271
+ # @return [::Google::Cloud::Dlp::V2::Value]
1245
1272
  # Maximum value appearing in the column.
1246
1273
  # @!attribute [rw] quantile_values
1247
- # @return [Array<Google::Cloud::Dlp::V2::Value>]
1274
+ # @return [::Array<::Google::Cloud::Dlp::V2::Value>]
1248
1275
  # List of 99 values that partition the set of field values into 100 equal
1249
1276
  # sized buckets.
1250
1277
  class NumericalStatsResult
1251
- include Google::Protobuf::MessageExts
1252
- extend Google::Protobuf::MessageExts::ClassMethods
1278
+ include ::Google::Protobuf::MessageExts
1279
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1253
1280
  end
1254
1281
 
1255
1282
  # Result of the categorical stats computation.
1256
1283
  # @!attribute [rw] value_frequency_histogram_buckets
1257
- # @return [Array<Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::CategoricalStatsResult::CategoricalStatsHistogramBucket>]
1284
+ # @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::CategoricalStatsResult::CategoricalStatsHistogramBucket>]
1258
1285
  # Histogram of value frequencies in the column.
1259
1286
  class CategoricalStatsResult
1260
- include Google::Protobuf::MessageExts
1261
- extend Google::Protobuf::MessageExts::ClassMethods
1287
+ include ::Google::Protobuf::MessageExts
1288
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1262
1289
 
1263
1290
  # Histogram of value frequencies in the column.
1264
1291
  # @!attribute [rw] value_frequency_lower_bound
1265
- # @return [Integer]
1292
+ # @return [::Integer]
1266
1293
  # Lower bound on the value frequency of the values in this bucket.
1267
1294
  # @!attribute [rw] value_frequency_upper_bound
1268
- # @return [Integer]
1295
+ # @return [::Integer]
1269
1296
  # Upper bound on the value frequency of the values in this bucket.
1270
1297
  # @!attribute [rw] bucket_size
1271
- # @return [Integer]
1298
+ # @return [::Integer]
1272
1299
  # Total number of values in this bucket.
1273
1300
  # @!attribute [rw] bucket_values
1274
- # @return [Array<Google::Cloud::Dlp::V2::ValueFrequency>]
1301
+ # @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
1275
1302
  # Sample of value frequencies in this bucket. The total number of
1276
1303
  # values returned per bucket is capped at 20.
1277
1304
  # @!attribute [rw] bucket_value_count
1278
- # @return [Integer]
1305
+ # @return [::Integer]
1279
1306
  # Total number of distinct values in this bucket.
1280
1307
  class CategoricalStatsHistogramBucket
1281
- include Google::Protobuf::MessageExts
1282
- extend Google::Protobuf::MessageExts::ClassMethods
1308
+ include ::Google::Protobuf::MessageExts
1309
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1283
1310
  end
1284
1311
  end
1285
1312
 
1286
1313
  # Result of the k-anonymity computation.
1287
1314
  # @!attribute [rw] equivalence_class_histogram_buckets
1288
- # @return [Array<Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityHistogramBucket>]
1315
+ # @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityHistogramBucket>]
1289
1316
  # Histogram of k-anonymity equivalence classes.
1290
1317
  class KAnonymityResult
1291
- include Google::Protobuf::MessageExts
1292
- extend Google::Protobuf::MessageExts::ClassMethods
1318
+ include ::Google::Protobuf::MessageExts
1319
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1293
1320
 
1294
1321
  # The set of columns' values that share the same ldiversity value
1295
1322
  # @!attribute [rw] quasi_ids_values
1296
- # @return [Array<Google::Cloud::Dlp::V2::Value>]
1323
+ # @return [::Array<::Google::Cloud::Dlp::V2::Value>]
1297
1324
  # Set of values defining the equivalence class. One value per
1298
1325
  # quasi-identifier column in the original KAnonymity metric message.
1299
1326
  # The order is always the same as the original request.
1300
1327
  # @!attribute [rw] equivalence_class_size
1301
- # @return [Integer]
1328
+ # @return [::Integer]
1302
1329
  # Size of the equivalence class, for example number of rows with the
1303
1330
  # above set of values.
1304
1331
  class KAnonymityEquivalenceClass
1305
- include Google::Protobuf::MessageExts
1306
- extend Google::Protobuf::MessageExts::ClassMethods
1332
+ include ::Google::Protobuf::MessageExts
1333
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1307
1334
  end
1308
1335
 
1309
1336
  # Histogram of k-anonymity equivalence classes.
1310
1337
  # @!attribute [rw] equivalence_class_size_lower_bound
1311
- # @return [Integer]
1338
+ # @return [::Integer]
1312
1339
  # Lower bound on the size of the equivalence classes in this bucket.
1313
1340
  # @!attribute [rw] equivalence_class_size_upper_bound
1314
- # @return [Integer]
1341
+ # @return [::Integer]
1315
1342
  # Upper bound on the size of the equivalence classes in this bucket.
1316
1343
  # @!attribute [rw] bucket_size
1317
- # @return [Integer]
1344
+ # @return [::Integer]
1318
1345
  # Total number of equivalence classes in this bucket.
1319
1346
  # @!attribute [rw] bucket_values
1320
- # @return [Array<Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityEquivalenceClass>]
1347
+ # @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityEquivalenceClass>]
1321
1348
  # Sample of equivalence classes in this bucket. The total number of
1322
1349
  # classes returned per bucket is capped at 20.
1323
1350
  # @!attribute [rw] bucket_value_count
1324
- # @return [Integer]
1351
+ # @return [::Integer]
1325
1352
  # Total number of distinct equivalence classes in this bucket.
1326
1353
  class KAnonymityHistogramBucket
1327
- include Google::Protobuf::MessageExts
1328
- extend Google::Protobuf::MessageExts::ClassMethods
1354
+ include ::Google::Protobuf::MessageExts
1355
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1329
1356
  end
1330
1357
  end
1331
1358
 
1332
1359
  # Result of the l-diversity computation.
1333
1360
  # @!attribute [rw] sensitive_value_frequency_histogram_buckets
1334
- # @return [Array<Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityHistogramBucket>]
1361
+ # @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityHistogramBucket>]
1335
1362
  # Histogram of l-diversity equivalence class sensitive value frequencies.
1336
1363
  class LDiversityResult
1337
- include Google::Protobuf::MessageExts
1338
- extend Google::Protobuf::MessageExts::ClassMethods
1364
+ include ::Google::Protobuf::MessageExts
1365
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1339
1366
 
1340
1367
  # The set of columns' values that share the same ldiversity value.
1341
1368
  # @!attribute [rw] quasi_ids_values
1342
- # @return [Array<Google::Cloud::Dlp::V2::Value>]
1369
+ # @return [::Array<::Google::Cloud::Dlp::V2::Value>]
1343
1370
  # Quasi-identifier values defining the k-anonymity equivalence
1344
1371
  # class. The order is always the same as the original request.
1345
1372
  # @!attribute [rw] equivalence_class_size
1346
- # @return [Integer]
1373
+ # @return [::Integer]
1347
1374
  # Size of the k-anonymity equivalence class.
1348
1375
  # @!attribute [rw] num_distinct_sensitive_values
1349
- # @return [Integer]
1376
+ # @return [::Integer]
1350
1377
  # Number of distinct sensitive values in this equivalence class.
1351
1378
  # @!attribute [rw] top_sensitive_values
1352
- # @return [Array<Google::Cloud::Dlp::V2::ValueFrequency>]
1379
+ # @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
1353
1380
  # Estimated frequencies of top sensitive values.
1354
1381
  class LDiversityEquivalenceClass
1355
- include Google::Protobuf::MessageExts
1356
- extend Google::Protobuf::MessageExts::ClassMethods
1382
+ include ::Google::Protobuf::MessageExts
1383
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1357
1384
  end
1358
1385
 
1359
1386
  # Histogram of l-diversity equivalence class sensitive value frequencies.
1360
1387
  # @!attribute [rw] sensitive_value_frequency_lower_bound
1361
- # @return [Integer]
1388
+ # @return [::Integer]
1362
1389
  # Lower bound on the sensitive value frequencies of the equivalence
1363
1390
  # classes in this bucket.
1364
1391
  # @!attribute [rw] sensitive_value_frequency_upper_bound
1365
- # @return [Integer]
1392
+ # @return [::Integer]
1366
1393
  # Upper bound on the sensitive value frequencies of the equivalence
1367
1394
  # classes in this bucket.
1368
1395
  # @!attribute [rw] bucket_size
1369
- # @return [Integer]
1396
+ # @return [::Integer]
1370
1397
  # Total number of equivalence classes in this bucket.
1371
1398
  # @!attribute [rw] bucket_values
1372
- # @return [Array<Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityEquivalenceClass>]
1399
+ # @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityEquivalenceClass>]
1373
1400
  # Sample of equivalence classes in this bucket. The total number of
1374
1401
  # classes returned per bucket is capped at 20.
1375
1402
  # @!attribute [rw] bucket_value_count
1376
- # @return [Integer]
1403
+ # @return [::Integer]
1377
1404
  # Total number of distinct equivalence classes in this bucket.
1378
1405
  class LDiversityHistogramBucket
1379
- include Google::Protobuf::MessageExts
1380
- extend Google::Protobuf::MessageExts::ClassMethods
1406
+ include ::Google::Protobuf::MessageExts
1407
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1381
1408
  end
1382
1409
  end
1383
1410
 
1384
1411
  # Result of the reidentifiability analysis. Note that these results are an
1385
1412
  # estimation, not exact values.
1386
1413
  # @!attribute [rw] k_map_estimation_histogram
1387
- # @return [Array<Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationHistogramBucket>]
1414
+ # @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationHistogramBucket>]
1388
1415
  # The intervals [min_anonymity, max_anonymity] do not overlap. If a value
1389
1416
  # doesn't correspond to any such interval, the associated frequency is
1390
1417
  # zero. For example, the following records:
@@ -1394,19 +1421,19 @@ module Google
1394
1421
  # mean that there are no record with an estimated anonymity of 4, 5, or
1395
1422
  # larger than 10.
1396
1423
  class KMapEstimationResult
1397
- include Google::Protobuf::MessageExts
1398
- extend Google::Protobuf::MessageExts::ClassMethods
1424
+ include ::Google::Protobuf::MessageExts
1425
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1399
1426
 
1400
1427
  # A tuple of values for the quasi-identifier columns.
1401
1428
  # @!attribute [rw] quasi_ids_values
1402
- # @return [Array<Google::Cloud::Dlp::V2::Value>]
1429
+ # @return [::Array<::Google::Cloud::Dlp::V2::Value>]
1403
1430
  # The quasi-identifier values.
1404
1431
  # @!attribute [rw] estimated_anonymity
1405
- # @return [Integer]
1432
+ # @return [::Integer]
1406
1433
  # The estimated anonymity for these quasi-identifier values.
1407
1434
  class KMapEstimationQuasiIdValues
1408
- include Google::Protobuf::MessageExts
1409
- extend Google::Protobuf::MessageExts::ClassMethods
1435
+ include ::Google::Protobuf::MessageExts
1436
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1410
1437
  end
1411
1438
 
1412
1439
  # A KMapEstimationHistogramBucket message with the following values:
@@ -1418,31 +1445,31 @@ module Google
1418
1445
  # case is when min_anonymity = max_anonymity = 1: the frequency field then
1419
1446
  # corresponds to the number of uniquely identifiable records.
1420
1447
  # @!attribute [rw] min_anonymity
1421
- # @return [Integer]
1448
+ # @return [::Integer]
1422
1449
  # Always positive.
1423
1450
  # @!attribute [rw] max_anonymity
1424
- # @return [Integer]
1451
+ # @return [::Integer]
1425
1452
  # Always greater than or equal to min_anonymity.
1426
1453
  # @!attribute [rw] bucket_size
1427
- # @return [Integer]
1454
+ # @return [::Integer]
1428
1455
  # Number of records within these anonymity bounds.
1429
1456
  # @!attribute [rw] bucket_values
1430
- # @return [Array<Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationQuasiIdValues>]
1457
+ # @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationQuasiIdValues>]
1431
1458
  # Sample of quasi-identifier tuple values in this bucket. The total
1432
1459
  # number of classes returned per bucket is capped at 20.
1433
1460
  # @!attribute [rw] bucket_value_count
1434
- # @return [Integer]
1461
+ # @return [::Integer]
1435
1462
  # Total number of distinct quasi-identifier tuple values in this bucket.
1436
1463
  class KMapEstimationHistogramBucket
1437
- include Google::Protobuf::MessageExts
1438
- extend Google::Protobuf::MessageExts::ClassMethods
1464
+ include ::Google::Protobuf::MessageExts
1465
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1439
1466
  end
1440
1467
  end
1441
1468
 
1442
1469
  # Result of the δ-presence computation. Note that these results are an
1443
1470
  # estimation, not exact values.
1444
1471
  # @!attribute [rw] delta_presence_estimation_histogram
1445
- # @return [Array<Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationHistogramBucket>]
1472
+ # @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationHistogramBucket>]
1446
1473
  # The intervals [min_probability, max_probability) do not overlap. If a
1447
1474
  # value doesn't correspond to any such interval, the associated frequency
1448
1475
  # is zero. For example, the following records:
@@ -1452,15 +1479,15 @@ module Google
1452
1479
  # mean that there are no record with an estimated probability in [0.1, 0.2)
1453
1480
  # nor larger or equal to 0.4.
1454
1481
  class DeltaPresenceEstimationResult
1455
- include Google::Protobuf::MessageExts
1456
- extend Google::Protobuf::MessageExts::ClassMethods
1482
+ include ::Google::Protobuf::MessageExts
1483
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1457
1484
 
1458
1485
  # A tuple of values for the quasi-identifier columns.
1459
1486
  # @!attribute [rw] quasi_ids_values
1460
- # @return [Array<Google::Cloud::Dlp::V2::Value>]
1487
+ # @return [::Array<::Google::Cloud::Dlp::V2::Value>]
1461
1488
  # The quasi-identifier values.
1462
1489
  # @!attribute [rw] estimated_probability
1463
- # @return [Float]
1490
+ # @return [::Float]
1464
1491
  # The estimated probability that a given individual sharing these
1465
1492
  # quasi-identifier values is in the dataset. This value, typically called
1466
1493
  # δ, is the ratio between the number of records in the dataset with these
@@ -1470,8 +1497,8 @@ module Google
1470
1497
  # same quasi-identifier values, and an estimated 100 people in the entire
1471
1498
  # population with these values, then δ is 0.15.
1472
1499
  class DeltaPresenceEstimationQuasiIdValues
1473
- include Google::Protobuf::MessageExts
1474
- extend Google::Protobuf::MessageExts::ClassMethods
1500
+ include ::Google::Protobuf::MessageExts
1501
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1475
1502
  end
1476
1503
 
1477
1504
  # A DeltaPresenceEstimationHistogramBucket message with the following
@@ -1484,38 +1511,38 @@ module Google
1484
1511
  # then, every individual who shares this quasi-identifier combination is in
1485
1512
  # the dataset.
1486
1513
  # @!attribute [rw] min_probability
1487
- # @return [Float]
1514
+ # @return [::Float]
1488
1515
  # Between 0 and 1.
1489
1516
  # @!attribute [rw] max_probability
1490
- # @return [Float]
1517
+ # @return [::Float]
1491
1518
  # Always greater than or equal to min_probability.
1492
1519
  # @!attribute [rw] bucket_size
1493
- # @return [Integer]
1520
+ # @return [::Integer]
1494
1521
  # Number of records within these probability bounds.
1495
1522
  # @!attribute [rw] bucket_values
1496
- # @return [Array<Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationQuasiIdValues>]
1523
+ # @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationQuasiIdValues>]
1497
1524
  # Sample of quasi-identifier tuple values in this bucket. The total
1498
1525
  # number of classes returned per bucket is capped at 20.
1499
1526
  # @!attribute [rw] bucket_value_count
1500
- # @return [Integer]
1527
+ # @return [::Integer]
1501
1528
  # Total number of distinct quasi-identifier tuple values in this bucket.
1502
1529
  class DeltaPresenceEstimationHistogramBucket
1503
- include Google::Protobuf::MessageExts
1504
- extend Google::Protobuf::MessageExts::ClassMethods
1530
+ include ::Google::Protobuf::MessageExts
1531
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1505
1532
  end
1506
1533
  end
1507
1534
  end
1508
1535
 
1509
1536
  # A value of a field, including its frequency.
1510
1537
  # @!attribute [rw] value
1511
- # @return [Google::Cloud::Dlp::V2::Value]
1538
+ # @return [::Google::Cloud::Dlp::V2::Value]
1512
1539
  # A value contained in the field in question.
1513
1540
  # @!attribute [rw] count
1514
- # @return [Integer]
1541
+ # @return [::Integer]
1515
1542
  # How many times the value is contained in the field.
1516
1543
  class ValueFrequency
1517
- include Google::Protobuf::MessageExts
1518
- extend Google::Protobuf::MessageExts::ClassMethods
1544
+ include ::Google::Protobuf::MessageExts
1545
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1519
1546
  end
1520
1547
 
1521
1548
  # Set of primitive values supported by the system.
@@ -1525,90 +1552,90 @@ module Google
1525
1552
  # 123456789, the number of bytes would be counted as 9, even though an
1526
1553
  # int64 only holds up to 8 bytes of data.
1527
1554
  # @!attribute [rw] integer_value
1528
- # @return [Integer]
1555
+ # @return [::Integer]
1529
1556
  # integer
1530
1557
  # @!attribute [rw] float_value
1531
- # @return [Float]
1558
+ # @return [::Float]
1532
1559
  # float
1533
1560
  # @!attribute [rw] string_value
1534
- # @return [String]
1561
+ # @return [::String]
1535
1562
  # string
1536
1563
  # @!attribute [rw] boolean_value
1537
- # @return [Boolean]
1564
+ # @return [::Boolean]
1538
1565
  # boolean
1539
1566
  # @!attribute [rw] timestamp_value
1540
- # @return [Google::Protobuf::Timestamp]
1567
+ # @return [::Google::Protobuf::Timestamp]
1541
1568
  # timestamp
1542
1569
  # @!attribute [rw] time_value
1543
- # @return [Google::Type::TimeOfDay]
1570
+ # @return [::Google::Type::TimeOfDay]
1544
1571
  # time of day
1545
1572
  # @!attribute [rw] date_value
1546
- # @return [Google::Type::Date]
1573
+ # @return [::Google::Type::Date]
1547
1574
  # date
1548
1575
  # @!attribute [rw] day_of_week_value
1549
- # @return [Google::Type::DayOfWeek]
1576
+ # @return [::Google::Type::DayOfWeek]
1550
1577
  # day of week
1551
1578
  class Value
1552
- include Google::Protobuf::MessageExts
1553
- extend Google::Protobuf::MessageExts::ClassMethods
1579
+ include ::Google::Protobuf::MessageExts
1580
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1554
1581
  end
1555
1582
 
1556
1583
  # Message for infoType-dependent details parsed from quote.
1557
1584
  # @!attribute [rw] date_time
1558
- # @return [Google::Cloud::Dlp::V2::DateTime]
1585
+ # @return [::Google::Cloud::Dlp::V2::DateTime]
1559
1586
  # The date time indicated by the quote.
1560
1587
  class QuoteInfo
1561
- include Google::Protobuf::MessageExts
1562
- extend Google::Protobuf::MessageExts::ClassMethods
1588
+ include ::Google::Protobuf::MessageExts
1589
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1563
1590
  end
1564
1591
 
1565
1592
  # Message for a date time object.
1566
1593
  # e.g. 2018-01-01, 5th August.
1567
1594
  # @!attribute [rw] date
1568
- # @return [Google::Type::Date]
1595
+ # @return [::Google::Type::Date]
1569
1596
  # One or more of the following must be set.
1570
1597
  # Must be a valid date or time value.
1571
1598
  # @!attribute [rw] day_of_week
1572
- # @return [Google::Type::DayOfWeek]
1599
+ # @return [::Google::Type::DayOfWeek]
1573
1600
  # Day of week
1574
1601
  # @!attribute [rw] time
1575
- # @return [Google::Type::TimeOfDay]
1602
+ # @return [::Google::Type::TimeOfDay]
1576
1603
  # Time of day
1577
1604
  # @!attribute [rw] time_zone
1578
- # @return [Google::Cloud::Dlp::V2::DateTime::TimeZone]
1605
+ # @return [::Google::Cloud::Dlp::V2::DateTime::TimeZone]
1579
1606
  # Time zone
1580
1607
  class DateTime
1581
- include Google::Protobuf::MessageExts
1582
- extend Google::Protobuf::MessageExts::ClassMethods
1608
+ include ::Google::Protobuf::MessageExts
1609
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1583
1610
 
1584
1611
  # Time zone of the date time object.
1585
1612
  # @!attribute [rw] offset_minutes
1586
- # @return [Integer]
1613
+ # @return [::Integer]
1587
1614
  # Set only if the offset can be determined. Positive for time ahead of UTC.
1588
1615
  # E.g. For "UTC-9", this value is -540.
1589
1616
  class TimeZone
1590
- include Google::Protobuf::MessageExts
1591
- extend Google::Protobuf::MessageExts::ClassMethods
1617
+ include ::Google::Protobuf::MessageExts
1618
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1592
1619
  end
1593
1620
  end
1594
1621
 
1595
1622
  # The configuration that controls how the data will change.
1596
1623
  # @!attribute [rw] info_type_transformations
1597
- # @return [Google::Cloud::Dlp::V2::InfoTypeTransformations]
1624
+ # @return [::Google::Cloud::Dlp::V2::InfoTypeTransformations]
1598
1625
  # Treat the dataset as free-form text and apply the same free text
1599
1626
  # transformation everywhere.
1600
1627
  # @!attribute [rw] record_transformations
1601
- # @return [Google::Cloud::Dlp::V2::RecordTransformations]
1628
+ # @return [::Google::Cloud::Dlp::V2::RecordTransformations]
1602
1629
  # Treat the dataset as structured. Transformations can be applied to
1603
1630
  # specific locations within structured datasets, such as transforming
1604
1631
  # a column within a table.
1605
1632
  # @!attribute [rw] transformation_error_handling
1606
- # @return [Google::Cloud::Dlp::V2::TransformationErrorHandling]
1633
+ # @return [::Google::Cloud::Dlp::V2::TransformationErrorHandling]
1607
1634
  # Mode for handling transformation errors. If left unspecified, the default
1608
1635
  # mode is `TransformationErrorHandling.ThrowError`.
1609
1636
  class DeidentifyConfig
1610
- include Google::Protobuf::MessageExts
1611
- extend Google::Protobuf::MessageExts::ClassMethods
1637
+ include ::Google::Protobuf::MessageExts
1638
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1612
1639
  end
1613
1640
 
1614
1641
  # How to handle transformation errors during de-identification. A
@@ -1620,19 +1647,19 @@ module Google
1620
1647
  # handled, is returned in the response as part of the
1621
1648
  # `TransformationOverviews`.
1622
1649
  # @!attribute [rw] throw_error
1623
- # @return [Google::Cloud::Dlp::V2::TransformationErrorHandling::ThrowError]
1650
+ # @return [::Google::Cloud::Dlp::V2::TransformationErrorHandling::ThrowError]
1624
1651
  # Throw an error
1625
1652
  # @!attribute [rw] leave_untransformed
1626
- # @return [Google::Cloud::Dlp::V2::TransformationErrorHandling::LeaveUntransformed]
1653
+ # @return [::Google::Cloud::Dlp::V2::TransformationErrorHandling::LeaveUntransformed]
1627
1654
  # Ignore errors
1628
1655
  class TransformationErrorHandling
1629
- include Google::Protobuf::MessageExts
1630
- extend Google::Protobuf::MessageExts::ClassMethods
1656
+ include ::Google::Protobuf::MessageExts
1657
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1631
1658
 
1632
1659
  # Throw an error and fail the request when a transformation error occurs.
1633
1660
  class ThrowError
1634
- include Google::Protobuf::MessageExts
1635
- extend Google::Protobuf::MessageExts::ClassMethods
1661
+ include ::Google::Protobuf::MessageExts
1662
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1636
1663
  end
1637
1664
 
1638
1665
  # Skips the data without modifying it if the requested transformation would
@@ -1640,58 +1667,58 @@ module Google
1640
1667
  # an an IP address, this mode would leave the IP address unchanged in the
1641
1668
  # response.
1642
1669
  class LeaveUntransformed
1643
- include Google::Protobuf::MessageExts
1644
- extend Google::Protobuf::MessageExts::ClassMethods
1670
+ include ::Google::Protobuf::MessageExts
1671
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1645
1672
  end
1646
1673
  end
1647
1674
 
1648
1675
  # A rule for transforming a value.
1649
1676
  # @!attribute [rw] replace_config
1650
- # @return [Google::Cloud::Dlp::V2::ReplaceValueConfig]
1677
+ # @return [::Google::Cloud::Dlp::V2::ReplaceValueConfig]
1651
1678
  # Replace
1652
1679
  # @!attribute [rw] redact_config
1653
- # @return [Google::Cloud::Dlp::V2::RedactConfig]
1680
+ # @return [::Google::Cloud::Dlp::V2::RedactConfig]
1654
1681
  # Redact
1655
1682
  # @!attribute [rw] character_mask_config
1656
- # @return [Google::Cloud::Dlp::V2::CharacterMaskConfig]
1683
+ # @return [::Google::Cloud::Dlp::V2::CharacterMaskConfig]
1657
1684
  # Mask
1658
1685
  # @!attribute [rw] crypto_replace_ffx_fpe_config
1659
- # @return [Google::Cloud::Dlp::V2::CryptoReplaceFfxFpeConfig]
1686
+ # @return [::Google::Cloud::Dlp::V2::CryptoReplaceFfxFpeConfig]
1660
1687
  # Ffx-Fpe
1661
1688
  # @!attribute [rw] fixed_size_bucketing_config
1662
- # @return [Google::Cloud::Dlp::V2::FixedSizeBucketingConfig]
1689
+ # @return [::Google::Cloud::Dlp::V2::FixedSizeBucketingConfig]
1663
1690
  # Fixed size bucketing
1664
1691
  # @!attribute [rw] bucketing_config
1665
- # @return [Google::Cloud::Dlp::V2::BucketingConfig]
1692
+ # @return [::Google::Cloud::Dlp::V2::BucketingConfig]
1666
1693
  # Bucketing
1667
1694
  # @!attribute [rw] replace_with_info_type_config
1668
- # @return [Google::Cloud::Dlp::V2::ReplaceWithInfoTypeConfig]
1695
+ # @return [::Google::Cloud::Dlp::V2::ReplaceWithInfoTypeConfig]
1669
1696
  # Replace with infotype
1670
1697
  # @!attribute [rw] time_part_config
1671
- # @return [Google::Cloud::Dlp::V2::TimePartConfig]
1698
+ # @return [::Google::Cloud::Dlp::V2::TimePartConfig]
1672
1699
  # Time extraction
1673
1700
  # @!attribute [rw] crypto_hash_config
1674
- # @return [Google::Cloud::Dlp::V2::CryptoHashConfig]
1701
+ # @return [::Google::Cloud::Dlp::V2::CryptoHashConfig]
1675
1702
  # Crypto
1676
1703
  # @!attribute [rw] date_shift_config
1677
- # @return [Google::Cloud::Dlp::V2::DateShiftConfig]
1704
+ # @return [::Google::Cloud::Dlp::V2::DateShiftConfig]
1678
1705
  # Date Shift
1679
1706
  # @!attribute [rw] crypto_deterministic_config
1680
- # @return [Google::Cloud::Dlp::V2::CryptoDeterministicConfig]
1707
+ # @return [::Google::Cloud::Dlp::V2::CryptoDeterministicConfig]
1681
1708
  # Deterministic Crypto
1682
1709
  class PrimitiveTransformation
1683
- include Google::Protobuf::MessageExts
1684
- extend Google::Protobuf::MessageExts::ClassMethods
1710
+ include ::Google::Protobuf::MessageExts
1711
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1685
1712
  end
1686
1713
 
1687
1714
  # For use with `Date`, `Timestamp`, and `TimeOfDay`, extract or preserve a
1688
1715
  # portion of the value.
1689
1716
  # @!attribute [rw] part_to_extract
1690
- # @return [Google::Cloud::Dlp::V2::TimePartConfig::TimePart]
1717
+ # @return [::Google::Cloud::Dlp::V2::TimePartConfig::TimePart]
1691
1718
  # The part of the time to keep.
1692
1719
  class TimePartConfig
1693
- include Google::Protobuf::MessageExts
1694
- extend Google::Protobuf::MessageExts::ClassMethods
1720
+ include ::Google::Protobuf::MessageExts
1721
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1695
1722
 
1696
1723
  # Components that make up time.
1697
1724
  module TimePart
@@ -1726,21 +1753,21 @@ module Google
1726
1753
  # Currently, only string and integer values can be hashed.
1727
1754
  # See https://cloud.google.com/dlp/docs/pseudonymization to learn more.
1728
1755
  # @!attribute [rw] crypto_key
1729
- # @return [Google::Cloud::Dlp::V2::CryptoKey]
1756
+ # @return [::Google::Cloud::Dlp::V2::CryptoKey]
1730
1757
  # The key used by the hash function.
1731
1758
  class CryptoHashConfig
1732
- include Google::Protobuf::MessageExts
1733
- extend Google::Protobuf::MessageExts::ClassMethods
1759
+ include ::Google::Protobuf::MessageExts
1760
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1734
1761
  end
1735
1762
 
1736
1763
  # Pseudonymization method that generates deterministic encryption for the given
1737
1764
  # input. Outputs a base64 encoded representation of the encrypted output.
1738
1765
  # Uses AES-SIV based on the RFC https://tools.ietf.org/html/rfc5297.
1739
1766
  # @!attribute [rw] crypto_key
1740
- # @return [Google::Cloud::Dlp::V2::CryptoKey]
1767
+ # @return [::Google::Cloud::Dlp::V2::CryptoKey]
1741
1768
  # The key used by the encryption function.
1742
1769
  # @!attribute [rw] surrogate_info_type
1743
- # @return [Google::Cloud::Dlp::V2::InfoType]
1770
+ # @return [::Google::Cloud::Dlp::V2::InfoType]
1744
1771
  # The custom info type to annotate the surrogate with.
1745
1772
  # This annotation will be applied to the surrogate by prefixing it with
1746
1773
  # the name of the custom info type followed by the number of
@@ -1774,7 +1801,7 @@ module Google
1774
1801
  # the symbol with the hex code point 29DD might be used like so:
1775
1802
  # ⧝MY_TOKEN_TYPE.
1776
1803
  # @!attribute [rw] context
1777
- # @return [Google::Cloud::Dlp::V2::FieldId]
1804
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
1778
1805
  # A context may be used for higher security and maintaining
1779
1806
  # referential integrity such that the same identifier in two different
1780
1807
  # contexts will be given a distinct surrogate. The context is appended to
@@ -1794,45 +1821,45 @@ module Google
1794
1821
  # Note that case (1) is expected when an `InfoTypeTransformation` is
1795
1822
  # applied to both structured and non-structured `ContentItem`s.
1796
1823
  class CryptoDeterministicConfig
1797
- include Google::Protobuf::MessageExts
1798
- extend Google::Protobuf::MessageExts::ClassMethods
1824
+ include ::Google::Protobuf::MessageExts
1825
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1799
1826
  end
1800
1827
 
1801
1828
  # Replace each input value with a given `Value`.
1802
1829
  # @!attribute [rw] new_value
1803
- # @return [Google::Cloud::Dlp::V2::Value]
1830
+ # @return [::Google::Cloud::Dlp::V2::Value]
1804
1831
  # Value to replace it with.
1805
1832
  class ReplaceValueConfig
1806
- include Google::Protobuf::MessageExts
1807
- extend Google::Protobuf::MessageExts::ClassMethods
1833
+ include ::Google::Protobuf::MessageExts
1834
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1808
1835
  end
1809
1836
 
1810
1837
  # Replace each matching finding with the name of the info_type.
1811
1838
  class ReplaceWithInfoTypeConfig
1812
- include Google::Protobuf::MessageExts
1813
- extend Google::Protobuf::MessageExts::ClassMethods
1839
+ include ::Google::Protobuf::MessageExts
1840
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1814
1841
  end
1815
1842
 
1816
1843
  # Redact a given value. For example, if used with an `InfoTypeTransformation`
1817
1844
  # transforming PHONE_NUMBER, and input 'My phone number is 206-555-0123', the
1818
1845
  # output would be 'My phone number is '.
1819
1846
  class RedactConfig
1820
- include Google::Protobuf::MessageExts
1821
- extend Google::Protobuf::MessageExts::ClassMethods
1847
+ include ::Google::Protobuf::MessageExts
1848
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1822
1849
  end
1823
1850
 
1824
1851
  # Characters to skip when doing deidentification of a value. These will be left
1825
1852
  # alone and skipped.
1826
1853
  # @!attribute [rw] characters_to_skip
1827
- # @return [String]
1854
+ # @return [::String]
1828
1855
  # Characters to not transform when masking.
1829
1856
  # @!attribute [rw] common_characters_to_ignore
1830
- # @return [Google::Cloud::Dlp::V2::CharsToIgnore::CommonCharsToIgnore]
1857
+ # @return [::Google::Cloud::Dlp::V2::CharsToIgnore::CommonCharsToIgnore]
1831
1858
  # Common characters to not transform when masking. Useful to avoid removing
1832
1859
  # punctuation.
1833
1860
  class CharsToIgnore
1834
- include Google::Protobuf::MessageExts
1835
- extend Google::Protobuf::MessageExts::ClassMethods
1861
+ include ::Google::Protobuf::MessageExts
1862
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1836
1863
 
1837
1864
  # Convenience enum for indication common characters to not transform.
1838
1865
  module CommonCharsToIgnore
@@ -1863,31 +1890,31 @@ module Google
1863
1890
  # type. (This allows you to take a long like 123 and modify it to a string like
1864
1891
  # **3.
1865
1892
  # @!attribute [rw] masking_character
1866
- # @return [String]
1893
+ # @return [::String]
1867
1894
  # Character to use to mask the sensitive values&mdash;for example, `*` for an
1868
1895
  # alphabetic string such as a name, or `0` for a numeric string such as ZIP
1869
1896
  # code or credit card number. This string must have a length of 1. If not
1870
1897
  # supplied, this value defaults to `*` for strings, and `0` for digits.
1871
1898
  # @!attribute [rw] number_to_mask
1872
- # @return [Integer]
1899
+ # @return [::Integer]
1873
1900
  # Number of characters to mask. If not set, all matching chars will be
1874
1901
  # masked. Skipped characters do not count towards this tally.
1875
1902
  # @!attribute [rw] reverse_order
1876
- # @return [Boolean]
1903
+ # @return [::Boolean]
1877
1904
  # Mask characters in reverse order. For example, if `masking_character` is
1878
1905
  # `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the
1879
1906
  # input string `1234-5678-9012-3456` is masked as `00000000000000-3456`.
1880
1907
  # If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order`
1881
1908
  # is `true`, then the string `12345` is masked as `12***`.
1882
1909
  # @!attribute [rw] characters_to_ignore
1883
- # @return [Array<Google::Cloud::Dlp::V2::CharsToIgnore>]
1910
+ # @return [::Array<::Google::Cloud::Dlp::V2::CharsToIgnore>]
1884
1911
  # When masking a string, items in this list will be skipped when replacing
1885
1912
  # characters. For example, if the input string is `555-555-5555` and you
1886
1913
  # instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP
1887
1914
  # returns `***-**5-5555`.
1888
1915
  class CharacterMaskConfig
1889
- include Google::Protobuf::MessageExts
1890
- extend Google::Protobuf::MessageExts::ClassMethods
1916
+ include ::Google::Protobuf::MessageExts
1917
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1891
1918
  end
1892
1919
 
1893
1920
  # Buckets values based on fixed size ranges. The
@@ -1907,24 +1934,24 @@ module Google
1907
1934
  #
1908
1935
  # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
1909
1936
  # @!attribute [rw] lower_bound
1910
- # @return [Google::Cloud::Dlp::V2::Value]
1937
+ # @return [::Google::Cloud::Dlp::V2::Value]
1911
1938
  # Required. Lower bound value of buckets. All values less than `lower_bound`
1912
1939
  # are grouped together into a single bucket; for example if `lower_bound` =
1913
1940
  # 10, then all values less than 10 are replaced with the value “-10”.
1914
1941
  # @!attribute [rw] upper_bound
1915
- # @return [Google::Cloud::Dlp::V2::Value]
1942
+ # @return [::Google::Cloud::Dlp::V2::Value]
1916
1943
  # Required. Upper bound value of buckets. All values greater than upper_bound
1917
1944
  # are grouped together into a single bucket; for example if `upper_bound` =
1918
1945
  # 89, then all values greater than 89 are replaced with the value “89+”.
1919
1946
  # @!attribute [rw] bucket_size
1920
- # @return [Float]
1947
+ # @return [::Float]
1921
1948
  # Required. Size of each bucket (except for minimum and maximum buckets). So
1922
1949
  # if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the
1923
1950
  # following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60,
1924
1951
  # 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works.
1925
1952
  class FixedSizeBucketingConfig
1926
- include Google::Protobuf::MessageExts
1927
- extend Google::Protobuf::MessageExts::ClassMethods
1953
+ include ::Google::Protobuf::MessageExts
1954
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1928
1955
  end
1929
1956
 
1930
1957
  # Generalization function that buckets values based on ranges. The ranges and
@@ -1937,27 +1964,27 @@ module Google
1937
1964
  # the type of the bound before comparing.
1938
1965
  # See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more.
1939
1966
  # @!attribute [rw] buckets
1940
- # @return [Array<Google::Cloud::Dlp::V2::BucketingConfig::Bucket>]
1967
+ # @return [::Array<::Google::Cloud::Dlp::V2::BucketingConfig::Bucket>]
1941
1968
  # Set of buckets. Ranges must be non-overlapping.
1942
1969
  class BucketingConfig
1943
- include Google::Protobuf::MessageExts
1944
- extend Google::Protobuf::MessageExts::ClassMethods
1970
+ include ::Google::Protobuf::MessageExts
1971
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1945
1972
 
1946
1973
  # Bucket is represented as a range, along with replacement values.
1947
1974
  # @!attribute [rw] min
1948
- # @return [Google::Cloud::Dlp::V2::Value]
1975
+ # @return [::Google::Cloud::Dlp::V2::Value]
1949
1976
  # Lower bound of the range, inclusive. Type should be the same as max if
1950
1977
  # used.
1951
1978
  # @!attribute [rw] max
1952
- # @return [Google::Cloud::Dlp::V2::Value]
1979
+ # @return [::Google::Cloud::Dlp::V2::Value]
1953
1980
  # Upper bound of the range, exclusive; type must match min.
1954
1981
  # @!attribute [rw] replacement_value
1955
- # @return [Google::Cloud::Dlp::V2::Value]
1982
+ # @return [::Google::Cloud::Dlp::V2::Value]
1956
1983
  # Replacement value for this bucket. If not provided
1957
1984
  # the default behavior will be to hyphenate the min-max range.
1958
1985
  class Bucket
1959
- include Google::Protobuf::MessageExts
1960
- extend Google::Protobuf::MessageExts::ClassMethods
1986
+ include ::Google::Protobuf::MessageExts
1987
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1961
1988
  end
1962
1989
  end
1963
1990
 
@@ -1975,10 +2002,10 @@ module Google
1975
2002
  # do not require preserving the input alphabet space and size, plus warrant
1976
2003
  # referential integrity.
1977
2004
  # @!attribute [rw] crypto_key
1978
- # @return [Google::Cloud::Dlp::V2::CryptoKey]
2005
+ # @return [::Google::Cloud::Dlp::V2::CryptoKey]
1979
2006
  # Required. The key used by the encryption algorithm.
1980
2007
  # @!attribute [rw] context
1981
- # @return [Google::Cloud::Dlp::V2::FieldId]
2008
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
1982
2009
  # The 'tweak', a context may be used for higher security since the same
1983
2010
  # identifier in two different contexts won't be given the same surrogate. If
1984
2011
  # the context is not set, a default tweak will be used.
@@ -2000,10 +2027,10 @@ module Google
2000
2027
  # - a 64 bit integer is encoded followed by a single byte of value 1
2001
2028
  # - a string is encoded in UTF-8 format followed by a single byte of value 2
2002
2029
  # @!attribute [rw] common_alphabet
2003
- # @return [Google::Cloud::Dlp::V2::CryptoReplaceFfxFpeConfig::FfxCommonNativeAlphabet]
2030
+ # @return [::Google::Cloud::Dlp::V2::CryptoReplaceFfxFpeConfig::FfxCommonNativeAlphabet]
2004
2031
  # Common alphabets.
2005
2032
  # @!attribute [rw] custom_alphabet
2006
- # @return [String]
2033
+ # @return [::String]
2007
2034
  # This is supported by mapping these to the alphanumeric characters
2008
2035
  # that the FFX mode natively supports. This happens before/after
2009
2036
  # encryption/decryption.
@@ -2012,10 +2039,10 @@ module Google
2012
2039
  # This must be encoded as ASCII.
2013
2040
  # The order of characters does not matter.
2014
2041
  # @!attribute [rw] radix
2015
- # @return [Integer]
2042
+ # @return [::Integer]
2016
2043
  # The native way to select the alphabet. Must be in the range [2, 95].
2017
2044
  # @!attribute [rw] surrogate_info_type
2018
- # @return [Google::Cloud::Dlp::V2::InfoType]
2045
+ # @return [::Google::Cloud::Dlp::V2::InfoType]
2019
2046
  # The custom infoType to annotate the surrogate with.
2020
2047
  # This annotation will be applied to the surrogate by prefixing it with
2021
2048
  # the name of the custom infoType followed by the number of
@@ -2028,7 +2055,7 @@ module Google
2028
2055
  #
2029
2056
  # This annotation identifies the surrogate when inspecting content using the
2030
2057
  # custom infoType
2031
- # [`SurrogateType`](/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
2058
+ # [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype).
2032
2059
  # This facilitates reversal of the surrogate when it occurs in free text.
2033
2060
  #
2034
2061
  # In order for inspection to work properly, the name of this infoType must
@@ -2042,8 +2069,8 @@ module Google
2042
2069
  # the symbol with the hex code point 29DD might be used like so:
2043
2070
  # ⧝MY_TOKEN_TYPE
2044
2071
  class CryptoReplaceFfxFpeConfig
2045
- include Google::Protobuf::MessageExts
2046
- extend Google::Protobuf::MessageExts::ClassMethods
2072
+ include ::Google::Protobuf::MessageExts
2073
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2047
2074
 
2048
2075
  # These are commonly used subsets of the alphabet that the FFX mode
2049
2076
  # natively supports. In the algorithm, the alphabet is selected using
@@ -2052,16 +2079,16 @@ module Google
2052
2079
  # Unused.
2053
2080
  FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED = 0
2054
2081
 
2055
- # [0-9] (radix of 10)
2082
+ # `[0-9]` (radix of 10)
2056
2083
  NUMERIC = 1
2057
2084
 
2058
- # [0-9A-F] (radix of 16)
2085
+ # `[0-9A-F]` (radix of 16)
2059
2086
  HEXADECIMAL = 2
2060
2087
 
2061
- # [0-9A-Z] (radix of 36)
2088
+ # `[0-9A-Z]` (radix of 36)
2062
2089
  UPPER_CASE_ALPHA_NUMERIC = 3
2063
2090
 
2064
- # [0-9A-Za-z] (radix of 62)
2091
+ # `[0-9A-Za-z]` (radix of 62)
2065
2092
  ALPHA_NUMERIC = 4
2066
2093
  end
2067
2094
  end
@@ -2072,23 +2099,23 @@ module Google
2072
2099
  # IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot
2073
2100
  # unwrap the data crypto key.
2074
2101
  # @!attribute [rw] transient
2075
- # @return [Google::Cloud::Dlp::V2::TransientCryptoKey]
2102
+ # @return [::Google::Cloud::Dlp::V2::TransientCryptoKey]
2076
2103
  # Transient crypto key
2077
2104
  # @!attribute [rw] unwrapped
2078
- # @return [Google::Cloud::Dlp::V2::UnwrappedCryptoKey]
2105
+ # @return [::Google::Cloud::Dlp::V2::UnwrappedCryptoKey]
2079
2106
  # Unwrapped crypto key
2080
2107
  # @!attribute [rw] kms_wrapped
2081
- # @return [Google::Cloud::Dlp::V2::KmsWrappedCryptoKey]
2108
+ # @return [::Google::Cloud::Dlp::V2::KmsWrappedCryptoKey]
2082
2109
  # Kms wrapped key
2083
2110
  class CryptoKey
2084
- include Google::Protobuf::MessageExts
2085
- extend Google::Protobuf::MessageExts::ClassMethods
2111
+ include ::Google::Protobuf::MessageExts
2112
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2086
2113
  end
2087
2114
 
2088
2115
  # Use this to have a random data crypto key generated.
2089
2116
  # It will be discarded after the request finishes.
2090
2117
  # @!attribute [rw] name
2091
- # @return [String]
2118
+ # @return [::String]
2092
2119
  # Required. Name of the key.
2093
2120
  # This is an arbitrary string used to differentiate different keys.
2094
2121
  # A unique key is generated per name: two separate `TransientCryptoKey`
@@ -2096,18 +2123,18 @@ module Google
2096
2123
  # When the data crypto key is generated, this name is not used in any way
2097
2124
  # (repeating the api call will result in a different key being generated).
2098
2125
  class TransientCryptoKey
2099
- include Google::Protobuf::MessageExts
2100
- extend Google::Protobuf::MessageExts::ClassMethods
2126
+ include ::Google::Protobuf::MessageExts
2127
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2101
2128
  end
2102
2129
 
2103
2130
  # Using raw keys is prone to security risks due to accidentally
2104
2131
  # leaking the key. Choose another type of key if possible.
2105
2132
  # @!attribute [rw] key
2106
- # @return [String]
2133
+ # @return [::String]
2107
2134
  # Required. A 128/192/256 bit key.
2108
2135
  class UnwrappedCryptoKey
2109
- include Google::Protobuf::MessageExts
2110
- extend Google::Protobuf::MessageExts::ClassMethods
2136
+ include ::Google::Protobuf::MessageExts
2137
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2111
2138
  end
2112
2139
 
2113
2140
  # Include to use an existing data crypto key wrapped by KMS.
@@ -2116,43 +2143,43 @@ module Google
2116
2143
  # to perform a crypto transformation using a kms-wrapped crypto key:
2117
2144
  # dlp.kms.encrypt
2118
2145
  # @!attribute [rw] wrapped_key
2119
- # @return [String]
2146
+ # @return [::String]
2120
2147
  # Required. The wrapped data crypto key.
2121
2148
  # @!attribute [rw] crypto_key_name
2122
- # @return [String]
2149
+ # @return [::String]
2123
2150
  # Required. The resource name of the KMS CryptoKey to use for unwrapping.
2124
2151
  class KmsWrappedCryptoKey
2125
- include Google::Protobuf::MessageExts
2126
- extend Google::Protobuf::MessageExts::ClassMethods
2152
+ include ::Google::Protobuf::MessageExts
2153
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2127
2154
  end
2128
2155
 
2129
2156
  # Shifts dates by random number of days, with option to be consistent for the
2130
2157
  # same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
2131
2158
  # to learn more.
2132
2159
  # @!attribute [rw] upper_bound_days
2133
- # @return [Integer]
2160
+ # @return [::Integer]
2134
2161
  # Required. Range of shift in days. Actual shift will be selected at random
2135
2162
  # within this range (inclusive ends). Negative means shift to earlier in
2136
2163
  # time. Must not be more than 365250 days (1000 years) each direction.
2137
2164
  #
2138
2165
  # For example, 3 means shift date to at most 3 days into the future.
2139
2166
  # @!attribute [rw] lower_bound_days
2140
- # @return [Integer]
2167
+ # @return [::Integer]
2141
2168
  # Required. For example, -5 means shift date to at most 5 days back in the
2142
2169
  # past.
2143
2170
  # @!attribute [rw] context
2144
- # @return [Google::Cloud::Dlp::V2::FieldId]
2171
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
2145
2172
  # Points to the field that contains the context, for example, an entity id.
2146
2173
  # If set, must also set cryptoKey. If set, shift will be consistent for the
2147
2174
  # given context.
2148
2175
  # @!attribute [rw] crypto_key
2149
- # @return [Google::Cloud::Dlp::V2::CryptoKey]
2176
+ # @return [::Google::Cloud::Dlp::V2::CryptoKey]
2150
2177
  # Causes the shift to be computed based on this key and the context. This
2151
2178
  # results in the same shift for the same context and crypto_key. If
2152
2179
  # set, must also set context. Can only be applied to table items.
2153
2180
  class DateShiftConfig
2154
- include Google::Protobuf::MessageExts
2155
- extend Google::Protobuf::MessageExts::ClassMethods
2181
+ include ::Google::Protobuf::MessageExts
2182
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2156
2183
  end
2157
2184
 
2158
2185
  # A type of transformation that will scan unstructured text and
@@ -2160,35 +2187,35 @@ module Google
2160
2187
  # transformation is applied to only values that were identified as a specific
2161
2188
  # info_type.
2162
2189
  # @!attribute [rw] transformations
2163
- # @return [Array<Google::Cloud::Dlp::V2::InfoTypeTransformations::InfoTypeTransformation>]
2190
+ # @return [::Array<::Google::Cloud::Dlp::V2::InfoTypeTransformations::InfoTypeTransformation>]
2164
2191
  # Required. Transformation for each infoType. Cannot specify more than one
2165
2192
  # for a given infoType.
2166
2193
  class InfoTypeTransformations
2167
- include Google::Protobuf::MessageExts
2168
- extend Google::Protobuf::MessageExts::ClassMethods
2194
+ include ::Google::Protobuf::MessageExts
2195
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2169
2196
 
2170
2197
  # A transformation to apply to text that is identified as a specific
2171
2198
  # info_type.
2172
2199
  # @!attribute [rw] info_types
2173
- # @return [Array<Google::Cloud::Dlp::V2::InfoType>]
2200
+ # @return [::Array<::Google::Cloud::Dlp::V2::InfoType>]
2174
2201
  # InfoTypes to apply the transformation to. An empty list will cause
2175
2202
  # this transformation to apply to all findings that correspond to
2176
2203
  # infoTypes that were requested in `InspectConfig`.
2177
2204
  # @!attribute [rw] primitive_transformation
2178
- # @return [Google::Cloud::Dlp::V2::PrimitiveTransformation]
2205
+ # @return [::Google::Cloud::Dlp::V2::PrimitiveTransformation]
2179
2206
  # Required. Primitive transformation to apply to the infoType.
2180
2207
  class InfoTypeTransformation
2181
- include Google::Protobuf::MessageExts
2182
- extend Google::Protobuf::MessageExts::ClassMethods
2208
+ include ::Google::Protobuf::MessageExts
2209
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2183
2210
  end
2184
2211
  end
2185
2212
 
2186
2213
  # The transformation to apply to the field.
2187
2214
  # @!attribute [rw] fields
2188
- # @return [Array<Google::Cloud::Dlp::V2::FieldId>]
2215
+ # @return [::Array<::Google::Cloud::Dlp::V2::FieldId>]
2189
2216
  # Required. Input field(s) to apply the transformation to.
2190
2217
  # @!attribute [rw] condition
2191
- # @return [Google::Cloud::Dlp::V2::RecordCondition]
2218
+ # @return [::Google::Cloud::Dlp::V2::RecordCondition]
2192
2219
  # Only apply the transformation if the condition evaluates to true for the
2193
2220
  # given `RecordCondition`. The conditions are allowed to reference fields
2194
2221
  # that are not used in the actual transformation.
@@ -2199,50 +2226,50 @@ module Google
2199
2226
  # column for the same record is within a specific range.
2200
2227
  # - Redact a field if the date of birth field is greater than 85.
2201
2228
  # @!attribute [rw] primitive_transformation
2202
- # @return [Google::Cloud::Dlp::V2::PrimitiveTransformation]
2229
+ # @return [::Google::Cloud::Dlp::V2::PrimitiveTransformation]
2203
2230
  # Apply the transformation to the entire field.
2204
2231
  # @!attribute [rw] info_type_transformations
2205
- # @return [Google::Cloud::Dlp::V2::InfoTypeTransformations]
2232
+ # @return [::Google::Cloud::Dlp::V2::InfoTypeTransformations]
2206
2233
  # Treat the contents of the field as free text, and selectively
2207
2234
  # transform content that matches an `InfoType`.
2208
2235
  class FieldTransformation
2209
- include Google::Protobuf::MessageExts
2210
- extend Google::Protobuf::MessageExts::ClassMethods
2236
+ include ::Google::Protobuf::MessageExts
2237
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2211
2238
  end
2212
2239
 
2213
2240
  # A type of transformation that is applied over structured data such as a
2214
2241
  # table.
2215
2242
  # @!attribute [rw] field_transformations
2216
- # @return [Array<Google::Cloud::Dlp::V2::FieldTransformation>]
2243
+ # @return [::Array<::Google::Cloud::Dlp::V2::FieldTransformation>]
2217
2244
  # Transform the record by applying various field transformations.
2218
2245
  # @!attribute [rw] record_suppressions
2219
- # @return [Array<Google::Cloud::Dlp::V2::RecordSuppression>]
2246
+ # @return [::Array<::Google::Cloud::Dlp::V2::RecordSuppression>]
2220
2247
  # Configuration defining which records get suppressed entirely. Records that
2221
2248
  # match any suppression rule are omitted from the output.
2222
2249
  class RecordTransformations
2223
- include Google::Protobuf::MessageExts
2224
- extend Google::Protobuf::MessageExts::ClassMethods
2250
+ include ::Google::Protobuf::MessageExts
2251
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2225
2252
  end
2226
2253
 
2227
2254
  # Configuration to suppress records whose suppression conditions evaluate to
2228
2255
  # true.
2229
2256
  # @!attribute [rw] condition
2230
- # @return [Google::Cloud::Dlp::V2::RecordCondition]
2257
+ # @return [::Google::Cloud::Dlp::V2::RecordCondition]
2231
2258
  # A condition that when it evaluates to true will result in the record being
2232
2259
  # evaluated to be suppressed from the transformed content.
2233
2260
  class RecordSuppression
2234
- include Google::Protobuf::MessageExts
2235
- extend Google::Protobuf::MessageExts::ClassMethods
2261
+ include ::Google::Protobuf::MessageExts
2262
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2236
2263
  end
2237
2264
 
2238
2265
  # A condition for determining whether a transformation should be applied to
2239
2266
  # a field.
2240
2267
  # @!attribute [rw] expressions
2241
- # @return [Google::Cloud::Dlp::V2::RecordCondition::Expressions]
2268
+ # @return [::Google::Cloud::Dlp::V2::RecordCondition::Expressions]
2242
2269
  # An expression.
2243
2270
  class RecordCondition
2244
- include Google::Protobuf::MessageExts
2245
- extend Google::Protobuf::MessageExts::ClassMethods
2271
+ include ::Google::Protobuf::MessageExts
2272
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2246
2273
 
2247
2274
  # The field type of `value` and `field` do not need to match to be
2248
2275
  # considered equal, but not all comparisons are possible.
@@ -2264,39 +2291,39 @@ module Google
2264
2291
  # If we fail to compare do to type mismatch, a warning will be given and
2265
2292
  # the condition will evaluate to false.
2266
2293
  # @!attribute [rw] field
2267
- # @return [Google::Cloud::Dlp::V2::FieldId]
2294
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
2268
2295
  # Required. Field within the record this condition is evaluated against.
2269
2296
  # @!attribute [rw] operator
2270
- # @return [Google::Cloud::Dlp::V2::RelationalOperator]
2297
+ # @return [::Google::Cloud::Dlp::V2::RelationalOperator]
2271
2298
  # Required. Operator used to compare the field or infoType to the value.
2272
2299
  # @!attribute [rw] value
2273
- # @return [Google::Cloud::Dlp::V2::Value]
2300
+ # @return [::Google::Cloud::Dlp::V2::Value]
2274
2301
  # Value to compare against. [Mandatory, except for `EXISTS` tests.]
2275
2302
  class Condition
2276
- include Google::Protobuf::MessageExts
2277
- extend Google::Protobuf::MessageExts::ClassMethods
2303
+ include ::Google::Protobuf::MessageExts
2304
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2278
2305
  end
2279
2306
 
2280
2307
  # A collection of conditions.
2281
2308
  # @!attribute [rw] conditions
2282
- # @return [Array<Google::Cloud::Dlp::V2::RecordCondition::Condition>]
2309
+ # @return [::Array<::Google::Cloud::Dlp::V2::RecordCondition::Condition>]
2283
2310
  # A collection of conditions.
2284
2311
  class Conditions
2285
- include Google::Protobuf::MessageExts
2286
- extend Google::Protobuf::MessageExts::ClassMethods
2312
+ include ::Google::Protobuf::MessageExts
2313
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2287
2314
  end
2288
2315
 
2289
2316
  # An expression, consisting or an operator and conditions.
2290
2317
  # @!attribute [rw] logical_operator
2291
- # @return [Google::Cloud::Dlp::V2::RecordCondition::Expressions::LogicalOperator]
2318
+ # @return [::Google::Cloud::Dlp::V2::RecordCondition::Expressions::LogicalOperator]
2292
2319
  # The operator to apply to the result of conditions. Default and currently
2293
2320
  # only supported value is `AND`.
2294
2321
  # @!attribute [rw] conditions
2295
- # @return [Google::Cloud::Dlp::V2::RecordCondition::Conditions]
2322
+ # @return [::Google::Cloud::Dlp::V2::RecordCondition::Conditions]
2296
2323
  # Conditions to apply to the expression.
2297
2324
  class Expressions
2298
- include Google::Protobuf::MessageExts
2299
- extend Google::Protobuf::MessageExts::ClassMethods
2325
+ include ::Google::Protobuf::MessageExts
2326
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2300
2327
 
2301
2328
  # Logical operators for conditional checks.
2302
2329
  module LogicalOperator
@@ -2311,61 +2338,61 @@ module Google
2311
2338
 
2312
2339
  # Overview of the modifications that occurred.
2313
2340
  # @!attribute [rw] transformed_bytes
2314
- # @return [Integer]
2341
+ # @return [::Integer]
2315
2342
  # Total size in bytes that were transformed in some way.
2316
2343
  # @!attribute [rw] transformation_summaries
2317
- # @return [Array<Google::Cloud::Dlp::V2::TransformationSummary>]
2344
+ # @return [::Array<::Google::Cloud::Dlp::V2::TransformationSummary>]
2318
2345
  # Transformations applied to the dataset.
2319
2346
  class TransformationOverview
2320
- include Google::Protobuf::MessageExts
2321
- extend Google::Protobuf::MessageExts::ClassMethods
2347
+ include ::Google::Protobuf::MessageExts
2348
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2322
2349
  end
2323
2350
 
2324
2351
  # Summary of a single transformation.
2325
2352
  # Only one of 'transformation', 'field_transformation', or 'record_suppress'
2326
2353
  # will be set.
2327
2354
  # @!attribute [rw] info_type
2328
- # @return [Google::Cloud::Dlp::V2::InfoType]
2355
+ # @return [::Google::Cloud::Dlp::V2::InfoType]
2329
2356
  # Set if the transformation was limited to a specific InfoType.
2330
2357
  # @!attribute [rw] field
2331
- # @return [Google::Cloud::Dlp::V2::FieldId]
2358
+ # @return [::Google::Cloud::Dlp::V2::FieldId]
2332
2359
  # Set if the transformation was limited to a specific FieldId.
2333
2360
  # @!attribute [rw] transformation
2334
- # @return [Google::Cloud::Dlp::V2::PrimitiveTransformation]
2361
+ # @return [::Google::Cloud::Dlp::V2::PrimitiveTransformation]
2335
2362
  # The specific transformation these stats apply to.
2336
2363
  # @!attribute [rw] field_transformations
2337
- # @return [Array<Google::Cloud::Dlp::V2::FieldTransformation>]
2364
+ # @return [::Array<::Google::Cloud::Dlp::V2::FieldTransformation>]
2338
2365
  # The field transformation that was applied.
2339
2366
  # If multiple field transformations are requested for a single field,
2340
2367
  # this list will contain all of them; otherwise, only one is supplied.
2341
2368
  # @!attribute [rw] record_suppress
2342
- # @return [Google::Cloud::Dlp::V2::RecordSuppression]
2369
+ # @return [::Google::Cloud::Dlp::V2::RecordSuppression]
2343
2370
  # The specific suppression option these stats apply to.
2344
2371
  # @!attribute [rw] results
2345
- # @return [Array<Google::Cloud::Dlp::V2::TransformationSummary::SummaryResult>]
2372
+ # @return [::Array<::Google::Cloud::Dlp::V2::TransformationSummary::SummaryResult>]
2346
2373
  # Collection of all transformations that took place or had an error.
2347
2374
  # @!attribute [rw] transformed_bytes
2348
- # @return [Integer]
2375
+ # @return [::Integer]
2349
2376
  # Total size in bytes that were transformed in some way.
2350
2377
  class TransformationSummary
2351
- include Google::Protobuf::MessageExts
2352
- extend Google::Protobuf::MessageExts::ClassMethods
2378
+ include ::Google::Protobuf::MessageExts
2379
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2353
2380
 
2354
2381
  # A collection that informs the user the number of times a particular
2355
2382
  # `TransformationResultCode` and error details occurred.
2356
2383
  # @!attribute [rw] count
2357
- # @return [Integer]
2384
+ # @return [::Integer]
2358
2385
  # Number of transformations counted by this result.
2359
2386
  # @!attribute [rw] code
2360
- # @return [Google::Cloud::Dlp::V2::TransformationSummary::TransformationResultCode]
2387
+ # @return [::Google::Cloud::Dlp::V2::TransformationSummary::TransformationResultCode]
2361
2388
  # Outcome of the transformation.
2362
2389
  # @!attribute [rw] details
2363
- # @return [String]
2390
+ # @return [::String]
2364
2391
  # A place for warnings or errors to show up if a transformation didn't
2365
2392
  # work as expected.
2366
2393
  class SummaryResult
2367
- include Google::Protobuf::MessageExts
2368
- extend Google::Protobuf::MessageExts::ClassMethods
2394
+ include ::Google::Protobuf::MessageExts
2395
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2369
2396
  end
2370
2397
 
2371
2398
  # Possible outcomes of transformations.
@@ -2383,7 +2410,7 @@ module Google
2383
2410
 
2384
2411
  # Schedule for triggeredJobs.
2385
2412
  # @!attribute [rw] recurrence_period_duration
2386
- # @return [Google::Protobuf::Duration]
2413
+ # @return [::Google::Protobuf::Duration]
2387
2414
  # With this option a job is started a regular periodic basis. For
2388
2415
  # example: every day (86400 seconds).
2389
2416
  #
@@ -2393,15 +2420,15 @@ module Google
2393
2420
  # This value must be set to a time duration greater than or equal
2394
2421
  # to 1 day and can be no longer than 60 days.
2395
2422
  class Schedule
2396
- include Google::Protobuf::MessageExts
2397
- extend Google::Protobuf::MessageExts::ClassMethods
2423
+ include ::Google::Protobuf::MessageExts
2424
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2398
2425
  end
2399
2426
 
2400
2427
  # Job trigger option for hybrid jobs. Jobs must be manually created
2401
2428
  # and finished.
2402
2429
  class Manual
2403
- include Google::Protobuf::MessageExts
2404
- extend Google::Protobuf::MessageExts::ClassMethods
2430
+ include ::Google::Protobuf::MessageExts
2431
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2405
2432
  end
2406
2433
 
2407
2434
  # The inspectTemplate contains a configuration (set of types of sensitive data
@@ -2409,130 +2436,130 @@ module Google
2409
2436
  # InspectConfig. See https://cloud.google.com/dlp/docs/concepts-templates
2410
2437
  # to learn more.
2411
2438
  # @!attribute [r] name
2412
- # @return [String]
2439
+ # @return [::String]
2413
2440
  # Output only. The template name.
2414
2441
  #
2415
2442
  # The template will have one of the following formats:
2416
2443
  # `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR
2417
2444
  # `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`;
2418
2445
  # @!attribute [rw] display_name
2419
- # @return [String]
2446
+ # @return [::String]
2420
2447
  # Display name (max 256 chars).
2421
2448
  # @!attribute [rw] description
2422
- # @return [String]
2449
+ # @return [::String]
2423
2450
  # Short description (max 256 chars).
2424
2451
  # @!attribute [r] create_time
2425
- # @return [Google::Protobuf::Timestamp]
2452
+ # @return [::Google::Protobuf::Timestamp]
2426
2453
  # Output only. The creation timestamp of an inspectTemplate.
2427
2454
  # @!attribute [r] update_time
2428
- # @return [Google::Protobuf::Timestamp]
2455
+ # @return [::Google::Protobuf::Timestamp]
2429
2456
  # Output only. The last update timestamp of an inspectTemplate.
2430
2457
  # @!attribute [rw] inspect_config
2431
- # @return [Google::Cloud::Dlp::V2::InspectConfig]
2458
+ # @return [::Google::Cloud::Dlp::V2::InspectConfig]
2432
2459
  # The core content of the template. Configuration of the scanning process.
2433
2460
  class InspectTemplate
2434
- include Google::Protobuf::MessageExts
2435
- extend Google::Protobuf::MessageExts::ClassMethods
2461
+ include ::Google::Protobuf::MessageExts
2462
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2436
2463
  end
2437
2464
 
2438
2465
  # DeidentifyTemplates contains instructions on how to de-identify content.
2439
2466
  # See https://cloud.google.com/dlp/docs/concepts-templates to learn more.
2440
2467
  # @!attribute [r] name
2441
- # @return [String]
2468
+ # @return [::String]
2442
2469
  # Output only. The template name.
2443
2470
  #
2444
2471
  # The template will have one of the following formats:
2445
2472
  # `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR
2446
2473
  # `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID`
2447
2474
  # @!attribute [rw] display_name
2448
- # @return [String]
2475
+ # @return [::String]
2449
2476
  # Display name (max 256 chars).
2450
2477
  # @!attribute [rw] description
2451
- # @return [String]
2478
+ # @return [::String]
2452
2479
  # Short description (max 256 chars).
2453
2480
  # @!attribute [r] create_time
2454
- # @return [Google::Protobuf::Timestamp]
2481
+ # @return [::Google::Protobuf::Timestamp]
2455
2482
  # Output only. The creation timestamp of an inspectTemplate.
2456
2483
  # @!attribute [r] update_time
2457
- # @return [Google::Protobuf::Timestamp]
2484
+ # @return [::Google::Protobuf::Timestamp]
2458
2485
  # Output only. The last update timestamp of an inspectTemplate.
2459
2486
  # @!attribute [rw] deidentify_config
2460
- # @return [Google::Cloud::Dlp::V2::DeidentifyConfig]
2487
+ # @return [::Google::Cloud::Dlp::V2::DeidentifyConfig]
2461
2488
  # ///////////// // The core content of the template // ///////////////
2462
2489
  class DeidentifyTemplate
2463
- include Google::Protobuf::MessageExts
2464
- extend Google::Protobuf::MessageExts::ClassMethods
2490
+ include ::Google::Protobuf::MessageExts
2491
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2465
2492
  end
2466
2493
 
2467
2494
  # Details information about an error encountered during job execution or
2468
2495
  # the results of an unsuccessful activation of the JobTrigger.
2469
2496
  # @!attribute [rw] details
2470
- # @return [Google::Rpc::Status]
2497
+ # @return [::Google::Rpc::Status]
2471
2498
  # Detailed error codes and messages.
2472
2499
  # @!attribute [rw] timestamps
2473
- # @return [Array<Google::Protobuf::Timestamp>]
2500
+ # @return [::Array<::Google::Protobuf::Timestamp>]
2474
2501
  # The times the error occurred.
2475
2502
  class Error
2476
- include Google::Protobuf::MessageExts
2477
- extend Google::Protobuf::MessageExts::ClassMethods
2503
+ include ::Google::Protobuf::MessageExts
2504
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2478
2505
  end
2479
2506
 
2480
2507
  # Contains a configuration to make dlp api calls on a repeating basis.
2481
2508
  # See https://cloud.google.com/dlp/docs/concepts-job-triggers to learn more.
2482
2509
  # @!attribute [rw] name
2483
- # @return [String]
2510
+ # @return [::String]
2484
2511
  # Unique resource name for the triggeredJob, assigned by the service when the
2485
2512
  # triggeredJob is created, for example
2486
2513
  # `projects/dlp-test-project/jobTriggers/53234423`.
2487
2514
  # @!attribute [rw] display_name
2488
- # @return [String]
2515
+ # @return [::String]
2489
2516
  # Display name (max 100 chars)
2490
2517
  # @!attribute [rw] description
2491
- # @return [String]
2518
+ # @return [::String]
2492
2519
  # User provided description (max 256 chars)
2493
2520
  # @!attribute [rw] inspect_job
2494
- # @return [Google::Cloud::Dlp::V2::InspectJobConfig]
2521
+ # @return [::Google::Cloud::Dlp::V2::InspectJobConfig]
2495
2522
  # For inspect jobs, a snapshot of the configuration.
2496
2523
  # @!attribute [rw] triggers
2497
- # @return [Array<Google::Cloud::Dlp::V2::JobTrigger::Trigger>]
2524
+ # @return [::Array<::Google::Cloud::Dlp::V2::JobTrigger::Trigger>]
2498
2525
  # A list of triggers which will be OR'ed together. Only one in the list
2499
2526
  # needs to trigger for a job to be started. The list may contain only
2500
2527
  # a single Schedule trigger and must have at least one object.
2501
2528
  # @!attribute [r] errors
2502
- # @return [Array<Google::Cloud::Dlp::V2::Error>]
2503
- # Output only. A stream of errors encountered when the trigger was activated.
2504
- # Repeated errors may result in the JobTrigger automatically being paused.
2529
+ # @return [::Array<::Google::Cloud::Dlp::V2::Error>]
2530
+ # Output only. A stream of errors encountered when the trigger was activated. Repeated
2531
+ # errors may result in the JobTrigger automatically being paused.
2505
2532
  # Will return the last 100 errors. Whenever the JobTrigger is modified
2506
2533
  # this list will be cleared.
2507
2534
  # @!attribute [r] create_time
2508
- # @return [Google::Protobuf::Timestamp]
2535
+ # @return [::Google::Protobuf::Timestamp]
2509
2536
  # Output only. The creation timestamp of a triggeredJob.
2510
2537
  # @!attribute [r] update_time
2511
- # @return [Google::Protobuf::Timestamp]
2538
+ # @return [::Google::Protobuf::Timestamp]
2512
2539
  # Output only. The last update timestamp of a triggeredJob.
2513
2540
  # @!attribute [r] last_run_time
2514
- # @return [Google::Protobuf::Timestamp]
2541
+ # @return [::Google::Protobuf::Timestamp]
2515
2542
  # Output only. The timestamp of the last time this trigger executed.
2516
2543
  # @!attribute [rw] status
2517
- # @return [Google::Cloud::Dlp::V2::JobTrigger::Status]
2544
+ # @return [::Google::Cloud::Dlp::V2::JobTrigger::Status]
2518
2545
  # Required. A status for this trigger.
2519
2546
  class JobTrigger
2520
- include Google::Protobuf::MessageExts
2521
- extend Google::Protobuf::MessageExts::ClassMethods
2547
+ include ::Google::Protobuf::MessageExts
2548
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2522
2549
 
2523
2550
  # What event needs to occur for a new job to be started.
2524
2551
  # @!attribute [rw] schedule
2525
- # @return [Google::Cloud::Dlp::V2::Schedule]
2552
+ # @return [::Google::Cloud::Dlp::V2::Schedule]
2526
2553
  # Create a job on a repeating basis based on the elapse of time.
2527
2554
  # @!attribute [rw] manual
2528
- # @return [Google::Cloud::Dlp::V2::Manual]
2555
+ # @return [::Google::Cloud::Dlp::V2::Manual]
2529
2556
  # For use with hybrid jobs. Jobs must be manually created and finished.
2530
2557
  # Early access feature is in a pre-release state and might change or have
2531
2558
  # limited support. For more information, see
2532
2559
  # https://cloud.google.com/products#product-launch-stages.
2533
2560
  class Trigger
2534
- include Google::Protobuf::MessageExts
2535
- extend Google::Protobuf::MessageExts::ClassMethods
2561
+ include ::Google::Protobuf::MessageExts
2562
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2536
2563
  end
2537
2564
 
2538
2565
  # Whether the trigger is currently active. If PAUSED or CANCELLED, no jobs
@@ -2557,54 +2584,54 @@ module Google
2557
2584
  # A task to execute on the completion of a job.
2558
2585
  # See https://cloud.google.com/dlp/docs/concepts-actions to learn more.
2559
2586
  # @!attribute [rw] save_findings
2560
- # @return [Google::Cloud::Dlp::V2::Action::SaveFindings]
2587
+ # @return [::Google::Cloud::Dlp::V2::Action::SaveFindings]
2561
2588
  # Save resulting findings in a provided location.
2562
2589
  # @!attribute [rw] pub_sub
2563
- # @return [Google::Cloud::Dlp::V2::Action::PublishToPubSub]
2590
+ # @return [::Google::Cloud::Dlp::V2::Action::PublishToPubSub]
2564
2591
  # Publish a notification to a pubsub topic.
2565
2592
  # @!attribute [rw] publish_summary_to_cscc
2566
- # @return [Google::Cloud::Dlp::V2::Action::PublishSummaryToCscc]
2593
+ # @return [::Google::Cloud::Dlp::V2::Action::PublishSummaryToCscc]
2567
2594
  # Publish summary to Cloud Security Command Center (Alpha).
2568
2595
  # @!attribute [rw] publish_findings_to_cloud_data_catalog
2569
- # @return [Google::Cloud::Dlp::V2::Action::PublishFindingsToCloudDataCatalog]
2596
+ # @return [::Google::Cloud::Dlp::V2::Action::PublishFindingsToCloudDataCatalog]
2570
2597
  # Publish findings to Cloud Datahub.
2571
2598
  # @!attribute [rw] job_notification_emails
2572
- # @return [Google::Cloud::Dlp::V2::Action::JobNotificationEmails]
2599
+ # @return [::Google::Cloud::Dlp::V2::Action::JobNotificationEmails]
2573
2600
  # Enable email notification for project owners and editors on job's
2574
2601
  # completion/failure.
2575
2602
  # @!attribute [rw] publish_to_stackdriver
2576
- # @return [Google::Cloud::Dlp::V2::Action::PublishToStackdriver]
2603
+ # @return [::Google::Cloud::Dlp::V2::Action::PublishToStackdriver]
2577
2604
  # Enable Stackdriver metric dlp.googleapis.com/finding_count.
2578
2605
  class Action
2579
- include Google::Protobuf::MessageExts
2580
- extend Google::Protobuf::MessageExts::ClassMethods
2606
+ include ::Google::Protobuf::MessageExts
2607
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2581
2608
 
2582
2609
  # If set, the detailed findings will be persisted to the specified
2583
2610
  # OutputStorageConfig. Only a single instance of this action can be
2584
2611
  # specified.
2585
2612
  # Compatible with: Inspect, Risk
2586
2613
  # @!attribute [rw] output_config
2587
- # @return [Google::Cloud::Dlp::V2::OutputStorageConfig]
2614
+ # @return [::Google::Cloud::Dlp::V2::OutputStorageConfig]
2588
2615
  # Location to store findings outside of DLP.
2589
2616
  class SaveFindings
2590
- include Google::Protobuf::MessageExts
2591
- extend Google::Protobuf::MessageExts::ClassMethods
2617
+ include ::Google::Protobuf::MessageExts
2618
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2592
2619
  end
2593
2620
 
2594
2621
  # Publish a message into given Pub/Sub topic when DlpJob has completed. The
2595
2622
  # message contains a single field, `DlpJobName`, which is equal to the
2596
2623
  # finished job's
2597
- # [`DlpJob.name`](/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob).
2624
+ # [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob).
2598
2625
  # Compatible with: Inspect, Risk
2599
2626
  # @!attribute [rw] topic
2600
- # @return [String]
2627
+ # @return [::String]
2601
2628
  # Cloud Pub/Sub topic to send notifications to. The topic must have given
2602
2629
  # publishing access rights to the DLP API service account executing
2603
2630
  # the long running DlpJob sending the notifications.
2604
2631
  # Format is projects/\\{project}/topics/\\{topic}.
2605
2632
  class PublishToPubSub
2606
- include Google::Protobuf::MessageExts
2607
- extend Google::Protobuf::MessageExts::ClassMethods
2633
+ include ::Google::Protobuf::MessageExts
2634
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2608
2635
  end
2609
2636
 
2610
2637
  # Publish the result summary of a DlpJob to the Cloud Security
@@ -2618,8 +2645,8 @@ module Google
2618
2645
  # Only a single instance of this action can be specified.
2619
2646
  # Compatible with: Inspect
2620
2647
  class PublishSummaryToCscc
2621
- include Google::Protobuf::MessageExts
2622
- extend Google::Protobuf::MessageExts::ClassMethods
2648
+ include ::Google::Protobuf::MessageExts
2649
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2623
2650
  end
2624
2651
 
2625
2652
  # Publish findings of a DlpJob to Cloud Data Catalog. Labels summarizing the
@@ -2633,15 +2660,15 @@ module Google
2633
2660
  # all resources being scanned are BigQuery tables.
2634
2661
  # Compatible with: Inspect
2635
2662
  class PublishFindingsToCloudDataCatalog
2636
- include Google::Protobuf::MessageExts
2637
- extend Google::Protobuf::MessageExts::ClassMethods
2663
+ include ::Google::Protobuf::MessageExts
2664
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2638
2665
  end
2639
2666
 
2640
2667
  # Enable email notification to project owners and editors on jobs's
2641
2668
  # completion/failure.
2642
2669
  class JobNotificationEmails
2643
- include Google::Protobuf::MessageExts
2644
- extend Google::Protobuf::MessageExts::ClassMethods
2670
+ include ::Google::Protobuf::MessageExts
2671
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2645
2672
  end
2646
2673
 
2647
2674
  # Enable Stackdriver metric dlp.googleapis.com/finding_count. This
@@ -2649,77 +2676,76 @@ module Google
2649
2676
  # how many findings were found for it. CustomDetectors will be bucketed
2650
2677
  # as 'Custom' under the Stackdriver label 'info_type'.
2651
2678
  class PublishToStackdriver
2652
- include Google::Protobuf::MessageExts
2653
- extend Google::Protobuf::MessageExts::ClassMethods
2679
+ include ::Google::Protobuf::MessageExts
2680
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2654
2681
  end
2655
2682
  end
2656
2683
 
2657
2684
  # Request message for CreateInspectTemplate.
2658
2685
  # @!attribute [rw] parent
2659
- # @return [String]
2686
+ # @return [::String]
2660
2687
  # Required. The parent resource name, for example projects/my-project-id or
2661
- # organizations/my-org-id.
2688
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location-id}.
2662
2689
  # @!attribute [rw] inspect_template
2663
- # @return [Google::Cloud::Dlp::V2::InspectTemplate]
2690
+ # @return [::Google::Cloud::Dlp::V2::InspectTemplate]
2664
2691
  # Required. The InspectTemplate to create.
2665
2692
  # @!attribute [rw] template_id
2666
- # @return [String]
2693
+ # @return [::String]
2667
2694
  # The template id can contain uppercase and lowercase letters,
2668
2695
  # numbers, and hyphens; that is, it must match the regular
2669
2696
  # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
2670
2697
  # characters. Can be empty to allow the system to generate one.
2671
2698
  # @!attribute [rw] location_id
2672
- # @return [String]
2673
- # The geographic location to store the inspection template. Reserved for
2674
- # future extensions.
2699
+ # @return [::String]
2700
+ # Deprecated. This field has no effect.
2675
2701
  class CreateInspectTemplateRequest
2676
- include Google::Protobuf::MessageExts
2677
- extend Google::Protobuf::MessageExts::ClassMethods
2702
+ include ::Google::Protobuf::MessageExts
2703
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2678
2704
  end
2679
2705
 
2680
2706
  # Request message for UpdateInspectTemplate.
2681
2707
  # @!attribute [rw] name
2682
- # @return [String]
2708
+ # @return [::String]
2683
2709
  # Required. Resource name of organization and inspectTemplate to be updated,
2684
2710
  # for example `organizations/433245324/inspectTemplates/432452342` or
2685
2711
  # projects/project-id/inspectTemplates/432452342.
2686
2712
  # @!attribute [rw] inspect_template
2687
- # @return [Google::Cloud::Dlp::V2::InspectTemplate]
2713
+ # @return [::Google::Cloud::Dlp::V2::InspectTemplate]
2688
2714
  # New InspectTemplate value.
2689
2715
  # @!attribute [rw] update_mask
2690
- # @return [Google::Protobuf::FieldMask]
2716
+ # @return [::Google::Protobuf::FieldMask]
2691
2717
  # Mask to control which fields get updated.
2692
2718
  class UpdateInspectTemplateRequest
2693
- include Google::Protobuf::MessageExts
2694
- extend Google::Protobuf::MessageExts::ClassMethods
2719
+ include ::Google::Protobuf::MessageExts
2720
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2695
2721
  end
2696
2722
 
2697
2723
  # Request message for GetInspectTemplate.
2698
2724
  # @!attribute [rw] name
2699
- # @return [String]
2725
+ # @return [::String]
2700
2726
  # Required. Resource name of the organization and inspectTemplate to be read,
2701
2727
  # for example `organizations/433245324/inspectTemplates/432452342` or
2702
2728
  # projects/project-id/inspectTemplates/432452342.
2703
2729
  class GetInspectTemplateRequest
2704
- include Google::Protobuf::MessageExts
2705
- extend Google::Protobuf::MessageExts::ClassMethods
2730
+ include ::Google::Protobuf::MessageExts
2731
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2706
2732
  end
2707
2733
 
2708
2734
  # Request message for ListInspectTemplates.
2709
2735
  # @!attribute [rw] parent
2710
- # @return [String]
2736
+ # @return [::String]
2711
2737
  # Required. The parent resource name, for example projects/my-project-id or
2712
- # organizations/my-org-id.
2738
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
2713
2739
  # @!attribute [rw] page_token
2714
- # @return [String]
2740
+ # @return [::String]
2715
2741
  # Page token to continue retrieval. Comes from previous call
2716
2742
  # to `ListInspectTemplates`.
2717
2743
  # @!attribute [rw] page_size
2718
- # @return [Integer]
2744
+ # @return [::Integer]
2719
2745
  # Size of the page, can be limited by server. If zero server returns
2720
2746
  # a page of max size 100.
2721
2747
  # @!attribute [rw] order_by
2722
- # @return [String]
2748
+ # @return [::String]
2723
2749
  # Comma separated list of fields to order by,
2724
2750
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
2725
2751
  # default sorting order is ascending, redundant space characters are
@@ -2734,137 +2760,137 @@ module Google
2734
2760
  # - `name`: corresponds to template's name.
2735
2761
  # - `display_name`: corresponds to template's display name.
2736
2762
  # @!attribute [rw] location_id
2737
- # @return [String]
2738
- # The geographic location where inspection templates will be retrieved from.
2739
- # Use `-` for all locations. Reserved for future extensions.
2763
+ # @return [::String]
2764
+ # Deprecated. This field has no effect.
2740
2765
  class ListInspectTemplatesRequest
2741
- include Google::Protobuf::MessageExts
2742
- extend Google::Protobuf::MessageExts::ClassMethods
2766
+ include ::Google::Protobuf::MessageExts
2767
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2743
2768
  end
2744
2769
 
2745
2770
  # Response message for ListInspectTemplates.
2746
2771
  # @!attribute [rw] inspect_templates
2747
- # @return [Array<Google::Cloud::Dlp::V2::InspectTemplate>]
2772
+ # @return [::Array<::Google::Cloud::Dlp::V2::InspectTemplate>]
2748
2773
  # List of inspectTemplates, up to page_size in ListInspectTemplatesRequest.
2749
2774
  # @!attribute [rw] next_page_token
2750
- # @return [String]
2775
+ # @return [::String]
2751
2776
  # If the next page is available then the next page token to be used
2752
2777
  # in following ListInspectTemplates request.
2753
2778
  class ListInspectTemplatesResponse
2754
- include Google::Protobuf::MessageExts
2755
- extend Google::Protobuf::MessageExts::ClassMethods
2779
+ include ::Google::Protobuf::MessageExts
2780
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2756
2781
  end
2757
2782
 
2758
2783
  # Request message for DeleteInspectTemplate.
2759
2784
  # @!attribute [rw] name
2760
- # @return [String]
2785
+ # @return [::String]
2761
2786
  # Required. Resource name of the organization and inspectTemplate to be
2762
2787
  # deleted, for example `organizations/433245324/inspectTemplates/432452342`
2763
2788
  # or projects/project-id/inspectTemplates/432452342.
2764
2789
  class DeleteInspectTemplateRequest
2765
- include Google::Protobuf::MessageExts
2766
- extend Google::Protobuf::MessageExts::ClassMethods
2790
+ include ::Google::Protobuf::MessageExts
2791
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2767
2792
  end
2768
2793
 
2769
2794
  # Request message for CreateJobTrigger.
2770
2795
  # @!attribute [rw] parent
2771
- # @return [String]
2772
- # Required. The parent resource name, for example projects/my-project-id.
2796
+ # @return [::String]
2797
+ # Required. The parent resource name, for example projects/my-project-id
2798
+ # or projects/my-project-id/locations/\\{location_id}.
2773
2799
  # @!attribute [rw] job_trigger
2774
- # @return [Google::Cloud::Dlp::V2::JobTrigger]
2800
+ # @return [::Google::Cloud::Dlp::V2::JobTrigger]
2775
2801
  # Required. The JobTrigger to create.
2776
2802
  # @!attribute [rw] trigger_id
2777
- # @return [String]
2803
+ # @return [::String]
2778
2804
  # The trigger id can contain uppercase and lowercase letters,
2779
2805
  # numbers, and hyphens; that is, it must match the regular
2780
2806
  # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
2781
2807
  # characters. Can be empty to allow the system to generate one.
2782
2808
  # @!attribute [rw] location_id
2783
- # @return [String]
2784
- # The geographic location to store the job trigger. Reserved for
2785
- # future extensions.
2809
+ # @return [::String]
2810
+ # Deprecated. This field has no effect.
2786
2811
  class CreateJobTriggerRequest
2787
- include Google::Protobuf::MessageExts
2788
- extend Google::Protobuf::MessageExts::ClassMethods
2812
+ include ::Google::Protobuf::MessageExts
2813
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2789
2814
  end
2790
2815
 
2791
2816
  # Request message for ActivateJobTrigger.
2792
2817
  # @!attribute [rw] name
2793
- # @return [String]
2818
+ # @return [::String]
2794
2819
  # Required. Resource name of the trigger to activate, for example
2795
2820
  # `projects/dlp-test-project/jobTriggers/53234423`.
2796
2821
  class ActivateJobTriggerRequest
2797
- include Google::Protobuf::MessageExts
2798
- extend Google::Protobuf::MessageExts::ClassMethods
2822
+ include ::Google::Protobuf::MessageExts
2823
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2799
2824
  end
2800
2825
 
2801
2826
  # Request message for UpdateJobTrigger.
2802
2827
  # @!attribute [rw] name
2803
- # @return [String]
2828
+ # @return [::String]
2804
2829
  # Required. Resource name of the project and the triggeredJob, for example
2805
2830
  # `projects/dlp-test-project/jobTriggers/53234423`.
2806
2831
  # @!attribute [rw] job_trigger
2807
- # @return [Google::Cloud::Dlp::V2::JobTrigger]
2832
+ # @return [::Google::Cloud::Dlp::V2::JobTrigger]
2808
2833
  # New JobTrigger value.
2809
2834
  # @!attribute [rw] update_mask
2810
- # @return [Google::Protobuf::FieldMask]
2835
+ # @return [::Google::Protobuf::FieldMask]
2811
2836
  # Mask to control which fields get updated.
2812
2837
  class UpdateJobTriggerRequest
2813
- include Google::Protobuf::MessageExts
2814
- extend Google::Protobuf::MessageExts::ClassMethods
2838
+ include ::Google::Protobuf::MessageExts
2839
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2815
2840
  end
2816
2841
 
2817
2842
  # Request message for GetJobTrigger.
2818
2843
  # @!attribute [rw] name
2819
- # @return [String]
2844
+ # @return [::String]
2820
2845
  # Required. Resource name of the project and the triggeredJob, for example
2821
2846
  # `projects/dlp-test-project/jobTriggers/53234423`.
2822
2847
  class GetJobTriggerRequest
2823
- include Google::Protobuf::MessageExts
2824
- extend Google::Protobuf::MessageExts::ClassMethods
2848
+ include ::Google::Protobuf::MessageExts
2849
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2825
2850
  end
2826
2851
 
2827
2852
  # Request message for CreateDlpJobRequest. Used to initiate long running
2828
2853
  # jobs such as calculating risk metrics or inspecting Google Cloud
2829
2854
  # Storage.
2830
2855
  # @!attribute [rw] parent
2831
- # @return [String]
2832
- # Required. The parent resource name, for example projects/my-project-id.
2856
+ # @return [::String]
2857
+ # Required. The parent resource name, for example projects/my-project-id
2858
+ # or projects/my-project-id/locations/\\{location_id}.
2833
2859
  # @!attribute [rw] inspect_job
2834
- # @return [Google::Cloud::Dlp::V2::InspectJobConfig]
2860
+ # @return [::Google::Cloud::Dlp::V2::InspectJobConfig]
2835
2861
  # Set to control what and how to inspect.
2836
2862
  # @!attribute [rw] risk_job
2837
- # @return [Google::Cloud::Dlp::V2::RiskAnalysisJobConfig]
2863
+ # @return [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig]
2838
2864
  # Set to choose what metric to calculate.
2839
2865
  # @!attribute [rw] job_id
2840
- # @return [String]
2866
+ # @return [::String]
2841
2867
  # The job id can contain uppercase and lowercase letters,
2842
2868
  # numbers, and hyphens; that is, it must match the regular
2843
2869
  # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
2844
2870
  # characters. Can be empty to allow the system to generate one.
2845
2871
  # @!attribute [rw] location_id
2846
- # @return [String]
2847
- # The geographic location to store and process the job. Reserved for
2848
- # future extensions.
2872
+ # @return [::String]
2873
+ # Deprecated. This field has no effect.
2849
2874
  class CreateDlpJobRequest
2850
- include Google::Protobuf::MessageExts
2851
- extend Google::Protobuf::MessageExts::ClassMethods
2875
+ include ::Google::Protobuf::MessageExts
2876
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2852
2877
  end
2853
2878
 
2854
2879
  # Request message for ListJobTriggers.
2855
2880
  # @!attribute [rw] parent
2856
- # @return [String]
2857
- # Required. The parent resource name, for example `projects/my-project-id`.
2881
+ # @return [::String]
2882
+ # Required. The parent resource name, for example `projects/my-project-id`
2883
+ # or projects/my-project-id/locations/\\{location_id}.
2858
2884
  # @!attribute [rw] page_token
2859
- # @return [String]
2885
+ # @return [::String]
2860
2886
  # Page token to continue retrieval. Comes from previous call
2861
2887
  # to ListJobTriggers. `order_by` field must not
2862
2888
  # change for subsequent calls.
2863
2889
  # @!attribute [rw] page_size
2864
- # @return [Integer]
2890
+ # @return [::Integer]
2865
2891
  # Size of the page, can be limited by a server.
2866
2892
  # @!attribute [rw] order_by
2867
- # @return [String]
2893
+ # @return [::String]
2868
2894
  # Comma separated list of triggeredJob fields to order by,
2869
2895
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
2870
2896
  # default sorting order is ascending, redundant space characters are
@@ -2881,7 +2907,7 @@ module Google
2881
2907
  # - `display_name`: corresponds to JobTrigger's display name.
2882
2908
  # - `status`: corresponds to JobTrigger's status.
2883
2909
  # @!attribute [rw] filter
2884
- # @return [String]
2910
+ # @return [::String]
2885
2911
  # Allows filtering.
2886
2912
  #
2887
2913
  # Supported syntax:
@@ -2907,92 +2933,91 @@ module Google
2907
2933
  #
2908
2934
  # The length of this field should be no more than 500 characters.
2909
2935
  # @!attribute [rw] location_id
2910
- # @return [String]
2911
- # The geographic location where job triggers will be retrieved from.
2912
- # Use `-` for all locations. Reserved for future extensions.
2936
+ # @return [::String]
2937
+ # Deprecated. This field has no effect.
2913
2938
  class ListJobTriggersRequest
2914
- include Google::Protobuf::MessageExts
2915
- extend Google::Protobuf::MessageExts::ClassMethods
2939
+ include ::Google::Protobuf::MessageExts
2940
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2916
2941
  end
2917
2942
 
2918
2943
  # Response message for ListJobTriggers.
2919
2944
  # @!attribute [rw] job_triggers
2920
- # @return [Array<Google::Cloud::Dlp::V2::JobTrigger>]
2945
+ # @return [::Array<::Google::Cloud::Dlp::V2::JobTrigger>]
2921
2946
  # List of triggeredJobs, up to page_size in ListJobTriggersRequest.
2922
2947
  # @!attribute [rw] next_page_token
2923
- # @return [String]
2948
+ # @return [::String]
2924
2949
  # If the next page is available then the next page token to be used
2925
2950
  # in following ListJobTriggers request.
2926
2951
  class ListJobTriggersResponse
2927
- include Google::Protobuf::MessageExts
2928
- extend Google::Protobuf::MessageExts::ClassMethods
2952
+ include ::Google::Protobuf::MessageExts
2953
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2929
2954
  end
2930
2955
 
2931
2956
  # Request message for DeleteJobTrigger.
2932
2957
  # @!attribute [rw] name
2933
- # @return [String]
2958
+ # @return [::String]
2934
2959
  # Required. Resource name of the project and the triggeredJob, for example
2935
2960
  # `projects/dlp-test-project/jobTriggers/53234423`.
2936
2961
  class DeleteJobTriggerRequest
2937
- include Google::Protobuf::MessageExts
2938
- extend Google::Protobuf::MessageExts::ClassMethods
2962
+ include ::Google::Protobuf::MessageExts
2963
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2939
2964
  end
2940
2965
 
2941
2966
  # Controls what and how to inspect for findings.
2942
2967
  # @!attribute [rw] storage_config
2943
- # @return [Google::Cloud::Dlp::V2::StorageConfig]
2968
+ # @return [::Google::Cloud::Dlp::V2::StorageConfig]
2944
2969
  # The data to scan.
2945
2970
  # @!attribute [rw] inspect_config
2946
- # @return [Google::Cloud::Dlp::V2::InspectConfig]
2971
+ # @return [::Google::Cloud::Dlp::V2::InspectConfig]
2947
2972
  # How and what to scan for.
2948
2973
  # @!attribute [rw] inspect_template_name
2949
- # @return [String]
2974
+ # @return [::String]
2950
2975
  # If provided, will be used as the default for all values in InspectConfig.
2951
2976
  # `inspect_config` will be merged into the values persisted as part of the
2952
2977
  # template.
2953
2978
  # @!attribute [rw] actions
2954
- # @return [Array<Google::Cloud::Dlp::V2::Action>]
2979
+ # @return [::Array<::Google::Cloud::Dlp::V2::Action>]
2955
2980
  # Actions to execute at the completion of the job.
2956
2981
  class InspectJobConfig
2957
- include Google::Protobuf::MessageExts
2958
- extend Google::Protobuf::MessageExts::ClassMethods
2982
+ include ::Google::Protobuf::MessageExts
2983
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2959
2984
  end
2960
2985
 
2961
2986
  # Combines all of the information about a DLP job.
2962
2987
  # @!attribute [rw] name
2963
- # @return [String]
2988
+ # @return [::String]
2964
2989
  # The server-assigned name.
2965
2990
  # @!attribute [rw] type
2966
- # @return [Google::Cloud::Dlp::V2::DlpJobType]
2991
+ # @return [::Google::Cloud::Dlp::V2::DlpJobType]
2967
2992
  # The type of job.
2968
2993
  # @!attribute [rw] state
2969
- # @return [Google::Cloud::Dlp::V2::DlpJob::JobState]
2994
+ # @return [::Google::Cloud::Dlp::V2::DlpJob::JobState]
2970
2995
  # State of a job.
2971
2996
  # @!attribute [rw] risk_details
2972
- # @return [Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails]
2997
+ # @return [::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails]
2973
2998
  # Results from analyzing risk of a data source.
2974
2999
  # @!attribute [rw] inspect_details
2975
- # @return [Google::Cloud::Dlp::V2::InspectDataSourceDetails]
3000
+ # @return [::Google::Cloud::Dlp::V2::InspectDataSourceDetails]
2976
3001
  # Results from inspecting a data source.
2977
3002
  # @!attribute [rw] create_time
2978
- # @return [Google::Protobuf::Timestamp]
3003
+ # @return [::Google::Protobuf::Timestamp]
2979
3004
  # Time when the job was created.
2980
3005
  # @!attribute [rw] start_time
2981
- # @return [Google::Protobuf::Timestamp]
3006
+ # @return [::Google::Protobuf::Timestamp]
2982
3007
  # Time when the job started.
2983
3008
  # @!attribute [rw] end_time
2984
- # @return [Google::Protobuf::Timestamp]
3009
+ # @return [::Google::Protobuf::Timestamp]
2985
3010
  # Time when the job finished.
2986
3011
  # @!attribute [rw] job_trigger_name
2987
- # @return [String]
3012
+ # @return [::String]
2988
3013
  # If created by a job trigger, the resource name of the trigger that
2989
3014
  # instantiated the job.
2990
3015
  # @!attribute [rw] errors
2991
- # @return [Array<Google::Cloud::Dlp::V2::Error>]
3016
+ # @return [::Array<::Google::Cloud::Dlp::V2::Error>]
2992
3017
  # A stream of errors encountered running the job.
2993
3018
  class DlpJob
2994
- include Google::Protobuf::MessageExts
2995
- extend Google::Protobuf::MessageExts::ClassMethods
3019
+ include ::Google::Protobuf::MessageExts
3020
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2996
3021
 
2997
3022
  # Possible states of a job. New items may be added.
2998
3023
  module JobState
@@ -3025,19 +3050,20 @@ module Google
3025
3050
 
3026
3051
  # The request message for [DlpJobs.GetDlpJob][].
3027
3052
  # @!attribute [rw] name
3028
- # @return [String]
3053
+ # @return [::String]
3029
3054
  # Required. The name of the DlpJob resource.
3030
3055
  class GetDlpJobRequest
3031
- include Google::Protobuf::MessageExts
3032
- extend Google::Protobuf::MessageExts::ClassMethods
3056
+ include ::Google::Protobuf::MessageExts
3057
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3033
3058
  end
3034
3059
 
3035
3060
  # The request message for listing DLP jobs.
3036
3061
  # @!attribute [rw] parent
3037
- # @return [String]
3038
- # Required. The parent resource name, for example projects/my-project-id.
3062
+ # @return [::String]
3063
+ # Required. The parent resource name, for example projects/my-project-id
3064
+ # or projects/my-project-id/locations/\\{location_id}.
3039
3065
  # @!attribute [rw] filter
3040
- # @return [String]
3066
+ # @return [::String]
3041
3067
  # Allows filtering.
3042
3068
  #
3043
3069
  # Supported syntax:
@@ -3067,16 +3093,16 @@ module Google
3067
3093
  #
3068
3094
  # The length of this field should be no more than 500 characters.
3069
3095
  # @!attribute [rw] page_size
3070
- # @return [Integer]
3096
+ # @return [::Integer]
3071
3097
  # The standard list page size.
3072
3098
  # @!attribute [rw] page_token
3073
- # @return [String]
3099
+ # @return [::String]
3074
3100
  # The standard list page token.
3075
3101
  # @!attribute [rw] type
3076
- # @return [Google::Cloud::Dlp::V2::DlpJobType]
3102
+ # @return [::Google::Cloud::Dlp::V2::DlpJobType]
3077
3103
  # The type of job. Defaults to `DlpJobType.INSPECT`
3078
3104
  # @!attribute [rw] order_by
3079
- # @return [String]
3105
+ # @return [::String]
3080
3106
  # Comma separated list of fields to order by,
3081
3107
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
3082
3108
  # default sorting order is ascending, redundant space characters are
@@ -3091,120 +3117,118 @@ module Google
3091
3117
  # - `name`: corresponds to job's name.
3092
3118
  # - `state`: corresponds to `state`
3093
3119
  # @!attribute [rw] location_id
3094
- # @return [String]
3095
- # The geographic location where jobs will be retrieved from.
3096
- # Use `-` for all locations. Reserved for future extensions.
3120
+ # @return [::String]
3121
+ # Deprecated. This field has no effect.
3097
3122
  class ListDlpJobsRequest
3098
- include Google::Protobuf::MessageExts
3099
- extend Google::Protobuf::MessageExts::ClassMethods
3123
+ include ::Google::Protobuf::MessageExts
3124
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3100
3125
  end
3101
3126
 
3102
3127
  # The response message for listing DLP jobs.
3103
3128
  # @!attribute [rw] jobs
3104
- # @return [Array<Google::Cloud::Dlp::V2::DlpJob>]
3129
+ # @return [::Array<::Google::Cloud::Dlp::V2::DlpJob>]
3105
3130
  # A list of DlpJobs that matches the specified filter in the request.
3106
3131
  # @!attribute [rw] next_page_token
3107
- # @return [String]
3132
+ # @return [::String]
3108
3133
  # The standard List next-page token.
3109
3134
  class ListDlpJobsResponse
3110
- include Google::Protobuf::MessageExts
3111
- extend Google::Protobuf::MessageExts::ClassMethods
3135
+ include ::Google::Protobuf::MessageExts
3136
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3112
3137
  end
3113
3138
 
3114
3139
  # The request message for canceling a DLP job.
3115
3140
  # @!attribute [rw] name
3116
- # @return [String]
3141
+ # @return [::String]
3117
3142
  # Required. The name of the DlpJob resource to be cancelled.
3118
3143
  class CancelDlpJobRequest
3119
- include Google::Protobuf::MessageExts
3120
- extend Google::Protobuf::MessageExts::ClassMethods
3144
+ include ::Google::Protobuf::MessageExts
3145
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3121
3146
  end
3122
3147
 
3123
3148
  # The request message for finishing a DLP hybrid job.
3124
3149
  # @!attribute [rw] name
3125
- # @return [String]
3150
+ # @return [::String]
3126
3151
  # Required. The name of the DlpJob resource to be cancelled.
3127
3152
  class FinishDlpJobRequest
3128
- include Google::Protobuf::MessageExts
3129
- extend Google::Protobuf::MessageExts::ClassMethods
3153
+ include ::Google::Protobuf::MessageExts
3154
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3130
3155
  end
3131
3156
 
3132
3157
  # The request message for deleting a DLP job.
3133
3158
  # @!attribute [rw] name
3134
- # @return [String]
3159
+ # @return [::String]
3135
3160
  # Required. The name of the DlpJob resource to be deleted.
3136
3161
  class DeleteDlpJobRequest
3137
- include Google::Protobuf::MessageExts
3138
- extend Google::Protobuf::MessageExts::ClassMethods
3162
+ include ::Google::Protobuf::MessageExts
3163
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3139
3164
  end
3140
3165
 
3141
3166
  # Request message for CreateDeidentifyTemplate.
3142
3167
  # @!attribute [rw] parent
3143
- # @return [String]
3168
+ # @return [::String]
3144
3169
  # Required. The parent resource name, for example projects/my-project-id or
3145
- # organizations/my-org-id.
3170
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
3146
3171
  # @!attribute [rw] deidentify_template
3147
- # @return [Google::Cloud::Dlp::V2::DeidentifyTemplate]
3172
+ # @return [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
3148
3173
  # Required. The DeidentifyTemplate to create.
3149
3174
  # @!attribute [rw] template_id
3150
- # @return [String]
3175
+ # @return [::String]
3151
3176
  # The template id can contain uppercase and lowercase letters,
3152
3177
  # numbers, and hyphens; that is, it must match the regular
3153
3178
  # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
3154
3179
  # characters. Can be empty to allow the system to generate one.
3155
3180
  # @!attribute [rw] location_id
3156
- # @return [String]
3157
- # The geographic location to store the deidentification template. Reserved
3158
- # for future extensions.
3181
+ # @return [::String]
3182
+ # Deprecated. This field has no effect.
3159
3183
  class CreateDeidentifyTemplateRequest
3160
- include Google::Protobuf::MessageExts
3161
- extend Google::Protobuf::MessageExts::ClassMethods
3184
+ include ::Google::Protobuf::MessageExts
3185
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3162
3186
  end
3163
3187
 
3164
3188
  # Request message for UpdateDeidentifyTemplate.
3165
3189
  # @!attribute [rw] name
3166
- # @return [String]
3190
+ # @return [::String]
3167
3191
  # Required. Resource name of organization and deidentify template to be
3168
3192
  # updated, for example
3169
3193
  # `organizations/433245324/deidentifyTemplates/432452342` or
3170
3194
  # projects/project-id/deidentifyTemplates/432452342.
3171
3195
  # @!attribute [rw] deidentify_template
3172
- # @return [Google::Cloud::Dlp::V2::DeidentifyTemplate]
3196
+ # @return [::Google::Cloud::Dlp::V2::DeidentifyTemplate]
3173
3197
  # New DeidentifyTemplate value.
3174
3198
  # @!attribute [rw] update_mask
3175
- # @return [Google::Protobuf::FieldMask]
3199
+ # @return [::Google::Protobuf::FieldMask]
3176
3200
  # Mask to control which fields get updated.
3177
3201
  class UpdateDeidentifyTemplateRequest
3178
- include Google::Protobuf::MessageExts
3179
- extend Google::Protobuf::MessageExts::ClassMethods
3202
+ include ::Google::Protobuf::MessageExts
3203
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3180
3204
  end
3181
3205
 
3182
3206
  # Request message for GetDeidentifyTemplate.
3183
3207
  # @!attribute [rw] name
3184
- # @return [String]
3208
+ # @return [::String]
3185
3209
  # Required. Resource name of the organization and deidentify template to be
3186
3210
  # read, for example `organizations/433245324/deidentifyTemplates/432452342`
3187
3211
  # or projects/project-id/deidentifyTemplates/432452342.
3188
3212
  class GetDeidentifyTemplateRequest
3189
- include Google::Protobuf::MessageExts
3190
- extend Google::Protobuf::MessageExts::ClassMethods
3213
+ include ::Google::Protobuf::MessageExts
3214
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3191
3215
  end
3192
3216
 
3193
3217
  # Request message for ListDeidentifyTemplates.
3194
3218
  # @!attribute [rw] parent
3195
- # @return [String]
3219
+ # @return [::String]
3196
3220
  # Required. The parent resource name, for example projects/my-project-id or
3197
- # organizations/my-org-id.
3221
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
3198
3222
  # @!attribute [rw] page_token
3199
- # @return [String]
3223
+ # @return [::String]
3200
3224
  # Page token to continue retrieval. Comes from previous call
3201
3225
  # to `ListDeidentifyTemplates`.
3202
3226
  # @!attribute [rw] page_size
3203
- # @return [Integer]
3227
+ # @return [::Integer]
3204
3228
  # Size of the page, can be limited by server. If zero server returns
3205
3229
  # a page of max size 100.
3206
3230
  # @!attribute [rw] order_by
3207
- # @return [String]
3231
+ # @return [::String]
3208
3232
  # Comma separated list of fields to order by,
3209
3233
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
3210
3234
  # default sorting order is ascending, redundant space characters are
@@ -3219,38 +3243,37 @@ module Google
3219
3243
  # - `name`: corresponds to template's name.
3220
3244
  # - `display_name`: corresponds to template's display name.
3221
3245
  # @!attribute [rw] location_id
3222
- # @return [String]
3223
- # The geographic location where deidentifications templates will be retrieved
3224
- # from. Use `-` for all locations. Reserved for future extensions.
3246
+ # @return [::String]
3247
+ # Deprecated. This field has no effect.
3225
3248
  class ListDeidentifyTemplatesRequest
3226
- include Google::Protobuf::MessageExts
3227
- extend Google::Protobuf::MessageExts::ClassMethods
3249
+ include ::Google::Protobuf::MessageExts
3250
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3228
3251
  end
3229
3252
 
3230
3253
  # Response message for ListDeidentifyTemplates.
3231
3254
  # @!attribute [rw] deidentify_templates
3232
- # @return [Array<Google::Cloud::Dlp::V2::DeidentifyTemplate>]
3255
+ # @return [::Array<::Google::Cloud::Dlp::V2::DeidentifyTemplate>]
3233
3256
  # List of deidentify templates, up to page_size in
3234
3257
  # ListDeidentifyTemplatesRequest.
3235
3258
  # @!attribute [rw] next_page_token
3236
- # @return [String]
3259
+ # @return [::String]
3237
3260
  # If the next page is available then the next page token to be used
3238
3261
  # in following ListDeidentifyTemplates request.
3239
3262
  class ListDeidentifyTemplatesResponse
3240
- include Google::Protobuf::MessageExts
3241
- extend Google::Protobuf::MessageExts::ClassMethods
3263
+ include ::Google::Protobuf::MessageExts
3264
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3242
3265
  end
3243
3266
 
3244
3267
  # Request message for DeleteDeidentifyTemplate.
3245
3268
  # @!attribute [rw] name
3246
- # @return [String]
3269
+ # @return [::String]
3247
3270
  # Required. Resource name of the organization and deidentify template to be
3248
3271
  # deleted, for example
3249
3272
  # `organizations/433245324/deidentifyTemplates/432452342` or
3250
3273
  # projects/project-id/deidentifyTemplates/432452342.
3251
3274
  class DeleteDeidentifyTemplateRequest
3252
- include Google::Protobuf::MessageExts
3253
- extend Google::Protobuf::MessageExts::ClassMethods
3275
+ include ::Google::Protobuf::MessageExts
3276
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3254
3277
  end
3255
3278
 
3256
3279
  # Configuration for a custom dictionary created from a data source of any size
@@ -3260,78 +3283,78 @@ module Google
3260
3283
  # location. Consider using `CustomInfoType.Dictionary` for smaller dictionaries
3261
3284
  # that satisfy the size requirements.
3262
3285
  # @!attribute [rw] output_path
3263
- # @return [Google::Cloud::Dlp::V2::CloudStoragePath]
3286
+ # @return [::Google::Cloud::Dlp::V2::CloudStoragePath]
3264
3287
  # Location to store dictionary artifacts in Google Cloud Storage. These files
3265
3288
  # will only be accessible by project owners and the DLP API. If any of these
3266
3289
  # artifacts are modified, the dictionary is considered invalid and can no
3267
3290
  # longer be used.
3268
3291
  # @!attribute [rw] cloud_storage_file_set
3269
- # @return [Google::Cloud::Dlp::V2::CloudStorageFileSet]
3292
+ # @return [::Google::Cloud::Dlp::V2::CloudStorageFileSet]
3270
3293
  # Set of files containing newline-delimited lists of dictionary phrases.
3271
3294
  # @!attribute [rw] big_query_field
3272
- # @return [Google::Cloud::Dlp::V2::BigQueryField]
3295
+ # @return [::Google::Cloud::Dlp::V2::BigQueryField]
3273
3296
  # Field in a BigQuery table where each cell represents a dictionary phrase.
3274
3297
  class LargeCustomDictionaryConfig
3275
- include Google::Protobuf::MessageExts
3276
- extend Google::Protobuf::MessageExts::ClassMethods
3298
+ include ::Google::Protobuf::MessageExts
3299
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3277
3300
  end
3278
3301
 
3279
3302
  # Summary statistics of a custom dictionary.
3280
3303
  # @!attribute [rw] approx_num_phrases
3281
- # @return [Integer]
3304
+ # @return [::Integer]
3282
3305
  # Approximate number of distinct phrases in the dictionary.
3283
3306
  class LargeCustomDictionaryStats
3284
- include Google::Protobuf::MessageExts
3285
- extend Google::Protobuf::MessageExts::ClassMethods
3307
+ include ::Google::Protobuf::MessageExts
3308
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3286
3309
  end
3287
3310
 
3288
3311
  # Configuration for stored infoTypes. All fields and subfield are provided
3289
3312
  # by the user. For more information, see
3290
3313
  # https://cloud.google.com/dlp/docs/creating-custom-infotypes.
3291
3314
  # @!attribute [rw] display_name
3292
- # @return [String]
3315
+ # @return [::String]
3293
3316
  # Display name of the StoredInfoType (max 256 characters).
3294
3317
  # @!attribute [rw] description
3295
- # @return [String]
3318
+ # @return [::String]
3296
3319
  # Description of the StoredInfoType (max 256 characters).
3297
3320
  # @!attribute [rw] large_custom_dictionary
3298
- # @return [Google::Cloud::Dlp::V2::LargeCustomDictionaryConfig]
3321
+ # @return [::Google::Cloud::Dlp::V2::LargeCustomDictionaryConfig]
3299
3322
  # StoredInfoType where findings are defined by a dictionary of phrases.
3300
3323
  # @!attribute [rw] dictionary
3301
- # @return [Google::Cloud::Dlp::V2::CustomInfoType::Dictionary]
3324
+ # @return [::Google::Cloud::Dlp::V2::CustomInfoType::Dictionary]
3302
3325
  # Store dictionary-based CustomInfoType.
3303
3326
  # @!attribute [rw] regex
3304
- # @return [Google::Cloud::Dlp::V2::CustomInfoType::Regex]
3327
+ # @return [::Google::Cloud::Dlp::V2::CustomInfoType::Regex]
3305
3328
  # Store regular expression-based StoredInfoType.
3306
3329
  class StoredInfoTypeConfig
3307
- include Google::Protobuf::MessageExts
3308
- extend Google::Protobuf::MessageExts::ClassMethods
3330
+ include ::Google::Protobuf::MessageExts
3331
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3309
3332
  end
3310
3333
 
3311
3334
  # Statistics for a StoredInfoType.
3312
3335
  # @!attribute [rw] large_custom_dictionary
3313
- # @return [Google::Cloud::Dlp::V2::LargeCustomDictionaryStats]
3336
+ # @return [::Google::Cloud::Dlp::V2::LargeCustomDictionaryStats]
3314
3337
  # StoredInfoType where findings are defined by a dictionary of phrases.
3315
3338
  class StoredInfoTypeStats
3316
- include Google::Protobuf::MessageExts
3317
- extend Google::Protobuf::MessageExts::ClassMethods
3339
+ include ::Google::Protobuf::MessageExts
3340
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3318
3341
  end
3319
3342
 
3320
3343
  # Version of a StoredInfoType, including the configuration used to build it,
3321
3344
  # create timestamp, and current state.
3322
3345
  # @!attribute [rw] config
3323
- # @return [Google::Cloud::Dlp::V2::StoredInfoTypeConfig]
3346
+ # @return [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig]
3324
3347
  # StoredInfoType configuration.
3325
3348
  # @!attribute [rw] create_time
3326
- # @return [Google::Protobuf::Timestamp]
3349
+ # @return [::Google::Protobuf::Timestamp]
3327
3350
  # Create timestamp of the version. Read-only, determined by the system
3328
3351
  # when the version is created.
3329
3352
  # @!attribute [rw] state
3330
- # @return [Google::Cloud::Dlp::V2::StoredInfoTypeState]
3353
+ # @return [::Google::Cloud::Dlp::V2::StoredInfoTypeState]
3331
3354
  # Stored info type version state. Read-only, updated by the system
3332
3355
  # during dictionary creation.
3333
3356
  # @!attribute [rw] errors
3334
- # @return [Array<Google::Cloud::Dlp::V2::Error>]
3357
+ # @return [::Array<::Google::Cloud::Dlp::V2::Error>]
3335
3358
  # Errors that occurred when creating this storedInfoType version, or
3336
3359
  # anomalies detected in the storedInfoType data that render it unusable. Only
3337
3360
  # the five most recent errors will be displayed, with the most recent error
@@ -3346,98 +3369,97 @@ module Google
3346
3369
  # storedInfoType to continue using it, reusing the same `config` if it was
3347
3370
  # not the source of the error.
3348
3371
  # @!attribute [rw] stats
3349
- # @return [Google::Cloud::Dlp::V2::StoredInfoTypeStats]
3372
+ # @return [::Google::Cloud::Dlp::V2::StoredInfoTypeStats]
3350
3373
  # Statistics about this storedInfoType version.
3351
3374
  class StoredInfoTypeVersion
3352
- include Google::Protobuf::MessageExts
3353
- extend Google::Protobuf::MessageExts::ClassMethods
3375
+ include ::Google::Protobuf::MessageExts
3376
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3354
3377
  end
3355
3378
 
3356
3379
  # StoredInfoType resource message that contains information about the current
3357
3380
  # version and any pending updates.
3358
3381
  # @!attribute [rw] name
3359
- # @return [String]
3382
+ # @return [::String]
3360
3383
  # Resource name.
3361
3384
  # @!attribute [rw] current_version
3362
- # @return [Google::Cloud::Dlp::V2::StoredInfoTypeVersion]
3385
+ # @return [::Google::Cloud::Dlp::V2::StoredInfoTypeVersion]
3363
3386
  # Current version of the stored info type.
3364
3387
  # @!attribute [rw] pending_versions
3365
- # @return [Array<Google::Cloud::Dlp::V2::StoredInfoTypeVersion>]
3388
+ # @return [::Array<::Google::Cloud::Dlp::V2::StoredInfoTypeVersion>]
3366
3389
  # Pending versions of the stored info type. Empty if no versions are
3367
3390
  # pending.
3368
3391
  class StoredInfoType
3369
- include Google::Protobuf::MessageExts
3370
- extend Google::Protobuf::MessageExts::ClassMethods
3392
+ include ::Google::Protobuf::MessageExts
3393
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3371
3394
  end
3372
3395
 
3373
3396
  # Request message for CreateStoredInfoType.
3374
3397
  # @!attribute [rw] parent
3375
- # @return [String]
3398
+ # @return [::String]
3376
3399
  # Required. The parent resource name, for example projects/my-project-id or
3377
- # organizations/my-org-id.
3400
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}
3378
3401
  # @!attribute [rw] config
3379
- # @return [Google::Cloud::Dlp::V2::StoredInfoTypeConfig]
3402
+ # @return [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig]
3380
3403
  # Required. Configuration of the storedInfoType to create.
3381
3404
  # @!attribute [rw] stored_info_type_id
3382
- # @return [String]
3405
+ # @return [::String]
3383
3406
  # The storedInfoType ID can contain uppercase and lowercase letters,
3384
3407
  # numbers, and hyphens; that is, it must match the regular
3385
3408
  # expression: `[a-zA-Z\\d-_]+`. The maximum length is 100
3386
3409
  # characters. Can be empty to allow the system to generate one.
3387
3410
  # @!attribute [rw] location_id
3388
- # @return [String]
3389
- # The geographic location to store the stored infoType. Reserved for
3390
- # future extensions.
3411
+ # @return [::String]
3412
+ # Deprecated. This field has no effect.
3391
3413
  class CreateStoredInfoTypeRequest
3392
- include Google::Protobuf::MessageExts
3393
- extend Google::Protobuf::MessageExts::ClassMethods
3414
+ include ::Google::Protobuf::MessageExts
3415
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3394
3416
  end
3395
3417
 
3396
3418
  # Request message for UpdateStoredInfoType.
3397
3419
  # @!attribute [rw] name
3398
- # @return [String]
3399
- # Required. Resource name of organization and storedInfoType to be updated,
3400
- # for example `organizations/433245324/storedInfoTypes/432452342` or
3420
+ # @return [::String]
3421
+ # Required. Resource name of organization and storedInfoType to be updated, for
3422
+ # example `organizations/433245324/storedInfoTypes/432452342` or
3401
3423
  # projects/project-id/storedInfoTypes/432452342.
3402
3424
  # @!attribute [rw] config
3403
- # @return [Google::Cloud::Dlp::V2::StoredInfoTypeConfig]
3425
+ # @return [::Google::Cloud::Dlp::V2::StoredInfoTypeConfig]
3404
3426
  # Updated configuration for the storedInfoType. If not provided, a new
3405
3427
  # version of the storedInfoType will be created with the existing
3406
3428
  # configuration.
3407
3429
  # @!attribute [rw] update_mask
3408
- # @return [Google::Protobuf::FieldMask]
3430
+ # @return [::Google::Protobuf::FieldMask]
3409
3431
  # Mask to control which fields get updated.
3410
3432
  class UpdateStoredInfoTypeRequest
3411
- include Google::Protobuf::MessageExts
3412
- extend Google::Protobuf::MessageExts::ClassMethods
3433
+ include ::Google::Protobuf::MessageExts
3434
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3413
3435
  end
3414
3436
 
3415
3437
  # Request message for GetStoredInfoType.
3416
3438
  # @!attribute [rw] name
3417
- # @return [String]
3439
+ # @return [::String]
3418
3440
  # Required. Resource name of the organization and storedInfoType to be read,
3419
3441
  # for example `organizations/433245324/storedInfoTypes/432452342` or
3420
3442
  # projects/project-id/storedInfoTypes/432452342.
3421
3443
  class GetStoredInfoTypeRequest
3422
- include Google::Protobuf::MessageExts
3423
- extend Google::Protobuf::MessageExts::ClassMethods
3444
+ include ::Google::Protobuf::MessageExts
3445
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3424
3446
  end
3425
3447
 
3426
3448
  # Request message for ListStoredInfoTypes.
3427
3449
  # @!attribute [rw] parent
3428
- # @return [String]
3450
+ # @return [::String]
3429
3451
  # Required. The parent resource name, for example projects/my-project-id or
3430
- # organizations/my-org-id.
3452
+ # organizations/my-org-id or projects/my-project-id/locations/\\{location_id}.
3431
3453
  # @!attribute [rw] page_token
3432
- # @return [String]
3454
+ # @return [::String]
3433
3455
  # Page token to continue retrieval. Comes from previous call
3434
3456
  # to `ListStoredInfoTypes`.
3435
3457
  # @!attribute [rw] page_size
3436
- # @return [Integer]
3458
+ # @return [::Integer]
3437
3459
  # Size of the page, can be limited by server. If zero server returns
3438
3460
  # a page of max size 100.
3439
3461
  # @!attribute [rw] order_by
3440
- # @return [String]
3462
+ # @return [::String]
3441
3463
  # Comma separated list of fields to order by,
3442
3464
  # followed by `asc` or `desc` postfix. This list is case-insensitive,
3443
3465
  # default sorting order is ascending, redundant space characters are
@@ -3453,101 +3475,100 @@ module Google
3453
3475
  # - `name`: corresponds to resource name.
3454
3476
  # - `display_name`: corresponds to info type's display name.
3455
3477
  # @!attribute [rw] location_id
3456
- # @return [String]
3457
- # The geographic location where stored infoTypes will be retrieved from.
3458
- # Use `-` for all locations. Reserved for future extensions.
3478
+ # @return [::String]
3479
+ # Deprecated. This field has no effect.
3459
3480
  class ListStoredInfoTypesRequest
3460
- include Google::Protobuf::MessageExts
3461
- extend Google::Protobuf::MessageExts::ClassMethods
3481
+ include ::Google::Protobuf::MessageExts
3482
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3462
3483
  end
3463
3484
 
3464
3485
  # Response message for ListStoredInfoTypes.
3465
3486
  # @!attribute [rw] stored_info_types
3466
- # @return [Array<Google::Cloud::Dlp::V2::StoredInfoType>]
3487
+ # @return [::Array<::Google::Cloud::Dlp::V2::StoredInfoType>]
3467
3488
  # List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest.
3468
3489
  # @!attribute [rw] next_page_token
3469
- # @return [String]
3490
+ # @return [::String]
3470
3491
  # If the next page is available then the next page token to be used
3471
3492
  # in following ListStoredInfoTypes request.
3472
3493
  class ListStoredInfoTypesResponse
3473
- include Google::Protobuf::MessageExts
3474
- extend Google::Protobuf::MessageExts::ClassMethods
3494
+ include ::Google::Protobuf::MessageExts
3495
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3475
3496
  end
3476
3497
 
3477
3498
  # Request message for DeleteStoredInfoType.
3478
3499
  # @!attribute [rw] name
3479
- # @return [String]
3500
+ # @return [::String]
3480
3501
  # Required. Resource name of the organization and storedInfoType to be
3481
3502
  # deleted, for example `organizations/433245324/storedInfoTypes/432452342` or
3482
3503
  # projects/project-id/storedInfoTypes/432452342.
3483
3504
  class DeleteStoredInfoTypeRequest
3484
- include Google::Protobuf::MessageExts
3485
- extend Google::Protobuf::MessageExts::ClassMethods
3505
+ include ::Google::Protobuf::MessageExts
3506
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3486
3507
  end
3487
3508
 
3488
3509
  # Request to search for potentially sensitive info in a custom location.
3489
3510
  # @!attribute [rw] name
3490
- # @return [String]
3511
+ # @return [::String]
3491
3512
  # Required. Resource name of the trigger to execute a hybrid inspect on, for
3492
3513
  # example `projects/dlp-test-project/jobTriggers/53234423`.
3493
3514
  # @!attribute [rw] hybrid_item
3494
- # @return [Google::Cloud::Dlp::V2::HybridContentItem]
3515
+ # @return [::Google::Cloud::Dlp::V2::HybridContentItem]
3495
3516
  # The item to inspect.
3496
3517
  class HybridInspectJobTriggerRequest
3497
- include Google::Protobuf::MessageExts
3498
- extend Google::Protobuf::MessageExts::ClassMethods
3518
+ include ::Google::Protobuf::MessageExts
3519
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3499
3520
  end
3500
3521
 
3501
3522
  # Request to search for potentially sensitive info in a custom location.
3502
3523
  # @!attribute [rw] name
3503
- # @return [String]
3524
+ # @return [::String]
3504
3525
  # Required. Resource name of the job to execute a hybrid inspect on, for
3505
3526
  # example `projects/dlp-test-project/dlpJob/53234423`.
3506
3527
  # @!attribute [rw] hybrid_item
3507
- # @return [Google::Cloud::Dlp::V2::HybridContentItem]
3528
+ # @return [::Google::Cloud::Dlp::V2::HybridContentItem]
3508
3529
  # The item to inspect.
3509
3530
  class HybridInspectDlpJobRequest
3510
- include Google::Protobuf::MessageExts
3511
- extend Google::Protobuf::MessageExts::ClassMethods
3531
+ include ::Google::Protobuf::MessageExts
3532
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3512
3533
  end
3513
3534
 
3514
3535
  # An individual hybrid item to inspect. Will be stored temporarily during
3515
3536
  # processing.
3516
3537
  # @!attribute [rw] item
3517
- # @return [Google::Cloud::Dlp::V2::ContentItem]
3538
+ # @return [::Google::Cloud::Dlp::V2::ContentItem]
3518
3539
  # The item to inspect.
3519
3540
  # @!attribute [rw] finding_details
3520
- # @return [Google::Cloud::Dlp::V2::HybridFindingDetails]
3541
+ # @return [::Google::Cloud::Dlp::V2::HybridFindingDetails]
3521
3542
  # Supplementary information that will be added to each finding.
3522
3543
  class HybridContentItem
3523
- include Google::Protobuf::MessageExts
3524
- extend Google::Protobuf::MessageExts::ClassMethods
3544
+ include ::Google::Protobuf::MessageExts
3545
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3525
3546
  end
3526
3547
 
3527
3548
  # Populate to associate additional data with each finding.
3528
3549
  # @!attribute [rw] container_details
3529
- # @return [Google::Cloud::Dlp::V2::Container]
3550
+ # @return [::Google::Cloud::Dlp::V2::Container]
3530
3551
  # Details about the container where the content being inspected is from.
3531
3552
  # @!attribute [rw] file_offset
3532
- # @return [Integer]
3553
+ # @return [::Integer]
3533
3554
  # Offset in bytes of the line, from the beginning of the file, where the
3534
3555
  # finding is located. Populate if the item being scanned is only part of a
3535
3556
  # bigger item, such as a shard of a file and you want to track the absolute
3536
3557
  # position of the finding.
3537
3558
  # @!attribute [rw] row_offset
3538
- # @return [Integer]
3559
+ # @return [::Integer]
3539
3560
  # Offset of the row for tables. Populate if the row(s) being scanned are
3540
3561
  # part of a bigger dataset and you want to keep track of their absolute
3541
3562
  # position.
3542
3563
  # @!attribute [rw] table_options
3543
- # @return [Google::Cloud::Dlp::V2::TableOptions]
3564
+ # @return [::Google::Cloud::Dlp::V2::TableOptions]
3544
3565
  # If the container is a table, additional information to make findings
3545
3566
  # meaningful such as the columns that are primary keys. If not known ahead
3546
3567
  # of time, can also be set within each inspect hybrid call and the two
3547
3568
  # will be merged. Note that identifying_fields will only be stored to
3548
3569
  # BigQuery, and only if the BigQuery action has been included.
3549
3570
  # @!attribute [rw] labels
3550
- # @return [Google::Protobuf::Map{String => String}]
3571
+ # @return [::Google::Protobuf::Map{::String => ::String}]
3551
3572
  # Labels to represent user provided metadata about the data being inspected.
3552
3573
  # If configured by the job, some key values may be required.
3553
3574
  # The labels associated with `Finding`'s produced by hybrid
@@ -3565,23 +3586,23 @@ module Google
3565
3586
  # * `"environment" : "production"`
3566
3587
  # * `"pipeline" : "etl"`
3567
3588
  class HybridFindingDetails
3568
- include Google::Protobuf::MessageExts
3569
- extend Google::Protobuf::MessageExts::ClassMethods
3589
+ include ::Google::Protobuf::MessageExts
3590
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3570
3591
 
3571
3592
  # @!attribute [rw] key
3572
- # @return [String]
3593
+ # @return [::String]
3573
3594
  # @!attribute [rw] value
3574
- # @return [String]
3595
+ # @return [::String]
3575
3596
  class LabelsEntry
3576
- include Google::Protobuf::MessageExts
3577
- extend Google::Protobuf::MessageExts::ClassMethods
3597
+ include ::Google::Protobuf::MessageExts
3598
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3578
3599
  end
3579
3600
  end
3580
3601
 
3581
3602
  # Quota exceeded errors will be thrown once quota has been met.
3582
3603
  class HybridInspectResponse
3583
- include Google::Protobuf::MessageExts
3584
- extend Google::Protobuf::MessageExts::ClassMethods
3604
+ include ::Google::Protobuf::MessageExts
3605
+ extend ::Google::Protobuf::MessageExts::ClassMethods
3585
3606
  end
3586
3607
 
3587
3608
  # Operators available for comparing the value of fields.
@@ -3652,6 +3673,15 @@ module Google
3652
3673
  CONTENT_IMAGE = 2
3653
3674
  end
3654
3675
 
3676
+ # Type of metadata containing the finding.
3677
+ module MetadataType
3678
+ # Unused
3679
+ METADATATYPE_UNSPECIFIED = 0
3680
+
3681
+ # General file metadata provided by GCS.
3682
+ STORAGE_METADATA = 2
3683
+ end
3684
+
3655
3685
  # Parts of the APIs which use certain infoTypes.
3656
3686
  module InfoTypeSupportedBy
3657
3687
  # Unused.