Class: Google::Cloud::Dialogflow::V2::FaqAnswer

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/dialogflow/v2/participant.rb

Overview

Represents answer from "frequently asked questions".

Defined Under Namespace

Classes: MetadataEntry

Instance Attribute Summary collapse

Instance Attribute Details

#answer::String

Returns The piece of text from the source knowledge base document.

Returns:

  • (::String)

    The piece of text from the source knowledge base document.



830
831
832
833
834
835
836
837
838
839
840
841
842
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 830

class FaqAnswer
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class MetadataEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#answer_record::String

Returns The name of answer record, in the format of "projects//locations//answerRecords/".

Returns:

  • (::String)

    The name of answer record, in the format of "projects//locations//answerRecords/"



830
831
832
833
834
835
836
837
838
839
840
841
842
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 830

class FaqAnswer
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class MetadataEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#confidence::Float

Returns The system's confidence score that this Knowledge answer is a good match for this conversational query, range from 0.0 (completely uncertain) to 1.0 (completely certain).

Returns:

  • (::Float)

    The system's confidence score that this Knowledge answer is a good match for this conversational query, range from 0.0 (completely uncertain) to 1.0 (completely certain).



830
831
832
833
834
835
836
837
838
839
840
841
842
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 830

class FaqAnswer
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class MetadataEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#metadata::Google::Protobuf::Map{::String => ::String}

Returns A map that contains metadata about the answer and the document from which it originates.

Returns:

  • (::Google::Protobuf::Map{::String => ::String})

    A map that contains metadata about the answer and the document from which it originates.



830
831
832
833
834
835
836
837
838
839
840
841
842
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 830

class FaqAnswer
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class MetadataEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#question::String

Returns The corresponding FAQ question.

Returns:

  • (::String)

    The corresponding FAQ question.



830
831
832
833
834
835
836
837
838
839
840
841
842
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 830

class FaqAnswer
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class MetadataEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#source::String

Returns Indicates which Knowledge Document this answer was extracted from. Format: projects/<Project ID>/locations/<Location ID>/agent/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>.

Returns:

  • (::String)

    Indicates which Knowledge Document this answer was extracted from. Format: projects/<Project ID>/locations/<Location ID>/agent/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>.



830
831
832
833
834
835
836
837
838
839
840
841
842
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 830

class FaqAnswer
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class MetadataEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end