Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::ImageQuery.
Image query for search endpoint request.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#asset
defasset()->::String
Returns
(::String) — Resource name of the asset. Only supported in IMAGE corpus type.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
Note: The following fields are mutually exclusive: asset, input_image. If a field in that set is populated, all other fields in the set will automatically be cleared.
#asset=
defasset=(value)->::String
Parameter
value (::String) — Resource name of the asset. Only supported in IMAGE corpus type.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
Note: The following fields are mutually exclusive: asset, input_image. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::String) — Resource name of the asset. Only supported in IMAGE corpus type.
Format:
projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}
Note: The following fields are mutually exclusive: asset, input_image. If a field in that set is populated, all other fields in the set will automatically be cleared.
#input_image
definput_image()->::String
Returns
(::String) — Input image in raw bytes.
Note: The following fields are mutually exclusive: input_image, asset. If a field in that set is populated, all other fields in the set will automatically be cleared.
#input_image=
definput_image=(value)->::String
Parameter
value (::String) — Input image in raw bytes.
Note: The following fields are mutually exclusive: input_image, asset. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::String) — Input image in raw bytes.
Note: The following fields are mutually exclusive: input_image, asset. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["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::ImageQuery (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-ImageQuery)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/1.1.0/Google-Cloud-VisionAI-V1-ImageQuery)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision_ai-v1/1.0.1/Google-Cloud-VisionAI-V1-ImageQuery)\n- [0.4.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.4.0/Google-Cloud-VisionAI-V1-ImageQuery)\n- [0.3.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.3.0/Google-Cloud-VisionAI-V1-ImageQuery)\n- [0.2.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.2.0/Google-Cloud-VisionAI-V1-ImageQuery)\n- [0.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.1.0/Google-Cloud-VisionAI-V1-ImageQuery) \nReference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::ImageQuery.\n\nImage query for search endpoint request. \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 ::String\n\n**Returns**\n\n- (::String) --- Resource name of the asset. Only supported in IMAGE corpus type. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`\n\n\n Note: The following fields are mutually exclusive: `asset`, `input_image`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #asset=\n\n def asset=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Resource name of the asset. Only supported in IMAGE corpus type. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`\n\n\nNote: The following fields are mutually exclusive: `asset`, `input_image`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- Resource name of the asset. Only supported in IMAGE corpus type. Format: `projects/{project_number}/locations/{location_id}/corpora/{corpus_id}/assets/{asset_id}`\n\n\n Note: The following fields are mutually exclusive: `asset`, `input_image`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #input_image\n\n def input_image() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Input image in raw bytes.\n\n Note: The following fields are mutually exclusive: `input_image`, `asset`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #input_image=\n\n def input_image=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Input image in raw bytes.\n\n\nNote: The following fields are mutually exclusive: `input_image`, `asset`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- Input image in raw bytes.\n\n Note: The following fields are mutually exclusive: `input_image`, `asset`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]