@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(retailEndpoint_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, retailEndpoint_);
    }
    if (java.lang.Float.floatToRawIntBits(recognitionConfidenceThreshold_) != 0) {
      output.writeFloat(2, recognitionConfidenceThreshold_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Confidence threshold to filter detection results. If not set, a system
default value will be used.
</pre>

<code>float recognition_confidence_threshold = 2;</code>

@return The recognitionConfidenceThreshold.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ProductRecognizerConfig.java