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

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

Methods

__construct

Constructor.

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

hasBooleanValue

setBooleanValue

Defines this value as being a boolean value.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getStringValue

Defines this value as being a string value.

Returns
TypeDescription
string

hasStringValue

setStringValue

Defines this value as being a string value.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getStringSetValue

Defines this value as being a StringSet.

Returns
TypeDescription
Google\Cloud\ResourceSettings\V1\Value\StringSet|null

hasStringSetValue

setStringSetValue

Defines this value as being a StringSet.

Parameter
NameDescription
var Google\Cloud\ResourceSettings\V1\Value\StringSet
Returns
TypeDescription
$this

getEnumValue

Defines this value as being a Enum.

Returns
TypeDescription
Google\Cloud\ResourceSettings\V1\Value\EnumValue|null

hasEnumValue

setEnumValue

Defines this value as being a Enum.

Parameter
NameDescription
var Google\Cloud\ResourceSettings\V1\Value\EnumValue
Returns
TypeDescription
$this

getValue

Returns
TypeDescription
string