Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2Context

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2Context

Returns a new instance of GoogleCloudDialogflowV2Context.



13564
13565
13566
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13564

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

Instance Attribute Details

#lifespan_countFixnum

Corresponds to the JSON property lifespanCount

Returns:

  • (Fixnum)


13552
13553
13554
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13552

def lifespan_count
  @lifespan_count
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


13557
13558
13559
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13557

def name
  @name
end

#parametersHash<String,Object>

Corresponds to the JSON property parameters

Returns:

  • (Hash<String,Object>)


13562
13563
13564
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13562

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13569
13570
13571
13572
13573
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 13569

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