Google Cloud Dialogflow V2 Client - Class EntityType (1.16.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class EntityType.

Each intent parameter has a type, called the entity type, which dictates exactly how data from an end-user expression is extracted.

Dialogflow provides predefined system entities that can match many common types of data. For example, there are system entities for matching dates, times, colors, email addresses, and so on. You can also create your own custom entities for matching custom data. For example, you could define a vegetable entity that can match the types of vegetables available for purchase with a grocery store agent. For more information, see the Entity guide.

Generated from protobuf message google.cloud.dialogflow.v2.EntityType

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Format: projects/<Project ID>/agent/entityTypes/<Entity Type ID>.

↳ display_name string

Required. The name of the entity type.

↳ kind int

Required. Indicates the kind of entity type.

↳ auto_expansion_mode int

Optional. Indicates whether the entity type can be automatically expanded.

↳ entities array<Google\Cloud\Dialogflow\V2\EntityType\Entity>

Optional. The collection of entity entries associated with the entity type.

↳ enable_fuzzy_extraction bool

Optional. Enables fuzzy entity extraction during classification.

getName

The unique identifier of the entity type.

Required for EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Format: projects/<Project ID>/agent/entityTypes/<Entity Type ID>.

Returns
Type Description
string

setName

The unique identifier of the entity type.

Required for EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Format: projects/<Project ID>/agent/entityTypes/<Entity Type ID>.

Parameter
Name Description
var string
Returns
Type Description
$this

getDisplayName

Required. The name of the entity type.

Returns
Type Description
string

setDisplayName

Required. The name of the entity type.

Parameter
Name Description
var string
Returns
Type Description
$this

getKind

Required. Indicates the kind of entity type.

Returns
Type Description
int

setKind

Required. Indicates the kind of entity type.

Parameter
Name Description
var int
Returns
Type Description
$this

getAutoExpansionMode

Optional. Indicates whether the entity type can be automatically expanded.

Returns
Type Description
int

setAutoExpansionMode

Optional. Indicates whether the entity type can be automatically expanded.

Parameter
Name Description
var int
Returns
Type Description
$this

getEntities

Optional. The collection of entity entries associated with the entity type.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setEntities

Optional. The collection of entity entries associated with the entity type.

Parameter
Name Description
var array<Google\Cloud\Dialogflow\V2\EntityType\Entity>
Returns
Type Description
$this

getEnableFuzzyExtraction

Optional. Enables fuzzy entity extraction during classification.

Returns
Type Description
bool

setEnableFuzzyExtraction

Optional. Enables fuzzy entity extraction during classification.

Parameter
Name Description
var bool
Returns
Type Description
$this