- 3.57.0 (latest)
- 3.56.0
- 3.55.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.6
- 3.6.7
- 3.5.0
- 3.4.0
- 3.3.2
- 3.2.1
- 3.1.4
public static final class CloudStorageRegexFileSet.Builder extends GeneratedMessageV3.Builder<CloudStorageRegexFileSet.Builder> implements CloudStorageRegexFileSetOrBuilder
Message representing a set of files in a Cloud Storage bucket. Regular
expressions are used to allow fine-grained control over which files in the
bucket to include.
Included files are those that match at least one item in include_regex
and
do not match any items in exclude_regex
. Note that a file that matches
items from both lists will not be included. For a match to occur, the
entire file path (i.e., everything in the url after the bucket name) must
match the regular expression.
For example, given the input {bucket_name: "mybucket", include_regex:
["directory1/."], exclude_regex:
["directory1/excluded."]}
:
gs://mybucket/directory1/myfile
will be includedgs://mybucket/directory1/directory2/myfile
will be included (.*
matches across/
)gs://mybucket/directory0/directory1/myfile
will not be included (the full path doesn't match any items ininclude_regex
)gs://mybucket/directory1/excludedfile
will not be included (the path matches an item inexclude_regex
) Ifinclude_regex
is left empty, it will match all files by default (this is equivalent to settinginclude_regex: [".*"]
). Some other common use cases:{bucket_name: "mybucket", exclude_regex: [".*\.pdf"]}
will include all files inmybucket
except for .pdf files{bucket_name: "mybucket", include_regex: ["directory/[^/]+"]}
will include all files directly undergs://mybucket/directory/
, without matching across/
Protobuf type google.privacy.dlp.v2.CloudStorageRegexFileSet
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CloudStorageRegexFileSet.BuilderImplements
CloudStorageRegexFileSetOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllExcludeRegex(Iterable<String> values)
public CloudStorageRegexFileSet.Builder addAllExcludeRegex(Iterable<String> values)
syntax; a guide can be found A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan. Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub.
repeated string exclude_regex = 3;
Name | Description |
values | Iterable<String> The excludeRegex to add. |
Type | Description |
CloudStorageRegexFileSet.Builder | This builder for chaining. |
addAllIncludeRegex(Iterable<String> values)
public CloudStorageRegexFileSet.Builder addAllIncludeRegex(Iterable<String> values)
A list of regular expressions matching file paths to include. All files in
the bucket that match at least one of these regular expressions will be
included in the set of files, except for those that also match an item in
exclude_regex
. Leaving this field empty will match all files by default
(this is equivalent to including .*
in the list).
Regular expressions use RE2
syntax; a guide can be found
under the google/re2 repository on GitHub.
repeated string include_regex = 2;
Name | Description |
values | Iterable<String> The includeRegex to add. |
Type | Description |
CloudStorageRegexFileSet.Builder | This builder for chaining. |
addExcludeRegex(String value)
public CloudStorageRegexFileSet.Builder addExcludeRegex(String value)
syntax; a guide can be found A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan. Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub.
repeated string exclude_regex = 3;
Name | Description |
value | String The excludeRegex to add. |
Type | Description |
CloudStorageRegexFileSet.Builder | This builder for chaining. |
addExcludeRegexBytes(ByteString value)
public CloudStorageRegexFileSet.Builder addExcludeRegexBytes(ByteString value)
syntax; a guide can be found A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan. Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub.
repeated string exclude_regex = 3;
Name | Description |
value | ByteString The bytes of the excludeRegex to add. |
Type | Description |
CloudStorageRegexFileSet.Builder | This builder for chaining. |
addIncludeRegex(String value)
public CloudStorageRegexFileSet.Builder addIncludeRegex(String value)
A list of regular expressions matching file paths to include. All files in
the bucket that match at least one of these regular expressions will be
included in the set of files, except for those that also match an item in
exclude_regex
. Leaving this field empty will match all files by default
(this is equivalent to including .*
in the list).
Regular expressions use RE2
syntax; a guide can be found
under the google/re2 repository on GitHub.
repeated string include_regex = 2;
Name | Description |
value | String The includeRegex to add. |
Type | Description |
CloudStorageRegexFileSet.Builder | This builder for chaining. |
addIncludeRegexBytes(ByteString value)
public CloudStorageRegexFileSet.Builder addIncludeRegexBytes(ByteString value)
A list of regular expressions matching file paths to include. All files in
the bucket that match at least one of these regular expressions will be
included in the set of files, except for those that also match an item in
exclude_regex
. Leaving this field empty will match all files by default
(this is equivalent to including .*
in the list).
Regular expressions use RE2
syntax; a guide can be found
under the google/re2 repository on GitHub.
repeated string include_regex = 2;
Name | Description |
value | ByteString The bytes of the includeRegex to add. |
Type | Description |
CloudStorageRegexFileSet.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CloudStorageRegexFileSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CloudStorageRegexFileSet.Builder |
build()
public CloudStorageRegexFileSet build()
Type | Description |
CloudStorageRegexFileSet |
buildPartial()
public CloudStorageRegexFileSet buildPartial()
Type | Description |
CloudStorageRegexFileSet |
clear()
public CloudStorageRegexFileSet.Builder clear()
Type | Description |
CloudStorageRegexFileSet.Builder |
clearBucketName()
public CloudStorageRegexFileSet.Builder clearBucketName()
The name of a Cloud Storage bucket. Required.
string bucket_name = 1;
Type | Description |
CloudStorageRegexFileSet.Builder | This builder for chaining. |
clearExcludeRegex()
public CloudStorageRegexFileSet.Builder clearExcludeRegex()
syntax; a guide can be found A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan. Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub.
repeated string exclude_regex = 3;
Type | Description |
CloudStorageRegexFileSet.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CloudStorageRegexFileSet.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
CloudStorageRegexFileSet.Builder |
clearIncludeRegex()
public CloudStorageRegexFileSet.Builder clearIncludeRegex()
A list of regular expressions matching file paths to include. All files in
the bucket that match at least one of these regular expressions will be
included in the set of files, except for those that also match an item in
exclude_regex
. Leaving this field empty will match all files by default
(this is equivalent to including .*
in the list).
Regular expressions use RE2
syntax; a guide can be found
under the google/re2 repository on GitHub.
repeated string include_regex = 2;
Type | Description |
CloudStorageRegexFileSet.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public CloudStorageRegexFileSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
CloudStorageRegexFileSet.Builder |
clone()
public CloudStorageRegexFileSet.Builder clone()
Type | Description |
CloudStorageRegexFileSet.Builder |
getBucketName()
public String getBucketName()
The name of a Cloud Storage bucket. Required.
string bucket_name = 1;
Type | Description |
String | The bucketName. |
getBucketNameBytes()
public ByteString getBucketNameBytes()
The name of a Cloud Storage bucket. Required.
string bucket_name = 1;
Type | Description |
ByteString | The bytes for bucketName. |
getDefaultInstanceForType()
public CloudStorageRegexFileSet getDefaultInstanceForType()
Type | Description |
CloudStorageRegexFileSet |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getExcludeRegex(int index)
public String getExcludeRegex(int index)
syntax; a guide can be found A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan. Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub.
repeated string exclude_regex = 3;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The excludeRegex at the given index. |
getExcludeRegexBytes(int index)
public ByteString getExcludeRegexBytes(int index)
syntax; a guide can be found A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan. Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub.
repeated string exclude_regex = 3;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the excludeRegex at the given index. |
getExcludeRegexCount()
public int getExcludeRegexCount()
syntax; a guide can be found A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan. Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub.
repeated string exclude_regex = 3;
Type | Description |
int | The count of excludeRegex. |
getExcludeRegexList()
public ProtocolStringList getExcludeRegexList()
syntax; a guide can be found A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan. Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub.
repeated string exclude_regex = 3;
Type | Description |
ProtocolStringList | A list containing the excludeRegex. |
getIncludeRegex(int index)
public String getIncludeRegex(int index)
A list of regular expressions matching file paths to include. All files in
the bucket that match at least one of these regular expressions will be
included in the set of files, except for those that also match an item in
exclude_regex
. Leaving this field empty will match all files by default
(this is equivalent to including .*
in the list).
Regular expressions use RE2
syntax; a guide can be found
under the google/re2 repository on GitHub.
repeated string include_regex = 2;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The includeRegex at the given index. |
getIncludeRegexBytes(int index)
public ByteString getIncludeRegexBytes(int index)
A list of regular expressions matching file paths to include. All files in
the bucket that match at least one of these regular expressions will be
included in the set of files, except for those that also match an item in
exclude_regex
. Leaving this field empty will match all files by default
(this is equivalent to including .*
in the list).
Regular expressions use RE2
syntax; a guide can be found
under the google/re2 repository on GitHub.
repeated string include_regex = 2;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the includeRegex at the given index. |
getIncludeRegexCount()
public int getIncludeRegexCount()
A list of regular expressions matching file paths to include. All files in
the bucket that match at least one of these regular expressions will be
included in the set of files, except for those that also match an item in
exclude_regex
. Leaving this field empty will match all files by default
(this is equivalent to including .*
in the list).
Regular expressions use RE2
syntax; a guide can be found
under the google/re2 repository on GitHub.
repeated string include_regex = 2;
Type | Description |
int | The count of includeRegex. |
getIncludeRegexList()
public ProtocolStringList getIncludeRegexList()
A list of regular expressions matching file paths to include. All files in
the bucket that match at least one of these regular expressions will be
included in the set of files, except for those that also match an item in
exclude_regex
. Leaving this field empty will match all files by default
(this is equivalent to including .*
in the list).
Regular expressions use RE2
syntax; a guide can be found
under the google/re2 repository on GitHub.
repeated string include_regex = 2;
Type | Description |
ProtocolStringList | A list containing the includeRegex. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CloudStorageRegexFileSet other)
public CloudStorageRegexFileSet.Builder mergeFrom(CloudStorageRegexFileSet other)
Name | Description |
other | CloudStorageRegexFileSet |
Type | Description |
CloudStorageRegexFileSet.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CloudStorageRegexFileSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CloudStorageRegexFileSet.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public CloudStorageRegexFileSet.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
CloudStorageRegexFileSet.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CloudStorageRegexFileSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CloudStorageRegexFileSet.Builder |
setBucketName(String value)
public CloudStorageRegexFileSet.Builder setBucketName(String value)
The name of a Cloud Storage bucket. Required.
string bucket_name = 1;
Name | Description |
value | String The bucketName to set. |
Type | Description |
CloudStorageRegexFileSet.Builder | This builder for chaining. |
setBucketNameBytes(ByteString value)
public CloudStorageRegexFileSet.Builder setBucketNameBytes(ByteString value)
The name of a Cloud Storage bucket. Required.
string bucket_name = 1;
Name | Description |
value | ByteString The bytes for bucketName to set. |
Type | Description |
CloudStorageRegexFileSet.Builder | This builder for chaining. |
setExcludeRegex(int index, String value)
public CloudStorageRegexFileSet.Builder setExcludeRegex(int index, String value)
syntax; a guide can be found A list of regular expressions matching file paths to exclude. All files in the bucket that match at least one of these regular expressions will be excluded from the scan. Regular expressions use RE2 syntax; a guide can be found under the google/re2 repository on GitHub.
repeated string exclude_regex = 3;
Name | Description |
index | int The index to set the value at. |
value | String The excludeRegex to set. |
Type | Description |
CloudStorageRegexFileSet.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CloudStorageRegexFileSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CloudStorageRegexFileSet.Builder |
setIncludeRegex(int index, String value)
public CloudStorageRegexFileSet.Builder setIncludeRegex(int index, String value)
A list of regular expressions matching file paths to include. All files in
the bucket that match at least one of these regular expressions will be
included in the set of files, except for those that also match an item in
exclude_regex
. Leaving this field empty will match all files by default
(this is equivalent to including .*
in the list).
Regular expressions use RE2
syntax; a guide can be found
under the google/re2 repository on GitHub.
repeated string include_regex = 2;
Name | Description |
index | int The index to set the value at. |
value | String The includeRegex to set. |
Type | Description |
CloudStorageRegexFileSet.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CloudStorageRegexFileSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
CloudStorageRegexFileSet.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final CloudStorageRegexFileSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CloudStorageRegexFileSet.Builder |