Class CloudStorageOptions.FileSet.Builder (3.12.0)

public static final class CloudStorageOptions.FileSet.Builder extends GeneratedMessageV3.Builder<CloudStorageOptions.FileSet.Builder> implements CloudStorageOptions.FileSetOrBuilder

Set of files to scan.

Protobuf type google.privacy.dlp.v2.CloudStorageOptions.FileSet

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CloudStorageOptions.FileSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder
Overrides

build()

public CloudStorageOptions.FileSet build()
Returns
TypeDescription
CloudStorageOptions.FileSet

buildPartial()

public CloudStorageOptions.FileSet buildPartial()
Returns
TypeDescription
CloudStorageOptions.FileSet

clear()

public CloudStorageOptions.FileSet.Builder clear()
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CloudStorageOptions.FileSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CloudStorageOptions.FileSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder
Overrides

clearRegexFileSet()

public CloudStorageOptions.FileSet.Builder clearRegexFileSet()

The regex-filtered set of files to scan. Exactly one of url or regex_file_set must be set.

.google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2;

Returns
TypeDescription
CloudStorageOptions.FileSet.Builder

clearUrl()

public CloudStorageOptions.FileSet.Builder clearUrl()

The Cloud Storage url of the file(s) to scan, in the format gs://<bucket>/<path>. Trailing wildcard in the path is allowed. If the url ends in a trailing slash, the bucket or directory represented by the url will be scanned non-recursively (content in sub-directories will not be scanned). This means that gs://mybucket/ is equivalent to gs://mybucket/*, and gs://mybucket/directory/ is equivalent to gs://mybucket/directory/*. Exactly one of url or regex_file_set must be set.

string url = 1;

Returns
TypeDescription
CloudStorageOptions.FileSet.Builder

This builder for chaining.

clone()

public CloudStorageOptions.FileSet.Builder clone()
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder
Overrides

getDefaultInstanceForType()

public CloudStorageOptions.FileSet getDefaultInstanceForType()
Returns
TypeDescription
CloudStorageOptions.FileSet

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRegexFileSet()

public CloudStorageRegexFileSet getRegexFileSet()

The regex-filtered set of files to scan. Exactly one of url or regex_file_set must be set.

.google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2;

Returns
TypeDescription
CloudStorageRegexFileSet

The regexFileSet.

getRegexFileSetBuilder()

public CloudStorageRegexFileSet.Builder getRegexFileSetBuilder()

The regex-filtered set of files to scan. Exactly one of url or regex_file_set must be set.

.google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2;

Returns
TypeDescription
CloudStorageRegexFileSet.Builder

getRegexFileSetOrBuilder()

public CloudStorageRegexFileSetOrBuilder getRegexFileSetOrBuilder()

The regex-filtered set of files to scan. Exactly one of url or regex_file_set must be set.

.google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2;

Returns
TypeDescription
CloudStorageRegexFileSetOrBuilder

getUrl()

public String getUrl()

The Cloud Storage url of the file(s) to scan, in the format gs://<bucket>/<path>. Trailing wildcard in the path is allowed. If the url ends in a trailing slash, the bucket or directory represented by the url will be scanned non-recursively (content in sub-directories will not be scanned). This means that gs://mybucket/ is equivalent to gs://mybucket/*, and gs://mybucket/directory/ is equivalent to gs://mybucket/directory/*. Exactly one of url or regex_file_set must be set.

string url = 1;

Returns
TypeDescription
String

The url.

getUrlBytes()

public ByteString getUrlBytes()

The Cloud Storage url of the file(s) to scan, in the format gs://<bucket>/<path>. Trailing wildcard in the path is allowed. If the url ends in a trailing slash, the bucket or directory represented by the url will be scanned non-recursively (content in sub-directories will not be scanned). This means that gs://mybucket/ is equivalent to gs://mybucket/*, and gs://mybucket/directory/ is equivalent to gs://mybucket/directory/*. Exactly one of url or regex_file_set must be set.

string url = 1;

Returns
TypeDescription
ByteString

The bytes for url.

hasRegexFileSet()

public boolean hasRegexFileSet()

The regex-filtered set of files to scan. Exactly one of url or regex_file_set must be set.

.google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2;

Returns
TypeDescription
boolean

Whether the regexFileSet field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CloudStorageOptions.FileSet other)

public CloudStorageOptions.FileSet.Builder mergeFrom(CloudStorageOptions.FileSet other)
Parameter
NameDescription
otherCloudStorageOptions.FileSet
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CloudStorageOptions.FileSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CloudStorageOptions.FileSet.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder
Overrides

mergeRegexFileSet(CloudStorageRegexFileSet value)

public CloudStorageOptions.FileSet.Builder mergeRegexFileSet(CloudStorageRegexFileSet value)

The regex-filtered set of files to scan. Exactly one of url or regex_file_set must be set.

.google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2;

Parameter
NameDescription
valueCloudStorageRegexFileSet
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudStorageOptions.FileSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CloudStorageOptions.FileSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder
Overrides

setRegexFileSet(CloudStorageRegexFileSet value)

public CloudStorageOptions.FileSet.Builder setRegexFileSet(CloudStorageRegexFileSet value)

The regex-filtered set of files to scan. Exactly one of url or regex_file_set must be set.

.google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2;

Parameter
NameDescription
valueCloudStorageRegexFileSet
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder

setRegexFileSet(CloudStorageRegexFileSet.Builder builderForValue)

public CloudStorageOptions.FileSet.Builder setRegexFileSet(CloudStorageRegexFileSet.Builder builderForValue)

The regex-filtered set of files to scan. Exactly one of url or regex_file_set must be set.

.google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2;

Parameter
NameDescription
builderForValueCloudStorageRegexFileSet.Builder
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder

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

public CloudStorageOptions.FileSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CloudStorageOptions.FileSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder
Overrides

setUrl(String value)

public CloudStorageOptions.FileSet.Builder setUrl(String value)

The Cloud Storage url of the file(s) to scan, in the format gs://<bucket>/<path>. Trailing wildcard in the path is allowed. If the url ends in a trailing slash, the bucket or directory represented by the url will be scanned non-recursively (content in sub-directories will not be scanned). This means that gs://mybucket/ is equivalent to gs://mybucket/*, and gs://mybucket/directory/ is equivalent to gs://mybucket/directory/*. Exactly one of url or regex_file_set must be set.

string url = 1;

Parameter
NameDescription
valueString

The url to set.

Returns
TypeDescription
CloudStorageOptions.FileSet.Builder

This builder for chaining.

setUrlBytes(ByteString value)

public CloudStorageOptions.FileSet.Builder setUrlBytes(ByteString value)

The Cloud Storage url of the file(s) to scan, in the format gs://<bucket>/<path>. Trailing wildcard in the path is allowed. If the url ends in a trailing slash, the bucket or directory represented by the url will be scanned non-recursively (content in sub-directories will not be scanned). This means that gs://mybucket/ is equivalent to gs://mybucket/*, and gs://mybucket/directory/ is equivalent to gs://mybucket/directory/*. Exactly one of url or regex_file_set must be set.

string url = 1;

Parameter
NameDescription
valueByteString

The bytes for url to set.

Returns
TypeDescription
CloudStorageOptions.FileSet.Builder

This builder for chaining.