com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-dlp-v2 Show documentation
Show all versions of proto-google-cloud-dlp-v2 Show documentation
PROTO library for proto-google-cloud-dlp-v2
/*
* 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;
/**
*
*
*
* Target used to match against for discovery of resources from other clouds.
* An [AWS connector in Security Command Center
* (Enterprise](https://cloud.google.com/security-command-center/docs/connect-scc-to-aws)
* is required to use this feature.
*
*
* Protobuf type {@code google.privacy.dlp.v2.OtherCloudDiscoveryTarget}
*/
public final class OtherCloudDiscoveryTarget extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.OtherCloudDiscoveryTarget)
OtherCloudDiscoveryTargetOrBuilder {
private static final long serialVersionUID = 0L;
// Use OtherCloudDiscoveryTarget.newBuilder() to construct.
private OtherCloudDiscoveryTarget(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OtherCloudDiscoveryTarget() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new OtherCloudDiscoveryTarget();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.privacy.dlp.v2.DlpProto
.internal_static_google_privacy_dlp_v2_OtherCloudDiscoveryTarget_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.privacy.dlp.v2.DlpProto
.internal_static_google_privacy_dlp_v2_OtherCloudDiscoveryTarget_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget.class,
com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget.Builder.class);
}
private int bitField0_;
private int cadenceCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object cadence_;
public enum CadenceCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
GENERATION_CADENCE(4),
DISABLED(5),
CADENCE_NOT_SET(0);
private final int value;
private CadenceCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CadenceCase valueOf(int value) {
return forNumber(value);
}
public static CadenceCase forNumber(int value) {
switch (value) {
case 4:
return GENERATION_CADENCE;
case 5:
return DISABLED;
case 0:
return CADENCE_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public CadenceCase getCadenceCase() {
return CadenceCase.forNumber(cadenceCase_);
}
public static final int DATA_SOURCE_TYPE_FIELD_NUMBER = 1;
private com.google.privacy.dlp.v2.DataSourceType dataSourceType_;
/**
*
*
*
* Required. The type of data profiles generated by this discovery target.
* Supported values are:
* * aws/s3/bucket
*
*
*
* .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the dataSourceType field is set.
*/
@java.lang.Override
public boolean hasDataSourceType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Required. The type of data profiles generated by this discovery target.
* Supported values are:
* * aws/s3/bucket
*
*
*
* .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The dataSourceType.
*/
@java.lang.Override
public com.google.privacy.dlp.v2.DataSourceType getDataSourceType() {
return dataSourceType_ == null
? com.google.privacy.dlp.v2.DataSourceType.getDefaultInstance()
: dataSourceType_;
}
/**
*
*
*
* Required. The type of data profiles generated by this discovery target.
* Supported values are:
* * aws/s3/bucket
*
*
*
* .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public com.google.privacy.dlp.v2.DataSourceTypeOrBuilder getDataSourceTypeOrBuilder() {
return dataSourceType_ == null
? com.google.privacy.dlp.v2.DataSourceType.getDefaultInstance()
: dataSourceType_;
}
public static final int FILTER_FIELD_NUMBER = 2;
private com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter_;
/**
*
*
*
* Required. The resources that the discovery cadence applies to. The
* first target with a matching filter will be the one to apply to a resource.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the filter field is set.
*/
@java.lang.Override
public boolean hasFilter() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Required. The resources that the discovery cadence applies to. The
* first target with a matching filter will be the one to apply to a resource.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The filter.
*/
@java.lang.Override
public com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter getFilter() {
return filter_ == null
? com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter.getDefaultInstance()
: filter_;
}
/**
*
*
*
* Required. The resources that the discovery cadence applies to. The
* first target with a matching filter will be the one to apply to a resource.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
@java.lang.Override
public com.google.privacy.dlp.v2.DiscoveryOtherCloudFilterOrBuilder getFilterOrBuilder() {
return filter_ == null
? com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter.getDefaultInstance()
: filter_;
}
public static final int CONDITIONS_FIELD_NUMBER = 3;
private com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions_;
/**
*
*
*
* Optional. In addition to matching the filter, these conditions must be true
* before a profile is generated.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the conditions field is set.
*/
@java.lang.Override
public boolean hasConditions() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Optional. In addition to matching the filter, these conditions must be true
* before a profile is generated.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The conditions.
*/
@java.lang.Override
public com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions getConditions() {
return conditions_ == null
? com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions.getDefaultInstance()
: conditions_;
}
/**
*
*
*
* Optional. In addition to matching the filter, these conditions must be true
* before a profile is generated.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.privacy.dlp.v2.DiscoveryOtherCloudConditionsOrBuilder getConditionsOrBuilder() {
return conditions_ == null
? com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions.getDefaultInstance()
: conditions_;
}
public static final int GENERATION_CADENCE_FIELD_NUMBER = 4;
/**
*
*
*
* How often and when to update data profiles. New resources that match both
* the filter and conditions are scanned as quickly as possible depending on
* system capacity.
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4;
*
*
* @return Whether the generationCadence field is set.
*/
@java.lang.Override
public boolean hasGenerationCadence() {
return cadenceCase_ == 4;
}
/**
*
*
*
* How often and when to update data profiles. New resources that match both
* the filter and conditions are scanned as quickly as possible depending on
* system capacity.
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4;
*
*
* @return The generationCadence.
*/
@java.lang.Override
public com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence getGenerationCadence() {
if (cadenceCase_ == 4) {
return (com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence) cadence_;
}
return com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence.getDefaultInstance();
}
/**
*
*
*
* How often and when to update data profiles. New resources that match both
* the filter and conditions are scanned as quickly as possible depending on
* system capacity.
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4;
*
*/
@java.lang.Override
public com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadenceOrBuilder
getGenerationCadenceOrBuilder() {
if (cadenceCase_ == 4) {
return (com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence) cadence_;
}
return com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence.getDefaultInstance();
}
public static final int DISABLED_FIELD_NUMBER = 5;
/**
*
*
*
* Disable profiling for resources that match this filter.
*
*
* .google.privacy.dlp.v2.Disabled disabled = 5;
*
* @return Whether the disabled field is set.
*/
@java.lang.Override
public boolean hasDisabled() {
return cadenceCase_ == 5;
}
/**
*
*
*
* Disable profiling for resources that match this filter.
*
*
* .google.privacy.dlp.v2.Disabled disabled = 5;
*
* @return The disabled.
*/
@java.lang.Override
public com.google.privacy.dlp.v2.Disabled getDisabled() {
if (cadenceCase_ == 5) {
return (com.google.privacy.dlp.v2.Disabled) cadence_;
}
return com.google.privacy.dlp.v2.Disabled.getDefaultInstance();
}
/**
*
*
*
* Disable profiling for resources that match this filter.
*
*
* .google.privacy.dlp.v2.Disabled disabled = 5;
*/
@java.lang.Override
public com.google.privacy.dlp.v2.DisabledOrBuilder getDisabledOrBuilder() {
if (cadenceCase_ == 5) {
return (com.google.privacy.dlp.v2.Disabled) cadence_;
}
return com.google.privacy.dlp.v2.Disabled.getDefaultInstance();
}
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, getDataSourceType());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getFilter());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getConditions());
}
if (cadenceCase_ == 4) {
output.writeMessage(
4, (com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence) cadence_);
}
if (cadenceCase_ == 5) {
output.writeMessage(5, (com.google.privacy.dlp.v2.Disabled) cadence_);
}
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, getDataSourceType());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFilter());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConditions());
}
if (cadenceCase_ == 4) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
4, (com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence) cadence_);
}
if (cadenceCase_ == 5) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
5, (com.google.privacy.dlp.v2.Disabled) cadence_);
}
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.OtherCloudDiscoveryTarget)) {
return super.equals(obj);
}
com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget other =
(com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget) obj;
if (hasDataSourceType() != other.hasDataSourceType()) return false;
if (hasDataSourceType()) {
if (!getDataSourceType().equals(other.getDataSourceType())) return false;
}
if (hasFilter() != other.hasFilter()) return false;
if (hasFilter()) {
if (!getFilter().equals(other.getFilter())) return false;
}
if (hasConditions() != other.hasConditions()) return false;
if (hasConditions()) {
if (!getConditions().equals(other.getConditions())) return false;
}
if (!getCadenceCase().equals(other.getCadenceCase())) return false;
switch (cadenceCase_) {
case 4:
if (!getGenerationCadence().equals(other.getGenerationCadence())) return false;
break;
case 5:
if (!getDisabled().equals(other.getDisabled())) return false;
break;
case 0:
default:
}
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 (hasDataSourceType()) {
hash = (37 * hash) + DATA_SOURCE_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getDataSourceType().hashCode();
}
if (hasFilter()) {
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
}
if (hasConditions()) {
hash = (37 * hash) + CONDITIONS_FIELD_NUMBER;
hash = (53 * hash) + getConditions().hashCode();
}
switch (cadenceCase_) {
case 4:
hash = (37 * hash) + GENERATION_CADENCE_FIELD_NUMBER;
hash = (53 * hash) + getGenerationCadence().hashCode();
break;
case 5:
hash = (37 * hash) + DISABLED_FIELD_NUMBER;
hash = (53 * hash) + getDisabled().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget 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.OtherCloudDiscoveryTarget parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget 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.OtherCloudDiscoveryTarget parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget 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.OtherCloudDiscoveryTarget parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget 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.OtherCloudDiscoveryTarget parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget 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.OtherCloudDiscoveryTarget 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.OtherCloudDiscoveryTarget 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.OtherCloudDiscoveryTarget 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;
}
/**
*
*
*
* Target used to match against for discovery of resources from other clouds.
* An [AWS connector in Security Command Center
* (Enterprise](https://cloud.google.com/security-command-center/docs/connect-scc-to-aws)
* is required to use this feature.
*
*
* Protobuf type {@code google.privacy.dlp.v2.OtherCloudDiscoveryTarget}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.OtherCloudDiscoveryTarget)
com.google.privacy.dlp.v2.OtherCloudDiscoveryTargetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.privacy.dlp.v2.DlpProto
.internal_static_google_privacy_dlp_v2_OtherCloudDiscoveryTarget_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.privacy.dlp.v2.DlpProto
.internal_static_google_privacy_dlp_v2_OtherCloudDiscoveryTarget_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget.class,
com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget.Builder.class);
}
// Construct using com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getDataSourceTypeFieldBuilder();
getFilterFieldBuilder();
getConditionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
dataSourceType_ = null;
if (dataSourceTypeBuilder_ != null) {
dataSourceTypeBuilder_.dispose();
dataSourceTypeBuilder_ = null;
}
filter_ = null;
if (filterBuilder_ != null) {
filterBuilder_.dispose();
filterBuilder_ = null;
}
conditions_ = null;
if (conditionsBuilder_ != null) {
conditionsBuilder_.dispose();
conditionsBuilder_ = null;
}
if (generationCadenceBuilder_ != null) {
generationCadenceBuilder_.clear();
}
if (disabledBuilder_ != null) {
disabledBuilder_.clear();
}
cadenceCase_ = 0;
cadence_ = 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_OtherCloudDiscoveryTarget_descriptor;
}
@java.lang.Override
public com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget getDefaultInstanceForType() {
return com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget.getDefaultInstance();
}
@java.lang.Override
public com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget build() {
com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget buildPartial() {
com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget result =
new com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.dataSourceType_ =
dataSourceTypeBuilder_ == null ? dataSourceType_ : dataSourceTypeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.filter_ = filterBuilder_ == null ? filter_ : filterBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.conditions_ = conditionsBuilder_ == null ? conditions_ : conditionsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
private void buildPartialOneofs(com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget result) {
result.cadenceCase_ = cadenceCase_;
result.cadence_ = this.cadence_;
if (cadenceCase_ == 4 && generationCadenceBuilder_ != null) {
result.cadence_ = generationCadenceBuilder_.build();
}
if (cadenceCase_ == 5 && disabledBuilder_ != null) {
result.cadence_ = disabledBuilder_.build();
}
}
@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.OtherCloudDiscoveryTarget) {
return mergeFrom((com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget other) {
if (other == com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget.getDefaultInstance())
return this;
if (other.hasDataSourceType()) {
mergeDataSourceType(other.getDataSourceType());
}
if (other.hasFilter()) {
mergeFilter(other.getFilter());
}
if (other.hasConditions()) {
mergeConditions(other.getConditions());
}
switch (other.getCadenceCase()) {
case GENERATION_CADENCE:
{
mergeGenerationCadence(other.getGenerationCadence());
break;
}
case DISABLED:
{
mergeDisabled(other.getDisabled());
break;
}
case CADENCE_NOT_SET:
{
break;
}
}
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(getDataSourceTypeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getConditionsFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(
getGenerationCadenceFieldBuilder().getBuilder(), extensionRegistry);
cadenceCase_ = 4;
break;
} // case 34
case 42:
{
input.readMessage(getDisabledFieldBuilder().getBuilder(), extensionRegistry);
cadenceCase_ = 5;
break;
} // case 42
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 cadenceCase_ = 0;
private java.lang.Object cadence_;
public CadenceCase getCadenceCase() {
return CadenceCase.forNumber(cadenceCase_);
}
public Builder clearCadence() {
cadenceCase_ = 0;
cadence_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.privacy.dlp.v2.DataSourceType dataSourceType_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.privacy.dlp.v2.DataSourceType,
com.google.privacy.dlp.v2.DataSourceType.Builder,
com.google.privacy.dlp.v2.DataSourceTypeOrBuilder>
dataSourceTypeBuilder_;
/**
*
*
*
* Required. The type of data profiles generated by this discovery target.
* Supported values are:
* * aws/s3/bucket
*
*
*
* .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the dataSourceType field is set.
*/
public boolean hasDataSourceType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Required. The type of data profiles generated by this discovery target.
* Supported values are:
* * aws/s3/bucket
*
*
*
* .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The dataSourceType.
*/
public com.google.privacy.dlp.v2.DataSourceType getDataSourceType() {
if (dataSourceTypeBuilder_ == null) {
return dataSourceType_ == null
? com.google.privacy.dlp.v2.DataSourceType.getDefaultInstance()
: dataSourceType_;
} else {
return dataSourceTypeBuilder_.getMessage();
}
}
/**
*
*
*
* Required. The type of data profiles generated by this discovery target.
* Supported values are:
* * aws/s3/bucket
*
*
*
* .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setDataSourceType(com.google.privacy.dlp.v2.DataSourceType value) {
if (dataSourceTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataSourceType_ = value;
} else {
dataSourceTypeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Required. The type of data profiles generated by this discovery target.
* Supported values are:
* * aws/s3/bucket
*
*
*
* .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setDataSourceType(
com.google.privacy.dlp.v2.DataSourceType.Builder builderForValue) {
if (dataSourceTypeBuilder_ == null) {
dataSourceType_ = builderForValue.build();
} else {
dataSourceTypeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Required. The type of data profiles generated by this discovery target.
* Supported values are:
* * aws/s3/bucket
*
*
*
* .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder mergeDataSourceType(com.google.privacy.dlp.v2.DataSourceType value) {
if (dataSourceTypeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& dataSourceType_ != null
&& dataSourceType_ != com.google.privacy.dlp.v2.DataSourceType.getDefaultInstance()) {
getDataSourceTypeBuilder().mergeFrom(value);
} else {
dataSourceType_ = value;
}
} else {
dataSourceTypeBuilder_.mergeFrom(value);
}
if (dataSourceType_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Required. The type of data profiles generated by this discovery target.
* Supported values are:
* * aws/s3/bucket
*
*
*
* .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder clearDataSourceType() {
bitField0_ = (bitField0_ & ~0x00000001);
dataSourceType_ = null;
if (dataSourceTypeBuilder_ != null) {
dataSourceTypeBuilder_.dispose();
dataSourceTypeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Required. The type of data profiles generated by this discovery target.
* Supported values are:
* * aws/s3/bucket
*
*
*
* .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.privacy.dlp.v2.DataSourceType.Builder getDataSourceTypeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getDataSourceTypeFieldBuilder().getBuilder();
}
/**
*
*
*
* Required. The type of data profiles generated by this discovery target.
* Supported values are:
* * aws/s3/bucket
*
*
*
* .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.privacy.dlp.v2.DataSourceTypeOrBuilder getDataSourceTypeOrBuilder() {
if (dataSourceTypeBuilder_ != null) {
return dataSourceTypeBuilder_.getMessageOrBuilder();
} else {
return dataSourceType_ == null
? com.google.privacy.dlp.v2.DataSourceType.getDefaultInstance()
: dataSourceType_;
}
}
/**
*
*
*
* Required. The type of data profiles generated by this discovery target.
* Supported values are:
* * aws/s3/bucket
*
*
*
* .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.privacy.dlp.v2.DataSourceType,
com.google.privacy.dlp.v2.DataSourceType.Builder,
com.google.privacy.dlp.v2.DataSourceTypeOrBuilder>
getDataSourceTypeFieldBuilder() {
if (dataSourceTypeBuilder_ == null) {
dataSourceTypeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.privacy.dlp.v2.DataSourceType,
com.google.privacy.dlp.v2.DataSourceType.Builder,
com.google.privacy.dlp.v2.DataSourceTypeOrBuilder>(
getDataSourceType(), getParentForChildren(), isClean());
dataSourceType_ = null;
}
return dataSourceTypeBuilder_;
}
private com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter,
com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter.Builder,
com.google.privacy.dlp.v2.DiscoveryOtherCloudFilterOrBuilder>
filterBuilder_;
/**
*
*
*
* Required. The resources that the discovery cadence applies to. The
* first target with a matching filter will be the one to apply to a resource.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return Whether the filter field is set.
*/
public boolean hasFilter() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Required. The resources that the discovery cadence applies to. The
* first target with a matching filter will be the one to apply to a resource.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED];
*
*
* @return The filter.
*/
public com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter getFilter() {
if (filterBuilder_ == null) {
return filter_ == null
? com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter.getDefaultInstance()
: filter_;
} else {
return filterBuilder_.getMessage();
}
}
/**
*
*
*
* Required. The resources that the discovery cadence applies to. The
* first target with a matching filter will be the one to apply to a resource.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setFilter(com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter value) {
if (filterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
} else {
filterBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Required. The resources that the discovery cadence applies to. The
* first target with a matching filter will be the one to apply to a resource.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder setFilter(
com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter.Builder builderForValue) {
if (filterBuilder_ == null) {
filter_ = builderForValue.build();
} else {
filterBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Required. The resources that the discovery cadence applies to. The
* first target with a matching filter will be the one to apply to a resource.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder mergeFilter(com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter value) {
if (filterBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& filter_ != null
&& filter_
!= com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter.getDefaultInstance()) {
getFilterBuilder().mergeFrom(value);
} else {
filter_ = value;
}
} else {
filterBuilder_.mergeFrom(value);
}
if (filter_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Required. The resources that the discovery cadence applies to. The
* first target with a matching filter will be the one to apply to a resource.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public Builder clearFilter() {
bitField0_ = (bitField0_ & ~0x00000002);
filter_ = null;
if (filterBuilder_ != null) {
filterBuilder_.dispose();
filterBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Required. The resources that the discovery cadence applies to. The
* first target with a matching filter will be the one to apply to a resource.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter.Builder getFilterBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getFilterFieldBuilder().getBuilder();
}
/**
*
*
*
* Required. The resources that the discovery cadence applies to. The
* first target with a matching filter will be the one to apply to a resource.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
public com.google.privacy.dlp.v2.DiscoveryOtherCloudFilterOrBuilder getFilterOrBuilder() {
if (filterBuilder_ != null) {
return filterBuilder_.getMessageOrBuilder();
} else {
return filter_ == null
? com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter.getDefaultInstance()
: filter_;
}
}
/**
*
*
*
* Required. The resources that the discovery cadence applies to. The
* first target with a matching filter will be the one to apply to a resource.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter,
com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter.Builder,
com.google.privacy.dlp.v2.DiscoveryOtherCloudFilterOrBuilder>
getFilterFieldBuilder() {
if (filterBuilder_ == null) {
filterBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter,
com.google.privacy.dlp.v2.DiscoveryOtherCloudFilter.Builder,
com.google.privacy.dlp.v2.DiscoveryOtherCloudFilterOrBuilder>(
getFilter(), getParentForChildren(), isClean());
filter_ = null;
}
return filterBuilder_;
}
private com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions,
com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions.Builder,
com.google.privacy.dlp.v2.DiscoveryOtherCloudConditionsOrBuilder>
conditionsBuilder_;
/**
*
*
*
* Optional. In addition to matching the filter, these conditions must be true
* before a profile is generated.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the conditions field is set.
*/
public boolean hasConditions() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Optional. In addition to matching the filter, these conditions must be true
* before a profile is generated.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The conditions.
*/
public com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions getConditions() {
if (conditionsBuilder_ == null) {
return conditions_ == null
? com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions.getDefaultInstance()
: conditions_;
} else {
return conditionsBuilder_.getMessage();
}
}
/**
*
*
*
* Optional. In addition to matching the filter, these conditions must be true
* before a profile is generated.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setConditions(com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
conditions_ = value;
} else {
conditionsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. In addition to matching the filter, these conditions must be true
* before a profile is generated.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setConditions(
com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions.Builder builderForValue) {
if (conditionsBuilder_ == null) {
conditions_ = builderForValue.build();
} else {
conditionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. In addition to matching the filter, these conditions must be true
* before a profile is generated.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder mergeConditions(com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions value) {
if (conditionsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& conditions_ != null
&& conditions_
!= com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions.getDefaultInstance()) {
getConditionsBuilder().mergeFrom(value);
} else {
conditions_ = value;
}
} else {
conditionsBuilder_.mergeFrom(value);
}
if (conditions_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Optional. In addition to matching the filter, these conditions must be true
* before a profile is generated.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearConditions() {
bitField0_ = (bitField0_ & ~0x00000004);
conditions_ = null;
if (conditionsBuilder_ != null) {
conditionsBuilder_.dispose();
conditionsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Optional. In addition to matching the filter, these conditions must be true
* before a profile is generated.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions.Builder getConditionsBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getConditionsFieldBuilder().getBuilder();
}
/**
*
*
*
* Optional. In addition to matching the filter, these conditions must be true
* before a profile is generated.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.privacy.dlp.v2.DiscoveryOtherCloudConditionsOrBuilder
getConditionsOrBuilder() {
if (conditionsBuilder_ != null) {
return conditionsBuilder_.getMessageOrBuilder();
} else {
return conditions_ == null
? com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions.getDefaultInstance()
: conditions_;
}
}
/**
*
*
*
* Optional. In addition to matching the filter, these conditions must be true
* before a profile is generated.
*
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions,
com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions.Builder,
com.google.privacy.dlp.v2.DiscoveryOtherCloudConditionsOrBuilder>
getConditionsFieldBuilder() {
if (conditionsBuilder_ == null) {
conditionsBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions,
com.google.privacy.dlp.v2.DiscoveryOtherCloudConditions.Builder,
com.google.privacy.dlp.v2.DiscoveryOtherCloudConditionsOrBuilder>(
getConditions(), getParentForChildren(), isClean());
conditions_ = null;
}
return conditionsBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence,
com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence.Builder,
com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadenceOrBuilder>
generationCadenceBuilder_;
/**
*
*
*
* How often and when to update data profiles. New resources that match both
* the filter and conditions are scanned as quickly as possible depending on
* system capacity.
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4;
*
*
* @return Whether the generationCadence field is set.
*/
@java.lang.Override
public boolean hasGenerationCadence() {
return cadenceCase_ == 4;
}
/**
*
*
*
* How often and when to update data profiles. New resources that match both
* the filter and conditions are scanned as quickly as possible depending on
* system capacity.
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4;
*
*
* @return The generationCadence.
*/
@java.lang.Override
public com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence getGenerationCadence() {
if (generationCadenceBuilder_ == null) {
if (cadenceCase_ == 4) {
return (com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence) cadence_;
}
return com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence.getDefaultInstance();
} else {
if (cadenceCase_ == 4) {
return generationCadenceBuilder_.getMessage();
}
return com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence.getDefaultInstance();
}
}
/**
*
*
*
* How often and when to update data profiles. New resources that match both
* the filter and conditions are scanned as quickly as possible depending on
* system capacity.
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4;
*
*/
public Builder setGenerationCadence(
com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence value) {
if (generationCadenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cadence_ = value;
onChanged();
} else {
generationCadenceBuilder_.setMessage(value);
}
cadenceCase_ = 4;
return this;
}
/**
*
*
*
* How often and when to update data profiles. New resources that match both
* the filter and conditions are scanned as quickly as possible depending on
* system capacity.
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4;
*
*/
public Builder setGenerationCadence(
com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence.Builder builderForValue) {
if (generationCadenceBuilder_ == null) {
cadence_ = builderForValue.build();
onChanged();
} else {
generationCadenceBuilder_.setMessage(builderForValue.build());
}
cadenceCase_ = 4;
return this;
}
/**
*
*
*
* How often and when to update data profiles. New resources that match both
* the filter and conditions are scanned as quickly as possible depending on
* system capacity.
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4;
*
*/
public Builder mergeGenerationCadence(
com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence value) {
if (generationCadenceBuilder_ == null) {
if (cadenceCase_ == 4
&& cadence_
!= com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence
.getDefaultInstance()) {
cadence_ =
com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence.newBuilder(
(com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence) cadence_)
.mergeFrom(value)
.buildPartial();
} else {
cadence_ = value;
}
onChanged();
} else {
if (cadenceCase_ == 4) {
generationCadenceBuilder_.mergeFrom(value);
} else {
generationCadenceBuilder_.setMessage(value);
}
}
cadenceCase_ = 4;
return this;
}
/**
*
*
*
* How often and when to update data profiles. New resources that match both
* the filter and conditions are scanned as quickly as possible depending on
* system capacity.
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4;
*
*/
public Builder clearGenerationCadence() {
if (generationCadenceBuilder_ == null) {
if (cadenceCase_ == 4) {
cadenceCase_ = 0;
cadence_ = null;
onChanged();
}
} else {
if (cadenceCase_ == 4) {
cadenceCase_ = 0;
cadence_ = null;
}
generationCadenceBuilder_.clear();
}
return this;
}
/**
*
*
*
* How often and when to update data profiles. New resources that match both
* the filter and conditions are scanned as quickly as possible depending on
* system capacity.
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4;
*
*/
public com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence.Builder
getGenerationCadenceBuilder() {
return getGenerationCadenceFieldBuilder().getBuilder();
}
/**
*
*
*
* How often and when to update data profiles. New resources that match both
* the filter and conditions are scanned as quickly as possible depending on
* system capacity.
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4;
*
*/
@java.lang.Override
public com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadenceOrBuilder
getGenerationCadenceOrBuilder() {
if ((cadenceCase_ == 4) && (generationCadenceBuilder_ != null)) {
return generationCadenceBuilder_.getMessageOrBuilder();
} else {
if (cadenceCase_ == 4) {
return (com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence) cadence_;
}
return com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence.getDefaultInstance();
}
}
/**
*
*
*
* How often and when to update data profiles. New resources that match both
* the filter and conditions are scanned as quickly as possible depending on
* system capacity.
*
*
* .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence,
com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence.Builder,
com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadenceOrBuilder>
getGenerationCadenceFieldBuilder() {
if (generationCadenceBuilder_ == null) {
if (!(cadenceCase_ == 4)) {
cadence_ =
com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence.getDefaultInstance();
}
generationCadenceBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence,
com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence.Builder,
com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadenceOrBuilder>(
(com.google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence) cadence_,
getParentForChildren(),
isClean());
cadence_ = null;
}
cadenceCase_ = 4;
onChanged();
return generationCadenceBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.privacy.dlp.v2.Disabled,
com.google.privacy.dlp.v2.Disabled.Builder,
com.google.privacy.dlp.v2.DisabledOrBuilder>
disabledBuilder_;
/**
*
*
*
* Disable profiling for resources that match this filter.
*
*
* .google.privacy.dlp.v2.Disabled disabled = 5;
*
* @return Whether the disabled field is set.
*/
@java.lang.Override
public boolean hasDisabled() {
return cadenceCase_ == 5;
}
/**
*
*
*
* Disable profiling for resources that match this filter.
*
*
* .google.privacy.dlp.v2.Disabled disabled = 5;
*
* @return The disabled.
*/
@java.lang.Override
public com.google.privacy.dlp.v2.Disabled getDisabled() {
if (disabledBuilder_ == null) {
if (cadenceCase_ == 5) {
return (com.google.privacy.dlp.v2.Disabled) cadence_;
}
return com.google.privacy.dlp.v2.Disabled.getDefaultInstance();
} else {
if (cadenceCase_ == 5) {
return disabledBuilder_.getMessage();
}
return com.google.privacy.dlp.v2.Disabled.getDefaultInstance();
}
}
/**
*
*
*
* Disable profiling for resources that match this filter.
*
*
* .google.privacy.dlp.v2.Disabled disabled = 5;
*/
public Builder setDisabled(com.google.privacy.dlp.v2.Disabled value) {
if (disabledBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cadence_ = value;
onChanged();
} else {
disabledBuilder_.setMessage(value);
}
cadenceCase_ = 5;
return this;
}
/**
*
*
*
* Disable profiling for resources that match this filter.
*
*
* .google.privacy.dlp.v2.Disabled disabled = 5;
*/
public Builder setDisabled(com.google.privacy.dlp.v2.Disabled.Builder builderForValue) {
if (disabledBuilder_ == null) {
cadence_ = builderForValue.build();
onChanged();
} else {
disabledBuilder_.setMessage(builderForValue.build());
}
cadenceCase_ = 5;
return this;
}
/**
*
*
*
* Disable profiling for resources that match this filter.
*
*
* .google.privacy.dlp.v2.Disabled disabled = 5;
*/
public Builder mergeDisabled(com.google.privacy.dlp.v2.Disabled value) {
if (disabledBuilder_ == null) {
if (cadenceCase_ == 5
&& cadence_ != com.google.privacy.dlp.v2.Disabled.getDefaultInstance()) {
cadence_ =
com.google.privacy.dlp.v2.Disabled.newBuilder(
(com.google.privacy.dlp.v2.Disabled) cadence_)
.mergeFrom(value)
.buildPartial();
} else {
cadence_ = value;
}
onChanged();
} else {
if (cadenceCase_ == 5) {
disabledBuilder_.mergeFrom(value);
} else {
disabledBuilder_.setMessage(value);
}
}
cadenceCase_ = 5;
return this;
}
/**
*
*
*
* Disable profiling for resources that match this filter.
*
*
* .google.privacy.dlp.v2.Disabled disabled = 5;
*/
public Builder clearDisabled() {
if (disabledBuilder_ == null) {
if (cadenceCase_ == 5) {
cadenceCase_ = 0;
cadence_ = null;
onChanged();
}
} else {
if (cadenceCase_ == 5) {
cadenceCase_ = 0;
cadence_ = null;
}
disabledBuilder_.clear();
}
return this;
}
/**
*
*
*
* Disable profiling for resources that match this filter.
*
*
* .google.privacy.dlp.v2.Disabled disabled = 5;
*/
public com.google.privacy.dlp.v2.Disabled.Builder getDisabledBuilder() {
return getDisabledFieldBuilder().getBuilder();
}
/**
*
*
*
* Disable profiling for resources that match this filter.
*
*
* .google.privacy.dlp.v2.Disabled disabled = 5;
*/
@java.lang.Override
public com.google.privacy.dlp.v2.DisabledOrBuilder getDisabledOrBuilder() {
if ((cadenceCase_ == 5) && (disabledBuilder_ != null)) {
return disabledBuilder_.getMessageOrBuilder();
} else {
if (cadenceCase_ == 5) {
return (com.google.privacy.dlp.v2.Disabled) cadence_;
}
return com.google.privacy.dlp.v2.Disabled.getDefaultInstance();
}
}
/**
*
*
*
* Disable profiling for resources that match this filter.
*
*
* .google.privacy.dlp.v2.Disabled disabled = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.privacy.dlp.v2.Disabled,
com.google.privacy.dlp.v2.Disabled.Builder,
com.google.privacy.dlp.v2.DisabledOrBuilder>
getDisabledFieldBuilder() {
if (disabledBuilder_ == null) {
if (!(cadenceCase_ == 5)) {
cadence_ = com.google.privacy.dlp.v2.Disabled.getDefaultInstance();
}
disabledBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.privacy.dlp.v2.Disabled,
com.google.privacy.dlp.v2.Disabled.Builder,
com.google.privacy.dlp.v2.DisabledOrBuilder>(
(com.google.privacy.dlp.v2.Disabled) cadence_, getParentForChildren(), isClean());
cadence_ = null;
}
cadenceCase_ = 5;
onChanged();
return disabledBuilder_;
}
@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.OtherCloudDiscoveryTarget)
}
// @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.OtherCloudDiscoveryTarget)
private static final com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget();
}
public static com.google.privacy.dlp.v2.OtherCloudDiscoveryTarget getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OtherCloudDiscoveryTarget 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.OtherCloudDiscoveryTarget getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}