[[["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 - Module Google::Cloud::VisionAI::V1::DataSchemaDetails::DataType (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-DataSchemaDetails-DataType)\n- [1.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/1.1.0/Google-Cloud-VisionAI-V1-DataSchemaDetails-DataType)\n- [1.0.1](/ruby/docs/reference/google-cloud-vision_ai-v1/1.0.1/Google-Cloud-VisionAI-V1-DataSchemaDetails-DataType)\n- [0.4.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.4.0/Google-Cloud-VisionAI-V1-DataSchemaDetails-DataType)\n- [0.3.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.3.0/Google-Cloud-VisionAI-V1-DataSchemaDetails-DataType)\n- [0.2.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.2.0/Google-Cloud-VisionAI-V1-DataSchemaDetails-DataType)\n- [0.1.0](/ruby/docs/reference/google-cloud-vision_ai-v1/0.1.0/Google-Cloud-VisionAI-V1-DataSchemaDetails-DataType) \nReference documentation and code samples for the Vision AI V1 API module Google::Cloud::VisionAI::V1::DataSchemaDetails::DataType.\n\nData type of the annotation.\n\nConstants\n---------\n\n### DATA_TYPE_UNSPECIFIED\n\n**value:** 0 \nUnspecified type.\n\n### INTEGER\n\n**value:** 1 \n\nInteger type.\nAllowed search strategies:\n\n\u003cbr /\u003e\n\n- DataSchema.SearchStrategy.NO_SEARCH,\n- DataSchema.SearchStrategy.EXACT_SEARCH. Supports query by IntRangeArray.\n\n### FLOAT\n\n**value:** 2 \n\nFloat type.\nAllowed search strategies:\n\n\u003cbr /\u003e\n\n- DataSchema.SearchStrategy.NO_SEARCH,\n- DataSchema.SearchStrategy.EXACT_SEARCH. Supports query by FloatRangeArray.\n\n### STRING\n\n**value:** 3 \n\nString type.\nAllowed search strategies:\n\n\u003cbr /\u003e\n\n- DataSchema.SearchStrategy.NO_SEARCH,\n- DataSchema.SearchStrategy.EXACT_SEARCH,\n- DataSchema.SearchStrategy.SMART_SEARCH.\n\n### DATETIME\n\n**value:** 5 \n\nSupported formats:\n%Y-%m-%dT%H:%M:%E*S%E* z (absl::RFC3339_full)\n%Y-%m-%dT%H:%M:%E*S\n%Y-%m-%dT%H:%M%E* z\n%Y-%m-%dT%H:%M\n%Y-%m-%dT%H%E*z\n%Y-%m-%dT%H\n%Y-%m-%d%E*z\n%Y-%m-%d\n%Y-%m\n%Y\nAllowed search strategies:\n\n\u003cbr /\u003e\n\n- DataSchema.SearchStrategy.NO_SEARCH,\n- DataSchema.SearchStrategy.EXACT_SEARCH. Supports query by DateTimeRangeArray.\n\n### GEO_COORDINATE\n\n**value:** 7 \n\nGeo coordinate type.\nAllowed search strategies:\n\n\u003cbr /\u003e\n\n- DataSchema.SearchStrategy.NO_SEARCH,\n- DataSchema.SearchStrategy.EXACT_SEARCH. Supports query by GeoLocationArray.\n\n### PROTO_ANY\n\n**value:** 8 \n\nType to pass any proto as available in annotations.proto. Only use\ninternally.\nAvailable proto types and its corresponding search behavior:\n\n\u003cbr /\u003e\n\n- ImageObjectDetectionPredictionResult, allows SMART_SEARCH on display_names and NO_SEARCH.\n- ClassificationPredictionResult, allows SMART_SEARCH on display_names and NO_SEARCH.\n- ImageSegmentationPredictionResult, allows NO_SEARCH.\n- VideoActionRecognitionPredictionResult, allows SMART_SEARCH on display_name and NO_SEARCH.\n- VideoObjectTrackingPredictionResult, allows SMART_SEARCH on display_name and NO_SEARCH.\n- VideoClassificationPredictionResult, allows SMART_SEARCH on display_name and NO_SEARCH.\n- OccupancyCountingPredictionResult, allows EXACT_SEARCH on stats.full_frame_count.count and NO_SEARCH.\n- ObjectDetectionPredictionResult, allows SMART_SEARCH on identified_boxes.entity.label_string and NO_SEARCH.\n\n### BOOLEAN\n\n**value:** 9 \n\nBoolean type.\nAllowed search strategies:\n\n\u003cbr /\u003e\n\n- DataSchema.SearchStrategy.NO_SEARCH,\n- DataSchema.SearchStrategy.EXACT_SEARCH.\n\n### LIST\n\n**value:** 10 \n\nList type.\n\n\u003cbr /\u003e\n\n- Each element in the list must be of the exact same data schema; otherwise, they are invalid arguments.\n- List level cannot set search strategy. Leaf node level can do.\n- Elements cannot be another list (no list of list).\n- Elements can be CUSTOMIZED_STRUCT, and max number of layers is 10.\n\n### CUSTOMIZED_STRUCT\n\n**value:** 6 \n\nStruct type.\n\n\u003cbr /\u003e\n\n- SearchStrategy:\n - Data Schema that's CUSTOMIZED_STRUCT cannot set search strategy.\n - Leaf-node elements allow setting search strategy based on element's SearchStrategy restriction.\n- Nested layer restrictions:\n - Data Schema that's CUSTOMIZED_STRUCT allows its fields to be of CUSTOMIZED_STRUCT as well, but the overall layers restriction is 10."]]