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.



16454
16455
16456
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16454

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

Instance Attribute Details

#answer_recordString

Corresponds to the JSON property answerRecord

Returns:

  • (String)


16442
16443
16444
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16442

def answer_record
  @answer_record
end

#confidenceFloat

Corresponds to the JSON property confidence

Returns:

  • (Float)


16447
16448
16449
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16447

def confidence
  @confidence
end

#replyString

Corresponds to the JSON property reply

Returns:

  • (String)


16452
16453
16454
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16452

def reply
  @reply
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16459
16460
16461
16462
16463
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16459

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