public sealed class QueryMetadataRequest : IMessage<QueryMetadataRequest>, IEquatable<QueryMetadataRequest>, IDeepCloneable<QueryMetadataRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Dataproc Metastore v1beta API class QueryMetadataRequest.
Request message for
[DataprocMetastore.QueryMetadata][google.cloud.metastore.v1beta.DataprocMetastore.QueryMetadata].
[[["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 is for the \u003ccode\u003eQueryMetadataRequest\u003c/code\u003e class within the Google Cloud Dataproc Metastore v1beta API, with the latest version being 2.0.0-beta11.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQueryMetadataRequest\u003c/code\u003e class is used to execute read-only SQL queries against a metadata database and is the request message for \u003ccode\u003eDataprocMetastore.QueryMetadata\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \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\u003eThe \u003ccode\u003eQueryMetadataRequest\u003c/code\u003e class contains properties like \u003ccode\u003eQuery\u003c/code\u003e for the SQL query string and \u003ccode\u003eService\u003c/code\u003e (or \u003ccode\u003eServiceAsServiceName\u003c/code\u003e) for specifying the metastore service to query.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQueryMetadataRequest\u003c/code\u003e has two constructors: a default parameterless constructor and one that takes in another \u003ccode\u003eQueryMetadataRequest\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Dataproc Metastore v1beta API - Class QueryMetadataRequest (2.0.0-beta11)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta11 (latest)](/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta.QueryMetadataRequest)\n- [2.0.0-beta10](/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/2.0.0-beta10/Google.Cloud.Metastore.V1Beta.QueryMetadataRequest)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/1.0.0-beta02/Google.Cloud.Metastore.V1Beta.QueryMetadataRequest) \n\n public sealed class QueryMetadataRequest : IMessage\u003cQueryMetadataRequest\u003e, IEquatable\u003cQueryMetadataRequest\u003e, IDeepCloneable\u003cQueryMetadataRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Dataproc Metastore v1beta API class QueryMetadataRequest.\n\nRequest message for\n\\[DataprocMetastore.QueryMetadata\\]\\[google.cloud.metastore.v1beta.DataprocMetastore.QueryMetadata\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e QueryMetadataRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[QueryMetadataRequest](/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta.QueryMetadataRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[QueryMetadataRequest](/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta.QueryMetadataRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[QueryMetadataRequest](/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta.QueryMetadataRequest), [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.Metastore.V1Beta](/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.Metastore.V1Beta.dll\n\nConstructors\n------------\n\n### QueryMetadataRequest()\n\n public QueryMetadataRequest()\n\n### QueryMetadataRequest(QueryMetadataRequest)\n\n public QueryMetadataRequest(QueryMetadataRequest other)\n\nProperties\n----------\n\n### Query\n\n public string Query { get; set; }\n\nRequired. A read-only SQL query to execute against the metadata database.\nThe query cannot change or mutate the data.\n\n### Service\n\n public string Service { get; set; }\n\nRequired. The relative resource name of the metastore service to query\nmetadata, in the following format:\n\n`projects/{project_id}/locations/{location_id}/services/{service_id}`.\n\n### ServiceAsServiceName\n\n public ServiceName ServiceAsServiceName { get; set; }\n\n[ServiceName](/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta.ServiceName)-typed view over the [Service](/dotnet/docs/reference/Google.Cloud.Metastore.V1Beta/latest/Google.Cloud.Metastore.V1Beta.QueryMetadataRequest#Google_Cloud_Metastore_V1Beta_QueryMetadataRequest_Service) resource name property."]]