Class Asset (0.1.5)

Asset(mapping=None, *, ignore_unknown_fields=False, **kwargs)

An asset is a resource in corpus. It represents a media object inside corpus, contains metadata and another resource annotation. Different feature could be applied to the asset to generate annotations. User could specified annotation related to the target asset.

Attributes

Name Description
name str
Resource name of the asset. Form: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
ttl google.protobuf.duration_pb2.Duration
The duration for which all media assets, associated metadata, and search documents can exist. If not set, then it will using the default ttl in the parent corpus resource.