Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb
Overview
Request message for ConversationalSearchService.AnswerQuery method.
Instance Attribute Summary collapse
-
#answer_generation_spec ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpec
Answer generation specification.
-
#asynchronous_mode ⇒ Boolean
(also: #asynchronous_mode?)
Asynchronous mode control.
-
#query ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaQuery
Defines a user inputed query.
-
#query_understanding_spec ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpec
Query understanding specification.
-
#related_questions_spec ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestRelatedQuestionsSpec
Related questions specification.
-
#safety_spec ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec
Safety specification.
-
#search_spec ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpec
Search specification.
-
#session ⇒ String
The session resource name.
-
#user_pseudo_id ⇒ String
A unique identifier for tracking visitors.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest
Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest.
2240 2241 2242 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2240 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer_generation_spec ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpec
Answer generation specification.
Corresponds to the JSON property answerGenerationSpec
2184 2185 2186 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2184 def answer_generation_spec @answer_generation_spec end |
#asynchronous_mode ⇒ Boolean Also known as: asynchronous_mode?
Asynchronous mode control. If enabled, the response will be returned with
answer/session resource name without final answer. The API users need to do
the polling to get the latest status of answer/session by calling
ConversationalSearchService.GetAnswer or ConversationalSearchService.
GetSession method.
Corresponds to the JSON property asynchronousMode
2193 2194 2195 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2193 def asynchronous_mode @asynchronous_mode end |
#query ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaQuery
Defines a user inputed query.
Corresponds to the JSON property query
2199 2200 2201 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2199 def query @query end |
#query_understanding_spec ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpec
Query understanding specification.
Corresponds to the JSON property queryUnderstandingSpec
2204 2205 2206 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2204 def query_understanding_spec @query_understanding_spec end |
#related_questions_spec ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestRelatedQuestionsSpec
Related questions specification.
Corresponds to the JSON property relatedQuestionsSpec
2209 2210 2211 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2209 def @related_questions_spec end |
#safety_spec ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec
Safety specification.
Corresponds to the JSON property safetySpec
2214 2215 2216 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2214 def safety_spec @safety_spec end |
#search_spec ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpec
Search specification.
Corresponds to the JSON property searchSpec
2219 2220 2221 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2219 def search_spec @search_spec end |
#session ⇒ String
The session resource name. Not required. When session field is not set, the
API is in sessionless mode. We support auto session mode: users can use the
wildcard symbol - as session ID. A new ID will be automatically generated
and assigned.
Corresponds to the JSON property session
2227 2228 2229 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2227 def session @session end |
#user_pseudo_id ⇒ String
A unique identifier for tracking visitors. For example, this could be
implemented with an HTTP cookie, which should be able to uniquely identify a
visitor on a single device. This unique identifier should not change if the
visitor logs in or out of the website. This field should NOT have a fixed
value such as unknown_visitor. The field must be a UTF-8 encoded string with
a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is
returned.
Corresponds to the JSON property userPseudoId
2238 2239 2240 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2238 def user_pseudo_id @user_pseudo_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2245 def update!(**args) @answer_generation_spec = args[:answer_generation_spec] if args.key?(:answer_generation_spec) @asynchronous_mode = args[:asynchronous_mode] if args.key?(:asynchronous_mode) @query = args[:query] if args.key?(:query) @query_understanding_spec = args[:query_understanding_spec] if args.key?(:query_understanding_spec) @related_questions_spec = args[:related_questions_spec] if args.key?(:related_questions_spec) @safety_spec = args[:safety_spec] if args.key?(:safety_spec) @search_spec = args[:search_spec] if args.key?(:search_spec) @session = args[:session] if args.key?(:session) @user_pseudo_id = args[:user_pseudo_id] if args.key?(:user_pseudo_id) end |