Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequest
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequest
- 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
Request message for ConversationalSearchService.AnswerQuery method.
Instance Attribute Summary collapse
-
#answer_generation_spec ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec
Answer generation specification.
-
#asynchronous_mode ⇒ Boolean
(also: #asynchronous_mode?)
Asynchronous mode control.
-
#query ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaQuery
Defines a user inputed query.
-
#query_understanding_spec ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec
Query understanding specification.
-
#related_questions_spec ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestRelatedQuestionsSpec
Related questions specification.
-
#safety_spec ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec
Safety specification.
-
#search_spec ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpec
Search specification.
-
#session ⇒ String
The session resource name.
-
#user_pseudo_id ⇒ String
A unique identifier for tracking visitors.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAnswerQueryRequest
constructor
A new instance of GoogleCloudDiscoveryengineV1betaAnswerQueryRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAnswerQueryRequest
Returns a new instance of GoogleCloudDiscoveryengineV1betaAnswerQueryRequest.
4812 4813 4814 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4812 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer_generation_spec ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec
Answer generation specification.
Corresponds to the JSON property answerGenerationSpec
4756 4757 4758 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4756 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
4765 4766 4767 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4765 def asynchronous_mode @asynchronous_mode end |
#query ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaQuery
Defines a user inputed query.
Corresponds to the JSON property query
4771 4772 4773 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4771 def query @query end |
#query_understanding_spec ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec
Query understanding specification.
Corresponds to the JSON property queryUnderstandingSpec
4776 4777 4778 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4776 def query_understanding_spec @query_understanding_spec end |
#related_questions_spec ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestRelatedQuestionsSpec
Related questions specification.
Corresponds to the JSON property relatedQuestionsSpec
4781 4782 4783 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4781 def @related_questions_spec end |
#safety_spec ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec
Safety specification.
Corresponds to the JSON property safetySpec
4786 4787 4788 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4786 def safety_spec @safety_spec end |
#search_spec ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpec
Search specification.
Corresponds to the JSON property searchSpec
4791 4792 4793 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4791 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
4799 4800 4801 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4799 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
4810 4811 4812 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4810 def user_pseudo_id @user_pseudo_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 4817 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 |