Data Loss Prevention V2 Client - Class FileExtensionInfo (2.1.0)

Reference documentation and code samples for the Data Loss Prevention V2 Client class FileExtensionInfo.

Information regarding the discovered file extension.

Generated from protobuf message google.privacy.dlp.v2.FileExtensionInfo

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ file_extension string

The file extension if set. (aka .pdf, .jpg, .txt)

getFileExtension

The file extension if set. (aka .pdf, .jpg, .txt)

Returns
Type Description
string

setFileExtension

The file extension if set. (aka .pdf, .jpg, .txt)

Parameter
Name Description
var string
Returns
Type Description
$this