Class: Google::Cloud::VisionAI::V1::DataSchemaDetails
- Inherits:
-
Object
- Object
- Google::Cloud::VisionAI::V1::DataSchemaDetails
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/visionai/v1/warehouse.rb
Overview
Data schema details indicates the data type and the data struct corresponding to the key of user specified annotation.
Defined Under Namespace
Modules: DataType, Granularity Classes: CustomizedStructConfig, ListConfig, ProtoAnyConfig, SearchStrategy
Instance Attribute Summary collapse
-
#customized_struct_config ⇒ ::Google::Cloud::VisionAI::V1::DataSchemaDetails::CustomizedStructConfig
Config for CustomizedStruct data type.
-
#granularity ⇒ ::Google::Cloud::VisionAI::V1::DataSchemaDetails::Granularity
The granularity associated with this DataSchema.
-
#list_config ⇒ ::Google::Cloud::VisionAI::V1::DataSchemaDetails::ListConfig
Config for List data type.
-
#proto_any_config ⇒ ::Google::Cloud::VisionAI::V1::DataSchemaDetails::ProtoAnyConfig
Config for protobuf any type.
-
#search_strategy ⇒ ::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy
The search strategy to be applied on the
key
above. -
#type ⇒ ::Google::Cloud::VisionAI::V1::DataSchemaDetails::DataType
Type of the annotation.
Instance Attribute Details
#customized_struct_config ⇒ ::Google::Cloud::VisionAI::V1::DataSchemaDetails::CustomizedStructConfig
Returns Config for CustomizedStruct data type.
1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 |
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 1153 class DataSchemaDetails include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for `PROTO_ANY` data type. # @!attribute [rw] type_uri # @return [::String] # The type URI of the proto message. class ProtoAnyConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The configuration for `LIST` data type. # @!attribute [rw] value_schema # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails] # The value's data schema in the list. class ListConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The configuration for `CUSTOMIZED_STRUCT` data type. # @!attribute [rw] field_schemas # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::VisionAI::V1::DataSchemaDetails}] # Direct child elements data schemas. class CustomizedStructConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails] class FieldSchemasEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The search strategy for annotations value of the `key`. # @!attribute [rw] search_strategy_type # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::SearchStrategyType] # The type of search strategy to be applied on the `key` above. # The allowed `search_strategy_type` is different for different data types, # which is documented in the DataSchemaDetails.DataType. Specifying # unsupported `search_strategy_type` for data types will result in # INVALID_ARGUMENT error. # @!attribute [rw] confidence_score_index_config # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::ConfidenceScoreIndexConfig] # Optional. Configs the path to the confidence score, and the threshold. # Only if the score is greater than the threshold, current field will be # built into the index. Only applies to leaf nodes using EXACT_SEARCH or # SMART_SEARCH. class SearchStrategy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Filter on the confidence score. Only adds to index if the confidence # score is higher than the threshold. # Example data schema: # key: "name-confidence-pair" # type: CUSTOMIZED_STRUCT # granularity: GRANULARITY_PARTITION_LEVEL # customized_struct_config { # field_schemas { # key: "name" # type: STRING # granularity: GRANULARITY_PARTITION_LEVEL # search_strategy { # search_strategy_type: SMART_SEARCH # confidence_score_index_config { # field_path: "name-confidence-pair.score" # threshold: 0.6 # } # } # } # field_schemas { # key: "score" # type: FLOAT # granularity: GRANULARITY_PARTITION_LEVEL # } # } # This means only "name" with score > 0.6 will be indexed. # @!attribute [rw] field_path # @return [::String] # Required. The path to the confidence score field. It is a string that # concatenates all the data schema keys along the path. See the example # above. If the data schema contains LIST, use '_ENTRIES' to concatenate. # Example data schema contains a list: # "key": "list-name-score", # "schemaDetails": { # "type": "LIST", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "listConfig": { # "valueSchema": { # "type": "CUSTOMIZED_STRUCT", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "customizedStructConfig": { # "fieldSchemas": { # "name": { # "type": "STRING", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "searchStrategy": { # "searchStrategyType": "SMART_SEARCH" # "confidence_score_index_config": { # "field_path": "list-name-score._ENTRIES.score", # "threshold": "0.9", # } # } # }, # "score": { # "type": "FLOAT", # "granularity": "GRANULARITY_PARTITION_LEVEL", # } # } # } # } # } # } # @!attribute [rw] threshold # @return [::Float] # Required. The threshold. class ConfidenceScoreIndexConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The types of search strategies to be applied on the annotation key. module SearchStrategyType # Annotatation values of the `key` above will not be searchable. NO_SEARCH = 0 # When searching with `key`, the value must be exactly as the annotation # value that has been ingested. EXACT_SEARCH = 1 # When searching with `key`, Warehouse will perform broad search based on # semantic of the annotation value. SMART_SEARCH = 2 end end # Data type of the annotation. module DataType # Unspecified type. DATA_TYPE_UNSPECIFIED = 0 # Integer type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by IntRangeArray. INTEGER = 1 # Float type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by FloatRangeArray. FLOAT = 2 # String type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH, # - DataSchema.SearchStrategy.SMART_SEARCH. STRING = 3 # Supported formats: # %Y-%m-%dT%H:%M:%E*S%E*z (absl::RFC3339_full) # %Y-%m-%dT%H:%M:%E*S # %Y-%m-%dT%H:%M%E*z # %Y-%m-%dT%H:%M # %Y-%m-%dT%H%E*z # %Y-%m-%dT%H # %Y-%m-%d%E*z # %Y-%m-%d # %Y-%m # %Y # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by DateTimeRangeArray. DATETIME = 5 # Geo coordinate type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by GeoLocationArray. GEO_COORDINATE = 7 # 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. PROTO_ANY = 8 # Boolean type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. BOOLEAN = 9 # 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. LIST = 10 # 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. CUSTOMIZED_STRUCT = 6 end # The granularity of annotations under this DataSchema. module Granularity # Unspecified granularity. GRANULARITY_UNSPECIFIED = 0 # Asset-level granularity (annotations must not contain partition info). GRANULARITY_ASSET_LEVEL = 1 # Partition-level granularity (annotations must contain partition info). GRANULARITY_PARTITION_LEVEL = 2 end end |
#granularity ⇒ ::Google::Cloud::VisionAI::V1::DataSchemaDetails::Granularity
Returns The granularity associated with this DataSchema.
1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 |
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 1153 class DataSchemaDetails include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for `PROTO_ANY` data type. # @!attribute [rw] type_uri # @return [::String] # The type URI of the proto message. class ProtoAnyConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The configuration for `LIST` data type. # @!attribute [rw] value_schema # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails] # The value's data schema in the list. class ListConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The configuration for `CUSTOMIZED_STRUCT` data type. # @!attribute [rw] field_schemas # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::VisionAI::V1::DataSchemaDetails}] # Direct child elements data schemas. class CustomizedStructConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails] class FieldSchemasEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The search strategy for annotations value of the `key`. # @!attribute [rw] search_strategy_type # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::SearchStrategyType] # The type of search strategy to be applied on the `key` above. # The allowed `search_strategy_type` is different for different data types, # which is documented in the DataSchemaDetails.DataType. Specifying # unsupported `search_strategy_type` for data types will result in # INVALID_ARGUMENT error. # @!attribute [rw] confidence_score_index_config # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::ConfidenceScoreIndexConfig] # Optional. Configs the path to the confidence score, and the threshold. # Only if the score is greater than the threshold, current field will be # built into the index. Only applies to leaf nodes using EXACT_SEARCH or # SMART_SEARCH. class SearchStrategy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Filter on the confidence score. Only adds to index if the confidence # score is higher than the threshold. # Example data schema: # key: "name-confidence-pair" # type: CUSTOMIZED_STRUCT # granularity: GRANULARITY_PARTITION_LEVEL # customized_struct_config { # field_schemas { # key: "name" # type: STRING # granularity: GRANULARITY_PARTITION_LEVEL # search_strategy { # search_strategy_type: SMART_SEARCH # confidence_score_index_config { # field_path: "name-confidence-pair.score" # threshold: 0.6 # } # } # } # field_schemas { # key: "score" # type: FLOAT # granularity: GRANULARITY_PARTITION_LEVEL # } # } # This means only "name" with score > 0.6 will be indexed. # @!attribute [rw] field_path # @return [::String] # Required. The path to the confidence score field. It is a string that # concatenates all the data schema keys along the path. See the example # above. If the data schema contains LIST, use '_ENTRIES' to concatenate. # Example data schema contains a list: # "key": "list-name-score", # "schemaDetails": { # "type": "LIST", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "listConfig": { # "valueSchema": { # "type": "CUSTOMIZED_STRUCT", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "customizedStructConfig": { # "fieldSchemas": { # "name": { # "type": "STRING", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "searchStrategy": { # "searchStrategyType": "SMART_SEARCH" # "confidence_score_index_config": { # "field_path": "list-name-score._ENTRIES.score", # "threshold": "0.9", # } # } # }, # "score": { # "type": "FLOAT", # "granularity": "GRANULARITY_PARTITION_LEVEL", # } # } # } # } # } # } # @!attribute [rw] threshold # @return [::Float] # Required. The threshold. class ConfidenceScoreIndexConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The types of search strategies to be applied on the annotation key. module SearchStrategyType # Annotatation values of the `key` above will not be searchable. NO_SEARCH = 0 # When searching with `key`, the value must be exactly as the annotation # value that has been ingested. EXACT_SEARCH = 1 # When searching with `key`, Warehouse will perform broad search based on # semantic of the annotation value. SMART_SEARCH = 2 end end # Data type of the annotation. module DataType # Unspecified type. DATA_TYPE_UNSPECIFIED = 0 # Integer type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by IntRangeArray. INTEGER = 1 # Float type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by FloatRangeArray. FLOAT = 2 # String type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH, # - DataSchema.SearchStrategy.SMART_SEARCH. STRING = 3 # Supported formats: # %Y-%m-%dT%H:%M:%E*S%E*z (absl::RFC3339_full) # %Y-%m-%dT%H:%M:%E*S # %Y-%m-%dT%H:%M%E*z # %Y-%m-%dT%H:%M # %Y-%m-%dT%H%E*z # %Y-%m-%dT%H # %Y-%m-%d%E*z # %Y-%m-%d # %Y-%m # %Y # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by DateTimeRangeArray. DATETIME = 5 # Geo coordinate type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by GeoLocationArray. GEO_COORDINATE = 7 # 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. PROTO_ANY = 8 # Boolean type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. BOOLEAN = 9 # 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. LIST = 10 # 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. CUSTOMIZED_STRUCT = 6 end # The granularity of annotations under this DataSchema. module Granularity # Unspecified granularity. GRANULARITY_UNSPECIFIED = 0 # Asset-level granularity (annotations must not contain partition info). GRANULARITY_ASSET_LEVEL = 1 # Partition-level granularity (annotations must contain partition info). GRANULARITY_PARTITION_LEVEL = 2 end end |
#list_config ⇒ ::Google::Cloud::VisionAI::V1::DataSchemaDetails::ListConfig
Returns Config for List data type.
1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 |
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 1153 class DataSchemaDetails include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for `PROTO_ANY` data type. # @!attribute [rw] type_uri # @return [::String] # The type URI of the proto message. class ProtoAnyConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The configuration for `LIST` data type. # @!attribute [rw] value_schema # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails] # The value's data schema in the list. class ListConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The configuration for `CUSTOMIZED_STRUCT` data type. # @!attribute [rw] field_schemas # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::VisionAI::V1::DataSchemaDetails}] # Direct child elements data schemas. class CustomizedStructConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails] class FieldSchemasEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The search strategy for annotations value of the `key`. # @!attribute [rw] search_strategy_type # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::SearchStrategyType] # The type of search strategy to be applied on the `key` above. # The allowed `search_strategy_type` is different for different data types, # which is documented in the DataSchemaDetails.DataType. Specifying # unsupported `search_strategy_type` for data types will result in # INVALID_ARGUMENT error. # @!attribute [rw] confidence_score_index_config # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::ConfidenceScoreIndexConfig] # Optional. Configs the path to the confidence score, and the threshold. # Only if the score is greater than the threshold, current field will be # built into the index. Only applies to leaf nodes using EXACT_SEARCH or # SMART_SEARCH. class SearchStrategy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Filter on the confidence score. Only adds to index if the confidence # score is higher than the threshold. # Example data schema: # key: "name-confidence-pair" # type: CUSTOMIZED_STRUCT # granularity: GRANULARITY_PARTITION_LEVEL # customized_struct_config { # field_schemas { # key: "name" # type: STRING # granularity: GRANULARITY_PARTITION_LEVEL # search_strategy { # search_strategy_type: SMART_SEARCH # confidence_score_index_config { # field_path: "name-confidence-pair.score" # threshold: 0.6 # } # } # } # field_schemas { # key: "score" # type: FLOAT # granularity: GRANULARITY_PARTITION_LEVEL # } # } # This means only "name" with score > 0.6 will be indexed. # @!attribute [rw] field_path # @return [::String] # Required. The path to the confidence score field. It is a string that # concatenates all the data schema keys along the path. See the example # above. If the data schema contains LIST, use '_ENTRIES' to concatenate. # Example data schema contains a list: # "key": "list-name-score", # "schemaDetails": { # "type": "LIST", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "listConfig": { # "valueSchema": { # "type": "CUSTOMIZED_STRUCT", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "customizedStructConfig": { # "fieldSchemas": { # "name": { # "type": "STRING", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "searchStrategy": { # "searchStrategyType": "SMART_SEARCH" # "confidence_score_index_config": { # "field_path": "list-name-score._ENTRIES.score", # "threshold": "0.9", # } # } # }, # "score": { # "type": "FLOAT", # "granularity": "GRANULARITY_PARTITION_LEVEL", # } # } # } # } # } # } # @!attribute [rw] threshold # @return [::Float] # Required. The threshold. class ConfidenceScoreIndexConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The types of search strategies to be applied on the annotation key. module SearchStrategyType # Annotatation values of the `key` above will not be searchable. NO_SEARCH = 0 # When searching with `key`, the value must be exactly as the annotation # value that has been ingested. EXACT_SEARCH = 1 # When searching with `key`, Warehouse will perform broad search based on # semantic of the annotation value. SMART_SEARCH = 2 end end # Data type of the annotation. module DataType # Unspecified type. DATA_TYPE_UNSPECIFIED = 0 # Integer type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by IntRangeArray. INTEGER = 1 # Float type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by FloatRangeArray. FLOAT = 2 # String type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH, # - DataSchema.SearchStrategy.SMART_SEARCH. STRING = 3 # Supported formats: # %Y-%m-%dT%H:%M:%E*S%E*z (absl::RFC3339_full) # %Y-%m-%dT%H:%M:%E*S # %Y-%m-%dT%H:%M%E*z # %Y-%m-%dT%H:%M # %Y-%m-%dT%H%E*z # %Y-%m-%dT%H # %Y-%m-%d%E*z # %Y-%m-%d # %Y-%m # %Y # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by DateTimeRangeArray. DATETIME = 5 # Geo coordinate type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by GeoLocationArray. GEO_COORDINATE = 7 # 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. PROTO_ANY = 8 # Boolean type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. BOOLEAN = 9 # 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. LIST = 10 # 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. CUSTOMIZED_STRUCT = 6 end # The granularity of annotations under this DataSchema. module Granularity # Unspecified granularity. GRANULARITY_UNSPECIFIED = 0 # Asset-level granularity (annotations must not contain partition info). GRANULARITY_ASSET_LEVEL = 1 # Partition-level granularity (annotations must contain partition info). GRANULARITY_PARTITION_LEVEL = 2 end end |
#proto_any_config ⇒ ::Google::Cloud::VisionAI::V1::DataSchemaDetails::ProtoAnyConfig
Returns Config for protobuf any type.
1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 |
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 1153 class DataSchemaDetails include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for `PROTO_ANY` data type. # @!attribute [rw] type_uri # @return [::String] # The type URI of the proto message. class ProtoAnyConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The configuration for `LIST` data type. # @!attribute [rw] value_schema # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails] # The value's data schema in the list. class ListConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The configuration for `CUSTOMIZED_STRUCT` data type. # @!attribute [rw] field_schemas # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::VisionAI::V1::DataSchemaDetails}] # Direct child elements data schemas. class CustomizedStructConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails] class FieldSchemasEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The search strategy for annotations value of the `key`. # @!attribute [rw] search_strategy_type # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::SearchStrategyType] # The type of search strategy to be applied on the `key` above. # The allowed `search_strategy_type` is different for different data types, # which is documented in the DataSchemaDetails.DataType. Specifying # unsupported `search_strategy_type` for data types will result in # INVALID_ARGUMENT error. # @!attribute [rw] confidence_score_index_config # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::ConfidenceScoreIndexConfig] # Optional. Configs the path to the confidence score, and the threshold. # Only if the score is greater than the threshold, current field will be # built into the index. Only applies to leaf nodes using EXACT_SEARCH or # SMART_SEARCH. class SearchStrategy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Filter on the confidence score. Only adds to index if the confidence # score is higher than the threshold. # Example data schema: # key: "name-confidence-pair" # type: CUSTOMIZED_STRUCT # granularity: GRANULARITY_PARTITION_LEVEL # customized_struct_config { # field_schemas { # key: "name" # type: STRING # granularity: GRANULARITY_PARTITION_LEVEL # search_strategy { # search_strategy_type: SMART_SEARCH # confidence_score_index_config { # field_path: "name-confidence-pair.score" # threshold: 0.6 # } # } # } # field_schemas { # key: "score" # type: FLOAT # granularity: GRANULARITY_PARTITION_LEVEL # } # } # This means only "name" with score > 0.6 will be indexed. # @!attribute [rw] field_path # @return [::String] # Required. The path to the confidence score field. It is a string that # concatenates all the data schema keys along the path. See the example # above. If the data schema contains LIST, use '_ENTRIES' to concatenate. # Example data schema contains a list: # "key": "list-name-score", # "schemaDetails": { # "type": "LIST", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "listConfig": { # "valueSchema": { # "type": "CUSTOMIZED_STRUCT", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "customizedStructConfig": { # "fieldSchemas": { # "name": { # "type": "STRING", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "searchStrategy": { # "searchStrategyType": "SMART_SEARCH" # "confidence_score_index_config": { # "field_path": "list-name-score._ENTRIES.score", # "threshold": "0.9", # } # } # }, # "score": { # "type": "FLOAT", # "granularity": "GRANULARITY_PARTITION_LEVEL", # } # } # } # } # } # } # @!attribute [rw] threshold # @return [::Float] # Required. The threshold. class ConfidenceScoreIndexConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The types of search strategies to be applied on the annotation key. module SearchStrategyType # Annotatation values of the `key` above will not be searchable. NO_SEARCH = 0 # When searching with `key`, the value must be exactly as the annotation # value that has been ingested. EXACT_SEARCH = 1 # When searching with `key`, Warehouse will perform broad search based on # semantic of the annotation value. SMART_SEARCH = 2 end end # Data type of the annotation. module DataType # Unspecified type. DATA_TYPE_UNSPECIFIED = 0 # Integer type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by IntRangeArray. INTEGER = 1 # Float type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by FloatRangeArray. FLOAT = 2 # String type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH, # - DataSchema.SearchStrategy.SMART_SEARCH. STRING = 3 # Supported formats: # %Y-%m-%dT%H:%M:%E*S%E*z (absl::RFC3339_full) # %Y-%m-%dT%H:%M:%E*S # %Y-%m-%dT%H:%M%E*z # %Y-%m-%dT%H:%M # %Y-%m-%dT%H%E*z # %Y-%m-%dT%H # %Y-%m-%d%E*z # %Y-%m-%d # %Y-%m # %Y # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by DateTimeRangeArray. DATETIME = 5 # Geo coordinate type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by GeoLocationArray. GEO_COORDINATE = 7 # 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. PROTO_ANY = 8 # Boolean type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. BOOLEAN = 9 # 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. LIST = 10 # 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. CUSTOMIZED_STRUCT = 6 end # The granularity of annotations under this DataSchema. module Granularity # Unspecified granularity. GRANULARITY_UNSPECIFIED = 0 # Asset-level granularity (annotations must not contain partition info). GRANULARITY_ASSET_LEVEL = 1 # Partition-level granularity (annotations must contain partition info). GRANULARITY_PARTITION_LEVEL = 2 end end |
#search_strategy ⇒ ::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy
Returns The search strategy to be applied on the key
above.
1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 |
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 1153 class DataSchemaDetails include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for `PROTO_ANY` data type. # @!attribute [rw] type_uri # @return [::String] # The type URI of the proto message. class ProtoAnyConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The configuration for `LIST` data type. # @!attribute [rw] value_schema # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails] # The value's data schema in the list. class ListConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The configuration for `CUSTOMIZED_STRUCT` data type. # @!attribute [rw] field_schemas # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::VisionAI::V1::DataSchemaDetails}] # Direct child elements data schemas. class CustomizedStructConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails] class FieldSchemasEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The search strategy for annotations value of the `key`. # @!attribute [rw] search_strategy_type # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::SearchStrategyType] # The type of search strategy to be applied on the `key` above. # The allowed `search_strategy_type` is different for different data types, # which is documented in the DataSchemaDetails.DataType. Specifying # unsupported `search_strategy_type` for data types will result in # INVALID_ARGUMENT error. # @!attribute [rw] confidence_score_index_config # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::ConfidenceScoreIndexConfig] # Optional. Configs the path to the confidence score, and the threshold. # Only if the score is greater than the threshold, current field will be # built into the index. Only applies to leaf nodes using EXACT_SEARCH or # SMART_SEARCH. class SearchStrategy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Filter on the confidence score. Only adds to index if the confidence # score is higher than the threshold. # Example data schema: # key: "name-confidence-pair" # type: CUSTOMIZED_STRUCT # granularity: GRANULARITY_PARTITION_LEVEL # customized_struct_config { # field_schemas { # key: "name" # type: STRING # granularity: GRANULARITY_PARTITION_LEVEL # search_strategy { # search_strategy_type: SMART_SEARCH # confidence_score_index_config { # field_path: "name-confidence-pair.score" # threshold: 0.6 # } # } # } # field_schemas { # key: "score" # type: FLOAT # granularity: GRANULARITY_PARTITION_LEVEL # } # } # This means only "name" with score > 0.6 will be indexed. # @!attribute [rw] field_path # @return [::String] # Required. The path to the confidence score field. It is a string that # concatenates all the data schema keys along the path. See the example # above. If the data schema contains LIST, use '_ENTRIES' to concatenate. # Example data schema contains a list: # "key": "list-name-score", # "schemaDetails": { # "type": "LIST", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "listConfig": { # "valueSchema": { # "type": "CUSTOMIZED_STRUCT", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "customizedStructConfig": { # "fieldSchemas": { # "name": { # "type": "STRING", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "searchStrategy": { # "searchStrategyType": "SMART_SEARCH" # "confidence_score_index_config": { # "field_path": "list-name-score._ENTRIES.score", # "threshold": "0.9", # } # } # }, # "score": { # "type": "FLOAT", # "granularity": "GRANULARITY_PARTITION_LEVEL", # } # } # } # } # } # } # @!attribute [rw] threshold # @return [::Float] # Required. The threshold. class ConfidenceScoreIndexConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The types of search strategies to be applied on the annotation key. module SearchStrategyType # Annotatation values of the `key` above will not be searchable. NO_SEARCH = 0 # When searching with `key`, the value must be exactly as the annotation # value that has been ingested. EXACT_SEARCH = 1 # When searching with `key`, Warehouse will perform broad search based on # semantic of the annotation value. SMART_SEARCH = 2 end end # Data type of the annotation. module DataType # Unspecified type. DATA_TYPE_UNSPECIFIED = 0 # Integer type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by IntRangeArray. INTEGER = 1 # Float type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by FloatRangeArray. FLOAT = 2 # String type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH, # - DataSchema.SearchStrategy.SMART_SEARCH. STRING = 3 # Supported formats: # %Y-%m-%dT%H:%M:%E*S%E*z (absl::RFC3339_full) # %Y-%m-%dT%H:%M:%E*S # %Y-%m-%dT%H:%M%E*z # %Y-%m-%dT%H:%M # %Y-%m-%dT%H%E*z # %Y-%m-%dT%H # %Y-%m-%d%E*z # %Y-%m-%d # %Y-%m # %Y # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by DateTimeRangeArray. DATETIME = 5 # Geo coordinate type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by GeoLocationArray. GEO_COORDINATE = 7 # 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. PROTO_ANY = 8 # Boolean type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. BOOLEAN = 9 # 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. LIST = 10 # 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. CUSTOMIZED_STRUCT = 6 end # The granularity of annotations under this DataSchema. module Granularity # Unspecified granularity. GRANULARITY_UNSPECIFIED = 0 # Asset-level granularity (annotations must not contain partition info). GRANULARITY_ASSET_LEVEL = 1 # Partition-level granularity (annotations must contain partition info). GRANULARITY_PARTITION_LEVEL = 2 end end |
#type ⇒ ::Google::Cloud::VisionAI::V1::DataSchemaDetails::DataType
Returns Type of the annotation.
1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 |
# File 'proto_docs/google/cloud/visionai/v1/warehouse.rb', line 1153 class DataSchemaDetails include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for `PROTO_ANY` data type. # @!attribute [rw] type_uri # @return [::String] # The type URI of the proto message. class ProtoAnyConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The configuration for `LIST` data type. # @!attribute [rw] value_schema # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails] # The value's data schema in the list. class ListConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The configuration for `CUSTOMIZED_STRUCT` data type. # @!attribute [rw] field_schemas # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::VisionAI::V1::DataSchemaDetails}] # Direct child elements data schemas. class CustomizedStructConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails] class FieldSchemasEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # The search strategy for annotations value of the `key`. # @!attribute [rw] search_strategy_type # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::SearchStrategyType] # The type of search strategy to be applied on the `key` above. # The allowed `search_strategy_type` is different for different data types, # which is documented in the DataSchemaDetails.DataType. Specifying # unsupported `search_strategy_type` for data types will result in # INVALID_ARGUMENT error. # @!attribute [rw] confidence_score_index_config # @return [::Google::Cloud::VisionAI::V1::DataSchemaDetails::SearchStrategy::ConfidenceScoreIndexConfig] # Optional. Configs the path to the confidence score, and the threshold. # Only if the score is greater than the threshold, current field will be # built into the index. Only applies to leaf nodes using EXACT_SEARCH or # SMART_SEARCH. class SearchStrategy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Filter on the confidence score. Only adds to index if the confidence # score is higher than the threshold. # Example data schema: # key: "name-confidence-pair" # type: CUSTOMIZED_STRUCT # granularity: GRANULARITY_PARTITION_LEVEL # customized_struct_config { # field_schemas { # key: "name" # type: STRING # granularity: GRANULARITY_PARTITION_LEVEL # search_strategy { # search_strategy_type: SMART_SEARCH # confidence_score_index_config { # field_path: "name-confidence-pair.score" # threshold: 0.6 # } # } # } # field_schemas { # key: "score" # type: FLOAT # granularity: GRANULARITY_PARTITION_LEVEL # } # } # This means only "name" with score > 0.6 will be indexed. # @!attribute [rw] field_path # @return [::String] # Required. The path to the confidence score field. It is a string that # concatenates all the data schema keys along the path. See the example # above. If the data schema contains LIST, use '_ENTRIES' to concatenate. # Example data schema contains a list: # "key": "list-name-score", # "schemaDetails": { # "type": "LIST", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "listConfig": { # "valueSchema": { # "type": "CUSTOMIZED_STRUCT", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "customizedStructConfig": { # "fieldSchemas": { # "name": { # "type": "STRING", # "granularity": "GRANULARITY_PARTITION_LEVEL", # "searchStrategy": { # "searchStrategyType": "SMART_SEARCH" # "confidence_score_index_config": { # "field_path": "list-name-score._ENTRIES.score", # "threshold": "0.9", # } # } # }, # "score": { # "type": "FLOAT", # "granularity": "GRANULARITY_PARTITION_LEVEL", # } # } # } # } # } # } # @!attribute [rw] threshold # @return [::Float] # Required. The threshold. class ConfidenceScoreIndexConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # The types of search strategies to be applied on the annotation key. module SearchStrategyType # Annotatation values of the `key` above will not be searchable. NO_SEARCH = 0 # When searching with `key`, the value must be exactly as the annotation # value that has been ingested. EXACT_SEARCH = 1 # When searching with `key`, Warehouse will perform broad search based on # semantic of the annotation value. SMART_SEARCH = 2 end end # Data type of the annotation. module DataType # Unspecified type. DATA_TYPE_UNSPECIFIED = 0 # Integer type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by IntRangeArray. INTEGER = 1 # Float type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by FloatRangeArray. FLOAT = 2 # String type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH, # - DataSchema.SearchStrategy.SMART_SEARCH. STRING = 3 # Supported formats: # %Y-%m-%dT%H:%M:%E*S%E*z (absl::RFC3339_full) # %Y-%m-%dT%H:%M:%E*S # %Y-%m-%dT%H:%M%E*z # %Y-%m-%dT%H:%M # %Y-%m-%dT%H%E*z # %Y-%m-%dT%H # %Y-%m-%d%E*z # %Y-%m-%d # %Y-%m # %Y # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by DateTimeRangeArray. DATETIME = 5 # Geo coordinate type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. # Supports query by GeoLocationArray. GEO_COORDINATE = 7 # 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. PROTO_ANY = 8 # Boolean type. # Allowed search strategies: # - DataSchema.SearchStrategy.NO_SEARCH, # - DataSchema.SearchStrategy.EXACT_SEARCH. BOOLEAN = 9 # 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. LIST = 10 # 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. CUSTOMIZED_STRUCT = 6 end # The granularity of annotations under this DataSchema. module Granularity # Unspecified granularity. GRANULARITY_UNSPECIFIED = 0 # Asset-level granularity (annotations must not contain partition info). GRANULARITY_ASSET_LEVEL = 1 # Partition-level granularity (annotations must contain partition info). GRANULARITY_PARTITION_LEVEL = 2 end end |