Data Loss Prevention V2 Client - Class Color (1.15.1)

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
Name Description
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
Type Description
float

setRed

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

Parameter
Name Description
var float
Returns
Type Description
$this

getGreen

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

Returns
Type Description
float

setGreen

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

Parameter
Name Description
var float
Returns
Type Description
$this

getBlue

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

Returns
Type Description
float

setBlue

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

Parameter
Name Description
var float
Returns
Type Description
$this