Reference documentation and code samples for the Cloud Document AI v1 API enum DocumentSchema.Types.EntityType.Types.Property.Types.OccurrenceType.
Types of occurrences of the entity type in the document. This
represents the number of instances, not mentions, of an entity.
For example, a bank statement might only have one
account_number, but this account number can be mentioned in several
places on the document. In this case, the account_number is
considered a REQUIRED_ONCE entity type. If, on the other hand, we
expect a bank statement to contain the status of multiple different
accounts for the customers, the occurrence type is set to
REQUIRED_MULTIPLE.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-19 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eOccurrenceType\u003c/code\u003e enum within the Google Cloud Document AI v1 API, detailing how entity types occur in documents.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOccurrenceType\u003c/code\u003e enum defines five possible values: \u003ccode\u003eOptionalMultiple\u003c/code\u003e, \u003ccode\u003eOptionalOnce\u003c/code\u003e, \u003ccode\u003eRequiredMultiple\u003c/code\u003e, \u003ccode\u003eRequiredOnce\u003c/code\u003e, and \u003ccode\u003eUnspecified\u003c/code\u003e, each representing a different expectation for the number of entity instances.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the documentation is 3.19.0, while this page specifically covers version 3.16.0, and older versions all the way to version 1.0.0 are also accessible.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDocumentSchema.Types.EntityType.Types.Property.Types.OccurrenceType\u003c/code\u003e specifies whether an entity is expected to appear zero, one, or multiple times, and if it is optional or required, within a document.\u003c/p\u003e\n"]]],[],null,[]]