Enum google_api_proto::google::cloud::visionai::v1::data_schema_details::DataType
source · #[repr(i32)]pub enum DataType {
Unspecified = 0,
Integer = 1,
Float = 2,
String = 3,
Datetime = 5,
GeoCoordinate = 7,
ProtoAny = 8,
Boolean = 9,
List = 10,
CustomizedStruct = 6,
}
Expand description
Data type of the annotation.
Variants§
Unspecified = 0
Unspecified type.
Integer = 1
Integer type. Allowed search strategies:
- DataSchema.SearchStrategy.NO_SEARCH,
- DataSchema.SearchStrategy.EXACT_SEARCH. Supports query by IntRangeArray.
Float = 2
Float type. Allowed search strategies:
- DataSchema.SearchStrategy.NO_SEARCH,
- DataSchema.SearchStrategy.EXACT_SEARCH. Supports query by FloatRangeArray.
String = 3
String type. Allowed search strategies:
- DataSchema.SearchStrategy.NO_SEARCH,
- DataSchema.SearchStrategy.EXACT_SEARCH,
- DataSchema.SearchStrategy.SMART_SEARCH.
Datetime = 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.
GeoCoordinate = 7
Geo coordinate type. Allowed search strategies:
- DataSchema.SearchStrategy.NO_SEARCH,
- DataSchema.SearchStrategy.EXACT_SEARCH. Supports query by GeoLocationArray.
ProtoAny = 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 = 9
Boolean type. Allowed search strategies:
- DataSchema.SearchStrategy.NO_SEARCH,
- DataSchema.SearchStrategy.EXACT_SEARCH.
List = 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.
CustomizedStruct = 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.
Implementations§
source§impl DataType
impl DataType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for DataType
impl Ord for DataType
source§impl PartialEq for DataType
impl PartialEq for DataType
source§impl PartialOrd for DataType
impl PartialOrd for DataType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for DataType
impl TryFrom<i32> for DataType
§type Error = DecodeError
type Error = DecodeError
impl Copy for DataType
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request