Resource: Index
An Index is a resource in Corpus. It contains an indexed version of the assets and annotations. When deployed to an endpoint, it will allow users to search the Index.
JSON representation |
---|
{ "name": string, "displayName": string, "description": string, "state": enum ( |
Fields | |
---|---|
name |
Output only. Resource name of the Index resource. Format: |
displayName |
Optional. Optional user-specified display name of the index. |
description |
Optional. Optional description of the index. |
state |
Output only. State of the index. |
createTime |
Output only. The create timestamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The update timestamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
deployedIndexes[] |
Output only. References to the deployed index instance. Index of VIDEO_ON_DEMAND corpus can have at most one deployed index. Index of IMAGE corpus can have multiple deployed indexes. |
Union field asset_filter . Specifies how assets are selected for this index. Default to entire_corpus if unspecified. Behavior in UpdateIndex: if update_mask includes one of the asset_filter field paths, the index will be rebuilt with latest assets, including their analyzed data and annotations. asset_filter can be only one of the following: |
|
entireCorpus |
Include all assets under the corpus. |
State
Enum representing the different states through which an Index might cycle during its lifetime.
Enums | |
---|---|
STATE_UNSPECIFIED |
The default value. Should not be used. |
CREATING |
State CREATING. |
CREATED |
State CREATED. |
UPDATING |
State UPDATING. |
DeployedIndexReference
Points to a DeployedIndex.
JSON representation |
---|
{ "indexEndpoint": string } |
Fields | |
---|---|
indexEndpoint |
Immutable. A resource name of the IndexEndpoint. |
Methods |
|
---|---|
|
Creates an Index under the corpus. |
|
Delete a single Index. |
|
Gets the details of a single Index under a Corpus. |
|
List all Indexes in a given Corpus. |
|
Updates an Index under the corpus. |
|
Lists assets inside an index. |