Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dialogflow_v2/classes.rb,
generated/google/apis/dialogflow_v2/representations.rb,
generated/google/apis/dialogflow_v2/representations.rb

Overview

Represents a session entity type. Extends or replaces a developer entity type at the user session level (we refer to the entity types defined at the agent level as "developer entity types"). Note: session entity types apply to all queries, regardless of the language.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SessionEntityType

Returns a new instance of GoogleCloudDialogflowV2SessionEntityType



2199
2200
2201
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 2199

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#entitiesArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity>

Required. The collection of entities associated with this session entity type. Corresponds to the JSON property entities



2184
2185
2186
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 2184

def entities
  @entities
end

#entity_override_modeString

Required. Indicates whether the additional data should override or supplement the developer entity type definition. Corresponds to the JSON property entityOverrideMode

Returns:

  • (String)


2190
2191
2192
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 2190

def entity_override_mode
  @entity_override_mode
end

#nameString

Required. The unique identifier of this session entity type. Format: projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>. Corresponds to the JSON property name

Returns:

  • (String)


2197
2198
2199
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 2197

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2204
2205
2206
2207
2208
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 2204

def update!(**args)
  @entities = args[:entities] if args.key?(:entities)
  @entity_override_mode = args[:entity_override_mode] if args.key?(:entity_override_mode)
  @name = args[:name] if args.key?(:name)
end