(::String) — Optional. The ID to use for the annotation, which will become the final
component of the annotation's resource name if user choose to specify.
Otherwise, annotation 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.
#annotation_id=
defannotation_id=(value)->::String
Parameter
value (::String) — Optional. The ID to use for the annotation, which will become the final
component of the annotation's resource name if user choose to specify.
Otherwise, annotation 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 annotation, which will become the final
component of the annotation's resource name if user choose to specify.
Otherwise, annotation 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 annotation will be created.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
#parent=
defparent=(value)->::String
Parameter
value (::String) — Required. The parent resource where this annotation will be created.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
Returns
(::String) — Required. The parent resource where this annotation will be created.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_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::CreateAnnotationRequest (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-CreateAnnotationRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/1.1.0/Google-Cloud-VisionAI-V1-CreateAnnotationRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision_ai-v1/1.0.1/Google-Cloud-VisionAI-V1-CreateAnnotationRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.4.0/Google-Cloud-VisionAI-V1-CreateAnnotationRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.3.0/Google-Cloud-VisionAI-V1-CreateAnnotationRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.2.0/Google-Cloud-VisionAI-V1-CreateAnnotationRequest)\n- [0.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.1.0/Google-Cloud-VisionAI-V1-CreateAnnotationRequest) \nReference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::CreateAnnotationRequest.\n\nRequest message for CreateAnnotation. \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### #annotation\n\n def annotation() -\u003e ::Google::Cloud::VisionAI::V1::Annotation\n\n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::Annotation](./Google-Cloud-VisionAI-V1-Annotation)) --- Required. The annotation to create.\n\n### #annotation=\n\n def annotation=(value) -\u003e ::Google::Cloud::VisionAI::V1::Annotation\n\n**Parameter**\n\n- **value** ([::Google::Cloud::VisionAI::V1::Annotation](./Google-Cloud-VisionAI-V1-Annotation)) --- Required. The annotation to create. \n**Returns**\n\n- ([::Google::Cloud::VisionAI::V1::Annotation](./Google-Cloud-VisionAI-V1-Annotation)) --- Required. The annotation to create.\n\n### #annotation_id\n\n def annotation_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The ID to use for the annotation, which will become the final component of the annotation's resource name if user choose to specify. Otherwise, annotation 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### #annotation_id=\n\n def annotation_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The ID to use for the annotation, which will become the final component of the annotation's resource name if user choose to specify. Otherwise, annotation 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 annotation, which will become the final component of the annotation's resource name if user choose to specify. Otherwise, annotation 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 annotation will be created. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The parent resource where this annotation will be created. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}` \n**Returns**\n\n- (::String) --- Required. The parent resource where this annotation will be created. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`"]]