public static enum DocumentSchema.EntityType.Property.OccurrenceType extends Enum<DocumentSchema.EntityType.Property.OccurrenceType> implements com.google.protobuf.ProtocolMessageEnum
Types of occurrences of the entity type in the document. This represents the number of instances of instances of an entity, not number of mentions of an entity. For example, a bank statement may only have one `account_number`, but this account number may be mentioned in several places on the document. In this case the 'account_number' would be 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 will be set to `REQUIRED_MULTIPLE`.Protobuf enum
google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property.OccurrenceType| Enum Constant and Description |
|---|
OCCURRENCE_TYPE_UNSPECIFIED
Unspecified occurrence type.
|
OPTIONAL_MULTIPLE
The entity type will appear zero or multiple times.
|
OPTIONAL_ONCE
There will be zero or one instance of this entity type.
|
REQUIRED_MULTIPLE
The entity type will appear once or more times.
|
REQUIRED_ONCE
The entity type will only appear exactly once.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
OCCURRENCE_TYPE_UNSPECIFIED_VALUE
Unspecified occurrence type.
|
static int |
OPTIONAL_MULTIPLE_VALUE
The entity type will appear zero or multiple times.
|
static int |
OPTIONAL_ONCE_VALUE
There will be zero or one instance of this entity type.
|
static int |
REQUIRED_MULTIPLE_VALUE
The entity type will appear once or more times.
|
static int |
REQUIRED_ONCE_VALUE
The entity type will only appear exactly once.
|
| Modifier and Type | Method and Description |
|---|---|
static DocumentSchema.EntityType.Property.OccurrenceType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<DocumentSchema.EntityType.Property.OccurrenceType> |
internalGetValueMap() |
static DocumentSchema.EntityType.Property.OccurrenceType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static DocumentSchema.EntityType.Property.OccurrenceType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static DocumentSchema.EntityType.Property.OccurrenceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DocumentSchema.EntityType.Property.OccurrenceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DocumentSchema.EntityType.Property.OccurrenceType OCCURRENCE_TYPE_UNSPECIFIED
Unspecified occurrence type.
OCCURRENCE_TYPE_UNSPECIFIED = 0;public static final DocumentSchema.EntityType.Property.OccurrenceType OPTIONAL_ONCE
There will be zero or one instance of this entity type. The same entity instance may be mentioned multiple times.
OPTIONAL_ONCE = 1;public static final DocumentSchema.EntityType.Property.OccurrenceType OPTIONAL_MULTIPLE
The entity type will appear zero or multiple times.
OPTIONAL_MULTIPLE = 2;public static final DocumentSchema.EntityType.Property.OccurrenceType REQUIRED_ONCE
The entity type will only appear exactly once. The same entity instance may be mentioned multiple times.
REQUIRED_ONCE = 3;public static final DocumentSchema.EntityType.Property.OccurrenceType REQUIRED_MULTIPLE
The entity type will appear once or more times.
REQUIRED_MULTIPLE = 4;public static final DocumentSchema.EntityType.Property.OccurrenceType UNRECOGNIZED
public static final int OCCURRENCE_TYPE_UNSPECIFIED_VALUE
Unspecified occurrence type.
OCCURRENCE_TYPE_UNSPECIFIED = 0;public static final int OPTIONAL_ONCE_VALUE
There will be zero or one instance of this entity type. The same entity instance may be mentioned multiple times.
OPTIONAL_ONCE = 1;public static final int OPTIONAL_MULTIPLE_VALUE
The entity type will appear zero or multiple times.
OPTIONAL_MULTIPLE = 2;public static final int REQUIRED_ONCE_VALUE
The entity type will only appear exactly once. The same entity instance may be mentioned multiple times.
REQUIRED_ONCE = 3;public static final int REQUIRED_MULTIPLE_VALUE
The entity type will appear once or more times.
REQUIRED_MULTIPLE = 4;public static DocumentSchema.EntityType.Property.OccurrenceType[] values()
for (DocumentSchema.EntityType.Property.OccurrenceType c : DocumentSchema.EntityType.Property.OccurrenceType.values()) System.out.println(c);
public static DocumentSchema.EntityType.Property.OccurrenceType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static DocumentSchema.EntityType.Property.OccurrenceType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static DocumentSchema.EntityType.Property.OccurrenceType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<DocumentSchema.EntityType.Property.OccurrenceType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static DocumentSchema.EntityType.Property.OccurrenceType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.