Class CloudStorageOptions.FileSet (3.49.0)

public static final class CloudStorageOptions.FileSet extends GeneratedMessageV3 implements CloudStorageOptions.FileSetOrBuilder

Set of files to scan.

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

Static Fields

REGEX_FILE_SET_FIELD_NUMBER

public static final int REGEX_FILE_SET_FIELD_NUMBER
Field Value
Type Description
int

URL_FIELD_NUMBER

public static final int URL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CloudStorageOptions.FileSet getDefaultInstance()
Returns
Type Description
CloudStorageOptions.FileSet

getDescriptor()

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

newBuilder()

public static CloudStorageOptions.FileSet.Builder newBuilder()
Returns
Type Description
CloudStorageOptions.FileSet.Builder

newBuilder(CloudStorageOptions.FileSet prototype)

public static CloudStorageOptions.FileSet.Builder newBuilder(CloudStorageOptions.FileSet prototype)
Parameter
Name Description
prototype CloudStorageOptions.FileSet
Returns
Type Description
CloudStorageOptions.FileSet.Builder

parseDelimitedFrom(InputStream input)

public static CloudStorageOptions.FileSet parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CloudStorageOptions.FileSet
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudStorageOptions.FileSet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudStorageOptions.FileSet
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CloudStorageOptions.FileSet parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CloudStorageOptions.FileSet
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CloudStorageOptions.FileSet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudStorageOptions.FileSet
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CloudStorageOptions.FileSet parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CloudStorageOptions.FileSet
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CloudStorageOptions.FileSet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudStorageOptions.FileSet
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CloudStorageOptions.FileSet parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CloudStorageOptions.FileSet
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudStorageOptions.FileSet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudStorageOptions.FileSet
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CloudStorageOptions.FileSet parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CloudStorageOptions.FileSet
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudStorageOptions.FileSet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudStorageOptions.FileSet
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CloudStorageOptions.FileSet parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CloudStorageOptions.FileSet
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CloudStorageOptions.FileSet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudStorageOptions.FileSet
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CloudStorageOptions.FileSet> parser()
Returns
Type Description
Parser<FileSet>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CloudStorageOptions.FileSet getDefaultInstanceForType()
Returns
Type Description
CloudStorageOptions.FileSet

getParserForType()

public Parser<CloudStorageOptions.FileSet> getParserForType()
Returns
Type Description
Parser<FileSet>
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
Type Description
CloudStorageRegexFileSet

The regexFileSet.

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
Type Description
CloudStorageRegexFileSetOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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
Type Description
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
Type Description
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
Type Description
boolean

Whether the regexFileSet field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CloudStorageOptions.FileSet.Builder newBuilderForType()
Returns
Type Description
CloudStorageOptions.FileSet.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CloudStorageOptions.FileSet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CloudStorageOptions.FileSet.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CloudStorageOptions.FileSet.Builder toBuilder()
Returns
Type Description
CloudStorageOptions.FileSet.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException