Package com.google.cloud.visionai.v1
Interface DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig,DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig.Builder
- Enclosing class:
- DataSchemaDetails.SearchStrategy
public static interface DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionRequired.com.google.protobuf.ByteStringRequired.floatRequired.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getFieldPath
String getFieldPath()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", } } } } } }string field_path = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The fieldPath.
-
getFieldPathBytes
com.google.protobuf.ByteString getFieldPathBytes()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", } } } } } }string field_path = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The bytes for fieldPath.
-
getThreshold
float getThreshold()Required. The threshold.
float threshold = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The threshold.
-