Google Cloud Vision Ai V1 Client - Class Asset (0.1.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
Google\Protobuf\Duration|null

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
var Google\Protobuf\Duration
Returns
Type Description
$this

getAssetGcsSource

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

Returns
Type Description
AssetSource\AssetGcsSource|null

hasAssetGcsSource

clearAssetGcsSource

setAssetGcsSource

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

Parameter
Name Description
var AssetSource\AssetGcsSource
Returns
Type Description
$this