(::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.
#asset_id=
defasset_id=(value)->::String
Parameter
value (::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.
Returns
(::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.
#parent
defparent()->::String
Returns
(::String) — Required. The parent resource where this asset will be created.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}
#parent=
defparent=(value)->::String
Parameter
value (::String) — Required. The parent resource where this asset will be created.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}
Returns
(::String) — Required. The parent resource where this asset will be created.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Vision AI V1 API - Class Google::Cloud::VisionAI::V1::CreateAssetRequest (v1.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.1 (latest)](/ruby/docs/reference/google-cloud-vision_ai-v1/latest/Google-Cloud-VisionAI-V1-CreateAssetRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/1.1.0/Google-Cloud-VisionAI-V1-CreateAssetRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision_ai-v1/1.0.1/Google-Cloud-VisionAI-V1-CreateAssetRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.4.0/Google-Cloud-VisionAI-V1-CreateAssetRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.3.0/Google-Cloud-VisionAI-V1-CreateAssetRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.2.0/Google-Cloud-VisionAI-V1-CreateAssetRequest)\n- [0.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.1.0/Google-Cloud-VisionAI-V1-CreateAssetRequest) \nReference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::CreateAssetRequest.\n\nRequest message for CreateAssetRequest. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #asset\n\n def asset() -\u003e ::Google::Cloud::VisionAI::V1::Asset\n\n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::Asset](./Google-Cloud-VisionAI-V1-Asset)) --- Required. The asset to create.\n\n### #asset=\n\n def asset=(value) -\u003e ::Google::Cloud::VisionAI::V1::Asset\n\n**Parameter**\n\n- **value** ([::Google::Cloud::VisionAI::V1::Asset](./Google-Cloud-VisionAI-V1-Asset)) --- Required. The asset to create. \n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::Asset](./Google-Cloud-VisionAI-V1-Asset)) --- Required. The asset to create.\n\n### #asset_id\n\n def asset_id() -\u003e ::String\n\n**Returns**\n\n- (::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.\n\n This value should be up to 63 characters, and valid characters\n are /\\[a-z\\]\\[0-9\\]-/. The first character must be a letter, the last could be\n a letter or a number.\n\n### #asset_id=\n\n def asset_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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.\n\n\n This value should be up to 63 characters, and valid characters\n are /\\[a-z\\]\\[0-9\\]-/. The first character must be a letter, the last could be\na letter or a number. \n**Returns**\n\n- (::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.\n\n This value should be up to 63 characters, and valid characters\n are /\\[a-z\\]\\[0-9\\]-/. The first character must be a letter, the last could be\n a letter or a number.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The parent resource where this asset will be created. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The parent resource where this asset will be created. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}` \n**Returns**\n\n- (::String) --- Required. The parent resource where this asset will be created. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`"]]