@googleapis/discoveryengine 32.1.0 → 36.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/v1.d.ts CHANGED
@@ -1748,6 +1748,10 @@ export declare namespace discoveryengine_v1 {
1748
1748
  * Required. Model name (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`). See `model_mixture` for the list of allowed models.
1749
1749
  */
1750
1750
  name?: string | null;
1751
+ /**
1752
+ * Optional. Sent as Vertex `ThinkingConfig.thinking_level`.
1753
+ */
1754
+ thinkingLevel?: string | null;
1751
1755
  /**
1752
1756
  * Optional. Relative weight for this model in the mixture. Must be a finite, strictly positive value. Weights across all entries are normalized server-side, so they need not sum to 1.0. Defaults to 1.0 when unset, which is convenient when configuring a single model or an even mixture. Some Pro-tier models are capped at most 50% of the total weight; requests violating that cap are rejected with INVALID_ARGUMENT.
1753
1757
  */
@@ -2498,6 +2502,12 @@ export declare namespace discoveryengine_v1 {
2498
2502
  * Referenced content and related document metadata.
2499
2503
  */
2500
2504
  export interface Schema$GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReference {
2505
+ /**
2506
+ * Output only. Generic structured chunk metadata from upstream data source connectors.
2507
+ */
2508
+ chunkMetadata?: {
2509
+ [key: string]: any;
2510
+ } | null;
2501
2511
  /**
2502
2512
  * Chunk of code snippet from the referenced document.
2503
2513
  */
@@ -4221,7 +4231,7 @@ export declare namespace discoveryengine_v1 {
4221
4231
  */
4222
4232
  displayName?: string | null;
4223
4233
  /**
4224
- * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications`
4234
+ * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications`
4225
4235
  */
4226
4236
  features?: {
4227
4237
  [key: string]: string;
@@ -4268,6 +4278,10 @@ export declare namespace discoveryengine_v1 {
4268
4278
  * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
4269
4279
  */
4270
4280
  searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig;
4281
+ /**
4282
+ * Optional. Non-empty default. Session config for the engine.
4283
+ */
4284
+ sessionConfig?: Schema$GoogleCloudDiscoveryengineV1alphaSessionConfig;
4271
4285
  /**
4272
4286
  * Additional config specs for a `similar-items` engine.
4273
4287
  */
@@ -6618,6 +6632,28 @@ export declare namespace discoveryengine_v1 {
6618
6632
  */
6619
6633
  userPseudoId?: string | null;
6620
6634
  }
6635
+ /**
6636
+ * Configuration for the session.
6637
+ */
6638
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSessionConfig {
6639
+ /**
6640
+ * Optional. Session management policy that defines who will manage the session.
6641
+ */
6642
+ sessionManagementPolicy?: string | null;
6643
+ /**
6644
+ * Optional. The TTL for the session. If unset, the default value is 60 days.
6645
+ */
6646
+ sessionTtl?: Schema$GoogleCloudDiscoveryengineV1alphaSessionConfigSessionTtl;
6647
+ }
6648
+ /**
6649
+ * Defines the TTL for sessions.
6650
+ */
6651
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSessionConfigSessionTtl {
6652
+ /**
6653
+ * Defines the number of days for session TTL.
6654
+ */
6655
+ days?: number | null;
6656
+ }
6621
6657
  /**
6622
6658
  * Represents a turn, including a query from the user and a answer from service.
6623
6659
  */
@@ -8123,6 +8159,10 @@ export declare namespace discoveryengine_v1 {
8123
8159
  * Optional. List of banned phrases.
8124
8160
  */
8125
8161
  bannedPhrases?: Schema$GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase[];
8162
+ /**
8163
+ * Optional. Data protection policy to be used for sanitizing file uploads.
8164
+ */
8165
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
8126
8166
  /**
8127
8167
  * Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses.
8128
8168
  */
@@ -8230,6 +8270,12 @@ export declare namespace discoveryengine_v1 {
8230
8270
  * Referenced content and related document metadata.
8231
8271
  */
8232
8272
  export interface Schema$GoogleCloudDiscoveryengineV1AssistantGroundedContentTextGroundingMetadataReference {
8273
+ /**
8274
+ * Output only. Generic structured chunk metadata from upstream data source connectors.
8275
+ */
8276
+ chunkMetadata?: {
8277
+ [key: string]: any;
8278
+ } | null;
8233
8279
  /**
8234
8280
  * Chunk of code snippet from the referenced document.
8235
8281
  */
@@ -8928,6 +8974,24 @@ export declare namespace discoveryengine_v1 {
8928
8974
  */
8929
8975
  updateTime?: string | null;
8930
8976
  }
8977
+ /**
8978
+ * Contains the data protection policy config for a DataStore or a connector.
8979
+ */
8980
+ export interface Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicy {
8981
+ /**
8982
+ * Optional. Specifies the sensitive data protection policy for the connector source.
8983
+ */
8984
+ sensitiveDataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicySensitiveDataProtectionPolicy;
8985
+ }
8986
+ /**
8987
+ * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview) policy.
8988
+ */
8989
+ export interface Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicySensitiveDataProtectionPolicy {
8990
+ /**
8991
+ * Optional. Specifies the resource name of the Sensitive Data Protection content policy.
8992
+ */
8993
+ policy?: string | null;
8994
+ }
8931
8995
  /**
8932
8996
  * DataStore captures global settings and configs at the DataStore level.
8933
8997
  */
@@ -8964,6 +9028,10 @@ export declare namespace discoveryengine_v1 {
8964
9028
  * Output only. Timestamp the DataStore was created at.
8965
9029
  */
8966
9030
  createTime?: string | null;
9031
+ /**
9032
+ * Optional. Specifies the data protection policy for the data store.
9033
+ */
9034
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicy;
8967
9035
  /**
8968
9036
  * Output only. The id of the default Schema associated to this data store.
8969
9037
  */
@@ -9472,7 +9540,7 @@ export declare namespace discoveryengine_v1 {
9472
9540
  */
9473
9541
  displayName?: string | null;
9474
9542
  /**
9475
- * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications`
9543
+ * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications`
9476
9544
  */
9477
9545
  features?: {
9478
9546
  [key: string]: string;
@@ -9515,6 +9583,10 @@ export declare namespace discoveryengine_v1 {
9515
9583
  * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
9516
9584
  */
9517
9585
  searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig;
9586
+ /**
9587
+ * Optional. Non-empty default. Session config for the engine.
9588
+ */
9589
+ sessionConfig?: Schema$GoogleCloudDiscoveryengineV1betaSessionConfig;
9518
9590
  /**
9519
9591
  * Required. The solutions of the engine.
9520
9592
  */
@@ -11218,6 +11290,28 @@ export declare namespace discoveryengine_v1 {
11218
11290
  */
11219
11291
  mode?: string | null;
11220
11292
  }
11293
+ /**
11294
+ * Configuration for the session.
11295
+ */
11296
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSessionConfig {
11297
+ /**
11298
+ * Optional. Session management policy that defines who will manage the session.
11299
+ */
11300
+ sessionManagementPolicy?: string | null;
11301
+ /**
11302
+ * Optional. The TTL for the session. If unset, the default value is 60 days.
11303
+ */
11304
+ sessionTtl?: Schema$GoogleCloudDiscoveryengineV1betaSessionConfigSessionTtl;
11305
+ }
11306
+ /**
11307
+ * Defines the TTL for sessions.
11308
+ */
11309
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSessionConfigSessionTtl {
11310
+ /**
11311
+ * Defines the number of days for session TTL.
11312
+ */
11313
+ days?: number | null;
11314
+ }
11221
11315
  /**
11222
11316
  * Metadata related to the progress of the CrawlRateManagementService.SetDedicatedCrawlRate operation. This will be returned by the google.longrunning.Operation.metadata field.
11223
11317
  */
@@ -12565,6 +12659,10 @@ export declare namespace discoveryengine_v1 {
12565
12659
  * Output only. Timestamp the DataConnector was created at.
12566
12660
  */
12567
12661
  createTime?: string | null;
12662
+ /**
12663
+ * Optional. Specifies the data protection policy for the connector.
12664
+ */
12665
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
12568
12666
  /**
12569
12667
  * Required. The identifier for the data source. For the full, up-to-date list of supported connectors and their values, see [Connect a third-party data source](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/connect-third-party-data-source#sources-by-launch-stage).
12570
12668
  */
@@ -12842,6 +12940,24 @@ export declare namespace discoveryengine_v1 {
12842
12940
  */
12843
12941
  startingSchema?: Schema$GoogleCloudDiscoveryengineV1Schema;
12844
12942
  }
12943
+ /**
12944
+ * Contains the data protection policy config for a DataStore or a connector.
12945
+ */
12946
+ export interface Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy {
12947
+ /**
12948
+ * Optional. Specifies the sensitive data protection policy for the connector source.
12949
+ */
12950
+ sensitiveDataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicySensitiveDataProtectionPolicy;
12951
+ }
12952
+ /**
12953
+ * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview) policy.
12954
+ */
12955
+ export interface Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicySensitiveDataProtectionPolicy {
12956
+ /**
12957
+ * Optional. Specifies the resource name of the Sensitive Data Protection content policy.
12958
+ */
12959
+ policy?: string | null;
12960
+ }
12845
12961
  /**
12846
12962
  * DataStore captures global settings and configs at the DataStore level.
12847
12963
  */
@@ -12878,6 +12994,10 @@ export declare namespace discoveryengine_v1 {
12878
12994
  * Output only. Timestamp the DataStore was created at.
12879
12995
  */
12880
12996
  createTime?: string | null;
12997
+ /**
12998
+ * Optional. Specifies the data protection policy for the data store.
12999
+ */
13000
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
12881
13001
  /**
12882
13002
  * Output only. The id of the default Schema associated to this data store.
12883
13003
  */
@@ -13635,7 +13755,7 @@ export declare namespace discoveryengine_v1 {
13635
13755
  */
13636
13756
  displayName?: string | null;
13637
13757
  /**
13638
- * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications`
13758
+ * Optional. Feature config for the engine to opt in or opt out of features. Supported keys: * `*`: all features, if it's present, all other feature state settings are ignored. * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications`
13639
13759
  */
13640
13760
  features?: {
13641
13761
  [key: string]: string;
@@ -13678,6 +13798,10 @@ export declare namespace discoveryengine_v1 {
13678
13798
  * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
13679
13799
  */
13680
13800
  searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1EngineSearchEngineConfig;
13801
+ /**
13802
+ * Optional. Non-empty default. Session config for the engine.
13803
+ */
13804
+ sessionConfig?: Schema$GoogleCloudDiscoveryengineV1SessionConfig;
13681
13805
  /**
13682
13806
  * Required. The solutions of the engine.
13683
13807
  */
@@ -15737,6 +15861,10 @@ export declare namespace discoveryengine_v1 {
15737
15861
  * Whether to turn on safe search. This is only supported for website search.
15738
15862
  */
15739
15863
  safeSearch?: boolean | null;
15864
+ /**
15865
+ * Optional. SearchAddonSpec is used to disable add-ons for search as per new repricing model. This field is only supported for search requests.
15866
+ */
15867
+ searchAddonSpec?: Schema$GoogleCloudDiscoveryengineV1SearchRequestSearchAddonSpec;
15740
15868
  /**
15741
15869
  * Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical.
15742
15870
  */
@@ -16163,6 +16291,23 @@ export declare namespace discoveryengine_v1 {
16163
16291
  */
16164
16292
  returnRelevanceScore?: boolean | null;
16165
16293
  }
16294
+ /**
16295
+ * SearchAddonSpec is used to disable add-ons for search as per new repricing model. By default if the SearchAddonSpec is not specified, we consider that the customer wants to enable them wherever applicable.
16296
+ */
16297
+ export interface Schema$GoogleCloudDiscoveryengineV1SearchRequestSearchAddonSpec {
16298
+ /**
16299
+ * Optional. If true, generative answer add-on is disabled. Generative answer add-on includes natural language to filters and simple answers.
16300
+ */
16301
+ disableGenerativeAnswerAddOn?: boolean | null;
16302
+ /**
16303
+ * Optional. If true, disables event re-ranking and personalization to optimize KPIs & personalize results.
16304
+ */
16305
+ disableKpiPersonalizationAddOn?: boolean | null;
16306
+ /**
16307
+ * Optional. If true, semantic add-on is disabled. Semantic add-on includes embeddings and jetstream.
16308
+ */
16309
+ disableSemanticAddOn?: boolean | null;
16310
+ }
16166
16311
  /**
16167
16312
  * Specification for search as you type in search requests.
16168
16313
  */
@@ -16837,6 +16982,28 @@ export declare namespace discoveryengine_v1 {
16837
16982
  */
16838
16983
  userPseudoId?: string | null;
16839
16984
  }
16985
+ /**
16986
+ * Configuration for the session.
16987
+ */
16988
+ export interface Schema$GoogleCloudDiscoveryengineV1SessionConfig {
16989
+ /**
16990
+ * Optional. Session management policy that defines who will manage the session.
16991
+ */
16992
+ sessionManagementPolicy?: string | null;
16993
+ /**
16994
+ * Optional. The TTL for the session. If unset, the default value is 60 days.
16995
+ */
16996
+ sessionTtl?: Schema$GoogleCloudDiscoveryengineV1SessionConfigSessionTtl;
16997
+ }
16998
+ /**
16999
+ * Defines the TTL for sessions.
17000
+ */
17001
+ export interface Schema$GoogleCloudDiscoveryengineV1SessionConfigSessionTtl {
17002
+ /**
17003
+ * Defines the number of days for session TTL.
17004
+ */
17005
+ days?: number | null;
17006
+ }
16840
17007
  /**
16841
17008
  * Represents a turn, including a query from the user and a answer from service.
16842
17009
  */
@@ -16967,6 +17134,10 @@ export declare namespace discoveryengine_v1 {
16967
17134
  * Request for the AssistantService.StreamAssist method.
16968
17135
  */
16969
17136
  export interface Schema$GoogleCloudDiscoveryengineV1StreamAssistRequest {
17137
+ /**
17138
+ * Optional. Specification of agents that are used to serve the request.
17139
+ */
17140
+ agentsSpec?: Schema$GoogleCloudDiscoveryengineV1StreamAssistRequestAgentsSpec;
16970
17141
  /**
16971
17142
  * Optional. Specification of the generation configuration for the request.
16972
17143
  */
@@ -16988,6 +17159,24 @@ export declare namespace discoveryengine_v1 {
16988
17159
  */
16989
17160
  userMetadata?: Schema$GoogleCloudDiscoveryengineV1AssistUserMetadata;
16990
17161
  }
17162
+ /**
17163
+ * Specification of agents that are used to serve the request.
17164
+ */
17165
+ export interface Schema$GoogleCloudDiscoveryengineV1StreamAssistRequestAgentsSpec {
17166
+ /**
17167
+ * Optional. Specification of agents that are used to serve the request.
17168
+ */
17169
+ agentSpecs?: Schema$GoogleCloudDiscoveryengineV1StreamAssistRequestAgentsSpecAgentSpec[];
17170
+ }
17171
+ /**
17172
+ * Specification of an agent.
17173
+ */
17174
+ export interface Schema$GoogleCloudDiscoveryengineV1StreamAssistRequestAgentsSpecAgentSpec {
17175
+ /**
17176
+ * Required. ID to identify the agent resource serving the request. This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) with a length limit of 63 characters.
17177
+ */
17178
+ agentId?: string | null;
17179
+ }
16991
17180
  /**
16992
17181
  * Assistant generation specification for the request. This allows to override the default generation configuration at the engine level.
16993
17182
  */
@@ -17824,7 +18013,7 @@ export declare namespace discoveryengine_v1 {
17824
18013
  */
17825
18014
  id?: string | null;
17826
18015
  /**
17827
- * Output only. Whether this is a first-party (Google-owned) connector, as opposed to a third-party connector. Used by the frontend to group 1P vs 3P connectors. Sourced from `ConnectorSource.is_first_party` once that field is universally populated (b/534727761); until then derived from `ConnectorSource.connector_type == FIRST_PARTY`.
18016
+ * Output only. Whether this is a first-party (Google-owned) connector, as opposed to a third-party connector. Used by the frontend to group 1P vs 3P connectors.
17828
18017
  */
17829
18018
  isFirstParty?: boolean | null;
17830
18019
  /**
@@ -17857,6 +18046,10 @@ export declare namespace discoveryengine_v1 {
17857
18046
  * Customer provided configurations.
17858
18047
  */
17859
18048
  export interface Schema$GoogleCloudDiscoveryengineV1WidgetConfigCustomerProvidedConfig {
18049
+ /**
18050
+ * Output only. The customer's Assured Workloads compliance level. `customer_type` collapses every compliance level into a single `GOVERNMENT_CUSTOMER` value, so a client that gates a feature on one specific level rather than on government status as a whole must read this field instead.
18051
+ */
18052
+ complianceLevel?: string | null;
17860
18053
  /**
17861
18054
  * Customer type.
17862
18055
  */
@@ -18062,7 +18255,7 @@ export declare namespace discoveryengine_v1 {
18062
18255
  */
18063
18256
  enableVisualContentSummary?: boolean | null;
18064
18257
  /**
18065
- * Output only. Feature config for the engine to opt in or opt out of features. Supported keys: * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `skills` * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications`
18258
+ * Output only. Feature config for the engine to opt in or opt out of features. Supported keys: * `agent-gallery` * `no-code-agent-builder` * `prompt-gallery` * `model-selector` * `notebook-lm` * `people-search` * `people-search-org-chart` * `bi-directional-audio` * `speech-to-text` * `feedback` * `session-sharing` * `personalization-memory` * `personalization-suggested-highlights` * `mobile-app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation` * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` * `disable-welcome-emails` * `disable-canvas` * `canvas-workspace` * `canvas-app-builder` * `skills` * `skill-sharing` * `skill-sharing-without-admin-approval` * `disable-projects` * `sobi` * `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-orchestration` * `cross-product-intelligence` * `workflow-agents` * `in-app-notifications`
18066
18259
  */
18067
18260
  features?: {
18068
18261
  [key: string]: string;
@@ -18097,6 +18290,10 @@ export declare namespace discoveryengine_v1 {
18097
18290
  * Controls whether result extract is display and how (snippet or extractive answer). Default to no result if unspecified.
18098
18291
  */
18099
18292
  resultDescriptionType?: string | null;
18293
+ /**
18294
+ * Optional. SearchAddonSpec is used to disable add-ons for search. This field is only supported for search requests.
18295
+ */
18296
+ searchAddonSpec?: Schema$GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsSearchAddonSpec;
18100
18297
  /**
18101
18298
  * Optional. Whether to show the admin-configured display name for data connectors in the widget sources UI (instead of the connector kind). Opt-in; defaults to false.
18102
18299
  */
@@ -18180,6 +18377,10 @@ export declare namespace discoveryengine_v1 {
18180
18377
  * Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, `graph_5`).
18181
18378
  */
18182
18379
  icon?: string | null;
18380
+ /**
18381
+ * Output only. Absolute URL of a brand mark to render instead of `icon`, for models whose vendor logo is not a GM3 glyph. `icon` stays populated as the fallback, so a client that does not render images, or that fails to fetch this one, shows the glyph instead of nothing.
18382
+ */
18383
+ iconUrl?: string | null;
18183
18384
  /**
18184
18385
  * Output only. Whether the model is currently in preview. Clients should surface this via a "Preview" badge in the selector UI.
18185
18386
  */
@@ -18192,6 +18393,10 @@ export declare namespace discoveryengine_v1 {
18192
18393
  * Output only. Unique identifier of the model (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`). This is the same identifier that clients pass back to the assistant service to select this model. Virtual / "pseudo" models (e.g. `gemini-fast`) are also valid values here; they are resolved to the underlying concrete model on the backend.
18193
18394
  */
18194
18395
  modelId?: string | null;
18396
+ /**
18397
+ * Output only. Whether this model should be promoted in the GE chat homepage banner.
18398
+ */
18399
+ promoted?: boolean | null;
18195
18400
  }
18196
18401
  /**
18197
18402
  * Admin-surface metadata. Populated only when the request originates from the Cloud Console admin "Feature Control" page; left unset for end-user surfaces (Web, Mobile). Lets the admin page render its toggle table directly from the backend instead of a hardcoded client-side registry.
@@ -18210,6 +18415,23 @@ export declare namespace discoveryengine_v1 {
18210
18415
  */
18211
18416
  regions?: string[] | null;
18212
18417
  }
18418
+ /**
18419
+ * SearchAddonSpec is used to disable add-ons for search. By default, if this field is not specified, add-ons are enabled wherever applicable.
18420
+ */
18421
+ export interface Schema$GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsSearchAddonSpec {
18422
+ /**
18423
+ * Optional. If true, generative answer add-on is disabled. Generative answer add-on includes natural language to filters and simple answers.
18424
+ */
18425
+ generativeAnswerAddOnDisabled?: boolean | null;
18426
+ /**
18427
+ * Optional. If true, disables event re-ranking and personalization to optimize KPIs & personalize results.
18428
+ */
18429
+ kpiPersonalizationAddOnDisabled?: boolean | null;
18430
+ /**
18431
+ * Optional. If true, semantic add-on is disabled. Semantic add-on includes embeddings and jetstream.
18432
+ */
18433
+ semanticAddOnDisabled?: boolean | null;
18434
+ }
18213
18435
  /**
18214
18436
  * Config to store data store type configuration for workspace data
18215
18437
  */
@@ -19189,6 +19411,7 @@ export declare namespace discoveryengine_v1 {
19189
19411
  * // "connectorType": "my_connectorType",
19190
19412
  * // "createEuaSaas": false,
19191
19413
  * // "createTime": "my_createTime",
19414
+ * // "dataProtectionPolicy": {},
19192
19415
  * // "dataSource": "my_dataSource",
19193
19416
  * // "destinationConfigs": [],
19194
19417
  * // "dynamicTools": [],
@@ -19946,6 +20169,7 @@ export declare namespace discoveryengine_v1 {
19946
20169
  * // "connectorType": "my_connectorType",
19947
20170
  * // "createEuaSaas": false,
19948
20171
  * // "createTime": "my_createTime",
20172
+ * // "dataProtectionPolicy": {},
19949
20173
  * // "dataSource": "my_dataSource",
19950
20174
  * // "destinationConfigs": [],
19951
20175
  * // "dynamicTools": [],
@@ -20001,6 +20225,154 @@ export declare namespace discoveryengine_v1 {
20001
20225
  getDataConnector(params: Params$Resource$Projects$Locations$Collections$Getdataconnector, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataConnector>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataConnector>): void;
20002
20226
  getDataConnector(params: Params$Resource$Projects$Locations$Collections$Getdataconnector, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataConnector>): void;
20003
20227
  getDataConnector(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataConnector>): void;
20228
+ /**
20229
+ * Gets the IAM access control policy for a Collection. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.
20230
+ * @example
20231
+ * ```js
20232
+ * // Before running the sample:
20233
+ * // - Enable the API at:
20234
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
20235
+ * // - Login into gcloud by running:
20236
+ * // ```sh
20237
+ * // $ gcloud auth application-default login
20238
+ * // ```
20239
+ * // - Install the npm module by running:
20240
+ * // ```sh
20241
+ * // $ npm install googleapis
20242
+ * // ```
20243
+ *
20244
+ * const {google} = require('googleapis');
20245
+ * const discoveryengine = google.discoveryengine('v1');
20246
+ *
20247
+ * async function main() {
20248
+ * const auth = new google.auth.GoogleAuth({
20249
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
20250
+ * scopes: [
20251
+ * 'https://www.googleapis.com/auth/cloud-platform',
20252
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
20253
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
20254
+ * ],
20255
+ * });
20256
+ *
20257
+ * // Acquire an auth client, and bind it to all future calls
20258
+ * const authClient = await auth.getClient();
20259
+ * google.options({auth: authClient});
20260
+ *
20261
+ * // Do the magic
20262
+ * const res = await discoveryengine.projects.locations.collections.getIamPolicy(
20263
+ * {
20264
+ * // Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
20265
+ * 'options.requestedPolicyVersion': 'placeholder-value',
20266
+ * // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
20267
+ * resource:
20268
+ * 'projects/my-project/locations/my-location/collections/my-collection',
20269
+ * },
20270
+ * );
20271
+ * console.log(res.data);
20272
+ *
20273
+ * // Example response
20274
+ * // {
20275
+ * // "bindings": [],
20276
+ * // "etag": "my_etag",
20277
+ * // "version": 0
20278
+ * // }
20279
+ * }
20280
+ *
20281
+ * main().catch(e => {
20282
+ * console.error(e);
20283
+ * throw e;
20284
+ * });
20285
+ *
20286
+ * ```
20287
+ *
20288
+ * @param params - Parameters for request
20289
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
20290
+ * @param callback - Optional callback that handles the response.
20291
+ * @returns A promise if used with async/await, or void if used with a callback.
20292
+ */
20293
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Getiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
20294
+ getIamPolicy(params?: Params$Resource$Projects$Locations$Collections$Getiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
20295
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
20296
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
20297
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Getiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
20298
+ getIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
20299
+ /**
20300
+ * Sets the IAM access control policy for a Collection. A `NOT_FOUND` error is returned if the resource does not exist. **Important:** When setting a policy directly on a Collection resource, the only recommended roles in the bindings are: `roles/discoveryengine.admin` `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a warning in logging.
20301
+ * @example
20302
+ * ```js
20303
+ * // Before running the sample:
20304
+ * // - Enable the API at:
20305
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
20306
+ * // - Login into gcloud by running:
20307
+ * // ```sh
20308
+ * // $ gcloud auth application-default login
20309
+ * // ```
20310
+ * // - Install the npm module by running:
20311
+ * // ```sh
20312
+ * // $ npm install googleapis
20313
+ * // ```
20314
+ *
20315
+ * const {google} = require('googleapis');
20316
+ * const discoveryengine = google.discoveryengine('v1');
20317
+ *
20318
+ * async function main() {
20319
+ * const auth = new google.auth.GoogleAuth({
20320
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
20321
+ * scopes: [
20322
+ * 'https://www.googleapis.com/auth/cloud-platform',
20323
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
20324
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
20325
+ * ],
20326
+ * });
20327
+ *
20328
+ * // Acquire an auth client, and bind it to all future calls
20329
+ * const authClient = await auth.getClient();
20330
+ * google.options({auth: authClient});
20331
+ *
20332
+ * // Do the magic
20333
+ * const res = await discoveryengine.projects.locations.collections.setIamPolicy(
20334
+ * {
20335
+ * // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
20336
+ * resource:
20337
+ * 'projects/my-project/locations/my-location/collections/my-collection',
20338
+ *
20339
+ * // Request body metadata
20340
+ * requestBody: {
20341
+ * // request body parameters
20342
+ * // {
20343
+ * // "policy": {}
20344
+ * // }
20345
+ * },
20346
+ * },
20347
+ * );
20348
+ * console.log(res.data);
20349
+ *
20350
+ * // Example response
20351
+ * // {
20352
+ * // "bindings": [],
20353
+ * // "etag": "my_etag",
20354
+ * // "version": 0
20355
+ * // }
20356
+ * }
20357
+ *
20358
+ * main().catch(e => {
20359
+ * console.error(e);
20360
+ * throw e;
20361
+ * });
20362
+ *
20363
+ * ```
20364
+ *
20365
+ * @param params - Parameters for request
20366
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
20367
+ * @param callback - Optional callback that handles the response.
20368
+ * @returns A promise if used with async/await, or void if used with a callback.
20369
+ */
20370
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Setiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
20371
+ setIamPolicy(params?: Params$Resource$Projects$Locations$Collections$Setiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
20372
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
20373
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
20374
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Setiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
20375
+ setIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
20004
20376
  /**
20005
20377
  * Updates a DataConnector.
20006
20378
  * @example
@@ -20060,6 +20432,7 @@ export declare namespace discoveryengine_v1 {
20060
20432
  * // "connectorType": "my_connectorType",
20061
20433
  * // "createEuaSaas": false,
20062
20434
  * // "createTime": "my_createTime",
20435
+ * // "dataProtectionPolicy": {},
20063
20436
  * // "dataSource": "my_dataSource",
20064
20437
  * // "destinationConfigs": [],
20065
20438
  * // "dynamicTools": [],
@@ -20114,6 +20487,7 @@ export declare namespace discoveryengine_v1 {
20114
20487
  * // "connectorType": "my_connectorType",
20115
20488
  * // "createEuaSaas": false,
20116
20489
  * // "createTime": "my_createTime",
20490
+ * // "dataProtectionPolicy": {},
20117
20491
  * // "dataSource": "my_dataSource",
20118
20492
  * // "destinationConfigs": [],
20119
20493
  * // "dynamicTools": [],
@@ -20182,6 +20556,26 @@ export declare namespace discoveryengine_v1 {
20182
20556
  */
20183
20557
  name?: string;
20184
20558
  }
20559
+ export interface Params$Resource$Projects$Locations$Collections$Getiampolicy extends StandardParameters {
20560
+ /**
20561
+ * Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
20562
+ */
20563
+ 'options.requestedPolicyVersion'?: number;
20564
+ /**
20565
+ * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
20566
+ */
20567
+ resource?: string;
20568
+ }
20569
+ export interface Params$Resource$Projects$Locations$Collections$Setiampolicy extends StandardParameters {
20570
+ /**
20571
+ * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
20572
+ */
20573
+ resource?: string;
20574
+ /**
20575
+ * Request body metadata
20576
+ */
20577
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
20578
+ }
20185
20579
  export interface Params$Resource$Projects$Locations$Collections$Updatedataconnector extends StandardParameters {
20186
20580
  /**
20187
20581
  * Identifier. The full resource name of the Data Connector. Format: `projects/x/locations/x/collections/x/dataConnector`.
@@ -20643,6 +21037,7 @@ export declare namespace discoveryengine_v1 {
20643
21037
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
20644
21038
  * // "contentConfig": "my_contentConfig",
20645
21039
  * // "createTime": "my_createTime",
21040
+ * // "dataProtectionPolicy": {},
20646
21041
  * // "defaultSchemaId": "my_defaultSchemaId",
20647
21042
  * // "displayName": "my_displayName",
20648
21043
  * // "documentProcessingConfig": {},
@@ -20795,37 +21190,110 @@ export declare namespace discoveryengine_v1 {
20795
21190
  *
20796
21191
  * // Do the magic
20797
21192
  * const res =
20798
- * await discoveryengine.projects.locations.collections.dataStores.get({
20799
- * // Required. Full resource name of DataStore, such as `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}`. If the caller does not have permission to access the DataStore, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested DataStore does not exist, a NOT_FOUND error is returned.
20800
- * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
20801
- * });
21193
+ * await discoveryengine.projects.locations.collections.dataStores.get({
21194
+ * // Required. Full resource name of DataStore, such as `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}`. If the caller does not have permission to access the DataStore, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested DataStore does not exist, a NOT_FOUND error is returned.
21195
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
21196
+ * });
21197
+ * console.log(res.data);
21198
+ *
21199
+ * // Example response
21200
+ * // {
21201
+ * // "aclEnabled": false,
21202
+ * // "advancedSiteSearchConfig": {},
21203
+ * // "billingEstimation": {},
21204
+ * // "cmekConfig": {},
21205
+ * // "configurableBillingApproach": "my_configurableBillingApproach",
21206
+ * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
21207
+ * // "contentConfig": "my_contentConfig",
21208
+ * // "createTime": "my_createTime",
21209
+ * // "dataProtectionPolicy": {},
21210
+ * // "defaultSchemaId": "my_defaultSchemaId",
21211
+ * // "displayName": "my_displayName",
21212
+ * // "documentProcessingConfig": {},
21213
+ * // "federatedSearchConfig": {},
21214
+ * // "healthcareFhirConfig": {},
21215
+ * // "identityMappingStore": "my_identityMappingStore",
21216
+ * // "industryVertical": "my_industryVertical",
21217
+ * // "isInfobotFaqDataStore": false,
21218
+ * // "kmsKeyName": "my_kmsKeyName",
21219
+ * // "name": "my_name",
21220
+ * // "naturalLanguageQueryUnderstandingConfig": {},
21221
+ * // "servingConfigDataStore": {},
21222
+ * // "solutionTypes": [],
21223
+ * // "startingSchema": {},
21224
+ * // "workspaceConfig": {}
21225
+ * // }
21226
+ * }
21227
+ *
21228
+ * main().catch(e => {
21229
+ * console.error(e);
21230
+ * throw e;
21231
+ * });
21232
+ *
21233
+ * ```
21234
+ *
21235
+ * @param params - Parameters for request
21236
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
21237
+ * @param callback - Optional callback that handles the response.
21238
+ * @returns A promise if used with async/await, or void if used with a callback.
21239
+ */
21240
+ get(params: Params$Resource$Projects$Locations$Collections$Datastores$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
21241
+ get(params?: Params$Resource$Projects$Locations$Collections$Datastores$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1DataStore>>;
21242
+ get(params: Params$Resource$Projects$Locations$Collections$Datastores$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
21243
+ get(params: Params$Resource$Projects$Locations$Collections$Datastores$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
21244
+ get(params: Params$Resource$Projects$Locations$Collections$Datastores$Get, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
21245
+ get(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
21246
+ /**
21247
+ * Gets the IAM access control policy for a DataStore. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.
21248
+ * @example
21249
+ * ```js
21250
+ * // Before running the sample:
21251
+ * // - Enable the API at:
21252
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
21253
+ * // - Login into gcloud by running:
21254
+ * // ```sh
21255
+ * // $ gcloud auth application-default login
21256
+ * // ```
21257
+ * // - Install the npm module by running:
21258
+ * // ```sh
21259
+ * // $ npm install googleapis
21260
+ * // ```
21261
+ *
21262
+ * const {google} = require('googleapis');
21263
+ * const discoveryengine = google.discoveryengine('v1');
21264
+ *
21265
+ * async function main() {
21266
+ * const auth = new google.auth.GoogleAuth({
21267
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
21268
+ * scopes: [
21269
+ * 'https://www.googleapis.com/auth/cloud-platform',
21270
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
21271
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
21272
+ * ],
21273
+ * });
21274
+ *
21275
+ * // Acquire an auth client, and bind it to all future calls
21276
+ * const authClient = await auth.getClient();
21277
+ * google.options({auth: authClient});
21278
+ *
21279
+ * // Do the magic
21280
+ * const res =
21281
+ * await discoveryengine.projects.locations.collections.dataStores.getIamPolicy(
21282
+ * {
21283
+ * // Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
21284
+ * 'options.requestedPolicyVersion': 'placeholder-value',
21285
+ * // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
21286
+ * resource:
21287
+ * 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
21288
+ * },
21289
+ * );
20802
21290
  * console.log(res.data);
20803
21291
  *
20804
21292
  * // Example response
20805
21293
  * // {
20806
- * // "aclEnabled": false,
20807
- * // "advancedSiteSearchConfig": {},
20808
- * // "billingEstimation": {},
20809
- * // "cmekConfig": {},
20810
- * // "configurableBillingApproach": "my_configurableBillingApproach",
20811
- * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
20812
- * // "contentConfig": "my_contentConfig",
20813
- * // "createTime": "my_createTime",
20814
- * // "defaultSchemaId": "my_defaultSchemaId",
20815
- * // "displayName": "my_displayName",
20816
- * // "documentProcessingConfig": {},
20817
- * // "federatedSearchConfig": {},
20818
- * // "healthcareFhirConfig": {},
20819
- * // "identityMappingStore": "my_identityMappingStore",
20820
- * // "industryVertical": "my_industryVertical",
20821
- * // "isInfobotFaqDataStore": false,
20822
- * // "kmsKeyName": "my_kmsKeyName",
20823
- * // "name": "my_name",
20824
- * // "naturalLanguageQueryUnderstandingConfig": {},
20825
- * // "servingConfigDataStore": {},
20826
- * // "solutionTypes": [],
20827
- * // "startingSchema": {},
20828
- * // "workspaceConfig": {}
21294
+ * // "bindings": [],
21295
+ * // "etag": "my_etag",
21296
+ * // "version": 0
20829
21297
  * // }
20830
21298
  * }
20831
21299
  *
@@ -20841,12 +21309,12 @@ export declare namespace discoveryengine_v1 {
20841
21309
  * @param callback - Optional callback that handles the response.
20842
21310
  * @returns A promise if used with async/await, or void if used with a callback.
20843
21311
  */
20844
- get(params: Params$Resource$Projects$Locations$Collections$Datastores$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
20845
- get(params?: Params$Resource$Projects$Locations$Collections$Datastores$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1DataStore>>;
20846
- get(params: Params$Resource$Projects$Locations$Collections$Datastores$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
20847
- get(params: Params$Resource$Projects$Locations$Collections$Datastores$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
20848
- get(params: Params$Resource$Projects$Locations$Collections$Datastores$Get, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
20849
- get(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
21312
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
21313
+ getIamPolicy(params?: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
21314
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
21315
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
21316
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
21317
+ getIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
20850
21318
  /**
20851
21319
  * Gets the SiteSearchEngine.
20852
21320
  * @example
@@ -21040,6 +21508,7 @@ export declare namespace discoveryengine_v1 {
21040
21508
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
21041
21509
  * // "contentConfig": "my_contentConfig",
21042
21510
  * // "createTime": "my_createTime",
21511
+ * // "dataProtectionPolicy": {},
21043
21512
  * // "defaultSchemaId": "my_defaultSchemaId",
21044
21513
  * // "displayName": "my_displayName",
21045
21514
  * // "documentProcessingConfig": {},
@@ -21070,6 +21539,7 @@ export declare namespace discoveryengine_v1 {
21070
21539
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
21071
21540
  * // "contentConfig": "my_contentConfig",
21072
21541
  * // "createTime": "my_createTime",
21542
+ * // "dataProtectionPolicy": {},
21073
21543
  * // "defaultSchemaId": "my_defaultSchemaId",
21074
21544
  * // "displayName": "my_displayName",
21075
21545
  * // "documentProcessingConfig": {},
@@ -21106,6 +21576,84 @@ export declare namespace discoveryengine_v1 {
21106
21576
  patch(params: Params$Resource$Projects$Locations$Collections$Datastores$Patch, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
21107
21577
  patch(params: Params$Resource$Projects$Locations$Collections$Datastores$Patch, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
21108
21578
  patch(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
21579
+ /**
21580
+ * Sets the IAM access control policy for a DataStore. A `NOT_FOUND` error is returned if the resource does not exist. **Important:** When setting a policy directly on a DataStore resource, the only recommended roles in the bindings are: `roles/discoveryengine.admin` `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a warning in logging.
21581
+ * @example
21582
+ * ```js
21583
+ * // Before running the sample:
21584
+ * // - Enable the API at:
21585
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
21586
+ * // - Login into gcloud by running:
21587
+ * // ```sh
21588
+ * // $ gcloud auth application-default login
21589
+ * // ```
21590
+ * // - Install the npm module by running:
21591
+ * // ```sh
21592
+ * // $ npm install googleapis
21593
+ * // ```
21594
+ *
21595
+ * const {google} = require('googleapis');
21596
+ * const discoveryengine = google.discoveryengine('v1');
21597
+ *
21598
+ * async function main() {
21599
+ * const auth = new google.auth.GoogleAuth({
21600
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
21601
+ * scopes: [
21602
+ * 'https://www.googleapis.com/auth/cloud-platform',
21603
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
21604
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
21605
+ * ],
21606
+ * });
21607
+ *
21608
+ * // Acquire an auth client, and bind it to all future calls
21609
+ * const authClient = await auth.getClient();
21610
+ * google.options({auth: authClient});
21611
+ *
21612
+ * // Do the magic
21613
+ * const res =
21614
+ * await discoveryengine.projects.locations.collections.dataStores.setIamPolicy(
21615
+ * {
21616
+ * // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
21617
+ * resource:
21618
+ * 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
21619
+ *
21620
+ * // Request body metadata
21621
+ * requestBody: {
21622
+ * // request body parameters
21623
+ * // {
21624
+ * // "policy": {}
21625
+ * // }
21626
+ * },
21627
+ * },
21628
+ * );
21629
+ * console.log(res.data);
21630
+ *
21631
+ * // Example response
21632
+ * // {
21633
+ * // "bindings": [],
21634
+ * // "etag": "my_etag",
21635
+ * // "version": 0
21636
+ * // }
21637
+ * }
21638
+ *
21639
+ * main().catch(e => {
21640
+ * console.error(e);
21641
+ * throw e;
21642
+ * });
21643
+ *
21644
+ * ```
21645
+ *
21646
+ * @param params - Parameters for request
21647
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
21648
+ * @param callback - Optional callback that handles the response.
21649
+ * @returns A promise if used with async/await, or void if used with a callback.
21650
+ */
21651
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
21652
+ setIamPolicy(params?: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
21653
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
21654
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
21655
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
21656
+ setIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
21109
21657
  /**
21110
21658
  * Trains a custom model.
21111
21659
  * @example
@@ -21254,6 +21802,16 @@ export declare namespace discoveryengine_v1 {
21254
21802
  */
21255
21803
  name?: string;
21256
21804
  }
21805
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy extends StandardParameters {
21806
+ /**
21807
+ * Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
21808
+ */
21809
+ 'options.requestedPolicyVersion'?: number;
21810
+ /**
21811
+ * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
21812
+ */
21813
+ resource?: string;
21814
+ }
21257
21815
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine extends StandardParameters {
21258
21816
  /**
21259
21817
  * Required. Resource name of SiteSearchEngine, such as `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/siteSearchEngine`. If the caller does not have permission to access the [SiteSearchEngine], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
@@ -21292,6 +21850,16 @@ export declare namespace discoveryengine_v1 {
21292
21850
  */
21293
21851
  requestBody?: Schema$GoogleCloudDiscoveryengineV1DataStore;
21294
21852
  }
21853
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy extends StandardParameters {
21854
+ /**
21855
+ * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
21856
+ */
21857
+ resource?: string;
21858
+ /**
21859
+ * Request body metadata
21860
+ */
21861
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
21862
+ }
21295
21863
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Traincustommodel extends StandardParameters {
21296
21864
  /**
21297
21865
  * Required. The resource name of the Data Store, such as `projects/x/locations/global/collections/default_collection/dataStores/default_data_store`. This field is used to identify the data store where to train the models.
@@ -25404,6 +25972,7 @@ export declare namespace discoveryengine_v1 {
25404
25972
  * // "relevanceScoreSpec": {},
25405
25973
  * // "relevanceThreshold": "my_relevanceThreshold",
25406
25974
  * // "safeSearch": false,
25975
+ * // "searchAddonSpec": {},
25407
25976
  * // "searchAsYouTypeSpec": {},
25408
25977
  * // "session": "my_session",
25409
25978
  * // "sessionSpec": {},
@@ -25530,6 +26099,7 @@ export declare namespace discoveryengine_v1 {
25530
26099
  * // "relevanceScoreSpec": {},
25531
26100
  * // "relevanceThreshold": "my_relevanceThreshold",
25532
26101
  * // "safeSearch": false,
26102
+ * // "searchAddonSpec": {},
25533
26103
  * // "searchAsYouTypeSpec": {},
25534
26104
  * // "session": "my_session",
25535
26105
  * // "sessionSpec": {},
@@ -28610,7 +29180,7 @@ export declare namespace discoveryengine_v1 {
28610
29180
  * 'placeholder-value',
28611
29181
  * // Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize human-readable strings in the response, such as the model selector `display_name` / `description` on `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to the default language (English).
28612
29182
  * languageCode: 'placeholder-value',
28613
- * // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `MODEL_INFO_VIEW_ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; unset / `MODEL_INFO_VIEW_WEB` returns the end-user selector. The mobile surface is detected from the `X-Goog-Gemini-Enterprise-Mobile` header instead (see `ModelInfoView`).
29183
+ * // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / `END_USER_WEB` returns the end-user web selector.
28614
29184
  * modelInfoView: 'placeholder-value',
28615
29185
  * // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
28616
29186
  * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/widgetConfigs/my-widgetConfig',
@@ -28846,7 +29416,7 @@ export declare namespace discoveryengine_v1 {
28846
29416
  */
28847
29417
  languageCode?: string;
28848
29418
  /**
28849
- * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `MODEL_INFO_VIEW_ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; unset / `MODEL_INFO_VIEW_WEB` returns the end-user selector. The mobile surface is detected from the `X-Goog-Gemini-Enterprise-Mobile` header instead (see `ModelInfoView`).
29419
+ * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / `END_USER_WEB` returns the end-user web selector.
28850
29420
  */
28851
29421
  modelInfoView?: string;
28852
29422
  /**
@@ -28948,6 +29518,7 @@ export declare namespace discoveryengine_v1 {
28948
29518
  * // "observabilityConfig": {},
28949
29519
  * // "procurementContactEmails": [],
28950
29520
  * // "searchEngineConfig": {},
29521
+ * // "sessionConfig": {},
28951
29522
  * // "solutionType": "my_solutionType",
28952
29523
  * // "updateTime": "my_updateTime"
28953
29524
  * // }
@@ -29117,6 +29688,7 @@ export declare namespace discoveryengine_v1 {
29117
29688
  * // "observabilityConfig": {},
29118
29689
  * // "procurementContactEmails": [],
29119
29690
  * // "searchEngineConfig": {},
29691
+ * // "sessionConfig": {},
29120
29692
  * // "solutionType": "my_solutionType",
29121
29693
  * // "updateTime": "my_updateTime"
29122
29694
  * // }
@@ -29352,6 +29924,7 @@ export declare namespace discoveryengine_v1 {
29352
29924
  * // "observabilityConfig": {},
29353
29925
  * // "procurementContactEmails": [],
29354
29926
  * // "searchEngineConfig": {},
29927
+ * // "sessionConfig": {},
29355
29928
  * // "solutionType": "my_solutionType",
29356
29929
  * // "updateTime": "my_updateTime"
29357
29930
  * // }
@@ -29384,6 +29957,7 @@ export declare namespace discoveryengine_v1 {
29384
29957
  * // "observabilityConfig": {},
29385
29958
  * // "procurementContactEmails": [],
29386
29959
  * // "searchEngineConfig": {},
29960
+ * // "sessionConfig": {},
29387
29961
  * // "solutionType": "my_solutionType",
29388
29962
  * // "updateTime": "my_updateTime"
29389
29963
  * // }
@@ -30021,6 +30595,7 @@ export declare namespace discoveryengine_v1 {
30021
30595
  * requestBody: {
30022
30596
  * // request body parameters
30023
30597
  * // {
30598
+ * // "agentsSpec": {},
30024
30599
  * // "generationSpec": {},
30025
30600
  * // "query": {},
30026
30601
  * // "session": "my_session",
@@ -33214,6 +33789,7 @@ export declare namespace discoveryengine_v1 {
33214
33789
  * // "relevanceScoreSpec": {},
33215
33790
  * // "relevanceThreshold": "my_relevanceThreshold",
33216
33791
  * // "safeSearch": false,
33792
+ * // "searchAddonSpec": {},
33217
33793
  * // "searchAsYouTypeSpec": {},
33218
33794
  * // "session": "my_session",
33219
33795
  * // "sessionSpec": {},
@@ -33340,6 +33916,7 @@ export declare namespace discoveryengine_v1 {
33340
33916
  * // "relevanceScoreSpec": {},
33341
33917
  * // "relevanceThreshold": "my_relevanceThreshold",
33342
33918
  * // "safeSearch": false,
33919
+ * // "searchAddonSpec": {},
33343
33920
  * // "searchAsYouTypeSpec": {},
33344
33921
  * // "session": "my_session",
33345
33922
  * // "sessionSpec": {},
@@ -34205,7 +34782,7 @@ export declare namespace discoveryengine_v1 {
34205
34782
  * 'placeholder-value',
34206
34783
  * // Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize human-readable strings in the response, such as the model selector `display_name` / `description` on `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to the default language (English).
34207
34784
  * languageCode: 'placeholder-value',
34208
- * // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `MODEL_INFO_VIEW_ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; unset / `MODEL_INFO_VIEW_WEB` returns the end-user selector. The mobile surface is detected from the `X-Goog-Gemini-Enterprise-Mobile` header instead (see `ModelInfoView`).
34785
+ * // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / `END_USER_WEB` returns the end-user web selector.
34209
34786
  * modelInfoView: 'placeholder-value',
34210
34787
  * // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
34211
34788
  * name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/widgetConfigs/my-widgetConfig',
@@ -34441,7 +35018,7 @@ export declare namespace discoveryengine_v1 {
34441
35018
  */
34442
35019
  languageCode?: string;
34443
35020
  /**
34444
- * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `MODEL_INFO_VIEW_ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; unset / `MODEL_INFO_VIEW_WEB` returns the end-user selector. The mobile surface is detected from the `X-Goog-Gemini-Enterprise-Mobile` header instead (see `ModelInfoView`).
35021
+ * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / `END_USER_WEB` returns the end-user web selector.
34445
35022
  */
34446
35023
  modelInfoView?: string;
34447
35024
  /**
@@ -34793,6 +35370,7 @@ export declare namespace discoveryengine_v1 {
34793
35370
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
34794
35371
  * // "contentConfig": "my_contentConfig",
34795
35372
  * // "createTime": "my_createTime",
35373
+ * // "dataProtectionPolicy": {},
34796
35374
  * // "defaultSchemaId": "my_defaultSchemaId",
34797
35375
  * // "displayName": "my_displayName",
34798
35376
  * // "documentProcessingConfig": {},
@@ -34959,6 +35537,7 @@ export declare namespace discoveryengine_v1 {
34959
35537
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
34960
35538
  * // "contentConfig": "my_contentConfig",
34961
35539
  * // "createTime": "my_createTime",
35540
+ * // "dataProtectionPolicy": {},
34962
35541
  * // "defaultSchemaId": "my_defaultSchemaId",
34963
35542
  * // "displayName": "my_displayName",
34964
35543
  * // "documentProcessingConfig": {},
@@ -34995,6 +35574,75 @@ export declare namespace discoveryengine_v1 {
34995
35574
  get(params: Params$Resource$Projects$Locations$Datastores$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
34996
35575
  get(params: Params$Resource$Projects$Locations$Datastores$Get, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
34997
35576
  get(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
35577
+ /**
35578
+ * Gets the IAM access control policy for a DataStore. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.
35579
+ * @example
35580
+ * ```js
35581
+ * // Before running the sample:
35582
+ * // - Enable the API at:
35583
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
35584
+ * // - Login into gcloud by running:
35585
+ * // ```sh
35586
+ * // $ gcloud auth application-default login
35587
+ * // ```
35588
+ * // - Install the npm module by running:
35589
+ * // ```sh
35590
+ * // $ npm install googleapis
35591
+ * // ```
35592
+ *
35593
+ * const {google} = require('googleapis');
35594
+ * const discoveryengine = google.discoveryengine('v1');
35595
+ *
35596
+ * async function main() {
35597
+ * const auth = new google.auth.GoogleAuth({
35598
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
35599
+ * scopes: [
35600
+ * 'https://www.googleapis.com/auth/cloud-platform',
35601
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
35602
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
35603
+ * ],
35604
+ * });
35605
+ *
35606
+ * // Acquire an auth client, and bind it to all future calls
35607
+ * const authClient = await auth.getClient();
35608
+ * google.options({auth: authClient});
35609
+ *
35610
+ * // Do the magic
35611
+ * const res = await discoveryengine.projects.locations.dataStores.getIamPolicy({
35612
+ * // Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
35613
+ * 'options.requestedPolicyVersion': 'placeholder-value',
35614
+ * // REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
35615
+ * resource:
35616
+ * 'projects/my-project/locations/my-location/dataStores/my-dataStore',
35617
+ * });
35618
+ * console.log(res.data);
35619
+ *
35620
+ * // Example response
35621
+ * // {
35622
+ * // "bindings": [],
35623
+ * // "etag": "my_etag",
35624
+ * // "version": 0
35625
+ * // }
35626
+ * }
35627
+ *
35628
+ * main().catch(e => {
35629
+ * console.error(e);
35630
+ * throw e;
35631
+ * });
35632
+ *
35633
+ * ```
35634
+ *
35635
+ * @param params - Parameters for request
35636
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
35637
+ * @param callback - Optional callback that handles the response.
35638
+ * @returns A promise if used with async/await, or void if used with a callback.
35639
+ */
35640
+ getIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Getiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
35641
+ getIamPolicy(params?: Params$Resource$Projects$Locations$Datastores$Getiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
35642
+ getIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
35643
+ getIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
35644
+ getIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Getiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
35645
+ getIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
34998
35646
  /**
34999
35647
  * Gets the SiteSearchEngine.
35000
35648
  * @example
@@ -35183,6 +35831,7 @@ export declare namespace discoveryengine_v1 {
35183
35831
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
35184
35832
  * // "contentConfig": "my_contentConfig",
35185
35833
  * // "createTime": "my_createTime",
35834
+ * // "dataProtectionPolicy": {},
35186
35835
  * // "defaultSchemaId": "my_defaultSchemaId",
35187
35836
  * // "displayName": "my_displayName",
35188
35837
  * // "documentProcessingConfig": {},
@@ -35213,6 +35862,7 @@ export declare namespace discoveryengine_v1 {
35213
35862
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
35214
35863
  * // "contentConfig": "my_contentConfig",
35215
35864
  * // "createTime": "my_createTime",
35865
+ * // "dataProtectionPolicy": {},
35216
35866
  * // "defaultSchemaId": "my_defaultSchemaId",
35217
35867
  * // "displayName": "my_displayName",
35218
35868
  * // "documentProcessingConfig": {},
@@ -35249,6 +35899,81 @@ export declare namespace discoveryengine_v1 {
35249
35899
  patch(params: Params$Resource$Projects$Locations$Datastores$Patch, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
35250
35900
  patch(params: Params$Resource$Projects$Locations$Datastores$Patch, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
35251
35901
  patch(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>): void;
35902
+ /**
35903
+ * Sets the IAM access control policy for a DataStore. A `NOT_FOUND` error is returned if the resource does not exist. **Important:** When setting a policy directly on a DataStore resource, the only recommended roles in the bindings are: `roles/discoveryengine.admin` `roles/discoveryengine.agentspaceAdmin` `roles/discoveryengine.viewer` `roles/discoveryengine.agentspaceViewer` `roles/discoveryengine.user` `roles/discoveryengine.agentspaceUser` Attempting to grant any other role will result in a warning in logging.
35904
+ * @example
35905
+ * ```js
35906
+ * // Before running the sample:
35907
+ * // - Enable the API at:
35908
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
35909
+ * // - Login into gcloud by running:
35910
+ * // ```sh
35911
+ * // $ gcloud auth application-default login
35912
+ * // ```
35913
+ * // - Install the npm module by running:
35914
+ * // ```sh
35915
+ * // $ npm install googleapis
35916
+ * // ```
35917
+ *
35918
+ * const {google} = require('googleapis');
35919
+ * const discoveryengine = google.discoveryengine('v1');
35920
+ *
35921
+ * async function main() {
35922
+ * const auth = new google.auth.GoogleAuth({
35923
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
35924
+ * scopes: [
35925
+ * 'https://www.googleapis.com/auth/cloud-platform',
35926
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
35927
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
35928
+ * ],
35929
+ * });
35930
+ *
35931
+ * // Acquire an auth client, and bind it to all future calls
35932
+ * const authClient = await auth.getClient();
35933
+ * google.options({auth: authClient});
35934
+ *
35935
+ * // Do the magic
35936
+ * const res = await discoveryengine.projects.locations.dataStores.setIamPolicy({
35937
+ * // REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
35938
+ * resource:
35939
+ * 'projects/my-project/locations/my-location/dataStores/my-dataStore',
35940
+ *
35941
+ * // Request body metadata
35942
+ * requestBody: {
35943
+ * // request body parameters
35944
+ * // {
35945
+ * // "policy": {}
35946
+ * // }
35947
+ * },
35948
+ * });
35949
+ * console.log(res.data);
35950
+ *
35951
+ * // Example response
35952
+ * // {
35953
+ * // "bindings": [],
35954
+ * // "etag": "my_etag",
35955
+ * // "version": 0
35956
+ * // }
35957
+ * }
35958
+ *
35959
+ * main().catch(e => {
35960
+ * console.error(e);
35961
+ * throw e;
35962
+ * });
35963
+ *
35964
+ * ```
35965
+ *
35966
+ * @param params - Parameters for request
35967
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
35968
+ * @param callback - Optional callback that handles the response.
35969
+ * @returns A promise if used with async/await, or void if used with a callback.
35970
+ */
35971
+ setIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Setiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
35972
+ setIamPolicy(params?: Params$Resource$Projects$Locations$Datastores$Setiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
35973
+ setIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
35974
+ setIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
35975
+ setIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Setiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
35976
+ setIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
35252
35977
  }
35253
35978
  export interface Params$Resource$Projects$Locations$Datastores$Completequery extends StandardParameters {
35254
35979
  /**
@@ -35314,6 +36039,16 @@ export declare namespace discoveryengine_v1 {
35314
36039
  */
35315
36040
  name?: string;
35316
36041
  }
36042
+ export interface Params$Resource$Projects$Locations$Datastores$Getiampolicy extends StandardParameters {
36043
+ /**
36044
+ * Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
36045
+ */
36046
+ 'options.requestedPolicyVersion'?: number;
36047
+ /**
36048
+ * REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
36049
+ */
36050
+ resource?: string;
36051
+ }
35317
36052
  export interface Params$Resource$Projects$Locations$Datastores$Getsitesearchengine extends StandardParameters {
35318
36053
  /**
35319
36054
  * Required. Resource name of SiteSearchEngine, such as `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/siteSearchEngine`. If the caller does not have permission to access the [SiteSearchEngine], regardless of whether or not it exists, a PERMISSION_DENIED error is returned.
@@ -35352,6 +36087,16 @@ export declare namespace discoveryengine_v1 {
35352
36087
  */
35353
36088
  requestBody?: Schema$GoogleCloudDiscoveryengineV1DataStore;
35354
36089
  }
36090
+ export interface Params$Resource$Projects$Locations$Datastores$Setiampolicy extends StandardParameters {
36091
+ /**
36092
+ * REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.
36093
+ */
36094
+ resource?: string;
36095
+ /**
36096
+ * Request body metadata
36097
+ */
36098
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
36099
+ }
35355
36100
  export class Resource$Projects$Locations$Datastores$Branches {
35356
36101
  context: APIRequestContext;
35357
36102
  documents: Resource$Projects$Locations$Datastores$Branches$Documents;
@@ -39138,6 +39883,7 @@ export declare namespace discoveryengine_v1 {
39138
39883
  * // "relevanceScoreSpec": {},
39139
39884
  * // "relevanceThreshold": "my_relevanceThreshold",
39140
39885
  * // "safeSearch": false,
39886
+ * // "searchAddonSpec": {},
39141
39887
  * // "searchAsYouTypeSpec": {},
39142
39888
  * // "session": "my_session",
39143
39889
  * // "sessionSpec": {},
@@ -39263,6 +40009,7 @@ export declare namespace discoveryengine_v1 {
39263
40009
  * // "relevanceScoreSpec": {},
39264
40010
  * // "relevanceThreshold": "my_relevanceThreshold",
39265
40011
  * // "safeSearch": false,
40012
+ * // "searchAddonSpec": {},
39266
40013
  * // "searchAsYouTypeSpec": {},
39267
40014
  * // "session": "my_session",
39268
40015
  * // "sessionSpec": {},
@@ -41783,7 +42530,7 @@ export declare namespace discoveryengine_v1 {
41783
42530
  * 'placeholder-value',
41784
42531
  * // Optional. BCP-47 language tag (e.g. "en", "fr-CA"). Used to localize human-readable strings in the response, such as the model selector `display_name` / `description` on `WidgetConfig.UiSettings.ModelConfigInfo`. Empty / unset falls back to the default language (English).
41785
42532
  * languageCode: 'placeholder-value',
41786
- * // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `MODEL_INFO_VIEW_ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; unset / `MODEL_INFO_VIEW_WEB` returns the end-user selector. The mobile surface is detected from the `X-Goog-Gemini-Enterprise-Mobile` header instead (see `ModelInfoView`).
42533
+ * // Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / `END_USER_WEB` returns the end-user web selector.
41787
42534
  * modelInfoView: 'placeholder-value',
41788
42535
  * // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
41789
42536
  * name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/widgetConfigs/my-widgetConfig',
@@ -42016,7 +42763,7 @@ export declare namespace discoveryengine_v1 {
42016
42763
  */
42017
42764
  languageCode?: string;
42018
42765
  /**
42019
- * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `MODEL_INFO_VIEW_ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; unset / `MODEL_INFO_VIEW_WEB` returns the end-user selector. The mobile surface is detected from the `X-Goog-Gemini-Enterprise-Mobile` header instead (see `ModelInfoView`).
42766
+ * Optional. Selects which view of `WidgetConfig.UiSettings.ModelConfigInfo` the backend computes. `ADMIN` is set by the Cloud Console admin "Feature Management" page (screen/4Vn9gQKbN8tb7gm) to receive the admin-surfaced model set with `ResolvedModel.admin_view` populated; `END_USER_MOBILE` is set by the Gemini Enterprise mobile app to receive the mobile model set; unset / `END_USER_WEB` returns the end-user web selector.
42020
42767
  */
42021
42768
  modelInfoView?: string;
42022
42769
  /**