Resource: Corpus
Corpus is a set of media contents for management. Within a corpus, media shares the same data schema. Search is also restricted within a single corpus.
JSON representation |
---|
{ "name": string, "displayName": string, "description": string, "defaultTtl": string, "type": enum ( |
Fields | |
---|---|
name |
Resource name of the corpus. Form: |
displayName |
Required. The corpus name to shown in the UI. The name can be up to 32 characters long. |
description |
Optional. Description of the corpus. Can be up to 25000 characters long. |
defaultTtl |
Optional. The default TTL value for all assets under the corpus without a asset level user-defined TTL. For STREAM_VIDEO type corpora, this is required and the maximum allowed defaultTtl is 10 years. A duration in seconds with up to nine fractional digits, ending with ' |
type |
Optional. Type of the asset inside corpus. |
searchCapabilitySetting |
Default search capability setting on corpus level. |
Type
Type of the asset inside the corpus.
Enums | |
---|---|
TYPE_UNSPECIFIED |
The default type, not supposed to be used. If this default type is used, the corpus will be created as STREAM_VIDEO corpus. |
STREAM_VIDEO |
Asset is a live streaming video asset. |
IMAGE |
Asset is an image. |
VIDEO_ON_DEMAND |
Asset is a video asset. |
SearchCapabilitySetting
Setting for search capability to enable.
JSON representation |
---|
{
"searchCapabilities": [
{
object ( |
Fields | |
---|---|
searchCapabilities[] |
The metadata of search capability to enable. |
SearchCapability
The capability and metadata of search capability.
JSON representation |
---|
{
"type": enum ( |
Fields | |
---|---|
type |
The search capability to enable. |
Type
Capability to perform different search on assets.
Enums | |
---|---|
TYPE_UNSPECIFIED |
Unspecified search capability, should never be used. |
EMBEDDING_SEARCH |
Embedding search. |
Methods |
|
---|---|
|
Analyzes a corpus. |
|
Creates a corpus inside a project. |
|
Deletes a corpus only if its empty. |
|
Gets corpus details inside a project. |
|
Lists all corpora in a project. |
|
Updates a corpus in a project. |
|
Search media asset. |