Package com.google.cloud.documentai.v1
Class DocumentSchema.EntityType
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.documentai.v1.DocumentSchema.EntityType
- All Implemented Interfaces:
DocumentSchema.EntityTypeOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- DocumentSchema
public static final class DocumentSchema.EntityType
extends com.google.protobuf.GeneratedMessage
implements DocumentSchema.EntityTypeOrBuilder
EntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for entity-based processors. Multiple types can also compose a dependency tree to represent nested types.Protobuf type
google.cloud.documentai.v1.DocumentSchema.EntityType- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classEntityType is the wrapper of a label of the corresponding model with detailed attributes and limitations for entity-based processors.static final classDefines the a list of enum values.static interfacestatic final classDefines properties that can be part of the entity type.static interfacestatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBaseTypes(int index) The entity type that this type is derived from.com.google.protobuf.ByteStringgetBaseTypesBytes(int index) The entity type that this type is derived from.intThe entity type that this type is derived from.com.google.protobuf.ProtocolStringListThe entity type that this type is derived from.static DocumentSchema.EntityTypestatic final com.google.protobuf.Descriptors.DescriptorUser defined name for the type.com.google.protobuf.ByteStringUser defined name for the type.If specified, lists all the possible values for this entity.If specified, lists all the possible values for this entity.getName()Name of the type.com.google.protobuf.ByteStringName of the type.com.google.protobuf.Parser<DocumentSchema.EntityType>getProperties(int index) Description the nested structure, or composition of an entity.intDescription the nested structure, or composition of an entity.Description the nested structure, or composition of an entity.getPropertiesOrBuilder(int index) Description the nested structure, or composition of an entity.List<? extends DocumentSchema.EntityType.PropertyOrBuilder>Description the nested structure, or composition of an entity.intbooleanIf specified, lists all the possible values for this entity.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(DocumentSchema.EntityType prototype) protected DocumentSchema.EntityType.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static DocumentSchema.EntityTypeparseDelimitedFrom(InputStream input) static DocumentSchema.EntityTypeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DocumentSchema.EntityTypeparseFrom(byte[] data) static DocumentSchema.EntityTypeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DocumentSchema.EntityTypeparseFrom(com.google.protobuf.ByteString data) static DocumentSchema.EntityTypeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DocumentSchema.EntityTypeparseFrom(com.google.protobuf.CodedInputStream input) static DocumentSchema.EntityTypeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DocumentSchema.EntityTypeparseFrom(InputStream input) static DocumentSchema.EntityTypeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DocumentSchema.EntityTypeparseFrom(ByteBuffer data) static DocumentSchema.EntityTypeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DocumentSchema.EntityType>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ENUM_VALUES_FIELD_NUMBER
public static final int ENUM_VALUES_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
BASE_TYPES_FIELD_NUMBER
public static final int BASE_TYPES_FIELD_NUMBER- See Also:
-
PROPERTIES_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getValueSourceCase
- Specified by:
getValueSourceCasein interfaceDocumentSchema.EntityTypeOrBuilder
-
hasEnumValues
public boolean hasEnumValues()If specified, lists all the possible values for this entity. This should not be more than a handful of values. If the number of values is >10 or could change frequently use the `EntityType.value_ontology` field and specify a list of all possible values in a value ontology file.
.google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues enum_values = 14;- Specified by:
hasEnumValuesin interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- Whether the enumValues field is set.
-
getEnumValues
If specified, lists all the possible values for this entity. This should not be more than a handful of values. If the number of values is >10 or could change frequently use the `EntityType.value_ontology` field and specify a list of all possible values in a value ontology file.
.google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues enum_values = 14;- Specified by:
getEnumValuesin interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- The enumValues.
-
getEnumValuesOrBuilder
If specified, lists all the possible values for this entity. This should not be more than a handful of values. If the number of values is >10 or could change frequently use the `EntityType.value_ontology` field and specify a list of all possible values in a value ontology file.
.google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues enum_values = 14;- Specified by:
getEnumValuesOrBuilderin interfaceDocumentSchema.EntityTypeOrBuilder
-
getDisplayName
User defined name for the type.
string display_name = 13;- Specified by:
getDisplayNamein interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()User defined name for the type.
string display_name = 13;- Specified by:
getDisplayNameBytesin interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- The bytes for displayName.
-
getName
Name of the type. It must be unique within the schema file and cannot be a "Common Type". The following naming conventions are used: - Use `snake_casing`. - Name matching is case-sensitive. - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility internal infrastructure and tooling can handle any ascii character.) - The `/` is sometimes used to denote a property of a type. For example `line_item/amount`. This convention is deprecated, but will still be honored for backward compatibility.
string name = 1;- Specified by:
getNamein interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the type. It must be unique within the schema file and cannot be a "Common Type". The following naming conventions are used: - Use `snake_casing`. - Name matching is case-sensitive. - Maximum 64 characters. - Must start with a letter. - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward compatibility internal infrastructure and tooling can handle any ascii character.) - The `/` is sometimes used to denote a property of a type. For example `line_item/amount`. This convention is deprecated, but will still be honored for backward compatibility.
string name = 1;- Specified by:
getNameBytesin interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- The bytes for name.
-
getBaseTypesList
public com.google.protobuf.ProtocolStringList getBaseTypesList()The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;- Specified by:
getBaseTypesListin interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- A list containing the baseTypes.
-
getBaseTypesCount
public int getBaseTypesCount()The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;- Specified by:
getBaseTypesCountin interfaceDocumentSchema.EntityTypeOrBuilder- Returns:
- The count of baseTypes.
-
getBaseTypes
The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;- Specified by:
getBaseTypesin interfaceDocumentSchema.EntityTypeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The baseTypes at the given index.
-
getBaseTypesBytes
public com.google.protobuf.ByteString getBaseTypesBytes(int index) The entity type that this type is derived from. For now, one and only one should be set.
repeated string base_types = 2;- Specified by:
getBaseTypesBytesin interfaceDocumentSchema.EntityTypeOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the baseTypes at the given index.
-
getPropertiesList
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;- Specified by:
getPropertiesListin interfaceDocumentSchema.EntityTypeOrBuilder
-
getPropertiesOrBuilderList
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;- Specified by:
getPropertiesOrBuilderListin interfaceDocumentSchema.EntityTypeOrBuilder
-
getPropertiesCount
public int getPropertiesCount()Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;- Specified by:
getPropertiesCountin interfaceDocumentSchema.EntityTypeOrBuilder
-
getProperties
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;- Specified by:
getPropertiesin interfaceDocumentSchema.EntityTypeOrBuilder
-
getPropertiesOrBuilder
Description the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;- Specified by:
getPropertiesOrBuilderin interfaceDocumentSchema.EntityTypeOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DocumentSchema.EntityType parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentSchema.EntityType parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentSchema.EntityType parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentSchema.EntityType parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentSchema.EntityType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DocumentSchema.EntityType parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DocumentSchema.EntityType parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static DocumentSchema.EntityType parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static DocumentSchema.EntityType parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DocumentSchema.EntityType parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DocumentSchema.EntityType.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-