Cloud Data Loss Prevention (DLP) V2 API - Class Google::Cloud::Dlp::V2::Color (v1.3.0)

Reference documentation and code samples for the Cloud Data Loss Prevention (DLP) V2 API class Google::Cloud::Dlp::V2::Color.

Represents a color in the RGB color space.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#blue

def blue() -> ::Float
Returns
  • (::Float) — The amount of blue in the color as a value in the interval [0, 1].

#blue=

def blue=(value) -> ::Float
Parameter
  • value (::Float) — The amount of blue in the color as a value in the interval [0, 1].
Returns
  • (::Float) — The amount of blue in the color as a value in the interval [0, 1].

#green

def green() -> ::Float
Returns
  • (::Float) — The amount of green in the color as a value in the interval [0, 1].

#green=

def green=(value) -> ::Float
Parameter
  • value (::Float) — The amount of green in the color as a value in the interval [0, 1].
Returns
  • (::Float) — The amount of green in the color as a value in the interval [0, 1].

#red

def red() -> ::Float
Returns
  • (::Float) — The amount of red in the color as a value in the interval [0, 1].

#red=

def red=(value) -> ::Float
Parameter
  • value (::Float) — The amount of red in the color as a value in the interval [0, 1].
Returns
  • (::Float) — The amount of red in the color as a value in the interval [0, 1].