Data Loss Prevention V2 Client - Class Value (1.18.0)

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

Set of primitive values supported by the system.

Note that for the purposes of inspection or transformation, the number of bytes considered to comprise a 'Value' is based on its representation as a UTF-8 encoded string. For example, if 'integer_value' is set to 123456789, the number of bytes would be counted as 9, even though an int64 only holds up to 8 bytes of data.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ integer_value
int|string

integer

↳ float_value
float

float

↳ string_value
string

string

↳ boolean_value
bool

boolean

↳ timestamp_value
↳ time_value
Google\Type\TimeOfDay

time of day

↳ date_value
↳ day_of_week_value
int

day of week

getIntegerValue

integer

Returns
Type
Description
int|string

hasIntegerValue

setIntegerValue

integer

Parameter
Name
Description
var
int|string
Returns
Type
Description
$this

getFloatValue

float

Returns
Type
Description
float

hasFloatValue

setFloatValue

float

Parameter
Name
Description
var
float
Returns
Type
Description
$this

getStringValue

string

Returns
Type
Description
string

hasStringValue

setStringValue

string

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getBooleanValue

boolean

Returns
Type
Description
bool

hasBooleanValue

setBooleanValue

boolean

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getTimestampValue

timestamp

Returns
Type
Description

hasTimestampValue

setTimestampValue

timestamp

Parameter
Name
Description
Returns
Type
Description
$this

getTimeValue

time of day

Returns
Type
Description

hasTimeValue

setTimeValue

time of day

Parameter
Name
Description
Returns
Type
Description
$this

getDateValue

date

Returns
Type
Description

hasDateValue

setDateValue

date

Parameter
Name
Description
Returns
Type
Description
$this

getDayOfWeekValue

day of week

Returns
Type
Description
int

hasDayOfWeekValue

setDayOfWeekValue

day of week

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getType

Returns
Type
Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: