Class DiscoveryCloudStorageConditions.Builder (3.59.0)

public static final class DiscoveryCloudStorageConditions.Builder extends GeneratedMessageV3.Builder<DiscoveryCloudStorageConditions.Builder> implements DiscoveryCloudStorageConditionsOrBuilder

Requirements that must be true before a Cloud Storage bucket or object is scanned in discovery for the first time. There is an AND relationship between the top-level attributes.

Protobuf type google.privacy.dlp.v2.DiscoveryCloudStorageConditions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllIncludedBucketAttributes(Iterable<? extends DiscoveryCloudStorageConditions.CloudStorageBucketAttribute> values)

public DiscoveryCloudStorageConditions.Builder addAllIncludedBucketAttributes(Iterable<? extends DiscoveryCloudStorageConditions.CloudStorageBucketAttribute> values)

Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute>

The includedBucketAttributes to add.

Returns
Type Description
DiscoveryCloudStorageConditions.Builder

This builder for chaining.

addAllIncludedBucketAttributesValue(Iterable<Integer> values)

public DiscoveryCloudStorageConditions.Builder addAllIncludedBucketAttributesValue(Iterable<Integer> values)

Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for includedBucketAttributes to add.

Returns
Type Description
DiscoveryCloudStorageConditions.Builder

This builder for chaining.

addAllIncludedObjectAttributes(Iterable<? extends DiscoveryCloudStorageConditions.CloudStorageObjectAttribute> values)

public DiscoveryCloudStorageConditions.Builder addAllIncludedObjectAttributes(Iterable<? extends DiscoveryCloudStorageConditions.CloudStorageObjectAttribute> values)

Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute>

The includedObjectAttributes to add.

Returns
Type Description
DiscoveryCloudStorageConditions.Builder

This builder for chaining.

addAllIncludedObjectAttributesValue(Iterable<Integer> values)

public DiscoveryCloudStorageConditions.Builder addAllIncludedObjectAttributesValue(Iterable<Integer> values)

Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for includedObjectAttributes to add.

Returns
Type Description
DiscoveryCloudStorageConditions.Builder

This builder for chaining.

addIncludedBucketAttributes(DiscoveryCloudStorageConditions.CloudStorageBucketAttribute value)

public DiscoveryCloudStorageConditions.Builder addIncludedBucketAttributes(DiscoveryCloudStorageConditions.CloudStorageBucketAttribute value)

Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DiscoveryCloudStorageConditions.CloudStorageBucketAttribute

The includedBucketAttributes to add.

Returns
Type Description
DiscoveryCloudStorageConditions.Builder

This builder for chaining.

addIncludedBucketAttributesValue(int value)

public DiscoveryCloudStorageConditions.Builder addIncludedBucketAttributesValue(int value)

Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for includedBucketAttributes to add.

Returns
Type Description
DiscoveryCloudStorageConditions.Builder

This builder for chaining.

addIncludedObjectAttributes(DiscoveryCloudStorageConditions.CloudStorageObjectAttribute value)

public DiscoveryCloudStorageConditions.Builder addIncludedObjectAttributes(DiscoveryCloudStorageConditions.CloudStorageObjectAttribute value)

Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DiscoveryCloudStorageConditions.CloudStorageObjectAttribute

The includedObjectAttributes to add.

Returns
Type Description
DiscoveryCloudStorageConditions.Builder

This builder for chaining.

addIncludedObjectAttributesValue(int value)

public DiscoveryCloudStorageConditions.Builder addIncludedObjectAttributesValue(int value)

Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for includedObjectAttributes to add.

Returns
Type Description
DiscoveryCloudStorageConditions.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryCloudStorageConditions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiscoveryCloudStorageConditions.Builder
Overrides

build()

public DiscoveryCloudStorageConditions build()
Returns
Type Description
DiscoveryCloudStorageConditions

buildPartial()

public DiscoveryCloudStorageConditions buildPartial()
Returns
Type Description
DiscoveryCloudStorageConditions

clear()

public DiscoveryCloudStorageConditions.Builder clear()
Returns
Type Description
DiscoveryCloudStorageConditions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DiscoveryCloudStorageConditions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DiscoveryCloudStorageConditions.Builder
Overrides

clearIncludedBucketAttributes()

public DiscoveryCloudStorageConditions.Builder clearIncludedBucketAttributes()

Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DiscoveryCloudStorageConditions.Builder

This builder for chaining.

clearIncludedObjectAttributes()

public DiscoveryCloudStorageConditions.Builder clearIncludedObjectAttributes()

Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DiscoveryCloudStorageConditions.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DiscoveryCloudStorageConditions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DiscoveryCloudStorageConditions.Builder
Overrides

clone()

public DiscoveryCloudStorageConditions.Builder clone()
Returns
Type Description
DiscoveryCloudStorageConditions.Builder
Overrides

getDefaultInstanceForType()

public DiscoveryCloudStorageConditions getDefaultInstanceForType()
Returns
Type Description
DiscoveryCloudStorageConditions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIncludedBucketAttributes(int index)

public DiscoveryCloudStorageConditions.CloudStorageBucketAttribute getIncludedBucketAttributes(int index)

Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
DiscoveryCloudStorageConditions.CloudStorageBucketAttribute

The includedBucketAttributes at the given index.

getIncludedBucketAttributesCount()

public int getIncludedBucketAttributesCount()

Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of includedBucketAttributes.

getIncludedBucketAttributesList()

public List<DiscoveryCloudStorageConditions.CloudStorageBucketAttribute> getIncludedBucketAttributesList()

Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<CloudStorageBucketAttribute>

A list containing the includedBucketAttributes.

getIncludedBucketAttributesValue(int index)

public int getIncludedBucketAttributesValue(int index)

Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of includedBucketAttributes at the given index.

getIncludedBucketAttributesValueList()

public List<Integer> getIncludedBucketAttributesValueList()

Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for includedBucketAttributes.

getIncludedObjectAttributes(int index)

public DiscoveryCloudStorageConditions.CloudStorageObjectAttribute getIncludedObjectAttributes(int index)

Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
DiscoveryCloudStorageConditions.CloudStorageObjectAttribute

The includedObjectAttributes at the given index.

getIncludedObjectAttributesCount()

public int getIncludedObjectAttributesCount()

Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of includedObjectAttributes.

getIncludedObjectAttributesList()

public List<DiscoveryCloudStorageConditions.CloudStorageObjectAttribute> getIncludedObjectAttributesList()

Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<CloudStorageObjectAttribute>

A list containing the includedObjectAttributes.

getIncludedObjectAttributesValue(int index)

public int getIncludedObjectAttributesValue(int index)

Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of includedObjectAttributes at the given index.

getIncludedObjectAttributesValueList()

public List<Integer> getIncludedObjectAttributesValueList()

Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for includedObjectAttributes.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DiscoveryCloudStorageConditions other)

public DiscoveryCloudStorageConditions.Builder mergeFrom(DiscoveryCloudStorageConditions other)
Parameter
Name Description
other DiscoveryCloudStorageConditions
Returns
Type Description
DiscoveryCloudStorageConditions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DiscoveryCloudStorageConditions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiscoveryCloudStorageConditions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DiscoveryCloudStorageConditions.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DiscoveryCloudStorageConditions.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryCloudStorageConditions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiscoveryCloudStorageConditions.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DiscoveryCloudStorageConditions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiscoveryCloudStorageConditions.Builder
Overrides

setIncludedBucketAttributes(int index, DiscoveryCloudStorageConditions.CloudStorageBucketAttribute value)

public DiscoveryCloudStorageConditions.Builder setIncludedBucketAttributes(int index, DiscoveryCloudStorageConditions.CloudStorageBucketAttribute value)

Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value DiscoveryCloudStorageConditions.CloudStorageBucketAttribute

The includedBucketAttributes to set.

Returns
Type Description
DiscoveryCloudStorageConditions.Builder

This builder for chaining.

setIncludedBucketAttributesValue(int index, int value)

public DiscoveryCloudStorageConditions.Builder setIncludedBucketAttributesValue(int index, int value)

Required. Only objects with the specified attributes will be scanned. Defaults to [ALL_SUPPORTED_BUCKETS] if unset.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for includedBucketAttributes to set.

Returns
Type Description
DiscoveryCloudStorageConditions.Builder

This builder for chaining.

setIncludedObjectAttributes(int index, DiscoveryCloudStorageConditions.CloudStorageObjectAttribute value)

public DiscoveryCloudStorageConditions.Builder setIncludedObjectAttributes(int index, DiscoveryCloudStorageConditions.CloudStorageObjectAttribute value)

Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value DiscoveryCloudStorageConditions.CloudStorageObjectAttribute

The includedObjectAttributes to set.

Returns
Type Description
DiscoveryCloudStorageConditions.Builder

This builder for chaining.

setIncludedObjectAttributesValue(int index, int value)

public DiscoveryCloudStorageConditions.Builder setIncludedObjectAttributesValue(int index, int value)

Required. Only objects with the specified attributes will be scanned. If an object has one of the specified attributes but is inside an excluded bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A profile will be created even if no objects match the included_object_attributes.

repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for includedObjectAttributes to set.

Returns
Type Description
DiscoveryCloudStorageConditions.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DiscoveryCloudStorageConditions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DiscoveryCloudStorageConditions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DiscoveryCloudStorageConditions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiscoveryCloudStorageConditions.Builder
Overrides