public sealed class BatchEnableServicesRequest : IMessage<BatchEnableServicesRequest>, IEquatable<BatchEnableServicesRequest>, IDeepCloneable<BatchEnableServicesRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Service Usage v1 API class BatchEnableServicesRequest.
Request message for the BatchEnableServices method.
The identifiers of the services to enable on the project.
A valid identifier would be:
serviceusage.googleapis.com
Enabling services requires that each service is public or is shared with
the user enabling the service.
A single request can enable a maximum of 20 services at a time. If more
than 20 services are specified, the request will fail, and no state changes
will occur.
[[["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-09-04 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eBatchEnableServicesRequest\u003c/code\u003e class within the Google Cloud Service Usage v1 API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBatchEnableServicesRequest\u003c/code\u003e is used to enable multiple services on a specified project and can handle up to 20 services per request.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eBatchEnableServicesRequest\u003c/code\u003e class is 2.5.0, and there are multiple historical versions available, ranging from 1.0.0 to the current version.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBatchEnableServicesRequest\u003c/code\u003e 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, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eParent\u003c/code\u003e and \u003ccode\u003eServiceIds\u003c/code\u003e are properties of the class, where Parent is a string representing a project name to enable services on, and ServiceIds is a list of strings that represents the services to be enabled.\u003c/p\u003e\n"]]],[],null,["# Service Usage v1 API - Class BatchEnableServicesRequest (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.BatchEnableServicesRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.4.0/Google.Cloud.ServiceUsage.V1.BatchEnableServicesRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.3.0/Google.Cloud.ServiceUsage.V1.BatchEnableServicesRequest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.2.0/Google.Cloud.ServiceUsage.V1.BatchEnableServicesRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.1.0/Google.Cloud.ServiceUsage.V1.BatchEnableServicesRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.0.0/Google.Cloud.ServiceUsage.V1.BatchEnableServicesRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.2.0/Google.Cloud.ServiceUsage.V1.BatchEnableServicesRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.1.0/Google.Cloud.ServiceUsage.V1.BatchEnableServicesRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.0.0/Google.Cloud.ServiceUsage.V1.BatchEnableServicesRequest) \n\n public sealed class BatchEnableServicesRequest : IMessage\u003cBatchEnableServicesRequest\u003e, IEquatable\u003cBatchEnableServicesRequest\u003e, IDeepCloneable\u003cBatchEnableServicesRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Service Usage v1 API class BatchEnableServicesRequest.\n\nRequest message for the `BatchEnableServices` method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BatchEnableServicesRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BatchEnableServicesRequest](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.BatchEnableServicesRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BatchEnableServicesRequest](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.BatchEnableServicesRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BatchEnableServicesRequest](/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.BatchEnableServicesRequest), [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### BatchEnableServicesRequest()\n\n public BatchEnableServicesRequest()\n\n### BatchEnableServicesRequest(BatchEnableServicesRequest)\n\n public BatchEnableServicesRequest(BatchEnableServicesRequest other)\n\nProperties\n----------\n\n### Parent\n\n public string Parent { get; set; }\n\nParent to enable services on.\n\nAn example name would be:\n`projects/123` where `123` is the project number.\n\nThe `BatchEnableServices` method currently only supports projects.\n\n### ServiceIds\n\n public RepeatedField\u003cstring\u003e ServiceIds { get; }\n\nThe identifiers of the services to enable on the project.\n\nA valid identifier would be:\nserviceusage.googleapis.com\n\nEnabling services requires that each service is public or is shared with\nthe user enabling the service.\n\nA single request can enable a maximum of 20 services at a time. If more\nthan 20 services are specified, the request will fail, and no state changes\nwill occur."]]