Google Cloud Data Catalog V1 Client - Class SerializedPolicyTag (1.5.1)

Reference documentation and code samples for the Google Cloud Data Catalog V1 Client class SerializedPolicyTag.

A nested protocol buffer that represents a policy tag and all its descendants.

Generated from protobuf message google.cloud.datacatalog.v1.SerializedPolicyTag

Namespace

Google \ Cloud \ DataCatalog \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ policy_tag string

Resource name of the policy tag. This field is ignored when calling ImportTaxonomies.

↳ display_name string

Required. Display name of the policy tag. At most 200 bytes when encoded in UTF-8.

↳ description string

Description of the serialized policy tag. At most 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.

↳ child_policy_tags array<Google\Cloud\DataCatalog\V1\SerializedPolicyTag>

Children of the policy tag, if any.

getPolicyTag

Resource name of the policy tag.

This field is ignored when calling ImportTaxonomies.

Returns
TypeDescription
string

setPolicyTag

Resource name of the policy tag.

This field is ignored when calling ImportTaxonomies.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

Required. Display name of the policy tag. At most 200 bytes when encoded in UTF-8.

Returns
TypeDescription
string

setDisplayName

Required. Display name of the policy tag. At most 200 bytes when encoded in UTF-8.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

Description of the serialized policy tag. At most 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.

Returns
TypeDescription
string

setDescription

Description of the serialized policy tag. At most 2000 bytes when encoded in UTF-8. If not set, defaults to an empty description.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getChildPolicyTags

Children of the policy tag, if any.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setChildPolicyTags

Children of the policy tag, if any.

Parameter
NameDescription
var array<Google\Cloud\DataCatalog\V1\SerializedPolicyTag>
Returns
TypeDescription
$this