Google Cloud Security Command Center V1 Client - Class Label (1.19.1)

Reference documentation and code samples for the Google Cloud Security Command Center V1 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.v1.Label

Namespace

Google \ Cloud \ SecurityCenter \ V1

Methods

__construct

Constructor.

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

setName

Name of the label.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getValue

Value that corresponds to the label's name.

Returns
TypeDescription
string

setValue

Value that corresponds to the label's name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this