# Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::SessionEntityType (v1.16.1)

1.16.1 (latest) 1.16.0 1.15.0 1.14.0 1.13.0 1.12.1 1.11.0 1.10.1 1.9.1 1.8.0 1.7.0 1.6.0 1.5.0 1.4.1 1.3.0 1.2.0 1.1.1 1.0.0 0.34.0 0.33.0 0.32.2 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.2 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.1 0.16.0 0.15.2 0.14.0 0.13.0 0.12.0 Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::SessionEntityType.

A session represents a conversation between a Dialogflow agent and an
end-user. You can create special entities, called session entities, during a
session. Session entities can extend or replace custom entity types and only
exist during the session that they were created for. All session data,
including session entities, is stored by Dialogflow for 20 minutes.


<br />

For more information, see the [session entity
guide](https://cloud.google.com/dialogflow/docs/entities-session).

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #entities

    def entities() -> ::Array<::Google::Cloud::Dialogflow::V2::EntityType::Entity>

**Returns**

- (::Array\<[::Google::Cloud::Dialogflow::V2::EntityType::Entity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-EntityType-Entity)\>) --- Required. The collection of entities associated with this session entity type.

### #entities=

    def entities=(value) -> ::Array<::Google::Cloud::Dialogflow::V2::EntityType::Entity>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Dialogflow::V2::EntityType::Entity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-EntityType-Entity)\>) --- Required. The collection of entities associated with this session entity type.
**Returns**

- (::Array\<[::Google::Cloud::Dialogflow::V2::EntityType::Entity](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-EntityType-Entity)\>) --- Required. The collection of entities associated with this session entity type.

### #entity_override_mode

    def entity_override_mode() -> ::Google::Cloud::Dialogflow::V2::SessionEntityType::EntityOverrideMode

**Returns**

- ([::Google::Cloud::Dialogflow::V2::SessionEntityType::EntityOverrideMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-SessionEntityType-EntityOverrideMode)) --- Required. Indicates whether the additional data should override or supplement the custom entity type definition.

### #entity_override_mode=

    def entity_override_mode=(value) -> ::Google::Cloud::Dialogflow::V2::SessionEntityType::EntityOverrideMode

**Parameter**

- **value** ([::Google::Cloud::Dialogflow::V2::SessionEntityType::EntityOverrideMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-SessionEntityType-EntityOverrideMode)) --- Required. Indicates whether the additional data should override or supplement the custom entity type definition.
**Returns**

- ([::Google::Cloud::Dialogflow::V2::SessionEntityType::EntityOverrideMode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-dialogflow-v2/latest/Google-Cloud-Dialogflow-V2-SessionEntityType-EntityOverrideMode)) --- Required. Indicates whether the additional data should override or supplement the custom entity type definition.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The unique identifier of this session entity type. Format: `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
  Display Name>`, or `projects/<Project ID>/agent/environments/<Environment
  ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
  Name>`. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.


  `<Entity Type Display Name>` must be the display name of an existing entity
  type in the same agent that will be overridden or supplemented.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The unique identifier of this session entity type. Format: `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
  Display Name>`, or `projects/<Project ID>/agent/environments/<Environment
  ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
  Name>`. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.


  `<Entity Type Display Name>` must be the display name of an existing entity
  type in the same agent that will be overridden or supplemented.
**Returns**

- (::String) --- Required. The unique identifier of this session entity type. Format: `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
  Display Name>`, or `projects/<Project ID>/agent/environments/<Environment
  ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
  Name>`. If `Environment ID` is not specified, we assume default 'draft' environment. If `User ID` is not specified, we assume default '-' user.


  `<Entity Type Display Name>` must be the display name of an existing entity
  type in the same agent that will be overridden or supplemented.