Class CloudStorageOptions.FileSet (3.39.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
TypeDescription
int

URL_FIELD_NUMBER

public static final int URL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CloudStorageOptions.FileSet getDefaultInstance()
Returns
TypeDescription
CloudStorageOptions.FileSet

getDescriptor()

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

newBuilder()

public static CloudStorageOptions.FileSet.Builder newBuilder()
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder

newBuilder(CloudStorageOptions.FileSet prototype)

public static CloudStorageOptions.FileSet.Builder newBuilder(CloudStorageOptions.FileSet prototype)
Parameter
NameDescription
prototypeCloudStorageOptions.FileSet
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder

parseDelimitedFrom(InputStream input)

public static CloudStorageOptions.FileSet parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CloudStorageOptions.FileSet
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudStorageOptions.FileSet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudStorageOptions.FileSet
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CloudStorageOptions.FileSet parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CloudStorageOptions.FileSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CloudStorageOptions.FileSet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudStorageOptions.FileSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CloudStorageOptions.FileSet parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CloudStorageOptions.FileSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CloudStorageOptions.FileSet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudStorageOptions.FileSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CloudStorageOptions.FileSet parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CloudStorageOptions.FileSet
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudStorageOptions.FileSet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudStorageOptions.FileSet
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CloudStorageOptions.FileSet parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CloudStorageOptions.FileSet
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudStorageOptions.FileSet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudStorageOptions.FileSet
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CloudStorageOptions.FileSet parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CloudStorageOptions.FileSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CloudStorageOptions.FileSet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudStorageOptions.FileSet
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

getParserForType()

public Parser<CloudStorageOptions.FileSet> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CloudStorageRegexFileSetOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CloudStorageOptions.FileSet.Builder newBuilderForType()
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CloudStorageOptions.FileSet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CloudStorageOptions.FileSet.Builder toBuilder()
Returns
TypeDescription
CloudStorageOptions.FileSet.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException