Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class Asset.
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.
Generated from protobuf message google.cloud.visionai.v1.Asset
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Resource name of the asset. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
↳ ttl
Google\Protobuf\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.
↳ asset_gcs_source
AssetSource\AssetGcsSource
Output only. The original cloud storage source uri that is associated with this asset.
getName
Resource name of the asset.
Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
string
setName
Resource name of the asset.
Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
var
string
$this
getTtl
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.
hasTtl
clearTtl
setTtl
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.
$this
getAssetGcsSource
Output only. The original cloud storage source uri that is associated with this asset.
hasAssetGcsSource
clearAssetGcsSource
setAssetGcsSource
Output only. The original cloud storage source uri that is associated with this asset.
$this

