public Builder setConfidence(float value) {

        confidence_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
<pre>
Confidence of detected language. Range [0, 1].
</pre>

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

@param value The confidence to set.
@return This builder for chaining.
java-vision/proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/TextAnnotation.java