Package com.google.cloud.documentai.v1
Enum DocumentSchema.EntityType.Property.OccurrenceType
java.lang.Object
java.lang.Enum<DocumentSchema.EntityType.Property.OccurrenceType>
com.google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DocumentSchema.EntityType.Property.OccurrenceType>
- Enclosing class:
- DocumentSchema.EntityType.Property
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, 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`.Protobuf enum
google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUnspecified occurrence type.The entity type will appear zero or multiple times.There will be zero or one instance of this entity type.The entity type will appear once or more times.The entity type will only appear exactly once. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUnspecified occurrence type.static final intThe entity type will appear zero or multiple times.static final intThere will be zero or one instance of this entity type.static final intThe entity type will appear once or more times.static final intThe entity type will only appear exactly once. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<DocumentSchema.EntityType.Property.OccurrenceType>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OCCURRENCE_TYPE_UNSPECIFIED
Unspecified occurrence type.
OCCURRENCE_TYPE_UNSPECIFIED = 0; -
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; -
OPTIONAL_MULTIPLE
The entity type will appear zero or multiple times.
OPTIONAL_MULTIPLE = 2; -
REQUIRED_ONCE
The entity type will only appear exactly once. The same entity instance may be mentioned multiple times.
REQUIRED_ONCE = 3; -
REQUIRED_MULTIPLE
The entity type will appear once or more times.
REQUIRED_MULTIPLE = 4; -
UNRECOGNIZED
-
-
Field Details
-
OCCURRENCE_TYPE_UNSPECIFIED_VALUE
public static final int OCCURRENCE_TYPE_UNSPECIFIED_VALUEUnspecified occurrence type.
OCCURRENCE_TYPE_UNSPECIFIED = 0;- See Also:
-
OPTIONAL_ONCE_VALUE
public static final int OPTIONAL_ONCE_VALUEThere will be zero or one instance of this entity type. The same entity instance may be mentioned multiple times.
OPTIONAL_ONCE = 1;- See Also:
-
OPTIONAL_MULTIPLE_VALUE
public static final int OPTIONAL_MULTIPLE_VALUEThe entity type will appear zero or multiple times.
OPTIONAL_MULTIPLE = 2;- See Also:
-
REQUIRED_ONCE_VALUE
public static final int REQUIRED_ONCE_VALUEThe entity type will only appear exactly once. The same entity instance may be mentioned multiple times.
REQUIRED_ONCE = 3;- See Also:
-
REQUIRED_MULTIPLE_VALUE
public static final int REQUIRED_MULTIPLE_VALUEThe entity type will appear once or more times.
REQUIRED_MULTIPLE = 4;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<DocumentSchema.EntityType.Property.OccurrenceType> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static DocumentSchema.EntityType.Property.OccurrenceType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-