Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest.
Request message for ConversationalSearchService.AnswerQuery method.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#answer_generation_spec
def answer_generation_spec() -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::AnswerGenerationSpec
- (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::AnswerGenerationSpec) — Answer generation specification.
#answer_generation_spec=
def answer_generation_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::AnswerGenerationSpec
- value (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::AnswerGenerationSpec) — Answer generation specification.
- (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::AnswerGenerationSpec) — Answer generation specification.
#asynchronous_mode
def asynchronous_mode() -> ::Boolean
-
(::Boolean) — 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.
#asynchronous_mode=
def asynchronous_mode=(value) -> ::Boolean
-
value (::Boolean) — 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.
-
(::Boolean) — 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.
#query
def query() -> ::Google::Cloud::DiscoveryEngine::V1beta::Query
- (::Google::Cloud::DiscoveryEngine::V1beta::Query) — Required. Current user query.
#query=
def query=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::Query
- value (::Google::Cloud::DiscoveryEngine::V1beta::Query) — Required. Current user query.
- (::Google::Cloud::DiscoveryEngine::V1beta::Query) — Required. Current user query.
#query_understanding_spec
def query_understanding_spec() -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec
- (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec) — Query understanding specification.
#query_understanding_spec=
def query_understanding_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec
- value (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec) — Query understanding specification.
- (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec) — Query understanding specification.
#related_questions_spec
def related_questions_spec() -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::RelatedQuestionsSpec
- (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::RelatedQuestionsSpec) — Related questions specification.
#related_questions_spec=
def related_questions_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::RelatedQuestionsSpec
- value (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::RelatedQuestionsSpec) — Related questions specification.
- (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::RelatedQuestionsSpec) — Related questions specification.
#safety_spec
def safety_spec() -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SafetySpec
- (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SafetySpec) — Model specification.
#safety_spec=
def safety_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SafetySpec
- value (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SafetySpec) — Model specification.
- (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SafetySpec) — Model specification.
#search_spec
def search_spec() -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec
- (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec) — Search specification.
#search_spec=
def search_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec
- value (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec) — Search specification.
- (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec) — Search specification.
#serving_config
def serving_config() -> ::String
-
(::String) — Required. The resource name of the Search serving config, such as
projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config
, orprojects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config
. This field is used to identify the serving configuration name, set of models used to make the search.
#serving_config=
def serving_config=(value) -> ::String
-
value (::String) — Required. The resource name of the Search serving config, such as
projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config
, orprojects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config
. This field is used to identify the serving configuration name, set of models used to make the search.
-
(::String) — Required. The resource name of the Search serving config, such as
projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config
, orprojects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config
. This field is used to identify the serving configuration name, set of models used to make the search.
#session
def session() -> ::String
-
(::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.
#session=
def session=(value) -> ::String
-
value (::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.
-
(::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.
#user_pseudo_id
def user_pseudo_id() -> ::String
-
(::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.
#user_pseudo_id=
def user_pseudo_id=(value) -> ::String
-
value (::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.
-
(::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.