com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/google/apis-client-generator/
* (build: 2017-11-07 19:12:12 UTC)
* on 2018-01-18 at 22:50:57 UTC
* Modify at your own risk.
*/
package com.google.api.services.dlp.v2beta1.model;
/**
* 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.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the DLP API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket extends com.google.api.client.json.GenericJson {
/**
* Number of records within these anonymity bounds.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long bucketSize;
/**
* Sample of quasi-identifier tuple values in this bucket. The total number of classes returned
* per bucket is capped at 20.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List bucketValues;
static {
// hack to force ProGuard to consider GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues used, since otherwise it would be stripped out
// see https://github.com/google/google-api-java-client/issues/543
com.google.api.client.util.Data.nullOf(GooglePrivacyDlpV2beta1KMapEstimationQuasiIdValues.class);
}
/**
* Always greater than or equal to min_anonymity.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long maxAnonymity;
/**
* Always positive.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long minAnonymity;
/**
* Number of records within these anonymity bounds.
* @return value or {@code null} for none
*/
public java.lang.Long getBucketSize() {
return bucketSize;
}
/**
* Number of records within these anonymity bounds.
* @param bucketSize bucketSize or {@code null} for none
*/
public GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket setBucketSize(java.lang.Long bucketSize) {
this.bucketSize = bucketSize;
return this;
}
/**
* Sample of quasi-identifier tuple values in this bucket. The total number of classes returned
* per bucket is capped at 20.
* @return value or {@code null} for none
*/
public java.util.List getBucketValues() {
return bucketValues;
}
/**
* Sample of quasi-identifier tuple values in this bucket. The total number of classes returned
* per bucket is capped at 20.
* @param bucketValues bucketValues or {@code null} for none
*/
public GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket setBucketValues(java.util.List bucketValues) {
this.bucketValues = bucketValues;
return this;
}
/**
* Always greater than or equal to min_anonymity.
* @return value or {@code null} for none
*/
public java.lang.Long getMaxAnonymity() {
return maxAnonymity;
}
/**
* Always greater than or equal to min_anonymity.
* @param maxAnonymity maxAnonymity or {@code null} for none
*/
public GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket setMaxAnonymity(java.lang.Long maxAnonymity) {
this.maxAnonymity = maxAnonymity;
return this;
}
/**
* Always positive.
* @return value or {@code null} for none
*/
public java.lang.Long getMinAnonymity() {
return minAnonymity;
}
/**
* Always positive.
* @param minAnonymity minAnonymity or {@code null} for none
*/
public GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket setMinAnonymity(java.lang.Long minAnonymity) {
this.minAnonymity = minAnonymity;
return this;
}
@Override
public GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket set(String fieldName, Object value) {
return (GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket) super.set(fieldName, value);
}
@Override
public GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket clone() {
return (GooglePrivacyDlpV2beta1KMapEstimationHistogramBucket) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy