Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class IndexedAsset.
An IndexedAsset is an asset that the index is built upon.
Generated from protobuf message google.cloud.visionai.v1.IndexedAsset
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ index |
string
Required. The index that this indexed asset belongs to. Format: |
↳ asset |
string
Required. The resource name of the asset. Format: |
↳ create_time |
Google\Protobuf\Timestamp
Output only. The create timestamp. |
↳ update_time |
Google\Protobuf\Timestamp
Output only. The update timestamp. |
getIndex
Required. The index that this indexed asset belongs to.
Format:
projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}
| Returns | |
|---|---|
| Type | Description |
string |
|
setIndex
Required. The index that this indexed asset belongs to.
Format:
projects/{project_number}/locations/{location}/corpora/{corpus}/indexes/{index}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAsset
Required. The resource name of the asset.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
| Returns | |
|---|---|
| Type | Description |
string |
|
setAsset
Required. The resource name of the asset.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCreateTime
Output only. The create timestamp.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasCreateTime
clearCreateTime
setCreateTime
Output only. The create timestamp.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUpdateTime
Output only. The update timestamp.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The update timestamp.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|