1.5.0 (latest) 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class ApiTarget : IMessage<ApiTarget>, IEquatable<ApiTarget>, IDeepCloneable<ApiTarget>, IBufferMessage, IMessage

Reference documentation and code samples for the API Keys v2 API class ApiTarget.

A restriction for a specific service and optionally one or multiple
specific methods. Both fields are case insensitive.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ApiTarget](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiTarget.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ApiTarget](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiTarget.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ApiTarget](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.ApiTarget.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.ApiKeys.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.md.txt)

## Assembly

Google.Cloud.ApiKeys.V2.dll

## Constructors

### ApiTarget()

    public ApiTarget()

### ApiTarget(ApiTarget)

    public ApiTarget(ApiTarget other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ApiTarget` |

## Properties

### Methods

    public RepeatedField<string> Methods { get; }

Optional. List of one or more methods that can be called.
If empty, all methods for the service are allowed. A wildcard
(*) can be used as the last symbol.
Valid examples:
`google.cloud.translate.v2.TranslateService.GetSupportedLanguage`
`TranslateText`
\`Get* `` `translate.googleapis.com.Get* ``

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### Service

    public string Service { get; set; }

The service for this restriction. It should be the canonical
service name, for example: `translate.googleapis.com`.
You can use [`gcloud services list`](https://docs.cloud.google.com/sdk/gcloud/reference/services/list)
to get a list of services that are enabled in the project.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |