Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class UploadAssetRequest.
Request message for UploadAsset.
Generated from protobuf message google.cloud.visionai.v1.UploadAssetRequest
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Required. The resource name of the asset to upload. Format: |
↳ asset_source |
AssetSource
The source of the asset. |
getName
Required. The resource name of the asset to upload.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Required. The resource name of the asset to upload.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAssetSource
The source of the asset.
| Returns | |
|---|---|
| Type | Description |
AssetSource|null |
|
hasAssetSource
clearAssetSource
setAssetSource
The source of the asset.
| Parameter | |
|---|---|
| Name | Description |
var |
AssetSource
|
| Returns | |
|---|---|
| Type | Description |
$this |
|