public static final class DocumentSchema.EntityType extends GeneratedMessageV3 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.v1beta3.DocumentSchema.EntityType
Static Fields
BASE_TYPES_FIELD_NUMBER
public static final int BASE_TYPES_FIELD_NUMBER
Field Value
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
ENUM_VALUES_FIELD_NUMBER
public static final int ENUM_VALUES_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
PROPERTIES_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static DocumentSchema.EntityType getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static DocumentSchema.EntityType.Builder newBuilder()
Returns
newBuilder(DocumentSchema.EntityType prototype)
public static DocumentSchema.EntityType.Builder newBuilder(DocumentSchema.EntityType prototype)
Parameter
Returns
public static DocumentSchema.EntityType parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static DocumentSchema.EntityType parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static DocumentSchema.EntityType parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DocumentSchema.EntityType parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static DocumentSchema.EntityType parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DocumentSchema.EntityType parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DocumentSchema.EntityType parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static DocumentSchema.EntityType parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static DocumentSchema.EntityType parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static DocumentSchema.EntityType parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static DocumentSchema.EntityType parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DocumentSchema.EntityType parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<DocumentSchema.EntityType> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getBaseTypes(int index)
public String getBaseTypes(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;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The baseTypes at the given index.
|
getBaseTypesBytes(int index)
public 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;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the baseTypes at the given index.
|
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;
Returns
Type | Description |
int | The count of baseTypes.
|
getBaseTypesList()
public 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;
Returns
getDefaultInstanceForType()
public DocumentSchema.EntityType getDefaultInstanceForType()
Returns
getDisplayName()
public String getDisplayName()
User defined name for the type.
string display_name = 13;
Returns
Type | Description |
String | The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
User defined name for the type.
string display_name = 13;
Returns
Type | Description |
ByteString | The bytes for displayName.
|
getEnumValues()
public DocumentSchema.EntityType.EnumValues 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.v1beta3.DocumentSchema.EntityType.EnumValues enum_values = 14;
Returns
getEnumValuesOrBuilder()
public DocumentSchema.EntityType.EnumValuesOrBuilder 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.v1beta3.DocumentSchema.EntityType.EnumValues enum_values = 14;
Returns
getName()
Name of the type. It must be unique within the schema file and
cannot be a 'Common Type'. Besides that we use the following naming
conventions:
- 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;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Name of the type. It must be unique within the schema file and
cannot be a 'Common Type'. Besides that we use the following naming
conventions:
- 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;
Returns
getParserForType()
public Parser<DocumentSchema.EntityType> getParserForType()
Returns
Overrides
getProperties(int index)
public DocumentSchema.EntityType.Property getProperties(int index)
Describing the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property properties = 6;
Parameter
Returns
getPropertiesCount()
public int getPropertiesCount()
Describing the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property properties = 6;
Returns
getPropertiesList()
public List<DocumentSchema.EntityType.Property> getPropertiesList()
Describing the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property properties = 6;
Returns
getPropertiesOrBuilder(int index)
public DocumentSchema.EntityType.PropertyOrBuilder getPropertiesOrBuilder(int index)
Describing the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property properties = 6;
Parameter
Returns
getPropertiesOrBuilderList()
public List<? extends DocumentSchema.EntityType.PropertyOrBuilder> getPropertiesOrBuilderList()
Describing the nested structure, or composition of an entity.
repeated .google.cloud.documentai.v1beta3.DocumentSchema.EntityType.Property properties = 6;
Returns
Type | Description |
List<? extends com.google.cloud.documentai.v1beta3.DocumentSchema.EntityType.PropertyOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getValueSourceCase()
public DocumentSchema.EntityType.ValueSourceCase getValueSourceCase()
Returns
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.v1beta3.DocumentSchema.EntityType.EnumValues enum_values = 14;
Returns
Type | Description |
boolean | Whether the enumValues field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public DocumentSchema.EntityType.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DocumentSchema.EntityType.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public DocumentSchema.EntityType.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions