Class: Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/privacy/dlp/v2/dlp.rb

Overview

Result of a risk analysis operation request.

Defined Under Namespace

Classes: CategoricalStatsResult, DeltaPresenceEstimationResult, KAnonymityResult, KMapEstimationResult, LDiversityResult, NumericalStatsResult, RequestedRiskAnalysisOptions

Instance Attribute Summary collapse

Instance Attribute Details

#categorical_stats_result::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::CategoricalStatsResult

Returns Categorical stats result

Note: The following fields are mutually exclusive: categorical_stats_result, numerical_stats_result, k_anonymity_result, l_diversity_result, k_map_estimation_result, delta_presence_estimation_result. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::CategoricalStatsResult)

    Categorical stats result

    Note: The following fields are mutually exclusive: categorical_stats_result, numerical_stats_result, k_anonymity_result, l_diversity_result, k_map_estimation_result, delta_presence_estimation_result. If a field in that set is populated, all other fields in the set will automatically be cleared.



2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2252

class AnalyzeDataSourceRiskDetails
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Result of the numerical stats computation.
  # @!attribute [rw] min_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Minimum value appearing in the column.
  # @!attribute [rw] max_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Maximum value appearing in the column.
  # @!attribute [rw] quantile_values
  #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
  #     List of 99 values that partition the set of field values into 100 equal
  #     sized buckets.
  class NumericalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Result of the categorical stats computation.
  # @!attribute [rw] value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::CategoricalStatsResult::CategoricalStatsHistogramBucket>]
  #     Histogram of value frequencies in the column.
  class CategoricalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Histogram of value frequencies in the column.
    # @!attribute [rw] value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the value frequency of the values in this bucket.
    # @!attribute [rw] value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the value frequency of the values in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of values in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Sample of value frequencies in this bucket. The total number of
    #     values returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct values in this bucket.
    class CategoricalStatsHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the k-anonymity computation.
  # @!attribute [rw] equivalence_class_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityHistogramBucket>]
  #     Histogram of k-anonymity equivalence classes.
  class KAnonymityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Set of values defining the equivalence class. One value per
    #     quasi-identifier column in the original KAnonymity metric message.
    #     The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the equivalence class, for example number of rows with the
    #     above set of values.
    class KAnonymityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of k-anonymity equivalence classes.
    # @!attribute [rw] equivalence_class_size_lower_bound
    #   @return [::Integer]
    #     Lower bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] equivalence_class_size_upper_bound
    #   @return [::Integer]
    #     Upper bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class KAnonymityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the l-diversity computation.
  # @!attribute [rw] sensitive_value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityHistogramBucket>]
  #     Histogram of l-diversity equivalence class sensitive value frequencies.
  class LDiversityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Quasi-identifier values defining the k-anonymity equivalence
    #     class. The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the k-anonymity equivalence class.
    # @!attribute [rw] num_distinct_sensitive_values
    #   @return [::Integer]
    #     Number of distinct sensitive values in this equivalence class.
    # @!attribute [rw] top_sensitive_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Estimated frequencies of top sensitive values.
    class LDiversityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of l-diversity equivalence class sensitive value frequencies.
    # @!attribute [rw] sensitive_value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] sensitive_value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class LDiversityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the reidentifiability analysis. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] k_map_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationHistogramBucket>]
  #     The intervals [min_anonymity, max_anonymity] do not overlap. If a value
  #     doesn't correspond to any such interval, the associated frequency is
  #     zero. For example, the following records:
  #       \\{min_anonymity: 1, max_anonymity: 1, frequency: 17}
  #       \\{min_anonymity: 2, max_anonymity: 3, frequency: 42}
  #       \\{min_anonymity: 5, max_anonymity: 10, frequency: 99}
  #     mean that there are no record with an estimated anonymity of 4, 5, or
  #     larger than 10.
  class KMapEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_anonymity
    #   @return [::Integer]
    #     The estimated anonymity for these quasi-identifier values.
    class KMapEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A KMapEstimationHistogramBucket message with the following values:
    #   min_anonymity: 3
    #   max_anonymity: 5
    #   frequency: 42
    # means that there are 42 records whose quasi-identifier values correspond
    # to 3, 4 or 5 people in the overlying population. An important particular
    # case is when min_anonymity = max_anonymity = 1: the frequency field then
    # corresponds to the number of uniquely identifiable records.
    # @!attribute [rw] min_anonymity
    #   @return [::Integer]
    #     Always positive.
    # @!attribute [rw] max_anonymity
    #   @return [::Integer]
    #     Always greater than or equal to min_anonymity.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these anonymity bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class KMapEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the δ-presence computation. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] delta_presence_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationHistogramBucket>]
  #     The intervals [min_probability, max_probability) do not overlap. If a
  #     value doesn't correspond to any such interval, the associated frequency
  #     is zero. For example, the following records:
  #       \\{min_probability: 0, max_probability: 0.1, frequency: 17}
  #       \\{min_probability: 0.2, max_probability: 0.3, frequency: 42}
  #       \\{min_probability: 0.3, max_probability: 0.4, frequency: 99}
  #     mean that there are no record with an estimated probability in [0.1, 0.2)
  #     nor larger or equal to 0.4.
  class DeltaPresenceEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_probability
    #   @return [::Float]
    #     The estimated probability that a given individual sharing these
    #     quasi-identifier values is in the dataset. This value, typically
    #     called δ, is the ratio between the number of records in the dataset
    #     with these quasi-identifier values, and the total number of individuals
    #     (inside *and* outside the dataset) with these quasi-identifier values.
    #     For example, if there are 15 individuals in the dataset who share the
    #     same quasi-identifier values, and an estimated 100 people in the entire
    #     population with these values, then δ is 0.15.
    class DeltaPresenceEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A DeltaPresenceEstimationHistogramBucket message with the following
    # values:
    #   min_probability: 0.1
    #   max_probability: 0.2
    #   frequency: 42
    # means that there are 42 records for which δ is in [0.1, 0.2). An
    # important particular case is when min_probability = max_probability = 1:
    # then, every individual who shares this quasi-identifier combination is in
    # the dataset.
    # @!attribute [rw] min_probability
    #   @return [::Float]
    #     Between 0 and 1.
    # @!attribute [rw] max_probability
    #   @return [::Float]
    #     Always greater than or equal to min_probability.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these probability bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class DeltaPresenceEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Risk analysis options.
  # @!attribute [rw] job_config
  #   @return [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig]
  #     The job config for the risk job.
  class RequestedRiskAnalysisOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#delta_presence_estimation_result::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult

Returns Delta-presence result

Note: The following fields are mutually exclusive: delta_presence_estimation_result, numerical_stats_result, categorical_stats_result, k_anonymity_result, l_diversity_result, k_map_estimation_result. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2252

class AnalyzeDataSourceRiskDetails
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Result of the numerical stats computation.
  # @!attribute [rw] min_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Minimum value appearing in the column.
  # @!attribute [rw] max_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Maximum value appearing in the column.
  # @!attribute [rw] quantile_values
  #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
  #     List of 99 values that partition the set of field values into 100 equal
  #     sized buckets.
  class NumericalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Result of the categorical stats computation.
  # @!attribute [rw] value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::CategoricalStatsResult::CategoricalStatsHistogramBucket>]
  #     Histogram of value frequencies in the column.
  class CategoricalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Histogram of value frequencies in the column.
    # @!attribute [rw] value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the value frequency of the values in this bucket.
    # @!attribute [rw] value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the value frequency of the values in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of values in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Sample of value frequencies in this bucket. The total number of
    #     values returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct values in this bucket.
    class CategoricalStatsHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the k-anonymity computation.
  # @!attribute [rw] equivalence_class_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityHistogramBucket>]
  #     Histogram of k-anonymity equivalence classes.
  class KAnonymityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Set of values defining the equivalence class. One value per
    #     quasi-identifier column in the original KAnonymity metric message.
    #     The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the equivalence class, for example number of rows with the
    #     above set of values.
    class KAnonymityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of k-anonymity equivalence classes.
    # @!attribute [rw] equivalence_class_size_lower_bound
    #   @return [::Integer]
    #     Lower bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] equivalence_class_size_upper_bound
    #   @return [::Integer]
    #     Upper bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class KAnonymityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the l-diversity computation.
  # @!attribute [rw] sensitive_value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityHistogramBucket>]
  #     Histogram of l-diversity equivalence class sensitive value frequencies.
  class LDiversityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Quasi-identifier values defining the k-anonymity equivalence
    #     class. The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the k-anonymity equivalence class.
    # @!attribute [rw] num_distinct_sensitive_values
    #   @return [::Integer]
    #     Number of distinct sensitive values in this equivalence class.
    # @!attribute [rw] top_sensitive_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Estimated frequencies of top sensitive values.
    class LDiversityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of l-diversity equivalence class sensitive value frequencies.
    # @!attribute [rw] sensitive_value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] sensitive_value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class LDiversityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the reidentifiability analysis. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] k_map_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationHistogramBucket>]
  #     The intervals [min_anonymity, max_anonymity] do not overlap. If a value
  #     doesn't correspond to any such interval, the associated frequency is
  #     zero. For example, the following records:
  #       \\{min_anonymity: 1, max_anonymity: 1, frequency: 17}
  #       \\{min_anonymity: 2, max_anonymity: 3, frequency: 42}
  #       \\{min_anonymity: 5, max_anonymity: 10, frequency: 99}
  #     mean that there are no record with an estimated anonymity of 4, 5, or
  #     larger than 10.
  class KMapEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_anonymity
    #   @return [::Integer]
    #     The estimated anonymity for these quasi-identifier values.
    class KMapEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A KMapEstimationHistogramBucket message with the following values:
    #   min_anonymity: 3
    #   max_anonymity: 5
    #   frequency: 42
    # means that there are 42 records whose quasi-identifier values correspond
    # to 3, 4 or 5 people in the overlying population. An important particular
    # case is when min_anonymity = max_anonymity = 1: the frequency field then
    # corresponds to the number of uniquely identifiable records.
    # @!attribute [rw] min_anonymity
    #   @return [::Integer]
    #     Always positive.
    # @!attribute [rw] max_anonymity
    #   @return [::Integer]
    #     Always greater than or equal to min_anonymity.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these anonymity bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class KMapEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the δ-presence computation. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] delta_presence_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationHistogramBucket>]
  #     The intervals [min_probability, max_probability) do not overlap. If a
  #     value doesn't correspond to any such interval, the associated frequency
  #     is zero. For example, the following records:
  #       \\{min_probability: 0, max_probability: 0.1, frequency: 17}
  #       \\{min_probability: 0.2, max_probability: 0.3, frequency: 42}
  #       \\{min_probability: 0.3, max_probability: 0.4, frequency: 99}
  #     mean that there are no record with an estimated probability in [0.1, 0.2)
  #     nor larger or equal to 0.4.
  class DeltaPresenceEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_probability
    #   @return [::Float]
    #     The estimated probability that a given individual sharing these
    #     quasi-identifier values is in the dataset. This value, typically
    #     called δ, is the ratio between the number of records in the dataset
    #     with these quasi-identifier values, and the total number of individuals
    #     (inside *and* outside the dataset) with these quasi-identifier values.
    #     For example, if there are 15 individuals in the dataset who share the
    #     same quasi-identifier values, and an estimated 100 people in the entire
    #     population with these values, then δ is 0.15.
    class DeltaPresenceEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A DeltaPresenceEstimationHistogramBucket message with the following
    # values:
    #   min_probability: 0.1
    #   max_probability: 0.2
    #   frequency: 42
    # means that there are 42 records for which δ is in [0.1, 0.2). An
    # important particular case is when min_probability = max_probability = 1:
    # then, every individual who shares this quasi-identifier combination is in
    # the dataset.
    # @!attribute [rw] min_probability
    #   @return [::Float]
    #     Between 0 and 1.
    # @!attribute [rw] max_probability
    #   @return [::Float]
    #     Always greater than or equal to min_probability.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these probability bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class DeltaPresenceEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Risk analysis options.
  # @!attribute [rw] job_config
  #   @return [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig]
  #     The job config for the risk job.
  class RequestedRiskAnalysisOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#k_anonymity_result::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult

Returns K-anonymity result

Note: The following fields are mutually exclusive: k_anonymity_result, numerical_stats_result, categorical_stats_result, l_diversity_result, k_map_estimation_result, delta_presence_estimation_result. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult)

    K-anonymity result

    Note: The following fields are mutually exclusive: k_anonymity_result, numerical_stats_result, categorical_stats_result, l_diversity_result, k_map_estimation_result, delta_presence_estimation_result. If a field in that set is populated, all other fields in the set will automatically be cleared.



2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2252

class AnalyzeDataSourceRiskDetails
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Result of the numerical stats computation.
  # @!attribute [rw] min_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Minimum value appearing in the column.
  # @!attribute [rw] max_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Maximum value appearing in the column.
  # @!attribute [rw] quantile_values
  #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
  #     List of 99 values that partition the set of field values into 100 equal
  #     sized buckets.
  class NumericalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Result of the categorical stats computation.
  # @!attribute [rw] value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::CategoricalStatsResult::CategoricalStatsHistogramBucket>]
  #     Histogram of value frequencies in the column.
  class CategoricalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Histogram of value frequencies in the column.
    # @!attribute [rw] value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the value frequency of the values in this bucket.
    # @!attribute [rw] value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the value frequency of the values in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of values in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Sample of value frequencies in this bucket. The total number of
    #     values returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct values in this bucket.
    class CategoricalStatsHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the k-anonymity computation.
  # @!attribute [rw] equivalence_class_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityHistogramBucket>]
  #     Histogram of k-anonymity equivalence classes.
  class KAnonymityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Set of values defining the equivalence class. One value per
    #     quasi-identifier column in the original KAnonymity metric message.
    #     The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the equivalence class, for example number of rows with the
    #     above set of values.
    class KAnonymityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of k-anonymity equivalence classes.
    # @!attribute [rw] equivalence_class_size_lower_bound
    #   @return [::Integer]
    #     Lower bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] equivalence_class_size_upper_bound
    #   @return [::Integer]
    #     Upper bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class KAnonymityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the l-diversity computation.
  # @!attribute [rw] sensitive_value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityHistogramBucket>]
  #     Histogram of l-diversity equivalence class sensitive value frequencies.
  class LDiversityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Quasi-identifier values defining the k-anonymity equivalence
    #     class. The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the k-anonymity equivalence class.
    # @!attribute [rw] num_distinct_sensitive_values
    #   @return [::Integer]
    #     Number of distinct sensitive values in this equivalence class.
    # @!attribute [rw] top_sensitive_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Estimated frequencies of top sensitive values.
    class LDiversityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of l-diversity equivalence class sensitive value frequencies.
    # @!attribute [rw] sensitive_value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] sensitive_value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class LDiversityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the reidentifiability analysis. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] k_map_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationHistogramBucket>]
  #     The intervals [min_anonymity, max_anonymity] do not overlap. If a value
  #     doesn't correspond to any such interval, the associated frequency is
  #     zero. For example, the following records:
  #       \\{min_anonymity: 1, max_anonymity: 1, frequency: 17}
  #       \\{min_anonymity: 2, max_anonymity: 3, frequency: 42}
  #       \\{min_anonymity: 5, max_anonymity: 10, frequency: 99}
  #     mean that there are no record with an estimated anonymity of 4, 5, or
  #     larger than 10.
  class KMapEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_anonymity
    #   @return [::Integer]
    #     The estimated anonymity for these quasi-identifier values.
    class KMapEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A KMapEstimationHistogramBucket message with the following values:
    #   min_anonymity: 3
    #   max_anonymity: 5
    #   frequency: 42
    # means that there are 42 records whose quasi-identifier values correspond
    # to 3, 4 or 5 people in the overlying population. An important particular
    # case is when min_anonymity = max_anonymity = 1: the frequency field then
    # corresponds to the number of uniquely identifiable records.
    # @!attribute [rw] min_anonymity
    #   @return [::Integer]
    #     Always positive.
    # @!attribute [rw] max_anonymity
    #   @return [::Integer]
    #     Always greater than or equal to min_anonymity.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these anonymity bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class KMapEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the δ-presence computation. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] delta_presence_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationHistogramBucket>]
  #     The intervals [min_probability, max_probability) do not overlap. If a
  #     value doesn't correspond to any such interval, the associated frequency
  #     is zero. For example, the following records:
  #       \\{min_probability: 0, max_probability: 0.1, frequency: 17}
  #       \\{min_probability: 0.2, max_probability: 0.3, frequency: 42}
  #       \\{min_probability: 0.3, max_probability: 0.4, frequency: 99}
  #     mean that there are no record with an estimated probability in [0.1, 0.2)
  #     nor larger or equal to 0.4.
  class DeltaPresenceEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_probability
    #   @return [::Float]
    #     The estimated probability that a given individual sharing these
    #     quasi-identifier values is in the dataset. This value, typically
    #     called δ, is the ratio between the number of records in the dataset
    #     with these quasi-identifier values, and the total number of individuals
    #     (inside *and* outside the dataset) with these quasi-identifier values.
    #     For example, if there are 15 individuals in the dataset who share the
    #     same quasi-identifier values, and an estimated 100 people in the entire
    #     population with these values, then δ is 0.15.
    class DeltaPresenceEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A DeltaPresenceEstimationHistogramBucket message with the following
    # values:
    #   min_probability: 0.1
    #   max_probability: 0.2
    #   frequency: 42
    # means that there are 42 records for which δ is in [0.1, 0.2). An
    # important particular case is when min_probability = max_probability = 1:
    # then, every individual who shares this quasi-identifier combination is in
    # the dataset.
    # @!attribute [rw] min_probability
    #   @return [::Float]
    #     Between 0 and 1.
    # @!attribute [rw] max_probability
    #   @return [::Float]
    #     Always greater than or equal to min_probability.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these probability bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class DeltaPresenceEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Risk analysis options.
  # @!attribute [rw] job_config
  #   @return [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig]
  #     The job config for the risk job.
  class RequestedRiskAnalysisOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#k_map_estimation_result::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult

Returns K-map result

Note: The following fields are mutually exclusive: k_map_estimation_result, numerical_stats_result, categorical_stats_result, k_anonymity_result, l_diversity_result, delta_presence_estimation_result. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult)

    K-map result

    Note: The following fields are mutually exclusive: k_map_estimation_result, numerical_stats_result, categorical_stats_result, k_anonymity_result, l_diversity_result, delta_presence_estimation_result. If a field in that set is populated, all other fields in the set will automatically be cleared.



2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2252

class AnalyzeDataSourceRiskDetails
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Result of the numerical stats computation.
  # @!attribute [rw] min_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Minimum value appearing in the column.
  # @!attribute [rw] max_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Maximum value appearing in the column.
  # @!attribute [rw] quantile_values
  #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
  #     List of 99 values that partition the set of field values into 100 equal
  #     sized buckets.
  class NumericalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Result of the categorical stats computation.
  # @!attribute [rw] value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::CategoricalStatsResult::CategoricalStatsHistogramBucket>]
  #     Histogram of value frequencies in the column.
  class CategoricalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Histogram of value frequencies in the column.
    # @!attribute [rw] value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the value frequency of the values in this bucket.
    # @!attribute [rw] value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the value frequency of the values in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of values in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Sample of value frequencies in this bucket. The total number of
    #     values returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct values in this bucket.
    class CategoricalStatsHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the k-anonymity computation.
  # @!attribute [rw] equivalence_class_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityHistogramBucket>]
  #     Histogram of k-anonymity equivalence classes.
  class KAnonymityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Set of values defining the equivalence class. One value per
    #     quasi-identifier column in the original KAnonymity metric message.
    #     The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the equivalence class, for example number of rows with the
    #     above set of values.
    class KAnonymityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of k-anonymity equivalence classes.
    # @!attribute [rw] equivalence_class_size_lower_bound
    #   @return [::Integer]
    #     Lower bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] equivalence_class_size_upper_bound
    #   @return [::Integer]
    #     Upper bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class KAnonymityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the l-diversity computation.
  # @!attribute [rw] sensitive_value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityHistogramBucket>]
  #     Histogram of l-diversity equivalence class sensitive value frequencies.
  class LDiversityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Quasi-identifier values defining the k-anonymity equivalence
    #     class. The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the k-anonymity equivalence class.
    # @!attribute [rw] num_distinct_sensitive_values
    #   @return [::Integer]
    #     Number of distinct sensitive values in this equivalence class.
    # @!attribute [rw] top_sensitive_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Estimated frequencies of top sensitive values.
    class LDiversityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of l-diversity equivalence class sensitive value frequencies.
    # @!attribute [rw] sensitive_value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] sensitive_value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class LDiversityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the reidentifiability analysis. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] k_map_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationHistogramBucket>]
  #     The intervals [min_anonymity, max_anonymity] do not overlap. If a value
  #     doesn't correspond to any such interval, the associated frequency is
  #     zero. For example, the following records:
  #       \\{min_anonymity: 1, max_anonymity: 1, frequency: 17}
  #       \\{min_anonymity: 2, max_anonymity: 3, frequency: 42}
  #       \\{min_anonymity: 5, max_anonymity: 10, frequency: 99}
  #     mean that there are no record with an estimated anonymity of 4, 5, or
  #     larger than 10.
  class KMapEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_anonymity
    #   @return [::Integer]
    #     The estimated anonymity for these quasi-identifier values.
    class KMapEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A KMapEstimationHistogramBucket message with the following values:
    #   min_anonymity: 3
    #   max_anonymity: 5
    #   frequency: 42
    # means that there are 42 records whose quasi-identifier values correspond
    # to 3, 4 or 5 people in the overlying population. An important particular
    # case is when min_anonymity = max_anonymity = 1: the frequency field then
    # corresponds to the number of uniquely identifiable records.
    # @!attribute [rw] min_anonymity
    #   @return [::Integer]
    #     Always positive.
    # @!attribute [rw] max_anonymity
    #   @return [::Integer]
    #     Always greater than or equal to min_anonymity.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these anonymity bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class KMapEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the δ-presence computation. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] delta_presence_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationHistogramBucket>]
  #     The intervals [min_probability, max_probability) do not overlap. If a
  #     value doesn't correspond to any such interval, the associated frequency
  #     is zero. For example, the following records:
  #       \\{min_probability: 0, max_probability: 0.1, frequency: 17}
  #       \\{min_probability: 0.2, max_probability: 0.3, frequency: 42}
  #       \\{min_probability: 0.3, max_probability: 0.4, frequency: 99}
  #     mean that there are no record with an estimated probability in [0.1, 0.2)
  #     nor larger or equal to 0.4.
  class DeltaPresenceEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_probability
    #   @return [::Float]
    #     The estimated probability that a given individual sharing these
    #     quasi-identifier values is in the dataset. This value, typically
    #     called δ, is the ratio between the number of records in the dataset
    #     with these quasi-identifier values, and the total number of individuals
    #     (inside *and* outside the dataset) with these quasi-identifier values.
    #     For example, if there are 15 individuals in the dataset who share the
    #     same quasi-identifier values, and an estimated 100 people in the entire
    #     population with these values, then δ is 0.15.
    class DeltaPresenceEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A DeltaPresenceEstimationHistogramBucket message with the following
    # values:
    #   min_probability: 0.1
    #   max_probability: 0.2
    #   frequency: 42
    # means that there are 42 records for which δ is in [0.1, 0.2). An
    # important particular case is when min_probability = max_probability = 1:
    # then, every individual who shares this quasi-identifier combination is in
    # the dataset.
    # @!attribute [rw] min_probability
    #   @return [::Float]
    #     Between 0 and 1.
    # @!attribute [rw] max_probability
    #   @return [::Float]
    #     Always greater than or equal to min_probability.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these probability bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class DeltaPresenceEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Risk analysis options.
  # @!attribute [rw] job_config
  #   @return [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig]
  #     The job config for the risk job.
  class RequestedRiskAnalysisOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#l_diversity_result::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult

Returns L-divesity result

Note: The following fields are mutually exclusive: l_diversity_result, numerical_stats_result, categorical_stats_result, k_anonymity_result, k_map_estimation_result, delta_presence_estimation_result. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult)

    L-divesity result

    Note: The following fields are mutually exclusive: l_diversity_result, numerical_stats_result, categorical_stats_result, k_anonymity_result, k_map_estimation_result, delta_presence_estimation_result. If a field in that set is populated, all other fields in the set will automatically be cleared.



2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2252

class AnalyzeDataSourceRiskDetails
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Result of the numerical stats computation.
  # @!attribute [rw] min_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Minimum value appearing in the column.
  # @!attribute [rw] max_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Maximum value appearing in the column.
  # @!attribute [rw] quantile_values
  #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
  #     List of 99 values that partition the set of field values into 100 equal
  #     sized buckets.
  class NumericalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Result of the categorical stats computation.
  # @!attribute [rw] value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::CategoricalStatsResult::CategoricalStatsHistogramBucket>]
  #     Histogram of value frequencies in the column.
  class CategoricalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Histogram of value frequencies in the column.
    # @!attribute [rw] value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the value frequency of the values in this bucket.
    # @!attribute [rw] value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the value frequency of the values in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of values in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Sample of value frequencies in this bucket. The total number of
    #     values returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct values in this bucket.
    class CategoricalStatsHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the k-anonymity computation.
  # @!attribute [rw] equivalence_class_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityHistogramBucket>]
  #     Histogram of k-anonymity equivalence classes.
  class KAnonymityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Set of values defining the equivalence class. One value per
    #     quasi-identifier column in the original KAnonymity metric message.
    #     The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the equivalence class, for example number of rows with the
    #     above set of values.
    class KAnonymityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of k-anonymity equivalence classes.
    # @!attribute [rw] equivalence_class_size_lower_bound
    #   @return [::Integer]
    #     Lower bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] equivalence_class_size_upper_bound
    #   @return [::Integer]
    #     Upper bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class KAnonymityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the l-diversity computation.
  # @!attribute [rw] sensitive_value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityHistogramBucket>]
  #     Histogram of l-diversity equivalence class sensitive value frequencies.
  class LDiversityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Quasi-identifier values defining the k-anonymity equivalence
    #     class. The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the k-anonymity equivalence class.
    # @!attribute [rw] num_distinct_sensitive_values
    #   @return [::Integer]
    #     Number of distinct sensitive values in this equivalence class.
    # @!attribute [rw] top_sensitive_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Estimated frequencies of top sensitive values.
    class LDiversityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of l-diversity equivalence class sensitive value frequencies.
    # @!attribute [rw] sensitive_value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] sensitive_value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class LDiversityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the reidentifiability analysis. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] k_map_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationHistogramBucket>]
  #     The intervals [min_anonymity, max_anonymity] do not overlap. If a value
  #     doesn't correspond to any such interval, the associated frequency is
  #     zero. For example, the following records:
  #       \\{min_anonymity: 1, max_anonymity: 1, frequency: 17}
  #       \\{min_anonymity: 2, max_anonymity: 3, frequency: 42}
  #       \\{min_anonymity: 5, max_anonymity: 10, frequency: 99}
  #     mean that there are no record with an estimated anonymity of 4, 5, or
  #     larger than 10.
  class KMapEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_anonymity
    #   @return [::Integer]
    #     The estimated anonymity for these quasi-identifier values.
    class KMapEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A KMapEstimationHistogramBucket message with the following values:
    #   min_anonymity: 3
    #   max_anonymity: 5
    #   frequency: 42
    # means that there are 42 records whose quasi-identifier values correspond
    # to 3, 4 or 5 people in the overlying population. An important particular
    # case is when min_anonymity = max_anonymity = 1: the frequency field then
    # corresponds to the number of uniquely identifiable records.
    # @!attribute [rw] min_anonymity
    #   @return [::Integer]
    #     Always positive.
    # @!attribute [rw] max_anonymity
    #   @return [::Integer]
    #     Always greater than or equal to min_anonymity.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these anonymity bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class KMapEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the δ-presence computation. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] delta_presence_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationHistogramBucket>]
  #     The intervals [min_probability, max_probability) do not overlap. If a
  #     value doesn't correspond to any such interval, the associated frequency
  #     is zero. For example, the following records:
  #       \\{min_probability: 0, max_probability: 0.1, frequency: 17}
  #       \\{min_probability: 0.2, max_probability: 0.3, frequency: 42}
  #       \\{min_probability: 0.3, max_probability: 0.4, frequency: 99}
  #     mean that there are no record with an estimated probability in [0.1, 0.2)
  #     nor larger or equal to 0.4.
  class DeltaPresenceEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_probability
    #   @return [::Float]
    #     The estimated probability that a given individual sharing these
    #     quasi-identifier values is in the dataset. This value, typically
    #     called δ, is the ratio between the number of records in the dataset
    #     with these quasi-identifier values, and the total number of individuals
    #     (inside *and* outside the dataset) with these quasi-identifier values.
    #     For example, if there are 15 individuals in the dataset who share the
    #     same quasi-identifier values, and an estimated 100 people in the entire
    #     population with these values, then δ is 0.15.
    class DeltaPresenceEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A DeltaPresenceEstimationHistogramBucket message with the following
    # values:
    #   min_probability: 0.1
    #   max_probability: 0.2
    #   frequency: 42
    # means that there are 42 records for which δ is in [0.1, 0.2). An
    # important particular case is when min_probability = max_probability = 1:
    # then, every individual who shares this quasi-identifier combination is in
    # the dataset.
    # @!attribute [rw] min_probability
    #   @return [::Float]
    #     Between 0 and 1.
    # @!attribute [rw] max_probability
    #   @return [::Float]
    #     Always greater than or equal to min_probability.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these probability bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class DeltaPresenceEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Risk analysis options.
  # @!attribute [rw] job_config
  #   @return [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig]
  #     The job config for the risk job.
  class RequestedRiskAnalysisOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#numerical_stats_result::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::NumericalStatsResult

Returns Numerical stats result

Note: The following fields are mutually exclusive: numerical_stats_result, categorical_stats_result, k_anonymity_result, l_diversity_result, k_map_estimation_result, delta_presence_estimation_result. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::NumericalStatsResult)

    Numerical stats result

    Note: The following fields are mutually exclusive: numerical_stats_result, categorical_stats_result, k_anonymity_result, l_diversity_result, k_map_estimation_result, delta_presence_estimation_result. If a field in that set is populated, all other fields in the set will automatically be cleared.



2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2252

class AnalyzeDataSourceRiskDetails
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Result of the numerical stats computation.
  # @!attribute [rw] min_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Minimum value appearing in the column.
  # @!attribute [rw] max_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Maximum value appearing in the column.
  # @!attribute [rw] quantile_values
  #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
  #     List of 99 values that partition the set of field values into 100 equal
  #     sized buckets.
  class NumericalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Result of the categorical stats computation.
  # @!attribute [rw] value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::CategoricalStatsResult::CategoricalStatsHistogramBucket>]
  #     Histogram of value frequencies in the column.
  class CategoricalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Histogram of value frequencies in the column.
    # @!attribute [rw] value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the value frequency of the values in this bucket.
    # @!attribute [rw] value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the value frequency of the values in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of values in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Sample of value frequencies in this bucket. The total number of
    #     values returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct values in this bucket.
    class CategoricalStatsHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the k-anonymity computation.
  # @!attribute [rw] equivalence_class_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityHistogramBucket>]
  #     Histogram of k-anonymity equivalence classes.
  class KAnonymityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Set of values defining the equivalence class. One value per
    #     quasi-identifier column in the original KAnonymity metric message.
    #     The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the equivalence class, for example number of rows with the
    #     above set of values.
    class KAnonymityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of k-anonymity equivalence classes.
    # @!attribute [rw] equivalence_class_size_lower_bound
    #   @return [::Integer]
    #     Lower bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] equivalence_class_size_upper_bound
    #   @return [::Integer]
    #     Upper bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class KAnonymityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the l-diversity computation.
  # @!attribute [rw] sensitive_value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityHistogramBucket>]
  #     Histogram of l-diversity equivalence class sensitive value frequencies.
  class LDiversityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Quasi-identifier values defining the k-anonymity equivalence
    #     class. The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the k-anonymity equivalence class.
    # @!attribute [rw] num_distinct_sensitive_values
    #   @return [::Integer]
    #     Number of distinct sensitive values in this equivalence class.
    # @!attribute [rw] top_sensitive_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Estimated frequencies of top sensitive values.
    class LDiversityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of l-diversity equivalence class sensitive value frequencies.
    # @!attribute [rw] sensitive_value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] sensitive_value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class LDiversityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the reidentifiability analysis. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] k_map_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationHistogramBucket>]
  #     The intervals [min_anonymity, max_anonymity] do not overlap. If a value
  #     doesn't correspond to any such interval, the associated frequency is
  #     zero. For example, the following records:
  #       \\{min_anonymity: 1, max_anonymity: 1, frequency: 17}
  #       \\{min_anonymity: 2, max_anonymity: 3, frequency: 42}
  #       \\{min_anonymity: 5, max_anonymity: 10, frequency: 99}
  #     mean that there are no record with an estimated anonymity of 4, 5, or
  #     larger than 10.
  class KMapEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_anonymity
    #   @return [::Integer]
    #     The estimated anonymity for these quasi-identifier values.
    class KMapEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A KMapEstimationHistogramBucket message with the following values:
    #   min_anonymity: 3
    #   max_anonymity: 5
    #   frequency: 42
    # means that there are 42 records whose quasi-identifier values correspond
    # to 3, 4 or 5 people in the overlying population. An important particular
    # case is when min_anonymity = max_anonymity = 1: the frequency field then
    # corresponds to the number of uniquely identifiable records.
    # @!attribute [rw] min_anonymity
    #   @return [::Integer]
    #     Always positive.
    # @!attribute [rw] max_anonymity
    #   @return [::Integer]
    #     Always greater than or equal to min_anonymity.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these anonymity bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class KMapEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the δ-presence computation. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] delta_presence_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationHistogramBucket>]
  #     The intervals [min_probability, max_probability) do not overlap. If a
  #     value doesn't correspond to any such interval, the associated frequency
  #     is zero. For example, the following records:
  #       \\{min_probability: 0, max_probability: 0.1, frequency: 17}
  #       \\{min_probability: 0.2, max_probability: 0.3, frequency: 42}
  #       \\{min_probability: 0.3, max_probability: 0.4, frequency: 99}
  #     mean that there are no record with an estimated probability in [0.1, 0.2)
  #     nor larger or equal to 0.4.
  class DeltaPresenceEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_probability
    #   @return [::Float]
    #     The estimated probability that a given individual sharing these
    #     quasi-identifier values is in the dataset. This value, typically
    #     called δ, is the ratio between the number of records in the dataset
    #     with these quasi-identifier values, and the total number of individuals
    #     (inside *and* outside the dataset) with these quasi-identifier values.
    #     For example, if there are 15 individuals in the dataset who share the
    #     same quasi-identifier values, and an estimated 100 people in the entire
    #     population with these values, then δ is 0.15.
    class DeltaPresenceEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A DeltaPresenceEstimationHistogramBucket message with the following
    # values:
    #   min_probability: 0.1
    #   max_probability: 0.2
    #   frequency: 42
    # means that there are 42 records for which δ is in [0.1, 0.2). An
    # important particular case is when min_probability = max_probability = 1:
    # then, every individual who shares this quasi-identifier combination is in
    # the dataset.
    # @!attribute [rw] min_probability
    #   @return [::Float]
    #     Between 0 and 1.
    # @!attribute [rw] max_probability
    #   @return [::Float]
    #     Always greater than or equal to min_probability.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these probability bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class DeltaPresenceEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Risk analysis options.
  # @!attribute [rw] job_config
  #   @return [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig]
  #     The job config for the risk job.
  class RequestedRiskAnalysisOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#requested_options::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::RequestedRiskAnalysisOptions

Returns The configuration used for this job.



2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2252

class AnalyzeDataSourceRiskDetails
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Result of the numerical stats computation.
  # @!attribute [rw] min_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Minimum value appearing in the column.
  # @!attribute [rw] max_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Maximum value appearing in the column.
  # @!attribute [rw] quantile_values
  #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
  #     List of 99 values that partition the set of field values into 100 equal
  #     sized buckets.
  class NumericalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Result of the categorical stats computation.
  # @!attribute [rw] value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::CategoricalStatsResult::CategoricalStatsHistogramBucket>]
  #     Histogram of value frequencies in the column.
  class CategoricalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Histogram of value frequencies in the column.
    # @!attribute [rw] value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the value frequency of the values in this bucket.
    # @!attribute [rw] value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the value frequency of the values in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of values in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Sample of value frequencies in this bucket. The total number of
    #     values returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct values in this bucket.
    class CategoricalStatsHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the k-anonymity computation.
  # @!attribute [rw] equivalence_class_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityHistogramBucket>]
  #     Histogram of k-anonymity equivalence classes.
  class KAnonymityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Set of values defining the equivalence class. One value per
    #     quasi-identifier column in the original KAnonymity metric message.
    #     The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the equivalence class, for example number of rows with the
    #     above set of values.
    class KAnonymityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of k-anonymity equivalence classes.
    # @!attribute [rw] equivalence_class_size_lower_bound
    #   @return [::Integer]
    #     Lower bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] equivalence_class_size_upper_bound
    #   @return [::Integer]
    #     Upper bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class KAnonymityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the l-diversity computation.
  # @!attribute [rw] sensitive_value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityHistogramBucket>]
  #     Histogram of l-diversity equivalence class sensitive value frequencies.
  class LDiversityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Quasi-identifier values defining the k-anonymity equivalence
    #     class. The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the k-anonymity equivalence class.
    # @!attribute [rw] num_distinct_sensitive_values
    #   @return [::Integer]
    #     Number of distinct sensitive values in this equivalence class.
    # @!attribute [rw] top_sensitive_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Estimated frequencies of top sensitive values.
    class LDiversityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of l-diversity equivalence class sensitive value frequencies.
    # @!attribute [rw] sensitive_value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] sensitive_value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class LDiversityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the reidentifiability analysis. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] k_map_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationHistogramBucket>]
  #     The intervals [min_anonymity, max_anonymity] do not overlap. If a value
  #     doesn't correspond to any such interval, the associated frequency is
  #     zero. For example, the following records:
  #       \\{min_anonymity: 1, max_anonymity: 1, frequency: 17}
  #       \\{min_anonymity: 2, max_anonymity: 3, frequency: 42}
  #       \\{min_anonymity: 5, max_anonymity: 10, frequency: 99}
  #     mean that there are no record with an estimated anonymity of 4, 5, or
  #     larger than 10.
  class KMapEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_anonymity
    #   @return [::Integer]
    #     The estimated anonymity for these quasi-identifier values.
    class KMapEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A KMapEstimationHistogramBucket message with the following values:
    #   min_anonymity: 3
    #   max_anonymity: 5
    #   frequency: 42
    # means that there are 42 records whose quasi-identifier values correspond
    # to 3, 4 or 5 people in the overlying population. An important particular
    # case is when min_anonymity = max_anonymity = 1: the frequency field then
    # corresponds to the number of uniquely identifiable records.
    # @!attribute [rw] min_anonymity
    #   @return [::Integer]
    #     Always positive.
    # @!attribute [rw] max_anonymity
    #   @return [::Integer]
    #     Always greater than or equal to min_anonymity.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these anonymity bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class KMapEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the δ-presence computation. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] delta_presence_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationHistogramBucket>]
  #     The intervals [min_probability, max_probability) do not overlap. If a
  #     value doesn't correspond to any such interval, the associated frequency
  #     is zero. For example, the following records:
  #       \\{min_probability: 0, max_probability: 0.1, frequency: 17}
  #       \\{min_probability: 0.2, max_probability: 0.3, frequency: 42}
  #       \\{min_probability: 0.3, max_probability: 0.4, frequency: 99}
  #     mean that there are no record with an estimated probability in [0.1, 0.2)
  #     nor larger or equal to 0.4.
  class DeltaPresenceEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_probability
    #   @return [::Float]
    #     The estimated probability that a given individual sharing these
    #     quasi-identifier values is in the dataset. This value, typically
    #     called δ, is the ratio between the number of records in the dataset
    #     with these quasi-identifier values, and the total number of individuals
    #     (inside *and* outside the dataset) with these quasi-identifier values.
    #     For example, if there are 15 individuals in the dataset who share the
    #     same quasi-identifier values, and an estimated 100 people in the entire
    #     population with these values, then δ is 0.15.
    class DeltaPresenceEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A DeltaPresenceEstimationHistogramBucket message with the following
    # values:
    #   min_probability: 0.1
    #   max_probability: 0.2
    #   frequency: 42
    # means that there are 42 records for which δ is in [0.1, 0.2). An
    # important particular case is when min_probability = max_probability = 1:
    # then, every individual who shares this quasi-identifier combination is in
    # the dataset.
    # @!attribute [rw] min_probability
    #   @return [::Float]
    #     Between 0 and 1.
    # @!attribute [rw] max_probability
    #   @return [::Float]
    #     Always greater than or equal to min_probability.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these probability bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class DeltaPresenceEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Risk analysis options.
  # @!attribute [rw] job_config
  #   @return [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig]
  #     The job config for the risk job.
  class RequestedRiskAnalysisOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#requested_privacy_metric::Google::Cloud::Dlp::V2::PrivacyMetric

Returns Privacy metric to compute.

Returns:



2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2252

class AnalyzeDataSourceRiskDetails
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Result of the numerical stats computation.
  # @!attribute [rw] min_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Minimum value appearing in the column.
  # @!attribute [rw] max_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Maximum value appearing in the column.
  # @!attribute [rw] quantile_values
  #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
  #     List of 99 values that partition the set of field values into 100 equal
  #     sized buckets.
  class NumericalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Result of the categorical stats computation.
  # @!attribute [rw] value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::CategoricalStatsResult::CategoricalStatsHistogramBucket>]
  #     Histogram of value frequencies in the column.
  class CategoricalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Histogram of value frequencies in the column.
    # @!attribute [rw] value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the value frequency of the values in this bucket.
    # @!attribute [rw] value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the value frequency of the values in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of values in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Sample of value frequencies in this bucket. The total number of
    #     values returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct values in this bucket.
    class CategoricalStatsHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the k-anonymity computation.
  # @!attribute [rw] equivalence_class_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityHistogramBucket>]
  #     Histogram of k-anonymity equivalence classes.
  class KAnonymityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Set of values defining the equivalence class. One value per
    #     quasi-identifier column in the original KAnonymity metric message.
    #     The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the equivalence class, for example number of rows with the
    #     above set of values.
    class KAnonymityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of k-anonymity equivalence classes.
    # @!attribute [rw] equivalence_class_size_lower_bound
    #   @return [::Integer]
    #     Lower bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] equivalence_class_size_upper_bound
    #   @return [::Integer]
    #     Upper bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class KAnonymityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the l-diversity computation.
  # @!attribute [rw] sensitive_value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityHistogramBucket>]
  #     Histogram of l-diversity equivalence class sensitive value frequencies.
  class LDiversityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Quasi-identifier values defining the k-anonymity equivalence
    #     class. The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the k-anonymity equivalence class.
    # @!attribute [rw] num_distinct_sensitive_values
    #   @return [::Integer]
    #     Number of distinct sensitive values in this equivalence class.
    # @!attribute [rw] top_sensitive_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Estimated frequencies of top sensitive values.
    class LDiversityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of l-diversity equivalence class sensitive value frequencies.
    # @!attribute [rw] sensitive_value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] sensitive_value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class LDiversityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the reidentifiability analysis. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] k_map_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationHistogramBucket>]
  #     The intervals [min_anonymity, max_anonymity] do not overlap. If a value
  #     doesn't correspond to any such interval, the associated frequency is
  #     zero. For example, the following records:
  #       \\{min_anonymity: 1, max_anonymity: 1, frequency: 17}
  #       \\{min_anonymity: 2, max_anonymity: 3, frequency: 42}
  #       \\{min_anonymity: 5, max_anonymity: 10, frequency: 99}
  #     mean that there are no record with an estimated anonymity of 4, 5, or
  #     larger than 10.
  class KMapEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_anonymity
    #   @return [::Integer]
    #     The estimated anonymity for these quasi-identifier values.
    class KMapEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A KMapEstimationHistogramBucket message with the following values:
    #   min_anonymity: 3
    #   max_anonymity: 5
    #   frequency: 42
    # means that there are 42 records whose quasi-identifier values correspond
    # to 3, 4 or 5 people in the overlying population. An important particular
    # case is when min_anonymity = max_anonymity = 1: the frequency field then
    # corresponds to the number of uniquely identifiable records.
    # @!attribute [rw] min_anonymity
    #   @return [::Integer]
    #     Always positive.
    # @!attribute [rw] max_anonymity
    #   @return [::Integer]
    #     Always greater than or equal to min_anonymity.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these anonymity bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class KMapEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the δ-presence computation. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] delta_presence_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationHistogramBucket>]
  #     The intervals [min_probability, max_probability) do not overlap. If a
  #     value doesn't correspond to any such interval, the associated frequency
  #     is zero. For example, the following records:
  #       \\{min_probability: 0, max_probability: 0.1, frequency: 17}
  #       \\{min_probability: 0.2, max_probability: 0.3, frequency: 42}
  #       \\{min_probability: 0.3, max_probability: 0.4, frequency: 99}
  #     mean that there are no record with an estimated probability in [0.1, 0.2)
  #     nor larger or equal to 0.4.
  class DeltaPresenceEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_probability
    #   @return [::Float]
    #     The estimated probability that a given individual sharing these
    #     quasi-identifier values is in the dataset. This value, typically
    #     called δ, is the ratio between the number of records in the dataset
    #     with these quasi-identifier values, and the total number of individuals
    #     (inside *and* outside the dataset) with these quasi-identifier values.
    #     For example, if there are 15 individuals in the dataset who share the
    #     same quasi-identifier values, and an estimated 100 people in the entire
    #     population with these values, then δ is 0.15.
    class DeltaPresenceEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A DeltaPresenceEstimationHistogramBucket message with the following
    # values:
    #   min_probability: 0.1
    #   max_probability: 0.2
    #   frequency: 42
    # means that there are 42 records for which δ is in [0.1, 0.2). An
    # important particular case is when min_probability = max_probability = 1:
    # then, every individual who shares this quasi-identifier combination is in
    # the dataset.
    # @!attribute [rw] min_probability
    #   @return [::Float]
    #     Between 0 and 1.
    # @!attribute [rw] max_probability
    #   @return [::Float]
    #     Always greater than or equal to min_probability.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these probability bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class DeltaPresenceEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Risk analysis options.
  # @!attribute [rw] job_config
  #   @return [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig]
  #     The job config for the risk job.
  class RequestedRiskAnalysisOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#requested_source_table::Google::Cloud::Dlp::V2::BigQueryTable

Returns Input dataset to compute metrics over.

Returns:



2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
# File 'proto_docs/google/privacy/dlp/v2/dlp.rb', line 2252

class AnalyzeDataSourceRiskDetails
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Result of the numerical stats computation.
  # @!attribute [rw] min_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Minimum value appearing in the column.
  # @!attribute [rw] max_value
  #   @return [::Google::Cloud::Dlp::V2::Value]
  #     Maximum value appearing in the column.
  # @!attribute [rw] quantile_values
  #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
  #     List of 99 values that partition the set of field values into 100 equal
  #     sized buckets.
  class NumericalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Result of the categorical stats computation.
  # @!attribute [rw] value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::CategoricalStatsResult::CategoricalStatsHistogramBucket>]
  #     Histogram of value frequencies in the column.
  class CategoricalStatsResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Histogram of value frequencies in the column.
    # @!attribute [rw] value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the value frequency of the values in this bucket.
    # @!attribute [rw] value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the value frequency of the values in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of values in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Sample of value frequencies in this bucket. The total number of
    #     values returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct values in this bucket.
    class CategoricalStatsHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the k-anonymity computation.
  # @!attribute [rw] equivalence_class_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityHistogramBucket>]
  #     Histogram of k-anonymity equivalence classes.
  class KAnonymityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Set of values defining the equivalence class. One value per
    #     quasi-identifier column in the original KAnonymity metric message.
    #     The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the equivalence class, for example number of rows with the
    #     above set of values.
    class KAnonymityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of k-anonymity equivalence classes.
    # @!attribute [rw] equivalence_class_size_lower_bound
    #   @return [::Integer]
    #     Lower bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] equivalence_class_size_upper_bound
    #   @return [::Integer]
    #     Upper bound on the size of the equivalence classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KAnonymityResult::KAnonymityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class KAnonymityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the l-diversity computation.
  # @!attribute [rw] sensitive_value_frequency_histogram_buckets
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityHistogramBucket>]
  #     Histogram of l-diversity equivalence class sensitive value frequencies.
  class LDiversityResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The set of columns' values that share the same ldiversity value.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     Quasi-identifier values defining the k-anonymity equivalence
    #     class. The order is always the same as the original request.
    # @!attribute [rw] equivalence_class_size
    #   @return [::Integer]
    #     Size of the k-anonymity equivalence class.
    # @!attribute [rw] num_distinct_sensitive_values
    #   @return [::Integer]
    #     Number of distinct sensitive values in this equivalence class.
    # @!attribute [rw] top_sensitive_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::ValueFrequency>]
    #     Estimated frequencies of top sensitive values.
    class LDiversityEquivalenceClass
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # Histogram of l-diversity equivalence class sensitive value frequencies.
    # @!attribute [rw] sensitive_value_frequency_lower_bound
    #   @return [::Integer]
    #     Lower bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] sensitive_value_frequency_upper_bound
    #   @return [::Integer]
    #     Upper bound on the sensitive value frequencies of the equivalence
    #     classes in this bucket.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Total number of equivalence classes in this bucket.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::LDiversityResult::LDiversityEquivalenceClass>]
    #     Sample of equivalence classes in this bucket. The total number of
    #     classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct equivalence classes in this bucket.
    class LDiversityHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the reidentifiability analysis. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] k_map_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationHistogramBucket>]
  #     The intervals [min_anonymity, max_anonymity] do not overlap. If a value
  #     doesn't correspond to any such interval, the associated frequency is
  #     zero. For example, the following records:
  #       \\{min_anonymity: 1, max_anonymity: 1, frequency: 17}
  #       \\{min_anonymity: 2, max_anonymity: 3, frequency: 42}
  #       \\{min_anonymity: 5, max_anonymity: 10, frequency: 99}
  #     mean that there are no record with an estimated anonymity of 4, 5, or
  #     larger than 10.
  class KMapEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_anonymity
    #   @return [::Integer]
    #     The estimated anonymity for these quasi-identifier values.
    class KMapEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A KMapEstimationHistogramBucket message with the following values:
    #   min_anonymity: 3
    #   max_anonymity: 5
    #   frequency: 42
    # means that there are 42 records whose quasi-identifier values correspond
    # to 3, 4 or 5 people in the overlying population. An important particular
    # case is when min_anonymity = max_anonymity = 1: the frequency field then
    # corresponds to the number of uniquely identifiable records.
    # @!attribute [rw] min_anonymity
    #   @return [::Integer]
    #     Always positive.
    # @!attribute [rw] max_anonymity
    #   @return [::Integer]
    #     Always greater than or equal to min_anonymity.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these anonymity bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::KMapEstimationResult::KMapEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class KMapEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Result of the δ-presence computation. Note that these results are an
  # estimation, not exact values.
  # @!attribute [rw] delta_presence_estimation_histogram
  #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationHistogramBucket>]
  #     The intervals [min_probability, max_probability) do not overlap. If a
  #     value doesn't correspond to any such interval, the associated frequency
  #     is zero. For example, the following records:
  #       \\{min_probability: 0, max_probability: 0.1, frequency: 17}
  #       \\{min_probability: 0.2, max_probability: 0.3, frequency: 42}
  #       \\{min_probability: 0.3, max_probability: 0.4, frequency: 99}
  #     mean that there are no record with an estimated probability in [0.1, 0.2)
  #     nor larger or equal to 0.4.
  class DeltaPresenceEstimationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A tuple of values for the quasi-identifier columns.
    # @!attribute [rw] quasi_ids_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::Value>]
    #     The quasi-identifier values.
    # @!attribute [rw] estimated_probability
    #   @return [::Float]
    #     The estimated probability that a given individual sharing these
    #     quasi-identifier values is in the dataset. This value, typically
    #     called δ, is the ratio between the number of records in the dataset
    #     with these quasi-identifier values, and the total number of individuals
    #     (inside *and* outside the dataset) with these quasi-identifier values.
    #     For example, if there are 15 individuals in the dataset who share the
    #     same quasi-identifier values, and an estimated 100 people in the entire
    #     population with these values, then δ is 0.15.
    class DeltaPresenceEstimationQuasiIdValues
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end

    # A DeltaPresenceEstimationHistogramBucket message with the following
    # values:
    #   min_probability: 0.1
    #   max_probability: 0.2
    #   frequency: 42
    # means that there are 42 records for which δ is in [0.1, 0.2). An
    # important particular case is when min_probability = max_probability = 1:
    # then, every individual who shares this quasi-identifier combination is in
    # the dataset.
    # @!attribute [rw] min_probability
    #   @return [::Float]
    #     Between 0 and 1.
    # @!attribute [rw] max_probability
    #   @return [::Float]
    #     Always greater than or equal to min_probability.
    # @!attribute [rw] bucket_size
    #   @return [::Integer]
    #     Number of records within these probability bounds.
    # @!attribute [rw] bucket_values
    #   @return [::Array<::Google::Cloud::Dlp::V2::AnalyzeDataSourceRiskDetails::DeltaPresenceEstimationResult::DeltaPresenceEstimationQuasiIdValues>]
    #     Sample of quasi-identifier tuple values in this bucket. The total
    #     number of classes returned per bucket is capped at 20.
    # @!attribute [rw] bucket_value_count
    #   @return [::Integer]
    #     Total number of distinct quasi-identifier tuple values in this bucket.
    class DeltaPresenceEstimationHistogramBucket
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # Risk analysis options.
  # @!attribute [rw] job_config
  #   @return [::Google::Cloud::Dlp::V2::RiskAnalysisJobConfig]
  #     The job config for the risk job.
  class RequestedRiskAnalysisOptions
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end