feat: add Natural Language Query Understanding fields and messages to… · googleapis/googleapis@56bc1b4

Original file line numberDiff line numberDiff line change

@@ -1,4 +1,4 @@

1-

// Copyright 2025 Google LLC

1+

// Copyright 2026 Google LLC

22

//

33

// Licensed under the Apache License, Version 2.0 (the "License");

44

// you may not use this file except in compliance with the License.

@@ -132,6 +132,11 @@ message DataStore {

132132

AdvancedSiteSearchConfig advanced_site_search_config = 12

133133

[(google.api.field_behavior) = OPTIONAL];

134134
135+

// Optional. Configuration for Natural Language Query Understanding.

136+

NaturalLanguageQueryUnderstandingConfig

137+

natural_language_query_understanding_config = 34

138+

[(google.api.field_behavior) = OPTIONAL];

139+
135140

// Input only. The KMS key to be used to protect this DataStore at creation

136141

// time.

137142

//

@@ -223,6 +228,30 @@ message AdvancedSiteSearchConfig {

223228

optional bool disable_automatic_refresh = 4;

224229

}

225230
231+

// Configuration for Natural Language Query Understanding.

232+

message NaturalLanguageQueryUnderstandingConfig {

233+

// Mode of Natural Language Query Understanding. When the

234+

// NaturalLanguageQueryUnderstandingConfig.Mode is ENABLED, the natural

235+

// language understanding capabilities will be enabled for a search request if

236+

// the NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition in the

237+

// SearchRequest is ENABLED.

238+

enum Mode {

239+

// Default value.

240+

MODE_UNSPECIFIED = 0;

241+
242+

// Natural Language Query Understanding is disabled.

243+

DISABLED = 1;

244+
245+

// Natural Language Query Understanding is enabled.

246+

ENABLED = 2;

247+

}

248+
249+

// Mode of Natural Language Query Understanding. If this field is unset, the

250+

// behavior defaults to

251+

// [NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED][google.cloud.discoveryengine.v1.NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED].

252+

Mode mode = 1;

253+

}

254+
226255

// Config to store data store type configuration for workspace data

227256

message WorkspaceConfig {

228257

// Specifies the type of Workspace App supported by this DataStore