@java.lang.Override
      public com.google.cloud.visionai.v1.FacetProperty.DateTimeBucketSpec.Granularity
          getGranularity() {
        com.google.cloud.visionai.v1.FacetProperty.DateTimeBucketSpec.Granularity result =
            com.google.cloud.visionai.v1.FacetProperty.DateTimeBucketSpec.Granularity.forNumber(
                granularity_);
        return result == null
            ? com.google.cloud.visionai.v1.FacetProperty.DateTimeBucketSpec.Granularity.UNRECOGNIZED
            : result;
      }
<pre>
Granularity of date type facet.
</pre>

<code>
.google.cloud.visionai.v1.FacetProperty.DateTimeBucketSpec.Granularity granularity = 1;
</code>

@return The granularity.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/FacetProperty.java