diff --git a/codacy-conf.json b/codacy-conf.json
index 156abaccb39a..d3c4145bcd4e 100644
--- a/codacy-conf.json
+++ b/codacy-conf.json
@@ -698,7 +698,7 @@
},
{
"patternId": "design_FieldDeclarationsShouldBeAtStartOfClass",
- "enabled": true
+ "enabled": false
},
{
"patternId": "unnecessary_UnnecessaryConversionTemporary",
@@ -986,7 +986,7 @@
},
{
"patternId": "unnecessary_UselessParentheses",
- "enabled": true
+ "enabled": false
},
{
"patternId": "design_IdempotentOperations",
@@ -994,7 +994,7 @@
},
{
"patternId": "braces_IfStmtsMustUseBraces",
- "enabled": true
+ "enabled": false
},
{
"patternId": "strings_UseIndexOfChar",
diff --git a/google-api-grpc/grpc-google-cloud-dlp-v2beta1/pom.xml b/google-api-grpc/grpc-google-cloud-dlp-v2beta1/pom.xml
deleted file mode 100644
index c5d0689e585b..000000000000
--- a/google-api-grpc/grpc-google-cloud-dlp-v2beta1/pom.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-
- * The DLP API is a service that allows clients - * to detect the presence of Personally Identifiable Information (PII) and other - * privacy-sensitive data in user-supplied, unstructured data streams, like text - * blocks or images. - * The service also includes methods for sensitive data redaction and - * scheduling of data scans on Google Cloud Platform based data sets. - *- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.10.0)", - comments = "Source: google/privacy/dlp/v2beta1/dlp.proto") -public final class DlpServiceGrpc { - - private DlpServiceGrpc() {} - - public static final String SERVICE_NAME = "google.privacy.dlp.v2beta1.DlpService"; - - // Static method descriptors that strictly reflect the proto. - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") - @java.lang.Deprecated // Use {@link #getInspectContentMethod()} instead. - public static final io.grpc.MethodDescriptor
- * The DLP API is a service that allows clients - * to detect the presence of Personally Identifiable Information (PII) and other - * privacy-sensitive data in user-supplied, unstructured data streams, like text - * blocks or images. - * The service also includes methods for sensitive data redaction and - * scheduling of data scans on Google Cloud Platform based data sets. - *- */ - public static abstract class DlpServiceImplBase implements io.grpc.BindableService { - - /** - *
- * Finds potentially sensitive info in a list of strings. - * This method has limits on input size, processing time, and output size. - *- */ - public void inspectContent(com.google.privacy.dlp.v2beta1.InspectContentRequest request, - io.grpc.stub.StreamObserver
- * Redacts potentially sensitive info from a list of strings. - * This method has limits on input size, processing time, and output size. - *- */ - public void redactContent(com.google.privacy.dlp.v2beta1.RedactContentRequest request, - io.grpc.stub.StreamObserver
- * De-identifies potentially sensitive info from a list of strings. - * This method has limits on input size and output size. - *- */ - public void deidentifyContent(com.google.privacy.dlp.v2beta1.DeidentifyContentRequest request, - io.grpc.stub.StreamObserver
- * Schedules a job scanning content in a Google Cloud Platform data - * repository. - *- */ - public void createInspectOperation(com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest request, - io.grpc.stub.StreamObserver
- * Schedules a job to compute risk analysis metrics over content in a Google - * Cloud Platform repository. - *- */ - public void analyzeDataSourceRisk(com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest request, - io.grpc.stub.StreamObserver
- * Returns list of results for given inspect operation result set id. - *- */ - public void listInspectFindings(com.google.privacy.dlp.v2beta1.ListInspectFindingsRequest request, - io.grpc.stub.StreamObserver
- * Returns sensitive information types for given category. - *- */ - public void listInfoTypes(com.google.privacy.dlp.v2beta1.ListInfoTypesRequest request, - io.grpc.stub.StreamObserver
- * Returns the list of root categories of sensitive information. - *- */ - public void listRootCategories(com.google.privacy.dlp.v2beta1.ListRootCategoriesRequest request, - io.grpc.stub.StreamObserver
- * The DLP API is a service that allows clients - * to detect the presence of Personally Identifiable Information (PII) and other - * privacy-sensitive data in user-supplied, unstructured data streams, like text - * blocks or images. - * The service also includes methods for sensitive data redaction and - * scheduling of data scans on Google Cloud Platform based data sets. - *- */ - public static final class DlpServiceStub extends io.grpc.stub.AbstractStub
- * Finds potentially sensitive info in a list of strings. - * This method has limits on input size, processing time, and output size. - *- */ - public void inspectContent(com.google.privacy.dlp.v2beta1.InspectContentRequest request, - io.grpc.stub.StreamObserver
- * Redacts potentially sensitive info from a list of strings. - * This method has limits on input size, processing time, and output size. - *- */ - public void redactContent(com.google.privacy.dlp.v2beta1.RedactContentRequest request, - io.grpc.stub.StreamObserver
- * De-identifies potentially sensitive info from a list of strings. - * This method has limits on input size and output size. - *- */ - public void deidentifyContent(com.google.privacy.dlp.v2beta1.DeidentifyContentRequest request, - io.grpc.stub.StreamObserver
- * Schedules a job scanning content in a Google Cloud Platform data - * repository. - *- */ - public void createInspectOperation(com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest request, - io.grpc.stub.StreamObserver
- * Schedules a job to compute risk analysis metrics over content in a Google - * Cloud Platform repository. - *- */ - public void analyzeDataSourceRisk(com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest request, - io.grpc.stub.StreamObserver
- * Returns list of results for given inspect operation result set id. - *- */ - public void listInspectFindings(com.google.privacy.dlp.v2beta1.ListInspectFindingsRequest request, - io.grpc.stub.StreamObserver
- * Returns sensitive information types for given category. - *- */ - public void listInfoTypes(com.google.privacy.dlp.v2beta1.ListInfoTypesRequest request, - io.grpc.stub.StreamObserver
- * Returns the list of root categories of sensitive information. - *- */ - public void listRootCategories(com.google.privacy.dlp.v2beta1.ListRootCategoriesRequest request, - io.grpc.stub.StreamObserver
- * The DLP API is a service that allows clients - * to detect the presence of Personally Identifiable Information (PII) and other - * privacy-sensitive data in user-supplied, unstructured data streams, like text - * blocks or images. - * The service also includes methods for sensitive data redaction and - * scheduling of data scans on Google Cloud Platform based data sets. - *- */ - public static final class DlpServiceBlockingStub extends io.grpc.stub.AbstractStub
- * Finds potentially sensitive info in a list of strings. - * This method has limits on input size, processing time, and output size. - *- */ - public com.google.privacy.dlp.v2beta1.InspectContentResponse inspectContent(com.google.privacy.dlp.v2beta1.InspectContentRequest request) { - return blockingUnaryCall( - getChannel(), getInspectContentMethodHelper(), getCallOptions(), request); - } - - /** - *
- * Redacts potentially sensitive info from a list of strings. - * This method has limits on input size, processing time, and output size. - *- */ - public com.google.privacy.dlp.v2beta1.RedactContentResponse redactContent(com.google.privacy.dlp.v2beta1.RedactContentRequest request) { - return blockingUnaryCall( - getChannel(), getRedactContentMethodHelper(), getCallOptions(), request); - } - - /** - *
- * De-identifies potentially sensitive info from a list of strings. - * This method has limits on input size and output size. - *- */ - public com.google.privacy.dlp.v2beta1.DeidentifyContentResponse deidentifyContent(com.google.privacy.dlp.v2beta1.DeidentifyContentRequest request) { - return blockingUnaryCall( - getChannel(), getDeidentifyContentMethodHelper(), getCallOptions(), request); - } - - /** - *
- * Schedules a job scanning content in a Google Cloud Platform data - * repository. - *- */ - public com.google.longrunning.Operation createInspectOperation(com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest request) { - return blockingUnaryCall( - getChannel(), getCreateInspectOperationMethodHelper(), getCallOptions(), request); - } - - /** - *
- * Schedules a job to compute risk analysis metrics over content in a Google - * Cloud Platform repository. - *- */ - public com.google.longrunning.Operation analyzeDataSourceRisk(com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest request) { - return blockingUnaryCall( - getChannel(), getAnalyzeDataSourceRiskMethodHelper(), getCallOptions(), request); - } - - /** - *
- * Returns list of results for given inspect operation result set id. - *- */ - public com.google.privacy.dlp.v2beta1.ListInspectFindingsResponse listInspectFindings(com.google.privacy.dlp.v2beta1.ListInspectFindingsRequest request) { - return blockingUnaryCall( - getChannel(), getListInspectFindingsMethodHelper(), getCallOptions(), request); - } - - /** - *
- * Returns sensitive information types for given category. - *- */ - public com.google.privacy.dlp.v2beta1.ListInfoTypesResponse listInfoTypes(com.google.privacy.dlp.v2beta1.ListInfoTypesRequest request) { - return blockingUnaryCall( - getChannel(), getListInfoTypesMethodHelper(), getCallOptions(), request); - } - - /** - *
- * Returns the list of root categories of sensitive information. - *- */ - public com.google.privacy.dlp.v2beta1.ListRootCategoriesResponse listRootCategories(com.google.privacy.dlp.v2beta1.ListRootCategoriesRequest request) { - return blockingUnaryCall( - getChannel(), getListRootCategoriesMethodHelper(), getCallOptions(), request); - } - } - - /** - *
- * The DLP API is a service that allows clients - * to detect the presence of Personally Identifiable Information (PII) and other - * privacy-sensitive data in user-supplied, unstructured data streams, like text - * blocks or images. - * The service also includes methods for sensitive data redaction and - * scheduling of data scans on Google Cloud Platform based data sets. - *- */ - public static final class DlpServiceFutureStub extends io.grpc.stub.AbstractStub
- * Finds potentially sensitive info in a list of strings. - * This method has limits on input size, processing time, and output size. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Redacts potentially sensitive info from a list of strings. - * This method has limits on input size, processing time, and output size. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * De-identifies potentially sensitive info from a list of strings. - * This method has limits on input size and output size. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Schedules a job scanning content in a Google Cloud Platform data - * repository. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Schedules a job to compute risk analysis metrics over content in a Google - * Cloud Platform repository. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Returns list of results for given inspect operation result set id. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Returns sensitive information types for given category. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Returns the list of root categories of sensitive information. - *- */ - public com.google.common.util.concurrent.ListenableFuture
+ * Run asynchronous image detection and annotation for a list of generic + * files, such as PDF files, which may contain multiple pages and multiple + * images per page. Progress and results can be retrieved through the + * `google.longrunning.Operations` interface. + * `Operation.metadata` contains `OperationMetadata` (metadata). + * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). + *+ */ + public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request, + io.grpc.stub.StreamObserver
+ * Run asynchronous image detection and annotation for a list of generic + * files, such as PDF files, which may contain multiple pages and multiple + * images per page. Progress and results can be retrieved through the + * `google.longrunning.Operations` interface. + * `Operation.metadata` contains `OperationMetadata` (metadata). + * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). + *+ */ + public void asyncBatchAnnotateFiles(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request, + io.grpc.stub.StreamObserver
+ * Run asynchronous image detection and annotation for a list of generic + * files, such as PDF files, which may contain multiple pages and multiple + * images per page. Progress and results can be retrieved through the + * `google.longrunning.Operations` interface. + * `Operation.metadata` contains `OperationMetadata` (metadata). + * `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results). + *+ */ + public com.google.longrunning.Operation asyncBatchAnnotateFiles(com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request) { + return blockingUnaryCall( + getChannel(), getAsyncBatchAnnotateFilesMethodHelper(), getCallOptions(), request); + } } /** @@ -227,9 +317,26 @@ public com.google.common.util.concurrent.ListenableFuture
- * Request for creating a risk analysis operation. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest} - */ -public final class AnalyzeDataSourceRiskRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest) - AnalyzeDataSourceRiskRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use AnalyzeDataSourceRiskRequest.newBuilder() to construct. - private AnalyzeDataSourceRiskRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private AnalyzeDataSourceRiskRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AnalyzeDataSourceRiskRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.privacy.dlp.v2beta1.PrivacyMetric.Builder subBuilder = null; - if (privacyMetric_ != null) { - subBuilder = privacyMetric_.toBuilder(); - } - privacyMetric_ = input.readMessage(com.google.privacy.dlp.v2beta1.PrivacyMetric.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(privacyMetric_); - privacyMetric_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - com.google.privacy.dlp.v2beta1.BigQueryTable.Builder subBuilder = null; - if (sourceTable_ != null) { - subBuilder = sourceTable_.toBuilder(); - } - sourceTable_ = input.readMessage(com.google.privacy.dlp.v2beta1.BigQueryTable.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sourceTable_); - sourceTable_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_AnalyzeDataSourceRiskRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_AnalyzeDataSourceRiskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest.class, com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest.Builder.class); - } - - public static final int PRIVACY_METRIC_FIELD_NUMBER = 1; - private com.google.privacy.dlp.v2beta1.PrivacyMetric privacyMetric_; - /** - *
- * Privacy metric to compute. - *- * - *
.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;
- */
- public boolean hasPrivacyMetric() {
- return privacyMetric_ != null;
- }
- /**
- * - * Privacy metric to compute. - *- * - *
.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;
- */
- public com.google.privacy.dlp.v2beta1.PrivacyMetric getPrivacyMetric() {
- return privacyMetric_ == null ? com.google.privacy.dlp.v2beta1.PrivacyMetric.getDefaultInstance() : privacyMetric_;
- }
- /**
- * - * Privacy metric to compute. - *- * - *
.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;
- */
- public com.google.privacy.dlp.v2beta1.PrivacyMetricOrBuilder getPrivacyMetricOrBuilder() {
- return getPrivacyMetric();
- }
-
- public static final int SOURCE_TABLE_FIELD_NUMBER = 3;
- private com.google.privacy.dlp.v2beta1.BigQueryTable sourceTable_;
- /**
- * - * Input dataset to compute metrics over. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;
- */
- public boolean hasSourceTable() {
- return sourceTable_ != null;
- }
- /**
- * - * Input dataset to compute metrics over. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;
- */
- public com.google.privacy.dlp.v2beta1.BigQueryTable getSourceTable() {
- return sourceTable_ == null ? com.google.privacy.dlp.v2beta1.BigQueryTable.getDefaultInstance() : sourceTable_;
- }
- /**
- * - * Input dataset to compute metrics over. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;
- */
- public com.google.privacy.dlp.v2beta1.BigQueryTableOrBuilder getSourceTableOrBuilder() {
- return getSourceTable();
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (privacyMetric_ != null) {
- output.writeMessage(1, getPrivacyMetric());
- }
- if (sourceTable_ != null) {
- output.writeMessage(3, getSourceTable());
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (privacyMetric_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getPrivacyMetric());
- }
- if (sourceTable_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, getSourceTable());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest other = (com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest) obj;
-
- boolean result = true;
- result = result && (hasPrivacyMetric() == other.hasPrivacyMetric());
- if (hasPrivacyMetric()) {
- result = result && getPrivacyMetric()
- .equals(other.getPrivacyMetric());
- }
- result = result && (hasSourceTable() == other.hasSourceTable());
- if (hasSourceTable()) {
- result = result && getSourceTable()
- .equals(other.getSourceTable());
- }
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasPrivacyMetric()) {
- hash = (37 * hash) + PRIVACY_METRIC_FIELD_NUMBER;
- hash = (53 * hash) + getPrivacyMetric().hashCode();
- }
- if (hasSourceTable()) {
- hash = (37 * hash) + SOURCE_TABLE_FIELD_NUMBER;
- hash = (53 * hash) + getSourceTable().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Request for creating a risk analysis operation. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * Privacy metric to compute. - *- * - *
.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;
- */
- public boolean hasPrivacyMetric() {
- return privacyMetricBuilder_ != null || privacyMetric_ != null;
- }
- /**
- * - * Privacy metric to compute. - *- * - *
.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;
- */
- public com.google.privacy.dlp.v2beta1.PrivacyMetric getPrivacyMetric() {
- if (privacyMetricBuilder_ == null) {
- return privacyMetric_ == null ? com.google.privacy.dlp.v2beta1.PrivacyMetric.getDefaultInstance() : privacyMetric_;
- } else {
- return privacyMetricBuilder_.getMessage();
- }
- }
- /**
- * - * Privacy metric to compute. - *- * - *
.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;
- */
- public Builder setPrivacyMetric(com.google.privacy.dlp.v2beta1.PrivacyMetric value) {
- if (privacyMetricBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- privacyMetric_ = value;
- onChanged();
- } else {
- privacyMetricBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * Privacy metric to compute. - *- * - *
.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;
- */
- public Builder setPrivacyMetric(
- com.google.privacy.dlp.v2beta1.PrivacyMetric.Builder builderForValue) {
- if (privacyMetricBuilder_ == null) {
- privacyMetric_ = builderForValue.build();
- onChanged();
- } else {
- privacyMetricBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * Privacy metric to compute. - *- * - *
.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;
- */
- public Builder mergePrivacyMetric(com.google.privacy.dlp.v2beta1.PrivacyMetric value) {
- if (privacyMetricBuilder_ == null) {
- if (privacyMetric_ != null) {
- privacyMetric_ =
- com.google.privacy.dlp.v2beta1.PrivacyMetric.newBuilder(privacyMetric_).mergeFrom(value).buildPartial();
- } else {
- privacyMetric_ = value;
- }
- onChanged();
- } else {
- privacyMetricBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * Privacy metric to compute. - *- * - *
.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;
- */
- public Builder clearPrivacyMetric() {
- if (privacyMetricBuilder_ == null) {
- privacyMetric_ = null;
- onChanged();
- } else {
- privacyMetric_ = null;
- privacyMetricBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * Privacy metric to compute. - *- * - *
.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;
- */
- public com.google.privacy.dlp.v2beta1.PrivacyMetric.Builder getPrivacyMetricBuilder() {
-
- onChanged();
- return getPrivacyMetricFieldBuilder().getBuilder();
- }
- /**
- * - * Privacy metric to compute. - *- * - *
.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;
- */
- public com.google.privacy.dlp.v2beta1.PrivacyMetricOrBuilder getPrivacyMetricOrBuilder() {
- if (privacyMetricBuilder_ != null) {
- return privacyMetricBuilder_.getMessageOrBuilder();
- } else {
- return privacyMetric_ == null ?
- com.google.privacy.dlp.v2beta1.PrivacyMetric.getDefaultInstance() : privacyMetric_;
- }
- }
- /**
- * - * Privacy metric to compute. - *- * - *
.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.PrivacyMetric, com.google.privacy.dlp.v2beta1.PrivacyMetric.Builder, com.google.privacy.dlp.v2beta1.PrivacyMetricOrBuilder>
- getPrivacyMetricFieldBuilder() {
- if (privacyMetricBuilder_ == null) {
- privacyMetricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.PrivacyMetric, com.google.privacy.dlp.v2beta1.PrivacyMetric.Builder, com.google.privacy.dlp.v2beta1.PrivacyMetricOrBuilder>(
- getPrivacyMetric(),
- getParentForChildren(),
- isClean());
- privacyMetric_ = null;
- }
- return privacyMetricBuilder_;
- }
-
- private com.google.privacy.dlp.v2beta1.BigQueryTable sourceTable_ = null;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.BigQueryTable, com.google.privacy.dlp.v2beta1.BigQueryTable.Builder, com.google.privacy.dlp.v2beta1.BigQueryTableOrBuilder> sourceTableBuilder_;
- /**
- * - * Input dataset to compute metrics over. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;
- */
- public boolean hasSourceTable() {
- return sourceTableBuilder_ != null || sourceTable_ != null;
- }
- /**
- * - * Input dataset to compute metrics over. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;
- */
- public com.google.privacy.dlp.v2beta1.BigQueryTable getSourceTable() {
- if (sourceTableBuilder_ == null) {
- return sourceTable_ == null ? com.google.privacy.dlp.v2beta1.BigQueryTable.getDefaultInstance() : sourceTable_;
- } else {
- return sourceTableBuilder_.getMessage();
- }
- }
- /**
- * - * Input dataset to compute metrics over. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;
- */
- public Builder setSourceTable(com.google.privacy.dlp.v2beta1.BigQueryTable value) {
- if (sourceTableBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- sourceTable_ = value;
- onChanged();
- } else {
- sourceTableBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * Input dataset to compute metrics over. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;
- */
- public Builder setSourceTable(
- com.google.privacy.dlp.v2beta1.BigQueryTable.Builder builderForValue) {
- if (sourceTableBuilder_ == null) {
- sourceTable_ = builderForValue.build();
- onChanged();
- } else {
- sourceTableBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * Input dataset to compute metrics over. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;
- */
- public Builder mergeSourceTable(com.google.privacy.dlp.v2beta1.BigQueryTable value) {
- if (sourceTableBuilder_ == null) {
- if (sourceTable_ != null) {
- sourceTable_ =
- com.google.privacy.dlp.v2beta1.BigQueryTable.newBuilder(sourceTable_).mergeFrom(value).buildPartial();
- } else {
- sourceTable_ = value;
- }
- onChanged();
- } else {
- sourceTableBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * Input dataset to compute metrics over. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;
- */
- public Builder clearSourceTable() {
- if (sourceTableBuilder_ == null) {
- sourceTable_ = null;
- onChanged();
- } else {
- sourceTable_ = null;
- sourceTableBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * Input dataset to compute metrics over. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;
- */
- public com.google.privacy.dlp.v2beta1.BigQueryTable.Builder getSourceTableBuilder() {
-
- onChanged();
- return getSourceTableFieldBuilder().getBuilder();
- }
- /**
- * - * Input dataset to compute metrics over. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;
- */
- public com.google.privacy.dlp.v2beta1.BigQueryTableOrBuilder getSourceTableOrBuilder() {
- if (sourceTableBuilder_ != null) {
- return sourceTableBuilder_.getMessageOrBuilder();
- } else {
- return sourceTable_ == null ?
- com.google.privacy.dlp.v2beta1.BigQueryTable.getDefaultInstance() : sourceTable_;
- }
- }
- /**
- * - * Input dataset to compute metrics over. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.BigQueryTable, com.google.privacy.dlp.v2beta1.BigQueryTable.Builder, com.google.privacy.dlp.v2beta1.BigQueryTableOrBuilder>
- getSourceTableFieldBuilder() {
- if (sourceTableBuilder_ == null) {
- sourceTableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.BigQueryTable, com.google.privacy.dlp.v2beta1.BigQueryTable.Builder, com.google.privacy.dlp.v2beta1.BigQueryTableOrBuilder>(
- getSourceTable(),
- getParentForChildren(),
- isClean());
- sourceTable_ = null;
- }
- return sourceTableBuilder_;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest)
- private static final com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest();
- }
-
- public static com.google.privacy.dlp.v2beta1.AnalyzeDataSourceRiskRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * Privacy metric to compute. - *- * - *
.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;
- */
- boolean hasPrivacyMetric();
- /**
- * - * Privacy metric to compute. - *- * - *
.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;
- */
- com.google.privacy.dlp.v2beta1.PrivacyMetric getPrivacyMetric();
- /**
- * - * Privacy metric to compute. - *- * - *
.google.privacy.dlp.v2beta1.PrivacyMetric privacy_metric = 1;
- */
- com.google.privacy.dlp.v2beta1.PrivacyMetricOrBuilder getPrivacyMetricOrBuilder();
-
- /**
- * - * Input dataset to compute metrics over. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;
- */
- boolean hasSourceTable();
- /**
- * - * Input dataset to compute metrics over. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;
- */
- com.google.privacy.dlp.v2beta1.BigQueryTable getSourceTable();
- /**
- * - * Input dataset to compute metrics over. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable source_table = 3;
- */
- com.google.privacy.dlp.v2beta1.BigQueryTableOrBuilder getSourceTableOrBuilder();
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/BigQueryOptions.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/BigQueryOptions.java
deleted file mode 100644
index ed2ef8bd3c8e..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/BigQueryOptions.java
+++ /dev/null
@@ -1,1089 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/storage.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-/**
- * - * Options defining BigQuery table and row identifiers. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.BigQueryOptions} - */ -public final class BigQueryOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.BigQueryOptions) - BigQueryOptionsOrBuilder { -private static final long serialVersionUID = 0L; - // Use BigQueryOptions.newBuilder() to construct. - private BigQueryOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private BigQueryOptions() { - identifyingFields_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BigQueryOptions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.privacy.dlp.v2beta1.BigQueryTable.Builder subBuilder = null; - if (tableReference_ != null) { - subBuilder = tableReference_.toBuilder(); - } - tableReference_ = input.readMessage(com.google.privacy.dlp.v2beta1.BigQueryTable.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tableReference_); - tableReference_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - identifyingFields_ = new java.util.ArrayList
- * Complete BigQuery table reference. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable table_reference = 1;
- */
- public boolean hasTableReference() {
- return tableReference_ != null;
- }
- /**
- * - * Complete BigQuery table reference. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable table_reference = 1;
- */
- public com.google.privacy.dlp.v2beta1.BigQueryTable getTableReference() {
- return tableReference_ == null ? com.google.privacy.dlp.v2beta1.BigQueryTable.getDefaultInstance() : tableReference_;
- }
- /**
- * - * Complete BigQuery table reference. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable table_reference = 1;
- */
- public com.google.privacy.dlp.v2beta1.BigQueryTableOrBuilder getTableReferenceOrBuilder() {
- return getTableReference();
- }
-
- public static final int IDENTIFYING_FIELDS_FIELD_NUMBER = 2;
- private java.util.List- * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public java.util.List- * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public java.util.List extends com.google.privacy.dlp.v2beta1.FieldIdOrBuilder>
- getIdentifyingFieldsOrBuilderList() {
- return identifyingFields_;
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public int getIdentifyingFieldsCount() {
- return identifyingFields_.size();
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public com.google.privacy.dlp.v2beta1.FieldId getIdentifyingFields(int index) {
- return identifyingFields_.get(index);
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public com.google.privacy.dlp.v2beta1.FieldIdOrBuilder getIdentifyingFieldsOrBuilder(
- int index) {
- return identifyingFields_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (tableReference_ != null) {
- output.writeMessage(1, getTableReference());
- }
- for (int i = 0; i < identifyingFields_.size(); i++) {
- output.writeMessage(2, identifyingFields_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (tableReference_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getTableReference());
- }
- for (int i = 0; i < identifyingFields_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, identifyingFields_.get(i));
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.BigQueryOptions)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.BigQueryOptions other = (com.google.privacy.dlp.v2beta1.BigQueryOptions) obj;
-
- boolean result = true;
- result = result && (hasTableReference() == other.hasTableReference());
- if (hasTableReference()) {
- result = result && getTableReference()
- .equals(other.getTableReference());
- }
- result = result && getIdentifyingFieldsList()
- .equals(other.getIdentifyingFieldsList());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasTableReference()) {
- hash = (37 * hash) + TABLE_REFERENCE_FIELD_NUMBER;
- hash = (53 * hash) + getTableReference().hashCode();
- }
- if (getIdentifyingFieldsCount() > 0) {
- hash = (37 * hash) + IDENTIFYING_FIELDS_FIELD_NUMBER;
- hash = (53 * hash) + getIdentifyingFieldsList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.BigQueryOptions parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryOptions parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryOptions parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryOptions parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryOptions parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryOptions parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryOptions parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryOptions parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryOptions parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryOptions parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryOptions parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryOptions parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.BigQueryOptions prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Options defining BigQuery table and row identifiers. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.BigQueryOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * Complete BigQuery table reference. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable table_reference = 1;
- */
- public boolean hasTableReference() {
- return tableReferenceBuilder_ != null || tableReference_ != null;
- }
- /**
- * - * Complete BigQuery table reference. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable table_reference = 1;
- */
- public com.google.privacy.dlp.v2beta1.BigQueryTable getTableReference() {
- if (tableReferenceBuilder_ == null) {
- return tableReference_ == null ? com.google.privacy.dlp.v2beta1.BigQueryTable.getDefaultInstance() : tableReference_;
- } else {
- return tableReferenceBuilder_.getMessage();
- }
- }
- /**
- * - * Complete BigQuery table reference. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable table_reference = 1;
- */
- public Builder setTableReference(com.google.privacy.dlp.v2beta1.BigQueryTable value) {
- if (tableReferenceBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- tableReference_ = value;
- onChanged();
- } else {
- tableReferenceBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * Complete BigQuery table reference. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable table_reference = 1;
- */
- public Builder setTableReference(
- com.google.privacy.dlp.v2beta1.BigQueryTable.Builder builderForValue) {
- if (tableReferenceBuilder_ == null) {
- tableReference_ = builderForValue.build();
- onChanged();
- } else {
- tableReferenceBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * Complete BigQuery table reference. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable table_reference = 1;
- */
- public Builder mergeTableReference(com.google.privacy.dlp.v2beta1.BigQueryTable value) {
- if (tableReferenceBuilder_ == null) {
- if (tableReference_ != null) {
- tableReference_ =
- com.google.privacy.dlp.v2beta1.BigQueryTable.newBuilder(tableReference_).mergeFrom(value).buildPartial();
- } else {
- tableReference_ = value;
- }
- onChanged();
- } else {
- tableReferenceBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * Complete BigQuery table reference. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable table_reference = 1;
- */
- public Builder clearTableReference() {
- if (tableReferenceBuilder_ == null) {
- tableReference_ = null;
- onChanged();
- } else {
- tableReference_ = null;
- tableReferenceBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * Complete BigQuery table reference. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable table_reference = 1;
- */
- public com.google.privacy.dlp.v2beta1.BigQueryTable.Builder getTableReferenceBuilder() {
-
- onChanged();
- return getTableReferenceFieldBuilder().getBuilder();
- }
- /**
- * - * Complete BigQuery table reference. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable table_reference = 1;
- */
- public com.google.privacy.dlp.v2beta1.BigQueryTableOrBuilder getTableReferenceOrBuilder() {
- if (tableReferenceBuilder_ != null) {
- return tableReferenceBuilder_.getMessageOrBuilder();
- } else {
- return tableReference_ == null ?
- com.google.privacy.dlp.v2beta1.BigQueryTable.getDefaultInstance() : tableReference_;
- }
- }
- /**
- * - * Complete BigQuery table reference. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable table_reference = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.BigQueryTable, com.google.privacy.dlp.v2beta1.BigQueryTable.Builder, com.google.privacy.dlp.v2beta1.BigQueryTableOrBuilder>
- getTableReferenceFieldBuilder() {
- if (tableReferenceBuilder_ == null) {
- tableReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.BigQueryTable, com.google.privacy.dlp.v2beta1.BigQueryTable.Builder, com.google.privacy.dlp.v2beta1.BigQueryTableOrBuilder>(
- getTableReference(),
- getParentForChildren(),
- isClean());
- tableReference_ = null;
- }
- return tableReferenceBuilder_;
- }
-
- private java.util.List- * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public java.util.List- * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public int getIdentifyingFieldsCount() {
- if (identifyingFieldsBuilder_ == null) {
- return identifyingFields_.size();
- } else {
- return identifyingFieldsBuilder_.getCount();
- }
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public com.google.privacy.dlp.v2beta1.FieldId getIdentifyingFields(int index) {
- if (identifyingFieldsBuilder_ == null) {
- return identifyingFields_.get(index);
- } else {
- return identifyingFieldsBuilder_.getMessage(index);
- }
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public Builder setIdentifyingFields(
- int index, com.google.privacy.dlp.v2beta1.FieldId value) {
- if (identifyingFieldsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureIdentifyingFieldsIsMutable();
- identifyingFields_.set(index, value);
- onChanged();
- } else {
- identifyingFieldsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public Builder setIdentifyingFields(
- int index, com.google.privacy.dlp.v2beta1.FieldId.Builder builderForValue) {
- if (identifyingFieldsBuilder_ == null) {
- ensureIdentifyingFieldsIsMutable();
- identifyingFields_.set(index, builderForValue.build());
- onChanged();
- } else {
- identifyingFieldsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public Builder addIdentifyingFields(com.google.privacy.dlp.v2beta1.FieldId value) {
- if (identifyingFieldsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureIdentifyingFieldsIsMutable();
- identifyingFields_.add(value);
- onChanged();
- } else {
- identifyingFieldsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public Builder addIdentifyingFields(
- int index, com.google.privacy.dlp.v2beta1.FieldId value) {
- if (identifyingFieldsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureIdentifyingFieldsIsMutable();
- identifyingFields_.add(index, value);
- onChanged();
- } else {
- identifyingFieldsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public Builder addIdentifyingFields(
- com.google.privacy.dlp.v2beta1.FieldId.Builder builderForValue) {
- if (identifyingFieldsBuilder_ == null) {
- ensureIdentifyingFieldsIsMutable();
- identifyingFields_.add(builderForValue.build());
- onChanged();
- } else {
- identifyingFieldsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public Builder addIdentifyingFields(
- int index, com.google.privacy.dlp.v2beta1.FieldId.Builder builderForValue) {
- if (identifyingFieldsBuilder_ == null) {
- ensureIdentifyingFieldsIsMutable();
- identifyingFields_.add(index, builderForValue.build());
- onChanged();
- } else {
- identifyingFieldsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public Builder addAllIdentifyingFields(
- java.lang.Iterable extends com.google.privacy.dlp.v2beta1.FieldId> values) {
- if (identifyingFieldsBuilder_ == null) {
- ensureIdentifyingFieldsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, identifyingFields_);
- onChanged();
- } else {
- identifyingFieldsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public Builder clearIdentifyingFields() {
- if (identifyingFieldsBuilder_ == null) {
- identifyingFields_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- } else {
- identifyingFieldsBuilder_.clear();
- }
- return this;
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public Builder removeIdentifyingFields(int index) {
- if (identifyingFieldsBuilder_ == null) {
- ensureIdentifyingFieldsIsMutable();
- identifyingFields_.remove(index);
- onChanged();
- } else {
- identifyingFieldsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public com.google.privacy.dlp.v2beta1.FieldId.Builder getIdentifyingFieldsBuilder(
- int index) {
- return getIdentifyingFieldsFieldBuilder().getBuilder(index);
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public com.google.privacy.dlp.v2beta1.FieldIdOrBuilder getIdentifyingFieldsOrBuilder(
- int index) {
- if (identifyingFieldsBuilder_ == null) {
- return identifyingFields_.get(index); } else {
- return identifyingFieldsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public java.util.List extends com.google.privacy.dlp.v2beta1.FieldIdOrBuilder>
- getIdentifyingFieldsOrBuilderList() {
- if (identifyingFieldsBuilder_ != null) {
- return identifyingFieldsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(identifyingFields_);
- }
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public com.google.privacy.dlp.v2beta1.FieldId.Builder addIdentifyingFieldsBuilder() {
- return getIdentifyingFieldsFieldBuilder().addBuilder(
- com.google.privacy.dlp.v2beta1.FieldId.getDefaultInstance());
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public com.google.privacy.dlp.v2beta1.FieldId.Builder addIdentifyingFieldsBuilder(
- int index) {
- return getIdentifyingFieldsFieldBuilder().addBuilder(
- index, com.google.privacy.dlp.v2beta1.FieldId.getDefaultInstance());
- }
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- public java.util.List- * Complete BigQuery table reference. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable table_reference = 1;
- */
- boolean hasTableReference();
- /**
- * - * Complete BigQuery table reference. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable table_reference = 1;
- */
- com.google.privacy.dlp.v2beta1.BigQueryTable getTableReference();
- /**
- * - * Complete BigQuery table reference. - *- * - *
.google.privacy.dlp.v2beta1.BigQueryTable table_reference = 1;
- */
- com.google.privacy.dlp.v2beta1.BigQueryTableOrBuilder getTableReferenceOrBuilder();
-
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- java.util.List- * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- com.google.privacy.dlp.v2beta1.FieldId getIdentifyingFields(int index);
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- int getIdentifyingFieldsCount();
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- java.util.List extends com.google.privacy.dlp.v2beta1.FieldIdOrBuilder>
- getIdentifyingFieldsOrBuilderList();
- /**
- * - * References to fields uniquely identifying rows within the table. - * Nested fields in the format, like `person.birthdate.year`, are allowed. - *- * - *
repeated .google.privacy.dlp.v2beta1.FieldId identifying_fields = 2;
- */
- com.google.privacy.dlp.v2beta1.FieldIdOrBuilder getIdentifyingFieldsOrBuilder(
- int index);
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/BigQueryTable.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/BigQueryTable.java
deleted file mode 100644
index e160354df33e..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/BigQueryTable.java
+++ /dev/null
@@ -1,877 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/storage.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-/**
- * - * Message defining the location of a BigQuery table. A table is uniquely - * identified by its project_id, dataset_id, and table_name. Within a query - * a table is often referenced with a string in the format of: - * `<project_id>:<dataset_id>.<table_id>` or - * `<project_id>.<dataset_id>.<table_id>`. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.BigQueryTable} - */ -public final class BigQueryTable extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.BigQueryTable) - BigQueryTableOrBuilder { -private static final long serialVersionUID = 0L; - // Use BigQueryTable.newBuilder() to construct. - private BigQueryTable(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private BigQueryTable() { - projectId_ = ""; - datasetId_ = ""; - tableId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BigQueryTable( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - projectId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - datasetId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - tableId_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpStorage.internal_static_google_privacy_dlp_v2beta1_BigQueryTable_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpStorage.internal_static_google_privacy_dlp_v2beta1_BigQueryTable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.BigQueryTable.class, com.google.privacy.dlp.v2beta1.BigQueryTable.Builder.class); - } - - public static final int PROJECT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object projectId_; - /** - *
- * The Google Cloud Platform project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - *- * - *
string project_id = 1;
- */
- public java.lang.String getProjectId() {
- java.lang.Object ref = projectId_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- projectId_ = s;
- return s;
- }
- }
- /**
- * - * The Google Cloud Platform project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - *- * - *
string project_id = 1;
- */
- public com.google.protobuf.ByteString
- getProjectIdBytes() {
- java.lang.Object ref = projectId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- projectId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int DATASET_ID_FIELD_NUMBER = 2;
- private volatile java.lang.Object datasetId_;
- /**
- * - * Dataset ID of the table. - *- * - *
string dataset_id = 2;
- */
- public java.lang.String getDatasetId() {
- java.lang.Object ref = datasetId_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- datasetId_ = s;
- return s;
- }
- }
- /**
- * - * Dataset ID of the table. - *- * - *
string dataset_id = 2;
- */
- public com.google.protobuf.ByteString
- getDatasetIdBytes() {
- java.lang.Object ref = datasetId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- datasetId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int TABLE_ID_FIELD_NUMBER = 3;
- private volatile java.lang.Object tableId_;
- /**
- * - * Name of the table. - *- * - *
string table_id = 3;
- */
- public java.lang.String getTableId() {
- java.lang.Object ref = tableId_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- tableId_ = s;
- return s;
- }
- }
- /**
- * - * Name of the table. - *- * - *
string table_id = 3;
- */
- public com.google.protobuf.ByteString
- getTableIdBytes() {
- java.lang.Object ref = tableId_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- tableId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (!getProjectIdBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_);
- }
- if (!getDatasetIdBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, datasetId_);
- }
- if (!getTableIdBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableId_);
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getProjectIdBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_);
- }
- if (!getDatasetIdBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, datasetId_);
- }
- if (!getTableIdBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableId_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.BigQueryTable)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.BigQueryTable other = (com.google.privacy.dlp.v2beta1.BigQueryTable) obj;
-
- boolean result = true;
- result = result && getProjectId()
- .equals(other.getProjectId());
- result = result && getDatasetId()
- .equals(other.getDatasetId());
- result = result && getTableId()
- .equals(other.getTableId());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
- hash = (53 * hash) + getProjectId().hashCode();
- hash = (37 * hash) + DATASET_ID_FIELD_NUMBER;
- hash = (53 * hash) + getDatasetId().hashCode();
- hash = (37 * hash) + TABLE_ID_FIELD_NUMBER;
- hash = (53 * hash) + getTableId().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.BigQueryTable parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryTable parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryTable parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryTable parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryTable parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryTable parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryTable parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryTable parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryTable parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryTable parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryTable parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.BigQueryTable parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.BigQueryTable prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Message defining the location of a BigQuery table. A table is uniquely - * identified by its project_id, dataset_id, and table_name. Within a query - * a table is often referenced with a string in the format of: - * `<project_id>:<dataset_id>.<table_id>` or - * `<project_id>.<dataset_id>.<table_id>`. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.BigQueryTable} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * The Google Cloud Platform project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - *- * - *
string project_id = 1;
- */
- public java.lang.String getProjectId() {
- java.lang.Object ref = projectId_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- projectId_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * - * The Google Cloud Platform project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - *- * - *
string project_id = 1;
- */
- public com.google.protobuf.ByteString
- getProjectIdBytes() {
- java.lang.Object ref = projectId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- projectId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * - * The Google Cloud Platform project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - *- * - *
string project_id = 1;
- */
- public Builder setProjectId(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- projectId_ = value;
- onChanged();
- return this;
- }
- /**
- * - * The Google Cloud Platform project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - *- * - *
string project_id = 1;
- */
- public Builder clearProjectId() {
-
- projectId_ = getDefaultInstance().getProjectId();
- onChanged();
- return this;
- }
- /**
- * - * The Google Cloud Platform project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - *- * - *
string project_id = 1;
- */
- public Builder setProjectIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- projectId_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object datasetId_ = "";
- /**
- * - * Dataset ID of the table. - *- * - *
string dataset_id = 2;
- */
- public java.lang.String getDatasetId() {
- java.lang.Object ref = datasetId_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- datasetId_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * - * Dataset ID of the table. - *- * - *
string dataset_id = 2;
- */
- public com.google.protobuf.ByteString
- getDatasetIdBytes() {
- java.lang.Object ref = datasetId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- datasetId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * - * Dataset ID of the table. - *- * - *
string dataset_id = 2;
- */
- public Builder setDatasetId(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- datasetId_ = value;
- onChanged();
- return this;
- }
- /**
- * - * Dataset ID of the table. - *- * - *
string dataset_id = 2;
- */
- public Builder clearDatasetId() {
-
- datasetId_ = getDefaultInstance().getDatasetId();
- onChanged();
- return this;
- }
- /**
- * - * Dataset ID of the table. - *- * - *
string dataset_id = 2;
- */
- public Builder setDatasetIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- datasetId_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object tableId_ = "";
- /**
- * - * Name of the table. - *- * - *
string table_id = 3;
- */
- public java.lang.String getTableId() {
- java.lang.Object ref = tableId_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- tableId_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * - * Name of the table. - *- * - *
string table_id = 3;
- */
- public com.google.protobuf.ByteString
- getTableIdBytes() {
- java.lang.Object ref = tableId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- tableId_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * - * Name of the table. - *- * - *
string table_id = 3;
- */
- public Builder setTableId(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- tableId_ = value;
- onChanged();
- return this;
- }
- /**
- * - * Name of the table. - *- * - *
string table_id = 3;
- */
- public Builder clearTableId() {
-
- tableId_ = getDefaultInstance().getTableId();
- onChanged();
- return this;
- }
- /**
- * - * Name of the table. - *- * - *
string table_id = 3;
- */
- public Builder setTableIdBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- tableId_ = value;
- onChanged();
- return this;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.BigQueryTable)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.BigQueryTable)
- private static final com.google.privacy.dlp.v2beta1.BigQueryTable DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.BigQueryTable();
- }
-
- public static com.google.privacy.dlp.v2beta1.BigQueryTable getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * The Google Cloud Platform project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - *- * - *
string project_id = 1;
- */
- java.lang.String getProjectId();
- /**
- * - * The Google Cloud Platform project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - *- * - *
string project_id = 1;
- */
- com.google.protobuf.ByteString
- getProjectIdBytes();
-
- /**
- * - * Dataset ID of the table. - *- * - *
string dataset_id = 2;
- */
- java.lang.String getDatasetId();
- /**
- * - * Dataset ID of the table. - *- * - *
string dataset_id = 2;
- */
- com.google.protobuf.ByteString
- getDatasetIdBytes();
-
- /**
- * - * Name of the table. - *- * - *
string table_id = 3;
- */
- java.lang.String getTableId();
- /**
- * - * Name of the table. - *- * - *
string table_id = 3;
- */
- com.google.protobuf.ByteString
- getTableIdBytes();
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/BucketingConfig.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/BucketingConfig.java
deleted file mode 100644
index d4a5b793fbac..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/BucketingConfig.java
+++ /dev/null
@@ -1,1946 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/dlp.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-/**
- * - * Generalization function that buckets values based on ranges. The ranges and - * replacement values are dynamically provided by the user for custom behavior, - * such as 1-30 -> LOW 31-65 -> MEDIUM 66-100 -> HIGH - * This can be used on - * data of type: number, long, string, timestamp. - * If the bound `Value` type differs from the type of data being transformed, we - * will first attempt converting the type of the data to be transformed to match - * the type of the bound before comparing. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.BucketingConfig} - */ -public final class BucketingConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.BucketingConfig) - BucketingConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use BucketingConfig.newBuilder() to construct. - private BucketingConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private BucketingConfig() { - buckets_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BucketingConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - buckets_ = new java.util.ArrayList
- * Lower bound of the range, inclusive. Type should be the same as max if - * used. - *- * - *
.google.privacy.dlp.v2beta1.Value min = 1;
- */
- boolean hasMin();
- /**
- * - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - *- * - *
.google.privacy.dlp.v2beta1.Value min = 1;
- */
- com.google.privacy.dlp.v2beta1.Value getMin();
- /**
- * - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - *- * - *
.google.privacy.dlp.v2beta1.Value min = 1;
- */
- com.google.privacy.dlp.v2beta1.ValueOrBuilder getMinOrBuilder();
-
- /**
- * - * Upper bound of the range, exclusive; type must match min. - *- * - *
.google.privacy.dlp.v2beta1.Value max = 2;
- */
- boolean hasMax();
- /**
- * - * Upper bound of the range, exclusive; type must match min. - *- * - *
.google.privacy.dlp.v2beta1.Value max = 2;
- */
- com.google.privacy.dlp.v2beta1.Value getMax();
- /**
- * - * Upper bound of the range, exclusive; type must match min. - *- * - *
.google.privacy.dlp.v2beta1.Value max = 2;
- */
- com.google.privacy.dlp.v2beta1.ValueOrBuilder getMaxOrBuilder();
-
- /**
- * - * Replacement value for this bucket. If not provided - * the default behavior will be to hyphenate the min-max range. - *- * - *
.google.privacy.dlp.v2beta1.Value replacement_value = 3;
- */
- boolean hasReplacementValue();
- /**
- * - * Replacement value for this bucket. If not provided - * the default behavior will be to hyphenate the min-max range. - *- * - *
.google.privacy.dlp.v2beta1.Value replacement_value = 3;
- */
- com.google.privacy.dlp.v2beta1.Value getReplacementValue();
- /**
- * - * Replacement value for this bucket. If not provided - * the default behavior will be to hyphenate the min-max range. - *- * - *
.google.privacy.dlp.v2beta1.Value replacement_value = 3;
- */
- com.google.privacy.dlp.v2beta1.ValueOrBuilder getReplacementValueOrBuilder();
- }
- /**
- * - * Buckets represented as ranges, along with replacement values. Ranges must - * be non-overlapping. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.BucketingConfig.Bucket} - */ - public static final class Bucket extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.BucketingConfig.Bucket) - BucketOrBuilder { - private static final long serialVersionUID = 0L; - // Use Bucket.newBuilder() to construct. - private Bucket(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private Bucket() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Bucket( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.privacy.dlp.v2beta1.Value.Builder subBuilder = null; - if (min_ != null) { - subBuilder = min_.toBuilder(); - } - min_ = input.readMessage(com.google.privacy.dlp.v2beta1.Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(min_); - min_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.privacy.dlp.v2beta1.Value.Builder subBuilder = null; - if (max_ != null) { - subBuilder = max_.toBuilder(); - } - max_ = input.readMessage(com.google.privacy.dlp.v2beta1.Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(max_); - max_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - com.google.privacy.dlp.v2beta1.Value.Builder subBuilder = null; - if (replacementValue_ != null) { - subBuilder = replacementValue_.toBuilder(); - } - replacementValue_ = input.readMessage(com.google.privacy.dlp.v2beta1.Value.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(replacementValue_); - replacementValue_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_BucketingConfig_Bucket_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_BucketingConfig_Bucket_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket.class, com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket.Builder.class); - } - - public static final int MIN_FIELD_NUMBER = 1; - private com.google.privacy.dlp.v2beta1.Value min_; - /** - *
- * Lower bound of the range, inclusive. Type should be the same as max if - * used. - *- * - *
.google.privacy.dlp.v2beta1.Value min = 1;
- */
- public boolean hasMin() {
- return min_ != null;
- }
- /**
- * - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - *- * - *
.google.privacy.dlp.v2beta1.Value min = 1;
- */
- public com.google.privacy.dlp.v2beta1.Value getMin() {
- return min_ == null ? com.google.privacy.dlp.v2beta1.Value.getDefaultInstance() : min_;
- }
- /**
- * - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - *- * - *
.google.privacy.dlp.v2beta1.Value min = 1;
- */
- public com.google.privacy.dlp.v2beta1.ValueOrBuilder getMinOrBuilder() {
- return getMin();
- }
-
- public static final int MAX_FIELD_NUMBER = 2;
- private com.google.privacy.dlp.v2beta1.Value max_;
- /**
- * - * Upper bound of the range, exclusive; type must match min. - *- * - *
.google.privacy.dlp.v2beta1.Value max = 2;
- */
- public boolean hasMax() {
- return max_ != null;
- }
- /**
- * - * Upper bound of the range, exclusive; type must match min. - *- * - *
.google.privacy.dlp.v2beta1.Value max = 2;
- */
- public com.google.privacy.dlp.v2beta1.Value getMax() {
- return max_ == null ? com.google.privacy.dlp.v2beta1.Value.getDefaultInstance() : max_;
- }
- /**
- * - * Upper bound of the range, exclusive; type must match min. - *- * - *
.google.privacy.dlp.v2beta1.Value max = 2;
- */
- public com.google.privacy.dlp.v2beta1.ValueOrBuilder getMaxOrBuilder() {
- return getMax();
- }
-
- public static final int REPLACEMENT_VALUE_FIELD_NUMBER = 3;
- private com.google.privacy.dlp.v2beta1.Value replacementValue_;
- /**
- * - * Replacement value for this bucket. If not provided - * the default behavior will be to hyphenate the min-max range. - *- * - *
.google.privacy.dlp.v2beta1.Value replacement_value = 3;
- */
- public boolean hasReplacementValue() {
- return replacementValue_ != null;
- }
- /**
- * - * Replacement value for this bucket. If not provided - * the default behavior will be to hyphenate the min-max range. - *- * - *
.google.privacy.dlp.v2beta1.Value replacement_value = 3;
- */
- public com.google.privacy.dlp.v2beta1.Value getReplacementValue() {
- return replacementValue_ == null ? com.google.privacy.dlp.v2beta1.Value.getDefaultInstance() : replacementValue_;
- }
- /**
- * - * Replacement value for this bucket. If not provided - * the default behavior will be to hyphenate the min-max range. - *- * - *
.google.privacy.dlp.v2beta1.Value replacement_value = 3;
- */
- public com.google.privacy.dlp.v2beta1.ValueOrBuilder getReplacementValueOrBuilder() {
- return getReplacementValue();
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (min_ != null) {
- output.writeMessage(1, getMin());
- }
- if (max_ != null) {
- output.writeMessage(2, getMax());
- }
- if (replacementValue_ != null) {
- output.writeMessage(3, getReplacementValue());
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (min_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getMin());
- }
- if (max_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, getMax());
- }
- if (replacementValue_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, getReplacementValue());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket other = (com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket) obj;
-
- boolean result = true;
- result = result && (hasMin() == other.hasMin());
- if (hasMin()) {
- result = result && getMin()
- .equals(other.getMin());
- }
- result = result && (hasMax() == other.hasMax());
- if (hasMax()) {
- result = result && getMax()
- .equals(other.getMax());
- }
- result = result && (hasReplacementValue() == other.hasReplacementValue());
- if (hasReplacementValue()) {
- result = result && getReplacementValue()
- .equals(other.getReplacementValue());
- }
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasMin()) {
- hash = (37 * hash) + MIN_FIELD_NUMBER;
- hash = (53 * hash) + getMin().hashCode();
- }
- if (hasMax()) {
- hash = (37 * hash) + MAX_FIELD_NUMBER;
- hash = (53 * hash) + getMax().hashCode();
- }
- if (hasReplacementValue()) {
- hash = (37 * hash) + REPLACEMENT_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + getReplacementValue().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Buckets represented as ranges, along with replacement values. Ranges must - * be non-overlapping. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.BucketingConfig.Bucket} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * Lower bound of the range, inclusive. Type should be the same as max if - * used. - *- * - *
.google.privacy.dlp.v2beta1.Value min = 1;
- */
- public boolean hasMin() {
- return minBuilder_ != null || min_ != null;
- }
- /**
- * - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - *- * - *
.google.privacy.dlp.v2beta1.Value min = 1;
- */
- public com.google.privacy.dlp.v2beta1.Value getMin() {
- if (minBuilder_ == null) {
- return min_ == null ? com.google.privacy.dlp.v2beta1.Value.getDefaultInstance() : min_;
- } else {
- return minBuilder_.getMessage();
- }
- }
- /**
- * - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - *- * - *
.google.privacy.dlp.v2beta1.Value min = 1;
- */
- public Builder setMin(com.google.privacy.dlp.v2beta1.Value value) {
- if (minBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- min_ = value;
- onChanged();
- } else {
- minBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - *- * - *
.google.privacy.dlp.v2beta1.Value min = 1;
- */
- public Builder setMin(
- com.google.privacy.dlp.v2beta1.Value.Builder builderForValue) {
- if (minBuilder_ == null) {
- min_ = builderForValue.build();
- onChanged();
- } else {
- minBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - *- * - *
.google.privacy.dlp.v2beta1.Value min = 1;
- */
- public Builder mergeMin(com.google.privacy.dlp.v2beta1.Value value) {
- if (minBuilder_ == null) {
- if (min_ != null) {
- min_ =
- com.google.privacy.dlp.v2beta1.Value.newBuilder(min_).mergeFrom(value).buildPartial();
- } else {
- min_ = value;
- }
- onChanged();
- } else {
- minBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - *- * - *
.google.privacy.dlp.v2beta1.Value min = 1;
- */
- public Builder clearMin() {
- if (minBuilder_ == null) {
- min_ = null;
- onChanged();
- } else {
- min_ = null;
- minBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - *- * - *
.google.privacy.dlp.v2beta1.Value min = 1;
- */
- public com.google.privacy.dlp.v2beta1.Value.Builder getMinBuilder() {
-
- onChanged();
- return getMinFieldBuilder().getBuilder();
- }
- /**
- * - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - *- * - *
.google.privacy.dlp.v2beta1.Value min = 1;
- */
- public com.google.privacy.dlp.v2beta1.ValueOrBuilder getMinOrBuilder() {
- if (minBuilder_ != null) {
- return minBuilder_.getMessageOrBuilder();
- } else {
- return min_ == null ?
- com.google.privacy.dlp.v2beta1.Value.getDefaultInstance() : min_;
- }
- }
- /**
- * - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - *- * - *
.google.privacy.dlp.v2beta1.Value min = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.Value, com.google.privacy.dlp.v2beta1.Value.Builder, com.google.privacy.dlp.v2beta1.ValueOrBuilder>
- getMinFieldBuilder() {
- if (minBuilder_ == null) {
- minBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.Value, com.google.privacy.dlp.v2beta1.Value.Builder, com.google.privacy.dlp.v2beta1.ValueOrBuilder>(
- getMin(),
- getParentForChildren(),
- isClean());
- min_ = null;
- }
- return minBuilder_;
- }
-
- private com.google.privacy.dlp.v2beta1.Value max_ = null;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.Value, com.google.privacy.dlp.v2beta1.Value.Builder, com.google.privacy.dlp.v2beta1.ValueOrBuilder> maxBuilder_;
- /**
- * - * Upper bound of the range, exclusive; type must match min. - *- * - *
.google.privacy.dlp.v2beta1.Value max = 2;
- */
- public boolean hasMax() {
- return maxBuilder_ != null || max_ != null;
- }
- /**
- * - * Upper bound of the range, exclusive; type must match min. - *- * - *
.google.privacy.dlp.v2beta1.Value max = 2;
- */
- public com.google.privacy.dlp.v2beta1.Value getMax() {
- if (maxBuilder_ == null) {
- return max_ == null ? com.google.privacy.dlp.v2beta1.Value.getDefaultInstance() : max_;
- } else {
- return maxBuilder_.getMessage();
- }
- }
- /**
- * - * Upper bound of the range, exclusive; type must match min. - *- * - *
.google.privacy.dlp.v2beta1.Value max = 2;
- */
- public Builder setMax(com.google.privacy.dlp.v2beta1.Value value) {
- if (maxBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- max_ = value;
- onChanged();
- } else {
- maxBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * Upper bound of the range, exclusive; type must match min. - *- * - *
.google.privacy.dlp.v2beta1.Value max = 2;
- */
- public Builder setMax(
- com.google.privacy.dlp.v2beta1.Value.Builder builderForValue) {
- if (maxBuilder_ == null) {
- max_ = builderForValue.build();
- onChanged();
- } else {
- maxBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * Upper bound of the range, exclusive; type must match min. - *- * - *
.google.privacy.dlp.v2beta1.Value max = 2;
- */
- public Builder mergeMax(com.google.privacy.dlp.v2beta1.Value value) {
- if (maxBuilder_ == null) {
- if (max_ != null) {
- max_ =
- com.google.privacy.dlp.v2beta1.Value.newBuilder(max_).mergeFrom(value).buildPartial();
- } else {
- max_ = value;
- }
- onChanged();
- } else {
- maxBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * Upper bound of the range, exclusive; type must match min. - *- * - *
.google.privacy.dlp.v2beta1.Value max = 2;
- */
- public Builder clearMax() {
- if (maxBuilder_ == null) {
- max_ = null;
- onChanged();
- } else {
- max_ = null;
- maxBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * Upper bound of the range, exclusive; type must match min. - *- * - *
.google.privacy.dlp.v2beta1.Value max = 2;
- */
- public com.google.privacy.dlp.v2beta1.Value.Builder getMaxBuilder() {
-
- onChanged();
- return getMaxFieldBuilder().getBuilder();
- }
- /**
- * - * Upper bound of the range, exclusive; type must match min. - *- * - *
.google.privacy.dlp.v2beta1.Value max = 2;
- */
- public com.google.privacy.dlp.v2beta1.ValueOrBuilder getMaxOrBuilder() {
- if (maxBuilder_ != null) {
- return maxBuilder_.getMessageOrBuilder();
- } else {
- return max_ == null ?
- com.google.privacy.dlp.v2beta1.Value.getDefaultInstance() : max_;
- }
- }
- /**
- * - * Upper bound of the range, exclusive; type must match min. - *- * - *
.google.privacy.dlp.v2beta1.Value max = 2;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.Value, com.google.privacy.dlp.v2beta1.Value.Builder, com.google.privacy.dlp.v2beta1.ValueOrBuilder>
- getMaxFieldBuilder() {
- if (maxBuilder_ == null) {
- maxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.Value, com.google.privacy.dlp.v2beta1.Value.Builder, com.google.privacy.dlp.v2beta1.ValueOrBuilder>(
- getMax(),
- getParentForChildren(),
- isClean());
- max_ = null;
- }
- return maxBuilder_;
- }
-
- private com.google.privacy.dlp.v2beta1.Value replacementValue_ = null;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.Value, com.google.privacy.dlp.v2beta1.Value.Builder, com.google.privacy.dlp.v2beta1.ValueOrBuilder> replacementValueBuilder_;
- /**
- * - * Replacement value for this bucket. If not provided - * the default behavior will be to hyphenate the min-max range. - *- * - *
.google.privacy.dlp.v2beta1.Value replacement_value = 3;
- */
- public boolean hasReplacementValue() {
- return replacementValueBuilder_ != null || replacementValue_ != null;
- }
- /**
- * - * Replacement value for this bucket. If not provided - * the default behavior will be to hyphenate the min-max range. - *- * - *
.google.privacy.dlp.v2beta1.Value replacement_value = 3;
- */
- public com.google.privacy.dlp.v2beta1.Value getReplacementValue() {
- if (replacementValueBuilder_ == null) {
- return replacementValue_ == null ? com.google.privacy.dlp.v2beta1.Value.getDefaultInstance() : replacementValue_;
- } else {
- return replacementValueBuilder_.getMessage();
- }
- }
- /**
- * - * Replacement value for this bucket. If not provided - * the default behavior will be to hyphenate the min-max range. - *- * - *
.google.privacy.dlp.v2beta1.Value replacement_value = 3;
- */
- public Builder setReplacementValue(com.google.privacy.dlp.v2beta1.Value value) {
- if (replacementValueBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- replacementValue_ = value;
- onChanged();
- } else {
- replacementValueBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * Replacement value for this bucket. If not provided - * the default behavior will be to hyphenate the min-max range. - *- * - *
.google.privacy.dlp.v2beta1.Value replacement_value = 3;
- */
- public Builder setReplacementValue(
- com.google.privacy.dlp.v2beta1.Value.Builder builderForValue) {
- if (replacementValueBuilder_ == null) {
- replacementValue_ = builderForValue.build();
- onChanged();
- } else {
- replacementValueBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * Replacement value for this bucket. If not provided - * the default behavior will be to hyphenate the min-max range. - *- * - *
.google.privacy.dlp.v2beta1.Value replacement_value = 3;
- */
- public Builder mergeReplacementValue(com.google.privacy.dlp.v2beta1.Value value) {
- if (replacementValueBuilder_ == null) {
- if (replacementValue_ != null) {
- replacementValue_ =
- com.google.privacy.dlp.v2beta1.Value.newBuilder(replacementValue_).mergeFrom(value).buildPartial();
- } else {
- replacementValue_ = value;
- }
- onChanged();
- } else {
- replacementValueBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * Replacement value for this bucket. If not provided - * the default behavior will be to hyphenate the min-max range. - *- * - *
.google.privacy.dlp.v2beta1.Value replacement_value = 3;
- */
- public Builder clearReplacementValue() {
- if (replacementValueBuilder_ == null) {
- replacementValue_ = null;
- onChanged();
- } else {
- replacementValue_ = null;
- replacementValueBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * Replacement value for this bucket. If not provided - * the default behavior will be to hyphenate the min-max range. - *- * - *
.google.privacy.dlp.v2beta1.Value replacement_value = 3;
- */
- public com.google.privacy.dlp.v2beta1.Value.Builder getReplacementValueBuilder() {
-
- onChanged();
- return getReplacementValueFieldBuilder().getBuilder();
- }
- /**
- * - * Replacement value for this bucket. If not provided - * the default behavior will be to hyphenate the min-max range. - *- * - *
.google.privacy.dlp.v2beta1.Value replacement_value = 3;
- */
- public com.google.privacy.dlp.v2beta1.ValueOrBuilder getReplacementValueOrBuilder() {
- if (replacementValueBuilder_ != null) {
- return replacementValueBuilder_.getMessageOrBuilder();
- } else {
- return replacementValue_ == null ?
- com.google.privacy.dlp.v2beta1.Value.getDefaultInstance() : replacementValue_;
- }
- }
- /**
- * - * Replacement value for this bucket. If not provided - * the default behavior will be to hyphenate the min-max range. - *- * - *
.google.privacy.dlp.v2beta1.Value replacement_value = 3;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.Value, com.google.privacy.dlp.v2beta1.Value.Builder, com.google.privacy.dlp.v2beta1.ValueOrBuilder>
- getReplacementValueFieldBuilder() {
- if (replacementValueBuilder_ == null) {
- replacementValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.Value, com.google.privacy.dlp.v2beta1.Value.Builder, com.google.privacy.dlp.v2beta1.ValueOrBuilder>(
- getReplacementValue(),
- getParentForChildren(),
- isClean());
- replacementValue_ = null;
- }
- return replacementValueBuilder_;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.BucketingConfig.Bucket)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.BucketingConfig.Bucket)
- private static final com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket();
- }
-
- public static com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parserrepeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public java.util.Listrepeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public java.util.List extends com.google.privacy.dlp.v2beta1.BucketingConfig.BucketOrBuilder>
- getBucketsOrBuilderList() {
- return buckets_;
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public int getBucketsCount() {
- return buckets_.size();
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket getBuckets(int index) {
- return buckets_.get(index);
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public com.google.privacy.dlp.v2beta1.BucketingConfig.BucketOrBuilder getBucketsOrBuilder(
- int index) {
- return buckets_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- for (int i = 0; i < buckets_.size(); i++) {
- output.writeMessage(1, buckets_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- for (int i = 0; i < buckets_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, buckets_.get(i));
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.BucketingConfig)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.BucketingConfig other = (com.google.privacy.dlp.v2beta1.BucketingConfig) obj;
-
- boolean result = true;
- result = result && getBucketsList()
- .equals(other.getBucketsList());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (getBucketsCount() > 0) {
- hash = (37 * hash) + BUCKETS_FIELD_NUMBER;
- hash = (53 * hash) + getBucketsList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.BucketingConfig parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.BucketingConfig parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.BucketingConfig prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Generalization function that buckets values based on ranges. The ranges and - * replacement values are dynamically provided by the user for custom behavior, - * such as 1-30 -> LOW 31-65 -> MEDIUM 66-100 -> HIGH - * This can be used on - * data of type: number, long, string, timestamp. - * If the bound `Value` type differs from the type of data being transformed, we - * will first attempt converting the type of the data to be transformed to match - * the type of the bound before comparing. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.BucketingConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public java.util.Listrepeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public int getBucketsCount() {
- if (bucketsBuilder_ == null) {
- return buckets_.size();
- } else {
- return bucketsBuilder_.getCount();
- }
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket getBuckets(int index) {
- if (bucketsBuilder_ == null) {
- return buckets_.get(index);
- } else {
- return bucketsBuilder_.getMessage(index);
- }
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public Builder setBuckets(
- int index, com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket value) {
- if (bucketsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureBucketsIsMutable();
- buckets_.set(index, value);
- onChanged();
- } else {
- bucketsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public Builder setBuckets(
- int index, com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket.Builder builderForValue) {
- if (bucketsBuilder_ == null) {
- ensureBucketsIsMutable();
- buckets_.set(index, builderForValue.build());
- onChanged();
- } else {
- bucketsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public Builder addBuckets(com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket value) {
- if (bucketsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureBucketsIsMutable();
- buckets_.add(value);
- onChanged();
- } else {
- bucketsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public Builder addBuckets(
- int index, com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket value) {
- if (bucketsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureBucketsIsMutable();
- buckets_.add(index, value);
- onChanged();
- } else {
- bucketsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public Builder addBuckets(
- com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket.Builder builderForValue) {
- if (bucketsBuilder_ == null) {
- ensureBucketsIsMutable();
- buckets_.add(builderForValue.build());
- onChanged();
- } else {
- bucketsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public Builder addBuckets(
- int index, com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket.Builder builderForValue) {
- if (bucketsBuilder_ == null) {
- ensureBucketsIsMutable();
- buckets_.add(index, builderForValue.build());
- onChanged();
- } else {
- bucketsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public Builder addAllBuckets(
- java.lang.Iterable extends com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket> values) {
- if (bucketsBuilder_ == null) {
- ensureBucketsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, buckets_);
- onChanged();
- } else {
- bucketsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public Builder clearBuckets() {
- if (bucketsBuilder_ == null) {
- buckets_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- bucketsBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public Builder removeBuckets(int index) {
- if (bucketsBuilder_ == null) {
- ensureBucketsIsMutable();
- buckets_.remove(index);
- onChanged();
- } else {
- bucketsBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket.Builder getBucketsBuilder(
- int index) {
- return getBucketsFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public com.google.privacy.dlp.v2beta1.BucketingConfig.BucketOrBuilder getBucketsOrBuilder(
- int index) {
- if (bucketsBuilder_ == null) {
- return buckets_.get(index); } else {
- return bucketsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public java.util.List extends com.google.privacy.dlp.v2beta1.BucketingConfig.BucketOrBuilder>
- getBucketsOrBuilderList() {
- if (bucketsBuilder_ != null) {
- return bucketsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(buckets_);
- }
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket.Builder addBucketsBuilder() {
- return getBucketsFieldBuilder().addBuilder(
- com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket.getDefaultInstance());
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket.Builder addBucketsBuilder(
- int index) {
- return getBucketsFieldBuilder().addBuilder(
- index, com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket.getDefaultInstance());
- }
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- public java.util.Listrepeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- java.util.Listrepeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- com.google.privacy.dlp.v2beta1.BucketingConfig.Bucket getBuckets(int index);
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- int getBucketsCount();
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- java.util.List extends com.google.privacy.dlp.v2beta1.BucketingConfig.BucketOrBuilder>
- getBucketsOrBuilderList();
- /**
- * repeated .google.privacy.dlp.v2beta1.BucketingConfig.Bucket buckets = 1;
- */
- com.google.privacy.dlp.v2beta1.BucketingConfig.BucketOrBuilder getBucketsOrBuilder(
- int index);
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CategoryDescription.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CategoryDescription.java
deleted file mode 100644
index cc4060d1c136..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CategoryDescription.java
+++ /dev/null
@@ -1,707 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/dlp.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-/**
- * - * Info Type Category description. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CategoryDescription} - */ -public final class CategoryDescription extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.CategoryDescription) - CategoryDescriptionOrBuilder { -private static final long serialVersionUID = 0L; - // Use CategoryDescription.newBuilder() to construct. - private CategoryDescription(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private CategoryDescription() { - name_ = ""; - displayName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CategoryDescription( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_CategoryDescription_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_CategoryDescription_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.CategoryDescription.class, com.google.privacy.dlp.v2beta1.CategoryDescription.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
- * Internal name of the category. - *- * - *
string name = 1;
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- name_ = s;
- return s;
- }
- }
- /**
- * - * Internal name of the category. - *- * - *
string name = 1;
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
- private volatile java.lang.Object displayName_;
- /**
- * - * Human readable form of the category name. - *- * - *
string display_name = 2;
- */
- public java.lang.String getDisplayName() {
- java.lang.Object ref = displayName_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- displayName_ = s;
- return s;
- }
- }
- /**
- * - * Human readable form of the category name. - *- * - *
string display_name = 2;
- */
- public com.google.protobuf.ByteString
- getDisplayNameBytes() {
- java.lang.Object ref = displayName_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- displayName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (!getNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
- }
- if (!getDisplayNameBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
- }
- if (!getDisplayNameBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.CategoryDescription)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.CategoryDescription other = (com.google.privacy.dlp.v2beta1.CategoryDescription) obj;
-
- boolean result = true;
- result = result && getName()
- .equals(other.getName());
- result = result && getDisplayName()
- .equals(other.getDisplayName());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + NAME_FIELD_NUMBER;
- hash = (53 * hash) + getName().hashCode();
- hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER;
- hash = (53 * hash) + getDisplayName().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.CategoryDescription parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CategoryDescription parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CategoryDescription parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CategoryDescription parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CategoryDescription parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CategoryDescription parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CategoryDescription parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CategoryDescription parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CategoryDescription parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CategoryDescription parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CategoryDescription parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CategoryDescription parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.CategoryDescription prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Info Type Category description. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CategoryDescription} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * Internal name of the category. - *- * - *
string name = 1;
- */
- public java.lang.String getName() {
- java.lang.Object ref = name_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- name_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * - * Internal name of the category. - *- * - *
string name = 1;
- */
- public com.google.protobuf.ByteString
- getNameBytes() {
- java.lang.Object ref = name_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- name_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * - * Internal name of the category. - *- * - *
string name = 1;
- */
- public Builder setName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- name_ = value;
- onChanged();
- return this;
- }
- /**
- * - * Internal name of the category. - *- * - *
string name = 1;
- */
- public Builder clearName() {
-
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- * - * Internal name of the category. - *- * - *
string name = 1;
- */
- public Builder setNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- name_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object displayName_ = "";
- /**
- * - * Human readable form of the category name. - *- * - *
string display_name = 2;
- */
- public java.lang.String getDisplayName() {
- java.lang.Object ref = displayName_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- displayName_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * - * Human readable form of the category name. - *- * - *
string display_name = 2;
- */
- public com.google.protobuf.ByteString
- getDisplayNameBytes() {
- java.lang.Object ref = displayName_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- displayName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * - * Human readable form of the category name. - *- * - *
string display_name = 2;
- */
- public Builder setDisplayName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- displayName_ = value;
- onChanged();
- return this;
- }
- /**
- * - * Human readable form of the category name. - *- * - *
string display_name = 2;
- */
- public Builder clearDisplayName() {
-
- displayName_ = getDefaultInstance().getDisplayName();
- onChanged();
- return this;
- }
- /**
- * - * Human readable form of the category name. - *- * - *
string display_name = 2;
- */
- public Builder setDisplayNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- displayName_ = value;
- onChanged();
- return this;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.CategoryDescription)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.CategoryDescription)
- private static final com.google.privacy.dlp.v2beta1.CategoryDescription DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.CategoryDescription();
- }
-
- public static com.google.privacy.dlp.v2beta1.CategoryDescription getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * Internal name of the category. - *- * - *
string name = 1;
- */
- java.lang.String getName();
- /**
- * - * Internal name of the category. - *- * - *
string name = 1;
- */
- com.google.protobuf.ByteString
- getNameBytes();
-
- /**
- * - * Human readable form of the category name. - *- * - *
string display_name = 2;
- */
- java.lang.String getDisplayName();
- /**
- * - * Human readable form of the category name. - *- * - *
string display_name = 2;
- */
- com.google.protobuf.ByteString
- getDisplayNameBytes();
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CharacterMaskConfig.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CharacterMaskConfig.java
deleted file mode 100644
index fe7578ab9c63..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CharacterMaskConfig.java
+++ /dev/null
@@ -1,1238 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/dlp.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-/**
- * - * Partially mask a string by replacing a given number of characters with a - * fixed character. Masking can start from the beginning or end of the string. - * This can be used on data of any type (numbers, longs, and so on) and when - * de-identifying structured data we'll attempt to preserve the original data's - * type. (This allows you to take a long like 123 and modify it to a string like - * **3. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CharacterMaskConfig} - */ -public final class CharacterMaskConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.CharacterMaskConfig) - CharacterMaskConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use CharacterMaskConfig.newBuilder() to construct. - private CharacterMaskConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private CharacterMaskConfig() { - maskingCharacter_ = ""; - numberToMask_ = 0; - reverseOrder_ = false; - charactersToIgnore_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CharacterMaskConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - maskingCharacter_ = s; - break; - } - case 16: { - - numberToMask_ = input.readInt32(); - break; - } - case 24: { - - reverseOrder_ = input.readBool(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - charactersToIgnore_ = new java.util.ArrayList
- * Character to mask the sensitive values—for example, "*" for an - * alphabetic string such as name, or "0" for a numeric string such as ZIP - * code or credit card number. String must have length 1. If not supplied, we - * will default to "*" for strings, 0 for digits. - *- * - *
string masking_character = 1;
- */
- public java.lang.String getMaskingCharacter() {
- java.lang.Object ref = maskingCharacter_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- maskingCharacter_ = s;
- return s;
- }
- }
- /**
- * - * Character to mask the sensitive values—for example, "*" for an - * alphabetic string such as name, or "0" for a numeric string such as ZIP - * code or credit card number. String must have length 1. If not supplied, we - * will default to "*" for strings, 0 for digits. - *- * - *
string masking_character = 1;
- */
- public com.google.protobuf.ByteString
- getMaskingCharacterBytes() {
- java.lang.Object ref = maskingCharacter_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- maskingCharacter_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int NUMBER_TO_MASK_FIELD_NUMBER = 2;
- private int numberToMask_;
- /**
- * - * Number of characters to mask. If not set, all matching chars will be - * masked. Skipped characters do not count towards this tally. - *- * - *
int32 number_to_mask = 2;
- */
- public int getNumberToMask() {
- return numberToMask_;
- }
-
- public static final int REVERSE_ORDER_FIELD_NUMBER = 3;
- private boolean reverseOrder_;
- /**
- * - * Mask characters in reverse order. For example, if `masking_character` is - * '0', number_to_mask is 14, and `reverse_order` is false, then - * 1234-5678-9012-3456 -> 00000000000000-3456 - * If `masking_character` is '*', `number_to_mask` is 3, and `reverse_order` - * is true, then 12345 -> 12*** - *- * - *
bool reverse_order = 3;
- */
- public boolean getReverseOrder() {
- return reverseOrder_;
- }
-
- public static final int CHARACTERS_TO_IGNORE_FIELD_NUMBER = 4;
- private java.util.List- * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public java.util.List- * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public java.util.List extends com.google.privacy.dlp.v2beta1.CharsToIgnoreOrBuilder>
- getCharactersToIgnoreOrBuilderList() {
- return charactersToIgnore_;
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public int getCharactersToIgnoreCount() {
- return charactersToIgnore_.size();
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public com.google.privacy.dlp.v2beta1.CharsToIgnore getCharactersToIgnore(int index) {
- return charactersToIgnore_.get(index);
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public com.google.privacy.dlp.v2beta1.CharsToIgnoreOrBuilder getCharactersToIgnoreOrBuilder(
- int index) {
- return charactersToIgnore_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (!getMaskingCharacterBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, maskingCharacter_);
- }
- if (numberToMask_ != 0) {
- output.writeInt32(2, numberToMask_);
- }
- if (reverseOrder_ != false) {
- output.writeBool(3, reverseOrder_);
- }
- for (int i = 0; i < charactersToIgnore_.size(); i++) {
- output.writeMessage(4, charactersToIgnore_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getMaskingCharacterBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, maskingCharacter_);
- }
- if (numberToMask_ != 0) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(2, numberToMask_);
- }
- if (reverseOrder_ != false) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(3, reverseOrder_);
- }
- for (int i = 0; i < charactersToIgnore_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, charactersToIgnore_.get(i));
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.CharacterMaskConfig)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.CharacterMaskConfig other = (com.google.privacy.dlp.v2beta1.CharacterMaskConfig) obj;
-
- boolean result = true;
- result = result && getMaskingCharacter()
- .equals(other.getMaskingCharacter());
- result = result && (getNumberToMask()
- == other.getNumberToMask());
- result = result && (getReverseOrder()
- == other.getReverseOrder());
- result = result && getCharactersToIgnoreList()
- .equals(other.getCharactersToIgnoreList());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + MASKING_CHARACTER_FIELD_NUMBER;
- hash = (53 * hash) + getMaskingCharacter().hashCode();
- hash = (37 * hash) + NUMBER_TO_MASK_FIELD_NUMBER;
- hash = (53 * hash) + getNumberToMask();
- hash = (37 * hash) + REVERSE_ORDER_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getReverseOrder());
- if (getCharactersToIgnoreCount() > 0) {
- hash = (37 * hash) + CHARACTERS_TO_IGNORE_FIELD_NUMBER;
- hash = (53 * hash) + getCharactersToIgnoreList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.CharacterMaskConfig parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CharacterMaskConfig parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CharacterMaskConfig parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CharacterMaskConfig parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CharacterMaskConfig parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CharacterMaskConfig parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CharacterMaskConfig parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CharacterMaskConfig parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CharacterMaskConfig parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CharacterMaskConfig parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CharacterMaskConfig parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CharacterMaskConfig parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.CharacterMaskConfig prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Partially mask a string by replacing a given number of characters with a - * fixed character. Masking can start from the beginning or end of the string. - * This can be used on data of any type (numbers, longs, and so on) and when - * de-identifying structured data we'll attempt to preserve the original data's - * type. (This allows you to take a long like 123 and modify it to a string like - * **3. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CharacterMaskConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * Character to mask the sensitive values—for example, "*" for an - * alphabetic string such as name, or "0" for a numeric string such as ZIP - * code or credit card number. String must have length 1. If not supplied, we - * will default to "*" for strings, 0 for digits. - *- * - *
string masking_character = 1;
- */
- public java.lang.String getMaskingCharacter() {
- java.lang.Object ref = maskingCharacter_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- maskingCharacter_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * - * Character to mask the sensitive values—for example, "*" for an - * alphabetic string such as name, or "0" for a numeric string such as ZIP - * code or credit card number. String must have length 1. If not supplied, we - * will default to "*" for strings, 0 for digits. - *- * - *
string masking_character = 1;
- */
- public com.google.protobuf.ByteString
- getMaskingCharacterBytes() {
- java.lang.Object ref = maskingCharacter_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- maskingCharacter_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * - * Character to mask the sensitive values—for example, "*" for an - * alphabetic string such as name, or "0" for a numeric string such as ZIP - * code or credit card number. String must have length 1. If not supplied, we - * will default to "*" for strings, 0 for digits. - *- * - *
string masking_character = 1;
- */
- public Builder setMaskingCharacter(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- maskingCharacter_ = value;
- onChanged();
- return this;
- }
- /**
- * - * Character to mask the sensitive values—for example, "*" for an - * alphabetic string such as name, or "0" for a numeric string such as ZIP - * code or credit card number. String must have length 1. If not supplied, we - * will default to "*" for strings, 0 for digits. - *- * - *
string masking_character = 1;
- */
- public Builder clearMaskingCharacter() {
-
- maskingCharacter_ = getDefaultInstance().getMaskingCharacter();
- onChanged();
- return this;
- }
- /**
- * - * Character to mask the sensitive values—for example, "*" for an - * alphabetic string such as name, or "0" for a numeric string such as ZIP - * code or credit card number. String must have length 1. If not supplied, we - * will default to "*" for strings, 0 for digits. - *- * - *
string masking_character = 1;
- */
- public Builder setMaskingCharacterBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- maskingCharacter_ = value;
- onChanged();
- return this;
- }
-
- private int numberToMask_ ;
- /**
- * - * Number of characters to mask. If not set, all matching chars will be - * masked. Skipped characters do not count towards this tally. - *- * - *
int32 number_to_mask = 2;
- */
- public int getNumberToMask() {
- return numberToMask_;
- }
- /**
- * - * Number of characters to mask. If not set, all matching chars will be - * masked. Skipped characters do not count towards this tally. - *- * - *
int32 number_to_mask = 2;
- */
- public Builder setNumberToMask(int value) {
-
- numberToMask_ = value;
- onChanged();
- return this;
- }
- /**
- * - * Number of characters to mask. If not set, all matching chars will be - * masked. Skipped characters do not count towards this tally. - *- * - *
int32 number_to_mask = 2;
- */
- public Builder clearNumberToMask() {
-
- numberToMask_ = 0;
- onChanged();
- return this;
- }
-
- private boolean reverseOrder_ ;
- /**
- * - * Mask characters in reverse order. For example, if `masking_character` is - * '0', number_to_mask is 14, and `reverse_order` is false, then - * 1234-5678-9012-3456 -> 00000000000000-3456 - * If `masking_character` is '*', `number_to_mask` is 3, and `reverse_order` - * is true, then 12345 -> 12*** - *- * - *
bool reverse_order = 3;
- */
- public boolean getReverseOrder() {
- return reverseOrder_;
- }
- /**
- * - * Mask characters in reverse order. For example, if `masking_character` is - * '0', number_to_mask is 14, and `reverse_order` is false, then - * 1234-5678-9012-3456 -> 00000000000000-3456 - * If `masking_character` is '*', `number_to_mask` is 3, and `reverse_order` - * is true, then 12345 -> 12*** - *- * - *
bool reverse_order = 3;
- */
- public Builder setReverseOrder(boolean value) {
-
- reverseOrder_ = value;
- onChanged();
- return this;
- }
- /**
- * - * Mask characters in reverse order. For example, if `masking_character` is - * '0', number_to_mask is 14, and `reverse_order` is false, then - * 1234-5678-9012-3456 -> 00000000000000-3456 - * If `masking_character` is '*', `number_to_mask` is 3, and `reverse_order` - * is true, then 12345 -> 12*** - *- * - *
bool reverse_order = 3;
- */
- public Builder clearReverseOrder() {
-
- reverseOrder_ = false;
- onChanged();
- return this;
- }
-
- private java.util.List- * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public java.util.List- * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public int getCharactersToIgnoreCount() {
- if (charactersToIgnoreBuilder_ == null) {
- return charactersToIgnore_.size();
- } else {
- return charactersToIgnoreBuilder_.getCount();
- }
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public com.google.privacy.dlp.v2beta1.CharsToIgnore getCharactersToIgnore(int index) {
- if (charactersToIgnoreBuilder_ == null) {
- return charactersToIgnore_.get(index);
- } else {
- return charactersToIgnoreBuilder_.getMessage(index);
- }
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public Builder setCharactersToIgnore(
- int index, com.google.privacy.dlp.v2beta1.CharsToIgnore value) {
- if (charactersToIgnoreBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureCharactersToIgnoreIsMutable();
- charactersToIgnore_.set(index, value);
- onChanged();
- } else {
- charactersToIgnoreBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public Builder setCharactersToIgnore(
- int index, com.google.privacy.dlp.v2beta1.CharsToIgnore.Builder builderForValue) {
- if (charactersToIgnoreBuilder_ == null) {
- ensureCharactersToIgnoreIsMutable();
- charactersToIgnore_.set(index, builderForValue.build());
- onChanged();
- } else {
- charactersToIgnoreBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public Builder addCharactersToIgnore(com.google.privacy.dlp.v2beta1.CharsToIgnore value) {
- if (charactersToIgnoreBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureCharactersToIgnoreIsMutable();
- charactersToIgnore_.add(value);
- onChanged();
- } else {
- charactersToIgnoreBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public Builder addCharactersToIgnore(
- int index, com.google.privacy.dlp.v2beta1.CharsToIgnore value) {
- if (charactersToIgnoreBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureCharactersToIgnoreIsMutable();
- charactersToIgnore_.add(index, value);
- onChanged();
- } else {
- charactersToIgnoreBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public Builder addCharactersToIgnore(
- com.google.privacy.dlp.v2beta1.CharsToIgnore.Builder builderForValue) {
- if (charactersToIgnoreBuilder_ == null) {
- ensureCharactersToIgnoreIsMutable();
- charactersToIgnore_.add(builderForValue.build());
- onChanged();
- } else {
- charactersToIgnoreBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public Builder addCharactersToIgnore(
- int index, com.google.privacy.dlp.v2beta1.CharsToIgnore.Builder builderForValue) {
- if (charactersToIgnoreBuilder_ == null) {
- ensureCharactersToIgnoreIsMutable();
- charactersToIgnore_.add(index, builderForValue.build());
- onChanged();
- } else {
- charactersToIgnoreBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public Builder addAllCharactersToIgnore(
- java.lang.Iterable extends com.google.privacy.dlp.v2beta1.CharsToIgnore> values) {
- if (charactersToIgnoreBuilder_ == null) {
- ensureCharactersToIgnoreIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, charactersToIgnore_);
- onChanged();
- } else {
- charactersToIgnoreBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public Builder clearCharactersToIgnore() {
- if (charactersToIgnoreBuilder_ == null) {
- charactersToIgnore_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- } else {
- charactersToIgnoreBuilder_.clear();
- }
- return this;
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public Builder removeCharactersToIgnore(int index) {
- if (charactersToIgnoreBuilder_ == null) {
- ensureCharactersToIgnoreIsMutable();
- charactersToIgnore_.remove(index);
- onChanged();
- } else {
- charactersToIgnoreBuilder_.remove(index);
- }
- return this;
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public com.google.privacy.dlp.v2beta1.CharsToIgnore.Builder getCharactersToIgnoreBuilder(
- int index) {
- return getCharactersToIgnoreFieldBuilder().getBuilder(index);
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public com.google.privacy.dlp.v2beta1.CharsToIgnoreOrBuilder getCharactersToIgnoreOrBuilder(
- int index) {
- if (charactersToIgnoreBuilder_ == null) {
- return charactersToIgnore_.get(index); } else {
- return charactersToIgnoreBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public java.util.List extends com.google.privacy.dlp.v2beta1.CharsToIgnoreOrBuilder>
- getCharactersToIgnoreOrBuilderList() {
- if (charactersToIgnoreBuilder_ != null) {
- return charactersToIgnoreBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(charactersToIgnore_);
- }
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public com.google.privacy.dlp.v2beta1.CharsToIgnore.Builder addCharactersToIgnoreBuilder() {
- return getCharactersToIgnoreFieldBuilder().addBuilder(
- com.google.privacy.dlp.v2beta1.CharsToIgnore.getDefaultInstance());
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public com.google.privacy.dlp.v2beta1.CharsToIgnore.Builder addCharactersToIgnoreBuilder(
- int index) {
- return getCharactersToIgnoreFieldBuilder().addBuilder(
- index, com.google.privacy.dlp.v2beta1.CharsToIgnore.getDefaultInstance());
- }
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- public java.util.List- * Character to mask the sensitive values—for example, "*" for an - * alphabetic string such as name, or "0" for a numeric string such as ZIP - * code or credit card number. String must have length 1. If not supplied, we - * will default to "*" for strings, 0 for digits. - *- * - *
string masking_character = 1;
- */
- java.lang.String getMaskingCharacter();
- /**
- * - * Character to mask the sensitive values—for example, "*" for an - * alphabetic string such as name, or "0" for a numeric string such as ZIP - * code or credit card number. String must have length 1. If not supplied, we - * will default to "*" for strings, 0 for digits. - *- * - *
string masking_character = 1;
- */
- com.google.protobuf.ByteString
- getMaskingCharacterBytes();
-
- /**
- * - * Number of characters to mask. If not set, all matching chars will be - * masked. Skipped characters do not count towards this tally. - *- * - *
int32 number_to_mask = 2;
- */
- int getNumberToMask();
-
- /**
- * - * Mask characters in reverse order. For example, if `masking_character` is - * '0', number_to_mask is 14, and `reverse_order` is false, then - * 1234-5678-9012-3456 -> 00000000000000-3456 - * If `masking_character` is '*', `number_to_mask` is 3, and `reverse_order` - * is true, then 12345 -> 12*** - *- * - *
bool reverse_order = 3;
- */
- boolean getReverseOrder();
-
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- java.util.List- * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- com.google.privacy.dlp.v2beta1.CharsToIgnore getCharactersToIgnore(int index);
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- int getCharactersToIgnoreCount();
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- java.util.List extends com.google.privacy.dlp.v2beta1.CharsToIgnoreOrBuilder>
- getCharactersToIgnoreOrBuilderList();
- /**
- * - * When masking a string, items in this list will be skipped when replacing. - * For example, if your string is 555-555-5555 and you ask us to skip `-` and - * mask 5 chars with * we would produce ***-*55-5555. - *- * - *
repeated .google.privacy.dlp.v2beta1.CharsToIgnore characters_to_ignore = 4;
- */
- com.google.privacy.dlp.v2beta1.CharsToIgnoreOrBuilder getCharactersToIgnoreOrBuilder(
- int index);
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CharsToIgnore.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CharsToIgnore.java
deleted file mode 100644
index 7b2472f28ebe..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CharsToIgnore.java
+++ /dev/null
@@ -1,900 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/dlp.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-/**
- * - * Characters to skip when doing deidentification of a value. These will be left - * alone and skipped. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CharsToIgnore} - */ -public final class CharsToIgnore extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.CharsToIgnore) - CharsToIgnoreOrBuilder { -private static final long serialVersionUID = 0L; - // Use CharsToIgnore.newBuilder() to construct. - private CharsToIgnore(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private CharsToIgnore() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CharsToIgnore( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - charactersCase_ = 1; - characters_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - charactersCase_ = 2; - characters_ = rawValue; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_CharsToIgnore_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_CharsToIgnore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.CharsToIgnore.class, com.google.privacy.dlp.v2beta1.CharsToIgnore.Builder.class); - } - - /** - * Protobuf enum {@code google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup} - */ - public enum CharacterGroup - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
CHARACTER_GROUP_UNSPECIFIED = 0;
- */
- CHARACTER_GROUP_UNSPECIFIED(0),
- /**
- * - * 0-9 - *- * - *
NUMERIC = 1;
- */
- NUMERIC(1),
- /**
- * - * A-Z - *- * - *
ALPHA_UPPER_CASE = 2;
- */
- ALPHA_UPPER_CASE(2),
- /**
- * - * a-z - *- * - *
ALPHA_LOWER_CASE = 3;
- */
- ALPHA_LOWER_CASE(3),
- /**
- * - * US Punctuation, one of !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ - *- * - *
PUNCTUATION = 4;
- */
- PUNCTUATION(4),
- /**
- * - * Whitespace character, one of [ \t\n\x0B\f\r] - *- * - *
WHITESPACE = 5;
- */
- WHITESPACE(5),
- UNRECOGNIZED(-1),
- ;
-
- /**
- * CHARACTER_GROUP_UNSPECIFIED = 0;
- */
- public static final int CHARACTER_GROUP_UNSPECIFIED_VALUE = 0;
- /**
- * - * 0-9 - *- * - *
NUMERIC = 1;
- */
- public static final int NUMERIC_VALUE = 1;
- /**
- * - * A-Z - *- * - *
ALPHA_UPPER_CASE = 2;
- */
- public static final int ALPHA_UPPER_CASE_VALUE = 2;
- /**
- * - * a-z - *- * - *
ALPHA_LOWER_CASE = 3;
- */
- public static final int ALPHA_LOWER_CASE_VALUE = 3;
- /**
- * - * US Punctuation, one of !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ - *- * - *
PUNCTUATION = 4;
- */
- public static final int PUNCTUATION_VALUE = 4;
- /**
- * - * Whitespace character, one of [ \t\n\x0B\f\r] - *- * - *
WHITESPACE = 5;
- */
- public static final int WHITESPACE_VALUE = 5;
-
-
- public final int getNumber() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalArgumentException(
- "Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
- /**
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static CharacterGroup valueOf(int value) {
- return forNumber(value);
- }
-
- public static CharacterGroup forNumber(int value) {
- switch (value) {
- case 0: return CHARACTER_GROUP_UNSPECIFIED;
- case 1: return NUMERIC;
- case 2: return ALPHA_UPPER_CASE;
- case 3: return ALPHA_LOWER_CASE;
- case 4: return PUNCTUATION;
- case 5: return WHITESPACE;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMapstring characters_to_skip = 1;
- */
- public java.lang.String getCharactersToSkip() {
- java.lang.Object ref = "";
- if (charactersCase_ == 1) {
- ref = characters_;
- }
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (charactersCase_ == 1) {
- characters_ = s;
- }
- return s;
- }
- }
- /**
- * string characters_to_skip = 1;
- */
- public com.google.protobuf.ByteString
- getCharactersToSkipBytes() {
- java.lang.Object ref = "";
- if (charactersCase_ == 1) {
- ref = characters_;
- }
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- if (charactersCase_ == 1) {
- characters_ = b;
- }
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int COMMON_CHARACTERS_TO_IGNORE_FIELD_NUMBER = 2;
- /**
- * .google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup common_characters_to_ignore = 2;
- */
- public int getCommonCharactersToIgnoreValue() {
- if (charactersCase_ == 2) {
- return (java.lang.Integer) characters_;
- }
- return 0;
- }
- /**
- * .google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup common_characters_to_ignore = 2;
- */
- public com.google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup getCommonCharactersToIgnore() {
- if (charactersCase_ == 2) {
- com.google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup result = com.google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup.valueOf(
- (java.lang.Integer) characters_);
- return result == null ? com.google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup.UNRECOGNIZED : result;
- }
- return com.google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup.CHARACTER_GROUP_UNSPECIFIED;
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (charactersCase_ == 1) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, characters_);
- }
- if (charactersCase_ == 2) {
- output.writeEnum(2, ((java.lang.Integer) characters_));
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (charactersCase_ == 1) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, characters_);
- }
- if (charactersCase_ == 2) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, ((java.lang.Integer) characters_));
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.CharsToIgnore)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.CharsToIgnore other = (com.google.privacy.dlp.v2beta1.CharsToIgnore) obj;
-
- boolean result = true;
- result = result && getCharactersCase().equals(
- other.getCharactersCase());
- if (!result) return false;
- switch (charactersCase_) {
- case 1:
- result = result && getCharactersToSkip()
- .equals(other.getCharactersToSkip());
- break;
- case 2:
- result = result && getCommonCharactersToIgnoreValue()
- == other.getCommonCharactersToIgnoreValue();
- break;
- case 0:
- default:
- }
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- switch (charactersCase_) {
- case 1:
- hash = (37 * hash) + CHARACTERS_TO_SKIP_FIELD_NUMBER;
- hash = (53 * hash) + getCharactersToSkip().hashCode();
- break;
- case 2:
- hash = (37 * hash) + COMMON_CHARACTERS_TO_IGNORE_FIELD_NUMBER;
- hash = (53 * hash) + getCommonCharactersToIgnoreValue();
- break;
- case 0:
- default:
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.CharsToIgnore parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CharsToIgnore parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CharsToIgnore parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CharsToIgnore parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CharsToIgnore parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CharsToIgnore parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CharsToIgnore parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CharsToIgnore parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CharsToIgnore parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CharsToIgnore parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CharsToIgnore parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CharsToIgnore parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.CharsToIgnore prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Characters to skip when doing deidentification of a value. These will be left - * alone and skipped. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CharsToIgnore} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
string characters_to_skip = 1;
- */
- public java.lang.String getCharactersToSkip() {
- java.lang.Object ref = "";
- if (charactersCase_ == 1) {
- ref = characters_;
- }
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (charactersCase_ == 1) {
- characters_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * string characters_to_skip = 1;
- */
- public com.google.protobuf.ByteString
- getCharactersToSkipBytes() {
- java.lang.Object ref = "";
- if (charactersCase_ == 1) {
- ref = characters_;
- }
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- if (charactersCase_ == 1) {
- characters_ = b;
- }
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * string characters_to_skip = 1;
- */
- public Builder setCharactersToSkip(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- charactersCase_ = 1;
- characters_ = value;
- onChanged();
- return this;
- }
- /**
- * string characters_to_skip = 1;
- */
- public Builder clearCharactersToSkip() {
- if (charactersCase_ == 1) {
- charactersCase_ = 0;
- characters_ = null;
- onChanged();
- }
- return this;
- }
- /**
- * string characters_to_skip = 1;
- */
- public Builder setCharactersToSkipBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- charactersCase_ = 1;
- characters_ = value;
- onChanged();
- return this;
- }
-
- /**
- * .google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup common_characters_to_ignore = 2;
- */
- public int getCommonCharactersToIgnoreValue() {
- if (charactersCase_ == 2) {
- return ((java.lang.Integer) characters_).intValue();
- }
- return 0;
- }
- /**
- * .google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup common_characters_to_ignore = 2;
- */
- public Builder setCommonCharactersToIgnoreValue(int value) {
- charactersCase_ = 2;
- characters_ = value;
- onChanged();
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup common_characters_to_ignore = 2;
- */
- public com.google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup getCommonCharactersToIgnore() {
- if (charactersCase_ == 2) {
- com.google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup result = com.google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup.valueOf(
- (java.lang.Integer) characters_);
- return result == null ? com.google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup.UNRECOGNIZED : result;
- }
- return com.google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup.CHARACTER_GROUP_UNSPECIFIED;
- }
- /**
- * .google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup common_characters_to_ignore = 2;
- */
- public Builder setCommonCharactersToIgnore(com.google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup value) {
- if (value == null) {
- throw new NullPointerException();
- }
- charactersCase_ = 2;
- characters_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup common_characters_to_ignore = 2;
- */
- public Builder clearCommonCharactersToIgnore() {
- if (charactersCase_ == 2) {
- charactersCase_ = 0;
- characters_ = null;
- onChanged();
- }
- return this;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.CharsToIgnore)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.CharsToIgnore)
- private static final com.google.privacy.dlp.v2beta1.CharsToIgnore DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.CharsToIgnore();
- }
-
- public static com.google.privacy.dlp.v2beta1.CharsToIgnore getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parserstring characters_to_skip = 1;
- */
- java.lang.String getCharactersToSkip();
- /**
- * string characters_to_skip = 1;
- */
- com.google.protobuf.ByteString
- getCharactersToSkipBytes();
-
- /**
- * .google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup common_characters_to_ignore = 2;
- */
- int getCommonCharactersToIgnoreValue();
- /**
- * .google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup common_characters_to_ignore = 2;
- */
- com.google.privacy.dlp.v2beta1.CharsToIgnore.CharacterGroup getCommonCharactersToIgnore();
-
- public com.google.privacy.dlp.v2beta1.CharsToIgnore.CharactersCase getCharactersCase();
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CloudStorageKeyOrBuilder.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CloudStorageKeyOrBuilder.java
deleted file mode 100644
index 21d3ae3f8f26..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CloudStorageKeyOrBuilder.java
+++ /dev/null
@@ -1,36 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/storage.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-public interface CloudStorageKeyOrBuilder extends
- // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2beta1.CloudStorageKey)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * - * Path to the file. - *- * - *
string file_path = 1;
- */
- java.lang.String getFilePath();
- /**
- * - * Path to the file. - *- * - *
string file_path = 1;
- */
- com.google.protobuf.ByteString
- getFilePathBytes();
-
- /**
- * - * Byte offset of the referenced data in the file. - *- * - *
int64 start_offset = 2;
- */
- long getStartOffset();
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CloudStorageOptions.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CloudStorageOptions.java
deleted file mode 100644
index 4f79576f82d8..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CloudStorageOptions.java
+++ /dev/null
@@ -1,1158 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/storage.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-/**
- * - * Options defining a file or a set of files (path ending with *) within - * a Google Cloud Storage bucket. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CloudStorageOptions} - */ -public final class CloudStorageOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.CloudStorageOptions) - CloudStorageOptionsOrBuilder { -private static final long serialVersionUID = 0L; - // Use CloudStorageOptions.newBuilder() to construct. - private CloudStorageOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private CloudStorageOptions() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CloudStorageOptions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet.Builder subBuilder = null; - if (fileSet_ != null) { - subBuilder = fileSet_.toBuilder(); - } - fileSet_ = input.readMessage(com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fileSet_); - fileSet_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpStorage.internal_static_google_privacy_dlp_v2beta1_CloudStorageOptions_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpStorage.internal_static_google_privacy_dlp_v2beta1_CloudStorageOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.CloudStorageOptions.class, com.google.privacy.dlp.v2beta1.CloudStorageOptions.Builder.class); - } - - public interface FileSetOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet) - com.google.protobuf.MessageOrBuilder { - - /** - *
- * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the - * path is allowed. - *- * - *
string url = 1;
- */
- java.lang.String getUrl();
- /**
- * - * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the - * path is allowed. - *- * - *
string url = 1;
- */
- com.google.protobuf.ByteString
- getUrlBytes();
- }
- /**
- * - * Set of files to scan. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet} - */ - public static final class FileSet extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet) - FileSetOrBuilder { - private static final long serialVersionUID = 0L; - // Use FileSet.newBuilder() to construct. - private FileSet(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private FileSet() { - url_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FileSet( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - url_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpStorage.internal_static_google_privacy_dlp_v2beta1_CloudStorageOptions_FileSet_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpStorage.internal_static_google_privacy_dlp_v2beta1_CloudStorageOptions_FileSet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet.class, com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet.Builder.class); - } - - public static final int URL_FIELD_NUMBER = 1; - private volatile java.lang.Object url_; - /** - *
- * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the - * path is allowed. - *- * - *
string url = 1;
- */
- public java.lang.String getUrl() {
- java.lang.Object ref = url_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- url_ = s;
- return s;
- }
- }
- /**
- * - * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the - * path is allowed. - *- * - *
string url = 1;
- */
- public com.google.protobuf.ByteString
- getUrlBytes() {
- java.lang.Object ref = url_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- url_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (!getUrlBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_);
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getUrlBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet other = (com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet) obj;
-
- boolean result = true;
- result = result && getUrl()
- .equals(other.getUrl());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + URL_FIELD_NUMBER;
- hash = (53 * hash) + getUrl().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Set of files to scan. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the - * path is allowed. - *- * - *
string url = 1;
- */
- public java.lang.String getUrl() {
- java.lang.Object ref = url_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- url_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * - * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the - * path is allowed. - *- * - *
string url = 1;
- */
- public com.google.protobuf.ByteString
- getUrlBytes() {
- java.lang.Object ref = url_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- url_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * - * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the - * path is allowed. - *- * - *
string url = 1;
- */
- public Builder setUrl(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- url_ = value;
- onChanged();
- return this;
- }
- /**
- * - * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the - * path is allowed. - *- * - *
string url = 1;
- */
- public Builder clearUrl() {
-
- url_ = getDefaultInstance().getUrl();
- onChanged();
- return this;
- }
- /**
- * - * The url, in the format `gs://<bucket>/<path>`. Trailing wildcard in the - * path is allowed. - *- * - *
string url = 1;
- */
- public Builder setUrlBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- url_ = value;
- onChanged();
- return this;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet)
- private static final com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet();
- }
-
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet file_set = 1;
- */
- public boolean hasFileSet() {
- return fileSet_ != null;
- }
- /**
- * .google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet file_set = 1;
- */
- public com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet getFileSet() {
- return fileSet_ == null ? com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet.getDefaultInstance() : fileSet_;
- }
- /**
- * .google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet file_set = 1;
- */
- public com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSetOrBuilder getFileSetOrBuilder() {
- return getFileSet();
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (fileSet_ != null) {
- output.writeMessage(1, getFileSet());
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (fileSet_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getFileSet());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.CloudStorageOptions)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.CloudStorageOptions other = (com.google.privacy.dlp.v2beta1.CloudStorageOptions) obj;
-
- boolean result = true;
- result = result && (hasFileSet() == other.hasFileSet());
- if (hasFileSet()) {
- result = result && getFileSet()
- .equals(other.getFileSet());
- }
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasFileSet()) {
- hash = (37 * hash) + FILE_SET_FIELD_NUMBER;
- hash = (53 * hash) + getFileSet().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.CloudStorageOptions prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Options defining a file or a set of files (path ending with *) within - * a Google Cloud Storage bucket. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CloudStorageOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet file_set = 1;
- */
- public boolean hasFileSet() {
- return fileSetBuilder_ != null || fileSet_ != null;
- }
- /**
- * .google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet file_set = 1;
- */
- public com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet getFileSet() {
- if (fileSetBuilder_ == null) {
- return fileSet_ == null ? com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet.getDefaultInstance() : fileSet_;
- } else {
- return fileSetBuilder_.getMessage();
- }
- }
- /**
- * .google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet file_set = 1;
- */
- public Builder setFileSet(com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet value) {
- if (fileSetBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- fileSet_ = value;
- onChanged();
- } else {
- fileSetBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet file_set = 1;
- */
- public Builder setFileSet(
- com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet.Builder builderForValue) {
- if (fileSetBuilder_ == null) {
- fileSet_ = builderForValue.build();
- onChanged();
- } else {
- fileSetBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet file_set = 1;
- */
- public Builder mergeFileSet(com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet value) {
- if (fileSetBuilder_ == null) {
- if (fileSet_ != null) {
- fileSet_ =
- com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet.newBuilder(fileSet_).mergeFrom(value).buildPartial();
- } else {
- fileSet_ = value;
- }
- onChanged();
- } else {
- fileSetBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet file_set = 1;
- */
- public Builder clearFileSet() {
- if (fileSetBuilder_ == null) {
- fileSet_ = null;
- onChanged();
- } else {
- fileSet_ = null;
- fileSetBuilder_ = null;
- }
-
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet file_set = 1;
- */
- public com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet.Builder getFileSetBuilder() {
-
- onChanged();
- return getFileSetFieldBuilder().getBuilder();
- }
- /**
- * .google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet file_set = 1;
- */
- public com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSetOrBuilder getFileSetOrBuilder() {
- if (fileSetBuilder_ != null) {
- return fileSetBuilder_.getMessageOrBuilder();
- } else {
- return fileSet_ == null ?
- com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet.getDefaultInstance() : fileSet_;
- }
- }
- /**
- * .google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet file_set = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet, com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet.Builder, com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSetOrBuilder>
- getFileSetFieldBuilder() {
- if (fileSetBuilder_ == null) {
- fileSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet, com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet.Builder, com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSetOrBuilder>(
- getFileSet(),
- getParentForChildren(),
- isClean());
- fileSet_ = null;
- }
- return fileSetBuilder_;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.CloudStorageOptions)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.CloudStorageOptions)
- private static final com.google.privacy.dlp.v2beta1.CloudStorageOptions DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.CloudStorageOptions();
- }
-
- public static com.google.privacy.dlp.v2beta1.CloudStorageOptions getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet file_set = 1;
- */
- boolean hasFileSet();
- /**
- * .google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet file_set = 1;
- */
- com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet getFileSet();
- /**
- * .google.privacy.dlp.v2beta1.CloudStorageOptions.FileSet file_set = 1;
- */
- com.google.privacy.dlp.v2beta1.CloudStorageOptions.FileSetOrBuilder getFileSetOrBuilder();
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CloudStoragePath.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CloudStoragePath.java
deleted file mode 100644
index c03e01ecae3d..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CloudStoragePath.java
+++ /dev/null
@@ -1,552 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/storage.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-/**
- * - * A location in Cloud Storage. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CloudStoragePath} - */ -public final class CloudStoragePath extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.CloudStoragePath) - CloudStoragePathOrBuilder { -private static final long serialVersionUID = 0L; - // Use CloudStoragePath.newBuilder() to construct. - private CloudStoragePath(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private CloudStoragePath() { - path_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CloudStoragePath( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - path_ = s; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpStorage.internal_static_google_privacy_dlp_v2beta1_CloudStoragePath_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpStorage.internal_static_google_privacy_dlp_v2beta1_CloudStoragePath_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.CloudStoragePath.class, com.google.privacy.dlp.v2beta1.CloudStoragePath.Builder.class); - } - - public static final int PATH_FIELD_NUMBER = 1; - private volatile java.lang.Object path_; - /** - *
- * The url, in the format of `gs://bucket/<path>`. - *- * - *
string path = 1;
- */
- public java.lang.String getPath() {
- java.lang.Object ref = path_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- path_ = s;
- return s;
- }
- }
- /**
- * - * The url, in the format of `gs://bucket/<path>`. - *- * - *
string path = 1;
- */
- public com.google.protobuf.ByteString
- getPathBytes() {
- java.lang.Object ref = path_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- path_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (!getPathBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_);
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getPathBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.CloudStoragePath)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.CloudStoragePath other = (com.google.privacy.dlp.v2beta1.CloudStoragePath) obj;
-
- boolean result = true;
- result = result && getPath()
- .equals(other.getPath());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + PATH_FIELD_NUMBER;
- hash = (53 * hash) + getPath().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.CloudStoragePath parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStoragePath parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStoragePath parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStoragePath parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStoragePath parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStoragePath parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStoragePath parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStoragePath parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStoragePath parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStoragePath parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStoragePath parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CloudStoragePath parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.CloudStoragePath prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * A location in Cloud Storage. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CloudStoragePath} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * The url, in the format of `gs://bucket/<path>`. - *- * - *
string path = 1;
- */
- public java.lang.String getPath() {
- java.lang.Object ref = path_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- path_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * - * The url, in the format of `gs://bucket/<path>`. - *- * - *
string path = 1;
- */
- public com.google.protobuf.ByteString
- getPathBytes() {
- java.lang.Object ref = path_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- path_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * - * The url, in the format of `gs://bucket/<path>`. - *- * - *
string path = 1;
- */
- public Builder setPath(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- path_ = value;
- onChanged();
- return this;
- }
- /**
- * - * The url, in the format of `gs://bucket/<path>`. - *- * - *
string path = 1;
- */
- public Builder clearPath() {
-
- path_ = getDefaultInstance().getPath();
- onChanged();
- return this;
- }
- /**
- * - * The url, in the format of `gs://bucket/<path>`. - *- * - *
string path = 1;
- */
- public Builder setPathBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- path_ = value;
- onChanged();
- return this;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.CloudStoragePath)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.CloudStoragePath)
- private static final com.google.privacy.dlp.v2beta1.CloudStoragePath DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.CloudStoragePath();
- }
-
- public static com.google.privacy.dlp.v2beta1.CloudStoragePath getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * The url, in the format of `gs://bucket/<path>`. - *- * - *
string path = 1;
- */
- java.lang.String getPath();
- /**
- * - * The url, in the format of `gs://bucket/<path>`. - *- * - *
string path = 1;
- */
- com.google.protobuf.ByteString
- getPathBytes();
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/Color.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/Color.java
deleted file mode 100644
index 8d7836712f1c..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/Color.java
+++ /dev/null
@@ -1,628 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/dlp.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-/**
- * - * Represents a color in the RGB color space. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.Color} - */ -public final class Color extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.Color) - ColorOrBuilder { -private static final long serialVersionUID = 0L; - // Use Color.newBuilder() to construct. - private Color(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private Color() { - red_ = 0F; - green_ = 0F; - blue_ = 0F; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Color( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 13: { - - red_ = input.readFloat(); - break; - } - case 21: { - - green_ = input.readFloat(); - break; - } - case 29: { - - blue_ = input.readFloat(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_Color_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_Color_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.Color.class, com.google.privacy.dlp.v2beta1.Color.Builder.class); - } - - public static final int RED_FIELD_NUMBER = 1; - private float red_; - /** - *
- * The amount of red in the color as a value in the interval [0, 1]. - *- * - *
float red = 1;
- */
- public float getRed() {
- return red_;
- }
-
- public static final int GREEN_FIELD_NUMBER = 2;
- private float green_;
- /**
- * - * The amount of green in the color as a value in the interval [0, 1]. - *- * - *
float green = 2;
- */
- public float getGreen() {
- return green_;
- }
-
- public static final int BLUE_FIELD_NUMBER = 3;
- private float blue_;
- /**
- * - * The amount of blue in the color as a value in the interval [0, 1]. - *- * - *
float blue = 3;
- */
- public float getBlue() {
- return blue_;
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (red_ != 0F) {
- output.writeFloat(1, red_);
- }
- if (green_ != 0F) {
- output.writeFloat(2, green_);
- }
- if (blue_ != 0F) {
- output.writeFloat(3, blue_);
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (red_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(1, red_);
- }
- if (green_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(2, green_);
- }
- if (blue_ != 0F) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(3, blue_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.Color)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.Color other = (com.google.privacy.dlp.v2beta1.Color) obj;
-
- boolean result = true;
- result = result && (
- java.lang.Float.floatToIntBits(getRed())
- == java.lang.Float.floatToIntBits(
- other.getRed()));
- result = result && (
- java.lang.Float.floatToIntBits(getGreen())
- == java.lang.Float.floatToIntBits(
- other.getGreen()));
- result = result && (
- java.lang.Float.floatToIntBits(getBlue())
- == java.lang.Float.floatToIntBits(
- other.getBlue()));
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + RED_FIELD_NUMBER;
- hash = (53 * hash) + java.lang.Float.floatToIntBits(
- getRed());
- hash = (37 * hash) + GREEN_FIELD_NUMBER;
- hash = (53 * hash) + java.lang.Float.floatToIntBits(
- getGreen());
- hash = (37 * hash) + BLUE_FIELD_NUMBER;
- hash = (53 * hash) + java.lang.Float.floatToIntBits(
- getBlue());
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.Color parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.Color parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.Color parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.Color parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.Color parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.Color parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.Color parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.Color parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.Color parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.Color parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.Color parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.Color parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.Color prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Represents a color in the RGB color space. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.Color} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * The amount of red in the color as a value in the interval [0, 1]. - *- * - *
float red = 1;
- */
- public float getRed() {
- return red_;
- }
- /**
- * - * The amount of red in the color as a value in the interval [0, 1]. - *- * - *
float red = 1;
- */
- public Builder setRed(float value) {
-
- red_ = value;
- onChanged();
- return this;
- }
- /**
- * - * The amount of red in the color as a value in the interval [0, 1]. - *- * - *
float red = 1;
- */
- public Builder clearRed() {
-
- red_ = 0F;
- onChanged();
- return this;
- }
-
- private float green_ ;
- /**
- * - * The amount of green in the color as a value in the interval [0, 1]. - *- * - *
float green = 2;
- */
- public float getGreen() {
- return green_;
- }
- /**
- * - * The amount of green in the color as a value in the interval [0, 1]. - *- * - *
float green = 2;
- */
- public Builder setGreen(float value) {
-
- green_ = value;
- onChanged();
- return this;
- }
- /**
- * - * The amount of green in the color as a value in the interval [0, 1]. - *- * - *
float green = 2;
- */
- public Builder clearGreen() {
-
- green_ = 0F;
- onChanged();
- return this;
- }
-
- private float blue_ ;
- /**
- * - * The amount of blue in the color as a value in the interval [0, 1]. - *- * - *
float blue = 3;
- */
- public float getBlue() {
- return blue_;
- }
- /**
- * - * The amount of blue in the color as a value in the interval [0, 1]. - *- * - *
float blue = 3;
- */
- public Builder setBlue(float value) {
-
- blue_ = value;
- onChanged();
- return this;
- }
- /**
- * - * The amount of blue in the color as a value in the interval [0, 1]. - *- * - *
float blue = 3;
- */
- public Builder clearBlue() {
-
- blue_ = 0F;
- onChanged();
- return this;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.Color)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.Color)
- private static final com.google.privacy.dlp.v2beta1.Color DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.Color();
- }
-
- public static com.google.privacy.dlp.v2beta1.Color getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * The amount of red in the color as a value in the interval [0, 1]. - *- * - *
float red = 1;
- */
- float getRed();
-
- /**
- * - * The amount of green in the color as a value in the interval [0, 1]. - *- * - *
float green = 2;
- */
- float getGreen();
-
- /**
- * - * The amount of blue in the color as a value in the interval [0, 1]. - *- * - *
float blue = 3;
- */
- float getBlue();
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/ContentItem.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/ContentItem.java
deleted file mode 100644
index 7fd2012b8806..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/ContentItem.java
+++ /dev/null
@@ -1,1159 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/dlp.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-/**
- * - * Container structure for the content to inspect. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.ContentItem} - */ -public final class ContentItem extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.ContentItem) - ContentItemOrBuilder { -private static final long serialVersionUID = 0L; - // Use ContentItem.newBuilder() to construct. - private ContentItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private ContentItem() { - type_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ContentItem( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - case 18: { - dataItemCase_ = 2; - dataItem_ = input.readBytes(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - dataItemCase_ = 3; - dataItem_ = s; - break; - } - case 34: { - com.google.privacy.dlp.v2beta1.Table.Builder subBuilder = null; - if (dataItemCase_ == 4) { - subBuilder = ((com.google.privacy.dlp.v2beta1.Table) dataItem_).toBuilder(); - } - dataItem_ = - input.readMessage(com.google.privacy.dlp.v2beta1.Table.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.privacy.dlp.v2beta1.Table) dataItem_); - dataItem_ = subBuilder.buildPartial(); - } - dataItemCase_ = 4; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_ContentItem_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_ContentItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.ContentItem.class, com.google.privacy.dlp.v2beta1.ContentItem.Builder.class); - } - - private int dataItemCase_ = 0; - private java.lang.Object dataItem_; - public enum DataItemCase - implements com.google.protobuf.Internal.EnumLite { - DATA(2), - VALUE(3), - TABLE(4), - DATAITEM_NOT_SET(0); - private final int value; - private DataItemCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DataItemCase valueOf(int value) { - return forNumber(value); - } - - public static DataItemCase forNumber(int value) { - switch (value) { - case 2: return DATA; - case 3: return VALUE; - case 4: return TABLE; - case 0: return DATAITEM_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DataItemCase - getDataItemCase() { - return DataItemCase.forNumber( - dataItemCase_); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object type_; - /** - *
- * Type of the content, as defined in Content-Type HTTP header. - * Supported types are: all "text" types, octet streams, PNG images, - * JPEG images. - *- * - *
string type = 1;
- */
- public java.lang.String getType() {
- java.lang.Object ref = type_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- type_ = s;
- return s;
- }
- }
- /**
- * - * Type of the content, as defined in Content-Type HTTP header. - * Supported types are: all "text" types, octet streams, PNG images, - * JPEG images. - *- * - *
string type = 1;
- */
- public com.google.protobuf.ByteString
- getTypeBytes() {
- java.lang.Object ref = type_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- type_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int DATA_FIELD_NUMBER = 2;
- /**
- * - * Content data to inspect or redact. - *- * - *
bytes data = 2;
- */
- public com.google.protobuf.ByteString getData() {
- if (dataItemCase_ == 2) {
- return (com.google.protobuf.ByteString) dataItem_;
- }
- return com.google.protobuf.ByteString.EMPTY;
- }
-
- public static final int VALUE_FIELD_NUMBER = 3;
- /**
- * - * String data to inspect or redact. - *- * - *
string value = 3;
- */
- public java.lang.String getValue() {
- java.lang.Object ref = "";
- if (dataItemCase_ == 3) {
- ref = dataItem_;
- }
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (dataItemCase_ == 3) {
- dataItem_ = s;
- }
- return s;
- }
- }
- /**
- * - * String data to inspect or redact. - *- * - *
string value = 3;
- */
- public com.google.protobuf.ByteString
- getValueBytes() {
- java.lang.Object ref = "";
- if (dataItemCase_ == 3) {
- ref = dataItem_;
- }
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- if (dataItemCase_ == 3) {
- dataItem_ = b;
- }
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int TABLE_FIELD_NUMBER = 4;
- /**
- * - * Structured content for inspection. - *- * - *
.google.privacy.dlp.v2beta1.Table table = 4;
- */
- public boolean hasTable() {
- return dataItemCase_ == 4;
- }
- /**
- * - * Structured content for inspection. - *- * - *
.google.privacy.dlp.v2beta1.Table table = 4;
- */
- public com.google.privacy.dlp.v2beta1.Table getTable() {
- if (dataItemCase_ == 4) {
- return (com.google.privacy.dlp.v2beta1.Table) dataItem_;
- }
- return com.google.privacy.dlp.v2beta1.Table.getDefaultInstance();
- }
- /**
- * - * Structured content for inspection. - *- * - *
.google.privacy.dlp.v2beta1.Table table = 4;
- */
- public com.google.privacy.dlp.v2beta1.TableOrBuilder getTableOrBuilder() {
- if (dataItemCase_ == 4) {
- return (com.google.privacy.dlp.v2beta1.Table) dataItem_;
- }
- return com.google.privacy.dlp.v2beta1.Table.getDefaultInstance();
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (!getTypeBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
- }
- if (dataItemCase_ == 2) {
- output.writeBytes(
- 2, (com.google.protobuf.ByteString) dataItem_);
- }
- if (dataItemCase_ == 3) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dataItem_);
- }
- if (dataItemCase_ == 4) {
- output.writeMessage(4, (com.google.privacy.dlp.v2beta1.Table) dataItem_);
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (!getTypeBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
- }
- if (dataItemCase_ == 2) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(
- 2, (com.google.protobuf.ByteString) dataItem_);
- }
- if (dataItemCase_ == 3) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dataItem_);
- }
- if (dataItemCase_ == 4) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, (com.google.privacy.dlp.v2beta1.Table) dataItem_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.ContentItem)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.ContentItem other = (com.google.privacy.dlp.v2beta1.ContentItem) obj;
-
- boolean result = true;
- result = result && getType()
- .equals(other.getType());
- result = result && getDataItemCase().equals(
- other.getDataItemCase());
- if (!result) return false;
- switch (dataItemCase_) {
- case 2:
- result = result && getData()
- .equals(other.getData());
- break;
- case 3:
- result = result && getValue()
- .equals(other.getValue());
- break;
- case 4:
- result = result && getTable()
- .equals(other.getTable());
- break;
- case 0:
- default:
- }
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + TYPE_FIELD_NUMBER;
- hash = (53 * hash) + getType().hashCode();
- switch (dataItemCase_) {
- case 2:
- hash = (37 * hash) + DATA_FIELD_NUMBER;
- hash = (53 * hash) + getData().hashCode();
- break;
- case 3:
- hash = (37 * hash) + VALUE_FIELD_NUMBER;
- hash = (53 * hash) + getValue().hashCode();
- break;
- case 4:
- hash = (37 * hash) + TABLE_FIELD_NUMBER;
- hash = (53 * hash) + getTable().hashCode();
- break;
- case 0:
- default:
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.ContentItem parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.ContentItem parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.ContentItem parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.ContentItem parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.ContentItem parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.ContentItem parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.ContentItem parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.ContentItem parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.ContentItem parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.ContentItem parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.ContentItem parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.ContentItem parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.ContentItem prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Container structure for the content to inspect. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.ContentItem} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * Type of the content, as defined in Content-Type HTTP header. - * Supported types are: all "text" types, octet streams, PNG images, - * JPEG images. - *- * - *
string type = 1;
- */
- public java.lang.String getType() {
- java.lang.Object ref = type_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- type_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * - * Type of the content, as defined in Content-Type HTTP header. - * Supported types are: all "text" types, octet streams, PNG images, - * JPEG images. - *- * - *
string type = 1;
- */
- public com.google.protobuf.ByteString
- getTypeBytes() {
- java.lang.Object ref = type_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- type_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * - * Type of the content, as defined in Content-Type HTTP header. - * Supported types are: all "text" types, octet streams, PNG images, - * JPEG images. - *- * - *
string type = 1;
- */
- public Builder setType(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- type_ = value;
- onChanged();
- return this;
- }
- /**
- * - * Type of the content, as defined in Content-Type HTTP header. - * Supported types are: all "text" types, octet streams, PNG images, - * JPEG images. - *- * - *
string type = 1;
- */
- public Builder clearType() {
-
- type_ = getDefaultInstance().getType();
- onChanged();
- return this;
- }
- /**
- * - * Type of the content, as defined in Content-Type HTTP header. - * Supported types are: all "text" types, octet streams, PNG images, - * JPEG images. - *- * - *
string type = 1;
- */
- public Builder setTypeBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- type_ = value;
- onChanged();
- return this;
- }
-
- /**
- * - * Content data to inspect or redact. - *- * - *
bytes data = 2;
- */
- public com.google.protobuf.ByteString getData() {
- if (dataItemCase_ == 2) {
- return (com.google.protobuf.ByteString) dataItem_;
- }
- return com.google.protobuf.ByteString.EMPTY;
- }
- /**
- * - * Content data to inspect or redact. - *- * - *
bytes data = 2;
- */
- public Builder setData(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- dataItemCase_ = 2;
- dataItem_ = value;
- onChanged();
- return this;
- }
- /**
- * - * Content data to inspect or redact. - *- * - *
bytes data = 2;
- */
- public Builder clearData() {
- if (dataItemCase_ == 2) {
- dataItemCase_ = 0;
- dataItem_ = null;
- onChanged();
- }
- return this;
- }
-
- /**
- * - * String data to inspect or redact. - *- * - *
string value = 3;
- */
- public java.lang.String getValue() {
- java.lang.Object ref = "";
- if (dataItemCase_ == 3) {
- ref = dataItem_;
- }
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (dataItemCase_ == 3) {
- dataItem_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * - * String data to inspect or redact. - *- * - *
string value = 3;
- */
- public com.google.protobuf.ByteString
- getValueBytes() {
- java.lang.Object ref = "";
- if (dataItemCase_ == 3) {
- ref = dataItem_;
- }
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- if (dataItemCase_ == 3) {
- dataItem_ = b;
- }
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * - * String data to inspect or redact. - *- * - *
string value = 3;
- */
- public Builder setValue(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- dataItemCase_ = 3;
- dataItem_ = value;
- onChanged();
- return this;
- }
- /**
- * - * String data to inspect or redact. - *- * - *
string value = 3;
- */
- public Builder clearValue() {
- if (dataItemCase_ == 3) {
- dataItemCase_ = 0;
- dataItem_ = null;
- onChanged();
- }
- return this;
- }
- /**
- * - * String data to inspect or redact. - *- * - *
string value = 3;
- */
- public Builder setValueBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- dataItemCase_ = 3;
- dataItem_ = value;
- onChanged();
- return this;
- }
-
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.Table, com.google.privacy.dlp.v2beta1.Table.Builder, com.google.privacy.dlp.v2beta1.TableOrBuilder> tableBuilder_;
- /**
- * - * Structured content for inspection. - *- * - *
.google.privacy.dlp.v2beta1.Table table = 4;
- */
- public boolean hasTable() {
- return dataItemCase_ == 4;
- }
- /**
- * - * Structured content for inspection. - *- * - *
.google.privacy.dlp.v2beta1.Table table = 4;
- */
- public com.google.privacy.dlp.v2beta1.Table getTable() {
- if (tableBuilder_ == null) {
- if (dataItemCase_ == 4) {
- return (com.google.privacy.dlp.v2beta1.Table) dataItem_;
- }
- return com.google.privacy.dlp.v2beta1.Table.getDefaultInstance();
- } else {
- if (dataItemCase_ == 4) {
- return tableBuilder_.getMessage();
- }
- return com.google.privacy.dlp.v2beta1.Table.getDefaultInstance();
- }
- }
- /**
- * - * Structured content for inspection. - *- * - *
.google.privacy.dlp.v2beta1.Table table = 4;
- */
- public Builder setTable(com.google.privacy.dlp.v2beta1.Table value) {
- if (tableBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- dataItem_ = value;
- onChanged();
- } else {
- tableBuilder_.setMessage(value);
- }
- dataItemCase_ = 4;
- return this;
- }
- /**
- * - * Structured content for inspection. - *- * - *
.google.privacy.dlp.v2beta1.Table table = 4;
- */
- public Builder setTable(
- com.google.privacy.dlp.v2beta1.Table.Builder builderForValue) {
- if (tableBuilder_ == null) {
- dataItem_ = builderForValue.build();
- onChanged();
- } else {
- tableBuilder_.setMessage(builderForValue.build());
- }
- dataItemCase_ = 4;
- return this;
- }
- /**
- * - * Structured content for inspection. - *- * - *
.google.privacy.dlp.v2beta1.Table table = 4;
- */
- public Builder mergeTable(com.google.privacy.dlp.v2beta1.Table value) {
- if (tableBuilder_ == null) {
- if (dataItemCase_ == 4 &&
- dataItem_ != com.google.privacy.dlp.v2beta1.Table.getDefaultInstance()) {
- dataItem_ = com.google.privacy.dlp.v2beta1.Table.newBuilder((com.google.privacy.dlp.v2beta1.Table) dataItem_)
- .mergeFrom(value).buildPartial();
- } else {
- dataItem_ = value;
- }
- onChanged();
- } else {
- if (dataItemCase_ == 4) {
- tableBuilder_.mergeFrom(value);
- }
- tableBuilder_.setMessage(value);
- }
- dataItemCase_ = 4;
- return this;
- }
- /**
- * - * Structured content for inspection. - *- * - *
.google.privacy.dlp.v2beta1.Table table = 4;
- */
- public Builder clearTable() {
- if (tableBuilder_ == null) {
- if (dataItemCase_ == 4) {
- dataItemCase_ = 0;
- dataItem_ = null;
- onChanged();
- }
- } else {
- if (dataItemCase_ == 4) {
- dataItemCase_ = 0;
- dataItem_ = null;
- }
- tableBuilder_.clear();
- }
- return this;
- }
- /**
- * - * Structured content for inspection. - *- * - *
.google.privacy.dlp.v2beta1.Table table = 4;
- */
- public com.google.privacy.dlp.v2beta1.Table.Builder getTableBuilder() {
- return getTableFieldBuilder().getBuilder();
- }
- /**
- * - * Structured content for inspection. - *- * - *
.google.privacy.dlp.v2beta1.Table table = 4;
- */
- public com.google.privacy.dlp.v2beta1.TableOrBuilder getTableOrBuilder() {
- if ((dataItemCase_ == 4) && (tableBuilder_ != null)) {
- return tableBuilder_.getMessageOrBuilder();
- } else {
- if (dataItemCase_ == 4) {
- return (com.google.privacy.dlp.v2beta1.Table) dataItem_;
- }
- return com.google.privacy.dlp.v2beta1.Table.getDefaultInstance();
- }
- }
- /**
- * - * Structured content for inspection. - *- * - *
.google.privacy.dlp.v2beta1.Table table = 4;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.Table, com.google.privacy.dlp.v2beta1.Table.Builder, com.google.privacy.dlp.v2beta1.TableOrBuilder>
- getTableFieldBuilder() {
- if (tableBuilder_ == null) {
- if (!(dataItemCase_ == 4)) {
- dataItem_ = com.google.privacy.dlp.v2beta1.Table.getDefaultInstance();
- }
- tableBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.Table, com.google.privacy.dlp.v2beta1.Table.Builder, com.google.privacy.dlp.v2beta1.TableOrBuilder>(
- (com.google.privacy.dlp.v2beta1.Table) dataItem_,
- getParentForChildren(),
- isClean());
- dataItem_ = null;
- }
- dataItemCase_ = 4;
- onChanged();;
- return tableBuilder_;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.ContentItem)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.ContentItem)
- private static final com.google.privacy.dlp.v2beta1.ContentItem DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.ContentItem();
- }
-
- public static com.google.privacy.dlp.v2beta1.ContentItem getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * Type of the content, as defined in Content-Type HTTP header. - * Supported types are: all "text" types, octet streams, PNG images, - * JPEG images. - *- * - *
string type = 1;
- */
- java.lang.String getType();
- /**
- * - * Type of the content, as defined in Content-Type HTTP header. - * Supported types are: all "text" types, octet streams, PNG images, - * JPEG images. - *- * - *
string type = 1;
- */
- com.google.protobuf.ByteString
- getTypeBytes();
-
- /**
- * - * Content data to inspect or redact. - *- * - *
bytes data = 2;
- */
- com.google.protobuf.ByteString getData();
-
- /**
- * - * String data to inspect or redact. - *- * - *
string value = 3;
- */
- java.lang.String getValue();
- /**
- * - * String data to inspect or redact. - *- * - *
string value = 3;
- */
- com.google.protobuf.ByteString
- getValueBytes();
-
- /**
- * - * Structured content for inspection. - *- * - *
.google.privacy.dlp.v2beta1.Table table = 4;
- */
- boolean hasTable();
- /**
- * - * Structured content for inspection. - *- * - *
.google.privacy.dlp.v2beta1.Table table = 4;
- */
- com.google.privacy.dlp.v2beta1.Table getTable();
- /**
- * - * Structured content for inspection. - *- * - *
.google.privacy.dlp.v2beta1.Table table = 4;
- */
- com.google.privacy.dlp.v2beta1.TableOrBuilder getTableOrBuilder();
-
- public com.google.privacy.dlp.v2beta1.ContentItem.DataItemCase getDataItemCase();
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CreateInspectOperationRequest.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CreateInspectOperationRequest.java
deleted file mode 100644
index 1b9f3c826f40..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CreateInspectOperationRequest.java
+++ /dev/null
@@ -1,1315 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/dlp.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-/**
- * - * Request for scheduling a scan of a data subset from a Google Platform data - * repository. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CreateInspectOperationRequest} - */ -public final class CreateInspectOperationRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.CreateInspectOperationRequest) - CreateInspectOperationRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateInspectOperationRequest.newBuilder() to construct. - private CreateInspectOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private CreateInspectOperationRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateInspectOperationRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.privacy.dlp.v2beta1.InspectConfig.Builder subBuilder = null; - if (inspectConfig_ != null) { - subBuilder = inspectConfig_.toBuilder(); - } - inspectConfig_ = input.readMessage(com.google.privacy.dlp.v2beta1.InspectConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inspectConfig_); - inspectConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.privacy.dlp.v2beta1.StorageConfig.Builder subBuilder = null; - if (storageConfig_ != null) { - subBuilder = storageConfig_.toBuilder(); - } - storageConfig_ = input.readMessage(com.google.privacy.dlp.v2beta1.StorageConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(storageConfig_); - storageConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - com.google.privacy.dlp.v2beta1.OutputStorageConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = input.readMessage(com.google.privacy.dlp.v2beta1.OutputStorageConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - com.google.privacy.dlp.v2beta1.OperationConfig.Builder subBuilder = null; - if (operationConfig_ != null) { - subBuilder = operationConfig_.toBuilder(); - } - operationConfig_ = input.readMessage(com.google.privacy.dlp.v2beta1.OperationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(operationConfig_); - operationConfig_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_CreateInspectOperationRequest_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_CreateInspectOperationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest.class, com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest.Builder.class); - } - - public static final int INSPECT_CONFIG_FIELD_NUMBER = 1; - private com.google.privacy.dlp.v2beta1.InspectConfig inspectConfig_; - /** - *
- * Configuration for the inspector. - *- * - *
.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;
- */
- public boolean hasInspectConfig() {
- return inspectConfig_ != null;
- }
- /**
- * - * Configuration for the inspector. - *- * - *
.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;
- */
- public com.google.privacy.dlp.v2beta1.InspectConfig getInspectConfig() {
- return inspectConfig_ == null ? com.google.privacy.dlp.v2beta1.InspectConfig.getDefaultInstance() : inspectConfig_;
- }
- /**
- * - * Configuration for the inspector. - *- * - *
.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;
- */
- public com.google.privacy.dlp.v2beta1.InspectConfigOrBuilder getInspectConfigOrBuilder() {
- return getInspectConfig();
- }
-
- public static final int STORAGE_CONFIG_FIELD_NUMBER = 2;
- private com.google.privacy.dlp.v2beta1.StorageConfig storageConfig_;
- /**
- * - * Specification of the data set to process. - *- * - *
.google.privacy.dlp.v2beta1.StorageConfig storage_config = 2;
- */
- public boolean hasStorageConfig() {
- return storageConfig_ != null;
- }
- /**
- * - * Specification of the data set to process. - *- * - *
.google.privacy.dlp.v2beta1.StorageConfig storage_config = 2;
- */
- public com.google.privacy.dlp.v2beta1.StorageConfig getStorageConfig() {
- return storageConfig_ == null ? com.google.privacy.dlp.v2beta1.StorageConfig.getDefaultInstance() : storageConfig_;
- }
- /**
- * - * Specification of the data set to process. - *- * - *
.google.privacy.dlp.v2beta1.StorageConfig storage_config = 2;
- */
- public com.google.privacy.dlp.v2beta1.StorageConfigOrBuilder getStorageConfigOrBuilder() {
- return getStorageConfig();
- }
-
- public static final int OUTPUT_CONFIG_FIELD_NUMBER = 3;
- private com.google.privacy.dlp.v2beta1.OutputStorageConfig outputConfig_;
- /**
- * - * Optional location to store findings. - *- * - *
.google.privacy.dlp.v2beta1.OutputStorageConfig output_config = 3;
- */
- public boolean hasOutputConfig() {
- return outputConfig_ != null;
- }
- /**
- * - * Optional location to store findings. - *- * - *
.google.privacy.dlp.v2beta1.OutputStorageConfig output_config = 3;
- */
- public com.google.privacy.dlp.v2beta1.OutputStorageConfig getOutputConfig() {
- return outputConfig_ == null ? com.google.privacy.dlp.v2beta1.OutputStorageConfig.getDefaultInstance() : outputConfig_;
- }
- /**
- * - * Optional location to store findings. - *- * - *
.google.privacy.dlp.v2beta1.OutputStorageConfig output_config = 3;
- */
- public com.google.privacy.dlp.v2beta1.OutputStorageConfigOrBuilder getOutputConfigOrBuilder() {
- return getOutputConfig();
- }
-
- public static final int OPERATION_CONFIG_FIELD_NUMBER = 5;
- private com.google.privacy.dlp.v2beta1.OperationConfig operationConfig_;
- /**
- * - * Additional configuration settings for long running operations. - *- * - *
.google.privacy.dlp.v2beta1.OperationConfig operation_config = 5;
- */
- public boolean hasOperationConfig() {
- return operationConfig_ != null;
- }
- /**
- * - * Additional configuration settings for long running operations. - *- * - *
.google.privacy.dlp.v2beta1.OperationConfig operation_config = 5;
- */
- public com.google.privacy.dlp.v2beta1.OperationConfig getOperationConfig() {
- return operationConfig_ == null ? com.google.privacy.dlp.v2beta1.OperationConfig.getDefaultInstance() : operationConfig_;
- }
- /**
- * - * Additional configuration settings for long running operations. - *- * - *
.google.privacy.dlp.v2beta1.OperationConfig operation_config = 5;
- */
- public com.google.privacy.dlp.v2beta1.OperationConfigOrBuilder getOperationConfigOrBuilder() {
- return getOperationConfig();
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (inspectConfig_ != null) {
- output.writeMessage(1, getInspectConfig());
- }
- if (storageConfig_ != null) {
- output.writeMessage(2, getStorageConfig());
- }
- if (outputConfig_ != null) {
- output.writeMessage(3, getOutputConfig());
- }
- if (operationConfig_ != null) {
- output.writeMessage(5, getOperationConfig());
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (inspectConfig_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getInspectConfig());
- }
- if (storageConfig_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, getStorageConfig());
- }
- if (outputConfig_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, getOutputConfig());
- }
- if (operationConfig_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(5, getOperationConfig());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest other = (com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest) obj;
-
- boolean result = true;
- result = result && (hasInspectConfig() == other.hasInspectConfig());
- if (hasInspectConfig()) {
- result = result && getInspectConfig()
- .equals(other.getInspectConfig());
- }
- result = result && (hasStorageConfig() == other.hasStorageConfig());
- if (hasStorageConfig()) {
- result = result && getStorageConfig()
- .equals(other.getStorageConfig());
- }
- result = result && (hasOutputConfig() == other.hasOutputConfig());
- if (hasOutputConfig()) {
- result = result && getOutputConfig()
- .equals(other.getOutputConfig());
- }
- result = result && (hasOperationConfig() == other.hasOperationConfig());
- if (hasOperationConfig()) {
- result = result && getOperationConfig()
- .equals(other.getOperationConfig());
- }
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasInspectConfig()) {
- hash = (37 * hash) + INSPECT_CONFIG_FIELD_NUMBER;
- hash = (53 * hash) + getInspectConfig().hashCode();
- }
- if (hasStorageConfig()) {
- hash = (37 * hash) + STORAGE_CONFIG_FIELD_NUMBER;
- hash = (53 * hash) + getStorageConfig().hashCode();
- }
- if (hasOutputConfig()) {
- hash = (37 * hash) + OUTPUT_CONFIG_FIELD_NUMBER;
- hash = (53 * hash) + getOutputConfig().hashCode();
- }
- if (hasOperationConfig()) {
- hash = (37 * hash) + OPERATION_CONFIG_FIELD_NUMBER;
- hash = (53 * hash) + getOperationConfig().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Request for scheduling a scan of a data subset from a Google Platform data - * repository. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CreateInspectOperationRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * Configuration for the inspector. - *- * - *
.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;
- */
- public boolean hasInspectConfig() {
- return inspectConfigBuilder_ != null || inspectConfig_ != null;
- }
- /**
- * - * Configuration for the inspector. - *- * - *
.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;
- */
- public com.google.privacy.dlp.v2beta1.InspectConfig getInspectConfig() {
- if (inspectConfigBuilder_ == null) {
- return inspectConfig_ == null ? com.google.privacy.dlp.v2beta1.InspectConfig.getDefaultInstance() : inspectConfig_;
- } else {
- return inspectConfigBuilder_.getMessage();
- }
- }
- /**
- * - * Configuration for the inspector. - *- * - *
.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;
- */
- public Builder setInspectConfig(com.google.privacy.dlp.v2beta1.InspectConfig value) {
- if (inspectConfigBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- inspectConfig_ = value;
- onChanged();
- } else {
- inspectConfigBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * Configuration for the inspector. - *- * - *
.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;
- */
- public Builder setInspectConfig(
- com.google.privacy.dlp.v2beta1.InspectConfig.Builder builderForValue) {
- if (inspectConfigBuilder_ == null) {
- inspectConfig_ = builderForValue.build();
- onChanged();
- } else {
- inspectConfigBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * Configuration for the inspector. - *- * - *
.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;
- */
- public Builder mergeInspectConfig(com.google.privacy.dlp.v2beta1.InspectConfig value) {
- if (inspectConfigBuilder_ == null) {
- if (inspectConfig_ != null) {
- inspectConfig_ =
- com.google.privacy.dlp.v2beta1.InspectConfig.newBuilder(inspectConfig_).mergeFrom(value).buildPartial();
- } else {
- inspectConfig_ = value;
- }
- onChanged();
- } else {
- inspectConfigBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * Configuration for the inspector. - *- * - *
.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;
- */
- public Builder clearInspectConfig() {
- if (inspectConfigBuilder_ == null) {
- inspectConfig_ = null;
- onChanged();
- } else {
- inspectConfig_ = null;
- inspectConfigBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * Configuration for the inspector. - *- * - *
.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;
- */
- public com.google.privacy.dlp.v2beta1.InspectConfig.Builder getInspectConfigBuilder() {
-
- onChanged();
- return getInspectConfigFieldBuilder().getBuilder();
- }
- /**
- * - * Configuration for the inspector. - *- * - *
.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;
- */
- public com.google.privacy.dlp.v2beta1.InspectConfigOrBuilder getInspectConfigOrBuilder() {
- if (inspectConfigBuilder_ != null) {
- return inspectConfigBuilder_.getMessageOrBuilder();
- } else {
- return inspectConfig_ == null ?
- com.google.privacy.dlp.v2beta1.InspectConfig.getDefaultInstance() : inspectConfig_;
- }
- }
- /**
- * - * Configuration for the inspector. - *- * - *
.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.InspectConfig, com.google.privacy.dlp.v2beta1.InspectConfig.Builder, com.google.privacy.dlp.v2beta1.InspectConfigOrBuilder>
- getInspectConfigFieldBuilder() {
- if (inspectConfigBuilder_ == null) {
- inspectConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.InspectConfig, com.google.privacy.dlp.v2beta1.InspectConfig.Builder, com.google.privacy.dlp.v2beta1.InspectConfigOrBuilder>(
- getInspectConfig(),
- getParentForChildren(),
- isClean());
- inspectConfig_ = null;
- }
- return inspectConfigBuilder_;
- }
-
- private com.google.privacy.dlp.v2beta1.StorageConfig storageConfig_ = null;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.StorageConfig, com.google.privacy.dlp.v2beta1.StorageConfig.Builder, com.google.privacy.dlp.v2beta1.StorageConfigOrBuilder> storageConfigBuilder_;
- /**
- * - * Specification of the data set to process. - *- * - *
.google.privacy.dlp.v2beta1.StorageConfig storage_config = 2;
- */
- public boolean hasStorageConfig() {
- return storageConfigBuilder_ != null || storageConfig_ != null;
- }
- /**
- * - * Specification of the data set to process. - *- * - *
.google.privacy.dlp.v2beta1.StorageConfig storage_config = 2;
- */
- public com.google.privacy.dlp.v2beta1.StorageConfig getStorageConfig() {
- if (storageConfigBuilder_ == null) {
- return storageConfig_ == null ? com.google.privacy.dlp.v2beta1.StorageConfig.getDefaultInstance() : storageConfig_;
- } else {
- return storageConfigBuilder_.getMessage();
- }
- }
- /**
- * - * Specification of the data set to process. - *- * - *
.google.privacy.dlp.v2beta1.StorageConfig storage_config = 2;
- */
- public Builder setStorageConfig(com.google.privacy.dlp.v2beta1.StorageConfig value) {
- if (storageConfigBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- storageConfig_ = value;
- onChanged();
- } else {
- storageConfigBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * Specification of the data set to process. - *- * - *
.google.privacy.dlp.v2beta1.StorageConfig storage_config = 2;
- */
- public Builder setStorageConfig(
- com.google.privacy.dlp.v2beta1.StorageConfig.Builder builderForValue) {
- if (storageConfigBuilder_ == null) {
- storageConfig_ = builderForValue.build();
- onChanged();
- } else {
- storageConfigBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * Specification of the data set to process. - *- * - *
.google.privacy.dlp.v2beta1.StorageConfig storage_config = 2;
- */
- public Builder mergeStorageConfig(com.google.privacy.dlp.v2beta1.StorageConfig value) {
- if (storageConfigBuilder_ == null) {
- if (storageConfig_ != null) {
- storageConfig_ =
- com.google.privacy.dlp.v2beta1.StorageConfig.newBuilder(storageConfig_).mergeFrom(value).buildPartial();
- } else {
- storageConfig_ = value;
- }
- onChanged();
- } else {
- storageConfigBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * Specification of the data set to process. - *- * - *
.google.privacy.dlp.v2beta1.StorageConfig storage_config = 2;
- */
- public Builder clearStorageConfig() {
- if (storageConfigBuilder_ == null) {
- storageConfig_ = null;
- onChanged();
- } else {
- storageConfig_ = null;
- storageConfigBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * Specification of the data set to process. - *- * - *
.google.privacy.dlp.v2beta1.StorageConfig storage_config = 2;
- */
- public com.google.privacy.dlp.v2beta1.StorageConfig.Builder getStorageConfigBuilder() {
-
- onChanged();
- return getStorageConfigFieldBuilder().getBuilder();
- }
- /**
- * - * Specification of the data set to process. - *- * - *
.google.privacy.dlp.v2beta1.StorageConfig storage_config = 2;
- */
- public com.google.privacy.dlp.v2beta1.StorageConfigOrBuilder getStorageConfigOrBuilder() {
- if (storageConfigBuilder_ != null) {
- return storageConfigBuilder_.getMessageOrBuilder();
- } else {
- return storageConfig_ == null ?
- com.google.privacy.dlp.v2beta1.StorageConfig.getDefaultInstance() : storageConfig_;
- }
- }
- /**
- * - * Specification of the data set to process. - *- * - *
.google.privacy.dlp.v2beta1.StorageConfig storage_config = 2;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.StorageConfig, com.google.privacy.dlp.v2beta1.StorageConfig.Builder, com.google.privacy.dlp.v2beta1.StorageConfigOrBuilder>
- getStorageConfigFieldBuilder() {
- if (storageConfigBuilder_ == null) {
- storageConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.StorageConfig, com.google.privacy.dlp.v2beta1.StorageConfig.Builder, com.google.privacy.dlp.v2beta1.StorageConfigOrBuilder>(
- getStorageConfig(),
- getParentForChildren(),
- isClean());
- storageConfig_ = null;
- }
- return storageConfigBuilder_;
- }
-
- private com.google.privacy.dlp.v2beta1.OutputStorageConfig outputConfig_ = null;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.OutputStorageConfig, com.google.privacy.dlp.v2beta1.OutputStorageConfig.Builder, com.google.privacy.dlp.v2beta1.OutputStorageConfigOrBuilder> outputConfigBuilder_;
- /**
- * - * Optional location to store findings. - *- * - *
.google.privacy.dlp.v2beta1.OutputStorageConfig output_config = 3;
- */
- public boolean hasOutputConfig() {
- return outputConfigBuilder_ != null || outputConfig_ != null;
- }
- /**
- * - * Optional location to store findings. - *- * - *
.google.privacy.dlp.v2beta1.OutputStorageConfig output_config = 3;
- */
- public com.google.privacy.dlp.v2beta1.OutputStorageConfig getOutputConfig() {
- if (outputConfigBuilder_ == null) {
- return outputConfig_ == null ? com.google.privacy.dlp.v2beta1.OutputStorageConfig.getDefaultInstance() : outputConfig_;
- } else {
- return outputConfigBuilder_.getMessage();
- }
- }
- /**
- * - * Optional location to store findings. - *- * - *
.google.privacy.dlp.v2beta1.OutputStorageConfig output_config = 3;
- */
- public Builder setOutputConfig(com.google.privacy.dlp.v2beta1.OutputStorageConfig value) {
- if (outputConfigBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- outputConfig_ = value;
- onChanged();
- } else {
- outputConfigBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * Optional location to store findings. - *- * - *
.google.privacy.dlp.v2beta1.OutputStorageConfig output_config = 3;
- */
- public Builder setOutputConfig(
- com.google.privacy.dlp.v2beta1.OutputStorageConfig.Builder builderForValue) {
- if (outputConfigBuilder_ == null) {
- outputConfig_ = builderForValue.build();
- onChanged();
- } else {
- outputConfigBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * Optional location to store findings. - *- * - *
.google.privacy.dlp.v2beta1.OutputStorageConfig output_config = 3;
- */
- public Builder mergeOutputConfig(com.google.privacy.dlp.v2beta1.OutputStorageConfig value) {
- if (outputConfigBuilder_ == null) {
- if (outputConfig_ != null) {
- outputConfig_ =
- com.google.privacy.dlp.v2beta1.OutputStorageConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial();
- } else {
- outputConfig_ = value;
- }
- onChanged();
- } else {
- outputConfigBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * Optional location to store findings. - *- * - *
.google.privacy.dlp.v2beta1.OutputStorageConfig output_config = 3;
- */
- public Builder clearOutputConfig() {
- if (outputConfigBuilder_ == null) {
- outputConfig_ = null;
- onChanged();
- } else {
- outputConfig_ = null;
- outputConfigBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * Optional location to store findings. - *- * - *
.google.privacy.dlp.v2beta1.OutputStorageConfig output_config = 3;
- */
- public com.google.privacy.dlp.v2beta1.OutputStorageConfig.Builder getOutputConfigBuilder() {
-
- onChanged();
- return getOutputConfigFieldBuilder().getBuilder();
- }
- /**
- * - * Optional location to store findings. - *- * - *
.google.privacy.dlp.v2beta1.OutputStorageConfig output_config = 3;
- */
- public com.google.privacy.dlp.v2beta1.OutputStorageConfigOrBuilder getOutputConfigOrBuilder() {
- if (outputConfigBuilder_ != null) {
- return outputConfigBuilder_.getMessageOrBuilder();
- } else {
- return outputConfig_ == null ?
- com.google.privacy.dlp.v2beta1.OutputStorageConfig.getDefaultInstance() : outputConfig_;
- }
- }
- /**
- * - * Optional location to store findings. - *- * - *
.google.privacy.dlp.v2beta1.OutputStorageConfig output_config = 3;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.OutputStorageConfig, com.google.privacy.dlp.v2beta1.OutputStorageConfig.Builder, com.google.privacy.dlp.v2beta1.OutputStorageConfigOrBuilder>
- getOutputConfigFieldBuilder() {
- if (outputConfigBuilder_ == null) {
- outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.OutputStorageConfig, com.google.privacy.dlp.v2beta1.OutputStorageConfig.Builder, com.google.privacy.dlp.v2beta1.OutputStorageConfigOrBuilder>(
- getOutputConfig(),
- getParentForChildren(),
- isClean());
- outputConfig_ = null;
- }
- return outputConfigBuilder_;
- }
-
- private com.google.privacy.dlp.v2beta1.OperationConfig operationConfig_ = null;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.OperationConfig, com.google.privacy.dlp.v2beta1.OperationConfig.Builder, com.google.privacy.dlp.v2beta1.OperationConfigOrBuilder> operationConfigBuilder_;
- /**
- * - * Additional configuration settings for long running operations. - *- * - *
.google.privacy.dlp.v2beta1.OperationConfig operation_config = 5;
- */
- public boolean hasOperationConfig() {
- return operationConfigBuilder_ != null || operationConfig_ != null;
- }
- /**
- * - * Additional configuration settings for long running operations. - *- * - *
.google.privacy.dlp.v2beta1.OperationConfig operation_config = 5;
- */
- public com.google.privacy.dlp.v2beta1.OperationConfig getOperationConfig() {
- if (operationConfigBuilder_ == null) {
- return operationConfig_ == null ? com.google.privacy.dlp.v2beta1.OperationConfig.getDefaultInstance() : operationConfig_;
- } else {
- return operationConfigBuilder_.getMessage();
- }
- }
- /**
- * - * Additional configuration settings for long running operations. - *- * - *
.google.privacy.dlp.v2beta1.OperationConfig operation_config = 5;
- */
- public Builder setOperationConfig(com.google.privacy.dlp.v2beta1.OperationConfig value) {
- if (operationConfigBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- operationConfig_ = value;
- onChanged();
- } else {
- operationConfigBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * Additional configuration settings for long running operations. - *- * - *
.google.privacy.dlp.v2beta1.OperationConfig operation_config = 5;
- */
- public Builder setOperationConfig(
- com.google.privacy.dlp.v2beta1.OperationConfig.Builder builderForValue) {
- if (operationConfigBuilder_ == null) {
- operationConfig_ = builderForValue.build();
- onChanged();
- } else {
- operationConfigBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * Additional configuration settings for long running operations. - *- * - *
.google.privacy.dlp.v2beta1.OperationConfig operation_config = 5;
- */
- public Builder mergeOperationConfig(com.google.privacy.dlp.v2beta1.OperationConfig value) {
- if (operationConfigBuilder_ == null) {
- if (operationConfig_ != null) {
- operationConfig_ =
- com.google.privacy.dlp.v2beta1.OperationConfig.newBuilder(operationConfig_).mergeFrom(value).buildPartial();
- } else {
- operationConfig_ = value;
- }
- onChanged();
- } else {
- operationConfigBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * Additional configuration settings for long running operations. - *- * - *
.google.privacy.dlp.v2beta1.OperationConfig operation_config = 5;
- */
- public Builder clearOperationConfig() {
- if (operationConfigBuilder_ == null) {
- operationConfig_ = null;
- onChanged();
- } else {
- operationConfig_ = null;
- operationConfigBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * Additional configuration settings for long running operations. - *- * - *
.google.privacy.dlp.v2beta1.OperationConfig operation_config = 5;
- */
- public com.google.privacy.dlp.v2beta1.OperationConfig.Builder getOperationConfigBuilder() {
-
- onChanged();
- return getOperationConfigFieldBuilder().getBuilder();
- }
- /**
- * - * Additional configuration settings for long running operations. - *- * - *
.google.privacy.dlp.v2beta1.OperationConfig operation_config = 5;
- */
- public com.google.privacy.dlp.v2beta1.OperationConfigOrBuilder getOperationConfigOrBuilder() {
- if (operationConfigBuilder_ != null) {
- return operationConfigBuilder_.getMessageOrBuilder();
- } else {
- return operationConfig_ == null ?
- com.google.privacy.dlp.v2beta1.OperationConfig.getDefaultInstance() : operationConfig_;
- }
- }
- /**
- * - * Additional configuration settings for long running operations. - *- * - *
.google.privacy.dlp.v2beta1.OperationConfig operation_config = 5;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.OperationConfig, com.google.privacy.dlp.v2beta1.OperationConfig.Builder, com.google.privacy.dlp.v2beta1.OperationConfigOrBuilder>
- getOperationConfigFieldBuilder() {
- if (operationConfigBuilder_ == null) {
- operationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.OperationConfig, com.google.privacy.dlp.v2beta1.OperationConfig.Builder, com.google.privacy.dlp.v2beta1.OperationConfigOrBuilder>(
- getOperationConfig(),
- getParentForChildren(),
- isClean());
- operationConfig_ = null;
- }
- return operationConfigBuilder_;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.CreateInspectOperationRequest)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.CreateInspectOperationRequest)
- private static final com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest();
- }
-
- public static com.google.privacy.dlp.v2beta1.CreateInspectOperationRequest getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * Configuration for the inspector. - *- * - *
.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;
- */
- boolean hasInspectConfig();
- /**
- * - * Configuration for the inspector. - *- * - *
.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;
- */
- com.google.privacy.dlp.v2beta1.InspectConfig getInspectConfig();
- /**
- * - * Configuration for the inspector. - *- * - *
.google.privacy.dlp.v2beta1.InspectConfig inspect_config = 1;
- */
- com.google.privacy.dlp.v2beta1.InspectConfigOrBuilder getInspectConfigOrBuilder();
-
- /**
- * - * Specification of the data set to process. - *- * - *
.google.privacy.dlp.v2beta1.StorageConfig storage_config = 2;
- */
- boolean hasStorageConfig();
- /**
- * - * Specification of the data set to process. - *- * - *
.google.privacy.dlp.v2beta1.StorageConfig storage_config = 2;
- */
- com.google.privacy.dlp.v2beta1.StorageConfig getStorageConfig();
- /**
- * - * Specification of the data set to process. - *- * - *
.google.privacy.dlp.v2beta1.StorageConfig storage_config = 2;
- */
- com.google.privacy.dlp.v2beta1.StorageConfigOrBuilder getStorageConfigOrBuilder();
-
- /**
- * - * Optional location to store findings. - *- * - *
.google.privacy.dlp.v2beta1.OutputStorageConfig output_config = 3;
- */
- boolean hasOutputConfig();
- /**
- * - * Optional location to store findings. - *- * - *
.google.privacy.dlp.v2beta1.OutputStorageConfig output_config = 3;
- */
- com.google.privacy.dlp.v2beta1.OutputStorageConfig getOutputConfig();
- /**
- * - * Optional location to store findings. - *- * - *
.google.privacy.dlp.v2beta1.OutputStorageConfig output_config = 3;
- */
- com.google.privacy.dlp.v2beta1.OutputStorageConfigOrBuilder getOutputConfigOrBuilder();
-
- /**
- * - * Additional configuration settings for long running operations. - *- * - *
.google.privacy.dlp.v2beta1.OperationConfig operation_config = 5;
- */
- boolean hasOperationConfig();
- /**
- * - * Additional configuration settings for long running operations. - *- * - *
.google.privacy.dlp.v2beta1.OperationConfig operation_config = 5;
- */
- com.google.privacy.dlp.v2beta1.OperationConfig getOperationConfig();
- /**
- * - * Additional configuration settings for long running operations. - *- * - *
.google.privacy.dlp.v2beta1.OperationConfig operation_config = 5;
- */
- com.google.privacy.dlp.v2beta1.OperationConfigOrBuilder getOperationConfigOrBuilder();
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CryptoHashConfig.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CryptoHashConfig.java
deleted file mode 100644
index 7e3b0ae292ce..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CryptoHashConfig.java
+++ /dev/null
@@ -1,634 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/dlp.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-/**
- * - * Pseudonymization method that generates surrogates via cryptographic hashing. - * Uses SHA-256. - * Outputs a 32 byte digest as an uppercase hex string - * (for example, 41D1567F7F99F1DC2A5FAB886DEE5BEE). - * Currently, only string and integer values can be hashed. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CryptoHashConfig} - */ -public final class CryptoHashConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.CryptoHashConfig) - CryptoHashConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use CryptoHashConfig.newBuilder() to construct. - private CryptoHashConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private CryptoHashConfig() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CryptoHashConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.privacy.dlp.v2beta1.CryptoKey.Builder subBuilder = null; - if (cryptoKey_ != null) { - subBuilder = cryptoKey_.toBuilder(); - } - cryptoKey_ = input.readMessage(com.google.privacy.dlp.v2beta1.CryptoKey.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cryptoKey_); - cryptoKey_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_CryptoHashConfig_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_CryptoHashConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.CryptoHashConfig.class, com.google.privacy.dlp.v2beta1.CryptoHashConfig.Builder.class); - } - - public static final int CRYPTO_KEY_FIELD_NUMBER = 1; - private com.google.privacy.dlp.v2beta1.CryptoKey cryptoKey_; - /** - *
- * The key used by the hash function. - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public boolean hasCryptoKey() {
- return cryptoKey_ != null;
- }
- /**
- * - * The key used by the hash function. - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public com.google.privacy.dlp.v2beta1.CryptoKey getCryptoKey() {
- return cryptoKey_ == null ? com.google.privacy.dlp.v2beta1.CryptoKey.getDefaultInstance() : cryptoKey_;
- }
- /**
- * - * The key used by the hash function. - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public com.google.privacy.dlp.v2beta1.CryptoKeyOrBuilder getCryptoKeyOrBuilder() {
- return getCryptoKey();
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (cryptoKey_ != null) {
- output.writeMessage(1, getCryptoKey());
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (cryptoKey_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getCryptoKey());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.CryptoHashConfig)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.CryptoHashConfig other = (com.google.privacy.dlp.v2beta1.CryptoHashConfig) obj;
-
- boolean result = true;
- result = result && (hasCryptoKey() == other.hasCryptoKey());
- if (hasCryptoKey()) {
- result = result && getCryptoKey()
- .equals(other.getCryptoKey());
- }
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasCryptoKey()) {
- hash = (37 * hash) + CRYPTO_KEY_FIELD_NUMBER;
- hash = (53 * hash) + getCryptoKey().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.CryptoHashConfig parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoHashConfig parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoHashConfig parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoHashConfig parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoHashConfig parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoHashConfig parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoHashConfig parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoHashConfig parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoHashConfig parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoHashConfig parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoHashConfig parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoHashConfig parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.CryptoHashConfig prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Pseudonymization method that generates surrogates via cryptographic hashing. - * Uses SHA-256. - * Outputs a 32 byte digest as an uppercase hex string - * (for example, 41D1567F7F99F1DC2A5FAB886DEE5BEE). - * Currently, only string and integer values can be hashed. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CryptoHashConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * The key used by the hash function. - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public boolean hasCryptoKey() {
- return cryptoKeyBuilder_ != null || cryptoKey_ != null;
- }
- /**
- * - * The key used by the hash function. - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public com.google.privacy.dlp.v2beta1.CryptoKey getCryptoKey() {
- if (cryptoKeyBuilder_ == null) {
- return cryptoKey_ == null ? com.google.privacy.dlp.v2beta1.CryptoKey.getDefaultInstance() : cryptoKey_;
- } else {
- return cryptoKeyBuilder_.getMessage();
- }
- }
- /**
- * - * The key used by the hash function. - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public Builder setCryptoKey(com.google.privacy.dlp.v2beta1.CryptoKey value) {
- if (cryptoKeyBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- cryptoKey_ = value;
- onChanged();
- } else {
- cryptoKeyBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * The key used by the hash function. - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public Builder setCryptoKey(
- com.google.privacy.dlp.v2beta1.CryptoKey.Builder builderForValue) {
- if (cryptoKeyBuilder_ == null) {
- cryptoKey_ = builderForValue.build();
- onChanged();
- } else {
- cryptoKeyBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * The key used by the hash function. - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public Builder mergeCryptoKey(com.google.privacy.dlp.v2beta1.CryptoKey value) {
- if (cryptoKeyBuilder_ == null) {
- if (cryptoKey_ != null) {
- cryptoKey_ =
- com.google.privacy.dlp.v2beta1.CryptoKey.newBuilder(cryptoKey_).mergeFrom(value).buildPartial();
- } else {
- cryptoKey_ = value;
- }
- onChanged();
- } else {
- cryptoKeyBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * The key used by the hash function. - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public Builder clearCryptoKey() {
- if (cryptoKeyBuilder_ == null) {
- cryptoKey_ = null;
- onChanged();
- } else {
- cryptoKey_ = null;
- cryptoKeyBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * The key used by the hash function. - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public com.google.privacy.dlp.v2beta1.CryptoKey.Builder getCryptoKeyBuilder() {
-
- onChanged();
- return getCryptoKeyFieldBuilder().getBuilder();
- }
- /**
- * - * The key used by the hash function. - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public com.google.privacy.dlp.v2beta1.CryptoKeyOrBuilder getCryptoKeyOrBuilder() {
- if (cryptoKeyBuilder_ != null) {
- return cryptoKeyBuilder_.getMessageOrBuilder();
- } else {
- return cryptoKey_ == null ?
- com.google.privacy.dlp.v2beta1.CryptoKey.getDefaultInstance() : cryptoKey_;
- }
- }
- /**
- * - * The key used by the hash function. - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.CryptoKey, com.google.privacy.dlp.v2beta1.CryptoKey.Builder, com.google.privacy.dlp.v2beta1.CryptoKeyOrBuilder>
- getCryptoKeyFieldBuilder() {
- if (cryptoKeyBuilder_ == null) {
- cryptoKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.CryptoKey, com.google.privacy.dlp.v2beta1.CryptoKey.Builder, com.google.privacy.dlp.v2beta1.CryptoKeyOrBuilder>(
- getCryptoKey(),
- getParentForChildren(),
- isClean());
- cryptoKey_ = null;
- }
- return cryptoKeyBuilder_;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.CryptoHashConfig)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.CryptoHashConfig)
- private static final com.google.privacy.dlp.v2beta1.CryptoHashConfig DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.CryptoHashConfig();
- }
-
- public static com.google.privacy.dlp.v2beta1.CryptoHashConfig getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * The key used by the hash function. - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- boolean hasCryptoKey();
- /**
- * - * The key used by the hash function. - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- com.google.privacy.dlp.v2beta1.CryptoKey getCryptoKey();
- /**
- * - * The key used by the hash function. - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- com.google.privacy.dlp.v2beta1.CryptoKeyOrBuilder getCryptoKeyOrBuilder();
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CryptoKey.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CryptoKey.java
deleted file mode 100644
index 5b42dfdfb54f..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CryptoKey.java
+++ /dev/null
@@ -1,1085 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/dlp.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-/**
- * - * This is a data encryption key (DEK) (as opposed to - * a key encryption key (KEK) stored by KMS). - * When using KMS to wrap/unwrap DEKs, be sure to set an appropriate - * IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot - * unwrap the data crypto key. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CryptoKey} - */ -public final class CryptoKey extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.CryptoKey) - CryptoKeyOrBuilder { -private static final long serialVersionUID = 0L; - // Use CryptoKey.newBuilder() to construct. - private CryptoKey(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private CryptoKey() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CryptoKey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.privacy.dlp.v2beta1.TransientCryptoKey.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.privacy.dlp.v2beta1.TransientCryptoKey) source_).toBuilder(); - } - source_ = - input.readMessage(com.google.privacy.dlp.v2beta1.TransientCryptoKey.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.privacy.dlp.v2beta1.TransientCryptoKey) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 1; - break; - } - case 18: { - com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = ((com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey) source_).toBuilder(); - } - source_ = - input.readMessage(com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 2; - break; - } - case 26: { - com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey.Builder subBuilder = null; - if (sourceCase_ == 3) { - subBuilder = ((com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey) source_).toBuilder(); - } - source_ = - input.readMessage(com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 3; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_CryptoKey_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_CryptoKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.CryptoKey.class, com.google.privacy.dlp.v2beta1.CryptoKey.Builder.class); - } - - private int sourceCase_ = 0; - private java.lang.Object source_; - public enum SourceCase - implements com.google.protobuf.Internal.EnumLite { - TRANSIENT(1), - UNWRAPPED(2), - KMS_WRAPPED(3), - SOURCE_NOT_SET(0); - private final int value; - private SourceCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SourceCase valueOf(int value) { - return forNumber(value); - } - - public static SourceCase forNumber(int value) { - switch (value) { - case 1: return TRANSIENT; - case 2: return UNWRAPPED; - case 3: return KMS_WRAPPED; - case 0: return SOURCE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); - } - - public static final int TRANSIENT_FIELD_NUMBER = 1; - /** - *
.google.privacy.dlp.v2beta1.TransientCryptoKey transient = 1;
- */
- public boolean hasTransient() {
- return sourceCase_ == 1;
- }
- /**
- * .google.privacy.dlp.v2beta1.TransientCryptoKey transient = 1;
- */
- public com.google.privacy.dlp.v2beta1.TransientCryptoKey getTransient() {
- if (sourceCase_ == 1) {
- return (com.google.privacy.dlp.v2beta1.TransientCryptoKey) source_;
- }
- return com.google.privacy.dlp.v2beta1.TransientCryptoKey.getDefaultInstance();
- }
- /**
- * .google.privacy.dlp.v2beta1.TransientCryptoKey transient = 1;
- */
- public com.google.privacy.dlp.v2beta1.TransientCryptoKeyOrBuilder getTransientOrBuilder() {
- if (sourceCase_ == 1) {
- return (com.google.privacy.dlp.v2beta1.TransientCryptoKey) source_;
- }
- return com.google.privacy.dlp.v2beta1.TransientCryptoKey.getDefaultInstance();
- }
-
- public static final int UNWRAPPED_FIELD_NUMBER = 2;
- /**
- * .google.privacy.dlp.v2beta1.UnwrappedCryptoKey unwrapped = 2;
- */
- public boolean hasUnwrapped() {
- return sourceCase_ == 2;
- }
- /**
- * .google.privacy.dlp.v2beta1.UnwrappedCryptoKey unwrapped = 2;
- */
- public com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey getUnwrapped() {
- if (sourceCase_ == 2) {
- return (com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey) source_;
- }
- return com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey.getDefaultInstance();
- }
- /**
- * .google.privacy.dlp.v2beta1.UnwrappedCryptoKey unwrapped = 2;
- */
- public com.google.privacy.dlp.v2beta1.UnwrappedCryptoKeyOrBuilder getUnwrappedOrBuilder() {
- if (sourceCase_ == 2) {
- return (com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey) source_;
- }
- return com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey.getDefaultInstance();
- }
-
- public static final int KMS_WRAPPED_FIELD_NUMBER = 3;
- /**
- * .google.privacy.dlp.v2beta1.KmsWrappedCryptoKey kms_wrapped = 3;
- */
- public boolean hasKmsWrapped() {
- return sourceCase_ == 3;
- }
- /**
- * .google.privacy.dlp.v2beta1.KmsWrappedCryptoKey kms_wrapped = 3;
- */
- public com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey getKmsWrapped() {
- if (sourceCase_ == 3) {
- return (com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey) source_;
- }
- return com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey.getDefaultInstance();
- }
- /**
- * .google.privacy.dlp.v2beta1.KmsWrappedCryptoKey kms_wrapped = 3;
- */
- public com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKeyOrBuilder getKmsWrappedOrBuilder() {
- if (sourceCase_ == 3) {
- return (com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey) source_;
- }
- return com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey.getDefaultInstance();
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (sourceCase_ == 1) {
- output.writeMessage(1, (com.google.privacy.dlp.v2beta1.TransientCryptoKey) source_);
- }
- if (sourceCase_ == 2) {
- output.writeMessage(2, (com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey) source_);
- }
- if (sourceCase_ == 3) {
- output.writeMessage(3, (com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey) source_);
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (sourceCase_ == 1) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, (com.google.privacy.dlp.v2beta1.TransientCryptoKey) source_);
- }
- if (sourceCase_ == 2) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, (com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey) source_);
- }
- if (sourceCase_ == 3) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, (com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey) source_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.CryptoKey)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.CryptoKey other = (com.google.privacy.dlp.v2beta1.CryptoKey) obj;
-
- boolean result = true;
- result = result && getSourceCase().equals(
- other.getSourceCase());
- if (!result) return false;
- switch (sourceCase_) {
- case 1:
- result = result && getTransient()
- .equals(other.getTransient());
- break;
- case 2:
- result = result && getUnwrapped()
- .equals(other.getUnwrapped());
- break;
- case 3:
- result = result && getKmsWrapped()
- .equals(other.getKmsWrapped());
- break;
- case 0:
- default:
- }
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- switch (sourceCase_) {
- case 1:
- hash = (37 * hash) + TRANSIENT_FIELD_NUMBER;
- hash = (53 * hash) + getTransient().hashCode();
- break;
- case 2:
- hash = (37 * hash) + UNWRAPPED_FIELD_NUMBER;
- hash = (53 * hash) + getUnwrapped().hashCode();
- break;
- case 3:
- hash = (37 * hash) + KMS_WRAPPED_FIELD_NUMBER;
- hash = (53 * hash) + getKmsWrapped().hashCode();
- break;
- case 0:
- default:
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.CryptoKey parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoKey parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoKey parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoKey parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoKey parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoKey parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoKey parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoKey parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoKey parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoKey parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoKey parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoKey parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.CryptoKey prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * This is a data encryption key (DEK) (as opposed to - * a key encryption key (KEK) stored by KMS). - * When using KMS to wrap/unwrap DEKs, be sure to set an appropriate - * IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot - * unwrap the data crypto key. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CryptoKey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
.google.privacy.dlp.v2beta1.TransientCryptoKey transient = 1;
- */
- public boolean hasTransient() {
- return sourceCase_ == 1;
- }
- /**
- * .google.privacy.dlp.v2beta1.TransientCryptoKey transient = 1;
- */
- public com.google.privacy.dlp.v2beta1.TransientCryptoKey getTransient() {
- if (transientBuilder_ == null) {
- if (sourceCase_ == 1) {
- return (com.google.privacy.dlp.v2beta1.TransientCryptoKey) source_;
- }
- return com.google.privacy.dlp.v2beta1.TransientCryptoKey.getDefaultInstance();
- } else {
- if (sourceCase_ == 1) {
- return transientBuilder_.getMessage();
- }
- return com.google.privacy.dlp.v2beta1.TransientCryptoKey.getDefaultInstance();
- }
- }
- /**
- * .google.privacy.dlp.v2beta1.TransientCryptoKey transient = 1;
- */
- public Builder setTransient(com.google.privacy.dlp.v2beta1.TransientCryptoKey value) {
- if (transientBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- source_ = value;
- onChanged();
- } else {
- transientBuilder_.setMessage(value);
- }
- sourceCase_ = 1;
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.TransientCryptoKey transient = 1;
- */
- public Builder setTransient(
- com.google.privacy.dlp.v2beta1.TransientCryptoKey.Builder builderForValue) {
- if (transientBuilder_ == null) {
- source_ = builderForValue.build();
- onChanged();
- } else {
- transientBuilder_.setMessage(builderForValue.build());
- }
- sourceCase_ = 1;
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.TransientCryptoKey transient = 1;
- */
- public Builder mergeTransient(com.google.privacy.dlp.v2beta1.TransientCryptoKey value) {
- if (transientBuilder_ == null) {
- if (sourceCase_ == 1 &&
- source_ != com.google.privacy.dlp.v2beta1.TransientCryptoKey.getDefaultInstance()) {
- source_ = com.google.privacy.dlp.v2beta1.TransientCryptoKey.newBuilder((com.google.privacy.dlp.v2beta1.TransientCryptoKey) source_)
- .mergeFrom(value).buildPartial();
- } else {
- source_ = value;
- }
- onChanged();
- } else {
- if (sourceCase_ == 1) {
- transientBuilder_.mergeFrom(value);
- }
- transientBuilder_.setMessage(value);
- }
- sourceCase_ = 1;
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.TransientCryptoKey transient = 1;
- */
- public Builder clearTransient() {
- if (transientBuilder_ == null) {
- if (sourceCase_ == 1) {
- sourceCase_ = 0;
- source_ = null;
- onChanged();
- }
- } else {
- if (sourceCase_ == 1) {
- sourceCase_ = 0;
- source_ = null;
- }
- transientBuilder_.clear();
- }
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.TransientCryptoKey transient = 1;
- */
- public com.google.privacy.dlp.v2beta1.TransientCryptoKey.Builder getTransientBuilder() {
- return getTransientFieldBuilder().getBuilder();
- }
- /**
- * .google.privacy.dlp.v2beta1.TransientCryptoKey transient = 1;
- */
- public com.google.privacy.dlp.v2beta1.TransientCryptoKeyOrBuilder getTransientOrBuilder() {
- if ((sourceCase_ == 1) && (transientBuilder_ != null)) {
- return transientBuilder_.getMessageOrBuilder();
- } else {
- if (sourceCase_ == 1) {
- return (com.google.privacy.dlp.v2beta1.TransientCryptoKey) source_;
- }
- return com.google.privacy.dlp.v2beta1.TransientCryptoKey.getDefaultInstance();
- }
- }
- /**
- * .google.privacy.dlp.v2beta1.TransientCryptoKey transient = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.TransientCryptoKey, com.google.privacy.dlp.v2beta1.TransientCryptoKey.Builder, com.google.privacy.dlp.v2beta1.TransientCryptoKeyOrBuilder>
- getTransientFieldBuilder() {
- if (transientBuilder_ == null) {
- if (!(sourceCase_ == 1)) {
- source_ = com.google.privacy.dlp.v2beta1.TransientCryptoKey.getDefaultInstance();
- }
- transientBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.TransientCryptoKey, com.google.privacy.dlp.v2beta1.TransientCryptoKey.Builder, com.google.privacy.dlp.v2beta1.TransientCryptoKeyOrBuilder>(
- (com.google.privacy.dlp.v2beta1.TransientCryptoKey) source_,
- getParentForChildren(),
- isClean());
- source_ = null;
- }
- sourceCase_ = 1;
- onChanged();;
- return transientBuilder_;
- }
-
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey, com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey.Builder, com.google.privacy.dlp.v2beta1.UnwrappedCryptoKeyOrBuilder> unwrappedBuilder_;
- /**
- * .google.privacy.dlp.v2beta1.UnwrappedCryptoKey unwrapped = 2;
- */
- public boolean hasUnwrapped() {
- return sourceCase_ == 2;
- }
- /**
- * .google.privacy.dlp.v2beta1.UnwrappedCryptoKey unwrapped = 2;
- */
- public com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey getUnwrapped() {
- if (unwrappedBuilder_ == null) {
- if (sourceCase_ == 2) {
- return (com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey) source_;
- }
- return com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey.getDefaultInstance();
- } else {
- if (sourceCase_ == 2) {
- return unwrappedBuilder_.getMessage();
- }
- return com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey.getDefaultInstance();
- }
- }
- /**
- * .google.privacy.dlp.v2beta1.UnwrappedCryptoKey unwrapped = 2;
- */
- public Builder setUnwrapped(com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey value) {
- if (unwrappedBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- source_ = value;
- onChanged();
- } else {
- unwrappedBuilder_.setMessage(value);
- }
- sourceCase_ = 2;
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.UnwrappedCryptoKey unwrapped = 2;
- */
- public Builder setUnwrapped(
- com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey.Builder builderForValue) {
- if (unwrappedBuilder_ == null) {
- source_ = builderForValue.build();
- onChanged();
- } else {
- unwrappedBuilder_.setMessage(builderForValue.build());
- }
- sourceCase_ = 2;
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.UnwrappedCryptoKey unwrapped = 2;
- */
- public Builder mergeUnwrapped(com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey value) {
- if (unwrappedBuilder_ == null) {
- if (sourceCase_ == 2 &&
- source_ != com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey.getDefaultInstance()) {
- source_ = com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey.newBuilder((com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey) source_)
- .mergeFrom(value).buildPartial();
- } else {
- source_ = value;
- }
- onChanged();
- } else {
- if (sourceCase_ == 2) {
- unwrappedBuilder_.mergeFrom(value);
- }
- unwrappedBuilder_.setMessage(value);
- }
- sourceCase_ = 2;
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.UnwrappedCryptoKey unwrapped = 2;
- */
- public Builder clearUnwrapped() {
- if (unwrappedBuilder_ == null) {
- if (sourceCase_ == 2) {
- sourceCase_ = 0;
- source_ = null;
- onChanged();
- }
- } else {
- if (sourceCase_ == 2) {
- sourceCase_ = 0;
- source_ = null;
- }
- unwrappedBuilder_.clear();
- }
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.UnwrappedCryptoKey unwrapped = 2;
- */
- public com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey.Builder getUnwrappedBuilder() {
- return getUnwrappedFieldBuilder().getBuilder();
- }
- /**
- * .google.privacy.dlp.v2beta1.UnwrappedCryptoKey unwrapped = 2;
- */
- public com.google.privacy.dlp.v2beta1.UnwrappedCryptoKeyOrBuilder getUnwrappedOrBuilder() {
- if ((sourceCase_ == 2) && (unwrappedBuilder_ != null)) {
- return unwrappedBuilder_.getMessageOrBuilder();
- } else {
- if (sourceCase_ == 2) {
- return (com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey) source_;
- }
- return com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey.getDefaultInstance();
- }
- }
- /**
- * .google.privacy.dlp.v2beta1.UnwrappedCryptoKey unwrapped = 2;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey, com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey.Builder, com.google.privacy.dlp.v2beta1.UnwrappedCryptoKeyOrBuilder>
- getUnwrappedFieldBuilder() {
- if (unwrappedBuilder_ == null) {
- if (!(sourceCase_ == 2)) {
- source_ = com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey.getDefaultInstance();
- }
- unwrappedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey, com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey.Builder, com.google.privacy.dlp.v2beta1.UnwrappedCryptoKeyOrBuilder>(
- (com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey) source_,
- getParentForChildren(),
- isClean());
- source_ = null;
- }
- sourceCase_ = 2;
- onChanged();;
- return unwrappedBuilder_;
- }
-
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey, com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey.Builder, com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKeyOrBuilder> kmsWrappedBuilder_;
- /**
- * .google.privacy.dlp.v2beta1.KmsWrappedCryptoKey kms_wrapped = 3;
- */
- public boolean hasKmsWrapped() {
- return sourceCase_ == 3;
- }
- /**
- * .google.privacy.dlp.v2beta1.KmsWrappedCryptoKey kms_wrapped = 3;
- */
- public com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey getKmsWrapped() {
- if (kmsWrappedBuilder_ == null) {
- if (sourceCase_ == 3) {
- return (com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey) source_;
- }
- return com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey.getDefaultInstance();
- } else {
- if (sourceCase_ == 3) {
- return kmsWrappedBuilder_.getMessage();
- }
- return com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey.getDefaultInstance();
- }
- }
- /**
- * .google.privacy.dlp.v2beta1.KmsWrappedCryptoKey kms_wrapped = 3;
- */
- public Builder setKmsWrapped(com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey value) {
- if (kmsWrappedBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- source_ = value;
- onChanged();
- } else {
- kmsWrappedBuilder_.setMessage(value);
- }
- sourceCase_ = 3;
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.KmsWrappedCryptoKey kms_wrapped = 3;
- */
- public Builder setKmsWrapped(
- com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey.Builder builderForValue) {
- if (kmsWrappedBuilder_ == null) {
- source_ = builderForValue.build();
- onChanged();
- } else {
- kmsWrappedBuilder_.setMessage(builderForValue.build());
- }
- sourceCase_ = 3;
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.KmsWrappedCryptoKey kms_wrapped = 3;
- */
- public Builder mergeKmsWrapped(com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey value) {
- if (kmsWrappedBuilder_ == null) {
- if (sourceCase_ == 3 &&
- source_ != com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey.getDefaultInstance()) {
- source_ = com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey.newBuilder((com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey) source_)
- .mergeFrom(value).buildPartial();
- } else {
- source_ = value;
- }
- onChanged();
- } else {
- if (sourceCase_ == 3) {
- kmsWrappedBuilder_.mergeFrom(value);
- }
- kmsWrappedBuilder_.setMessage(value);
- }
- sourceCase_ = 3;
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.KmsWrappedCryptoKey kms_wrapped = 3;
- */
- public Builder clearKmsWrapped() {
- if (kmsWrappedBuilder_ == null) {
- if (sourceCase_ == 3) {
- sourceCase_ = 0;
- source_ = null;
- onChanged();
- }
- } else {
- if (sourceCase_ == 3) {
- sourceCase_ = 0;
- source_ = null;
- }
- kmsWrappedBuilder_.clear();
- }
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.KmsWrappedCryptoKey kms_wrapped = 3;
- */
- public com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey.Builder getKmsWrappedBuilder() {
- return getKmsWrappedFieldBuilder().getBuilder();
- }
- /**
- * .google.privacy.dlp.v2beta1.KmsWrappedCryptoKey kms_wrapped = 3;
- */
- public com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKeyOrBuilder getKmsWrappedOrBuilder() {
- if ((sourceCase_ == 3) && (kmsWrappedBuilder_ != null)) {
- return kmsWrappedBuilder_.getMessageOrBuilder();
- } else {
- if (sourceCase_ == 3) {
- return (com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey) source_;
- }
- return com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey.getDefaultInstance();
- }
- }
- /**
- * .google.privacy.dlp.v2beta1.KmsWrappedCryptoKey kms_wrapped = 3;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey, com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey.Builder, com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKeyOrBuilder>
- getKmsWrappedFieldBuilder() {
- if (kmsWrappedBuilder_ == null) {
- if (!(sourceCase_ == 3)) {
- source_ = com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey.getDefaultInstance();
- }
- kmsWrappedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey, com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey.Builder, com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKeyOrBuilder>(
- (com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey) source_,
- getParentForChildren(),
- isClean());
- source_ = null;
- }
- sourceCase_ = 3;
- onChanged();;
- return kmsWrappedBuilder_;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.CryptoKey)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.CryptoKey)
- private static final com.google.privacy.dlp.v2beta1.CryptoKey DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.CryptoKey();
- }
-
- public static com.google.privacy.dlp.v2beta1.CryptoKey getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser.google.privacy.dlp.v2beta1.TransientCryptoKey transient = 1;
- */
- boolean hasTransient();
- /**
- * .google.privacy.dlp.v2beta1.TransientCryptoKey transient = 1;
- */
- com.google.privacy.dlp.v2beta1.TransientCryptoKey getTransient();
- /**
- * .google.privacy.dlp.v2beta1.TransientCryptoKey transient = 1;
- */
- com.google.privacy.dlp.v2beta1.TransientCryptoKeyOrBuilder getTransientOrBuilder();
-
- /**
- * .google.privacy.dlp.v2beta1.UnwrappedCryptoKey unwrapped = 2;
- */
- boolean hasUnwrapped();
- /**
- * .google.privacy.dlp.v2beta1.UnwrappedCryptoKey unwrapped = 2;
- */
- com.google.privacy.dlp.v2beta1.UnwrappedCryptoKey getUnwrapped();
- /**
- * .google.privacy.dlp.v2beta1.UnwrappedCryptoKey unwrapped = 2;
- */
- com.google.privacy.dlp.v2beta1.UnwrappedCryptoKeyOrBuilder getUnwrappedOrBuilder();
-
- /**
- * .google.privacy.dlp.v2beta1.KmsWrappedCryptoKey kms_wrapped = 3;
- */
- boolean hasKmsWrapped();
- /**
- * .google.privacy.dlp.v2beta1.KmsWrappedCryptoKey kms_wrapped = 3;
- */
- com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKey getKmsWrapped();
- /**
- * .google.privacy.dlp.v2beta1.KmsWrappedCryptoKey kms_wrapped = 3;
- */
- com.google.privacy.dlp.v2beta1.KmsWrappedCryptoKeyOrBuilder getKmsWrappedOrBuilder();
-
- public com.google.privacy.dlp.v2beta1.CryptoKey.SourceCase getSourceCase();
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CryptoReplaceFfxFpeConfig.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CryptoReplaceFfxFpeConfig.java
deleted file mode 100644
index f788c39a27d1..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CryptoReplaceFfxFpeConfig.java
+++ /dev/null
@@ -1,1731 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/dlp.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-/**
- * - * Replaces an identifier with a surrogate using FPE with the FFX - * mode of operation. - * The identifier must be representable by the US-ASCII character set. - * For a given crypto key and context, the same identifier will be - * replaced with the same surrogate. - * Identifiers must be at least two characters long. - * In the case that the identifier is the empty string, it will be skipped. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig} - */ -public final class CryptoReplaceFfxFpeConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig) - CryptoReplaceFfxFpeConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use CryptoReplaceFfxFpeConfig.newBuilder() to construct. - private CryptoReplaceFfxFpeConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private CryptoReplaceFfxFpeConfig() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CryptoReplaceFfxFpeConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.privacy.dlp.v2beta1.CryptoKey.Builder subBuilder = null; - if (cryptoKey_ != null) { - subBuilder = cryptoKey_.toBuilder(); - } - cryptoKey_ = input.readMessage(com.google.privacy.dlp.v2beta1.CryptoKey.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cryptoKey_); - cryptoKey_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.privacy.dlp.v2beta1.FieldId.Builder subBuilder = null; - if (context_ != null) { - subBuilder = context_.toBuilder(); - } - context_ = input.readMessage(com.google.privacy.dlp.v2beta1.FieldId.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(context_); - context_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - int rawValue = input.readEnum(); - alphabetCase_ = 4; - alphabet_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - alphabetCase_ = 5; - alphabet_ = s; - break; - } - case 48: { - alphabetCase_ = 6; - alphabet_ = input.readInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_CryptoReplaceFfxFpeConfig_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpProto.internal_static_google_privacy_dlp_v2beta1_CryptoReplaceFfxFpeConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.class, com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.Builder.class); - } - - /** - *
- * These are commonly used subsets of the alphabet that the FFX mode - * natively supports. In the algorithm, the alphabet is selected using - * the "radix". Therefore each corresponds to particular radix. - *- * - * Protobuf enum {@code google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet} - */ - public enum FfxCommonNativeAlphabet - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED = 0;
- */
- FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED(0),
- /**
- * - * [0-9] (radix of 10) - *- * - *
NUMERIC = 1;
- */
- NUMERIC(1),
- /**
- * - * [0-9A-F] (radix of 16) - *- * - *
HEXADECIMAL = 2;
- */
- HEXADECIMAL(2),
- /**
- * - * [0-9A-Z] (radix of 36) - *- * - *
UPPER_CASE_ALPHA_NUMERIC = 3;
- */
- UPPER_CASE_ALPHA_NUMERIC(3),
- /**
- * - * [0-9A-Za-z] (radix of 62) - *- * - *
ALPHA_NUMERIC = 4;
- */
- ALPHA_NUMERIC(4),
- UNRECOGNIZED(-1),
- ;
-
- /**
- * FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED = 0;
- */
- public static final int FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED_VALUE = 0;
- /**
- * - * [0-9] (radix of 10) - *- * - *
NUMERIC = 1;
- */
- public static final int NUMERIC_VALUE = 1;
- /**
- * - * [0-9A-F] (radix of 16) - *- * - *
HEXADECIMAL = 2;
- */
- public static final int HEXADECIMAL_VALUE = 2;
- /**
- * - * [0-9A-Z] (radix of 36) - *- * - *
UPPER_CASE_ALPHA_NUMERIC = 3;
- */
- public static final int UPPER_CASE_ALPHA_NUMERIC_VALUE = 3;
- /**
- * - * [0-9A-Za-z] (radix of 62) - *- * - *
ALPHA_NUMERIC = 4;
- */
- public static final int ALPHA_NUMERIC_VALUE = 4;
-
-
- public final int getNumber() {
- if (this == UNRECOGNIZED) {
- throw new java.lang.IllegalArgumentException(
- "Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
- /**
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static FfxCommonNativeAlphabet valueOf(int value) {
- return forNumber(value);
- }
-
- public static FfxCommonNativeAlphabet forNumber(int value) {
- switch (value) {
- case 0: return FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED;
- case 1: return NUMERIC;
- case 2: return HEXADECIMAL;
- case 3: return UPPER_CASE_ALPHA_NUMERIC;
- case 4: return ALPHA_NUMERIC;
- default: return null;
- }
- }
-
- public static com.google.protobuf.Internal.EnumLiteMap- * The key used by the encryption algorithm. [required] - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public boolean hasCryptoKey() {
- return cryptoKey_ != null;
- }
- /**
- * - * The key used by the encryption algorithm. [required] - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public com.google.privacy.dlp.v2beta1.CryptoKey getCryptoKey() {
- return cryptoKey_ == null ? com.google.privacy.dlp.v2beta1.CryptoKey.getDefaultInstance() : cryptoKey_;
- }
- /**
- * - * The key used by the encryption algorithm. [required] - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public com.google.privacy.dlp.v2beta1.CryptoKeyOrBuilder getCryptoKeyOrBuilder() {
- return getCryptoKey();
- }
-
- public static final int CONTEXT_FIELD_NUMBER = 2;
- private com.google.privacy.dlp.v2beta1.FieldId context_;
- /**
- * - * A context may be used for higher security since the same - * identifier in two different contexts likely will be given a distinct - * surrogate. The principle is that the likeliness is inversely related - * to the ratio of the number of distinct identifiers per context over the - * number of possible surrogates: As long as this ratio is small, the - * likehood is large. - * If the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and non-structured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * This is also known as the 'tweak', as in tweakable encryption. - *- * - *
.google.privacy.dlp.v2beta1.FieldId context = 2;
- */
- public boolean hasContext() {
- return context_ != null;
- }
- /**
- * - * A context may be used for higher security since the same - * identifier in two different contexts likely will be given a distinct - * surrogate. The principle is that the likeliness is inversely related - * to the ratio of the number of distinct identifiers per context over the - * number of possible surrogates: As long as this ratio is small, the - * likehood is large. - * If the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and non-structured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * This is also known as the 'tweak', as in tweakable encryption. - *- * - *
.google.privacy.dlp.v2beta1.FieldId context = 2;
- */
- public com.google.privacy.dlp.v2beta1.FieldId getContext() {
- return context_ == null ? com.google.privacy.dlp.v2beta1.FieldId.getDefaultInstance() : context_;
- }
- /**
- * - * A context may be used for higher security since the same - * identifier in two different contexts likely will be given a distinct - * surrogate. The principle is that the likeliness is inversely related - * to the ratio of the number of distinct identifiers per context over the - * number of possible surrogates: As long as this ratio is small, the - * likehood is large. - * If the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and non-structured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * This is also known as the 'tweak', as in tweakable encryption. - *- * - *
.google.privacy.dlp.v2beta1.FieldId context = 2;
- */
- public com.google.privacy.dlp.v2beta1.FieldIdOrBuilder getContextOrBuilder() {
- return getContext();
- }
-
- public static final int COMMON_ALPHABET_FIELD_NUMBER = 4;
- /**
- * .google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet common_alphabet = 4;
- */
- public int getCommonAlphabetValue() {
- if (alphabetCase_ == 4) {
- return (java.lang.Integer) alphabet_;
- }
- return 0;
- }
- /**
- * .google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet common_alphabet = 4;
- */
- public com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet getCommonAlphabet() {
- if (alphabetCase_ == 4) {
- com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet result = com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet.valueOf(
- (java.lang.Integer) alphabet_);
- return result == null ? com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet.UNRECOGNIZED : result;
- }
- return com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet.FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED;
- }
-
- public static final int CUSTOM_ALPHABET_FIELD_NUMBER = 5;
- /**
- * - * This is supported by mapping these to the alphanumeric characters - * that the FFX mode natively supports. This happens before/after - * encryption/decryption. - * Each character listed must appear only once. - * Number of characters must be in the range [2, 62]. - * This must be encoded as ASCII. - * The order of characters does not matter. - *- * - *
string custom_alphabet = 5;
- */
- public java.lang.String getCustomAlphabet() {
- java.lang.Object ref = "";
- if (alphabetCase_ == 5) {
- ref = alphabet_;
- }
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (alphabetCase_ == 5) {
- alphabet_ = s;
- }
- return s;
- }
- }
- /**
- * - * This is supported by mapping these to the alphanumeric characters - * that the FFX mode natively supports. This happens before/after - * encryption/decryption. - * Each character listed must appear only once. - * Number of characters must be in the range [2, 62]. - * This must be encoded as ASCII. - * The order of characters does not matter. - *- * - *
string custom_alphabet = 5;
- */
- public com.google.protobuf.ByteString
- getCustomAlphabetBytes() {
- java.lang.Object ref = "";
- if (alphabetCase_ == 5) {
- ref = alphabet_;
- }
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- if (alphabetCase_ == 5) {
- alphabet_ = b;
- }
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int RADIX_FIELD_NUMBER = 6;
- /**
- * - * The native way to select the alphabet. Must be in the range [2, 62]. - *- * - *
int32 radix = 6;
- */
- public int getRadix() {
- if (alphabetCase_ == 6) {
- return (java.lang.Integer) alphabet_;
- }
- return 0;
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (cryptoKey_ != null) {
- output.writeMessage(1, getCryptoKey());
- }
- if (context_ != null) {
- output.writeMessage(2, getContext());
- }
- if (alphabetCase_ == 4) {
- output.writeEnum(4, ((java.lang.Integer) alphabet_));
- }
- if (alphabetCase_ == 5) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 5, alphabet_);
- }
- if (alphabetCase_ == 6) {
- output.writeInt32(
- 6, (int)((java.lang.Integer) alphabet_));
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (cryptoKey_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getCryptoKey());
- }
- if (context_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, getContext());
- }
- if (alphabetCase_ == 4) {
- size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(4, ((java.lang.Integer) alphabet_));
- }
- if (alphabetCase_ == 5) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, alphabet_);
- }
- if (alphabetCase_ == 6) {
- size += com.google.protobuf.CodedOutputStream
- .computeInt32Size(
- 6, (int)((java.lang.Integer) alphabet_));
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig other = (com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig) obj;
-
- boolean result = true;
- result = result && (hasCryptoKey() == other.hasCryptoKey());
- if (hasCryptoKey()) {
- result = result && getCryptoKey()
- .equals(other.getCryptoKey());
- }
- result = result && (hasContext() == other.hasContext());
- if (hasContext()) {
- result = result && getContext()
- .equals(other.getContext());
- }
- result = result && getAlphabetCase().equals(
- other.getAlphabetCase());
- if (!result) return false;
- switch (alphabetCase_) {
- case 4:
- result = result && getCommonAlphabetValue()
- == other.getCommonAlphabetValue();
- break;
- case 5:
- result = result && getCustomAlphabet()
- .equals(other.getCustomAlphabet());
- break;
- case 6:
- result = result && (getRadix()
- == other.getRadix());
- break;
- case 0:
- default:
- }
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasCryptoKey()) {
- hash = (37 * hash) + CRYPTO_KEY_FIELD_NUMBER;
- hash = (53 * hash) + getCryptoKey().hashCode();
- }
- if (hasContext()) {
- hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
- hash = (53 * hash) + getContext().hashCode();
- }
- switch (alphabetCase_) {
- case 4:
- hash = (37 * hash) + COMMON_ALPHABET_FIELD_NUMBER;
- hash = (53 * hash) + getCommonAlphabetValue();
- break;
- case 5:
- hash = (37 * hash) + CUSTOM_ALPHABET_FIELD_NUMBER;
- hash = (53 * hash) + getCustomAlphabet().hashCode();
- break;
- case 6:
- hash = (37 * hash) + RADIX_FIELD_NUMBER;
- hash = (53 * hash) + getRadix();
- break;
- case 0:
- default:
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Replaces an identifier with a surrogate using FPE with the FFX - * mode of operation. - * The identifier must be representable by the US-ASCII character set. - * For a given crypto key and context, the same identifier will be - * replaced with the same surrogate. - * Identifiers must be at least two characters long. - * In the case that the identifier is the empty string, it will be skipped. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * The key used by the encryption algorithm. [required] - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public boolean hasCryptoKey() {
- return cryptoKeyBuilder_ != null || cryptoKey_ != null;
- }
- /**
- * - * The key used by the encryption algorithm. [required] - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public com.google.privacy.dlp.v2beta1.CryptoKey getCryptoKey() {
- if (cryptoKeyBuilder_ == null) {
- return cryptoKey_ == null ? com.google.privacy.dlp.v2beta1.CryptoKey.getDefaultInstance() : cryptoKey_;
- } else {
- return cryptoKeyBuilder_.getMessage();
- }
- }
- /**
- * - * The key used by the encryption algorithm. [required] - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public Builder setCryptoKey(com.google.privacy.dlp.v2beta1.CryptoKey value) {
- if (cryptoKeyBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- cryptoKey_ = value;
- onChanged();
- } else {
- cryptoKeyBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * The key used by the encryption algorithm. [required] - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public Builder setCryptoKey(
- com.google.privacy.dlp.v2beta1.CryptoKey.Builder builderForValue) {
- if (cryptoKeyBuilder_ == null) {
- cryptoKey_ = builderForValue.build();
- onChanged();
- } else {
- cryptoKeyBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * The key used by the encryption algorithm. [required] - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public Builder mergeCryptoKey(com.google.privacy.dlp.v2beta1.CryptoKey value) {
- if (cryptoKeyBuilder_ == null) {
- if (cryptoKey_ != null) {
- cryptoKey_ =
- com.google.privacy.dlp.v2beta1.CryptoKey.newBuilder(cryptoKey_).mergeFrom(value).buildPartial();
- } else {
- cryptoKey_ = value;
- }
- onChanged();
- } else {
- cryptoKeyBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * The key used by the encryption algorithm. [required] - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public Builder clearCryptoKey() {
- if (cryptoKeyBuilder_ == null) {
- cryptoKey_ = null;
- onChanged();
- } else {
- cryptoKey_ = null;
- cryptoKeyBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * The key used by the encryption algorithm. [required] - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public com.google.privacy.dlp.v2beta1.CryptoKey.Builder getCryptoKeyBuilder() {
-
- onChanged();
- return getCryptoKeyFieldBuilder().getBuilder();
- }
- /**
- * - * The key used by the encryption algorithm. [required] - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- public com.google.privacy.dlp.v2beta1.CryptoKeyOrBuilder getCryptoKeyOrBuilder() {
- if (cryptoKeyBuilder_ != null) {
- return cryptoKeyBuilder_.getMessageOrBuilder();
- } else {
- return cryptoKey_ == null ?
- com.google.privacy.dlp.v2beta1.CryptoKey.getDefaultInstance() : cryptoKey_;
- }
- }
- /**
- * - * The key used by the encryption algorithm. [required] - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.CryptoKey, com.google.privacy.dlp.v2beta1.CryptoKey.Builder, com.google.privacy.dlp.v2beta1.CryptoKeyOrBuilder>
- getCryptoKeyFieldBuilder() {
- if (cryptoKeyBuilder_ == null) {
- cryptoKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.CryptoKey, com.google.privacy.dlp.v2beta1.CryptoKey.Builder, com.google.privacy.dlp.v2beta1.CryptoKeyOrBuilder>(
- getCryptoKey(),
- getParentForChildren(),
- isClean());
- cryptoKey_ = null;
- }
- return cryptoKeyBuilder_;
- }
-
- private com.google.privacy.dlp.v2beta1.FieldId context_ = null;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.FieldId, com.google.privacy.dlp.v2beta1.FieldId.Builder, com.google.privacy.dlp.v2beta1.FieldIdOrBuilder> contextBuilder_;
- /**
- * - * A context may be used for higher security since the same - * identifier in two different contexts likely will be given a distinct - * surrogate. The principle is that the likeliness is inversely related - * to the ratio of the number of distinct identifiers per context over the - * number of possible surrogates: As long as this ratio is small, the - * likehood is large. - * If the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and non-structured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * This is also known as the 'tweak', as in tweakable encryption. - *- * - *
.google.privacy.dlp.v2beta1.FieldId context = 2;
- */
- public boolean hasContext() {
- return contextBuilder_ != null || context_ != null;
- }
- /**
- * - * A context may be used for higher security since the same - * identifier in two different contexts likely will be given a distinct - * surrogate. The principle is that the likeliness is inversely related - * to the ratio of the number of distinct identifiers per context over the - * number of possible surrogates: As long as this ratio is small, the - * likehood is large. - * If the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and non-structured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * This is also known as the 'tweak', as in tweakable encryption. - *- * - *
.google.privacy.dlp.v2beta1.FieldId context = 2;
- */
- public com.google.privacy.dlp.v2beta1.FieldId getContext() {
- if (contextBuilder_ == null) {
- return context_ == null ? com.google.privacy.dlp.v2beta1.FieldId.getDefaultInstance() : context_;
- } else {
- return contextBuilder_.getMessage();
- }
- }
- /**
- * - * A context may be used for higher security since the same - * identifier in two different contexts likely will be given a distinct - * surrogate. The principle is that the likeliness is inversely related - * to the ratio of the number of distinct identifiers per context over the - * number of possible surrogates: As long as this ratio is small, the - * likehood is large. - * If the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and non-structured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * This is also known as the 'tweak', as in tweakable encryption. - *- * - *
.google.privacy.dlp.v2beta1.FieldId context = 2;
- */
- public Builder setContext(com.google.privacy.dlp.v2beta1.FieldId value) {
- if (contextBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- context_ = value;
- onChanged();
- } else {
- contextBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * A context may be used for higher security since the same - * identifier in two different contexts likely will be given a distinct - * surrogate. The principle is that the likeliness is inversely related - * to the ratio of the number of distinct identifiers per context over the - * number of possible surrogates: As long as this ratio is small, the - * likehood is large. - * If the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and non-structured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * This is also known as the 'tweak', as in tweakable encryption. - *- * - *
.google.privacy.dlp.v2beta1.FieldId context = 2;
- */
- public Builder setContext(
- com.google.privacy.dlp.v2beta1.FieldId.Builder builderForValue) {
- if (contextBuilder_ == null) {
- context_ = builderForValue.build();
- onChanged();
- } else {
- contextBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * A context may be used for higher security since the same - * identifier in two different contexts likely will be given a distinct - * surrogate. The principle is that the likeliness is inversely related - * to the ratio of the number of distinct identifiers per context over the - * number of possible surrogates: As long as this ratio is small, the - * likehood is large. - * If the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and non-structured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * This is also known as the 'tweak', as in tweakable encryption. - *- * - *
.google.privacy.dlp.v2beta1.FieldId context = 2;
- */
- public Builder mergeContext(com.google.privacy.dlp.v2beta1.FieldId value) {
- if (contextBuilder_ == null) {
- if (context_ != null) {
- context_ =
- com.google.privacy.dlp.v2beta1.FieldId.newBuilder(context_).mergeFrom(value).buildPartial();
- } else {
- context_ = value;
- }
- onChanged();
- } else {
- contextBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * A context may be used for higher security since the same - * identifier in two different contexts likely will be given a distinct - * surrogate. The principle is that the likeliness is inversely related - * to the ratio of the number of distinct identifiers per context over the - * number of possible surrogates: As long as this ratio is small, the - * likehood is large. - * If the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and non-structured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * This is also known as the 'tweak', as in tweakable encryption. - *- * - *
.google.privacy.dlp.v2beta1.FieldId context = 2;
- */
- public Builder clearContext() {
- if (contextBuilder_ == null) {
- context_ = null;
- onChanged();
- } else {
- context_ = null;
- contextBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * A context may be used for higher security since the same - * identifier in two different contexts likely will be given a distinct - * surrogate. The principle is that the likeliness is inversely related - * to the ratio of the number of distinct identifiers per context over the - * number of possible surrogates: As long as this ratio is small, the - * likehood is large. - * If the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and non-structured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * This is also known as the 'tweak', as in tweakable encryption. - *- * - *
.google.privacy.dlp.v2beta1.FieldId context = 2;
- */
- public com.google.privacy.dlp.v2beta1.FieldId.Builder getContextBuilder() {
-
- onChanged();
- return getContextFieldBuilder().getBuilder();
- }
- /**
- * - * A context may be used for higher security since the same - * identifier in two different contexts likely will be given a distinct - * surrogate. The principle is that the likeliness is inversely related - * to the ratio of the number of distinct identifiers per context over the - * number of possible surrogates: As long as this ratio is small, the - * likehood is large. - * If the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and non-structured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * This is also known as the 'tweak', as in tweakable encryption. - *- * - *
.google.privacy.dlp.v2beta1.FieldId context = 2;
- */
- public com.google.privacy.dlp.v2beta1.FieldIdOrBuilder getContextOrBuilder() {
- if (contextBuilder_ != null) {
- return contextBuilder_.getMessageOrBuilder();
- } else {
- return context_ == null ?
- com.google.privacy.dlp.v2beta1.FieldId.getDefaultInstance() : context_;
- }
- }
- /**
- * - * A context may be used for higher security since the same - * identifier in two different contexts likely will be given a distinct - * surrogate. The principle is that the likeliness is inversely related - * to the ratio of the number of distinct identifiers per context over the - * number of possible surrogates: As long as this ratio is small, the - * likehood is large. - * If the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and non-structured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * This is also known as the 'tweak', as in tweakable encryption. - *- * - *
.google.privacy.dlp.v2beta1.FieldId context = 2;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.FieldId, com.google.privacy.dlp.v2beta1.FieldId.Builder, com.google.privacy.dlp.v2beta1.FieldIdOrBuilder>
- getContextFieldBuilder() {
- if (contextBuilder_ == null) {
- contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.FieldId, com.google.privacy.dlp.v2beta1.FieldId.Builder, com.google.privacy.dlp.v2beta1.FieldIdOrBuilder>(
- getContext(),
- getParentForChildren(),
- isClean());
- context_ = null;
- }
- return contextBuilder_;
- }
-
- /**
- * .google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet common_alphabet = 4;
- */
- public int getCommonAlphabetValue() {
- if (alphabetCase_ == 4) {
- return ((java.lang.Integer) alphabet_).intValue();
- }
- return 0;
- }
- /**
- * .google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet common_alphabet = 4;
- */
- public Builder setCommonAlphabetValue(int value) {
- alphabetCase_ = 4;
- alphabet_ = value;
- onChanged();
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet common_alphabet = 4;
- */
- public com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet getCommonAlphabet() {
- if (alphabetCase_ == 4) {
- com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet result = com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet.valueOf(
- (java.lang.Integer) alphabet_);
- return result == null ? com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet.UNRECOGNIZED : result;
- }
- return com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet.FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED;
- }
- /**
- * .google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet common_alphabet = 4;
- */
- public Builder setCommonAlphabet(com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet value) {
- if (value == null) {
- throw new NullPointerException();
- }
- alphabetCase_ = 4;
- alphabet_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- * .google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet common_alphabet = 4;
- */
- public Builder clearCommonAlphabet() {
- if (alphabetCase_ == 4) {
- alphabetCase_ = 0;
- alphabet_ = null;
- onChanged();
- }
- return this;
- }
-
- /**
- * - * This is supported by mapping these to the alphanumeric characters - * that the FFX mode natively supports. This happens before/after - * encryption/decryption. - * Each character listed must appear only once. - * Number of characters must be in the range [2, 62]. - * This must be encoded as ASCII. - * The order of characters does not matter. - *- * - *
string custom_alphabet = 5;
- */
- public java.lang.String getCustomAlphabet() {
- java.lang.Object ref = "";
- if (alphabetCase_ == 5) {
- ref = alphabet_;
- }
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (alphabetCase_ == 5) {
- alphabet_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- * - * This is supported by mapping these to the alphanumeric characters - * that the FFX mode natively supports. This happens before/after - * encryption/decryption. - * Each character listed must appear only once. - * Number of characters must be in the range [2, 62]. - * This must be encoded as ASCII. - * The order of characters does not matter. - *- * - *
string custom_alphabet = 5;
- */
- public com.google.protobuf.ByteString
- getCustomAlphabetBytes() {
- java.lang.Object ref = "";
- if (alphabetCase_ == 5) {
- ref = alphabet_;
- }
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- if (alphabetCase_ == 5) {
- alphabet_ = b;
- }
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- * - * This is supported by mapping these to the alphanumeric characters - * that the FFX mode natively supports. This happens before/after - * encryption/decryption. - * Each character listed must appear only once. - * Number of characters must be in the range [2, 62]. - * This must be encoded as ASCII. - * The order of characters does not matter. - *- * - *
string custom_alphabet = 5;
- */
- public Builder setCustomAlphabet(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- alphabetCase_ = 5;
- alphabet_ = value;
- onChanged();
- return this;
- }
- /**
- * - * This is supported by mapping these to the alphanumeric characters - * that the FFX mode natively supports. This happens before/after - * encryption/decryption. - * Each character listed must appear only once. - * Number of characters must be in the range [2, 62]. - * This must be encoded as ASCII. - * The order of characters does not matter. - *- * - *
string custom_alphabet = 5;
- */
- public Builder clearCustomAlphabet() {
- if (alphabetCase_ == 5) {
- alphabetCase_ = 0;
- alphabet_ = null;
- onChanged();
- }
- return this;
- }
- /**
- * - * This is supported by mapping these to the alphanumeric characters - * that the FFX mode natively supports. This happens before/after - * encryption/decryption. - * Each character listed must appear only once. - * Number of characters must be in the range [2, 62]. - * This must be encoded as ASCII. - * The order of characters does not matter. - *- * - *
string custom_alphabet = 5;
- */
- public Builder setCustomAlphabetBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- alphabetCase_ = 5;
- alphabet_ = value;
- onChanged();
- return this;
- }
-
- /**
- * - * The native way to select the alphabet. Must be in the range [2, 62]. - *- * - *
int32 radix = 6;
- */
- public int getRadix() {
- if (alphabetCase_ == 6) {
- return (java.lang.Integer) alphabet_;
- }
- return 0;
- }
- /**
- * - * The native way to select the alphabet. Must be in the range [2, 62]. - *- * - *
int32 radix = 6;
- */
- public Builder setRadix(int value) {
- alphabetCase_ = 6;
- alphabet_ = value;
- onChanged();
- return this;
- }
- /**
- * - * The native way to select the alphabet. Must be in the range [2, 62]. - *- * - *
int32 radix = 6;
- */
- public Builder clearRadix() {
- if (alphabetCase_ == 6) {
- alphabetCase_ = 0;
- alphabet_ = null;
- onChanged();
- }
- return this;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig)
- private static final com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig();
- }
-
- public static com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * The key used by the encryption algorithm. [required] - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- boolean hasCryptoKey();
- /**
- * - * The key used by the encryption algorithm. [required] - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- com.google.privacy.dlp.v2beta1.CryptoKey getCryptoKey();
- /**
- * - * The key used by the encryption algorithm. [required] - *- * - *
.google.privacy.dlp.v2beta1.CryptoKey crypto_key = 1;
- */
- com.google.privacy.dlp.v2beta1.CryptoKeyOrBuilder getCryptoKeyOrBuilder();
-
- /**
- * - * A context may be used for higher security since the same - * identifier in two different contexts likely will be given a distinct - * surrogate. The principle is that the likeliness is inversely related - * to the ratio of the number of distinct identifiers per context over the - * number of possible surrogates: As long as this ratio is small, the - * likehood is large. - * If the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and non-structured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * This is also known as the 'tweak', as in tweakable encryption. - *- * - *
.google.privacy.dlp.v2beta1.FieldId context = 2;
- */
- boolean hasContext();
- /**
- * - * A context may be used for higher security since the same - * identifier in two different contexts likely will be given a distinct - * surrogate. The principle is that the likeliness is inversely related - * to the ratio of the number of distinct identifiers per context over the - * number of possible surrogates: As long as this ratio is small, the - * likehood is large. - * If the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and non-structured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * This is also known as the 'tweak', as in tweakable encryption. - *- * - *
.google.privacy.dlp.v2beta1.FieldId context = 2;
- */
- com.google.privacy.dlp.v2beta1.FieldId getContext();
- /**
- * - * A context may be used for higher security since the same - * identifier in two different contexts likely will be given a distinct - * surrogate. The principle is that the likeliness is inversely related - * to the ratio of the number of distinct identifiers per context over the - * number of possible surrogates: As long as this ratio is small, the - * likehood is large. - * If the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and non-structured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * This is also known as the 'tweak', as in tweakable encryption. - *- * - *
.google.privacy.dlp.v2beta1.FieldId context = 2;
- */
- com.google.privacy.dlp.v2beta1.FieldIdOrBuilder getContextOrBuilder();
-
- /**
- * .google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet common_alphabet = 4;
- */
- int getCommonAlphabetValue();
- /**
- * .google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet common_alphabet = 4;
- */
- com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet getCommonAlphabet();
-
- /**
- * - * This is supported by mapping these to the alphanumeric characters - * that the FFX mode natively supports. This happens before/after - * encryption/decryption. - * Each character listed must appear only once. - * Number of characters must be in the range [2, 62]. - * This must be encoded as ASCII. - * The order of characters does not matter. - *- * - *
string custom_alphabet = 5;
- */
- java.lang.String getCustomAlphabet();
- /**
- * - * This is supported by mapping these to the alphanumeric characters - * that the FFX mode natively supports. This happens before/after - * encryption/decryption. - * Each character listed must appear only once. - * Number of characters must be in the range [2, 62]. - * This must be encoded as ASCII. - * The order of characters does not matter. - *- * - *
string custom_alphabet = 5;
- */
- com.google.protobuf.ByteString
- getCustomAlphabetBytes();
-
- /**
- * - * The native way to select the alphabet. Must be in the range [2, 62]. - *- * - *
int32 radix = 6;
- */
- int getRadix();
-
- public com.google.privacy.dlp.v2beta1.CryptoReplaceFfxFpeConfig.AlphabetCase getAlphabetCase();
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CustomInfoType.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CustomInfoType.java
deleted file mode 100644
index c59004d71404..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/CustomInfoType.java
+++ /dev/null
@@ -1,2424 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/storage.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-/**
- * - * Custom information type provided by the user. Used to find domain-specific - * sensitive information configurable to the data in question. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CustomInfoType} - */ -public final class CustomInfoType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.CustomInfoType) - CustomInfoTypeOrBuilder { -private static final long serialVersionUID = 0L; - // Use CustomInfoType.newBuilder() to construct. - private CustomInfoType(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private CustomInfoType() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CustomInfoType( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.privacy.dlp.v2beta1.InfoType.Builder subBuilder = null; - if (infoType_ != null) { - subBuilder = infoType_.toBuilder(); - } - infoType_ = input.readMessage(com.google.privacy.dlp.v2beta1.InfoType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(infoType_); - infoType_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.Builder subBuilder = null; - if (typeCase_ == 2) { - subBuilder = ((com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary) type_).toBuilder(); - } - type_ = - input.readMessage(com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 2; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpStorage.internal_static_google_privacy_dlp_v2beta1_CustomInfoType_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpStorage.internal_static_google_privacy_dlp_v2beta1_CustomInfoType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.CustomInfoType.class, com.google.privacy.dlp.v2beta1.CustomInfoType.Builder.class); - } - - public interface DictionaryOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2beta1.CustomInfoType.Dictionary) - com.google.protobuf.MessageOrBuilder { - - /** - *
- * List of words or phrases to search for. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList word_list = 1;
- */
- boolean hasWordList();
- /**
- * - * List of words or phrases to search for. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList word_list = 1;
- */
- com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList getWordList();
- /**
- * - * List of words or phrases to search for. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList word_list = 1;
- */
- com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordListOrBuilder getWordListOrBuilder();
-
- public com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.SourceCase getSourceCase();
- }
- /**
- * - * Custom information type based on a dictionary of words or phrases. This can - * be used to match sensitive information specific to the data, such as a list - * of employee IDs or job titles. - * Dictionary words are case-insensitive and all characters other than letters - * and digits in the unicode [Basic Multilingual - * Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane) - * will be replaced with whitespace when scanning for matches, so the - * dictionary phrase "Sam Johnson" will match all three phrases "sam johnson", - * "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters - * surrounding any match must be of a different type than the adjacent - * characters within the word, so letters must be next to non-letters and - * digits next to non-digits. For example, the dictionary word "jen" will - * match the first three letters of the text "jen123" but will return no - * matches for "jennifer". - * Dictionary words containing a large number of characters that are not - * letters or digits may result in unexpected findings because such characters - * are treated as whitespace. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CustomInfoType.Dictionary} - */ - public static final class Dictionary extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.CustomInfoType.Dictionary) - DictionaryOrBuilder { - private static final long serialVersionUID = 0L; - // Use Dictionary.newBuilder() to construct. - private Dictionary(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private Dictionary() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Dictionary( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList.Builder subBuilder = null; - if (sourceCase_ == 1) { - subBuilder = ((com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList) source_).toBuilder(); - } - source_ = - input.readMessage(com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 1; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpStorage.internal_static_google_privacy_dlp_v2beta1_CustomInfoType_Dictionary_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpStorage.internal_static_google_privacy_dlp_v2beta1_CustomInfoType_Dictionary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.class, com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.Builder.class); - } - - public interface WordListOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList) - com.google.protobuf.MessageOrBuilder { - - /** - *
- * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - *- * - *
repeated string words = 1;
- */
- java.util.List- * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - *- * - *
repeated string words = 1;
- */
- int getWordsCount();
- /**
- * - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - *- * - *
repeated string words = 1;
- */
- java.lang.String getWords(int index);
- /**
- * - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - *- * - *
repeated string words = 1;
- */
- com.google.protobuf.ByteString
- getWordsBytes(int index);
- }
- /**
- * - * Message defining a list of words or phrases to search for in the data. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList} - */ - public static final class WordList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList) - WordListOrBuilder { - private static final long serialVersionUID = 0L; - // Use WordList.newBuilder() to construct. - private WordList(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private WordList() { - words_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WordList( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - words_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - words_.add(s); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - words_ = words_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpStorage.internal_static_google_privacy_dlp_v2beta1_CustomInfoType_Dictionary_WordList_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpStorage.internal_static_google_privacy_dlp_v2beta1_CustomInfoType_Dictionary_WordList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList.class, com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList.Builder.class); - } - - public static final int WORDS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList words_; - /** - *
- * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - *- * - *
repeated string words = 1;
- */
- public com.google.protobuf.ProtocolStringList
- getWordsList() {
- return words_;
- }
- /**
- * - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - *- * - *
repeated string words = 1;
- */
- public int getWordsCount() {
- return words_.size();
- }
- /**
- * - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - *- * - *
repeated string words = 1;
- */
- public java.lang.String getWords(int index) {
- return words_.get(index);
- }
- /**
- * - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - *- * - *
repeated string words = 1;
- */
- public com.google.protobuf.ByteString
- getWordsBytes(int index) {
- return words_.getByteString(index);
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- for (int i = 0; i < words_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, words_.getRaw(i));
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- {
- int dataSize = 0;
- for (int i = 0; i < words_.size(); i++) {
- dataSize += computeStringSizeNoTag(words_.getRaw(i));
- }
- size += dataSize;
- size += 1 * getWordsList().size();
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList other = (com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList) obj;
-
- boolean result = true;
- result = result && getWordsList()
- .equals(other.getWordsList());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (getWordsCount() > 0) {
- hash = (37 * hash) + WORDS_FIELD_NUMBER;
- hash = (53 * hash) + getWordsList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Message defining a list of words or phrases to search for in the data. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - *- * - *
repeated string words = 1;
- */
- public com.google.protobuf.ProtocolStringList
- getWordsList() {
- return words_.getUnmodifiableView();
- }
- /**
- * - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - *- * - *
repeated string words = 1;
- */
- public int getWordsCount() {
- return words_.size();
- }
- /**
- * - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - *- * - *
repeated string words = 1;
- */
- public java.lang.String getWords(int index) {
- return words_.get(index);
- }
- /**
- * - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - *- * - *
repeated string words = 1;
- */
- public com.google.protobuf.ByteString
- getWordsBytes(int index) {
- return words_.getByteString(index);
- }
- /**
- * - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - *- * - *
repeated string words = 1;
- */
- public Builder setWords(
- int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureWordsIsMutable();
- words_.set(index, value);
- onChanged();
- return this;
- }
- /**
- * - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - *- * - *
repeated string words = 1;
- */
- public Builder addWords(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureWordsIsMutable();
- words_.add(value);
- onChanged();
- return this;
- }
- /**
- * - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - *- * - *
repeated string words = 1;
- */
- public Builder addAllWords(
- java.lang.Iterable- * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - *- * - *
repeated string words = 1;
- */
- public Builder clearWords() {
- words_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- return this;
- }
- /**
- * - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - *- * - *
repeated string words = 1;
- */
- public Builder addWordsBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- ensureWordsIsMutable();
- words_.add(value);
- onChanged();
- return this;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList)
- private static final com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList();
- }
-
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * List of words or phrases to search for. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList word_list = 1;
- */
- public boolean hasWordList() {
- return sourceCase_ == 1;
- }
- /**
- * - * List of words or phrases to search for. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList word_list = 1;
- */
- public com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList getWordList() {
- if (sourceCase_ == 1) {
- return (com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList) source_;
- }
- return com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList.getDefaultInstance();
- }
- /**
- * - * List of words or phrases to search for. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList word_list = 1;
- */
- public com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordListOrBuilder getWordListOrBuilder() {
- if (sourceCase_ == 1) {
- return (com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList) source_;
- }
- return com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList.getDefaultInstance();
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (sourceCase_ == 1) {
- output.writeMessage(1, (com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList) source_);
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (sourceCase_ == 1) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, (com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList) source_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary other = (com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary) obj;
-
- boolean result = true;
- result = result && getSourceCase().equals(
- other.getSourceCase());
- if (!result) return false;
- switch (sourceCase_) {
- case 1:
- result = result && getWordList()
- .equals(other.getWordList());
- break;
- case 0:
- default:
- }
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- switch (sourceCase_) {
- case 1:
- hash = (37 * hash) + WORD_LIST_FIELD_NUMBER;
- hash = (53 * hash) + getWordList().hashCode();
- break;
- case 0:
- default:
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Custom information type based on a dictionary of words or phrases. This can - * be used to match sensitive information specific to the data, such as a list - * of employee IDs or job titles. - * Dictionary words are case-insensitive and all characters other than letters - * and digits in the unicode [Basic Multilingual - * Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane) - * will be replaced with whitespace when scanning for matches, so the - * dictionary phrase "Sam Johnson" will match all three phrases "sam johnson", - * "Sam, Johnson", and "Sam (Johnson)". Additionally, the characters - * surrounding any match must be of a different type than the adjacent - * characters within the word, so letters must be next to non-letters and - * digits next to non-digits. For example, the dictionary word "jen" will - * match the first three letters of the text "jen123" but will return no - * matches for "jennifer". - * Dictionary words containing a large number of characters that are not - * letters or digits may result in unexpected findings because such characters - * are treated as whitespace. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CustomInfoType.Dictionary} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * List of words or phrases to search for. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList word_list = 1;
- */
- public boolean hasWordList() {
- return sourceCase_ == 1;
- }
- /**
- * - * List of words or phrases to search for. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList word_list = 1;
- */
- public com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList getWordList() {
- if (wordListBuilder_ == null) {
- if (sourceCase_ == 1) {
- return (com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList) source_;
- }
- return com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList.getDefaultInstance();
- } else {
- if (sourceCase_ == 1) {
- return wordListBuilder_.getMessage();
- }
- return com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList.getDefaultInstance();
- }
- }
- /**
- * - * List of words or phrases to search for. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList word_list = 1;
- */
- public Builder setWordList(com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList value) {
- if (wordListBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- source_ = value;
- onChanged();
- } else {
- wordListBuilder_.setMessage(value);
- }
- sourceCase_ = 1;
- return this;
- }
- /**
- * - * List of words or phrases to search for. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList word_list = 1;
- */
- public Builder setWordList(
- com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList.Builder builderForValue) {
- if (wordListBuilder_ == null) {
- source_ = builderForValue.build();
- onChanged();
- } else {
- wordListBuilder_.setMessage(builderForValue.build());
- }
- sourceCase_ = 1;
- return this;
- }
- /**
- * - * List of words or phrases to search for. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList word_list = 1;
- */
- public Builder mergeWordList(com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList value) {
- if (wordListBuilder_ == null) {
- if (sourceCase_ == 1 &&
- source_ != com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList.getDefaultInstance()) {
- source_ = com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList.newBuilder((com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList) source_)
- .mergeFrom(value).buildPartial();
- } else {
- source_ = value;
- }
- onChanged();
- } else {
- if (sourceCase_ == 1) {
- wordListBuilder_.mergeFrom(value);
- }
- wordListBuilder_.setMessage(value);
- }
- sourceCase_ = 1;
- return this;
- }
- /**
- * - * List of words or phrases to search for. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList word_list = 1;
- */
- public Builder clearWordList() {
- if (wordListBuilder_ == null) {
- if (sourceCase_ == 1) {
- sourceCase_ = 0;
- source_ = null;
- onChanged();
- }
- } else {
- if (sourceCase_ == 1) {
- sourceCase_ = 0;
- source_ = null;
- }
- wordListBuilder_.clear();
- }
- return this;
- }
- /**
- * - * List of words or phrases to search for. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList word_list = 1;
- */
- public com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList.Builder getWordListBuilder() {
- return getWordListFieldBuilder().getBuilder();
- }
- /**
- * - * List of words or phrases to search for. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList word_list = 1;
- */
- public com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordListOrBuilder getWordListOrBuilder() {
- if ((sourceCase_ == 1) && (wordListBuilder_ != null)) {
- return wordListBuilder_.getMessageOrBuilder();
- } else {
- if (sourceCase_ == 1) {
- return (com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList) source_;
- }
- return com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList.getDefaultInstance();
- }
- }
- /**
- * - * List of words or phrases to search for. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList word_list = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList, com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList.Builder, com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordListOrBuilder>
- getWordListFieldBuilder() {
- if (wordListBuilder_ == null) {
- if (!(sourceCase_ == 1)) {
- source_ = com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList.getDefaultInstance();
- }
- wordListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList, com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList.Builder, com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordListOrBuilder>(
- (com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList) source_,
- getParentForChildren(),
- isClean());
- source_ = null;
- }
- sourceCase_ = 1;
- onChanged();;
- return wordListBuilder_;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.CustomInfoType.Dictionary)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.CustomInfoType.Dictionary)
- private static final com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary();
- }
-
- public static com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - *- * - *
.google.privacy.dlp.v2beta1.InfoType info_type = 1;
- */
- public boolean hasInfoType() {
- return infoType_ != null;
- }
- /**
- * - * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - *- * - *
.google.privacy.dlp.v2beta1.InfoType info_type = 1;
- */
- public com.google.privacy.dlp.v2beta1.InfoType getInfoType() {
- return infoType_ == null ? com.google.privacy.dlp.v2beta1.InfoType.getDefaultInstance() : infoType_;
- }
- /**
- * - * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - *- * - *
.google.privacy.dlp.v2beta1.InfoType info_type = 1;
- */
- public com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder getInfoTypeOrBuilder() {
- return getInfoType();
- }
-
- public static final int DICTIONARY_FIELD_NUMBER = 2;
- /**
- * - * Dictionary-based custom info type. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary dictionary = 2;
- */
- public boolean hasDictionary() {
- return typeCase_ == 2;
- }
- /**
- * - * Dictionary-based custom info type. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary dictionary = 2;
- */
- public com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary getDictionary() {
- if (typeCase_ == 2) {
- return (com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary) type_;
- }
- return com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.getDefaultInstance();
- }
- /**
- * - * Dictionary-based custom info type. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary dictionary = 2;
- */
- public com.google.privacy.dlp.v2beta1.CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder() {
- if (typeCase_ == 2) {
- return (com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary) type_;
- }
- return com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.getDefaultInstance();
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (infoType_ != null) {
- output.writeMessage(1, getInfoType());
- }
- if (typeCase_ == 2) {
- output.writeMessage(2, (com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary) type_);
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (infoType_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getInfoType());
- }
- if (typeCase_ == 2) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, (com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary) type_);
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.CustomInfoType)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.CustomInfoType other = (com.google.privacy.dlp.v2beta1.CustomInfoType) obj;
-
- boolean result = true;
- result = result && (hasInfoType() == other.hasInfoType());
- if (hasInfoType()) {
- result = result && getInfoType()
- .equals(other.getInfoType());
- }
- result = result && getTypeCase().equals(
- other.getTypeCase());
- if (!result) return false;
- switch (typeCase_) {
- case 2:
- result = result && getDictionary()
- .equals(other.getDictionary());
- break;
- case 0:
- default:
- }
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasInfoType()) {
- hash = (37 * hash) + INFO_TYPE_FIELD_NUMBER;
- hash = (53 * hash) + getInfoType().hashCode();
- }
- switch (typeCase_) {
- case 2:
- hash = (37 * hash) + DICTIONARY_FIELD_NUMBER;
- hash = (53 * hash) + getDictionary().hashCode();
- break;
- case 0:
- default:
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.CustomInfoType parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.CustomInfoType parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.CustomInfoType prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Custom information type provided by the user. Used to find domain-specific - * sensitive information configurable to the data in question. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.CustomInfoType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - *- * - *
.google.privacy.dlp.v2beta1.InfoType info_type = 1;
- */
- public boolean hasInfoType() {
- return infoTypeBuilder_ != null || infoType_ != null;
- }
- /**
- * - * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - *- * - *
.google.privacy.dlp.v2beta1.InfoType info_type = 1;
- */
- public com.google.privacy.dlp.v2beta1.InfoType getInfoType() {
- if (infoTypeBuilder_ == null) {
- return infoType_ == null ? com.google.privacy.dlp.v2beta1.InfoType.getDefaultInstance() : infoType_;
- } else {
- return infoTypeBuilder_.getMessage();
- }
- }
- /**
- * - * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - *- * - *
.google.privacy.dlp.v2beta1.InfoType info_type = 1;
- */
- public Builder setInfoType(com.google.privacy.dlp.v2beta1.InfoType value) {
- if (infoTypeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- infoType_ = value;
- onChanged();
- } else {
- infoTypeBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - *- * - *
.google.privacy.dlp.v2beta1.InfoType info_type = 1;
- */
- public Builder setInfoType(
- com.google.privacy.dlp.v2beta1.InfoType.Builder builderForValue) {
- if (infoTypeBuilder_ == null) {
- infoType_ = builderForValue.build();
- onChanged();
- } else {
- infoTypeBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - *- * - *
.google.privacy.dlp.v2beta1.InfoType info_type = 1;
- */
- public Builder mergeInfoType(com.google.privacy.dlp.v2beta1.InfoType value) {
- if (infoTypeBuilder_ == null) {
- if (infoType_ != null) {
- infoType_ =
- com.google.privacy.dlp.v2beta1.InfoType.newBuilder(infoType_).mergeFrom(value).buildPartial();
- } else {
- infoType_ = value;
- }
- onChanged();
- } else {
- infoTypeBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - *- * - *
.google.privacy.dlp.v2beta1.InfoType info_type = 1;
- */
- public Builder clearInfoType() {
- if (infoTypeBuilder_ == null) {
- infoType_ = null;
- onChanged();
- } else {
- infoType_ = null;
- infoTypeBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - *- * - *
.google.privacy.dlp.v2beta1.InfoType info_type = 1;
- */
- public com.google.privacy.dlp.v2beta1.InfoType.Builder getInfoTypeBuilder() {
-
- onChanged();
- return getInfoTypeFieldBuilder().getBuilder();
- }
- /**
- * - * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - *- * - *
.google.privacy.dlp.v2beta1.InfoType info_type = 1;
- */
- public com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder getInfoTypeOrBuilder() {
- if (infoTypeBuilder_ != null) {
- return infoTypeBuilder_.getMessageOrBuilder();
- } else {
- return infoType_ == null ?
- com.google.privacy.dlp.v2beta1.InfoType.getDefaultInstance() : infoType_;
- }
- }
- /**
- * - * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - *- * - *
.google.privacy.dlp.v2beta1.InfoType info_type = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.InfoType, com.google.privacy.dlp.v2beta1.InfoType.Builder, com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder>
- getInfoTypeFieldBuilder() {
- if (infoTypeBuilder_ == null) {
- infoTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.InfoType, com.google.privacy.dlp.v2beta1.InfoType.Builder, com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder>(
- getInfoType(),
- getParentForChildren(),
- isClean());
- infoType_ = null;
- }
- return infoTypeBuilder_;
- }
-
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary, com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.Builder, com.google.privacy.dlp.v2beta1.CustomInfoType.DictionaryOrBuilder> dictionaryBuilder_;
- /**
- * - * Dictionary-based custom info type. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary dictionary = 2;
- */
- public boolean hasDictionary() {
- return typeCase_ == 2;
- }
- /**
- * - * Dictionary-based custom info type. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary dictionary = 2;
- */
- public com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary getDictionary() {
- if (dictionaryBuilder_ == null) {
- if (typeCase_ == 2) {
- return (com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary) type_;
- }
- return com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.getDefaultInstance();
- } else {
- if (typeCase_ == 2) {
- return dictionaryBuilder_.getMessage();
- }
- return com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.getDefaultInstance();
- }
- }
- /**
- * - * Dictionary-based custom info type. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary dictionary = 2;
- */
- public Builder setDictionary(com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary value) {
- if (dictionaryBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- type_ = value;
- onChanged();
- } else {
- dictionaryBuilder_.setMessage(value);
- }
- typeCase_ = 2;
- return this;
- }
- /**
- * - * Dictionary-based custom info type. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary dictionary = 2;
- */
- public Builder setDictionary(
- com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.Builder builderForValue) {
- if (dictionaryBuilder_ == null) {
- type_ = builderForValue.build();
- onChanged();
- } else {
- dictionaryBuilder_.setMessage(builderForValue.build());
- }
- typeCase_ = 2;
- return this;
- }
- /**
- * - * Dictionary-based custom info type. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary dictionary = 2;
- */
- public Builder mergeDictionary(com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary value) {
- if (dictionaryBuilder_ == null) {
- if (typeCase_ == 2 &&
- type_ != com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.getDefaultInstance()) {
- type_ = com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.newBuilder((com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary) type_)
- .mergeFrom(value).buildPartial();
- } else {
- type_ = value;
- }
- onChanged();
- } else {
- if (typeCase_ == 2) {
- dictionaryBuilder_.mergeFrom(value);
- }
- dictionaryBuilder_.setMessage(value);
- }
- typeCase_ = 2;
- return this;
- }
- /**
- * - * Dictionary-based custom info type. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary dictionary = 2;
- */
- public Builder clearDictionary() {
- if (dictionaryBuilder_ == null) {
- if (typeCase_ == 2) {
- typeCase_ = 0;
- type_ = null;
- onChanged();
- }
- } else {
- if (typeCase_ == 2) {
- typeCase_ = 0;
- type_ = null;
- }
- dictionaryBuilder_.clear();
- }
- return this;
- }
- /**
- * - * Dictionary-based custom info type. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary dictionary = 2;
- */
- public com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.Builder getDictionaryBuilder() {
- return getDictionaryFieldBuilder().getBuilder();
- }
- /**
- * - * Dictionary-based custom info type. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary dictionary = 2;
- */
- public com.google.privacy.dlp.v2beta1.CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder() {
- if ((typeCase_ == 2) && (dictionaryBuilder_ != null)) {
- return dictionaryBuilder_.getMessageOrBuilder();
- } else {
- if (typeCase_ == 2) {
- return (com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary) type_;
- }
- return com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.getDefaultInstance();
- }
- }
- /**
- * - * Dictionary-based custom info type. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary dictionary = 2;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary, com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.Builder, com.google.privacy.dlp.v2beta1.CustomInfoType.DictionaryOrBuilder>
- getDictionaryFieldBuilder() {
- if (dictionaryBuilder_ == null) {
- if (!(typeCase_ == 2)) {
- type_ = com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.getDefaultInstance();
- }
- dictionaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary, com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.Builder, com.google.privacy.dlp.v2beta1.CustomInfoType.DictionaryOrBuilder>(
- (com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary) type_,
- getParentForChildren(),
- isClean());
- type_ = null;
- }
- typeCase_ = 2;
- onChanged();;
- return dictionaryBuilder_;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.CustomInfoType)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.CustomInfoType)
- private static final com.google.privacy.dlp.v2beta1.CustomInfoType DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.CustomInfoType();
- }
-
- public static com.google.privacy.dlp.v2beta1.CustomInfoType getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - *- * - *
.google.privacy.dlp.v2beta1.InfoType info_type = 1;
- */
- boolean hasInfoType();
- /**
- * - * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - *- * - *
.google.privacy.dlp.v2beta1.InfoType info_type = 1;
- */
- com.google.privacy.dlp.v2beta1.InfoType getInfoType();
- /**
- * - * Info type configuration. All custom info types must have configurations - * that do not conflict with built-in info types or other custom info types. - *- * - *
.google.privacy.dlp.v2beta1.InfoType info_type = 1;
- */
- com.google.privacy.dlp.v2beta1.InfoTypeOrBuilder getInfoTypeOrBuilder();
-
- /**
- * - * Dictionary-based custom info type. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary dictionary = 2;
- */
- boolean hasDictionary();
- /**
- * - * Dictionary-based custom info type. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary dictionary = 2;
- */
- com.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary getDictionary();
- /**
- * - * Dictionary-based custom info type. - *- * - *
.google.privacy.dlp.v2beta1.CustomInfoType.Dictionary dictionary = 2;
- */
- com.google.privacy.dlp.v2beta1.CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder();
-
- public com.google.privacy.dlp.v2beta1.CustomInfoType.TypeCase getTypeCase();
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/DatastoreKey.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/DatastoreKey.java
deleted file mode 100644
index 759a04c54e6f..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/DatastoreKey.java
+++ /dev/null
@@ -1,626 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/storage.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-/**
- * - * Record key for a finding in Cloud Datastore. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.DatastoreKey} - */ -public final class DatastoreKey extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.DatastoreKey) - DatastoreKeyOrBuilder { -private static final long serialVersionUID = 0L; - // Use DatastoreKey.newBuilder() to construct. - private DatastoreKey(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private DatastoreKey() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DatastoreKey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.privacy.dlp.v2beta1.Key.Builder subBuilder = null; - if (entityKey_ != null) { - subBuilder = entityKey_.toBuilder(); - } - entityKey_ = input.readMessage(com.google.privacy.dlp.v2beta1.Key.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entityKey_); - entityKey_ = subBuilder.buildPartial(); - } - - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.privacy.dlp.v2beta1.DlpStorage.internal_static_google_privacy_dlp_v2beta1_DatastoreKey_descriptor; - } - - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.privacy.dlp.v2beta1.DlpStorage.internal_static_google_privacy_dlp_v2beta1_DatastoreKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.privacy.dlp.v2beta1.DatastoreKey.class, com.google.privacy.dlp.v2beta1.DatastoreKey.Builder.class); - } - - public static final int ENTITY_KEY_FIELD_NUMBER = 1; - private com.google.privacy.dlp.v2beta1.Key entityKey_; - /** - *
- * Datastore entity key. - *- * - *
.google.privacy.dlp.v2beta1.Key entity_key = 1;
- */
- public boolean hasEntityKey() {
- return entityKey_ != null;
- }
- /**
- * - * Datastore entity key. - *- * - *
.google.privacy.dlp.v2beta1.Key entity_key = 1;
- */
- public com.google.privacy.dlp.v2beta1.Key getEntityKey() {
- return entityKey_ == null ? com.google.privacy.dlp.v2beta1.Key.getDefaultInstance() : entityKey_;
- }
- /**
- * - * Datastore entity key. - *- * - *
.google.privacy.dlp.v2beta1.Key entity_key = 1;
- */
- public com.google.privacy.dlp.v2beta1.KeyOrBuilder getEntityKeyOrBuilder() {
- return getEntityKey();
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (entityKey_ != null) {
- output.writeMessage(1, getEntityKey());
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (entityKey_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getEntityKey());
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.DatastoreKey)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.DatastoreKey other = (com.google.privacy.dlp.v2beta1.DatastoreKey) obj;
-
- boolean result = true;
- result = result && (hasEntityKey() == other.hasEntityKey());
- if (hasEntityKey()) {
- result = result && getEntityKey()
- .equals(other.getEntityKey());
- }
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasEntityKey()) {
- hash = (37 * hash) + ENTITY_KEY_FIELD_NUMBER;
- hash = (53 * hash) + getEntityKey().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.DatastoreKey parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreKey parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreKey parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreKey parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreKey parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreKey parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreKey parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreKey parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreKey parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreKey parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreKey parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreKey parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.DatastoreKey prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Record key for a finding in Cloud Datastore. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.DatastoreKey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * Datastore entity key. - *- * - *
.google.privacy.dlp.v2beta1.Key entity_key = 1;
- */
- public boolean hasEntityKey() {
- return entityKeyBuilder_ != null || entityKey_ != null;
- }
- /**
- * - * Datastore entity key. - *- * - *
.google.privacy.dlp.v2beta1.Key entity_key = 1;
- */
- public com.google.privacy.dlp.v2beta1.Key getEntityKey() {
- if (entityKeyBuilder_ == null) {
- return entityKey_ == null ? com.google.privacy.dlp.v2beta1.Key.getDefaultInstance() : entityKey_;
- } else {
- return entityKeyBuilder_.getMessage();
- }
- }
- /**
- * - * Datastore entity key. - *- * - *
.google.privacy.dlp.v2beta1.Key entity_key = 1;
- */
- public Builder setEntityKey(com.google.privacy.dlp.v2beta1.Key value) {
- if (entityKeyBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- entityKey_ = value;
- onChanged();
- } else {
- entityKeyBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * Datastore entity key. - *- * - *
.google.privacy.dlp.v2beta1.Key entity_key = 1;
- */
- public Builder setEntityKey(
- com.google.privacy.dlp.v2beta1.Key.Builder builderForValue) {
- if (entityKeyBuilder_ == null) {
- entityKey_ = builderForValue.build();
- onChanged();
- } else {
- entityKeyBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * Datastore entity key. - *- * - *
.google.privacy.dlp.v2beta1.Key entity_key = 1;
- */
- public Builder mergeEntityKey(com.google.privacy.dlp.v2beta1.Key value) {
- if (entityKeyBuilder_ == null) {
- if (entityKey_ != null) {
- entityKey_ =
- com.google.privacy.dlp.v2beta1.Key.newBuilder(entityKey_).mergeFrom(value).buildPartial();
- } else {
- entityKey_ = value;
- }
- onChanged();
- } else {
- entityKeyBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * Datastore entity key. - *- * - *
.google.privacy.dlp.v2beta1.Key entity_key = 1;
- */
- public Builder clearEntityKey() {
- if (entityKeyBuilder_ == null) {
- entityKey_ = null;
- onChanged();
- } else {
- entityKey_ = null;
- entityKeyBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * Datastore entity key. - *- * - *
.google.privacy.dlp.v2beta1.Key entity_key = 1;
- */
- public com.google.privacy.dlp.v2beta1.Key.Builder getEntityKeyBuilder() {
-
- onChanged();
- return getEntityKeyFieldBuilder().getBuilder();
- }
- /**
- * - * Datastore entity key. - *- * - *
.google.privacy.dlp.v2beta1.Key entity_key = 1;
- */
- public com.google.privacy.dlp.v2beta1.KeyOrBuilder getEntityKeyOrBuilder() {
- if (entityKeyBuilder_ != null) {
- return entityKeyBuilder_.getMessageOrBuilder();
- } else {
- return entityKey_ == null ?
- com.google.privacy.dlp.v2beta1.Key.getDefaultInstance() : entityKey_;
- }
- }
- /**
- * - * Datastore entity key. - *- * - *
.google.privacy.dlp.v2beta1.Key entity_key = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.Key, com.google.privacy.dlp.v2beta1.Key.Builder, com.google.privacy.dlp.v2beta1.KeyOrBuilder>
- getEntityKeyFieldBuilder() {
- if (entityKeyBuilder_ == null) {
- entityKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.Key, com.google.privacy.dlp.v2beta1.Key.Builder, com.google.privacy.dlp.v2beta1.KeyOrBuilder>(
- getEntityKey(),
- getParentForChildren(),
- isClean());
- entityKey_ = null;
- }
- return entityKeyBuilder_;
- }
- public final Builder setUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.setUnknownFieldsProto3(unknownFields);
- }
-
- public final Builder mergeUnknownFields(
- final com.google.protobuf.UnknownFieldSet unknownFields) {
- return super.mergeUnknownFields(unknownFields);
- }
-
-
- // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2beta1.DatastoreKey)
- }
-
- // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2beta1.DatastoreKey)
- private static final com.google.privacy.dlp.v2beta1.DatastoreKey DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.google.privacy.dlp.v2beta1.DatastoreKey();
- }
-
- public static com.google.privacy.dlp.v2beta1.DatastoreKey getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * Datastore entity key. - *- * - *
.google.privacy.dlp.v2beta1.Key entity_key = 1;
- */
- boolean hasEntityKey();
- /**
- * - * Datastore entity key. - *- * - *
.google.privacy.dlp.v2beta1.Key entity_key = 1;
- */
- com.google.privacy.dlp.v2beta1.Key getEntityKey();
- /**
- * - * Datastore entity key. - *- * - *
.google.privacy.dlp.v2beta1.Key entity_key = 1;
- */
- com.google.privacy.dlp.v2beta1.KeyOrBuilder getEntityKeyOrBuilder();
-}
diff --git a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/DatastoreOptions.java b/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/DatastoreOptions.java
deleted file mode 100644
index 3a0abb0148cc..000000000000
--- a/google-api-grpc/proto-google-cloud-dlp-v2beta1/src/main/java/com/google/privacy/dlp/v2beta1/DatastoreOptions.java
+++ /dev/null
@@ -1,1330 +0,0 @@
-// Generated by the protocol buffer compiler. DO NOT EDIT!
-// source: google/privacy/dlp/v2beta1/storage.proto
-
-package com.google.privacy.dlp.v2beta1;
-
-/**
- * - * Options defining a data set within Google Cloud Datastore. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.DatastoreOptions} - */ -public final class DatastoreOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2beta1.DatastoreOptions) - DatastoreOptionsOrBuilder { -private static final long serialVersionUID = 0L; - // Use DatastoreOptions.newBuilder() to construct. - private DatastoreOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - private DatastoreOptions() { - projection_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DatastoreOptions( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownFieldProto3( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.privacy.dlp.v2beta1.PartitionId.Builder subBuilder = null; - if (partitionId_ != null) { - subBuilder = partitionId_.toBuilder(); - } - partitionId_ = input.readMessage(com.google.privacy.dlp.v2beta1.PartitionId.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(partitionId_); - partitionId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.privacy.dlp.v2beta1.KindExpression.Builder subBuilder = null; - if (kind_ != null) { - subBuilder = kind_.toBuilder(); - } - kind_ = input.readMessage(com.google.privacy.dlp.v2beta1.KindExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kind_); - kind_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - projection_ = new java.util.ArrayList
- * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - *- * - *
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;
- */
- public boolean hasPartitionId() {
- return partitionId_ != null;
- }
- /**
- * - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - *- * - *
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;
- */
- public com.google.privacy.dlp.v2beta1.PartitionId getPartitionId() {
- return partitionId_ == null ? com.google.privacy.dlp.v2beta1.PartitionId.getDefaultInstance() : partitionId_;
- }
- /**
- * - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - *- * - *
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;
- */
- public com.google.privacy.dlp.v2beta1.PartitionIdOrBuilder getPartitionIdOrBuilder() {
- return getPartitionId();
- }
-
- public static final int KIND_FIELD_NUMBER = 2;
- private com.google.privacy.dlp.v2beta1.KindExpression kind_;
- /**
- * - * The kind to process. - *- * - *
.google.privacy.dlp.v2beta1.KindExpression kind = 2;
- */
- public boolean hasKind() {
- return kind_ != null;
- }
- /**
- * - * The kind to process. - *- * - *
.google.privacy.dlp.v2beta1.KindExpression kind = 2;
- */
- public com.google.privacy.dlp.v2beta1.KindExpression getKind() {
- return kind_ == null ? com.google.privacy.dlp.v2beta1.KindExpression.getDefaultInstance() : kind_;
- }
- /**
- * - * The kind to process. - *- * - *
.google.privacy.dlp.v2beta1.KindExpression kind = 2;
- */
- public com.google.privacy.dlp.v2beta1.KindExpressionOrBuilder getKindOrBuilder() {
- return getKind();
- }
-
- public static final int PROJECTION_FIELD_NUMBER = 3;
- private java.util.List- * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public java.util.List- * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public java.util.List extends com.google.privacy.dlp.v2beta1.ProjectionOrBuilder>
- getProjectionOrBuilderList() {
- return projection_;
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public int getProjectionCount() {
- return projection_.size();
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public com.google.privacy.dlp.v2beta1.Projection getProjection(int index) {
- return projection_.get(index);
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public com.google.privacy.dlp.v2beta1.ProjectionOrBuilder getProjectionOrBuilder(
- int index) {
- return projection_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
- }
-
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- if (partitionId_ != null) {
- output.writeMessage(1, getPartitionId());
- }
- if (kind_ != null) {
- output.writeMessage(2, getKind());
- }
- for (int i = 0; i < projection_.size(); i++) {
- output.writeMessage(3, projection_.get(i));
- }
- unknownFields.writeTo(output);
- }
-
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (partitionId_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getPartitionId());
- }
- if (kind_ != null) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, getKind());
- }
- for (int i = 0; i < projection_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, projection_.get(i));
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.privacy.dlp.v2beta1.DatastoreOptions)) {
- return super.equals(obj);
- }
- com.google.privacy.dlp.v2beta1.DatastoreOptions other = (com.google.privacy.dlp.v2beta1.DatastoreOptions) obj;
-
- boolean result = true;
- result = result && (hasPartitionId() == other.hasPartitionId());
- if (hasPartitionId()) {
- result = result && getPartitionId()
- .equals(other.getPartitionId());
- }
- result = result && (hasKind() == other.hasKind());
- if (hasKind()) {
- result = result && getKind()
- .equals(other.getKind());
- }
- result = result && getProjectionList()
- .equals(other.getProjectionList());
- result = result && unknownFields.equals(other.unknownFields);
- return result;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasPartitionId()) {
- hash = (37 * hash) + PARTITION_ID_FIELD_NUMBER;
- hash = (53 * hash) + getPartitionId().hashCode();
- }
- if (hasKind()) {
- hash = (37 * hash) + KIND_FIELD_NUMBER;
- hash = (53 * hash) + getKind().hashCode();
- }
- if (getProjectionCount() > 0) {
- hash = (37 * hash) + PROJECTION_FIELD_NUMBER;
- hash = (53 * hash) + getProjectionList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.privacy.dlp.v2beta1.DatastoreOptions parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreOptions parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreOptions parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreOptions parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreOptions parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreOptions parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreOptions parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreOptions parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreOptions parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreOptions parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreOptions parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.google.privacy.dlp.v2beta1.DatastoreOptions parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.google.privacy.dlp.v2beta1.DatastoreOptions prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
- ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- * - * Options defining a data set within Google Cloud Datastore. - *- * - * Protobuf type {@code google.privacy.dlp.v2beta1.DatastoreOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
- * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - *- * - *
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;
- */
- public boolean hasPartitionId() {
- return partitionIdBuilder_ != null || partitionId_ != null;
- }
- /**
- * - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - *- * - *
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;
- */
- public com.google.privacy.dlp.v2beta1.PartitionId getPartitionId() {
- if (partitionIdBuilder_ == null) {
- return partitionId_ == null ? com.google.privacy.dlp.v2beta1.PartitionId.getDefaultInstance() : partitionId_;
- } else {
- return partitionIdBuilder_.getMessage();
- }
- }
- /**
- * - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - *- * - *
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;
- */
- public Builder setPartitionId(com.google.privacy.dlp.v2beta1.PartitionId value) {
- if (partitionIdBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- partitionId_ = value;
- onChanged();
- } else {
- partitionIdBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - *- * - *
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;
- */
- public Builder setPartitionId(
- com.google.privacy.dlp.v2beta1.PartitionId.Builder builderForValue) {
- if (partitionIdBuilder_ == null) {
- partitionId_ = builderForValue.build();
- onChanged();
- } else {
- partitionIdBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - *- * - *
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;
- */
- public Builder mergePartitionId(com.google.privacy.dlp.v2beta1.PartitionId value) {
- if (partitionIdBuilder_ == null) {
- if (partitionId_ != null) {
- partitionId_ =
- com.google.privacy.dlp.v2beta1.PartitionId.newBuilder(partitionId_).mergeFrom(value).buildPartial();
- } else {
- partitionId_ = value;
- }
- onChanged();
- } else {
- partitionIdBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - *- * - *
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;
- */
- public Builder clearPartitionId() {
- if (partitionIdBuilder_ == null) {
- partitionId_ = null;
- onChanged();
- } else {
- partitionId_ = null;
- partitionIdBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - *- * - *
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;
- */
- public com.google.privacy.dlp.v2beta1.PartitionId.Builder getPartitionIdBuilder() {
-
- onChanged();
- return getPartitionIdFieldBuilder().getBuilder();
- }
- /**
- * - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - *- * - *
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;
- */
- public com.google.privacy.dlp.v2beta1.PartitionIdOrBuilder getPartitionIdOrBuilder() {
- if (partitionIdBuilder_ != null) {
- return partitionIdBuilder_.getMessageOrBuilder();
- } else {
- return partitionId_ == null ?
- com.google.privacy.dlp.v2beta1.PartitionId.getDefaultInstance() : partitionId_;
- }
- }
- /**
- * - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - *- * - *
.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.PartitionId, com.google.privacy.dlp.v2beta1.PartitionId.Builder, com.google.privacy.dlp.v2beta1.PartitionIdOrBuilder>
- getPartitionIdFieldBuilder() {
- if (partitionIdBuilder_ == null) {
- partitionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.PartitionId, com.google.privacy.dlp.v2beta1.PartitionId.Builder, com.google.privacy.dlp.v2beta1.PartitionIdOrBuilder>(
- getPartitionId(),
- getParentForChildren(),
- isClean());
- partitionId_ = null;
- }
- return partitionIdBuilder_;
- }
-
- private com.google.privacy.dlp.v2beta1.KindExpression kind_ = null;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.KindExpression, com.google.privacy.dlp.v2beta1.KindExpression.Builder, com.google.privacy.dlp.v2beta1.KindExpressionOrBuilder> kindBuilder_;
- /**
- * - * The kind to process. - *- * - *
.google.privacy.dlp.v2beta1.KindExpression kind = 2;
- */
- public boolean hasKind() {
- return kindBuilder_ != null || kind_ != null;
- }
- /**
- * - * The kind to process. - *- * - *
.google.privacy.dlp.v2beta1.KindExpression kind = 2;
- */
- public com.google.privacy.dlp.v2beta1.KindExpression getKind() {
- if (kindBuilder_ == null) {
- return kind_ == null ? com.google.privacy.dlp.v2beta1.KindExpression.getDefaultInstance() : kind_;
- } else {
- return kindBuilder_.getMessage();
- }
- }
- /**
- * - * The kind to process. - *- * - *
.google.privacy.dlp.v2beta1.KindExpression kind = 2;
- */
- public Builder setKind(com.google.privacy.dlp.v2beta1.KindExpression value) {
- if (kindBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- kind_ = value;
- onChanged();
- } else {
- kindBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- * - * The kind to process. - *- * - *
.google.privacy.dlp.v2beta1.KindExpression kind = 2;
- */
- public Builder setKind(
- com.google.privacy.dlp.v2beta1.KindExpression.Builder builderForValue) {
- if (kindBuilder_ == null) {
- kind_ = builderForValue.build();
- onChanged();
- } else {
- kindBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- * - * The kind to process. - *- * - *
.google.privacy.dlp.v2beta1.KindExpression kind = 2;
- */
- public Builder mergeKind(com.google.privacy.dlp.v2beta1.KindExpression value) {
- if (kindBuilder_ == null) {
- if (kind_ != null) {
- kind_ =
- com.google.privacy.dlp.v2beta1.KindExpression.newBuilder(kind_).mergeFrom(value).buildPartial();
- } else {
- kind_ = value;
- }
- onChanged();
- } else {
- kindBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- * - * The kind to process. - *- * - *
.google.privacy.dlp.v2beta1.KindExpression kind = 2;
- */
- public Builder clearKind() {
- if (kindBuilder_ == null) {
- kind_ = null;
- onChanged();
- } else {
- kind_ = null;
- kindBuilder_ = null;
- }
-
- return this;
- }
- /**
- * - * The kind to process. - *- * - *
.google.privacy.dlp.v2beta1.KindExpression kind = 2;
- */
- public com.google.privacy.dlp.v2beta1.KindExpression.Builder getKindBuilder() {
-
- onChanged();
- return getKindFieldBuilder().getBuilder();
- }
- /**
- * - * The kind to process. - *- * - *
.google.privacy.dlp.v2beta1.KindExpression kind = 2;
- */
- public com.google.privacy.dlp.v2beta1.KindExpressionOrBuilder getKindOrBuilder() {
- if (kindBuilder_ != null) {
- return kindBuilder_.getMessageOrBuilder();
- } else {
- return kind_ == null ?
- com.google.privacy.dlp.v2beta1.KindExpression.getDefaultInstance() : kind_;
- }
- }
- /**
- * - * The kind to process. - *- * - *
.google.privacy.dlp.v2beta1.KindExpression kind = 2;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.KindExpression, com.google.privacy.dlp.v2beta1.KindExpression.Builder, com.google.privacy.dlp.v2beta1.KindExpressionOrBuilder>
- getKindFieldBuilder() {
- if (kindBuilder_ == null) {
- kindBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.google.privacy.dlp.v2beta1.KindExpression, com.google.privacy.dlp.v2beta1.KindExpression.Builder, com.google.privacy.dlp.v2beta1.KindExpressionOrBuilder>(
- getKind(),
- getParentForChildren(),
- isClean());
- kind_ = null;
- }
- return kindBuilder_;
- }
-
- private java.util.List- * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public java.util.List- * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public int getProjectionCount() {
- if (projectionBuilder_ == null) {
- return projection_.size();
- } else {
- return projectionBuilder_.getCount();
- }
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public com.google.privacy.dlp.v2beta1.Projection getProjection(int index) {
- if (projectionBuilder_ == null) {
- return projection_.get(index);
- } else {
- return projectionBuilder_.getMessage(index);
- }
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public Builder setProjection(
- int index, com.google.privacy.dlp.v2beta1.Projection value) {
- if (projectionBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureProjectionIsMutable();
- projection_.set(index, value);
- onChanged();
- } else {
- projectionBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public Builder setProjection(
- int index, com.google.privacy.dlp.v2beta1.Projection.Builder builderForValue) {
- if (projectionBuilder_ == null) {
- ensureProjectionIsMutable();
- projection_.set(index, builderForValue.build());
- onChanged();
- } else {
- projectionBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public Builder addProjection(com.google.privacy.dlp.v2beta1.Projection value) {
- if (projectionBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureProjectionIsMutable();
- projection_.add(value);
- onChanged();
- } else {
- projectionBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public Builder addProjection(
- int index, com.google.privacy.dlp.v2beta1.Projection value) {
- if (projectionBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureProjectionIsMutable();
- projection_.add(index, value);
- onChanged();
- } else {
- projectionBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public Builder addProjection(
- com.google.privacy.dlp.v2beta1.Projection.Builder builderForValue) {
- if (projectionBuilder_ == null) {
- ensureProjectionIsMutable();
- projection_.add(builderForValue.build());
- onChanged();
- } else {
- projectionBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public Builder addProjection(
- int index, com.google.privacy.dlp.v2beta1.Projection.Builder builderForValue) {
- if (projectionBuilder_ == null) {
- ensureProjectionIsMutable();
- projection_.add(index, builderForValue.build());
- onChanged();
- } else {
- projectionBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public Builder addAllProjection(
- java.lang.Iterable extends com.google.privacy.dlp.v2beta1.Projection> values) {
- if (projectionBuilder_ == null) {
- ensureProjectionIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, projection_);
- onChanged();
- } else {
- projectionBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public Builder clearProjection() {
- if (projectionBuilder_ == null) {
- projection_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- } else {
- projectionBuilder_.clear();
- }
- return this;
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public Builder removeProjection(int index) {
- if (projectionBuilder_ == null) {
- ensureProjectionIsMutable();
- projection_.remove(index);
- onChanged();
- } else {
- projectionBuilder_.remove(index);
- }
- return this;
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public com.google.privacy.dlp.v2beta1.Projection.Builder getProjectionBuilder(
- int index) {
- return getProjectionFieldBuilder().getBuilder(index);
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public com.google.privacy.dlp.v2beta1.ProjectionOrBuilder getProjectionOrBuilder(
- int index) {
- if (projectionBuilder_ == null) {
- return projection_.get(index); } else {
- return projectionBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public java.util.List extends com.google.privacy.dlp.v2beta1.ProjectionOrBuilder>
- getProjectionOrBuilderList() {
- if (projectionBuilder_ != null) {
- return projectionBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(projection_);
- }
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public com.google.privacy.dlp.v2beta1.Projection.Builder addProjectionBuilder() {
- return getProjectionFieldBuilder().addBuilder(
- com.google.privacy.dlp.v2beta1.Projection.getDefaultInstance());
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public com.google.privacy.dlp.v2beta1.Projection.Builder addProjectionBuilder(
- int index) {
- return getProjectionFieldBuilder().addBuilder(
- index, com.google.privacy.dlp.v2beta1.Projection.getDefaultInstance());
- }
- /**
- * - * Properties to scan. If none are specified, all properties will be scanned - * by default. - *- * - *
repeated .google.privacy.dlp.v2beta1.Projection projection = 3;
- */
- public java.util.List