@java.lang.Override
        public com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy
                .ConfidenceScoreIndexConfig
            build() {
          com.google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig
              result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
<pre>
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 &gt; 0.6 will be indexed.
</pre>

Protobuf type {@code
google.cloud.visionai.v1.DataSchemaDetails.SearchStrategy.ConfidenceScoreIndexConfig}
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/DataSchemaDetails.java