# Service Usage v1 API - Class BatchEnableServicesResponse.Types.EnableFailure (2.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Types.EnableFailure)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.5.0/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Types.EnableFailure)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.4.0/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Types.EnableFailure)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.3.0/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Types.EnableFailure)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.2.0/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Types.EnableFailure)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.1.0/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Types.EnableFailure)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.0.0/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Types.EnableFailure)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.2.0/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Types.EnableFailure)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.1.0/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Types.EnableFailure)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.0.0/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Types.EnableFailure)

    public sealed class BatchEnableServicesResponse.Types.EnableFailure : IMessage<BatchEnableServicesResponse.Types.EnableFailure>, IEquatable<BatchEnableServicesResponse.Types.EnableFailure>, IDeepCloneable<BatchEnableServicesResponse.Types.EnableFailure>, IBufferMessage, IMessage

Reference documentation and code samples for the Service Usage v1 API class BatchEnableServicesResponse.Types.EnableFailure.

Provides error messages for the failing services.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> BatchEnableServicesResponse.Types.EnableFailure

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BatchEnableServicesResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Types)[EnableFailure](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Types.EnableFailure), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BatchEnableServicesResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Types)[EnableFailure](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Types.EnableFailure), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BatchEnableServicesResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Types)[EnableFailure](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Types.EnableFailure), [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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.ServiceUsage.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1)

## Assembly

Google.Cloud.ServiceUsage.V1.dll

## Constructors

### EnableFailure()

    public EnableFailure()

### EnableFailure(EnableFailure)

    public EnableFailure(BatchEnableServicesResponse.Types.EnableFailure other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.BatchEnableServicesResponse.Types.EnableFailure` |

## Properties

### ErrorMessage

    public string ErrorMessage { get; set; }

An error message describing why the service could not be enabled.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ServiceId

    public string ServiceId { get; set; }

The service id of a service that could not be enabled.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |