Google Cloud Api Hub V1 Client - Class AttributeValues (0.1.3)

Reference documentation and code samples for the Google Cloud Api Hub V1 Client class AttributeValues.

The attribute values associated with resource.

Generated from protobuf message google.cloud.apihub.v1.AttributeValues

Namespace

Google \ Cloud \ ApiHub \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ enum_values AttributeValues\EnumAttributeValues

The attribute values associated with a resource in case attribute data type is enum.

↳ string_values AttributeValues\StringAttributeValues

The attribute values associated with a resource in case attribute data type is string.

↳ json_values AttributeValues\StringAttributeValues

The attribute values associated with a resource in case attribute data type is JSON.

↳ attribute string

Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}

getEnumValues

The attribute values associated with a resource in case attribute data type is enum.

Returns
Type Description
AttributeValues\EnumAttributeValues|null

hasEnumValues

setEnumValues

The attribute values associated with a resource in case attribute data type is enum.

Parameter
Name Description
var AttributeValues\EnumAttributeValues
Returns
Type Description
$this

getStringValues

The attribute values associated with a resource in case attribute data type is string.

Returns
Type Description
AttributeValues\StringAttributeValues|null

hasStringValues

setStringValues

The attribute values associated with a resource in case attribute data type is string.

Parameter
Name Description
var AttributeValues\StringAttributeValues
Returns
Type Description
$this

getJsonValues

The attribute values associated with a resource in case attribute data type is JSON.

Returns
Type Description
AttributeValues\StringAttributeValues|null

hasJsonValues

setJsonValues

The attribute values associated with a resource in case attribute data type is JSON.

Parameter
Name Description
var AttributeValues\StringAttributeValues
Returns
Type Description
$this

getAttribute

Output only. The name of the attribute.

Format: projects/{project}/locations/{location}/attributes/{attribute}

Returns
Type Description
string

setAttribute

Output only. The name of the attribute.

Format: projects/{project}/locations/{location}/attributes/{attribute}

Parameter
Name Description
var string
Returns
Type Description
$this

getValue

Returns
Type Description
string