Class AmazonS3BucketRegex.Builder (3.56.0)

public static final class AmazonS3BucketRegex.Builder extends GeneratedMessageV3.Builder<AmazonS3BucketRegex.Builder> implements AmazonS3BucketRegexOrBuilder

Amazon S3 bucket regex.

Protobuf type google.privacy.dlp.v2.AmazonS3BucketRegex

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AmazonS3BucketRegex build()
Returns
Type Description
AmazonS3BucketRegex

buildPartial()

public AmazonS3BucketRegex buildPartial()
Returns
Type Description
AmazonS3BucketRegex

clear()

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

clearAwsAccountRegex()

public AmazonS3BucketRegex.Builder clearAwsAccountRegex()

The AWS account regex.

.google.privacy.dlp.v2.AwsAccountRegex aws_account_regex = 1;

Returns
Type Description
AmazonS3BucketRegex.Builder

clearBucketNameRegex()

public AmazonS3BucketRegex.Builder clearBucketNameRegex()

Optional. Regex to test the bucket name against. If empty, all buckets match.

string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AmazonS3BucketRegex.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAwsAccountRegex()

public AwsAccountRegex getAwsAccountRegex()

The AWS account regex.

.google.privacy.dlp.v2.AwsAccountRegex aws_account_regex = 1;

Returns
Type Description
AwsAccountRegex

The awsAccountRegex.

getAwsAccountRegexBuilder()

public AwsAccountRegex.Builder getAwsAccountRegexBuilder()

The AWS account regex.

.google.privacy.dlp.v2.AwsAccountRegex aws_account_regex = 1;

Returns
Type Description
AwsAccountRegex.Builder

getAwsAccountRegexOrBuilder()

public AwsAccountRegexOrBuilder getAwsAccountRegexOrBuilder()

The AWS account regex.

.google.privacy.dlp.v2.AwsAccountRegex aws_account_regex = 1;

Returns
Type Description
AwsAccountRegexOrBuilder

getBucketNameRegex()

public String getBucketNameRegex()

Optional. Regex to test the bucket name against. If empty, all buckets match.

string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The bucketNameRegex.

getBucketNameRegexBytes()

public ByteString getBucketNameRegexBytes()

Optional. Regex to test the bucket name against. If empty, all buckets match.

string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for bucketNameRegex.

getDefaultInstanceForType()

public AmazonS3BucketRegex getDefaultInstanceForType()
Returns
Type Description
AmazonS3BucketRegex

getDescriptorForType()

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

hasAwsAccountRegex()

public boolean hasAwsAccountRegex()

The AWS account regex.

.google.privacy.dlp.v2.AwsAccountRegex aws_account_regex = 1;

Returns
Type Description
boolean

Whether the awsAccountRegex field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAwsAccountRegex(AwsAccountRegex value)

public AmazonS3BucketRegex.Builder mergeAwsAccountRegex(AwsAccountRegex value)

The AWS account regex.

.google.privacy.dlp.v2.AwsAccountRegex aws_account_regex = 1;

Parameter
Name Description
value AwsAccountRegex
Returns
Type Description
AmazonS3BucketRegex.Builder

mergeFrom(AmazonS3BucketRegex other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAwsAccountRegex(AwsAccountRegex value)

public AmazonS3BucketRegex.Builder setAwsAccountRegex(AwsAccountRegex value)

The AWS account regex.

.google.privacy.dlp.v2.AwsAccountRegex aws_account_regex = 1;

Parameter
Name Description
value AwsAccountRegex
Returns
Type Description
AmazonS3BucketRegex.Builder

setAwsAccountRegex(AwsAccountRegex.Builder builderForValue)

public AmazonS3BucketRegex.Builder setAwsAccountRegex(AwsAccountRegex.Builder builderForValue)

The AWS account regex.

.google.privacy.dlp.v2.AwsAccountRegex aws_account_regex = 1;

Parameter
Name Description
builderForValue AwsAccountRegex.Builder
Returns
Type Description
AmazonS3BucketRegex.Builder

setBucketNameRegex(String value)

public AmazonS3BucketRegex.Builder setBucketNameRegex(String value)

Optional. Regex to test the bucket name against. If empty, all buckets match.

string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The bucketNameRegex to set.

Returns
Type Description
AmazonS3BucketRegex.Builder

This builder for chaining.

setBucketNameRegexBytes(ByteString value)

public AmazonS3BucketRegex.Builder setBucketNameRegexBytes(ByteString value)

Optional. Regex to test the bucket name against. If empty, all buckets match.

string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for bucketNameRegex to set.

Returns
Type Description
AmazonS3BucketRegex.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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