Google Cloud Vision Ai V1 Client - Class SearchStrategy (0.1.0)

Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class SearchStrategy.

The search strategy for annotations value of the key.

Generated from protobuf message google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy

Namespace

Google \ Cloud \ VisionAI \ V1 \ DataSchemaDetails

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ search_strategy_type int

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.

↳ confidence_score_index_config 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.

getSearchStrategyType

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.

Returns
Type Description
int

hasSearchStrategyType

clearSearchStrategyType

setSearchStrategyType

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.

Parameter
Name Description
var int
Returns
Type Description
$this

getConfidenceScoreIndexConfig

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.

Returns
Type Description
SearchStrategy\ConfidenceScoreIndexConfig|null

hasConfidenceScoreIndexConfig

clearConfidenceScoreIndexConfig

setConfidenceScoreIndexConfig

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.

Parameter
Name Description
var SearchStrategy\ConfidenceScoreIndexConfig
Returns
Type Description
$this