public Builder setConfidence(float value) {

      confidence_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
<pre>
The confidence of the detection result for this language.
</pre>

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

@param value The confidence to set.
@return This builder for chaining.
java-translate/proto-google-cloud-translate-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java