Reference documentation and code samples for the Google Cloud BigQuery Data Policies V1 Client class GetDataPolicyRequest.
Request message for the GetDataPolicy method.
Generated from protobuf message google.cloud.bigquery.datapolicies.v1.GetDataPolicyRequest
Namespace
Google \ Cloud \ BigQuery \ DataPolicies \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. Resource name of the requested data policy. Format is projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.
getName
Required. Resource name of the requested data policy. Format is
projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.
Returns
Type
Description
string
setName
Required. Resource name of the requested data policy. Format is
projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
name
string
Required. Resource name of the requested data policy. Format is
projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}. Please see
DataPolicyServiceClient::dataPolicyName() 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 GetDataPolicyRequest (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-bigquery-datapolicies/latest/V1.GetDataPolicyRequest)\n- [1.0.4](/php/docs/reference/cloud-bigquery-datapolicies/1.0.4/V1.GetDataPolicyRequest)\n- [0.5.5](/php/docs/reference/cloud-bigquery-datapolicies/0.5.5/V1.GetDataPolicyRequest)\n- [0.4.1](/php/docs/reference/cloud-bigquery-datapolicies/0.4.1/V1.GetDataPolicyRequest)\n- [0.3.3](/php/docs/reference/cloud-bigquery-datapolicies/0.3.3/V1.GetDataPolicyRequest)\n- [0.2.4](/php/docs/reference/cloud-bigquery-datapolicies/0.2.4/V1.GetDataPolicyRequest)\n- [0.1.1](/php/docs/reference/cloud-bigquery-datapolicies/0.1.1/V1.GetDataPolicyRequest) \nReference documentation and code samples for the Google Cloud BigQuery Data Policies V1 Client class GetDataPolicyRequest.\n\nRequest message for the GetDataPolicy method.\n\nGenerated from protobuf message `google.cloud.bigquery.datapolicies.v1.GetDataPolicyRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BigQuery \\\\ DataPolicies \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. Resource name of the requested data policy. Format is\n`projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.\n\n### setName\n\nRequired. Resource name of the requested data policy. Format is\n`projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`.\n\n### static::build"]]