Reference documentation and code samples for the Google Cloud Vector Search V1 Client class CreateDataObjectRequest.
Request message for DataObjectService.CreateDataObject.
Generated from protobuf message google.cloud.vectorsearch.v1.CreateDataObjectRequest
Namespace
Google \ Cloud \ VectorSearch \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The resource name of the Collection to create the DataObject in. Format: |
↳ data_object_id |
string
Required. The id of the dataObject to create. The id must be 1-63 characters long, and comply with RFC1035. Specifically, it must be 1-63 characters long and match the regular expression |
↳ data_object |
DataObject
Required. The DataObject to create. |
getParent
Required. The resource name of the Collection to create the DataObject in.
Format: projects/{project}/locations/{location}/collections/{collection}
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The resource name of the Collection to create the DataObject in.
Format: projects/{project}/locations/{location}/collections/{collection}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDataObjectId
Required. The id of the dataObject to create.
The id must be 1-63 characters long, and comply with
RFC1035.
Specifically, it must be 1-63 characters long and match the regular
expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDataObjectId
Required. The id of the dataObject to create.
The id must be 1-63 characters long, and comply with
RFC1035.
Specifically, it must be 1-63 characters long and match the regular
expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDataObject
Required. The DataObject to create.
| Returns | |
|---|---|
| Type | Description |
DataObject|null |
|
hasDataObject
clearDataObject
setDataObject
Required. The DataObject to create.
| Parameter | |
|---|---|
| Name | Description |
var |
DataObject
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameters | |
|---|---|
| Name | Description |
parent |
string
Required. The resource name of the Collection to create the DataObject in.
Format: |
dataObject |
DataObject
Required. The DataObject to create. |
dataObjectId |
string
Required. The id of the dataObject to create.
The id must be 1-63 characters long, and comply with
RFC1035.
Specifically, it must be 1-63 characters long and match the regular
expression |
| Returns | |
|---|---|
| Type | Description |
CreateDataObjectRequest |
|