# Document AI V1 API - Class Google::Cloud::DocumentAI::V1::DocumentSchema::EntityType::Property (v1.12.1)

1.12.1 (latest) 1.12.0 1.11.0 1.10.2 1.9.0 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.23.1 0.22.0 0.21.1 0.20.0 0.19.0 0.18.0 0.17.2 0.16.2 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.4 Reference documentation and code samples for the Document AI V1 API class Google::Cloud::DocumentAI::V1::DocumentSchema::EntityType::Property.

Defines properties that can be part of the entity type.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #display_name

    def display_name() -> ::String

**Returns**

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

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

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

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

### #method

    def method() -> ::Google::Cloud::DocumentAI::V1::DocumentSchema::EntityType::Property::Method

**Returns**

- ([::Google::Cloud::DocumentAI::V1::DocumentSchema::EntityType::Property::Method](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-DocumentSchema-EntityType-Property-Method)) --- Specifies how the entity's value is obtained.

### #method=

    def method=(value) -> ::Google::Cloud::DocumentAI::V1::DocumentSchema::EntityType::Property::Method

**Parameter**

- **value** ([::Google::Cloud::DocumentAI::V1::DocumentSchema::EntityType::Property::Method](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-DocumentSchema-EntityType-Property-Method)) --- Specifies how the entity's value is obtained.
**Returns**

- ([::Google::Cloud::DocumentAI::V1::DocumentSchema::EntityType::Property::Method](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-DocumentSchema-EntityType-Property-Method)) --- Specifies how the entity's value is obtained.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The name of the property. Follows the same guidelines as the EntityType name.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The name of the property. Follows the same guidelines as the EntityType name.
**Returns**

- (::String) --- The name of the property. Follows the same guidelines as the EntityType name.

### #occurrence_type

    def occurrence_type() -> ::Google::Cloud::DocumentAI::V1::DocumentSchema::EntityType::Property::OccurrenceType

**Returns**

- ([::Google::Cloud::DocumentAI::V1::DocumentSchema::EntityType::Property::OccurrenceType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-DocumentSchema-EntityType-Property-OccurrenceType)) --- Occurrence type limits the number of instances an entity type appears in the document.

### #occurrence_type=

    def occurrence_type=(value) -> ::Google::Cloud::DocumentAI::V1::DocumentSchema::EntityType::Property::OccurrenceType

**Parameter**

- **value** ([::Google::Cloud::DocumentAI::V1::DocumentSchema::EntityType::Property::OccurrenceType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-DocumentSchema-EntityType-Property-OccurrenceType)) --- Occurrence type limits the number of instances an entity type appears in the document.
**Returns**

- ([::Google::Cloud::DocumentAI::V1::DocumentSchema::EntityType::Property::OccurrenceType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-DocumentSchema-EntityType-Property-OccurrenceType)) --- Occurrence type limits the number of instances an entity type appears in the document.

### #value_type

    def value_type() -> ::String

**Returns**

- (::String) --- A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field.

### #value_type=

    def value_type=(value) -> ::String

**Parameter**

- **value** (::String) --- A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field.
**Returns**

- (::String) --- A reference to the value type of the property. This type is subject to the same conventions as the `Entity.base_types` field.