Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleAnswer

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 article answer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ArticleAnswer

Returns a new instance of GoogleCloudDialogflowV2ArticleAnswer.



5959
5960
5961
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5959

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)


5929
5930
5931
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5929

def answer_record
  @answer_record
end

#confidenceFloat

Article match confidence. The system's confidence score that this article 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)


5936
5937
5938
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5936

def confidence
  @confidence
end

#metadataHash<String,String>

A map that contains metadata about the answer and the document from which it originates. Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)


5942
5943
5944
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5942

def 
  @metadata
end

#snippetsArray<String>

Article snippets. Corresponds to the JSON property snippets

Returns:

  • (Array<String>)


5947
5948
5949
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5947

def snippets
  @snippets
end

#titleString

The article title. Corresponds to the JSON property title

Returns:

  • (String)


5952
5953
5954
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5952

def title
  @title
end

#uriString

The article URI. Corresponds to the JSON property uri

Returns:

  • (String)


5957
5958
5959
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5957

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5964
5965
5966
5967
5968
5969
5970
5971
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 5964

def update!(**args)
  @answer_record = args[:answer_record] if args.key?(:answer_record)
  @confidence = args[:confidence] if args.key?(:confidence)
  @metadata = args[:metadata] if args.key?(:metadata)
  @snippets = args[:snippets] if args.key?(:snippets)
  @title = args[:title] if args.key?(:title)
  @uri = args[:uri] if args.key?(:uri)
end