public Builder setConfidence(float value) {

      confidence_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
<pre>
Confidence for the track of detected text. It is calculated as the highest
over all frames where OCR detected text appears.
</pre>

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

@param value The confidence to set.
@return This builder for chaining.
java-video-intelligence/proto-google-cloud-video-intelligence-v1/src/main/java/com/google/cloud/videointelligence/v1/TextSegment.java