Service Client: Google::Cloud::Dialogflow::Cx::V3::EntityType::EntityTypesClient
Client stub representing the remote EntityTypes gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to dialogflow.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Dialogflow::Cx::V3::EntityType - Compiled Protocol Buffers messages for google/cloud/dialogflow/cx/v3/entity_type.proto
SYNOPSIS
use Google::Cloud::Dialogflow::Cx::V3::EntityType;
my $msg = Google::Cloud::Dialogflow::Cx::V3::EntityType::EntityType->new({
name => $name,
display_name => $display_name,
kind => $kind,
auto_expansion_mode => $auto_expansion_mode,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::Cx::V3::EntityType::EntityType->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/cx/v3/entity_type.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Dialogflow::Cx::V3::EntityType::EntityType
Entities are extracted from user input and represent parameters that are meaningful to your application. For example, a date range, a proper name such as a geographic location or landmark, and so on. Entities represent actionable data for your application.
When you define an entity, you can also include synonyms that all map to that entity. For example, "soft drink", "soda", "pop", and so on.
There are three types of entities:
* System - entities that are defined by the Dialogflow API for common data types such as date, time, currency, and so on. A system entity is represented by the `EntityType` type.
* Custom - entities that are defined by you that represent actionable data that is meaningful to your application. For example, you could define a `pizza.sauce` entity for red or white pizza sauce, a `pizza.cheese` entity for the different types of cheese on a pizza, a `pizza.topping` entity for different toppings, and so on. A custom entity is represented by the `EntityType` type.
* User - entities that are built for an individual user such as favorites, preferences, playlists, and so on. A user entity is represented by the [SessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityType] type.
For more information about entity types, see the [Dialogflow documentation](https://cloud.google.com/dialogflow/docs/entities-overview).
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe unique identifier of the entity type. Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The human-readable name of the entity type, unique within the agent.
$msg->kind()/$msg->kind($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3::EntityType::Kind)Required. Indicates the kind of entity type.
$msg->auto_expansion_mode()/$msg->auto_expansion_mode($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3::EntityType::AutoExpansionMode)Indicates whether the entity type can be automatically expanded.
$msg->entities()/$msg->entities($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::EntityType::EntityType::Entity)The collection of entity entries associated with the entity type.
$msg->excluded_phrases()/$msg->excluded_phrases($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::EntityType::EntityType::ExcludedPhrase)Collection of exceptional words and phrases that shouldn't be matched. For example, if you have a size entity type with entry `giant`(an adjective), you might consider adding `giants`(a noun) as an exclusion. If the kind of entity type is `KIND_MAP`, then the phrases specified by entities and excluded phrases should be mutually exclusive.
$msg->enable_fuzzy_extraction()/$msg->enable_fuzzy_extraction($value)Type:
BoolEnables fuzzy entity extraction during classification.
$msg->redact()/$msg->redact($value)Type:
BoolIndicates whether parameters of the entity type should be redacted in log. If redaction is enabled, page parameters and intent parameters referring to the entity type will be replaced by parameter name when logging.
Enum: EntityType::Kind
KIND_UNSPECIFIED=>0KIND_MAP=>1KIND_LIST=>2KIND_REGEXP=>3
Enum: EntityType::AutoExpansionMode
AUTO_EXPANSION_MODE_UNSPECIFIED=>0AUTO_EXPANSION_MODE_DEFAULT=>1
Google::Cloud::Dialogflow::Cx::V3::EntityType::ExportEntityTypesRequest
The request message for [EntityTypes.ExportEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ExportEntityTypes].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the parent agent to export entity types. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
$msg->entity_types()/$msg->entity_types($value)Type:
StringRequired. The name of the entity types to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
$msg->entity_types_uri()/$msg->entity_types_uri($value)Type:
StringOptional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the entity types to. The format of this URI must be `gs://<bucket-name>/<object-name>`.
Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
$msg->entity_types_content_inline()/$msg->entity_types_content_inline($value)Type:
BoolOptional. The option to return the serialized entity types inline.
$msg->data_format()/$msg->data_format($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3::ExportEntityTypesRequest::DataFormat)Optional. The data format of the exported entity types. If not specified, `BLOB` is assumed.
$msg->language_code()/$msg->language_code($value)Type:
StringOptional. The language to retrieve the entity type for. The following fields are language dependent:
* `EntityType.entities.value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value`
If not specified, all language dependent fields will be retrieved. [Many languages](https://cloud.google.com/dialogflow/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.
Enum: ExportEntityTypesRequest::DataFormat
DATA_FORMAT_UNSPECIFIED=>0BLOB=>1JSON_PACKAGE=>5
Google::Cloud::Dialogflow::Cx::V3::EntityType::ExportEntityTypesResponse
The response message for [EntityTypes.ExportEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ExportEntityTypes].
Inherits from Protobuf::Message.
Accessors
$msg->entity_types_uri()/$msg->entity_types_uri($value)Type:
StringThe URI to a file containing the exported entity types. This field is populated only if `entity_types_uri` is specified in [ExportEntityTypesRequest][google.cloud.dialogflow.cx.v3.ExportEntityTypesRequest].
$msg->entity_types_content()/$msg->entity_types_content($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Inline::InlineDestination)Uncompressed byte content for entity types. This field is populated only if `entity_types_content_inline` is set to true in [ExportEntityTypesRequest][google.cloud.dialogflow.cx.v3.ExportEntityTypesRequest].
Google::Cloud::Dialogflow::Cx::V3::EntityType::ExportEntityTypesMetadata
Metadata returned for the [EntityTypes.ExportEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ExportEntityTypes] long running operation.
Inherits from Protobuf::Message.
Google::Cloud::Dialogflow::Cx::V3::EntityType::ImportEntityTypesRequest
The request message for [EntityTypes.ImportEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ImportEntityTypes].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The agent to import the entity types into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
$msg->entity_types_uri()/$msg->entity_types_uri($value)Type:
StringThe [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import entity types from. The format of this URI must be `gs://<bucket-name>/<object-name>`.
Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
$msg->entity_types_content()/$msg->entity_types_content($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::Inline::InlineSource)Uncompressed byte content of entity types.
$msg->merge_option()/$msg->merge_option($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3::ImportEntityTypesRequest::MergeOption)Required. Merge option for importing entity types.
$msg->target_entity_type()/$msg->target_entity_type($value)Type:
StringOptional. The target entity type to import into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`. If set, there should be only one entity type included in [entity_types][google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest.entity_types], of which the type should match the type of the target entity type. All [entities][google.cloud.dialogflow.cx.v3.EntityType.entities] in the imported entity type will be added to the target entity type.
Enum: ImportEntityTypesRequest::MergeOption
MERGE_OPTION_UNSPECIFIED=>0REPLACE=>1MERGE=>2RENAME=>3REPORT_CONFLICT=>4KEEP=>5
Google::Cloud::Dialogflow::Cx::V3::EntityType::ImportEntityTypesResponse
The response message for [EntityTypes.ImportEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ImportEntityTypes].
Inherits from Protobuf::Message.
Accessors
$msg->entity_types()/$msg->entity_types($value)Type:
StringThe unique identifier of the imported entity types. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`.
$msg->conflicting_resources()/$msg->conflicting_resources($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::EntityType::ImportEntityTypesResponse::ConflictingResources)Info which resources have conflicts when [REPORT_CONFLICT][ImportEntityTypesResponse.REPORT_CONFLICT] merge_option is set in ImportEntityTypesRequest.
Google::Cloud::Dialogflow::Cx::V3::EntityType::ImportEntityTypesMetadata
Metadata returned for the [EntityTypes.ImportEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ImportEntityTypes] long running operation.
Inherits from Protobuf::Message.
Google::Cloud::Dialogflow::Cx::V3::EntityType::ListEntityTypesRequest
The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The agent to list all entity types for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
$msg->language_code()/$msg->language_code($value)Type:
StringThe language to list entity types for. The following fields are language dependent:
* `EntityType.entities.value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value`
If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of items to return in a single page. By default 100 and at most 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringThe next_page_token value returned from a previous list request.
Google::Cloud::Dialogflow::Cx::V3::EntityType::ListEntityTypesResponse
The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
Inherits from Protobuf::Message.
Accessors
$msg->entity_types()/$msg->entity_types($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::EntityType::EntityType)The list of entity types. There will be a maximum number of items returned based on the page_size field in the request.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringToken to retrieve the next page of results, or empty if there are no more results in the list.
Google::Cloud::Dialogflow::Cx::V3::EntityType::GetEntityTypeRequest
The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the entity type. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
$msg->language_code()/$msg->language_code($value)Type:
StringThe language to retrieve the entity type for. The following fields are language dependent:
* `EntityType.entities.value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value`
If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.
Google::Cloud::Dialogflow::Cx::V3::EntityType::CreateEntityTypeRequest
The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityType].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The agent to create a entity type for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
$msg->entity_type()/$msg->entity_type($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::EntityType::EntityType)Required. The entity type to create.
$msg->language_code()/$msg->language_code($value)Type:
StringThe language of the following fields in `entity_type`:
* `EntityType.entities.value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value`
If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.
Google::Cloud::Dialogflow::Cx::V3::EntityType::UpdateEntityTypeRequest
The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
Inherits from Protobuf::Message.
Accessors
$msg->entity_type()/$msg->entity_type($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3::EntityType::EntityType)Required. The entity type to update.
$msg->language_code()/$msg->language_code($value)Type:
StringThe language of the following fields in `entity_type`:
* `EntityType.entities.value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value`
If not specified, the agent's default language is used. [Many languages](https://cloud.google.com/dialogflow/cx/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)The mask to control which fields get updated.
Google::Cloud::Dialogflow::Cx::V3::EntityType::DeleteEntityTypeRequest
The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityType].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the entity type to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
$msg->force()/$msg->force($value)Type:
BoolThis field has no effect for entity type not being used. For entity types that are used by intents or pages:
* If `force` is set to false, an error will be returned with message indicating the referencing resources. * If `force` is set to true, Dialogflow will remove the entity type, as well as any references to the entity type (i.e. Page [parameter][google.cloud.dialogflow.cx.v3.Form.Parameter] of the entity type will be changed to '@sys.any' and intent [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] of the entity type will be removed).
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::Cx::V3::EntityType::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.