Google Cloud Vision Ai V1 Client - Class AssetSource (0.3.0)
Stay organized with collections
Save and categorize content based on your preferences.
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 \ V1Methods
__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 |
|