Google Cloud Security Command Center V2 Client - Class Label (1.29.0)

Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class Label.

Represents a generic name-value label. A label has separate name and value fields to support filtering with the contains() function. For more information, see Filtering on array-type fields.

Generated from protobuf message google.cloud.securitycenter.v2.Label

Namespace

Google \ Cloud \ SecurityCenter \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Name of the label.

↳ value string

Value that corresponds to the label's name.

getName

Name of the label.

Returns
Type Description
string

setName

Name of the label.

Parameter
Name Description
var string
Returns
Type Description
$this

getValue

Value that corresponds to the label's name.

Returns
Type Description
string

setValue

Value that corresponds to the label's name.

Parameter
Name Description
var string
Returns
Type Description
$this