public Builder setGranularity(
        com.google.cloud.visionai.v1.DataSchemaDetails.Granularity value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000010;
      granularity_ = value.getNumber();
      onChanged();
      return this;
    }
<pre>
The granularity associated with this DataSchema.
</pre>

<code>optional .google.cloud.visionai.v1.DataSchemaDetails.Granularity granularity = 5;
</code>

@param value The granularity to set.
@return This builder for chaining.
java-visionai/proto-google-cloud-visionai-v1/src/main/java/com/google/cloud/visionai/v1/DataSchemaDetails.java