Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswer
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswer
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
Defines an answer.
Instance Attribute Summary collapse
-
#answer_skipped_reasons ⇒ Array<String>
Additional answer-skipped reasons.
-
#answer_text ⇒ String
The textual answer.
-
#citations ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerCitation>
Citations.
-
#complete_time ⇒ String
Output only.
-
#create_time ⇒ String
Output only.
-
#name ⇒ String
Immutable.
-
#query_understanding_info ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo
Query understanding information.
-
#references ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerReference>
References.
-
#related_questions ⇒ Array<String>
Suggested related questions.
-
#state ⇒ String
The state of the answer generation.
-
#steps ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerStep>
Answer generation steps.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswer
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaAnswer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswer
Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswer.
2298 2299 2300 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2298 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer_skipped_reasons ⇒ Array<String>
Additional answer-skipped reasons. This provides the reason for ignored cases.
If nothing is skipped, this field is not set.
Corresponds to the JSON property answerSkippedReasons
2245 2246 2247 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2245 def answer_skipped_reasons @answer_skipped_reasons end |
#answer_text ⇒ String
The textual answer.
Corresponds to the JSON property answerText
2250 2251 2252 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2250 def answer_text @answer_text end |
#citations ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerCitation>
Citations.
Corresponds to the JSON property citations
2255 2256 2257 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2255 def citations @citations end |
#complete_time ⇒ String
Output only. Answer completed timestamp.
Corresponds to the JSON property completeTime
2260 2261 2262 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2260 def complete_time @complete_time end |
#create_time ⇒ String
Output only. Answer creation timestamp.
Corresponds to the JSON property createTime
2265 2266 2267 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2265 def create_time @create_time end |
#name ⇒ String
Immutable. Fully qualified name projects/project/locations/global/
collections/collection/engines/engine/sessions/*/answers/*
Corresponds to the JSON property name
2271 2272 2273 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2271 def name @name end |
#query_understanding_info ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo
Query understanding information.
Corresponds to the JSON property queryUnderstandingInfo
2276 2277 2278 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2276 def query_understanding_info @query_understanding_info end |
#references ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerReference>
References.
Corresponds to the JSON property references
2281 2282 2283 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2281 def references @references end |
#related_questions ⇒ Array<String>
Suggested related questions.
Corresponds to the JSON property relatedQuestions
2286 2287 2288 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2286 def @related_questions end |
#state ⇒ String
The state of the answer generation.
Corresponds to the JSON property state
2291 2292 2293 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2291 def state @state end |
#steps ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerStep>
Answer generation steps.
Corresponds to the JSON property steps
2296 2297 2298 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2296 def steps @steps end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 2303 def update!(**args) @answer_skipped_reasons = args[:answer_skipped_reasons] if args.key?(:answer_skipped_reasons) @answer_text = args[:answer_text] if args.key?(:answer_text) @citations = args[:citations] if args.key?(:citations) @complete_time = args[:complete_time] if args.key?(:complete_time) @create_time = args[:create_time] if args.key?(:create_time) @name = args[:name] if args.key?(:name) @query_understanding_info = args[:query_understanding_info] if args.key?(:query_understanding_info) @references = args[:references] if args.key?(:references) @related_questions = args[:related_questions] if args.key?(:related_questions) @state = args[:state] if args.key?(:state) @steps = args[:steps] if args.key?(:steps) end |