Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context
 
 
- 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 context.
Instance Attribute Summary collapse
- 
  
    
      #lifespan_count  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required.
 - 
  
    
      #parameters  ⇒ Hash<String,Object> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Optional.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GoogleCloudDialogflowV2beta1Context 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GoogleCloudDialogflowV2beta1Context.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Context
Returns a new instance of GoogleCloudDialogflowV2beta1Context
      1859 1860 1861  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1859 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
      1839 1840 1841  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1839 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>,
or projects/<Project ID>/agent/environments/<Environment ID>/users/<User
ID>/sessions/<Session ID>/contexts/<Context ID>. The Context ID is
always converted to lowercase. 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
      1850 1851 1852  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1850 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
      1857 1858 1859  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1857 def parameters @parameters end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      1864 1865 1866 1867 1868  | 
    
      # File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1864 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  |