1.0.0 (latest) 1.0.0-beta01

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

Reference documentation and code samples for the Vision AI v1 API class CollectionItem.

A CollectionItem is an item in a collection. Each item is a reference to the original resource in a collection.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.VisionAI.V1.dll

## Constructors

### CollectionItem()

    public CollectionItem()

### CollectionItem(CollectionItem)

    public CollectionItem(CollectionItem other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.CollectionItem` |

## Properties

### Collection

    public string Collection { get; set; }

Required. The collection name that this item belongs to. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}`

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

### CollectionAsCollectionName

    public CollectionName CollectionAsCollectionName { get; set; }

[CollectionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.CollectionName)-typed view over the [Collection](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.CollectionItem#Google_Cloud_VisionAI_V1_CollectionItem_Collection) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.CollectionName` |   |

### ItemResource

    public string ItemResource { get; set; }

Required. The name of the CollectionItem. Its format depends on the `type` above. For ASSET: `projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}`

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

### Type

    public CollectionItem.Types.Type Type { get; set; }

Required. The type of item.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.CollectionItemhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.CollectionItem.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VisionAI.V1/latest/Google.Cloud.VisionAI.V1.CollectionItem.Types.Type` |   |