Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest (v0.11.0)

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

#answer_generation_spec=

def answer_generation_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::AnswerGenerationSpec
Parameter

#asynchronous_mode

def asynchronous_mode() -> ::Boolean
Returns

#asynchronous_mode=

def asynchronous_mode=(value) -> ::Boolean
Parameter
Returns

#query

def query() -> ::Google::Cloud::DiscoveryEngine::V1beta::Query
Returns

#query=

def query=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::Query
Parameter
Returns

#query_understanding_spec

def query_understanding_spec() -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec

#query_understanding_spec=

def query_understanding_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec
Parameter
def related_questions_spec() -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::RelatedQuestionsSpec
def related_questions_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::RelatedQuestionsSpec
Parameter

#safety_spec

def safety_spec() -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SafetySpec

#safety_spec=

def safety_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SafetySpec

#search_spec

def search_spec() -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec

#search_spec=

def search_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::SearchSpec

#serving_config

def serving_config() -> ::String
Returns
  • (::String) — Required. The resource name of the Search serving config, such as projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config, or projects/*/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
Parameter
  • value (::String) — Required. The resource name of the Search serving config, such as projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config, or projects/*/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.
Returns
  • (::String) — Required. The resource name of the Search serving config, such as projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config, or projects/*/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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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.