Data Loss Prevention V2 Client - Class Value (1.10.2)

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
NameDescription
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
TypeDescription
int|string

hasIntegerValue

setIntegerValue

integer

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getFloatValue

float

Returns
TypeDescription
float

hasFloatValue

setFloatValue

float

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getStringValue

string

Returns
TypeDescription
string

hasStringValue

setStringValue

string

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBooleanValue

boolean

Returns
TypeDescription
bool

hasBooleanValue

setBooleanValue

boolean

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getTimestampValue

timestamp

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasTimestampValue

setTimestampValue

timestamp

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getTimeValue

time of day

Returns
TypeDescription
Google\Type\TimeOfDay|null

hasTimeValue

setTimeValue

time of day

Parameter
NameDescription
var Google\Type\TimeOfDay
Returns
TypeDescription
$this

getDateValue

date

Returns
TypeDescription
Google\Type\Date|null

hasDateValue

setDateValue

date

Parameter
NameDescription
var Google\Type\Date
Returns
TypeDescription
$this

getDayOfWeekValue

day of week

Returns
TypeDescription
int

hasDayOfWeekValue

setDayOfWeekValue

day of week

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getType

Returns
TypeDescription
string