# Document AI V1beta3 API - Class Google::Cloud::DocumentAI::V1beta3::DocumentSchema::EntityType (v0.49.0)

0.49.0 (latest) 0.48.1 0.47.0 0.46.2 0.45.0 0.44.0 0.43.1 0.42.0 0.41.0 0.40.0 0.39.1 0.38.0 0.37.0 0.36.1 0.35.0 0.34.0 0.33.1 0.32.0 0.31.0 0.30.2 0.29.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.4 Reference documentation and code samples for the Document AI V1beta3 API class Google::Cloud::DocumentAI::V1beta3::DocumentSchema::EntityType.

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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #base_types

    def base_types() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- The entity type that this type is derived from. For now, one and only one should be set.

### #base_types=

    def base_types=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- The entity type that this type is derived from. For now, one and only one should be set.
**Returns**

- (::Array\<::String\>) --- The entity type that this type is derived from. For now, one and only one should be set.

### #description

    def description() -> ::String

**Returns**

- (::String) --- The description of the entity type. Could be used to provide more information about the entity type for model calls.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- The description of the entity type. Could be used to provide more information about the entity type for model calls.
**Returns**

- (::String) --- The description of the entity type. Could be used to provide more information about the entity type for model calls.

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- User defined name for the type.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- User defined name for the type.
**Returns**

- (::String) --- User defined name for the type.

### #entity_type_metadata

    def entity_type_metadata() -> ::Google::Cloud::DocumentAI::V1beta3::EntityTypeMetadata

**Returns**

- ([::Google::Cloud::DocumentAI::V1beta3::EntityTypeMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-EntityTypeMetadata)) --- Metadata for the entity type.

### #entity_type_metadata=

    def entity_type_metadata=(value) -> ::Google::Cloud::DocumentAI::V1beta3::EntityTypeMetadata

**Parameter**

- **value** ([::Google::Cloud::DocumentAI::V1beta3::EntityTypeMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-EntityTypeMetadata)) --- Metadata for the entity type.
**Returns**

- ([::Google::Cloud::DocumentAI::V1beta3::EntityTypeMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-EntityTypeMetadata)) --- Metadata for the entity type.

### #enum_values

    def enum_values() -> ::Google::Cloud::DocumentAI::V1beta3::DocumentSchema::EntityType::EnumValues

**Returns**

- ([::Google::Cloud::DocumentAI::V1beta3::DocumentSchema::EntityType::EnumValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-DocumentSchema-EntityType-EnumValues)) --- 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.

### #enum_values=

    def enum_values=(value) -> ::Google::Cloud::DocumentAI::V1beta3::DocumentSchema::EntityType::EnumValues

**Parameter**

- **value** ([::Google::Cloud::DocumentAI::V1beta3::DocumentSchema::EntityType::EnumValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-DocumentSchema-EntityType-EnumValues)) --- 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.
**Returns**

- ([::Google::Cloud::DocumentAI::V1beta3::DocumentSchema::EntityType::EnumValues](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-DocumentSchema-EntityType-EnumValues)) --- 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.

### #name

    def name() -> ::String

**Returns**

- (::String) --- 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.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) ---

  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.
**Returns**

- (::String) --- 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.

### #properties

    def properties() -> ::Array<::Google::Cloud::DocumentAI::V1beta3::DocumentSchema::EntityType::Property>

**Returns**

- (::Array\<[::Google::Cloud::DocumentAI::V1beta3::DocumentSchema::EntityType::Property](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-DocumentSchema-EntityType-Property)\>) --- Description the nested structure, or composition of an entity.

### #properties=

    def properties=(value) -> ::Array<::Google::Cloud::DocumentAI::V1beta3::DocumentSchema::EntityType::Property>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DocumentAI::V1beta3::DocumentSchema::EntityType::Property](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-DocumentSchema-EntityType-Property)\>) --- Description the nested structure, or composition of an entity.
**Returns**

- (::Array\<[::Google::Cloud::DocumentAI::V1beta3::DocumentSchema::EntityType::Property](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-DocumentSchema-EntityType-Property)\>) --- Description the nested structure, or composition of an entity.