Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2Context

Returns a new instance of GoogleCloudDialogflowV2Context.



8218
8219
8220
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8218

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

Instance Attribute Details

#lifespan_countFixnum

Corresponds to the JSON property lifespanCount

Returns:

  • (Fixnum)


8206
8207
8208
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8206

def lifespan_count
  @lifespan_count
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


8211
8212
8213
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8211

def name
  @name
end

#parametersHash<String,Object>

Corresponds to the JSON property parameters

Returns:

  • (Hash<String,Object>)


8216
8217
8218
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8216

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8223
8224
8225
8226
8227
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8223

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