Google Cloud Vision Ai V1 Client - Class Asset (0.3.0)

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 \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
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}

Returns
Type
Description
string

setName

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

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.

Returns
Type
Description

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.

Parameter
Name
Description
Returns
Type
Description
$this

getAssetGcsSource

Output only. The original cloud storage source uri that is associated with this asset.

Returns
Type
Description

hasAssetGcsSource

clearAssetGcsSource

setAssetGcsSource

Output only. The original cloud storage source uri that is associated with this asset.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: