Google Cloud Resource Settings V1 Client - Class Value (2.0.1)

Reference documentation and code samples for the Google Cloud Resource Settings V1 Client class Value.

The data in a setting value.

Generated from protobuf message google.cloud.resourcesettings.v1.Value

Namespace

Google \ Cloud \ ResourceSettings \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ boolean_value bool

Defines this value as being a boolean value.

↳ string_value string

Defines this value as being a string value.

↳ string_set_value Google\Cloud\ResourceSettings\V1\Value\StringSet

Defines this value as being a StringSet.

↳ enum_value Google\Cloud\ResourceSettings\V1\Value\EnumValue

Defines this value as being a Enum.

getBooleanValue

Defines this value as being a boolean value.

Returns
Type Description
bool

hasBooleanValue

setBooleanValue

Defines this value as being a boolean value.

Parameter
Name Description
var bool
Returns
Type Description
$this

getStringValue

Defines this value as being a string value.

Returns
Type Description
string

hasStringValue

setStringValue

Defines this value as being a string value.

Parameter
Name Description
var string
Returns
Type Description
$this

getStringSetValue

Defines this value as being a StringSet.

Returns
Type Description
Google\Cloud\ResourceSettings\V1\Value\StringSet|null

hasStringSetValue

setStringSetValue

Defines this value as being a StringSet.

Parameter
Name Description
var Google\Cloud\ResourceSettings\V1\Value\StringSet
Returns
Type Description
$this

getEnumValue

Defines this value as being a Enum.

Returns
Type Description
Google\Cloud\ResourceSettings\V1\Value\EnumValue|null

hasEnumValue

setEnumValue

Defines this value as being a Enum.

Parameter
Name Description
var Google\Cloud\ResourceSettings\V1\Value\EnumValue
Returns
Type Description
$this

getValue

Returns
Type Description
string