public static com.google.cloud.videointelligence.v1beta2.LabelSegment parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
<pre>
Confidence that the label is accurate. Range: [0, 1].
</pre>

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

@return The confidence.
java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelSegment.java