public sealed class GetTopicRequest : IMessage<GetTopicRequest>, IEquatable<GetTopicRequest>, IDeepCloneable<GetTopicRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Managed Service for Apache Kafka API v1 API class GetTopicRequest.
Required. The name of the topic whose configuration to return. Structured
like:
projects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}.
[[["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-08-28 UTC."],[[["\u003cp\u003e\u003ccode\u003eGetTopicRequest\u003c/code\u003e is a class in the \u003ccode\u003eGoogle.Cloud.ManagedKafka.V1\u003c/code\u003e namespace, representing a request for the Managed Service for Apache Kafka API v1.\u003c/p\u003e\n"],["\u003cp\u003eThis class is the request for retrieving topic configuration, implementing interfaces like \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\u003e\u003ccode\u003eGetTopicRequest\u003c/code\u003e includes properties \u003ccode\u003eName\u003c/code\u003e (a string) and \u003ccode\u003eTopicName\u003c/code\u003e (of type \u003ccode\u003eTopicName\u003c/code\u003e) to specify the topic whose configuration is to be retrieved, which are a required parameter for the request.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, one default and one that takes another \u003ccode\u003eGetTopicRequest\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe current latest version of the \u003ccode\u003eGetTopicRequest\u003c/code\u003e API is 1.0.0-beta04.\u003c/p\u003e\n"]]],[],null,["# Managed Service for Apache Kafka API v1 API - Class GetTopicRequest (1.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.GetTopicRequest)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/1.0.0-beta06/Google.Cloud.ManagedKafka.V1.GetTopicRequest) \n\n public sealed class GetTopicRequest : IMessage\u003cGetTopicRequest\u003e, IEquatable\u003cGetTopicRequest\u003e, IDeepCloneable\u003cGetTopicRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Managed Service for Apache Kafka API v1 API class GetTopicRequest.\n\nRequest for GetTopic. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GetTopicRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GetTopicRequest](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.GetTopicRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetTopicRequest](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.GetTopicRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetTopicRequest](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.GetTopicRequest), [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.ManagedKafka.V1](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ManagedKafka.V1.dll\n\nConstructors\n------------\n\n### GetTopicRequest()\n\n public GetTopicRequest()\n\n### GetTopicRequest(GetTopicRequest)\n\n public GetTopicRequest(GetTopicRequest other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The name of the topic whose configuration to return. Structured\nlike:\nprojects/{project}/locations/{location}/clusters/{cluster}/topics/{topic}.\n\n### TopicName\n\n public TopicName TopicName { get; set; }\n\n[TopicName](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.TopicName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.GetTopicRequest#Google_Cloud_ManagedKafka_V1_GetTopicRequest_Name) resource name property."]]