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

    if (hasColor() != other.hasColor()) return false;
    if (hasColor()) {
      if (!getColor().equals(other.getColor())) return false;
    }
    if (java.lang.Float.floatToIntBits(getScore())
        != java.lang.Float.floatToIntBits(other.getScore())) return false;
    if (java.lang.Float.floatToIntBits(getPixelFraction())
        != java.lang.Float.floatToIntBits(other.getPixelFraction())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
The fraction of pixels the color occupies in the image.
Value in range [0, 1].
</pre>

<code>float pixel_fraction = 3;</code>

@return The pixelFraction.
java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ColorInfo.java