Optional. Set to true to perform the validations necessary for creating the
resource, but not actually perform the action.
Returns
Type
Description
bool
setValidateOnly
Optional. Set to true to perform the validations necessary for creating the
resource, but not actually perform the action.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
static::build
Parameters
Name
Description
parent
string
Required. The resource name of the TagHold's parent TagValue. Must be of
the form:tagValues/{tag-value-id}. Please seeTagHoldsClient::tagValueName()for help formatting this field.
[[["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 Resource Manager V3 Client - Class CreateTagHoldRequest (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/cloud-resource-manager/latest/V3.CreateTagHoldRequest)\n- [1.0.3](/php/docs/reference/cloud-resource-manager/1.0.3/V3.CreateTagHoldRequest)\n- [0.8.5](/php/docs/reference/cloud-resource-manager/0.8.5/V3.CreateTagHoldRequest)\n- [0.7.2](/php/docs/reference/cloud-resource-manager/0.7.2/V3.CreateTagHoldRequest)\n- [0.6.1](/php/docs/reference/cloud-resource-manager/0.6.1/V3.CreateTagHoldRequest)\n- [0.5.0](/php/docs/reference/cloud-resource-manager/0.5.0/V3.CreateTagHoldRequest)\n- [0.4.1](/php/docs/reference/cloud-resource-manager/0.4.1/V3.CreateTagHoldRequest)\n- [0.3.9](/php/docs/reference/cloud-resource-manager/0.3.9/V3.CreateTagHoldRequest) \nReference documentation and code samples for the Google Cloud Resource Manager V3 Client class CreateTagHoldRequest.\n\nThe request message to create a TagHold.\n\nGenerated from protobuf message `google.cloud.resourcemanager.v3.CreateTagHoldRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ResourceManager \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The resource name of the TagHold's parent TagValue. Must be of\nthe form: `tagValues/{tag-value-id}`.\n\n### setParent\n\nRequired. The resource name of the TagHold's parent TagValue. Must be of\nthe form: `tagValues/{tag-value-id}`.\n\n### getTagHold\n\nRequired. The TagHold to be created.\n\n### hasTagHold\n\n### clearTagHold\n\n### setTagHold\n\nRequired. The TagHold to be created.\n\n### getValidateOnly\n\nOptional. Set to true to perform the validations necessary for creating the\nresource, but not actually perform the action.\n\n### setValidateOnly\n\nOptional. Set to true to perform the validations necessary for creating the\nresource, but not actually perform the action.\n\n### static::build"]]