Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2Context

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) ⇒ GoogleCloudDialogflowV2Context

Returns a new instance of GoogleCloudDialogflowV2Context.



7233
7234
7235
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7233

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

Instance Attribute Details

#lifespan_countFixnum

Corresponds to the JSON property lifespanCount

Returns:

  • (Fixnum)


7221
7222
7223
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7221

def lifespan_count
  @lifespan_count
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


7226
7227
7228
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7226

def name
  @name
end

#parametersHash<String,Object>

Corresponds to the JSON property parameters

Returns:

  • (Hash<String,Object>)


7231
7232
7233
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7231

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7238
7239
7240
7241
7242
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7238

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