Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class DataType.
Data type of the annotation.
Protobuf type google.cloud.visionai.v1.DataSchemaDetails.DataType
Namespace
Google \ Cloud \ VisionAI \ V1 \ DataSchemaDetailsMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
DATA_TYPE_UNSPECIFIED
Value: 0Unspecified type.
Generated from protobuf enum DATA_TYPE_UNSPECIFIED = 0;
INTEGER
Value: 1Integer type.
Allowed search strategies:
- DataSchema.SearchStrategy.NO_SEARCH,
- DataSchema.SearchStrategy.EXACT_SEARCH. Supports query by IntRangeArray.
Generated from protobuf enum INTEGER = 1;
FLOAT
Value: 2Float type.
Allowed search strategies:
- DataSchema.SearchStrategy.NO_SEARCH,
- DataSchema.SearchStrategy.EXACT_SEARCH. Supports query by FloatRangeArray.
Generated from protobuf enum FLOAT = 2;
STRING
Value: 3String type.
Allowed search strategies:
- DataSchema.SearchStrategy.NO_SEARCH,
- DataSchema.SearchStrategy.EXACT_SEARCH,
- DataSchema.SearchStrategy.SMART_SEARCH.
Generated from protobuf enum STRING = 3;
DATETIME
Value: 5Supported 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.
Generated from protobuf enum DATETIME = 5;
GEO_COORDINATE
Value: 7Geo coordinate type.
Allowed search strategies:
- DataSchema.SearchStrategy.NO_SEARCH,
- DataSchema.SearchStrategy.EXACT_SEARCH. Supports query by GeoLocationArray.
Generated from protobuf enum GEO_COORDINATE = 7;
PROTO_ANY
Value: 8Type 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.
Generated from protobuf enum PROTO_ANY = 8;
BOOLEAN
Value: 9Boolean type.
Allowed search strategies:
- DataSchema.SearchStrategy.NO_SEARCH,
- DataSchema.SearchStrategy.EXACT_SEARCH.
Generated from protobuf enum BOOLEAN = 9;
PBLIST
Value: 10List 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.
Generated from protobuf enum LIST = 10;
CUSTOMIZED_STRUCT
Value: 6Struct 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.
Generated from protobuf enum CUSTOMIZED_STRUCT = 6;