@java.lang.Override
  public java.lang.String getConfidenceMask() {
    java.lang.Object ref = confidenceMask_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      confidenceMask_ = s;
      return s;
    }
  }
<pre>
A one channel image which is encoded as an 8bit lossless PNG. The size of
the image will be the same as the original image. For a specific pixel,
darker color means less confidence in correctness of the cateogry in the
categoryMask for the corresponding pixel. Black means no confidence and
white means complete confidence.
</pre>

<code>string confidence_mask = 2;</code>

@return The confidenceMask.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ImageSegmentationPredictionResult.java