Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyAnswer

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

Overview

Represents a smart reply answer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SmartReplyAnswer

Returns a new instance of GoogleCloudDialogflowV2SmartReplyAnswer.



15160
15161
15162
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15160

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

Instance Attribute Details

#answer_recordString

The name of answer record, in the format of "projects//locations// answerRecords/" Corresponds to the JSON property answerRecord

Returns:

  • (String)


15146
15147
15148
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15146

def answer_record
  @answer_record
end

#confidenceFloat

Smart reply confidence. The system's confidence score that this reply is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain). Corresponds to the JSON property confidence

Returns:

  • (Float)


15153
15154
15155
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15153

def confidence
  @confidence
end

#replyString

The content of the reply. Corresponds to the JSON property reply

Returns:

  • (String)


15158
15159
15160
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15158

def reply
  @reply
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15165
15166
15167
15168
15169
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15165

def update!(**args)
  @answer_record = args[:answer_record] if args.key?(:answer_record)
  @confidence = args[:confidence] if args.key?(:confidence)
  @reply = args[:reply] if args.key?(:reply)
end