Skip to content

Commit fcf2d10

Browse files
feat: add Natural Language Query Understanding fields and messages to DiscoveryEngine request, response, and datastore messages (#32444)
* feat: add Natural Language Query Understanding fields and messages to DiscoveryEngine request, response, and datastore messages feat: add CrowdingSpec to SearchRequest to set crowding settings feat: add output-only field SemanticState to SearchResponse. docs: update documentation for search and data store NLQ features docs: other misc documentation updates Clients can specify Natural Language Query Understanding-related fields, as well as CrowdingSpec. These features are available in the V1 APIs. PiperOrigin-RevId: 868345232 Source-Link: googleapis/googleapis@56bc1b4 Source-Link: googleapis/googleapis-gen@cee5877 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWRpc2NvdmVyeV9lbmdpbmUtdjEvLk93bEJvdC55YW1sIiwiaCI6ImNlZTU4NzcxYzk0ZTIzNzg0MTZhOWZmOTU0MzQ2MGUxZDIzMjdjMmQifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 1667225 commit fcf2d10

File tree

8 files changed

+1007
-432
lines changed

8 files changed

+1007
-432
lines changed

google-cloud-discovery_engine-v1/lib/google/cloud/discovery_engine/v1/search_service/client.rb

Lines changed: 222 additions & 142 deletions
Large diffs are not rendered by default.

google-cloud-discovery_engine-v1/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb

Lines changed: 222 additions & 142 deletions
Large diffs are not rendered by default.

google-cloud-discovery_engine-v1/lib/google/cloud/discoveryengine/v1/data_store_pb.rb

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google-cloud-discovery_engine-v1/lib/google/cloud/discoveryengine/v1/search_service_pb.rb

Lines changed: 17 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google-cloud-discovery_engine-v1/proto_docs/google/cloud/discoveryengine/v1/data_store.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ module V1
6464
# @!attribute [rw] advanced_site_search_config
6565
# @return [::Google::Cloud::DiscoveryEngine::V1::AdvancedSiteSearchConfig]
6666
# Optional. Configuration for advanced site search.
67+
# @!attribute [rw] natural_language_query_understanding_config
68+
# @return [::Google::Cloud::DiscoveryEngine::V1::NaturalLanguageQueryUnderstandingConfig]
69+
# Optional. Configuration for Natural Language Query Understanding.
6770
# @!attribute [rw] kms_key_name
6871
# @return [::String]
6972
# Input only. The KMS key to be used to protect this DataStore at creation
@@ -201,6 +204,33 @@ class AdvancedSiteSearchConfig
201204
extend ::Google::Protobuf::MessageExts::ClassMethods
202205
end
203206

207+
# Configuration for Natural Language Query Understanding.
208+
# @!attribute [rw] mode
209+
# @return [::Google::Cloud::DiscoveryEngine::V1::NaturalLanguageQueryUnderstandingConfig::Mode]
210+
# Mode of Natural Language Query Understanding. If this field is unset, the
211+
# behavior defaults to
212+
# {::Google::Cloud::DiscoveryEngine::V1::NaturalLanguageQueryUnderstandingConfig::Mode::DISABLED NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED}.
213+
class NaturalLanguageQueryUnderstandingConfig
214+
include ::Google::Protobuf::MessageExts
215+
extend ::Google::Protobuf::MessageExts::ClassMethods
216+
217+
# Mode of Natural Language Query Understanding. When the
218+
# NaturalLanguageQueryUnderstandingConfig.Mode is ENABLED, the natural
219+
# language understanding capabilities will be enabled for a search request if
220+
# the NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition in the
221+
# SearchRequest is ENABLED.
222+
module Mode
223+
# Default value.
224+
MODE_UNSPECIFIED = 0
225+
226+
# Natural Language Query Understanding is disabled.
227+
DISABLED = 1
228+
229+
# Natural Language Query Understanding is enabled.
230+
ENABLED = 2
231+
end
232+
end
233+
204234
# Config to store data store type configuration for workspace data
205235
# @!attribute [rw] type
206236
# @return [::Google::Cloud::DiscoveryEngine::V1::WorkspaceConfig::Type]

0 commit comments

Comments
 (0)