Vision AI V1 API - Module Google::Cloud::VisionAI::V1::DataSchemaDetails::DataType (v0.1.0)

Reference documentation and code samples for the Vision AI V1 API module Google::Cloud::VisionAI::V1::DataSchemaDetails::DataType.

Data type of the annotation.

Constants

DATA_TYPE_UNSPECIFIED

value: 0
Unspecified type.

INTEGER

value: 1

Integer type. Allowed search strategies:

  • DataSchema.SearchStrategy.NO_SEARCH,
  • DataSchema.SearchStrategy.EXACT_SEARCH. Supports query by IntRangeArray.

FLOAT

value: 2

Float type. Allowed search strategies:

  • DataSchema.SearchStrategy.NO_SEARCH,
  • DataSchema.SearchStrategy.EXACT_SEARCH. Supports query by FloatRangeArray.

STRING

value: 3

String type. Allowed search strategies:

  • DataSchema.SearchStrategy.NO_SEARCH,
  • DataSchema.SearchStrategy.EXACT_SEARCH,
  • DataSchema.SearchStrategy.SMART_SEARCH.

DATETIME

value: 5

Supported formats: %Y-%m-%dT%H:%M:%ES%Ez (absl::RFC3339_full) %Y-%m-%dT%H:%M:%ES %Y-%m-%dT%H:%M%Ez %Y-%m-%dT%H:%M %Y-%m-%dT%H%Ez %Y-%m-%dT%H %Y-%m-%d%Ez %Y-%m-%d %Y-%m %Y Allowed search strategies:

  • DataSchema.SearchStrategy.NO_SEARCH,
  • DataSchema.SearchStrategy.EXACT_SEARCH. Supports query by DateTimeRangeArray.

GEO_COORDINATE

value: 7

Geo coordinate type. Allowed search strategies:

  • DataSchema.SearchStrategy.NO_SEARCH,
  • DataSchema.SearchStrategy.EXACT_SEARCH. Supports query by GeoLocationArray.

PROTO_ANY

value: 8

Type to pass any proto as available in annotations.proto. Only use internally. Available proto types and its corresponding search behavior:

  • ImageObjectDetectionPredictionResult, allows SMART_SEARCH on display_names and NO_SEARCH.
  • ClassificationPredictionResult, allows SMART_SEARCH on display_names and NO_SEARCH.
  • ImageSegmentationPredictionResult, allows NO_SEARCH.
  • VideoActionRecognitionPredictionResult, allows SMART_SEARCH on display_name and NO_SEARCH.
  • VideoObjectTrackingPredictionResult, allows SMART_SEARCH on display_name and NO_SEARCH.
  • VideoClassificationPredictionResult, allows SMART_SEARCH on display_name and NO_SEARCH.
  • OccupancyCountingPredictionResult, allows EXACT_SEARCH on stats.full_frame_count.count and NO_SEARCH.
  • ObjectDetectionPredictionResult, allows SMART_SEARCH on identified_boxes.entity.label_string and NO_SEARCH.

BOOLEAN

value: 9

Boolean type. Allowed search strategies:

  • DataSchema.SearchStrategy.NO_SEARCH,
  • DataSchema.SearchStrategy.EXACT_SEARCH.

LIST

value: 10

List type.

  • Each element in the list must be of the exact same data schema; otherwise, they are invalid arguments.
  • List level cannot set search strategy. Leaf node level can do.
  • Elements cannot be another list (no list of list).
  • Elements can be CUSTOMIZED_STRUCT, and max number of layers is 10.

CUSTOMIZED_STRUCT

value: 6

Struct type.

  • SearchStrategy:
    • Data Schema that's CUSTOMIZED_STRUCT cannot set search strategy.
    • Leaf-node elements allow setting search strategy based on element's SearchStrategy restriction.
  • Nested layer restrictions:
    • Data Schema that's CUSTOMIZED_STRUCT allows its fields to be of CUSTOMIZED_STRUCT as well, but the overall layers restriction is 10.