Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Context

Returns a new instance of GoogleCloudDialogflowV2beta1Context.



12216
12217
12218
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12216

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

Instance Attribute Details

#lifespan_countFixnum

Corresponds to the JSON property lifespanCount

Returns:

  • (Fixnum)


12204
12205
12206
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12204

def lifespan_count
  @lifespan_count
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


12209
12210
12211
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12209

def name
  @name
end

#parametersHash<String,Object>

Corresponds to the JSON property parameters

Returns:

  • (Hash<String,Object>)


12214
12215
12216
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12214

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12221
12222
12223
12224
12225
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12221

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