Class DocumentSchema.EntityType.Builder (2.12.0)

public static final class DocumentSchema.EntityType.Builder extends GeneratedMessageV3.Builder<DocumentSchema.EntityType.Builder> 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllBaseTypes(Iterable<String> values)

public DocumentSchema.EntityType.Builder addAllBaseTypes(Iterable<String> values)

The entity type that this type is derived from. For now, one and only one should be set.

repeated string base_types = 2;

Parameter
NameDescription
valuesIterable<String>

The baseTypes to add.

Returns
TypeDescription
DocumentSchema.EntityType.Builder

This builder for chaining.

addAllProperties(Iterable<? extends DocumentSchema.EntityType.Property> values)

public DocumentSchema.EntityType.Builder addAllProperties(Iterable<? extends DocumentSchema.EntityType.Property> values)

Describing the nested structure, or composition of an entity.

repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1.DocumentSchema.EntityType.Property>
Returns
TypeDescription
DocumentSchema.EntityType.Builder

addBaseTypes(String value)

public DocumentSchema.EntityType.Builder addBaseTypes(String value)

The entity type that this type is derived from. For now, one and only one should be set.

repeated string base_types = 2;

Parameter
NameDescription
valueString

The baseTypes to add.

Returns
TypeDescription
DocumentSchema.EntityType.Builder

This builder for chaining.

addBaseTypesBytes(ByteString value)

public DocumentSchema.EntityType.Builder addBaseTypesBytes(ByteString value)

The entity type that this type is derived from. For now, one and only one should be set.

repeated string base_types = 2;

Parameter
NameDescription
valueByteString

The bytes of the baseTypes to add.

Returns
TypeDescription
DocumentSchema.EntityType.Builder

This builder for chaining.