public sealed class DiscoveredService : IMessage<DiscoveredService>, IEquatable<DiscoveredService>, IDeepCloneable<DiscoveredService>, IBufferMessage, IMessage
Reference documentation and code samples for the App Hub v1 API class DiscoveredService.
DiscoveredService is a network or API interface that exposes some
functionality to clients for consumption over the network. A discovered
service can be registered to a App Hub service.
[[["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\u003eThe \u003ccode\u003eDiscoveredService\u003c/code\u003e class in the App Hub v1 API represents a network/API interface that provides functionality for clients to consume.\u003c/p\u003e\n"],["\u003cp\u003eIt can be registered to an App Hub service and is a subclass of \u003ccode\u003eobject\u003c/code\u003e, inheriting its members, while also implementing \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\u003eThis class includes constructors for creating new instances, either empty or based on an existing \u003ccode\u003eDiscoveredService\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDiscoveredService\u003c/code\u003e class has properties such as \u003ccode\u003eDiscoveredServiceName\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eServiceProperties\u003c/code\u003e, and \u003ccode\u003eServiceReference\u003c/code\u003e, which hold information about the discovered service, including its resource name, compute properties, and networking reference.\u003c/p\u003e\n"],["\u003cp\u003eThe most recent version of this class can be accessed in version \u003ccode\u003e1.0.0\u003c/code\u003e of the API, which is documented alongside a previous beta version \u003ccode\u003e1.0.0-beta03\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# App Hub v1 API - Class DiscoveredService (1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.DiscoveredService)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.AppHub.V1/1.0.0/Google.Cloud.AppHub.V1.DiscoveredService) \n\n public sealed class DiscoveredService : IMessage\u003cDiscoveredService\u003e, IEquatable\u003cDiscoveredService\u003e, IDeepCloneable\u003cDiscoveredService\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the App Hub v1 API class DiscoveredService.\n\nDiscoveredService is a network or API interface that exposes some\nfunctionality to clients for consumption over the network. A discovered\nservice can be registered to a App Hub service. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DiscoveredService \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DiscoveredService](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.DiscoveredService), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DiscoveredService](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.DiscoveredService), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DiscoveredService](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.DiscoveredService), [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.AppHub.V1](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.AppHub.V1.dll\n\nConstructors\n------------\n\n### DiscoveredService()\n\n public DiscoveredService()\n\n### DiscoveredService(DiscoveredService)\n\n public DiscoveredService(DiscoveredService other)\n\nProperties\n----------\n\n### DiscoveredServiceName\n\n public DiscoveredServiceName DiscoveredServiceName { get; set; }\n\n[DiscoveredServiceName](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.DiscoveredServiceName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.DiscoveredService#Google_Cloud_AppHub_V1_DiscoveredService_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nIdentifier. The resource name of the discovered service. Format:\n`\"projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}\"`\n\n### ServiceProperties\n\n public ServiceProperties ServiceProperties { get; set; }\n\nOutput only. Properties of an underlying compute resource that can comprise\na Service. These are immutable.\n\n### ServiceReference\n\n public ServiceReference ServiceReference { get; set; }\n\nOutput only. Reference to an underlying networking resource that can\ncomprise a Service. These are immutable."]]