Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/dialogflow_v2beta1/classes.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb,
generated/google/apis/dialogflow_v2beta1/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
- 
  
    
      #entities  ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityTypeEntity> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 - 
  
    
      #entity_override_mode  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GoogleCloudDialogflowV2beta1SessionEntityType 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GoogleCloudDialogflowV2beta1SessionEntityType.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SessionEntityType
Returns a new instance of GoogleCloudDialogflowV2beta1SessionEntityType
      4250 4251 4252  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4250 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#entities ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityTypeEntity>
Required. The collection of entities associated with this session entity
type.
Corresponds to the JSON property entities
      4231 4232 4233  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4231 def entities @entities end  | 
  
#entity_override_mode ⇒ String
Required. Indicates whether the additional data should override or
supplement the developer entity type definition.
Corresponds to the JSON property entityOverrideMode
      4237 4238 4239  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4237 def entity_override_mode @entity_override_mode end  | 
  
#name ⇒ 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.
Corresponds to the JSON property name
      4248 4249 4250  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4248 def name @name end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      4255 4256 4257 4258 4259  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4255 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  |