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

    if (getSelected() != other.getSelected()) return false;
    if (!getBucketValueCase().equals(other.getBucketValueCase())) return false;
    switch (bucketValueCase_) {
      case 2:
        if (!getValue().equals(other.getValue())) return false;
        break;
      case 4:
        if (!getRange().equals(other.getRange())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Whether one facet bucket is selected. This field represents user's facet
selection. It is set by frontend in SearchVideosRequest.
</pre>

<code>bool selected = 3;</code>

@return The selected.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/FacetBucket.java