Data Loss Prevention V2 Client - Class Color (1.10.2)

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

Represents a color in the RGB color space.

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

Namespace

Google \ Cloud \ Dlp \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ red float

The amount of red in the color as a value in the interval [0, 1].

↳ green float

The amount of green in the color as a value in the interval [0, 1].

↳ blue float

The amount of blue in the color as a value in the interval [0, 1].

getRed

The amount of red in the color as a value in the interval [0, 1].

Returns
TypeDescription
float

setRed

The amount of red in the color as a value in the interval [0, 1].

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getGreen

The amount of green in the color as a value in the interval [0, 1].

Returns
TypeDescription
float

setGreen

The amount of green in the color as a value in the interval [0, 1].

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getBlue

The amount of blue in the color as a value in the interval [0, 1].

Returns
TypeDescription
float

setBlue

The amount of blue in the color as a value in the interval [0, 1].

Parameter
NameDescription
var float
Returns
TypeDescription
$this