@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.visionai.v1.ImageSegmentationPredictionResult)) {
      return super.equals(obj);
    }
    com.google.cloud.visionai.v1.ImageSegmentationPredictionResult other =
        (com.google.cloud.visionai.v1.ImageSegmentationPredictionResult) obj;

    if (!getCategoryMask().equals(other.getCategoryMask())) return false;
    if (!getConfidenceMask().equals(other.getConfidenceMask())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<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 bytes for confidenceMask.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/ImageSegmentationPredictionResult.java