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) — Deprecated: This field is deprecated. Streaming Answer API will be
supported.
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) — Deprecated: This field is deprecated. Streaming Answer API will be
supported.
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) — Deprecated: This field is deprecated. Streaming Answer API will be
supported.
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.
#grounding_spec
def grounding_spec() -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::GroundingSpec
- (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::GroundingSpec) — Optional. Grounding specification.
#grounding_spec=
def grounding_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::GroundingSpec
- value (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::GroundingSpec) — Optional. Grounding specification.
- (::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::GroundingSpec) — Optional. Grounding specification.
#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_labels
def user_labels() -> ::Google::Protobuf::Map{::String => ::String}
-
(::Google::Protobuf::Map{::String => ::String}) — The user labels applied to a resource must meet the following requirements:
- Each resource can have multiple labels, up to a maximum of 64.
- Each label must be a key-value pair.
- Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters.
- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed.
- The key portion of a label must be unique. However, you can use the same key with multiple resources.
- Keys must start with a lowercase letter or international character.
See Google Cloud Document for more details.
#user_labels=
def user_labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
-
value (::Google::Protobuf::Map{::String => ::String}) — The user labels applied to a resource must meet the following requirements:
- Each resource can have multiple labels, up to a maximum of 64.
- Each label must be a key-value pair.
- Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters.
- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed.
- The key portion of a label must be unique. However, you can use the same key with multiple resources.
- Keys must start with a lowercase letter or international character.
See Google Cloud Document for more details.
-
(::Google::Protobuf::Map{::String => ::String}) — The user labels applied to a resource must meet the following requirements:
- Each resource can have multiple labels, up to a maximum of 64.
- Each label must be a key-value pair.
- Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters.
- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed.
- The key portion of a label must be unique. However, you can use the same key with multiple resources.
- Keys must start with a lowercase letter or international character.
See Google Cloud Document for more details.
#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.