Service Client: Google::Cloud::Dialogflow::V2::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::V2::EntityType - Compiled Protocol Buffers messages for google/cloud/dialogflow/v2/entity_type.proto
SYNOPSIS
use Google::Cloud::Dialogflow::V2::EntityType;
my $msg = Google::Cloud::Dialogflow::V2::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::V2::EntityType::EntityType->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/v2/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::V2::EntityType::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](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.v2.EntityTypes.UpdateEntityType] and [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes] methods. Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The name of the entity type.
$msg->kind()/$msg->kind($value)Type:
Enum(Google::Cloud::Dialogflow::V2::EntityType::Kind)Required. Indicates the kind of entity type.
$msg->auto_expansion_mode()/$msg->auto_expansion_mode($value)Type:
Enum(Google::Cloud::Dialogflow::V2::EntityType::AutoExpansionMode)Optional. Indicates whether the entity type can be automatically expanded.
$msg->entities()/$msg->entities($value)Type:
Message(Google::Cloud::Dialogflow::V2::EntityType::EntityType::Entity)Optional. The collection of entity entries associated with the entity type.
$msg->enable_fuzzy_extraction()/$msg->enable_fuzzy_extraction($value)Type:
BoolOptional. Enables fuzzy entity extraction during classification.
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::V2::EntityType::ListEntityTypesRequest
The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The agent to list all entity types from. Format: `projects/<Project ID>/agent`.
$msg->language_code()/$msg->language_code($value)Type:
StringOptional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The 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:
StringOptional. The next_page_token value returned from a previous list request.
Google::Cloud::Dialogflow::V2::EntityType::ListEntityTypesResponse
The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes].
Inherits from Protobuf::Message.
Accessors
$msg->entity_types()/$msg->entity_types($value)Type:
Message(Google::Cloud::Dialogflow::V2::EntityType::EntityType)The list of agent 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::V2::EntityType::GetEntityTypeRequest
The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.v2.EntityTypes.GetEntityType].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the entity type. Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
$msg->language_code()/$msg->language_code($value)Type:
StringOptional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Google::Cloud::Dialogflow::V2::EntityType::CreateEntityTypeRequest
The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.v2.EntityTypes.CreateEntityType].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The agent to create a entity type for. Format: `projects/<Project ID>/agent`.
$msg->entity_type()/$msg->entity_type($value)Type:
Message(Google::Cloud::Dialogflow::V2::EntityType::EntityType)Required. The entity type to create.
$msg->language_code()/$msg->language_code($value)Type:
StringOptional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Google::Cloud::Dialogflow::V2::EntityType::UpdateEntityTypeRequest
The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType].
Inherits from Protobuf::Message.
Accessors
$msg->entity_type()/$msg->entity_type($value)Type:
Message(Google::Cloud::Dialogflow::V2::EntityType::EntityType)Required. The entity type to update.
$msg->language_code()/$msg->language_code($value)Type:
StringOptional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The mask to control which fields get updated.
Google::Cloud::Dialogflow::V2::EntityType::DeleteEntityTypeRequest
The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the entity type to delete. Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
Google::Cloud::Dialogflow::V2::EntityType::BatchUpdateEntityTypesRequest
The request message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the agent to update or create entity types in. Format: `projects/<Project ID>/agent`.
$msg->entity_type_batch_uri()/$msg->entity_type_batch_uri($value)Type:
StringThe URI to a Google Cloud Storage file containing entity types to update or create. The file format can either be a serialized proto (of EntityBatch type) or a JSON object. Note: The URI must start with "gs://".
$msg->entity_type_batch_inline()/$msg->entity_type_batch_inline($value)Type:
Message(Google::Cloud::Dialogflow::V2::EntityType::EntityTypeBatch)The collection of entity types to update or create.
$msg->language_code()/$msg->language_code($value)Type:
StringOptional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The mask to control which fields get updated.
Google::Cloud::Dialogflow::V2::EntityType::BatchUpdateEntityTypesResponse
The response message for [EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes].
Inherits from Protobuf::Message.
Accessors
$msg->entity_types()/$msg->entity_types($value)Type:
Message(Google::Cloud::Dialogflow::V2::EntityType::EntityType)The collection of updated or created entity types.
Google::Cloud::Dialogflow::V2::EntityType::BatchDeleteEntityTypesRequest
The request message for [EntityTypes.BatchDeleteEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the agent to delete all entities types for. Format: `projects/<Project ID>/agent`.
$msg->entity_type_names()/$msg->entity_type_names($value)Type:
StringRequired. The names entity types to delete. All names must point to the same agent as `parent`.
Google::Cloud::Dialogflow::V2::EntityType::BatchCreateEntitiesRequest
The request message for [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the entity type to create entities in. Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
$msg->entities()/$msg->entities($value)Type:
Message(Google::Cloud::Dialogflow::V2::EntityType::EntityType::Entity)Required. The entities to create.
$msg->language_code()/$msg->language_code($value)Type:
StringOptional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Google::Cloud::Dialogflow::V2::EntityType::BatchUpdateEntitiesRequest
The request message for [EntityTypes.BatchUpdateEntities][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntities].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the entity type to update or create entities in. Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
$msg->entities()/$msg->entities($value)Type:
Message(Google::Cloud::Dialogflow::V2::EntityType::EntityType::Entity)Required. The entities to update or create.
$msg->language_code()/$msg->language_code($value)Type:
StringOptional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The mask to control which fields get updated.
Google::Cloud::Dialogflow::V2::EntityType::BatchDeleteEntitiesRequest
The request message for [EntityTypes.BatchDeleteEntities][google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The name of the entity type to delete entries for. Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
$msg->entity_values()/$msg->entity_values($value)Type:
StringRequired. The reference `values` of the entities to delete. Note that these are not fully-qualified names, i.e. they don't start with `projects/<Project ID>`.
$msg->language_code()/$msg->language_code($value)Type:
StringOptional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see [Multilingual intent and entity data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
Google::Cloud::Dialogflow::V2::EntityType::EntityTypeBatch
This message is a wrapper around a collection of entity types.
Inherits from Protobuf::Message.
Accessors
$msg->entity_types()/$msg->entity_types($value)Type:
Message(Google::Cloud::Dialogflow::V2::EntityType::EntityType)A collection of entity types.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::V2::EntityType::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.