The service configuration of the available service.
Some fields may be filtered out of the configuration in responses to
the ListServices method. These fields are present only in responses to
the GetService method.
[[["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\u003eThis documentation provides reference information and code samples for the Service Usage v1 API class, \u003ccode\u003eService\u003c/code\u003e, specifically for .NET development.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eService\u003c/code\u003e class represents a service that is available for use by the consumer, and it includes properties like \u003ccode\u003eConfig\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eServiceName\u003c/code\u003e, and \u003ccode\u003eState\u003c/code\u003e for detailed service information.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eService\u003c/code\u003e class has multiple versions available, with the latest being 2.5.0 and other versions ranging from 2.4.0 down to 1.0.0 accessible through the provided links.\u003c/p\u003e\n"],["\u003cp\u003eThe class 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, extending its functionality and compatibility.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eService\u003c/code\u003e Class has 2 constructors available, one that is empty, and one that accepts another \u003ccode\u003eService\u003c/code\u003e as an argument.\u003c/p\u003e\n"]]],[],null,["# Service Usage v1 API - Class Service (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.Service)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.4.0/Google.Cloud.ServiceUsage.V1.Service)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.3.0/Google.Cloud.ServiceUsage.V1.Service)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.2.0/Google.Cloud.ServiceUsage.V1.Service)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.1.0/Google.Cloud.ServiceUsage.V1.Service)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.0.0/Google.Cloud.ServiceUsage.V1.Service)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.2.0/Google.Cloud.ServiceUsage.V1.Service)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.1.0/Google.Cloud.ServiceUsage.V1.Service)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.0.0/Google.Cloud.ServiceUsage.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 Service Usage v1 API class Service.\n\nA service that is available for use by the consumer. \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.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.Service), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Service](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.Service), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Service](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.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.ServiceUsage.V1](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ServiceUsage.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### Config\n\n public ServiceConfig Config { get; set; }\n\nThe service configuration of the available service.\nSome fields may be filtered out of the configuration in responses to\nthe `ListServices` method. These fields are present only in responses to\nthe `GetService` method.\n\n### Name\n\n public string Name { get; set; }\n\nThe resource name of the consumer and service.\n\nA valid name would be:\n\n- projects/123/services/serviceusage.googleapis.com\n\n### Parent\n\n public string Parent { get; set; }\n\nThe resource name of the consumer.\n\nA valid name would be:\n\n- projects/123\n\n### ServiceName\n\n public ServiceName ServiceName { get; set; }\n\n[ServiceName](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.ServiceName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.Service#Google_Cloud_ServiceUsage_V1_Service_Name) resource name property.\n\n### State\n\n public State State { get; set; }\n\nWhether or not the service has been enabled for use by the consumer."]]