The effective tags inherited from theattached_resource. Note that tags with the same key but different values may attach to resources at a different hierarchy levels. The lower hierarchy tag value will overwrite the higher hierarchy tag value of the same tag key. In this case, the tag value at the higher hierarchy level will be removed. For more information, seetag inheritance.
Note that tags with the same key but different values may attach to
resources at a different hierarchy levels. The lower hierarchy tag value
will overwrite the higher hierarchy tag value of the same tag key. In this
case, the tag value at the higher hierarchy level will be removed. For more
information, seetag
inheritance.
Note that tags with the same key but different values may attach to
resources at a different hierarchy levels. The lower hierarchy tag value
will overwrite the higher hierarchy tag value of the same tag key. In this
case, the tag value at the higher hierarchy level will be removed. For more
information, seetag
inheritance.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Asset V1 Client - Class EffectiveTagDetails (2.2.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.3 (latest)](/php/docs/reference/cloud-asset/latest/V1.EffectiveTagDetails)\n- [2.2.2](/php/docs/reference/cloud-asset/2.2.2/V1.EffectiveTagDetails)\n- [2.1.3](/php/docs/reference/cloud-asset/2.1.3/V1.EffectiveTagDetails)\n- [2.0.1](/php/docs/reference/cloud-asset/2.0.1/V1.EffectiveTagDetails)\n- [1.16.4](/php/docs/reference/cloud-asset/1.16.4/V1.EffectiveTagDetails)\n- [1.14.1](/php/docs/reference/cloud-asset/1.14.1/V1.EffectiveTagDetails)\n- [1.13.2](/php/docs/reference/cloud-asset/1.13.2/V1.EffectiveTagDetails)\n- [1.12.2](/php/docs/reference/cloud-asset/1.12.2/V1.EffectiveTagDetails)\n- [1.11.3](/php/docs/reference/cloud-asset/1.11.3/V1.EffectiveTagDetails)\n- [1.10.2](/php/docs/reference/cloud-asset/1.10.2/V1.EffectiveTagDetails)\n- [1.9.2](/php/docs/reference/cloud-asset/1.9.2/V1.EffectiveTagDetails) \nReference documentation and code samples for the Google Cloud Asset V1 Client class EffectiveTagDetails.\n\nThe effective tags and the ancestor resources from which they were inherited.\n\nGenerated from protobuf message `google.cloud.asset.v1.EffectiveTagDetails`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Asset \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAttachedResource\n\nThe [full resource\nname](https://cloud.google.com/asset-inventory/docs/resource-name-format)\nof the ancestor from which\n[effective_tags](/php/docs/reference/cloud-asset/latest/V1.EffectiveTagDetails#_Google_Cloud_Asset_V1_EffectiveTagDetails__getEffectiveTags__)\nare inherited, according to [tag\ninheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance).\n\n### hasAttachedResource\n\n### clearAttachedResource\n\n### setAttachedResource\n\nThe [full resource\nname](https://cloud.google.com/asset-inventory/docs/resource-name-format)\nof the ancestor from which\n[effective_tags](/php/docs/reference/cloud-asset/latest/V1.EffectiveTagDetails#_Google_Cloud_Asset_V1_EffectiveTagDetails__getEffectiveTags__)\nare inherited, according to [tag\ninheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance).\n\n### getEffectiveTags\n\nThe effective tags inherited from the\n[attached_resource](/php/docs/reference/cloud-asset/latest/V1.EffectiveTagDetails#_Google_Cloud_Asset_V1_EffectiveTagDetails__getAttachedResource__).\n\nNote that tags with the same key but different values may attach to\nresources at a different hierarchy levels. The lower hierarchy tag value\nwill overwrite the higher hierarchy tag value of the same tag key. In this\ncase, the tag value at the higher hierarchy level will be removed. For more\ninformation, see [tag\ninheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance).\n\n### setEffectiveTags\n\nThe effective tags inherited from the\n[attached_resource](/php/docs/reference/cloud-asset/latest/V1.EffectiveTagDetails#_Google_Cloud_Asset_V1_EffectiveTagDetails__getAttachedResource__).\n\nNote that tags with the same key but different values may attach to\nresources at a different hierarchy levels. The lower hierarchy tag value\nwill overwrite the higher hierarchy tag value of the same tag key. In this\ncase, the tag value at the higher hierarchy level will be removed. For more\ninformation, see [tag\ninheritance](https://cloud.google.com/resource-manager/docs/tags/tags-overview#inheritance)."]]