public int getConfidencesCount() {
    return confidences_.size();
  }
<pre>
The Model's confidences in correctness of the predicted IDs, higher value
means higher confidence. Order matches the Ids.
</pre>

<code>repeated float confidences = 3;</code>

@return The count of confidences.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ImageObjectDetectionPredictionResult.java