public com.google.cloud.visionai.v1.FacetValueOrBuilder getBucketGranularityOrBuilder() {
        if (bucketGranularityBuilder_ != null) {
          return bucketGranularityBuilder_.getMessageOrBuilder();
        } else {
          return bucketGranularity_ == null
              ? com.google.cloud.visionai.v1.FacetValue.getDefaultInstance()
              : bucketGranularity_;
        }
      }
<pre>
Bucket granularity. NOTE: Only integer type is currently supported for
this field.
</pre>

<code>.google.cloud.visionai.v1.FacetValue bucket_granularity = 2;</code>
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/FacetProperty.java