(::String) — Optional. The ID for the index. This will become the final resource name
for the index. If the user does not specify this value, it 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.
#index_id=
defindex_id=(value)->::String
Parameter
value (::String) — Optional. The ID for the index. This will become the final resource name
for the index. If the user does not specify this value, it 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 for the index. This will become the final resource name
for the index. If the user does not specify this value, it 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. Value for the parent. The resource name of the Corpus under which
this index is created. Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}
#parent=
defparent=(value)->::String
Parameter
value (::String) — Required. Value for the parent. The resource name of the Corpus under which
this index is created. Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}
Returns
(::String) — Required. Value for the parent. The resource name of the Corpus under which
this index is 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::CreateIndexRequest (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-CreateIndexRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/1.1.0/Google-Cloud-VisionAI-V1-CreateIndexRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision_ai-v1/1.0.1/Google-Cloud-VisionAI-V1-CreateIndexRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.4.0/Google-Cloud-VisionAI-V1-CreateIndexRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.3.0/Google-Cloud-VisionAI-V1-CreateIndexRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.2.0/Google-Cloud-VisionAI-V1-CreateIndexRequest)\n- [0.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.1.0/Google-Cloud-VisionAI-V1-CreateIndexRequest) \nReference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::CreateIndexRequest.\n\nMessage for creating an Index. \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### #index\n\n def index() -\u003e ::Google::Cloud::VisionAI::V1::Index\n\n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::Index](./Google-Cloud-VisionAI-V1-Index)) --- Required. The index being created.\n\n### #index=\n\n def index=(value) -\u003e ::Google::Cloud::VisionAI::V1::Index\n\n**Parameter**\n\n- **value** ([::Google::Cloud::VisionAI::V1::Index](./Google-Cloud-VisionAI-V1-Index)) --- Required. The index being created. \n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::Index](./Google-Cloud-VisionAI-V1-Index)) --- Required. The index being created.\n\n### #index_id\n\n def index_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The ID for the index. This will become the final resource name for the index. If the user does not specify this value, it 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### #index_id=\n\n def index_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The ID for the index. This will become the final resource name for the index. If the user does not specify this value, it 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 for the index. This will become the final resource name for the index. If the user does not specify this value, it 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. Value for the parent. The resource name of the Corpus under which this index is 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. Value for the parent. The resource name of the Corpus under which this index is created. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}` \n**Returns**\n\n- (::String) --- Required. Value for the parent. The resource name of the Corpus under which this index is created. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}`"]]