Google Cloud Resource Settings V1 Client - Class SettingMetadata (1.1.3)

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

Metadata about a setting which is not editable by the end user.

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

Namespace

Google \ Cloud \ ResourceSettings \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ display_name string

The human readable name for this setting.

↳ description string

A detailed description of what this setting does.

↳ read_only bool

A flag indicating that values of this setting cannot be modified (see documentation of the specific setting for updates and reasons).

↳ data_type int

The data type for this setting.

↳ default_value Google\Cloud\ResourceSettings\V1\Value

The value provided by Setting.effective_value if no setting value is explicitly set. Note: not all settings have a default value.

getDisplayName

The human readable name for this setting.

Returns
TypeDescription
string

setDisplayName

The human readable name for this setting.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

A detailed description of what this setting does.

Returns
TypeDescription
string

setDescription

A detailed description of what this setting does.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getReadOnly

A flag indicating that values of this setting cannot be modified (see documentation of the specific setting for updates and reasons).

Returns
TypeDescription
bool

setReadOnly

A flag indicating that values of this setting cannot be modified (see documentation of the specific setting for updates and reasons).

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getDataType

The data type for this setting.

Returns
TypeDescription
int

setDataType

The data type for this setting.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDefaultValue

The value provided by Setting.effective_value if no setting value is explicitly set.

Note: not all settings have a default value.

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

hasDefaultValue

clearDefaultValue

setDefaultValue

The value provided by Setting.effective_value if no setting value is explicitly set.

Note: not all settings have a default value.

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