@java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (granularity_
          != com.google.cloud.visionai.v1.FacetProperty.DateTimeBucketSpec.Granularity
              .GRANULARITY_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(1, granularity_);
      }
      getUnknownFields().writeTo(output);
    }
<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