Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2SmartReplyAnswer

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

Returns a new instance of GoogleCloudDialogflowV2SmartReplyAnswer.



16497
16498
16499
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16497

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

Instance Attribute Details

#answer_recordString

Corresponds to the JSON property answerRecord

Returns:

  • (String)


16485
16486
16487
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16485

def answer_record
  @answer_record
end

#confidenceFloat

Corresponds to the JSON property confidence

Returns:

  • (Float)


16490
16491
16492
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16490

def confidence
  @confidence
end

#replyString

Corresponds to the JSON property reply

Returns:

  • (String)


16495
16496
16497
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16495

def reply
  @reply
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16502
16503
16504
16505
16506
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16502

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