Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class CreateAssetRequest.
Request message for CreateAssetRequest.
Generated from protobuf message google.cloud.visionai.v1.CreateAssetRequest
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The parent resource where this asset will be created. Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}
↳ asset
↳ asset_id
string
Optional. The ID to use for the asset, which will become the final component of the asset's resource name if user choose to specify. Otherwise, asset id will be generated by system. This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
getParent
Required. The parent resource where this asset will be created.
Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}
string
setParent
Required. The parent resource where this asset will be created.
Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}
var
string
$this
getAsset
Required. The asset to create.
hasAsset
clearAsset
setAsset
Required. The asset to create.
$this
getAssetId
Optional. The ID to use for the asset, which will become the final component of the asset's resource name if user choose to specify.
Otherwise, asset id will be generated by system. This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
string
hasAssetId
clearAssetId
setAssetId
Optional. The ID to use for the asset, which will become the final component of the asset's resource name if user choose to specify.
Otherwise, asset id will be generated by system. This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.
var
string
$this
static::build
parent
string
Required. The parent resource where this asset will be created.
Format: projects/{project_number}/locations/{location_id}/corpora/{corpus_id}
Please see WarehouseClient::corpusName()
for help formatting this field.
asset
assetId
string
Optional. The ID to use for the asset, which will become the final component of the asset's resource name if user choose to specify. Otherwise, asset id will be generated by system.
This value should be up to 63 characters, and valid characters are /[a-z][0-9]-/. The first character must be a letter, the last could be a letter or a number.

