Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context
 
 
- 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 context.
Instance Attribute Summary collapse
- 
  
    
      #lifespan_count  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 - 
  
    
      #parameters  ⇒ Hash<String,Object> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GoogleCloudDialogflowV2Context 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GoogleCloudDialogflowV2Context.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2Context
Returns a new instance of GoogleCloudDialogflowV2Context
      406 407 408  | 
    
      # File 'generated/google/apis/dialogflow_v2/classes.rb', line 406 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#lifespan_count ⇒ Fixnum
Optional. The number of conversational query requests after which the
context expires. If set to 0 (the default) the context expires
immediately. Contexts expire automatically after 10 minutes even if there
are no matching queries.
Corresponds to the JSON property lifespanCount
      391 392 393  | 
    
      # File 'generated/google/apis/dialogflow_v2/classes.rb', line 391 def lifespan_count @lifespan_count end  | 
  
#name ⇒ String
Required. The unique identifier of the context. Format:
projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>.
Corresponds to the JSON property name
      397 398 399  | 
    
      # File 'generated/google/apis/dialogflow_v2/classes.rb', line 397 def name @name end  | 
  
#parameters ⇒ Hash<String,Object>
Optional. The collection of parameters associated with this context.
Refer to this doc for
syntax.
Corresponds to the JSON property parameters
      404 405 406  | 
    
      # File 'generated/google/apis/dialogflow_v2/classes.rb', line 404 def parameters @parameters end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      411 412 413 414 415  | 
    
      # File 'generated/google/apis/dialogflow_v2/classes.rb', line 411 def update!(**args) @lifespan_count = args[:lifespan_count] if args.key?(:lifespan_count) @name = args[:name] if args.key?(:name) @parameters = args[:parameters] if args.key?(:parameters) end  |