Class IntelligenceConfig.Filter.CloudStorageBuckets.Builder (2.59.0)

public static final class IntelligenceConfig.Filter.CloudStorageBuckets.Builder extends GeneratedMessageV3.Builder<IntelligenceConfig.Filter.CloudStorageBuckets.Builder> implements IntelligenceConfig.Filter.CloudStorageBucketsOrBuilder

Collection of buckets.

Protobuf type google.storage.control.v2.IntelligenceConfig.Filter.CloudStorageBuckets

Static Methods

getDescriptor()

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

Methods

addAllBucketIdRegexes(Iterable<String> values)

public IntelligenceConfig.Filter.CloudStorageBuckets.Builder addAllBucketIdRegexes(Iterable<String> values)

Optional. A regex pattern for matching bucket names. Regex should follow the syntax specified in google/re2. For example, ^sample_.* matches all buckets of the form gs://sample_bucket-1, gs://sample_bucket-2, gs://sample_bucket-n but not gs://test_sample_bucket. If you want to match a single bucket, say gs://sample_bucket, use sample_bucket.

repeated string bucket_id_regexes = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The bucketIdRegexes to add.

Returns
Type Description
IntelligenceConfig.Filter.CloudStorageBuckets.Builder

This builder for chaining.

addBucketIdRegexes(String value)

public IntelligenceConfig.Filter.CloudStorageBuckets.Builder addBucketIdRegexes(String value)

Optional. A regex pattern for matching bucket names. Regex should follow the syntax specified in google/re2. For example, ^sample_.* matches all buckets of the form gs://sample_bucket-1, gs://sample_bucket-2, gs://sample_bucket-n but not gs://test_sample_bucket. If you want to match a single bucket, say gs://sample_bucket, use sample_bucket.

repeated string bucket_id_regexes = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The bucketIdRegexes to add.

Returns
Type Description
IntelligenceConfig.Filter.CloudStorageBuckets.Builder

This builder for chaining.

addBucketIdRegexesBytes(ByteString value)

public IntelligenceConfig.Filter.CloudStorageBuckets.Builder addBucketIdRegexesBytes(ByteString value)

Optional. A regex pattern for matching bucket names. Regex should follow the syntax specified in google/re2. For example, ^sample_.* matches all buckets of the form gs://sample_bucket-1, gs://sample_bucket-2, gs://sample_bucket-n but not gs://test_sample_bucket. If you want to match a single bucket, say gs://sample_bucket, use sample_bucket.

repeated string bucket_id_regexes = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the bucketIdRegexes to add.

Returns
Type Description
IntelligenceConfig.Filter.CloudStorageBuckets.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public IntelligenceConfig.Filter.CloudStorageBuckets build()
Returns
Type Description
IntelligenceConfig.Filter.CloudStorageBuckets

buildPartial()

public IntelligenceConfig.Filter.CloudStorageBuckets buildPartial()
Returns
Type Description
IntelligenceConfig.Filter.CloudStorageBuckets

clear()

public IntelligenceConfig.Filter.CloudStorageBuckets.Builder clear()
Returns
Type Description
IntelligenceConfig.Filter.CloudStorageBuckets.Builder
Overrides

clearBucketIdRegexes()

public IntelligenceConfig.Filter.CloudStorageBuckets.Builder clearBucketIdRegexes()

Optional. A regex pattern for matching bucket names. Regex should follow the syntax specified in google/re2. For example, ^sample_.* matches all buckets of the form gs://sample_bucket-1, gs://sample_bucket-2, gs://sample_bucket-n but not gs://test_sample_bucket. If you want to match a single bucket, say gs://sample_bucket, use sample_bucket.

repeated string bucket_id_regexes = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IntelligenceConfig.Filter.CloudStorageBuckets.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public IntelligenceConfig.Filter.CloudStorageBuckets.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
IntelligenceConfig.Filter.CloudStorageBuckets.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public IntelligenceConfig.Filter.CloudStorageBuckets.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
IntelligenceConfig.Filter.CloudStorageBuckets.Builder
Overrides

clone()

public IntelligenceConfig.Filter.CloudStorageBuckets.Builder clone()
Returns
Type Description
IntelligenceConfig.Filter.CloudStorageBuckets.Builder
Overrides

getBucketIdRegexes(int index)

public String getBucketIdRegexes(int index)

Optional. A regex pattern for matching bucket names. Regex should follow the syntax specified in google/re2. For example, ^sample_.* matches all buckets of the form gs://sample_bucket-1, gs://sample_bucket-2, gs://sample_bucket-n but not gs://test_sample_bucket. If you want to match a single bucket, say gs://sample_bucket, use sample_bucket.

repeated string bucket_id_regexes = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The bucketIdRegexes at the given index.

getBucketIdRegexesBytes(int index)

public ByteString getBucketIdRegexesBytes(int index)

Optional. A regex pattern for matching bucket names. Regex should follow the syntax specified in google/re2. For example, ^sample_.* matches all buckets of the form gs://sample_bucket-1, gs://sample_bucket-2, gs://sample_bucket-n but not gs://test_sample_bucket. If you want to match a single bucket, say gs://sample_bucket, use sample_bucket.

repeated string bucket_id_regexes = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the bucketIdRegexes at the given index.

getBucketIdRegexesCount()

public int getBucketIdRegexesCount()

Optional. A regex pattern for matching bucket names. Regex should follow the syntax specified in google/re2. For example, ^sample_.* matches all buckets of the form gs://sample_bucket-1, gs://sample_bucket-2, gs://sample_bucket-n but not gs://test_sample_bucket. If you want to match a single bucket, say gs://sample_bucket, use sample_bucket.

repeated string bucket_id_regexes = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of bucketIdRegexes.

getBucketIdRegexesList()

public ProtocolStringList getBucketIdRegexesList()

Optional. A regex pattern for matching bucket names. Regex should follow the syntax specified in google/re2. For example, ^sample_.* matches all buckets of the form gs://sample_bucket-1, gs://sample_bucket-2, gs://sample_bucket-n but not gs://test_sample_bucket. If you want to match a single bucket, say gs://sample_bucket, use sample_bucket.

repeated string bucket_id_regexes = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the bucketIdRegexes.

getDefaultInstanceForType()

public IntelligenceConfig.Filter.CloudStorageBuckets getDefaultInstanceForType()
Returns
Type Description
IntelligenceConfig.Filter.CloudStorageBuckets

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public IntelligenceConfig.Filter.CloudStorageBuckets.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
IntelligenceConfig.Filter.CloudStorageBuckets.Builder
Overrides

mergeFrom(IntelligenceConfig.Filter.CloudStorageBuckets other)

public IntelligenceConfig.Filter.CloudStorageBuckets.Builder mergeFrom(IntelligenceConfig.Filter.CloudStorageBuckets other)
Parameter
Name Description
other IntelligenceConfig.Filter.CloudStorageBuckets
Returns
Type Description
IntelligenceConfig.Filter.CloudStorageBuckets.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IntelligenceConfig.Filter.CloudStorageBuckets.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IntelligenceConfig.Filter.CloudStorageBuckets.Builder
Overrides

setBucketIdRegexes(int index, String value)

public IntelligenceConfig.Filter.CloudStorageBuckets.Builder setBucketIdRegexes(int index, String value)

Optional. A regex pattern for matching bucket names. Regex should follow the syntax specified in google/re2. For example, ^sample_.* matches all buckets of the form gs://sample_bucket-1, gs://sample_bucket-2, gs://sample_bucket-n but not gs://test_sample_bucket. If you want to match a single bucket, say gs://sample_bucket, use sample_bucket.

repeated string bucket_id_regexes = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The bucketIdRegexes to set.

Returns
Type Description
IntelligenceConfig.Filter.CloudStorageBuckets.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final IntelligenceConfig.Filter.CloudStorageBuckets.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
IntelligenceConfig.Filter.CloudStorageBuckets.Builder
Overrides