Data Loss Prevention V2 Client - Class Value (1.17.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 Google\Protobuf\Timestamp

timestamp

↳ time_value Google\Type\TimeOfDay

time of day

↳ date_value Google\Type\Date

date

↳ 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
Google\Protobuf\Timestamp|null

hasTimestampValue

setTimestampValue

timestamp

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getTimeValue

time of day

Returns
Type Description
Google\Type\TimeOfDay|null

hasTimeValue

setTimeValue

time of day

Parameter
Name Description
var Google\Type\TimeOfDay
Returns
Type Description
$this

getDateValue

date

Returns
Type Description
Google\Type\Date|null

hasDateValue

setDateValue

date

Parameter
Name Description
var Google\Type\Date
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