1.2.0 (latest) 1.1.0 1.0.0

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

Reference documentation and code samples for the API hub v1 API class CollectApiDataRequest.

The CollectApiData method's request.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.ApiHub.V1.dll

## Constructors

### CollectApiDataRequest()

    public CollectApiDataRequest()

### CollectApiDataRequest(CollectApiDataRequest)

    public CollectApiDataRequest(CollectApiDataRequest other)

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

## Properties

### ActionId

    public string ActionId { get; set; }

Required. The action ID to be used for collecting the API data.
This should map to one of the action IDs specified
in action configs in the plugin.

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

### ApiData

    public ApiData ApiData { get; set; }

Required. The API data to be collected.

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

### CollectionType

    public CollectionType CollectionType { get; set; }

Required. The type of collection. Applies to all entries in
\[api_data\]\[google.cloud.apihub.v1.CollectApiDataRequest.api_data\].

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

### Location

    public string Location { get; set; }

Required. The regional location of the API hub instance and its resources.
Format: `projects/{project}/locations/{location}`

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

### LocationAsLocationName

    public LocationName LocationAsLocationName { get; set; }

[LocationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.md.txt)-typed view over the [Location](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CollectApiDataRequest.md.txt#Google_Cloud_ApiHub_V1_CollectApiDataRequest_Location) resource name property.

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

### PluginInstance

    public string PluginInstance { get; set; }

Required. The plugin instance collecting the API data.
Format:
`projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`.

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

### PluginInstanceAsPluginInstanceName

    public PluginInstanceName PluginInstanceAsPluginInstanceName { get; set; }

[PluginInstanceName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.PluginInstanceName.md.txt)-typed view over the [PluginInstance](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.CollectApiDataRequest.md.txt#Google_Cloud_ApiHub_V1_CollectApiDataRequest_PluginInstance) resource name property.

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