All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.privacy.dlp.v2.DeidentifyDataSourceDetails Maven / Gradle / Ivy

There is a newer version: 3.53.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/privacy/dlp/v2/dlp.proto

// Protobuf Java Version: 3.25.4
package com.google.privacy.dlp.v2;

/**
 *
 *
 * 
 * The results of a [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action
 * from an inspect job.
 * 
* * Protobuf type {@code google.privacy.dlp.v2.DeidentifyDataSourceDetails} */ public final class DeidentifyDataSourceDetails extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DeidentifyDataSourceDetails) DeidentifyDataSourceDetailsOrBuilder { private static final long serialVersionUID = 0L; // Use DeidentifyDataSourceDetails.newBuilder() to construct. private DeidentifyDataSourceDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DeidentifyDataSourceDetails() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeidentifyDataSourceDetails(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DeidentifyDataSourceDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DeidentifyDataSourceDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.class, com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.Builder.class); } public interface RequestedDeidentifyOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions) com.google.protobuf.MessageOrBuilder { /** * * *
     * Snapshot of the state of the `DeidentifyTemplate` from the
     * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time
     * this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; * * @return Whether the snapshotDeidentifyTemplate field is set. */ boolean hasSnapshotDeidentifyTemplate(); /** * * *
     * Snapshot of the state of the `DeidentifyTemplate` from the
     * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time
     * this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; * * @return The snapshotDeidentifyTemplate. */ com.google.privacy.dlp.v2.DeidentifyTemplate getSnapshotDeidentifyTemplate(); /** * * *
     * Snapshot of the state of the `DeidentifyTemplate` from the
     * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time
     * this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; */ com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder getSnapshotDeidentifyTemplateOrBuilder(); /** * * *
     * Snapshot of the state of the structured `DeidentifyTemplate` from the
     * `Deidentify` action at the time this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; * * * @return Whether the snapshotStructuredDeidentifyTemplate field is set. */ boolean hasSnapshotStructuredDeidentifyTemplate(); /** * * *
     * Snapshot of the state of the structured `DeidentifyTemplate` from the
     * `Deidentify` action at the time this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; * * * @return The snapshotStructuredDeidentifyTemplate. */ com.google.privacy.dlp.v2.DeidentifyTemplate getSnapshotStructuredDeidentifyTemplate(); /** * * *
     * Snapshot of the state of the structured `DeidentifyTemplate` from the
     * `Deidentify` action at the time this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; * */ com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder getSnapshotStructuredDeidentifyTemplateOrBuilder(); /** * * *
     * Snapshot of the state of the image transformation `DeidentifyTemplate`
     * from the `Deidentify` action at the time this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; * * @return Whether the snapshotImageRedactTemplate field is set. */ boolean hasSnapshotImageRedactTemplate(); /** * * *
     * Snapshot of the state of the image transformation `DeidentifyTemplate`
     * from the `Deidentify` action at the time this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; * * @return The snapshotImageRedactTemplate. */ com.google.privacy.dlp.v2.DeidentifyTemplate getSnapshotImageRedactTemplate(); /** * * *
     * Snapshot of the state of the image transformation `DeidentifyTemplate`
     * from the `Deidentify` action at the time this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; */ com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder getSnapshotImageRedactTemplateOrBuilder(); } /** * * *
   * De-identification options.
   * 
* * Protobuf type {@code * google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions} */ public static final class RequestedDeidentifyOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions) RequestedDeidentifyOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use RequestedDeidentifyOptions.newBuilder() to construct. private RequestedDeidentifyOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestedDeidentifyOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RequestedDeidentifyOptions(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DeidentifyDataSourceDetails_RequestedDeidentifyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DeidentifyDataSourceDetails_RequestedDeidentifyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions .class, com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions .Builder.class); } private int bitField0_; public static final int SNAPSHOT_DEIDENTIFY_TEMPLATE_FIELD_NUMBER = 1; private com.google.privacy.dlp.v2.DeidentifyTemplate snapshotDeidentifyTemplate_; /** * * *
     * Snapshot of the state of the `DeidentifyTemplate` from the
     * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time
     * this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; * * @return Whether the snapshotDeidentifyTemplate field is set. */ @java.lang.Override public boolean hasSnapshotDeidentifyTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * Snapshot of the state of the `DeidentifyTemplate` from the
     * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time
     * this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; * * @return The snapshotDeidentifyTemplate. */ @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyTemplate getSnapshotDeidentifyTemplate() { return snapshotDeidentifyTemplate_ == null ? com.google.privacy.dlp.v2.DeidentifyTemplate.getDefaultInstance() : snapshotDeidentifyTemplate_; } /** * * *
     * Snapshot of the state of the `DeidentifyTemplate` from the
     * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time
     * this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; */ @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder getSnapshotDeidentifyTemplateOrBuilder() { return snapshotDeidentifyTemplate_ == null ? com.google.privacy.dlp.v2.DeidentifyTemplate.getDefaultInstance() : snapshotDeidentifyTemplate_; } public static final int SNAPSHOT_STRUCTURED_DEIDENTIFY_TEMPLATE_FIELD_NUMBER = 2; private com.google.privacy.dlp.v2.DeidentifyTemplate snapshotStructuredDeidentifyTemplate_; /** * * *
     * Snapshot of the state of the structured `DeidentifyTemplate` from the
     * `Deidentify` action at the time this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; * * * @return Whether the snapshotStructuredDeidentifyTemplate field is set. */ @java.lang.Override public boolean hasSnapshotStructuredDeidentifyTemplate() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Snapshot of the state of the structured `DeidentifyTemplate` from the
     * `Deidentify` action at the time this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; * * * @return The snapshotStructuredDeidentifyTemplate. */ @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyTemplate getSnapshotStructuredDeidentifyTemplate() { return snapshotStructuredDeidentifyTemplate_ == null ? com.google.privacy.dlp.v2.DeidentifyTemplate.getDefaultInstance() : snapshotStructuredDeidentifyTemplate_; } /** * * *
     * Snapshot of the state of the structured `DeidentifyTemplate` from the
     * `Deidentify` action at the time this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; * */ @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder getSnapshotStructuredDeidentifyTemplateOrBuilder() { return snapshotStructuredDeidentifyTemplate_ == null ? com.google.privacy.dlp.v2.DeidentifyTemplate.getDefaultInstance() : snapshotStructuredDeidentifyTemplate_; } public static final int SNAPSHOT_IMAGE_REDACT_TEMPLATE_FIELD_NUMBER = 3; private com.google.privacy.dlp.v2.DeidentifyTemplate snapshotImageRedactTemplate_; /** * * *
     * Snapshot of the state of the image transformation `DeidentifyTemplate`
     * from the `Deidentify` action at the time this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; * * @return Whether the snapshotImageRedactTemplate field is set. */ @java.lang.Override public boolean hasSnapshotImageRedactTemplate() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Snapshot of the state of the image transformation `DeidentifyTemplate`
     * from the `Deidentify` action at the time this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; * * @return The snapshotImageRedactTemplate. */ @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyTemplate getSnapshotImageRedactTemplate() { return snapshotImageRedactTemplate_ == null ? com.google.privacy.dlp.v2.DeidentifyTemplate.getDefaultInstance() : snapshotImageRedactTemplate_; } /** * * *
     * Snapshot of the state of the image transformation `DeidentifyTemplate`
     * from the `Deidentify` action at the time this job was run.
     * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; */ @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder getSnapshotImageRedactTemplateOrBuilder() { return snapshotImageRedactTemplate_ == null ? com.google.privacy.dlp.v2.DeidentifyTemplate.getDefaultInstance() : snapshotImageRedactTemplate_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSnapshotDeidentifyTemplate()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getSnapshotStructuredDeidentifyTemplate()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getSnapshotImageRedactTemplate()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 1, getSnapshotDeidentifyTemplate()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 2, getSnapshotStructuredDeidentifyTemplate()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 3, getSnapshotImageRedactTemplate()); } size += getUnknownFields().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.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions)) { return super.equals(obj); } com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions other = (com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions) obj; if (hasSnapshotDeidentifyTemplate() != other.hasSnapshotDeidentifyTemplate()) return false; if (hasSnapshotDeidentifyTemplate()) { if (!getSnapshotDeidentifyTemplate().equals(other.getSnapshotDeidentifyTemplate())) return false; } if (hasSnapshotStructuredDeidentifyTemplate() != other.hasSnapshotStructuredDeidentifyTemplate()) return false; if (hasSnapshotStructuredDeidentifyTemplate()) { if (!getSnapshotStructuredDeidentifyTemplate() .equals(other.getSnapshotStructuredDeidentifyTemplate())) return false; } if (hasSnapshotImageRedactTemplate() != other.hasSnapshotImageRedactTemplate()) return false; if (hasSnapshotImageRedactTemplate()) { if (!getSnapshotImageRedactTemplate().equals(other.getSnapshotImageRedactTemplate())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasSnapshotDeidentifyTemplate()) { hash = (37 * hash) + SNAPSHOT_DEIDENTIFY_TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getSnapshotDeidentifyTemplate().hashCode(); } if (hasSnapshotStructuredDeidentifyTemplate()) { hash = (37 * hash) + SNAPSHOT_STRUCTURED_DEIDENTIFY_TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getSnapshotStructuredDeidentifyTemplate().hashCode(); } if (hasSnapshotImageRedactTemplate()) { hash = (37 * hash) + SNAPSHOT_IMAGE_REDACT_TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getSnapshotImageRedactTemplate().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions 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.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions 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.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions 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.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions 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.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * * *
     * De-identification options.
     * 
* * Protobuf type {@code * google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions) com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DeidentifyDataSourceDetails_RequestedDeidentifyOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DeidentifyDataSourceDetails_RequestedDeidentifyOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions .class, com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions .Builder.class); } // Construct using // com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSnapshotDeidentifyTemplateFieldBuilder(); getSnapshotStructuredDeidentifyTemplateFieldBuilder(); getSnapshotImageRedactTemplateFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; snapshotDeidentifyTemplate_ = null; if (snapshotDeidentifyTemplateBuilder_ != null) { snapshotDeidentifyTemplateBuilder_.dispose(); snapshotDeidentifyTemplateBuilder_ = null; } snapshotStructuredDeidentifyTemplate_ = null; if (snapshotStructuredDeidentifyTemplateBuilder_ != null) { snapshotStructuredDeidentifyTemplateBuilder_.dispose(); snapshotStructuredDeidentifyTemplateBuilder_ = null; } snapshotImageRedactTemplate_ = null; if (snapshotImageRedactTemplateBuilder_ != null) { snapshotImageRedactTemplateBuilder_.dispose(); snapshotImageRedactTemplateBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DeidentifyDataSourceDetails_RequestedDeidentifyOptions_descriptor; } @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions getDefaultInstanceForType() { return com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions .getDefaultInstance(); } @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions build() { com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions buildPartial() { com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions result = new com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions( this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.snapshotDeidentifyTemplate_ = snapshotDeidentifyTemplateBuilder_ == null ? snapshotDeidentifyTemplate_ : snapshotDeidentifyTemplateBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.snapshotStructuredDeidentifyTemplate_ = snapshotStructuredDeidentifyTemplateBuilder_ == null ? snapshotStructuredDeidentifyTemplate_ : snapshotStructuredDeidentifyTemplateBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.snapshotImageRedactTemplate_ = snapshotImageRedactTemplateBuilder_ == null ? snapshotImageRedactTemplate_ : snapshotImageRedactTemplateBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions) { return mergeFrom( (com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions other) { if (other == com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions .getDefaultInstance()) return this; if (other.hasSnapshotDeidentifyTemplate()) { mergeSnapshotDeidentifyTemplate(other.getSnapshotDeidentifyTemplate()); } if (other.hasSnapshotStructuredDeidentifyTemplate()) { mergeSnapshotStructuredDeidentifyTemplate( other.getSnapshotStructuredDeidentifyTemplate()); } if (other.hasSnapshotImageRedactTemplate()) { mergeSnapshotImageRedactTemplate(other.getSnapshotImageRedactTemplate()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getSnapshotDeidentifyTemplateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getSnapshotStructuredDeidentifyTemplateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getSnapshotImageRedactTemplateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.privacy.dlp.v2.DeidentifyTemplate snapshotDeidentifyTemplate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DeidentifyTemplate, com.google.privacy.dlp.v2.DeidentifyTemplate.Builder, com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder> snapshotDeidentifyTemplateBuilder_; /** * * *
       * Snapshot of the state of the `DeidentifyTemplate` from the
       * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time
       * this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; * * @return Whether the snapshotDeidentifyTemplate field is set. */ public boolean hasSnapshotDeidentifyTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * Snapshot of the state of the `DeidentifyTemplate` from the
       * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time
       * this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; * * @return The snapshotDeidentifyTemplate. */ public com.google.privacy.dlp.v2.DeidentifyTemplate getSnapshotDeidentifyTemplate() { if (snapshotDeidentifyTemplateBuilder_ == null) { return snapshotDeidentifyTemplate_ == null ? com.google.privacy.dlp.v2.DeidentifyTemplate.getDefaultInstance() : snapshotDeidentifyTemplate_; } else { return snapshotDeidentifyTemplateBuilder_.getMessage(); } } /** * * *
       * Snapshot of the state of the `DeidentifyTemplate` from the
       * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time
       * this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; */ public Builder setSnapshotDeidentifyTemplate( com.google.privacy.dlp.v2.DeidentifyTemplate value) { if (snapshotDeidentifyTemplateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } snapshotDeidentifyTemplate_ = value; } else { snapshotDeidentifyTemplateBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Snapshot of the state of the `DeidentifyTemplate` from the
       * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time
       * this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; */ public Builder setSnapshotDeidentifyTemplate( com.google.privacy.dlp.v2.DeidentifyTemplate.Builder builderForValue) { if (snapshotDeidentifyTemplateBuilder_ == null) { snapshotDeidentifyTemplate_ = builderForValue.build(); } else { snapshotDeidentifyTemplateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Snapshot of the state of the `DeidentifyTemplate` from the
       * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time
       * this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; */ public Builder mergeSnapshotDeidentifyTemplate( com.google.privacy.dlp.v2.DeidentifyTemplate value) { if (snapshotDeidentifyTemplateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && snapshotDeidentifyTemplate_ != null && snapshotDeidentifyTemplate_ != com.google.privacy.dlp.v2.DeidentifyTemplate.getDefaultInstance()) { getSnapshotDeidentifyTemplateBuilder().mergeFrom(value); } else { snapshotDeidentifyTemplate_ = value; } } else { snapshotDeidentifyTemplateBuilder_.mergeFrom(value); } if (snapshotDeidentifyTemplate_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
       * Snapshot of the state of the `DeidentifyTemplate` from the
       * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time
       * this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; */ public Builder clearSnapshotDeidentifyTemplate() { bitField0_ = (bitField0_ & ~0x00000001); snapshotDeidentifyTemplate_ = null; if (snapshotDeidentifyTemplateBuilder_ != null) { snapshotDeidentifyTemplateBuilder_.dispose(); snapshotDeidentifyTemplateBuilder_ = null; } onChanged(); return this; } /** * * *
       * Snapshot of the state of the `DeidentifyTemplate` from the
       * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time
       * this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; */ public com.google.privacy.dlp.v2.DeidentifyTemplate.Builder getSnapshotDeidentifyTemplateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSnapshotDeidentifyTemplateFieldBuilder().getBuilder(); } /** * * *
       * Snapshot of the state of the `DeidentifyTemplate` from the
       * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time
       * this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; */ public com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder getSnapshotDeidentifyTemplateOrBuilder() { if (snapshotDeidentifyTemplateBuilder_ != null) { return snapshotDeidentifyTemplateBuilder_.getMessageOrBuilder(); } else { return snapshotDeidentifyTemplate_ == null ? com.google.privacy.dlp.v2.DeidentifyTemplate.getDefaultInstance() : snapshotDeidentifyTemplate_; } } /** * * *
       * Snapshot of the state of the `DeidentifyTemplate` from the
       * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time
       * this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DeidentifyTemplate, com.google.privacy.dlp.v2.DeidentifyTemplate.Builder, com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder> getSnapshotDeidentifyTemplateFieldBuilder() { if (snapshotDeidentifyTemplateBuilder_ == null) { snapshotDeidentifyTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DeidentifyTemplate, com.google.privacy.dlp.v2.DeidentifyTemplate.Builder, com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder>( getSnapshotDeidentifyTemplate(), getParentForChildren(), isClean()); snapshotDeidentifyTemplate_ = null; } return snapshotDeidentifyTemplateBuilder_; } private com.google.privacy.dlp.v2.DeidentifyTemplate snapshotStructuredDeidentifyTemplate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DeidentifyTemplate, com.google.privacy.dlp.v2.DeidentifyTemplate.Builder, com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder> snapshotStructuredDeidentifyTemplateBuilder_; /** * * *
       * Snapshot of the state of the structured `DeidentifyTemplate` from the
       * `Deidentify` action at the time this job was run.
       * 
* * * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; * * * @return Whether the snapshotStructuredDeidentifyTemplate field is set. */ public boolean hasSnapshotStructuredDeidentifyTemplate() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
       * Snapshot of the state of the structured `DeidentifyTemplate` from the
       * `Deidentify` action at the time this job was run.
       * 
* * * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; * * * @return The snapshotStructuredDeidentifyTemplate. */ public com.google.privacy.dlp.v2.DeidentifyTemplate getSnapshotStructuredDeidentifyTemplate() { if (snapshotStructuredDeidentifyTemplateBuilder_ == null) { return snapshotStructuredDeidentifyTemplate_ == null ? com.google.privacy.dlp.v2.DeidentifyTemplate.getDefaultInstance() : snapshotStructuredDeidentifyTemplate_; } else { return snapshotStructuredDeidentifyTemplateBuilder_.getMessage(); } } /** * * *
       * Snapshot of the state of the structured `DeidentifyTemplate` from the
       * `Deidentify` action at the time this job was run.
       * 
* * * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; * */ public Builder setSnapshotStructuredDeidentifyTemplate( com.google.privacy.dlp.v2.DeidentifyTemplate value) { if (snapshotStructuredDeidentifyTemplateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } snapshotStructuredDeidentifyTemplate_ = value; } else { snapshotStructuredDeidentifyTemplateBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Snapshot of the state of the structured `DeidentifyTemplate` from the
       * `Deidentify` action at the time this job was run.
       * 
* * * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; * */ public Builder setSnapshotStructuredDeidentifyTemplate( com.google.privacy.dlp.v2.DeidentifyTemplate.Builder builderForValue) { if (snapshotStructuredDeidentifyTemplateBuilder_ == null) { snapshotStructuredDeidentifyTemplate_ = builderForValue.build(); } else { snapshotStructuredDeidentifyTemplateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Snapshot of the state of the structured `DeidentifyTemplate` from the
       * `Deidentify` action at the time this job was run.
       * 
* * * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; * */ public Builder mergeSnapshotStructuredDeidentifyTemplate( com.google.privacy.dlp.v2.DeidentifyTemplate value) { if (snapshotStructuredDeidentifyTemplateBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && snapshotStructuredDeidentifyTemplate_ != null && snapshotStructuredDeidentifyTemplate_ != com.google.privacy.dlp.v2.DeidentifyTemplate.getDefaultInstance()) { getSnapshotStructuredDeidentifyTemplateBuilder().mergeFrom(value); } else { snapshotStructuredDeidentifyTemplate_ = value; } } else { snapshotStructuredDeidentifyTemplateBuilder_.mergeFrom(value); } if (snapshotStructuredDeidentifyTemplate_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
       * Snapshot of the state of the structured `DeidentifyTemplate` from the
       * `Deidentify` action at the time this job was run.
       * 
* * * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; * */ public Builder clearSnapshotStructuredDeidentifyTemplate() { bitField0_ = (bitField0_ & ~0x00000002); snapshotStructuredDeidentifyTemplate_ = null; if (snapshotStructuredDeidentifyTemplateBuilder_ != null) { snapshotStructuredDeidentifyTemplateBuilder_.dispose(); snapshotStructuredDeidentifyTemplateBuilder_ = null; } onChanged(); return this; } /** * * *
       * Snapshot of the state of the structured `DeidentifyTemplate` from the
       * `Deidentify` action at the time this job was run.
       * 
* * * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; * */ public com.google.privacy.dlp.v2.DeidentifyTemplate.Builder getSnapshotStructuredDeidentifyTemplateBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSnapshotStructuredDeidentifyTemplateFieldBuilder().getBuilder(); } /** * * *
       * Snapshot of the state of the structured `DeidentifyTemplate` from the
       * `Deidentify` action at the time this job was run.
       * 
* * * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; * */ public com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder getSnapshotStructuredDeidentifyTemplateOrBuilder() { if (snapshotStructuredDeidentifyTemplateBuilder_ != null) { return snapshotStructuredDeidentifyTemplateBuilder_.getMessageOrBuilder(); } else { return snapshotStructuredDeidentifyTemplate_ == null ? com.google.privacy.dlp.v2.DeidentifyTemplate.getDefaultInstance() : snapshotStructuredDeidentifyTemplate_; } } /** * * *
       * Snapshot of the state of the structured `DeidentifyTemplate` from the
       * `Deidentify` action at the time this job was run.
       * 
* * * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DeidentifyTemplate, com.google.privacy.dlp.v2.DeidentifyTemplate.Builder, com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder> getSnapshotStructuredDeidentifyTemplateFieldBuilder() { if (snapshotStructuredDeidentifyTemplateBuilder_ == null) { snapshotStructuredDeidentifyTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DeidentifyTemplate, com.google.privacy.dlp.v2.DeidentifyTemplate.Builder, com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder>( getSnapshotStructuredDeidentifyTemplate(), getParentForChildren(), isClean()); snapshotStructuredDeidentifyTemplate_ = null; } return snapshotStructuredDeidentifyTemplateBuilder_; } private com.google.privacy.dlp.v2.DeidentifyTemplate snapshotImageRedactTemplate_; private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DeidentifyTemplate, com.google.privacy.dlp.v2.DeidentifyTemplate.Builder, com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder> snapshotImageRedactTemplateBuilder_; /** * * *
       * Snapshot of the state of the image transformation `DeidentifyTemplate`
       * from the `Deidentify` action at the time this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; * * @return Whether the snapshotImageRedactTemplate field is set. */ public boolean hasSnapshotImageRedactTemplate() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
       * Snapshot of the state of the image transformation `DeidentifyTemplate`
       * from the `Deidentify` action at the time this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; * * @return The snapshotImageRedactTemplate. */ public com.google.privacy.dlp.v2.DeidentifyTemplate getSnapshotImageRedactTemplate() { if (snapshotImageRedactTemplateBuilder_ == null) { return snapshotImageRedactTemplate_ == null ? com.google.privacy.dlp.v2.DeidentifyTemplate.getDefaultInstance() : snapshotImageRedactTemplate_; } else { return snapshotImageRedactTemplateBuilder_.getMessage(); } } /** * * *
       * Snapshot of the state of the image transformation `DeidentifyTemplate`
       * from the `Deidentify` action at the time this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; */ public Builder setSnapshotImageRedactTemplate( com.google.privacy.dlp.v2.DeidentifyTemplate value) { if (snapshotImageRedactTemplateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } snapshotImageRedactTemplate_ = value; } else { snapshotImageRedactTemplateBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Snapshot of the state of the image transformation `DeidentifyTemplate`
       * from the `Deidentify` action at the time this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; */ public Builder setSnapshotImageRedactTemplate( com.google.privacy.dlp.v2.DeidentifyTemplate.Builder builderForValue) { if (snapshotImageRedactTemplateBuilder_ == null) { snapshotImageRedactTemplate_ = builderForValue.build(); } else { snapshotImageRedactTemplateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * Snapshot of the state of the image transformation `DeidentifyTemplate`
       * from the `Deidentify` action at the time this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; */ public Builder mergeSnapshotImageRedactTemplate( com.google.privacy.dlp.v2.DeidentifyTemplate value) { if (snapshotImageRedactTemplateBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && snapshotImageRedactTemplate_ != null && snapshotImageRedactTemplate_ != com.google.privacy.dlp.v2.DeidentifyTemplate.getDefaultInstance()) { getSnapshotImageRedactTemplateBuilder().mergeFrom(value); } else { snapshotImageRedactTemplate_ = value; } } else { snapshotImageRedactTemplateBuilder_.mergeFrom(value); } if (snapshotImageRedactTemplate_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
       * Snapshot of the state of the image transformation `DeidentifyTemplate`
       * from the `Deidentify` action at the time this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; */ public Builder clearSnapshotImageRedactTemplate() { bitField0_ = (bitField0_ & ~0x00000004); snapshotImageRedactTemplate_ = null; if (snapshotImageRedactTemplateBuilder_ != null) { snapshotImageRedactTemplateBuilder_.dispose(); snapshotImageRedactTemplateBuilder_ = null; } onChanged(); return this; } /** * * *
       * Snapshot of the state of the image transformation `DeidentifyTemplate`
       * from the `Deidentify` action at the time this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; */ public com.google.privacy.dlp.v2.DeidentifyTemplate.Builder getSnapshotImageRedactTemplateBuilder() { bitField0_ |= 0x00000004; onChanged(); return getSnapshotImageRedactTemplateFieldBuilder().getBuilder(); } /** * * *
       * Snapshot of the state of the image transformation `DeidentifyTemplate`
       * from the `Deidentify` action at the time this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; */ public com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder getSnapshotImageRedactTemplateOrBuilder() { if (snapshotImageRedactTemplateBuilder_ != null) { return snapshotImageRedactTemplateBuilder_.getMessageOrBuilder(); } else { return snapshotImageRedactTemplate_ == null ? com.google.privacy.dlp.v2.DeidentifyTemplate.getDefaultInstance() : snapshotImageRedactTemplate_; } } /** * * *
       * Snapshot of the state of the image transformation `DeidentifyTemplate`
       * from the `Deidentify` action at the time this job was run.
       * 
* * .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DeidentifyTemplate, com.google.privacy.dlp.v2.DeidentifyTemplate.Builder, com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder> getSnapshotImageRedactTemplateFieldBuilder() { if (snapshotImageRedactTemplateBuilder_ == null) { snapshotImageRedactTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DeidentifyTemplate, com.google.privacy.dlp.v2.DeidentifyTemplate.Builder, com.google.privacy.dlp.v2.DeidentifyTemplateOrBuilder>( getSnapshotImageRedactTemplate(), getParentForChildren(), isClean()); snapshotImageRedactTemplate_ = null; } return snapshotImageRedactTemplateBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions) } // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions) private static final com.google.privacy.dlp.v2.DeidentifyDataSourceDetails .RequestedDeidentifyOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions(); } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestedDeidentifyOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int REQUESTED_OPTIONS_FIELD_NUMBER = 1; private com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requestedOptions_; /** * * *
   * De-identification config used for the request.
   * 
* * * .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; * * * @return Whether the requestedOptions field is set. */ @java.lang.Override public boolean hasRequestedOptions() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * De-identification config used for the request.
   * 
* * * .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; * * * @return The requestedOptions. */ @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions getRequestedOptions() { return requestedOptions_ == null ? com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions .getDefaultInstance() : requestedOptions_; } /** * * *
   * De-identification config used for the request.
   * 
* * * .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; * */ @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptionsOrBuilder getRequestedOptionsOrBuilder() { return requestedOptions_ == null ? com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions .getDefaultInstance() : requestedOptions_; } public static final int DEIDENTIFY_STATS_FIELD_NUMBER = 2; private com.google.privacy.dlp.v2.DeidentifyDataSourceStats deidentifyStats_; /** * * *
   * Stats about the de-identification operation.
   * 
* * .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; * * @return Whether the deidentifyStats field is set. */ @java.lang.Override public boolean hasDeidentifyStats() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Stats about the de-identification operation.
   * 
* * .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; * * @return The deidentifyStats. */ @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyDataSourceStats getDeidentifyStats() { return deidentifyStats_ == null ? com.google.privacy.dlp.v2.DeidentifyDataSourceStats.getDefaultInstance() : deidentifyStats_; } /** * * *
   * Stats about the de-identification operation.
   * 
* * .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; */ @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyDataSourceStatsOrBuilder getDeidentifyStatsOrBuilder() { return deidentifyStats_ == null ? com.google.privacy.dlp.v2.DeidentifyDataSourceStats.getDefaultInstance() : deidentifyStats_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getRequestedOptions()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getDeidentifyStats()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRequestedOptions()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeidentifyStats()); } size += getUnknownFields().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.v2.DeidentifyDataSourceDetails)) { return super.equals(obj); } com.google.privacy.dlp.v2.DeidentifyDataSourceDetails other = (com.google.privacy.dlp.v2.DeidentifyDataSourceDetails) obj; if (hasRequestedOptions() != other.hasRequestedOptions()) return false; if (hasRequestedOptions()) { if (!getRequestedOptions().equals(other.getRequestedOptions())) return false; } if (hasDeidentifyStats() != other.hasDeidentifyStats()) return false; if (hasDeidentifyStats()) { if (!getDeidentifyStats().equals(other.getDeidentifyStats())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRequestedOptions()) { hash = (37 * hash) + REQUESTED_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getRequestedOptions().hashCode(); } if (hasDeidentifyStats()) { hash = (37 * hash) + DEIDENTIFY_STATS_FIELD_NUMBER; hash = (53 * hash) + getDeidentifyStats().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails 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.v2.DeidentifyDataSourceDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails 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.v2.DeidentifyDataSourceDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails 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.v2.DeidentifyDataSourceDetails parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails 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.v2.DeidentifyDataSourceDetails parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.privacy.dlp.v2.DeidentifyDataSourceDetails prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override 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; } /** * * *
   * The results of a [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action
   * from an inspect job.
   * 
* * Protobuf type {@code google.privacy.dlp.v2.DeidentifyDataSourceDetails} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DeidentifyDataSourceDetails) com.google.privacy.dlp.v2.DeidentifyDataSourceDetailsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DeidentifyDataSourceDetails_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DeidentifyDataSourceDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.class, com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.Builder.class); } // Construct using com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRequestedOptionsFieldBuilder(); getDeidentifyStatsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; requestedOptions_ = null; if (requestedOptionsBuilder_ != null) { requestedOptionsBuilder_.dispose(); requestedOptionsBuilder_ = null; } deidentifyStats_ = null; if (deidentifyStatsBuilder_ != null) { deidentifyStatsBuilder_.dispose(); deidentifyStatsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.privacy.dlp.v2.DlpProto .internal_static_google_privacy_dlp_v2_DeidentifyDataSourceDetails_descriptor; } @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyDataSourceDetails getDefaultInstanceForType() { return com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.getDefaultInstance(); } @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyDataSourceDetails build() { com.google.privacy.dlp.v2.DeidentifyDataSourceDetails result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyDataSourceDetails buildPartial() { com.google.privacy.dlp.v2.DeidentifyDataSourceDetails result = new com.google.privacy.dlp.v2.DeidentifyDataSourceDetails(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.privacy.dlp.v2.DeidentifyDataSourceDetails result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.requestedOptions_ = requestedOptionsBuilder_ == null ? requestedOptions_ : requestedOptionsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.deidentifyStats_ = deidentifyStatsBuilder_ == null ? deidentifyStats_ : deidentifyStatsBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.privacy.dlp.v2.DeidentifyDataSourceDetails) { return mergeFrom((com.google.privacy.dlp.v2.DeidentifyDataSourceDetails) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.privacy.dlp.v2.DeidentifyDataSourceDetails other) { if (other == com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.getDefaultInstance()) return this; if (other.hasRequestedOptions()) { mergeRequestedOptions(other.getRequestedOptions()); } if (other.hasDeidentifyStats()) { mergeDeidentifyStats(other.getDeidentifyStats()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getRequestedOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getDeidentifyStatsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requestedOptions_; private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions, com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions .Builder, com.google.privacy.dlp.v2.DeidentifyDataSourceDetails .RequestedDeidentifyOptionsOrBuilder> requestedOptionsBuilder_; /** * * *
     * De-identification config used for the request.
     * 
* * * .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; * * * @return Whether the requestedOptions field is set. */ public boolean hasRequestedOptions() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * De-identification config used for the request.
     * 
* * * .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; * * * @return The requestedOptions. */ public com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions getRequestedOptions() { if (requestedOptionsBuilder_ == null) { return requestedOptions_ == null ? com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions .getDefaultInstance() : requestedOptions_; } else { return requestedOptionsBuilder_.getMessage(); } } /** * * *
     * De-identification config used for the request.
     * 
* * * .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; * */ public Builder setRequestedOptions( com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions value) { if (requestedOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } requestedOptions_ = value; } else { requestedOptionsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * De-identification config used for the request.
     * 
* * * .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; * */ public Builder setRequestedOptions( com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions.Builder builderForValue) { if (requestedOptionsBuilder_ == null) { requestedOptions_ = builderForValue.build(); } else { requestedOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * De-identification config used for the request.
     * 
* * * .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; * */ public Builder mergeRequestedOptions( com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions value) { if (requestedOptionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && requestedOptions_ != null && requestedOptions_ != com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions .getDefaultInstance()) { getRequestedOptionsBuilder().mergeFrom(value); } else { requestedOptions_ = value; } } else { requestedOptionsBuilder_.mergeFrom(value); } if (requestedOptions_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
     * De-identification config used for the request.
     * 
* * * .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; * */ public Builder clearRequestedOptions() { bitField0_ = (bitField0_ & ~0x00000001); requestedOptions_ = null; if (requestedOptionsBuilder_ != null) { requestedOptionsBuilder_.dispose(); requestedOptionsBuilder_ = null; } onChanged(); return this; } /** * * *
     * De-identification config used for the request.
     * 
* * * .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; * */ public com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions.Builder getRequestedOptionsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getRequestedOptionsFieldBuilder().getBuilder(); } /** * * *
     * De-identification config used for the request.
     * 
* * * .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; * */ public com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptionsOrBuilder getRequestedOptionsOrBuilder() { if (requestedOptionsBuilder_ != null) { return requestedOptionsBuilder_.getMessageOrBuilder(); } else { return requestedOptions_ == null ? com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions .getDefaultInstance() : requestedOptions_; } } /** * * *
     * De-identification config used for the request.
     * 
* * * .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions, com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions .Builder, com.google.privacy.dlp.v2.DeidentifyDataSourceDetails .RequestedDeidentifyOptionsOrBuilder> getRequestedOptionsFieldBuilder() { if (requestedOptionsBuilder_ == null) { requestedOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions, com.google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions .Builder, com.google.privacy.dlp.v2.DeidentifyDataSourceDetails .RequestedDeidentifyOptionsOrBuilder>( getRequestedOptions(), getParentForChildren(), isClean()); requestedOptions_ = null; } return requestedOptionsBuilder_; } private com.google.privacy.dlp.v2.DeidentifyDataSourceStats deidentifyStats_; private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DeidentifyDataSourceStats, com.google.privacy.dlp.v2.DeidentifyDataSourceStats.Builder, com.google.privacy.dlp.v2.DeidentifyDataSourceStatsOrBuilder> deidentifyStatsBuilder_; /** * * *
     * Stats about the de-identification operation.
     * 
* * .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; * * @return Whether the deidentifyStats field is set. */ public boolean hasDeidentifyStats() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Stats about the de-identification operation.
     * 
* * .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; * * @return The deidentifyStats. */ public com.google.privacy.dlp.v2.DeidentifyDataSourceStats getDeidentifyStats() { if (deidentifyStatsBuilder_ == null) { return deidentifyStats_ == null ? com.google.privacy.dlp.v2.DeidentifyDataSourceStats.getDefaultInstance() : deidentifyStats_; } else { return deidentifyStatsBuilder_.getMessage(); } } /** * * *
     * Stats about the de-identification operation.
     * 
* * .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; */ public Builder setDeidentifyStats(com.google.privacy.dlp.v2.DeidentifyDataSourceStats value) { if (deidentifyStatsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } deidentifyStats_ = value; } else { deidentifyStatsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Stats about the de-identification operation.
     * 
* * .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; */ public Builder setDeidentifyStats( com.google.privacy.dlp.v2.DeidentifyDataSourceStats.Builder builderForValue) { if (deidentifyStatsBuilder_ == null) { deidentifyStats_ = builderForValue.build(); } else { deidentifyStatsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Stats about the de-identification operation.
     * 
* * .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; */ public Builder mergeDeidentifyStats(com.google.privacy.dlp.v2.DeidentifyDataSourceStats value) { if (deidentifyStatsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && deidentifyStats_ != null && deidentifyStats_ != com.google.privacy.dlp.v2.DeidentifyDataSourceStats.getDefaultInstance()) { getDeidentifyStatsBuilder().mergeFrom(value); } else { deidentifyStats_ = value; } } else { deidentifyStatsBuilder_.mergeFrom(value); } if (deidentifyStats_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * Stats about the de-identification operation.
     * 
* * .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; */ public Builder clearDeidentifyStats() { bitField0_ = (bitField0_ & ~0x00000002); deidentifyStats_ = null; if (deidentifyStatsBuilder_ != null) { deidentifyStatsBuilder_.dispose(); deidentifyStatsBuilder_ = null; } onChanged(); return this; } /** * * *
     * Stats about the de-identification operation.
     * 
* * .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; */ public com.google.privacy.dlp.v2.DeidentifyDataSourceStats.Builder getDeidentifyStatsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getDeidentifyStatsFieldBuilder().getBuilder(); } /** * * *
     * Stats about the de-identification operation.
     * 
* * .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; */ public com.google.privacy.dlp.v2.DeidentifyDataSourceStatsOrBuilder getDeidentifyStatsOrBuilder() { if (deidentifyStatsBuilder_ != null) { return deidentifyStatsBuilder_.getMessageOrBuilder(); } else { return deidentifyStats_ == null ? com.google.privacy.dlp.v2.DeidentifyDataSourceStats.getDefaultInstance() : deidentifyStats_; } } /** * * *
     * Stats about the de-identification operation.
     * 
* * .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DeidentifyDataSourceStats, com.google.privacy.dlp.v2.DeidentifyDataSourceStats.Builder, com.google.privacy.dlp.v2.DeidentifyDataSourceStatsOrBuilder> getDeidentifyStatsFieldBuilder() { if (deidentifyStatsBuilder_ == null) { deidentifyStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DeidentifyDataSourceStats, com.google.privacy.dlp.v2.DeidentifyDataSourceStats.Builder, com.google.privacy.dlp.v2.DeidentifyDataSourceStatsOrBuilder>( getDeidentifyStats(), getParentForChildren(), isClean()); deidentifyStats_ = null; } return deidentifyStatsBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.privacy.dlp.v2.DeidentifyDataSourceDetails) } // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DeidentifyDataSourceDetails) private static final com.google.privacy.dlp.v2.DeidentifyDataSourceDetails DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DeidentifyDataSourceDetails(); } public static com.google.privacy.dlp.v2.DeidentifyDataSourceDetails getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DeidentifyDataSourceDetails parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.privacy.dlp.v2.DeidentifyDataSourceDetails getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy