public sealed class Service : IMessage<Service>, IEquatable<Service>, IDeepCloneable<Service>, IBufferMessage, IMessage
Reference documentation and code samples for the App Hub v1 API class Service.
Service is an App Hub data model that contains a discovered service, which
represents a network or API interface that exposes some functionality to
clients for consumption over the network.
Identifier. The resource name of a Service. Format:
"projects/{host-project-id}/locations/{location}/applications/{application-id}/services/{service-id}"
[[["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\u003eService\u003c/code\u003e class in the App Hub v1 API represents a discovered service that exposes functionality to clients over a network.\u003c/p\u003e\n"],["\u003cp\u003eThis class 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, along with inheriting members from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eService\u003c/code\u003e class includes properties like \u003ccode\u003eAttributes\u003c/code\u003e, \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eDescription\u003c/code\u003e, \u003ccode\u003eDiscoveredService\u003c/code\u003e, \u003ccode\u003eDisplayName\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eState\u003c/code\u003e and \u003ccode\u003eUpdateTime\u003c/code\u003e to provide detailed information about the service.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eService\u003c/code\u003e class has a constructor and can be built to receive another \u003ccode\u003eService\u003c/code\u003e as a parameter for copy.\u003c/p\u003e\n"],["\u003cp\u003eThe service resource name is formatted as: "projects/{host-project-id}/locations/{location}/applications/{application-id}/services/{service-id}".\u003c/p\u003e\n"]]],[],null,["# App Hub v1 API - Class Service (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.Service)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.AppHub.V1/1.0.0/Google.Cloud.AppHub.V1.Service) \n\n public sealed class Service : IMessage\u003cService\u003e, IEquatable\u003cService\u003e, IDeepCloneable\u003cService\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the App Hub v1 API class Service.\n\nService is an App Hub data model that contains a discovered service, which\nrepresents a network or API interface that exposes some functionality to\nclients for consumption over the network. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Service \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Service](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.Service), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Service](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.Service), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Service](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.Service), [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### Service()\n\n public Service()\n\n### Service(Service)\n\n public Service(Service other)\n\nProperties\n----------\n\n### Attributes\n\n public Attributes Attributes { get; set; }\n\nOptional. Consumer provided attributes.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. Create time.\n\n### Description\n\n public string Description { get; set; }\n\nOptional. User-defined description of a Service.\nCan have a maximum length of 2048 characters.\n\n### DiscoveredService\n\n public string DiscoveredService { get; set; }\n\nRequired. Immutable. The resource name of the original discovered service.\n\n### DiscoveredServiceAsLocationName\n\n public LocationName DiscoveredServiceAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [DiscoveredService](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.Service#Google_Cloud_AppHub_V1_Service_DiscoveredService) resource name property.\n\n### DisplayName\n\n public string DisplayName { get; set; }\n\nOptional. User-defined name for the Service.\nCan have a maximum length of 63 characters.\n\n### Name\n\n public string Name { get; set; }\n\nIdentifier. The resource name of a Service. Format:\n`\"projects/{host-project-id}/locations/{location}/applications/{application-id}/services/{service-id}\"`\n\n### ServiceName\n\n public ServiceName ServiceName { get; set; }\n\n[ServiceName](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.ServiceName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.AppHub.V1/latest/Google.Cloud.AppHub.V1.Service#Google_Cloud_AppHub_V1_Service_Name) resource name property.\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.\n\n### State\n\n public Service.Types.State State { get; set; }\n\nOutput only. Service state.\n\n### Uid\n\n public string Uid { get; set; }\n\nOutput only. A universally unique identifier (UUID) for the `Service` in\nthe UUID4 format.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. Update time."]]