Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb
Instance Attribute Summary collapse
-
#lifespan_count ⇒ Fixnum
Corresponds to the JSON property
lifespanCount. -
#name ⇒ String
Corresponds to the JSON property
name. -
#parameters ⇒ Hash<String,Object>
Corresponds to the JSON property
parameters.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2Context
constructor
A new instance of GoogleCloudDialogflowV2Context.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2Context
Returns a new instance of GoogleCloudDialogflowV2Context.
8192 8193 8194 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8192 def initialize(**args) update!(**args) end |
Instance Attribute Details
#lifespan_count ⇒ Fixnum
Corresponds to the JSON property lifespanCount
8180 8181 8182 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8180 def lifespan_count @lifespan_count end |
#name ⇒ String
Corresponds to the JSON property name
8185 8186 8187 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8185 def name @name end |
#parameters ⇒ Hash<String,Object>
Corresponds to the JSON property parameters
8190 8191 8192 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8190 def parameters @parameters end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8197 8198 8199 8200 8201 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8197 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 |