(::String) — Optional. The ID to use for the collection, which will become the final
component of the resource name if user choose to specify. Otherwise,
collection id will be generated by system.
This value should be up to 55 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.
#collection_id=
defcollection_id=(value)->::String
Parameter
value (::String) — Optional. The ID to use for the collection, which will become the final
component of the resource name if user choose to specify. Otherwise,
collection id will be generated by system.
This value should be up to 55 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 collection, which will become the final
component of the resource name if user choose to specify. Otherwise,
collection id will be generated by system.
This value should be up to 55 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 collection will be created.
Format: projects/{project_number}/locations/{location}/corpora/{corpus}
#parent=
defparent=(value)->::String
Parameter
value (::String) — Required. The parent resource where this collection will be created.
Format: projects/{project_number}/locations/{location}/corpora/{corpus}
Returns
(::String) — Required. The parent resource where this collection will be created.
Format: projects/{project_number}/locations/{location}/corpora/{corpus}
[[["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::CreateCollectionRequest (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-CreateCollectionRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/1.1.0/Google-Cloud-VisionAI-V1-CreateCollectionRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision_ai-v1/1.0.1/Google-Cloud-VisionAI-V1-CreateCollectionRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.4.0/Google-Cloud-VisionAI-V1-CreateCollectionRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.3.0/Google-Cloud-VisionAI-V1-CreateCollectionRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.2.0/Google-Cloud-VisionAI-V1-CreateCollectionRequest)\n- [0.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.1.0/Google-Cloud-VisionAI-V1-CreateCollectionRequest) \nReference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::CreateCollectionRequest.\n\nRequest message for CreateCollection. \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### #collection\n\n def collection() -\u003e ::Google::Cloud::VisionAI::V1::Collection\n\n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::Collection](./Google-Cloud-VisionAI-V1-Collection)) --- Required. The collection resource to be created.\n\n### #collection=\n\n def collection=(value) -\u003e ::Google::Cloud::VisionAI::V1::Collection\n\n**Parameter**\n\n- **value** ([::Google::Cloud::VisionAI::V1::Collection](./Google-Cloud-VisionAI-V1-Collection)) --- Required. The collection resource to be created. \n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::Collection](./Google-Cloud-VisionAI-V1-Collection)) --- Required. The collection resource to be created.\n\n### #collection_id\n\n def collection_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The ID to use for the collection, which will become the final component of the resource name if user choose to specify. Otherwise, collection id will be generated by system.\n\n This value should be up to 55 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### #collection_id=\n\n def collection_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The ID to use for the collection, which will become the final component of the resource name if user choose to specify. Otherwise, collection id will be generated by system.\n\n\n This value should be up to 55 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 collection, which will become the final component of the resource name if user choose to specify. Otherwise, collection id will be generated by system.\n\n This value should be up to 55 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 collection will be created. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}`\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The parent resource where this collection will be created. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}` \n**Returns**\n\n- (::String) --- Required. The parent resource where this collection will be created. Format: `projects/{project_number}/locations/{location}/corpora/{corpus}`"]]