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

0.3.0 (latest) 0.2.0 0.1.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` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AssetSource.AssetGcsSource` The source of the asset is from Cloud Storage. |
| `↳ asset_content_data` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AssetSource.AssetContentData` The source of the asset is from content bytes. |

### getAssetGcsSource

The source of the asset is from Cloud Storage.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AssetSource.AssetGcsSource|null` |   |

### hasAssetGcsSource

### setAssetGcsSource

The source of the asset is from Cloud Storage.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AssetSource.AssetGcsSource` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAssetContentData

The source of the asset is from content bytes.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AssetSource.AssetContentData|null` |   |

### hasAssetContentData

### setAssetContentData

The source of the asset is from content bytes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.AssetSource.AssetContentData` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSourceForm

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |