1.3.0 (latest) 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Vector Search v1 API class CreateDataObjectRequest.

Request message for
\[DataObjectService.CreateDataObject\]\[google.cloud.vectorsearch.v1.DataObjectService.CreateDataObject\].

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.VectorSearch.V1.dll

## Constructors

### CreateDataObjectRequest()

    public CreateDataObjectRequest()

### CreateDataObjectRequest(CreateDataObjectRequest)

    public CreateDataObjectRequest(CreateDataObjectRequest other)

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

## Properties

### DataObject

    public DataObject DataObject { get; set; }

Required. The DataObject to create.

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

### DataObjectId

    public string DataObjectId { get; set; }

Required. The id of the dataObject to create.
The id must be 1-63 characters long, and comply with
[RFC1035](https://www.ietf.org/rfc/rfc1035.txt).
Specifically, it must be 1-63 characters long and match the regular
expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`.

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

### Parent

    public string Parent { get; set; }

Required. The resource name of the Collection to create the DataObject in.
Format: `projects/{project}/locations/{location}/collections/{collection}`

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

### ParentAsCollectionName

    public CollectionName ParentAsCollectionName { get; set; }

[CollectionName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.CollectionName.md.txt)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.VectorSearch.V1/latest/Google.Cloud.VectorSearch.V1.CreateDataObjectRequest.md.txt#Google_Cloud_VectorSearch_V1_CreateDataObjectRequest_Parent) resource name property.

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