google-cloud-dlp-v2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,213 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/privacy/dlp/v2/dlp.proto for package 'Google.Cloud.Dlp.V2'
3
+ # Original file comments:
4
+ # Copyright 2020 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/privacy/dlp/v2/dlp_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Dlp
25
+ module V2
26
+ module DlpService
27
+ # The Cloud Data Loss Prevention (DLP) API is a service that allows clients
28
+ # to detect the presence of Personally Identifiable Information (PII) and other
29
+ # privacy-sensitive data in user-supplied, unstructured data streams, like text
30
+ # blocks or images.
31
+ # The service also includes methods for sensitive data redaction and
32
+ # scheduling of data scans on Google Cloud Platform based data sets.
33
+ #
34
+ # To learn more about concepts and find how-to guides see
35
+ # https://cloud.google.com/dlp/docs/.
36
+ class Service
37
+
38
+ include GRPC::GenericService
39
+
40
+ self.marshal_class_method = :encode
41
+ self.unmarshal_class_method = :decode
42
+ self.service_name = 'google.privacy.dlp.v2.DlpService'
43
+
44
+ # Finds potentially sensitive info in content.
45
+ # This method has limits on input size, processing time, and output size.
46
+ #
47
+ # When no InfoTypes or CustomInfoTypes are specified in this request, the
48
+ # system will automatically choose what detectors to run. By default this may
49
+ # be all types, but may change over time as detectors are updated.
50
+ #
51
+ # For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images
52
+ # and https://cloud.google.com/dlp/docs/inspecting-text,
53
+ rpc :InspectContent, Google::Cloud::Dlp::V2::InspectContentRequest, Google::Cloud::Dlp::V2::InspectContentResponse
54
+ # Redacts potentially sensitive info from an image.
55
+ # This method has limits on input size, processing time, and output size.
56
+ # See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to
57
+ # learn more.
58
+ #
59
+ # When no InfoTypes or CustomInfoTypes are specified in this request, the
60
+ # system will automatically choose what detectors to run. By default this may
61
+ # be all types, but may change over time as detectors are updated.
62
+ rpc :RedactImage, Google::Cloud::Dlp::V2::RedactImageRequest, Google::Cloud::Dlp::V2::RedactImageResponse
63
+ # De-identifies potentially sensitive info from a ContentItem.
64
+ # This method has limits on input size and output size.
65
+ # See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
66
+ # learn more.
67
+ #
68
+ # When no InfoTypes or CustomInfoTypes are specified in this request, the
69
+ # system will automatically choose what detectors to run. By default this may
70
+ # be all types, but may change over time as detectors are updated.
71
+ rpc :DeidentifyContent, Google::Cloud::Dlp::V2::DeidentifyContentRequest, Google::Cloud::Dlp::V2::DeidentifyContentResponse
72
+ # Re-identifies content that has been de-identified.
73
+ # See
74
+ # https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example
75
+ # to learn more.
76
+ rpc :ReidentifyContent, Google::Cloud::Dlp::V2::ReidentifyContentRequest, Google::Cloud::Dlp::V2::ReidentifyContentResponse
77
+ # Returns a list of the sensitive information types that the DLP API
78
+ # supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
79
+ # learn more.
80
+ rpc :ListInfoTypes, Google::Cloud::Dlp::V2::ListInfoTypesRequest, Google::Cloud::Dlp::V2::ListInfoTypesResponse
81
+ # Creates an InspectTemplate for re-using frequently used configuration
82
+ # for inspecting content, images, and storage.
83
+ # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
84
+ rpc :CreateInspectTemplate, Google::Cloud::Dlp::V2::CreateInspectTemplateRequest, Google::Cloud::Dlp::V2::InspectTemplate
85
+ # Updates the InspectTemplate.
86
+ # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
87
+ rpc :UpdateInspectTemplate, Google::Cloud::Dlp::V2::UpdateInspectTemplateRequest, Google::Cloud::Dlp::V2::InspectTemplate
88
+ # Gets an InspectTemplate.
89
+ # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
90
+ rpc :GetInspectTemplate, Google::Cloud::Dlp::V2::GetInspectTemplateRequest, Google::Cloud::Dlp::V2::InspectTemplate
91
+ # Lists InspectTemplates.
92
+ # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
93
+ rpc :ListInspectTemplates, Google::Cloud::Dlp::V2::ListInspectTemplatesRequest, Google::Cloud::Dlp::V2::ListInspectTemplatesResponse
94
+ # Deletes an InspectTemplate.
95
+ # See https://cloud.google.com/dlp/docs/creating-templates to learn more.
96
+ rpc :DeleteInspectTemplate, Google::Cloud::Dlp::V2::DeleteInspectTemplateRequest, Google::Protobuf::Empty
97
+ # Creates a DeidentifyTemplate for re-using frequently used configuration
98
+ # for de-identifying content, images, and storage.
99
+ # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
100
+ # more.
101
+ rpc :CreateDeidentifyTemplate, Google::Cloud::Dlp::V2::CreateDeidentifyTemplateRequest, Google::Cloud::Dlp::V2::DeidentifyTemplate
102
+ # Updates the DeidentifyTemplate.
103
+ # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
104
+ # more.
105
+ rpc :UpdateDeidentifyTemplate, Google::Cloud::Dlp::V2::UpdateDeidentifyTemplateRequest, Google::Cloud::Dlp::V2::DeidentifyTemplate
106
+ # Gets a DeidentifyTemplate.
107
+ # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
108
+ # more.
109
+ rpc :GetDeidentifyTemplate, Google::Cloud::Dlp::V2::GetDeidentifyTemplateRequest, Google::Cloud::Dlp::V2::DeidentifyTemplate
110
+ # Lists DeidentifyTemplates.
111
+ # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
112
+ # more.
113
+ rpc :ListDeidentifyTemplates, Google::Cloud::Dlp::V2::ListDeidentifyTemplatesRequest, Google::Cloud::Dlp::V2::ListDeidentifyTemplatesResponse
114
+ # Deletes a DeidentifyTemplate.
115
+ # See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
116
+ # more.
117
+ rpc :DeleteDeidentifyTemplate, Google::Cloud::Dlp::V2::DeleteDeidentifyTemplateRequest, Google::Protobuf::Empty
118
+ # Creates a job trigger to run DLP actions such as scanning storage for
119
+ # sensitive information on a set schedule.
120
+ # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
121
+ rpc :CreateJobTrigger, Google::Cloud::Dlp::V2::CreateJobTriggerRequest, Google::Cloud::Dlp::V2::JobTrigger
122
+ # Updates a job trigger.
123
+ # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
124
+ rpc :UpdateJobTrigger, Google::Cloud::Dlp::V2::UpdateJobTriggerRequest, Google::Cloud::Dlp::V2::JobTrigger
125
+ # Inspect hybrid content and store findings to a trigger. The inspection
126
+ # will be processed asynchronously. To review the findings monitor the
127
+ # jobs within the trigger.
128
+ # Early access feature is in a pre-release state and might change or have
129
+ # limited support. For more information, see
130
+ # https://cloud.google.com/products#product-launch-stages.
131
+ rpc :HybridInspectJobTrigger, Google::Cloud::Dlp::V2::HybridInspectJobTriggerRequest, Google::Cloud::Dlp::V2::HybridInspectResponse
132
+ # Gets a job trigger.
133
+ # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
134
+ rpc :GetJobTrigger, Google::Cloud::Dlp::V2::GetJobTriggerRequest, Google::Cloud::Dlp::V2::JobTrigger
135
+ # Lists job triggers.
136
+ # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
137
+ rpc :ListJobTriggers, Google::Cloud::Dlp::V2::ListJobTriggersRequest, Google::Cloud::Dlp::V2::ListJobTriggersResponse
138
+ # Deletes a job trigger.
139
+ # See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
140
+ rpc :DeleteJobTrigger, Google::Cloud::Dlp::V2::DeleteJobTriggerRequest, Google::Protobuf::Empty
141
+ # Activate a job trigger. Causes the immediate execute of a trigger
142
+ # instead of waiting on the trigger event to occur.
143
+ rpc :ActivateJobTrigger, Google::Cloud::Dlp::V2::ActivateJobTriggerRequest, Google::Cloud::Dlp::V2::DlpJob
144
+ # Creates a new job to inspect storage or calculate risk metrics.
145
+ # See https://cloud.google.com/dlp/docs/inspecting-storage and
146
+ # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
147
+ #
148
+ # When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
149
+ # system will automatically choose what detectors to run. By default this may
150
+ # be all types, but may change over time as detectors are updated.
151
+ rpc :CreateDlpJob, Google::Cloud::Dlp::V2::CreateDlpJobRequest, Google::Cloud::Dlp::V2::DlpJob
152
+ # Lists DlpJobs that match the specified filter in the request.
153
+ # See https://cloud.google.com/dlp/docs/inspecting-storage and
154
+ # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
155
+ rpc :ListDlpJobs, Google::Cloud::Dlp::V2::ListDlpJobsRequest, Google::Cloud::Dlp::V2::ListDlpJobsResponse
156
+ # Gets the latest state of a long-running DlpJob.
157
+ # See https://cloud.google.com/dlp/docs/inspecting-storage and
158
+ # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
159
+ rpc :GetDlpJob, Google::Cloud::Dlp::V2::GetDlpJobRequest, Google::Cloud::Dlp::V2::DlpJob
160
+ # Deletes a long-running DlpJob. This method indicates that the client is
161
+ # no longer interested in the DlpJob result. The job will be cancelled if
162
+ # possible.
163
+ # See https://cloud.google.com/dlp/docs/inspecting-storage and
164
+ # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
165
+ rpc :DeleteDlpJob, Google::Cloud::Dlp::V2::DeleteDlpJobRequest, Google::Protobuf::Empty
166
+ # Starts asynchronous cancellation on a long-running DlpJob. The server
167
+ # makes a best effort to cancel the DlpJob, but success is not
168
+ # guaranteed.
169
+ # See https://cloud.google.com/dlp/docs/inspecting-storage and
170
+ # https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
171
+ rpc :CancelDlpJob, Google::Cloud::Dlp::V2::CancelDlpJobRequest, Google::Protobuf::Empty
172
+ # Creates a pre-built stored infoType to be used for inspection.
173
+ # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
174
+ # learn more.
175
+ rpc :CreateStoredInfoType, Google::Cloud::Dlp::V2::CreateStoredInfoTypeRequest, Google::Cloud::Dlp::V2::StoredInfoType
176
+ # Updates the stored infoType by creating a new version. The existing version
177
+ # will continue to be used until the new version is ready.
178
+ # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
179
+ # learn more.
180
+ rpc :UpdateStoredInfoType, Google::Cloud::Dlp::V2::UpdateStoredInfoTypeRequest, Google::Cloud::Dlp::V2::StoredInfoType
181
+ # Gets a stored infoType.
182
+ # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
183
+ # learn more.
184
+ rpc :GetStoredInfoType, Google::Cloud::Dlp::V2::GetStoredInfoTypeRequest, Google::Cloud::Dlp::V2::StoredInfoType
185
+ # Lists stored infoTypes.
186
+ # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
187
+ # learn more.
188
+ rpc :ListStoredInfoTypes, Google::Cloud::Dlp::V2::ListStoredInfoTypesRequest, Google::Cloud::Dlp::V2::ListStoredInfoTypesResponse
189
+ # Deletes a stored infoType.
190
+ # See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
191
+ # learn more.
192
+ rpc :DeleteStoredInfoType, Google::Cloud::Dlp::V2::DeleteStoredInfoTypeRequest, Google::Protobuf::Empty
193
+ # Inspect hybrid content and store findings to a job.
194
+ # To review the findings inspect the job. Inspection will occur
195
+ # asynchronously.
196
+ # Early access feature is in a pre-release state and might change or have
197
+ # limited support. For more information, see
198
+ # https://cloud.google.com/products#product-launch-stages.
199
+ rpc :HybridInspectDlpJob, Google::Cloud::Dlp::V2::HybridInspectDlpJobRequest, Google::Cloud::Dlp::V2::HybridInspectResponse
200
+ # Finish a running hybrid DlpJob. Triggers the finalization steps and running
201
+ # of any enabled actions that have not yet run.
202
+ # Early access feature is in a pre-release state and might change or have
203
+ # limited support. For more information, see
204
+ # https://cloud.google.com/products#product-launch-stages.
205
+ rpc :FinishDlpJob, Google::Cloud::Dlp::V2::FinishDlpJobRequest, Google::Protobuf::Empty
206
+ end
207
+
208
+ Stub = Service.rpc_stub_class
209
+ end
210
+ end
211
+ end
212
+ end
213
+ end
@@ -0,0 +1,247 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/privacy/dlp/v2/storage.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/resource_pb'
7
+ require 'google/protobuf/timestamp_pb'
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("google/privacy/dlp/v2/storage.proto", :syntax => :proto3) do
10
+ add_message "google.privacy.dlp.v2.InfoType" do
11
+ optional :name, :string, 1
12
+ end
13
+ add_message "google.privacy.dlp.v2.StoredType" do
14
+ optional :name, :string, 1
15
+ optional :create_time, :message, 2, "google.protobuf.Timestamp"
16
+ end
17
+ add_message "google.privacy.dlp.v2.CustomInfoType" do
18
+ optional :info_type, :message, 1, "google.privacy.dlp.v2.InfoType"
19
+ optional :likelihood, :enum, 6, "google.privacy.dlp.v2.Likelihood"
20
+ repeated :detection_rules, :message, 7, "google.privacy.dlp.v2.CustomInfoType.DetectionRule"
21
+ optional :exclusion_type, :enum, 8, "google.privacy.dlp.v2.CustomInfoType.ExclusionType"
22
+ oneof :type do
23
+ optional :dictionary, :message, 2, "google.privacy.dlp.v2.CustomInfoType.Dictionary"
24
+ optional :regex, :message, 3, "google.privacy.dlp.v2.CustomInfoType.Regex"
25
+ optional :surrogate_type, :message, 4, "google.privacy.dlp.v2.CustomInfoType.SurrogateType"
26
+ optional :stored_type, :message, 5, "google.privacy.dlp.v2.StoredType"
27
+ end
28
+ end
29
+ add_message "google.privacy.dlp.v2.CustomInfoType.Dictionary" do
30
+ oneof :source do
31
+ optional :word_list, :message, 1, "google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList"
32
+ optional :cloud_storage_path, :message, 3, "google.privacy.dlp.v2.CloudStoragePath"
33
+ end
34
+ end
35
+ add_message "google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList" do
36
+ repeated :words, :string, 1
37
+ end
38
+ add_message "google.privacy.dlp.v2.CustomInfoType.Regex" do
39
+ optional :pattern, :string, 1
40
+ repeated :group_indexes, :int32, 2
41
+ end
42
+ add_message "google.privacy.dlp.v2.CustomInfoType.SurrogateType" do
43
+ end
44
+ add_message "google.privacy.dlp.v2.CustomInfoType.DetectionRule" do
45
+ oneof :type do
46
+ optional :hotword_rule, :message, 1, "google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule"
47
+ end
48
+ end
49
+ add_message "google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity" do
50
+ optional :window_before, :int32, 1
51
+ optional :window_after, :int32, 2
52
+ end
53
+ add_message "google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment" do
54
+ oneof :adjustment do
55
+ optional :fixed_likelihood, :enum, 1, "google.privacy.dlp.v2.Likelihood"
56
+ optional :relative_likelihood, :int32, 2
57
+ end
58
+ end
59
+ add_message "google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule" do
60
+ optional :hotword_regex, :message, 1, "google.privacy.dlp.v2.CustomInfoType.Regex"
61
+ optional :proximity, :message, 2, "google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity"
62
+ optional :likelihood_adjustment, :message, 3, "google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment"
63
+ end
64
+ add_enum "google.privacy.dlp.v2.CustomInfoType.ExclusionType" do
65
+ value :EXCLUSION_TYPE_UNSPECIFIED, 0
66
+ value :EXCLUSION_TYPE_EXCLUDE, 1
67
+ end
68
+ add_message "google.privacy.dlp.v2.FieldId" do
69
+ optional :name, :string, 1
70
+ end
71
+ add_message "google.privacy.dlp.v2.PartitionId" do
72
+ optional :project_id, :string, 2
73
+ optional :namespace_id, :string, 4
74
+ end
75
+ add_message "google.privacy.dlp.v2.KindExpression" do
76
+ optional :name, :string, 1
77
+ end
78
+ add_message "google.privacy.dlp.v2.DatastoreOptions" do
79
+ optional :partition_id, :message, 1, "google.privacy.dlp.v2.PartitionId"
80
+ optional :kind, :message, 2, "google.privacy.dlp.v2.KindExpression"
81
+ end
82
+ add_message "google.privacy.dlp.v2.CloudStorageRegexFileSet" do
83
+ optional :bucket_name, :string, 1
84
+ repeated :include_regex, :string, 2
85
+ repeated :exclude_regex, :string, 3
86
+ end
87
+ add_message "google.privacy.dlp.v2.CloudStorageOptions" do
88
+ optional :file_set, :message, 1, "google.privacy.dlp.v2.CloudStorageOptions.FileSet"
89
+ optional :bytes_limit_per_file, :int64, 4
90
+ optional :bytes_limit_per_file_percent, :int32, 8
91
+ repeated :file_types, :enum, 5, "google.privacy.dlp.v2.FileType"
92
+ optional :sample_method, :enum, 6, "google.privacy.dlp.v2.CloudStorageOptions.SampleMethod"
93
+ optional :files_limit_percent, :int32, 7
94
+ end
95
+ add_message "google.privacy.dlp.v2.CloudStorageOptions.FileSet" do
96
+ optional :url, :string, 1
97
+ optional :regex_file_set, :message, 2, "google.privacy.dlp.v2.CloudStorageRegexFileSet"
98
+ end
99
+ add_enum "google.privacy.dlp.v2.CloudStorageOptions.SampleMethod" do
100
+ value :SAMPLE_METHOD_UNSPECIFIED, 0
101
+ value :TOP, 1
102
+ value :RANDOM_START, 2
103
+ end
104
+ add_message "google.privacy.dlp.v2.CloudStorageFileSet" do
105
+ optional :url, :string, 1
106
+ end
107
+ add_message "google.privacy.dlp.v2.CloudStoragePath" do
108
+ optional :path, :string, 1
109
+ end
110
+ add_message "google.privacy.dlp.v2.BigQueryOptions" do
111
+ optional :table_reference, :message, 1, "google.privacy.dlp.v2.BigQueryTable"
112
+ repeated :identifying_fields, :message, 2, "google.privacy.dlp.v2.FieldId"
113
+ optional :rows_limit, :int64, 3
114
+ optional :rows_limit_percent, :int32, 6
115
+ optional :sample_method, :enum, 4, "google.privacy.dlp.v2.BigQueryOptions.SampleMethod"
116
+ repeated :excluded_fields, :message, 5, "google.privacy.dlp.v2.FieldId"
117
+ end
118
+ add_enum "google.privacy.dlp.v2.BigQueryOptions.SampleMethod" do
119
+ value :SAMPLE_METHOD_UNSPECIFIED, 0
120
+ value :TOP, 1
121
+ value :RANDOM_START, 2
122
+ end
123
+ add_message "google.privacy.dlp.v2.StorageConfig" do
124
+ optional :timespan_config, :message, 6, "google.privacy.dlp.v2.StorageConfig.TimespanConfig"
125
+ oneof :type do
126
+ optional :datastore_options, :message, 2, "google.privacy.dlp.v2.DatastoreOptions"
127
+ optional :cloud_storage_options, :message, 3, "google.privacy.dlp.v2.CloudStorageOptions"
128
+ optional :big_query_options, :message, 4, "google.privacy.dlp.v2.BigQueryOptions"
129
+ optional :hybrid_options, :message, 9, "google.privacy.dlp.v2.HybridOptions"
130
+ end
131
+ end
132
+ add_message "google.privacy.dlp.v2.StorageConfig.TimespanConfig" do
133
+ optional :start_time, :message, 1, "google.protobuf.Timestamp"
134
+ optional :end_time, :message, 2, "google.protobuf.Timestamp"
135
+ optional :timestamp_field, :message, 3, "google.privacy.dlp.v2.FieldId"
136
+ optional :enable_auto_population_of_timespan_config, :bool, 4
137
+ end
138
+ add_message "google.privacy.dlp.v2.HybridOptions" do
139
+ optional :description, :string, 1
140
+ repeated :required_finding_label_keys, :string, 2
141
+ map :labels, :string, :string, 3
142
+ optional :table_options, :message, 4, "google.privacy.dlp.v2.TableOptions"
143
+ end
144
+ add_message "google.privacy.dlp.v2.BigQueryKey" do
145
+ optional :table_reference, :message, 1, "google.privacy.dlp.v2.BigQueryTable"
146
+ optional :row_number, :int64, 2
147
+ end
148
+ add_message "google.privacy.dlp.v2.DatastoreKey" do
149
+ optional :entity_key, :message, 1, "google.privacy.dlp.v2.Key"
150
+ end
151
+ add_message "google.privacy.dlp.v2.Key" do
152
+ optional :partition_id, :message, 1, "google.privacy.dlp.v2.PartitionId"
153
+ repeated :path, :message, 2, "google.privacy.dlp.v2.Key.PathElement"
154
+ end
155
+ add_message "google.privacy.dlp.v2.Key.PathElement" do
156
+ optional :kind, :string, 1
157
+ oneof :id_type do
158
+ optional :id, :int64, 2
159
+ optional :name, :string, 3
160
+ end
161
+ end
162
+ add_message "google.privacy.dlp.v2.RecordKey" do
163
+ repeated :id_values, :string, 5
164
+ oneof :type do
165
+ optional :datastore_key, :message, 2, "google.privacy.dlp.v2.DatastoreKey"
166
+ optional :big_query_key, :message, 3, "google.privacy.dlp.v2.BigQueryKey"
167
+ end
168
+ end
169
+ add_message "google.privacy.dlp.v2.BigQueryTable" do
170
+ optional :project_id, :string, 1
171
+ optional :dataset_id, :string, 2
172
+ optional :table_id, :string, 3
173
+ end
174
+ add_message "google.privacy.dlp.v2.BigQueryField" do
175
+ optional :table, :message, 1, "google.privacy.dlp.v2.BigQueryTable"
176
+ optional :field, :message, 2, "google.privacy.dlp.v2.FieldId"
177
+ end
178
+ add_message "google.privacy.dlp.v2.EntityId" do
179
+ optional :field, :message, 1, "google.privacy.dlp.v2.FieldId"
180
+ end
181
+ add_message "google.privacy.dlp.v2.TableOptions" do
182
+ repeated :identifying_fields, :message, 1, "google.privacy.dlp.v2.FieldId"
183
+ end
184
+ add_enum "google.privacy.dlp.v2.Likelihood" do
185
+ value :LIKELIHOOD_UNSPECIFIED, 0
186
+ value :VERY_UNLIKELY, 1
187
+ value :UNLIKELY, 2
188
+ value :POSSIBLE, 3
189
+ value :LIKELY, 4
190
+ value :VERY_LIKELY, 5
191
+ end
192
+ add_enum "google.privacy.dlp.v2.FileType" do
193
+ value :FILE_TYPE_UNSPECIFIED, 0
194
+ value :BINARY_FILE, 1
195
+ value :TEXT_FILE, 2
196
+ value :IMAGE, 3
197
+ value :AVRO, 7
198
+ end
199
+ end
200
+ end
201
+
202
+ module Google
203
+ module Cloud
204
+ module Dlp
205
+ module V2
206
+ InfoType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.InfoType").msgclass
207
+ StoredType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StoredType").msgclass
208
+ CustomInfoType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType").msgclass
209
+ CustomInfoType::Dictionary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.Dictionary").msgclass
210
+ CustomInfoType::Dictionary::WordList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList").msgclass
211
+ CustomInfoType::Regex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.Regex").msgclass
212
+ CustomInfoType::SurrogateType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.SurrogateType").msgclass
213
+ CustomInfoType::DetectionRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.DetectionRule").msgclass
214
+ CustomInfoType::DetectionRule::Proximity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity").msgclass
215
+ CustomInfoType::DetectionRule::LikelihoodAdjustment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment").msgclass
216
+ CustomInfoType::DetectionRule::HotwordRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule").msgclass
217
+ CustomInfoType::ExclusionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CustomInfoType.ExclusionType").enummodule
218
+ FieldId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.FieldId").msgclass
219
+ PartitionId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.PartitionId").msgclass
220
+ KindExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.KindExpression").msgclass
221
+ DatastoreOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DatastoreOptions").msgclass
222
+ CloudStorageRegexFileSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStorageRegexFileSet").msgclass
223
+ CloudStorageOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStorageOptions").msgclass
224
+ CloudStorageOptions::FileSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStorageOptions.FileSet").msgclass
225
+ CloudStorageOptions::SampleMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStorageOptions.SampleMethod").enummodule
226
+ CloudStorageFileSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStorageFileSet").msgclass
227
+ CloudStoragePath = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.CloudStoragePath").msgclass
228
+ BigQueryOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryOptions").msgclass
229
+ BigQueryOptions::SampleMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryOptions.SampleMethod").enummodule
230
+ StorageConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StorageConfig").msgclass
231
+ StorageConfig::TimespanConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.StorageConfig.TimespanConfig").msgclass
232
+ HybridOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.HybridOptions").msgclass
233
+ BigQueryKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryKey").msgclass
234
+ DatastoreKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.DatastoreKey").msgclass
235
+ Key = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Key").msgclass
236
+ Key::PathElement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Key.PathElement").msgclass
237
+ RecordKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.RecordKey").msgclass
238
+ BigQueryTable = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryTable").msgclass
239
+ BigQueryField = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.BigQueryField").msgclass
240
+ EntityId = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.EntityId").msgclass
241
+ TableOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.TableOptions").msgclass
242
+ Likelihood = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.Likelihood").enummodule
243
+ FileType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.privacy.dlp.v2.FileType").enummodule
244
+ end
245
+ end
246
+ end
247
+ end