DateTimeEntity.DateTimeGranularity
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From interface java.lang.annotation.Annotation
abstract Class<? extends Annotation>
|
annotationType()
|
abstract boolean |
|
abstract int |
hashCode()
|
abstract String
|
toString()
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eDateTimeEntity.DateTimeGranularity\u003c/code\u003e is an annotation that indicates the precision of a timestamp extracted from text.\u003c/p\u003e\n"],["\u003cp\u003eThe granularity can vary, for example, "tomorrow" would have day granularity, while "12:51" would have minute granularity.\u003c/p\u003e\n"],["\u003cp\u003eThis annotation inherits methods from the \u003ccode\u003ejava.lang.annotation.Annotation\u003c/code\u003e interface, including \u003ccode\u003eannotationType()\u003c/code\u003e, \u003ccode\u003eequals()\u003c/code\u003e, \u003ccode\u003ehashCode()\u003c/code\u003e, and \u003ccode\u003etoString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# DateTimeEntity.DateTimeGranularity\n\npublic static abstract @interface **DateTimeEntity.DateTimeGranularity** implements [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html) \nThe precision of a timestamp that was extracted from text.\n\nFor example, \"tomorrow\" has the granularity [DateTimeEntity.GRANULARITY_DAY](/android/reference/com/google/mlkit/nl/entityextraction/DateTimeEntity#GRANULARITY_DAY), while \"12:51\" will have the granularity\n[DateTimeEntity.GRANULARITY_MINUTE](/android/reference/com/google/mlkit/nl/entityextraction/DateTimeEntity#GRANULARITY_MINUTE). \n\n### Inherited Method Summary\n\nFrom interface java.lang.annotation.Annotation \n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| abstract [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c? extends [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html)\\\u003e | annotationType() |\n| abstract boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| abstract int | hashCode() |\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | toString() |"]]