Required. Resource name of the project that the data policy will belong to.
The format is projects/{project_number}/locations/{location_id}. Please see
DataPolicyServiceClient::locationName() 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 BigQuery Data Policies V1 Client - Class CreateDataPolicyRequest (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-bigquery-datapolicies/latest/V1.CreateDataPolicyRequest)\n- [1.0.4](/php/docs/reference/cloud-bigquery-datapolicies/1.0.4/V1.CreateDataPolicyRequest)\n- [0.5.5](/php/docs/reference/cloud-bigquery-datapolicies/0.5.5/V1.CreateDataPolicyRequest)\n- [0.4.1](/php/docs/reference/cloud-bigquery-datapolicies/0.4.1/V1.CreateDataPolicyRequest)\n- [0.3.3](/php/docs/reference/cloud-bigquery-datapolicies/0.3.3/V1.CreateDataPolicyRequest)\n- [0.2.4](/php/docs/reference/cloud-bigquery-datapolicies/0.2.4/V1.CreateDataPolicyRequest)\n- [0.1.1](/php/docs/reference/cloud-bigquery-datapolicies/0.1.1/V1.CreateDataPolicyRequest) \nReference documentation and code samples for the Google Cloud BigQuery Data Policies V1 Client class CreateDataPolicyRequest.\n\nRequest message for the CreateDataPolicy method.\n\nGenerated from protobuf message `google.cloud.bigquery.datapolicies.v1.CreateDataPolicyRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BigQuery \\\\ DataPolicies \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. Resource name of the project that the data policy will belong to.\n\nThe format is `projects/{project_number}/locations/{location_id}`.\n\n### setParent\n\nRequired. Resource name of the project that the data policy will belong to.\n\nThe format is `projects/{project_number}/locations/{location_id}`.\n\n### getDataPolicy\n\nRequired. The data policy to create. The `name` field does not need to be\nprovided for the data policy creation.\n\n### hasDataPolicy\n\n### clearDataPolicy\n\n### setDataPolicy\n\nRequired. The data policy to create. The `name` field does not need to be\nprovided for the data policy creation.\n\n### static::build"]]