Class AmazonS3BucketConditions.Builder (3.58.0)

public static final class AmazonS3BucketConditions.Builder extends GeneratedMessageV3.Builder<AmazonS3BucketConditions.Builder> implements AmazonS3BucketConditionsOrBuilder

Amazon S3 bucket conditions.

Protobuf type google.privacy.dlp.v2.AmazonS3BucketConditions

Static Methods

getDescriptor()

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

Methods

addAllBucketTypes(Iterable<? extends AmazonS3BucketConditions.BucketType> values)

public AmazonS3BucketConditions.Builder addAllBucketTypes(Iterable<? extends AmazonS3BucketConditions.BucketType> values)

Optional. Bucket types that should be profiled. Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType>

The bucketTypes to add.

Returns
Type Description
AmazonS3BucketConditions.Builder

This builder for chaining.

addAllBucketTypesValue(Iterable<Integer> values)

public AmazonS3BucketConditions.Builder addAllBucketTypesValue(Iterable<Integer> values)

Optional. Bucket types that should be profiled. Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<Integer>

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

Returns
Type Description
AmazonS3BucketConditions.Builder

This builder for chaining.

addAllObjectStorageClasses(Iterable<? extends AmazonS3BucketConditions.ObjectStorageClass> values)

public AmazonS3BucketConditions.Builder addAllObjectStorageClasses(Iterable<? extends AmazonS3BucketConditions.ObjectStorageClass> values)

Optional. Object classes that should be profiled. Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass>

The objectStorageClasses to add.

Returns
Type Description
AmazonS3BucketConditions.Builder

This builder for chaining.

addAllObjectStorageClassesValue(Iterable<Integer> values)

public AmazonS3BucketConditions.Builder addAllObjectStorageClassesValue(Iterable<Integer> values)

Optional. Object classes that should be profiled. Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<Integer>

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

Returns
Type Description
AmazonS3BucketConditions.Builder

This builder for chaining.

addBucketTypes(AmazonS3BucketConditions.BucketType value)

public AmazonS3BucketConditions.Builder addBucketTypes(AmazonS3BucketConditions.BucketType value)

Optional. Bucket types that should be profiled. Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AmazonS3BucketConditions.BucketType

The bucketTypes to add.

Returns
Type Description
AmazonS3BucketConditions.Builder

This builder for chaining.

addBucketTypesValue(int value)

public AmazonS3BucketConditions.Builder addBucketTypesValue(int value)

Optional. Bucket types that should be profiled. Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
AmazonS3BucketConditions.Builder

This builder for chaining.

addObjectStorageClasses(AmazonS3BucketConditions.ObjectStorageClass value)

public AmazonS3BucketConditions.Builder addObjectStorageClasses(AmazonS3BucketConditions.ObjectStorageClass value)

Optional. Object classes that should be profiled. Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AmazonS3BucketConditions.ObjectStorageClass

The objectStorageClasses to add.

Returns
Type Description
AmazonS3BucketConditions.Builder

This builder for chaining.

addObjectStorageClassesValue(int value)

public AmazonS3BucketConditions.Builder addObjectStorageClassesValue(int value)

Optional. Object classes that should be profiled. Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

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

Returns
Type Description
AmazonS3BucketConditions.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AmazonS3BucketConditions build()
Returns
Type Description
AmazonS3BucketConditions

buildPartial()

public AmazonS3BucketConditions buildPartial()
Returns
Type Description
AmazonS3BucketConditions

clear()

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

clearBucketTypes()

public AmazonS3BucketConditions.Builder clearBucketTypes()

Optional. Bucket types that should be profiled. Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AmazonS3BucketConditions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearObjectStorageClasses()

public AmazonS3BucketConditions.Builder clearObjectStorageClasses()

Optional. Object classes that should be profiled. Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AmazonS3BucketConditions.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBucketTypes(int index)

public AmazonS3BucketConditions.BucketType getBucketTypes(int index)

Optional. Bucket types that should be profiled. Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
AmazonS3BucketConditions.BucketType

The bucketTypes at the given index.

getBucketTypesCount()

public int getBucketTypesCount()

Optional. Bucket types that should be profiled. Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of bucketTypes.

getBucketTypesList()

public List<AmazonS3BucketConditions.BucketType> getBucketTypesList()

Optional. Bucket types that should be profiled. Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<BucketType>

A list containing the bucketTypes.

getBucketTypesValue(int index)

public int getBucketTypesValue(int index)

Optional. Bucket types that should be profiled. Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

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

getBucketTypesValueList()

public List<Integer> getBucketTypesValueList()

Optional. Bucket types that should be profiled. Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Integer>

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

getDefaultInstanceForType()

public AmazonS3BucketConditions getDefaultInstanceForType()
Returns
Type Description
AmazonS3BucketConditions

getDescriptorForType()

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

getObjectStorageClasses(int index)

public AmazonS3BucketConditions.ObjectStorageClass getObjectStorageClasses(int index)

Optional. Object classes that should be profiled. Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
AmazonS3BucketConditions.ObjectStorageClass

The objectStorageClasses at the given index.

getObjectStorageClassesCount()

public int getObjectStorageClassesCount()

Optional. Object classes that should be profiled. Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of objectStorageClasses.

getObjectStorageClassesList()

public List<AmazonS3BucketConditions.ObjectStorageClass> getObjectStorageClassesList()

Optional. Object classes that should be profiled. Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<ObjectStorageClass>

A list containing the objectStorageClasses.

getObjectStorageClassesValue(int index)

public int getObjectStorageClassesValue(int index)

Optional. Object classes that should be profiled. Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

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

getObjectStorageClassesValueList()

public List<Integer> getObjectStorageClassesValueList()

Optional. Object classes that should be profiled. Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Integer>

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AmazonS3BucketConditions other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBucketTypes(int index, AmazonS3BucketConditions.BucketType value)

public AmazonS3BucketConditions.Builder setBucketTypes(int index, AmazonS3BucketConditions.BucketType value)

Optional. Bucket types that should be profiled. Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value AmazonS3BucketConditions.BucketType

The bucketTypes to set.

Returns
Type Description
AmazonS3BucketConditions.Builder

This builder for chaining.

setBucketTypesValue(int index, int value)

public AmazonS3BucketConditions.Builder setBucketTypesValue(int index, int value)

Optional. Bucket types that should be profiled. Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
AmazonS3BucketConditions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setObjectStorageClasses(int index, AmazonS3BucketConditions.ObjectStorageClass value)

public AmazonS3BucketConditions.Builder setObjectStorageClasses(int index, AmazonS3BucketConditions.ObjectStorageClass value)

Optional. Object classes that should be profiled. Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value AmazonS3BucketConditions.ObjectStorageClass

The objectStorageClasses to set.

Returns
Type Description
AmazonS3BucketConditions.Builder

This builder for chaining.

setObjectStorageClassesValue(int index, int value)

public AmazonS3BucketConditions.Builder setObjectStorageClassesValue(int index, int value)

Optional. Object classes that should be profiled. Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.

repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
AmazonS3BucketConditions.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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