public sealed class GetDataPolicyRequest : IMessage<GetDataPolicyRequest>, IEquatable<GetDataPolicyRequest>, IDeepCloneable<GetDataPolicyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the BigQuery Data Policy v1 API class GetDataPolicyRequest.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation covers the \u003ccode\u003eGetDataPolicyRequest\u003c/code\u003e class within the Google Cloud BigQuery Data Policy v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetDataPolicyRequest\u003c/code\u003e class is used for requesting data policies and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the API available, from version 1.0.0 up to the latest version, 1.5.0, each with its own documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, one default and another that accepts a \u003ccode\u003eGetDataPolicyRequest\u003c/code\u003e object, and it also includes two properties: \u003ccode\u003eDataPolicyName\u003c/code\u003e and \u003ccode\u003eName\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property requires the resource name of the data policy, following the format of \u003ccode\u003eprojects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# BigQuery Data Policy v1 API - Class GetDataPolicyRequest (1.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.GetDataPolicyRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/1.4.0/Google.Cloud.BigQuery.DataPolicies.V1.GetDataPolicyRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/1.3.0/Google.Cloud.BigQuery.DataPolicies.V1.GetDataPolicyRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/1.2.0/Google.Cloud.BigQuery.DataPolicies.V1.GetDataPolicyRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/1.1.0/Google.Cloud.BigQuery.DataPolicies.V1.GetDataPolicyRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/1.0.0/Google.Cloud.BigQuery.DataPolicies.V1.GetDataPolicyRequest) \n\n public sealed class GetDataPolicyRequest : IMessage\u003cGetDataPolicyRequest\u003e, IEquatable\u003cGetDataPolicyRequest\u003e, IDeepCloneable\u003cGetDataPolicyRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the BigQuery Data Policy v1 API class GetDataPolicyRequest.\n\nRequest message for the GetDataPolicy method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GetDataPolicyRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GetDataPolicyRequest](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.GetDataPolicyRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetDataPolicyRequest](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.GetDataPolicyRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetDataPolicyRequest](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.GetDataPolicyRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.BigQuery.DataPolicies.V1](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.BigQuery.DataPolicies.V1.dll\n\nConstructors\n------------\n\n### GetDataPolicyRequest()\n\n public GetDataPolicyRequest()\n\n### GetDataPolicyRequest(GetDataPolicyRequest)\n\n public GetDataPolicyRequest(GetDataPolicyRequest other)\n\nProperties\n----------\n\n### DataPolicyName\n\n public DataPolicyName DataPolicyName { get; set; }\n\n[DataPolicyName](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.DataPolicyName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.BigQuery.DataPolicies.V1/latest/Google.Cloud.BigQuery.DataPolicies.V1.GetDataPolicyRequest#Google_Cloud_BigQuery_DataPolicies_V1_GetDataPolicyRequest_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. Resource name of the requested data policy. Format is\n`projects/{project_number}/locations/{location_id}/dataPolicies/{data_policy_id}`."]]