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

Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class AssetSource.

The source of the asset.

Generated from protobuf message google.cloud.visionai.v1.AssetSource

Namespace

Google \ Cloud \ VisionAI \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ asset_gcs_source AssetSource\AssetGcsSource

The source of the asset is from Cloud Storage.

↳ asset_content_data AssetSource\AssetContentData

The source of the asset is from content bytes.

getAssetGcsSource

The source of the asset is from Cloud Storage.

Returns
Type Description
AssetSource\AssetGcsSource|null

hasAssetGcsSource

setAssetGcsSource

The source of the asset is from Cloud Storage.

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

getAssetContentData

The source of the asset is from content bytes.

Returns
Type Description
AssetSource\AssetContentData|null

hasAssetContentData

setAssetContentData

The source of the asset is from content bytes.

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

getSourceForm

Returns
Type Description
string

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026年03月30日 UTC.