Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionInput

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

Returns a new instance of GoogleCloudDialogflowV2SuggestionInput.



16092
16093
16094
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16092

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


16075
16076
16077
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16075

def action
  @action
end

#answer_recordString

Corresponds to the JSON property answerRecord

Returns:

  • (String)


16080
16081
16082
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16080

def answer_record
  @answer_record
end

#parametersHash<String,Object>

Corresponds to the JSON property parameters

Returns:

  • (Hash<String,Object>)


16085
16086
16087
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16085

def parameters
  @parameters
end

#send_timeString

Corresponds to the JSON property sendTime

Returns:

  • (String)


16090
16091
16092
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16090

def send_time
  @send_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16097
16098
16099
16100
16101
16102
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 16097

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @answer_record = args[:answer_record] if args.key?(:answer_record)
  @parameters = args[:parameters] if args.key?(:parameters)
  @send_time = args[:send_time] if args.key?(:send_time)
end