@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/v1.ts CHANGED
@@ -1750,6 +1750,10 @@ export namespace discoveryengine_v1 {
1750
1750
  * Required. Model name (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`). See `model_mixture` for the list of allowed models.
1751
1751
  */
1752
1752
  name?: string | null;
1753
+ /**
1754
+ * Optional. Sent as Vertex `ThinkingConfig.thinking_level`.
1755
+ */
1756
+ thinkingLevel?: string | null;
1753
1757
  /**
1754
1758
  * 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.
1755
1759
  */
@@ -2492,6 +2496,10 @@ export namespace discoveryengine_v1 {
2492
2496
  * Referenced content and related document metadata.
2493
2497
  */
2494
2498
  export interface Schema$GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReference {
2499
+ /**
2500
+ * Output only. Generic structured chunk metadata from upstream data source connectors.
2501
+ */
2502
+ chunkMetadata?: {[key: string]: any} | null;
2495
2503
  /**
2496
2504
  * Chunk of code snippet from the referenced document.
2497
2505
  */
@@ -4193,7 +4201,7 @@ export namespace discoveryengine_v1 {
4193
4201
  */
4194
4202
  displayName?: string | null;
4195
4203
  /**
4196
- * 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`
4204
+ * 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`
4197
4205
  */
4198
4206
  features?: {[key: string]: string} | null;
4199
4207
  /**
@@ -4236,6 +4244,10 @@ export namespace discoveryengine_v1 {
4236
4244
  * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
4237
4245
  */
4238
4246
  searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig;
4247
+ /**
4248
+ * Optional. Non-empty default. Session config for the engine.
4249
+ */
4250
+ sessionConfig?: Schema$GoogleCloudDiscoveryengineV1alphaSessionConfig;
4239
4251
  /**
4240
4252
  * Additional config specs for a `similar-items` engine.
4241
4253
  */
@@ -6575,6 +6587,28 @@ export namespace discoveryengine_v1 {
6575
6587
  */
6576
6588
  userPseudoId?: string | null;
6577
6589
  }
6590
+ /**
6591
+ * Configuration for the session.
6592
+ */
6593
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSessionConfig {
6594
+ /**
6595
+ * Optional. Session management policy that defines who will manage the session.
6596
+ */
6597
+ sessionManagementPolicy?: string | null;
6598
+ /**
6599
+ * Optional. The TTL for the session. If unset, the default value is 60 days.
6600
+ */
6601
+ sessionTtl?: Schema$GoogleCloudDiscoveryengineV1alphaSessionConfigSessionTtl;
6602
+ }
6603
+ /**
6604
+ * Defines the TTL for sessions.
6605
+ */
6606
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSessionConfigSessionTtl {
6607
+ /**
6608
+ * Defines the number of days for session TTL.
6609
+ */
6610
+ days?: number | null;
6611
+ }
6578
6612
  /**
6579
6613
  * Represents a turn, including a query from the user and a answer from service.
6580
6614
  */
@@ -8063,6 +8097,10 @@ export namespace discoveryengine_v1 {
8063
8097
  * Optional. List of banned phrases.
8064
8098
  */
8065
8099
  bannedPhrases?: Schema$GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase[];
8100
+ /**
8101
+ * Optional. Data protection policy to be used for sanitizing file uploads.
8102
+ */
8103
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
8066
8104
  /**
8067
8105
  * Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses.
8068
8106
  */
@@ -8170,6 +8208,10 @@ export namespace discoveryengine_v1 {
8170
8208
  * Referenced content and related document metadata.
8171
8209
  */
8172
8210
  export interface Schema$GoogleCloudDiscoveryengineV1AssistantGroundedContentTextGroundingMetadataReference {
8211
+ /**
8212
+ * Output only. Generic structured chunk metadata from upstream data source connectors.
8213
+ */
8214
+ chunkMetadata?: {[key: string]: any} | null;
8173
8215
  /**
8174
8216
  * Chunk of code snippet from the referenced document.
8175
8217
  */
@@ -8864,6 +8906,24 @@ export namespace discoveryengine_v1 {
8864
8906
  */
8865
8907
  updateTime?: string | null;
8866
8908
  }
8909
+ /**
8910
+ * Contains the data protection policy config for a DataStore or a connector.
8911
+ */
8912
+ export interface Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicy {
8913
+ /**
8914
+ * Optional. Specifies the sensitive data protection policy for the connector source.
8915
+ */
8916
+ sensitiveDataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicySensitiveDataProtectionPolicy;
8917
+ }
8918
+ /**
8919
+ * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview) policy.
8920
+ */
8921
+ export interface Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicySensitiveDataProtectionPolicy {
8922
+ /**
8923
+ * Optional. Specifies the resource name of the Sensitive Data Protection content policy.
8924
+ */
8925
+ policy?: string | null;
8926
+ }
8867
8927
  /**
8868
8928
  * DataStore captures global settings and configs at the DataStore level.
8869
8929
  */
@@ -8900,6 +8960,10 @@ export namespace discoveryengine_v1 {
8900
8960
  * Output only. Timestamp the DataStore was created at.
8901
8961
  */
8902
8962
  createTime?: string | null;
8963
+ /**
8964
+ * Optional. Specifies the data protection policy for the data store.
8965
+ */
8966
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicy;
8903
8967
  /**
8904
8968
  * Output only. The id of the default Schema associated to this data store.
8905
8969
  */
@@ -9405,7 +9469,7 @@ export namespace discoveryengine_v1 {
9405
9469
  */
9406
9470
  displayName?: string | null;
9407
9471
  /**
9408
- * 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`
9472
+ * 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`
9409
9473
  */
9410
9474
  features?: {[key: string]: string} | null;
9411
9475
  /**
@@ -9444,6 +9508,10 @@ export namespace discoveryengine_v1 {
9444
9508
  * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
9445
9509
  */
9446
9510
  searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig;
9511
+ /**
9512
+ * Optional. Non-empty default. Session config for the engine.
9513
+ */
9514
+ sessionConfig?: Schema$GoogleCloudDiscoveryengineV1betaSessionConfig;
9447
9515
  /**
9448
9516
  * Required. The solutions of the engine.
9449
9517
  */
@@ -11140,6 +11208,28 @@ export namespace discoveryengine_v1 {
11140
11208
  */
11141
11209
  mode?: string | null;
11142
11210
  }
11211
+ /**
11212
+ * Configuration for the session.
11213
+ */
11214
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSessionConfig {
11215
+ /**
11216
+ * Optional. Session management policy that defines who will manage the session.
11217
+ */
11218
+ sessionManagementPolicy?: string | null;
11219
+ /**
11220
+ * Optional. The TTL for the session. If unset, the default value is 60 days.
11221
+ */
11222
+ sessionTtl?: Schema$GoogleCloudDiscoveryengineV1betaSessionConfigSessionTtl;
11223
+ }
11224
+ /**
11225
+ * Defines the TTL for sessions.
11226
+ */
11227
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSessionConfigSessionTtl {
11228
+ /**
11229
+ * Defines the number of days for session TTL.
11230
+ */
11231
+ days?: number | null;
11232
+ }
11143
11233
  /**
11144
11234
  * Metadata related to the progress of the CrawlRateManagementService.SetDedicatedCrawlRate operation. This will be returned by the google.longrunning.Operation.metadata field.
11145
11235
  */
@@ -12476,6 +12566,10 @@ export namespace discoveryengine_v1 {
12476
12566
  * Output only. Timestamp the DataConnector was created at.
12477
12567
  */
12478
12568
  createTime?: string | null;
12569
+ /**
12570
+ * Optional. Specifies the data protection policy for the connector.
12571
+ */
12572
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
12479
12573
  /**
12480
12574
  * 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).
12481
12575
  */
@@ -12739,6 +12833,24 @@ export namespace discoveryengine_v1 {
12739
12833
  */
12740
12834
  startingSchema?: Schema$GoogleCloudDiscoveryengineV1Schema;
12741
12835
  }
12836
+ /**
12837
+ * Contains the data protection policy config for a DataStore or a connector.
12838
+ */
12839
+ export interface Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy {
12840
+ /**
12841
+ * Optional. Specifies the sensitive data protection policy for the connector source.
12842
+ */
12843
+ sensitiveDataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicySensitiveDataProtectionPolicy;
12844
+ }
12845
+ /**
12846
+ * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview) policy.
12847
+ */
12848
+ export interface Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicySensitiveDataProtectionPolicy {
12849
+ /**
12850
+ * Optional. Specifies the resource name of the Sensitive Data Protection content policy.
12851
+ */
12852
+ policy?: string | null;
12853
+ }
12742
12854
  /**
12743
12855
  * DataStore captures global settings and configs at the DataStore level.
12744
12856
  */
@@ -12775,6 +12887,10 @@ export namespace discoveryengine_v1 {
12775
12887
  * Output only. Timestamp the DataStore was created at.
12776
12888
  */
12777
12889
  createTime?: string | null;
12890
+ /**
12891
+ * Optional. Specifies the data protection policy for the data store.
12892
+ */
12893
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
12778
12894
  /**
12779
12895
  * Output only. The id of the default Schema associated to this data store.
12780
12896
  */
@@ -13521,7 +13637,7 @@ export namespace discoveryengine_v1 {
13521
13637
  */
13522
13638
  displayName?: string | null;
13523
13639
  /**
13524
- * 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`
13640
+ * 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`
13525
13641
  */
13526
13642
  features?: {[key: string]: string} | null;
13527
13643
  /**
@@ -13560,6 +13676,10 @@ export namespace discoveryengine_v1 {
13560
13676
  * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
13561
13677
  */
13562
13678
  searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1EngineSearchEngineConfig;
13679
+ /**
13680
+ * Optional. Non-empty default. Session config for the engine.
13681
+ */
13682
+ sessionConfig?: Schema$GoogleCloudDiscoveryengineV1SessionConfig;
13563
13683
  /**
13564
13684
  * Required. The solutions of the engine.
13565
13685
  */
@@ -15600,6 +15720,10 @@ export namespace discoveryengine_v1 {
15600
15720
  * Whether to turn on safe search. This is only supported for website search.
15601
15721
  */
15602
15722
  safeSearch?: boolean | null;
15723
+ /**
15724
+ * Optional. SearchAddonSpec is used to disable add-ons for search as per new repricing model. This field is only supported for search requests.
15725
+ */
15726
+ searchAddonSpec?: Schema$GoogleCloudDiscoveryengineV1SearchRequestSearchAddonSpec;
15603
15727
  /**
15604
15728
  * Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical.
15605
15729
  */
@@ -16024,6 +16148,23 @@ export namespace discoveryengine_v1 {
16024
16148
  */
16025
16149
  returnRelevanceScore?: boolean | null;
16026
16150
  }
16151
+ /**
16152
+ * 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.
16153
+ */
16154
+ export interface Schema$GoogleCloudDiscoveryengineV1SearchRequestSearchAddonSpec {
16155
+ /**
16156
+ * Optional. If true, generative answer add-on is disabled. Generative answer add-on includes natural language to filters and simple answers.
16157
+ */
16158
+ disableGenerativeAnswerAddOn?: boolean | null;
16159
+ /**
16160
+ * Optional. If true, disables event re-ranking and personalization to optimize KPIs & personalize results.
16161
+ */
16162
+ disableKpiPersonalizationAddOn?: boolean | null;
16163
+ /**
16164
+ * Optional. If true, semantic add-on is disabled. Semantic add-on includes embeddings and jetstream.
16165
+ */
16166
+ disableSemanticAddOn?: boolean | null;
16167
+ }
16027
16168
  /**
16028
16169
  * Specification for search as you type in search requests.
16029
16170
  */
@@ -16698,6 +16839,28 @@ export namespace discoveryengine_v1 {
16698
16839
  */
16699
16840
  userPseudoId?: string | null;
16700
16841
  }
16842
+ /**
16843
+ * Configuration for the session.
16844
+ */
16845
+ export interface Schema$GoogleCloudDiscoveryengineV1SessionConfig {
16846
+ /**
16847
+ * Optional. Session management policy that defines who will manage the session.
16848
+ */
16849
+ sessionManagementPolicy?: string | null;
16850
+ /**
16851
+ * Optional. The TTL for the session. If unset, the default value is 60 days.
16852
+ */
16853
+ sessionTtl?: Schema$GoogleCloudDiscoveryengineV1SessionConfigSessionTtl;
16854
+ }
16855
+ /**
16856
+ * Defines the TTL for sessions.
16857
+ */
16858
+ export interface Schema$GoogleCloudDiscoveryengineV1SessionConfigSessionTtl {
16859
+ /**
16860
+ * Defines the number of days for session TTL.
16861
+ */
16862
+ days?: number | null;
16863
+ }
16701
16864
  /**
16702
16865
  * Represents a turn, including a query from the user and a answer from service.
16703
16866
  */
@@ -16825,6 +16988,10 @@ export namespace discoveryengine_v1 {
16825
16988
  * Request for the AssistantService.StreamAssist method.
16826
16989
  */
16827
16990
  export interface Schema$GoogleCloudDiscoveryengineV1StreamAssistRequest {
16991
+ /**
16992
+ * Optional. Specification of agents that are used to serve the request.
16993
+ */
16994
+ agentsSpec?: Schema$GoogleCloudDiscoveryengineV1StreamAssistRequestAgentsSpec;
16828
16995
  /**
16829
16996
  * Optional. Specification of the generation configuration for the request.
16830
16997
  */
@@ -16846,6 +17013,24 @@ export namespace discoveryengine_v1 {
16846
17013
  */
16847
17014
  userMetadata?: Schema$GoogleCloudDiscoveryengineV1AssistUserMetadata;
16848
17015
  }
17016
+ /**
17017
+ * Specification of agents that are used to serve the request.
17018
+ */
17019
+ export interface Schema$GoogleCloudDiscoveryengineV1StreamAssistRequestAgentsSpec {
17020
+ /**
17021
+ * Optional. Specification of agents that are used to serve the request.
17022
+ */
17023
+ agentSpecs?: Schema$GoogleCloudDiscoveryengineV1StreamAssistRequestAgentsSpecAgentSpec[];
17024
+ }
17025
+ /**
17026
+ * Specification of an agent.
17027
+ */
17028
+ export interface Schema$GoogleCloudDiscoveryengineV1StreamAssistRequestAgentsSpecAgentSpec {
17029
+ /**
17030
+ * 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.
17031
+ */
17032
+ agentId?: string | null;
17033
+ }
16849
17034
  /**
16850
17035
  * Assistant generation specification for the request. This allows to override the default generation configuration at the engine level.
16851
17036
  */
@@ -17679,7 +17864,7 @@ export namespace discoveryengine_v1 {
17679
17864
  */
17680
17865
  id?: string | null;
17681
17866
  /**
17682
- * 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`.
17867
+ * 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.
17683
17868
  */
17684
17869
  isFirstParty?: boolean | null;
17685
17870
  /**
@@ -17712,6 +17897,10 @@ export namespace discoveryengine_v1 {
17712
17897
  * Customer provided configurations.
17713
17898
  */
17714
17899
  export interface Schema$GoogleCloudDiscoveryengineV1WidgetConfigCustomerProvidedConfig {
17900
+ /**
17901
+ * 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.
17902
+ */
17903
+ complianceLevel?: string | null;
17715
17904
  /**
17716
17905
  * Customer type.
17717
17906
  */
@@ -17915,7 +18104,7 @@ export namespace discoveryengine_v1 {
17915
18104
  */
17916
18105
  enableVisualContentSummary?: boolean | null;
17917
18106
  /**
17918
- * 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`
18107
+ * 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`
17919
18108
  */
17920
18109
  features?: {[key: string]: string} | null;
17921
18110
  /**
@@ -17946,6 +18135,10 @@ export namespace discoveryengine_v1 {
17946
18135
  * Controls whether result extract is display and how (snippet or extractive answer). Default to no result if unspecified.
17947
18136
  */
17948
18137
  resultDescriptionType?: string | null;
18138
+ /**
18139
+ * Optional. SearchAddonSpec is used to disable add-ons for search. This field is only supported for search requests.
18140
+ */
18141
+ searchAddonSpec?: Schema$GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsSearchAddonSpec;
17949
18142
  /**
17950
18143
  * 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.
17951
18144
  */
@@ -18029,6 +18222,10 @@ export namespace discoveryengine_v1 {
18029
18222
  * Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, `graph_5`).
18030
18223
  */
18031
18224
  icon?: string | null;
18225
+ /**
18226
+ * 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.
18227
+ */
18228
+ iconUrl?: string | null;
18032
18229
  /**
18033
18230
  * Output only. Whether the model is currently in preview. Clients should surface this via a "Preview" badge in the selector UI.
18034
18231
  */
@@ -18041,6 +18238,10 @@ export namespace discoveryengine_v1 {
18041
18238
  * 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.
18042
18239
  */
18043
18240
  modelId?: string | null;
18241
+ /**
18242
+ * Output only. Whether this model should be promoted in the GE chat homepage banner.
18243
+ */
18244
+ promoted?: boolean | null;
18044
18245
  }
18045
18246
  /**
18046
18247
  * 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.
@@ -18059,6 +18260,23 @@ export namespace discoveryengine_v1 {
18059
18260
  */
18060
18261
  regions?: string[] | null;
18061
18262
  }
18263
+ /**
18264
+ * SearchAddonSpec is used to disable add-ons for search. By default, if this field is not specified, add-ons are enabled wherever applicable.
18265
+ */
18266
+ export interface Schema$GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsSearchAddonSpec {
18267
+ /**
18268
+ * Optional. If true, generative answer add-on is disabled. Generative answer add-on includes natural language to filters and simple answers.
18269
+ */
18270
+ generativeAnswerAddOnDisabled?: boolean | null;
18271
+ /**
18272
+ * Optional. If true, disables event re-ranking and personalization to optimize KPIs & personalize results.
18273
+ */
18274
+ kpiPersonalizationAddOnDisabled?: boolean | null;
18275
+ /**
18276
+ * Optional. If true, semantic add-on is disabled. Semantic add-on includes embeddings and jetstream.
18277
+ */
18278
+ semanticAddOnDisabled?: boolean | null;
18279
+ }
18062
18280
  /**
18063
18281
  * Config to store data store type configuration for workspace data
18064
18282
  */
@@ -19673,6 +19891,7 @@ export namespace discoveryengine_v1 {
19673
19891
  * // "connectorType": "my_connectorType",
19674
19892
  * // "createEuaSaas": false,
19675
19893
  * // "createTime": "my_createTime",
19894
+ * // "dataProtectionPolicy": {},
19676
19895
  * // "dataSource": "my_dataSource",
19677
19896
  * // "destinationConfigs": [],
19678
19897
  * // "dynamicTools": [],
@@ -21106,6 +21325,7 @@ export namespace discoveryengine_v1 {
21106
21325
  * // "connectorType": "my_connectorType",
21107
21326
  * // "createEuaSaas": false,
21108
21327
  * // "createTime": "my_createTime",
21328
+ * // "dataProtectionPolicy": {},
21109
21329
  * // "dataSource": "my_dataSource",
21110
21330
  * // "destinationConfigs": [],
21111
21331
  * // "dynamicTools": [],
@@ -21247,6 +21467,316 @@ export namespace discoveryengine_v1 {
21247
21467
  }
21248
21468
  }
21249
21469
 
21470
+ /**
21471
+ * 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.
21472
+ * @example
21473
+ * ```js
21474
+ * // Before running the sample:
21475
+ * // - Enable the API at:
21476
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
21477
+ * // - Login into gcloud by running:
21478
+ * // ```sh
21479
+ * // $ gcloud auth application-default login
21480
+ * // ```
21481
+ * // - Install the npm module by running:
21482
+ * // ```sh
21483
+ * // $ npm install googleapis
21484
+ * // ```
21485
+ *
21486
+ * const {google} = require('googleapis');
21487
+ * const discoveryengine = google.discoveryengine('v1');
21488
+ *
21489
+ * async function main() {
21490
+ * const auth = new google.auth.GoogleAuth({
21491
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
21492
+ * scopes: [
21493
+ * 'https://www.googleapis.com/auth/cloud-platform',
21494
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
21495
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
21496
+ * ],
21497
+ * });
21498
+ *
21499
+ * // Acquire an auth client, and bind it to all future calls
21500
+ * const authClient = await auth.getClient();
21501
+ * google.options({auth: authClient});
21502
+ *
21503
+ * // Do the magic
21504
+ * const res = await discoveryengine.projects.locations.collections.getIamPolicy(
21505
+ * {
21506
+ * // 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).
21507
+ * 'options.requestedPolicyVersion': 'placeholder-value',
21508
+ * // 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.
21509
+ * resource:
21510
+ * 'projects/my-project/locations/my-location/collections/my-collection',
21511
+ * },
21512
+ * );
21513
+ * console.log(res.data);
21514
+ *
21515
+ * // Example response
21516
+ * // {
21517
+ * // "bindings": [],
21518
+ * // "etag": "my_etag",
21519
+ * // "version": 0
21520
+ * // }
21521
+ * }
21522
+ *
21523
+ * main().catch(e => {
21524
+ * console.error(e);
21525
+ * throw e;
21526
+ * });
21527
+ *
21528
+ * ```
21529
+ *
21530
+ * @param params - Parameters for request
21531
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
21532
+ * @param callback - Optional callback that handles the response.
21533
+ * @returns A promise if used with async/await, or void if used with a callback.
21534
+ */
21535
+ getIamPolicy(
21536
+ params: Params$Resource$Projects$Locations$Collections$Getiampolicy,
21537
+ options: StreamMethodOptions
21538
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
21539
+ getIamPolicy(
21540
+ params?: Params$Resource$Projects$Locations$Collections$Getiampolicy,
21541
+ options?: MethodOptions
21542
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
21543
+ getIamPolicy(
21544
+ params: Params$Resource$Projects$Locations$Collections$Getiampolicy,
21545
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
21546
+ callback: BodyResponseCallback<Readable>
21547
+ ): void;
21548
+ getIamPolicy(
21549
+ params: Params$Resource$Projects$Locations$Collections$Getiampolicy,
21550
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
21551
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
21552
+ ): void;
21553
+ getIamPolicy(
21554
+ params: Params$Resource$Projects$Locations$Collections$Getiampolicy,
21555
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
21556
+ ): void;
21557
+ getIamPolicy(
21558
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
21559
+ ): void;
21560
+ getIamPolicy(
21561
+ paramsOrCallback?:
21562
+ | Params$Resource$Projects$Locations$Collections$Getiampolicy
21563
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
21564
+ | BodyResponseCallback<Readable>,
21565
+ optionsOrCallback?:
21566
+ | MethodOptions
21567
+ | StreamMethodOptions
21568
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
21569
+ | BodyResponseCallback<Readable>,
21570
+ callback?:
21571
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
21572
+ | BodyResponseCallback<Readable>
21573
+ ):
21574
+ | void
21575
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
21576
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
21577
+ let params = (paramsOrCallback ||
21578
+ {}) as Params$Resource$Projects$Locations$Collections$Getiampolicy;
21579
+ let options = (optionsOrCallback || {}) as MethodOptions;
21580
+
21581
+ if (typeof paramsOrCallback === 'function') {
21582
+ callback = paramsOrCallback;
21583
+ params =
21584
+ {} as Params$Resource$Projects$Locations$Collections$Getiampolicy;
21585
+ options = {};
21586
+ }
21587
+
21588
+ if (typeof optionsOrCallback === 'function') {
21589
+ callback = optionsOrCallback;
21590
+ options = {};
21591
+ }
21592
+
21593
+ const rootUrl =
21594
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
21595
+ const parameters = {
21596
+ options: Object.assign(
21597
+ {
21598
+ url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(
21599
+ /([^:]\/)\/+/g,
21600
+ '$1'
21601
+ ),
21602
+ method: 'GET',
21603
+ apiVersion: '',
21604
+ },
21605
+ options
21606
+ ),
21607
+ params,
21608
+ requiredParams: ['resource'],
21609
+ pathParams: ['resource'],
21610
+ context: this.context,
21611
+ };
21612
+ if (callback) {
21613
+ createAPIRequest<Schema$GoogleIamV1Policy>(
21614
+ parameters,
21615
+ callback as BodyResponseCallback<unknown>
21616
+ );
21617
+ } else {
21618
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
21619
+ }
21620
+ }
21621
+
21622
+ /**
21623
+ * 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.
21624
+ * @example
21625
+ * ```js
21626
+ * // Before running the sample:
21627
+ * // - Enable the API at:
21628
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
21629
+ * // - Login into gcloud by running:
21630
+ * // ```sh
21631
+ * // $ gcloud auth application-default login
21632
+ * // ```
21633
+ * // - Install the npm module by running:
21634
+ * // ```sh
21635
+ * // $ npm install googleapis
21636
+ * // ```
21637
+ *
21638
+ * const {google} = require('googleapis');
21639
+ * const discoveryengine = google.discoveryengine('v1');
21640
+ *
21641
+ * async function main() {
21642
+ * const auth = new google.auth.GoogleAuth({
21643
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
21644
+ * scopes: [
21645
+ * 'https://www.googleapis.com/auth/cloud-platform',
21646
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
21647
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
21648
+ * ],
21649
+ * });
21650
+ *
21651
+ * // Acquire an auth client, and bind it to all future calls
21652
+ * const authClient = await auth.getClient();
21653
+ * google.options({auth: authClient});
21654
+ *
21655
+ * // Do the magic
21656
+ * const res = await discoveryengine.projects.locations.collections.setIamPolicy(
21657
+ * {
21658
+ * // 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.
21659
+ * resource:
21660
+ * 'projects/my-project/locations/my-location/collections/my-collection',
21661
+ *
21662
+ * // Request body metadata
21663
+ * requestBody: {
21664
+ * // request body parameters
21665
+ * // {
21666
+ * // "policy": {}
21667
+ * // }
21668
+ * },
21669
+ * },
21670
+ * );
21671
+ * console.log(res.data);
21672
+ *
21673
+ * // Example response
21674
+ * // {
21675
+ * // "bindings": [],
21676
+ * // "etag": "my_etag",
21677
+ * // "version": 0
21678
+ * // }
21679
+ * }
21680
+ *
21681
+ * main().catch(e => {
21682
+ * console.error(e);
21683
+ * throw e;
21684
+ * });
21685
+ *
21686
+ * ```
21687
+ *
21688
+ * @param params - Parameters for request
21689
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
21690
+ * @param callback - Optional callback that handles the response.
21691
+ * @returns A promise if used with async/await, or void if used with a callback.
21692
+ */
21693
+ setIamPolicy(
21694
+ params: Params$Resource$Projects$Locations$Collections$Setiampolicy,
21695
+ options: StreamMethodOptions
21696
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
21697
+ setIamPolicy(
21698
+ params?: Params$Resource$Projects$Locations$Collections$Setiampolicy,
21699
+ options?: MethodOptions
21700
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
21701
+ setIamPolicy(
21702
+ params: Params$Resource$Projects$Locations$Collections$Setiampolicy,
21703
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
21704
+ callback: BodyResponseCallback<Readable>
21705
+ ): void;
21706
+ setIamPolicy(
21707
+ params: Params$Resource$Projects$Locations$Collections$Setiampolicy,
21708
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
21709
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
21710
+ ): void;
21711
+ setIamPolicy(
21712
+ params: Params$Resource$Projects$Locations$Collections$Setiampolicy,
21713
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
21714
+ ): void;
21715
+ setIamPolicy(
21716
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
21717
+ ): void;
21718
+ setIamPolicy(
21719
+ paramsOrCallback?:
21720
+ | Params$Resource$Projects$Locations$Collections$Setiampolicy
21721
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
21722
+ | BodyResponseCallback<Readable>,
21723
+ optionsOrCallback?:
21724
+ | MethodOptions
21725
+ | StreamMethodOptions
21726
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
21727
+ | BodyResponseCallback<Readable>,
21728
+ callback?:
21729
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
21730
+ | BodyResponseCallback<Readable>
21731
+ ):
21732
+ | void
21733
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
21734
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
21735
+ let params = (paramsOrCallback ||
21736
+ {}) as Params$Resource$Projects$Locations$Collections$Setiampolicy;
21737
+ let options = (optionsOrCallback || {}) as MethodOptions;
21738
+
21739
+ if (typeof paramsOrCallback === 'function') {
21740
+ callback = paramsOrCallback;
21741
+ params =
21742
+ {} as Params$Resource$Projects$Locations$Collections$Setiampolicy;
21743
+ options = {};
21744
+ }
21745
+
21746
+ if (typeof optionsOrCallback === 'function') {
21747
+ callback = optionsOrCallback;
21748
+ options = {};
21749
+ }
21750
+
21751
+ const rootUrl =
21752
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
21753
+ const parameters = {
21754
+ options: Object.assign(
21755
+ {
21756
+ url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(
21757
+ /([^:]\/)\/+/g,
21758
+ '$1'
21759
+ ),
21760
+ method: 'POST',
21761
+ apiVersion: '',
21762
+ },
21763
+ options
21764
+ ),
21765
+ params,
21766
+ requiredParams: ['resource'],
21767
+ pathParams: ['resource'],
21768
+ context: this.context,
21769
+ };
21770
+ if (callback) {
21771
+ createAPIRequest<Schema$GoogleIamV1Policy>(
21772
+ parameters,
21773
+ callback as BodyResponseCallback<unknown>
21774
+ );
21775
+ } else {
21776
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
21777
+ }
21778
+ }
21779
+
21250
21780
  /**
21251
21781
  * Updates a DataConnector.
21252
21782
  * @example
@@ -21306,6 +21836,7 @@ export namespace discoveryengine_v1 {
21306
21836
  * // "connectorType": "my_connectorType",
21307
21837
  * // "createEuaSaas": false,
21308
21838
  * // "createTime": "my_createTime",
21839
+ * // "dataProtectionPolicy": {},
21309
21840
  * // "dataSource": "my_dataSource",
21310
21841
  * // "destinationConfigs": [],
21311
21842
  * // "dynamicTools": [],
@@ -21360,6 +21891,7 @@ export namespace discoveryengine_v1 {
21360
21891
  * // "connectorType": "my_connectorType",
21361
21892
  * // "createEuaSaas": false,
21362
21893
  * // "createTime": "my_createTime",
21894
+ * // "dataProtectionPolicy": {},
21363
21895
  * // "dataSource": "my_dataSource",
21364
21896
  * // "destinationConfigs": [],
21365
21897
  * // "dynamicTools": [],
@@ -21514,6 +22046,27 @@ export namespace discoveryengine_v1 {
21514
22046
  */
21515
22047
  name?: string;
21516
22048
  }
22049
+ export interface Params$Resource$Projects$Locations$Collections$Getiampolicy extends StandardParameters {
22050
+ /**
22051
+ * 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).
22052
+ */
22053
+ 'options.requestedPolicyVersion'?: number;
22054
+ /**
22055
+ * 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.
22056
+ */
22057
+ resource?: string;
22058
+ }
22059
+ export interface Params$Resource$Projects$Locations$Collections$Setiampolicy extends StandardParameters {
22060
+ /**
22061
+ * 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.
22062
+ */
22063
+ resource?: string;
22064
+
22065
+ /**
22066
+ * Request body metadata
22067
+ */
22068
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
22069
+ }
21517
22070
  export interface Params$Resource$Projects$Locations$Collections$Updatedataconnector extends StandardParameters {
21518
22071
  /**
21519
22072
  * Identifier. The full resource name of the Data Connector. Format: `projects/x/locations/x/collections/x/dataConnector`.
@@ -22386,6 +22939,7 @@ export namespace discoveryengine_v1 {
22386
22939
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
22387
22940
  * // "contentConfig": "my_contentConfig",
22388
22941
  * // "createTime": "my_createTime",
22942
+ * // "dataProtectionPolicy": {},
22389
22943
  * // "defaultSchemaId": "my_defaultSchemaId",
22390
22944
  * // "displayName": "my_displayName",
22391
22945
  * // "documentProcessingConfig": {},
@@ -22699,37 +23253,196 @@ export namespace discoveryengine_v1 {
22699
23253
  *
22700
23254
  * // Do the magic
22701
23255
  * const res =
22702
- * await discoveryengine.projects.locations.collections.dataStores.get({
22703
- * // 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.
22704
- * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
22705
- * });
23256
+ * await discoveryengine.projects.locations.collections.dataStores.get({
23257
+ * // 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.
23258
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
23259
+ * });
23260
+ * console.log(res.data);
23261
+ *
23262
+ * // Example response
23263
+ * // {
23264
+ * // "aclEnabled": false,
23265
+ * // "advancedSiteSearchConfig": {},
23266
+ * // "billingEstimation": {},
23267
+ * // "cmekConfig": {},
23268
+ * // "configurableBillingApproach": "my_configurableBillingApproach",
23269
+ * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
23270
+ * // "contentConfig": "my_contentConfig",
23271
+ * // "createTime": "my_createTime",
23272
+ * // "dataProtectionPolicy": {},
23273
+ * // "defaultSchemaId": "my_defaultSchemaId",
23274
+ * // "displayName": "my_displayName",
23275
+ * // "documentProcessingConfig": {},
23276
+ * // "federatedSearchConfig": {},
23277
+ * // "healthcareFhirConfig": {},
23278
+ * // "identityMappingStore": "my_identityMappingStore",
23279
+ * // "industryVertical": "my_industryVertical",
23280
+ * // "isInfobotFaqDataStore": false,
23281
+ * // "kmsKeyName": "my_kmsKeyName",
23282
+ * // "name": "my_name",
23283
+ * // "naturalLanguageQueryUnderstandingConfig": {},
23284
+ * // "servingConfigDataStore": {},
23285
+ * // "solutionTypes": [],
23286
+ * // "startingSchema": {},
23287
+ * // "workspaceConfig": {}
23288
+ * // }
23289
+ * }
23290
+ *
23291
+ * main().catch(e => {
23292
+ * console.error(e);
23293
+ * throw e;
23294
+ * });
23295
+ *
23296
+ * ```
23297
+ *
23298
+ * @param params - Parameters for request
23299
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
23300
+ * @param callback - Optional callback that handles the response.
23301
+ * @returns A promise if used with async/await, or void if used with a callback.
23302
+ */
23303
+ get(
23304
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Get,
23305
+ options: StreamMethodOptions
23306
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
23307
+ get(
23308
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$Get,
23309
+ options?: MethodOptions
23310
+ ): Promise<
23311
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1DataStore>
23312
+ >;
23313
+ get(
23314
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Get,
23315
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
23316
+ callback: BodyResponseCallback<Readable>
23317
+ ): void;
23318
+ get(
23319
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Get,
23320
+ options:
23321
+ | MethodOptions
23322
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>,
23323
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
23324
+ ): void;
23325
+ get(
23326
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Get,
23327
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
23328
+ ): void;
23329
+ get(
23330
+ callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
23331
+ ): void;
23332
+ get(
23333
+ paramsOrCallback?:
23334
+ | Params$Resource$Projects$Locations$Collections$Datastores$Get
23335
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
23336
+ | BodyResponseCallback<Readable>,
23337
+ optionsOrCallback?:
23338
+ | MethodOptions
23339
+ | StreamMethodOptions
23340
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
23341
+ | BodyResponseCallback<Readable>,
23342
+ callback?:
23343
+ | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
23344
+ | BodyResponseCallback<Readable>
23345
+ ):
23346
+ | void
23347
+ | Promise<
23348
+ GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1DataStore>
23349
+ >
23350
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
23351
+ let params = (paramsOrCallback ||
23352
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$Get;
23353
+ let options = (optionsOrCallback || {}) as MethodOptions;
23354
+
23355
+ if (typeof paramsOrCallback === 'function') {
23356
+ callback = paramsOrCallback;
23357
+ params =
23358
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$Get;
23359
+ options = {};
23360
+ }
23361
+
23362
+ if (typeof optionsOrCallback === 'function') {
23363
+ callback = optionsOrCallback;
23364
+ options = {};
23365
+ }
23366
+
23367
+ const rootUrl =
23368
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
23369
+ const parameters = {
23370
+ options: Object.assign(
23371
+ {
23372
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
23373
+ method: 'GET',
23374
+ apiVersion: '',
23375
+ },
23376
+ options
23377
+ ),
23378
+ params,
23379
+ requiredParams: ['name'],
23380
+ pathParams: ['name'],
23381
+ context: this.context,
23382
+ };
23383
+ if (callback) {
23384
+ createAPIRequest<Schema$GoogleCloudDiscoveryengineV1DataStore>(
23385
+ parameters,
23386
+ callback as BodyResponseCallback<unknown>
23387
+ );
23388
+ } else {
23389
+ return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1DataStore>(
23390
+ parameters
23391
+ );
23392
+ }
23393
+ }
23394
+
23395
+ /**
23396
+ * 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.
23397
+ * @example
23398
+ * ```js
23399
+ * // Before running the sample:
23400
+ * // - Enable the API at:
23401
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
23402
+ * // - Login into gcloud by running:
23403
+ * // ```sh
23404
+ * // $ gcloud auth application-default login
23405
+ * // ```
23406
+ * // - Install the npm module by running:
23407
+ * // ```sh
23408
+ * // $ npm install googleapis
23409
+ * // ```
23410
+ *
23411
+ * const {google} = require('googleapis');
23412
+ * const discoveryengine = google.discoveryengine('v1');
23413
+ *
23414
+ * async function main() {
23415
+ * const auth = new google.auth.GoogleAuth({
23416
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
23417
+ * scopes: [
23418
+ * 'https://www.googleapis.com/auth/cloud-platform',
23419
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
23420
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
23421
+ * ],
23422
+ * });
23423
+ *
23424
+ * // Acquire an auth client, and bind it to all future calls
23425
+ * const authClient = await auth.getClient();
23426
+ * google.options({auth: authClient});
23427
+ *
23428
+ * // Do the magic
23429
+ * const res =
23430
+ * await discoveryengine.projects.locations.collections.dataStores.getIamPolicy(
23431
+ * {
23432
+ * // 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).
23433
+ * 'options.requestedPolicyVersion': 'placeholder-value',
23434
+ * // 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.
23435
+ * resource:
23436
+ * 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
23437
+ * },
23438
+ * );
22706
23439
  * console.log(res.data);
22707
23440
  *
22708
23441
  * // Example response
22709
23442
  * // {
22710
- * // "aclEnabled": false,
22711
- * // "advancedSiteSearchConfig": {},
22712
- * // "billingEstimation": {},
22713
- * // "cmekConfig": {},
22714
- * // "configurableBillingApproach": "my_configurableBillingApproach",
22715
- * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
22716
- * // "contentConfig": "my_contentConfig",
22717
- * // "createTime": "my_createTime",
22718
- * // "defaultSchemaId": "my_defaultSchemaId",
22719
- * // "displayName": "my_displayName",
22720
- * // "documentProcessingConfig": {},
22721
- * // "federatedSearchConfig": {},
22722
- * // "healthcareFhirConfig": {},
22723
- * // "identityMappingStore": "my_identityMappingStore",
22724
- * // "industryVertical": "my_industryVertical",
22725
- * // "isInfobotFaqDataStore": false,
22726
- * // "kmsKeyName": "my_kmsKeyName",
22727
- * // "name": "my_name",
22728
- * // "naturalLanguageQueryUnderstandingConfig": {},
22729
- * // "servingConfigDataStore": {},
22730
- * // "solutionTypes": [],
22731
- * // "startingSchema": {},
22732
- * // "workspaceConfig": {}
23443
+ * // "bindings": [],
23444
+ * // "etag": "my_etag",
23445
+ * // "version": 0
22733
23446
  * // }
22734
23447
  * }
22735
23448
  *
@@ -22745,62 +23458,56 @@ export namespace discoveryengine_v1 {
22745
23458
  * @param callback - Optional callback that handles the response.
22746
23459
  * @returns A promise if used with async/await, or void if used with a callback.
22747
23460
  */
22748
- get(
22749
- params: Params$Resource$Projects$Locations$Collections$Datastores$Get,
23461
+ getIamPolicy(
23462
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
22750
23463
  options: StreamMethodOptions
22751
23464
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
22752
- get(
22753
- params?: Params$Resource$Projects$Locations$Collections$Datastores$Get,
23465
+ getIamPolicy(
23466
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
22754
23467
  options?: MethodOptions
22755
- ): Promise<
22756
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1DataStore>
22757
- >;
22758
- get(
22759
- params: Params$Resource$Projects$Locations$Collections$Datastores$Get,
23468
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
23469
+ getIamPolicy(
23470
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
22760
23471
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
22761
23472
  callback: BodyResponseCallback<Readable>
22762
23473
  ): void;
22763
- get(
22764
- params: Params$Resource$Projects$Locations$Collections$Datastores$Get,
22765
- options:
22766
- | MethodOptions
22767
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>,
22768
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
23474
+ getIamPolicy(
23475
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
23476
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
23477
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
22769
23478
  ): void;
22770
- get(
22771
- params: Params$Resource$Projects$Locations$Collections$Datastores$Get,
22772
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
23479
+ getIamPolicy(
23480
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy,
23481
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
22773
23482
  ): void;
22774
- get(
22775
- callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
23483
+ getIamPolicy(
23484
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
22776
23485
  ): void;
22777
- get(
23486
+ getIamPolicy(
22778
23487
  paramsOrCallback?:
22779
- | Params$Resource$Projects$Locations$Collections$Datastores$Get
22780
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
23488
+ | Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy
23489
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
22781
23490
  | BodyResponseCallback<Readable>,
22782
23491
  optionsOrCallback?:
22783
23492
  | MethodOptions
22784
23493
  | StreamMethodOptions
22785
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
23494
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
22786
23495
  | BodyResponseCallback<Readable>,
22787
23496
  callback?:
22788
- | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1DataStore>
23497
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
22789
23498
  | BodyResponseCallback<Readable>
22790
23499
  ):
22791
23500
  | void
22792
- | Promise<
22793
- GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1DataStore>
22794
- >
23501
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
22795
23502
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
22796
23503
  let params = (paramsOrCallback ||
22797
- {}) as Params$Resource$Projects$Locations$Collections$Datastores$Get;
23504
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy;
22798
23505
  let options = (optionsOrCallback || {}) as MethodOptions;
22799
23506
 
22800
23507
  if (typeof paramsOrCallback === 'function') {
22801
23508
  callback = paramsOrCallback;
22802
23509
  params =
22803
- {} as Params$Resource$Projects$Locations$Collections$Datastores$Get;
23510
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy;
22804
23511
  options = {};
22805
23512
  }
22806
23513
 
@@ -22814,26 +23521,27 @@ export namespace discoveryengine_v1 {
22814
23521
  const parameters = {
22815
23522
  options: Object.assign(
22816
23523
  {
22817
- url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
23524
+ url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(
23525
+ /([^:]\/)\/+/g,
23526
+ '$1'
23527
+ ),
22818
23528
  method: 'GET',
22819
23529
  apiVersion: '',
22820
23530
  },
22821
23531
  options
22822
23532
  ),
22823
23533
  params,
22824
- requiredParams: ['name'],
22825
- pathParams: ['name'],
23534
+ requiredParams: ['resource'],
23535
+ pathParams: ['resource'],
22826
23536
  context: this.context,
22827
23537
  };
22828
23538
  if (callback) {
22829
- createAPIRequest<Schema$GoogleCloudDiscoveryengineV1DataStore>(
23539
+ createAPIRequest<Schema$GoogleIamV1Policy>(
22830
23540
  parameters,
22831
23541
  callback as BodyResponseCallback<unknown>
22832
23542
  );
22833
23543
  } else {
22834
- return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1DataStore>(
22835
- parameters
22836
- );
23544
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
22837
23545
  }
22838
23546
  }
22839
23547
 
@@ -23205,6 +23913,7 @@ export namespace discoveryengine_v1 {
23205
23913
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
23206
23914
  * // "contentConfig": "my_contentConfig",
23207
23915
  * // "createTime": "my_createTime",
23916
+ * // "dataProtectionPolicy": {},
23208
23917
  * // "defaultSchemaId": "my_defaultSchemaId",
23209
23918
  * // "displayName": "my_displayName",
23210
23919
  * // "documentProcessingConfig": {},
@@ -23235,6 +23944,7 @@ export namespace discoveryengine_v1 {
23235
23944
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
23236
23945
  * // "contentConfig": "my_contentConfig",
23237
23946
  * // "createTime": "my_createTime",
23947
+ * // "dataProtectionPolicy": {},
23238
23948
  * // "defaultSchemaId": "my_defaultSchemaId",
23239
23949
  * // "displayName": "my_displayName",
23240
23950
  * // "documentProcessingConfig": {},
@@ -23357,6 +24067,165 @@ export namespace discoveryengine_v1 {
23357
24067
  }
23358
24068
  }
23359
24069
 
24070
+ /**
24071
+ * 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.
24072
+ * @example
24073
+ * ```js
24074
+ * // Before running the sample:
24075
+ * // - Enable the API at:
24076
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
24077
+ * // - Login into gcloud by running:
24078
+ * // ```sh
24079
+ * // $ gcloud auth application-default login
24080
+ * // ```
24081
+ * // - Install the npm module by running:
24082
+ * // ```sh
24083
+ * // $ npm install googleapis
24084
+ * // ```
24085
+ *
24086
+ * const {google} = require('googleapis');
24087
+ * const discoveryengine = google.discoveryengine('v1');
24088
+ *
24089
+ * async function main() {
24090
+ * const auth = new google.auth.GoogleAuth({
24091
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
24092
+ * scopes: [
24093
+ * 'https://www.googleapis.com/auth/cloud-platform',
24094
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
24095
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
24096
+ * ],
24097
+ * });
24098
+ *
24099
+ * // Acquire an auth client, and bind it to all future calls
24100
+ * const authClient = await auth.getClient();
24101
+ * google.options({auth: authClient});
24102
+ *
24103
+ * // Do the magic
24104
+ * const res =
24105
+ * await discoveryengine.projects.locations.collections.dataStores.setIamPolicy(
24106
+ * {
24107
+ * // 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.
24108
+ * resource:
24109
+ * 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
24110
+ *
24111
+ * // Request body metadata
24112
+ * requestBody: {
24113
+ * // request body parameters
24114
+ * // {
24115
+ * // "policy": {}
24116
+ * // }
24117
+ * },
24118
+ * },
24119
+ * );
24120
+ * console.log(res.data);
24121
+ *
24122
+ * // Example response
24123
+ * // {
24124
+ * // "bindings": [],
24125
+ * // "etag": "my_etag",
24126
+ * // "version": 0
24127
+ * // }
24128
+ * }
24129
+ *
24130
+ * main().catch(e => {
24131
+ * console.error(e);
24132
+ * throw e;
24133
+ * });
24134
+ *
24135
+ * ```
24136
+ *
24137
+ * @param params - Parameters for request
24138
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
24139
+ * @param callback - Optional callback that handles the response.
24140
+ * @returns A promise if used with async/await, or void if used with a callback.
24141
+ */
24142
+ setIamPolicy(
24143
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
24144
+ options: StreamMethodOptions
24145
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
24146
+ setIamPolicy(
24147
+ params?: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
24148
+ options?: MethodOptions
24149
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
24150
+ setIamPolicy(
24151
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
24152
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
24153
+ callback: BodyResponseCallback<Readable>
24154
+ ): void;
24155
+ setIamPolicy(
24156
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
24157
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
24158
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
24159
+ ): void;
24160
+ setIamPolicy(
24161
+ params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy,
24162
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
24163
+ ): void;
24164
+ setIamPolicy(
24165
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
24166
+ ): void;
24167
+ setIamPolicy(
24168
+ paramsOrCallback?:
24169
+ | Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy
24170
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
24171
+ | BodyResponseCallback<Readable>,
24172
+ optionsOrCallback?:
24173
+ | MethodOptions
24174
+ | StreamMethodOptions
24175
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
24176
+ | BodyResponseCallback<Readable>,
24177
+ callback?:
24178
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
24179
+ | BodyResponseCallback<Readable>
24180
+ ):
24181
+ | void
24182
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
24183
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
24184
+ let params = (paramsOrCallback ||
24185
+ {}) as Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy;
24186
+ let options = (optionsOrCallback || {}) as MethodOptions;
24187
+
24188
+ if (typeof paramsOrCallback === 'function') {
24189
+ callback = paramsOrCallback;
24190
+ params =
24191
+ {} as Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy;
24192
+ options = {};
24193
+ }
24194
+
24195
+ if (typeof optionsOrCallback === 'function') {
24196
+ callback = optionsOrCallback;
24197
+ options = {};
24198
+ }
24199
+
24200
+ const rootUrl =
24201
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
24202
+ const parameters = {
24203
+ options: Object.assign(
24204
+ {
24205
+ url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(
24206
+ /([^:]\/)\/+/g,
24207
+ '$1'
24208
+ ),
24209
+ method: 'POST',
24210
+ apiVersion: '',
24211
+ },
24212
+ options
24213
+ ),
24214
+ params,
24215
+ requiredParams: ['resource'],
24216
+ pathParams: ['resource'],
24217
+ context: this.context,
24218
+ };
24219
+ if (callback) {
24220
+ createAPIRequest<Schema$GoogleIamV1Policy>(
24221
+ parameters,
24222
+ callback as BodyResponseCallback<unknown>
24223
+ );
24224
+ } else {
24225
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
24226
+ }
24227
+ }
24228
+
23360
24229
  /**
23361
24230
  * Trains a custom model.
23362
24231
  * @example
@@ -23588,6 +24457,16 @@ export namespace discoveryengine_v1 {
23588
24457
  */
23589
24458
  name?: string;
23590
24459
  }
24460
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy extends StandardParameters {
24461
+ /**
24462
+ * 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).
24463
+ */
24464
+ 'options.requestedPolicyVersion'?: number;
24465
+ /**
24466
+ * 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.
24467
+ */
24468
+ resource?: string;
24469
+ }
23591
24470
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine extends StandardParameters {
23592
24471
  /**
23593
24472
  * 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.
@@ -23627,6 +24506,17 @@ export namespace discoveryengine_v1 {
23627
24506
  */
23628
24507
  requestBody?: Schema$GoogleCloudDiscoveryengineV1DataStore;
23629
24508
  }
24509
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy extends StandardParameters {
24510
+ /**
24511
+ * 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.
24512
+ */
24513
+ resource?: string;
24514
+
24515
+ /**
24516
+ * Request body metadata
24517
+ */
24518
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
24519
+ }
23630
24520
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Traincustommodel extends StandardParameters {
23631
24521
  /**
23632
24522
  * 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.
@@ -31553,6 +32443,7 @@ export namespace discoveryengine_v1 {
31553
32443
  * // "relevanceScoreSpec": {},
31554
32444
  * // "relevanceThreshold": "my_relevanceThreshold",
31555
32445
  * // "safeSearch": false,
32446
+ * // "searchAddonSpec": {},
31556
32447
  * // "searchAsYouTypeSpec": {},
31557
32448
  * // "session": "my_session",
31558
32449
  * // "sessionSpec": {},
@@ -31768,6 +32659,7 @@ export namespace discoveryengine_v1 {
31768
32659
  * // "relevanceScoreSpec": {},
31769
32660
  * // "relevanceThreshold": "my_relevanceThreshold",
31770
32661
  * // "safeSearch": false,
32662
+ * // "searchAddonSpec": {},
31771
32663
  * // "searchAsYouTypeSpec": {},
31772
32664
  * // "session": "my_session",
31773
32665
  * // "sessionSpec": {},
@@ -37611,7 +38503,7 @@ export namespace discoveryengine_v1 {
37611
38503
  * 'placeholder-value',
37612
38504
  * // 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).
37613
38505
  * languageCode: 'placeholder-value',
37614
- * // 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`).
38506
+ * // 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.
37615
38507
  * modelInfoView: 'placeholder-value',
37616
38508
  * // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
37617
38509
  * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/widgetConfigs/my-widgetConfig',
@@ -38019,7 +38911,7 @@ export namespace discoveryengine_v1 {
38019
38911
  */
38020
38912
  languageCode?: string;
38021
38913
  /**
38022
- * 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`).
38914
+ * 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.
38023
38915
  */
38024
38916
  modelInfoView?: string;
38025
38917
  /**
@@ -38158,6 +39050,7 @@ export namespace discoveryengine_v1 {
38158
39050
  * // "observabilityConfig": {},
38159
39051
  * // "procurementContactEmails": [],
38160
39052
  * // "searchEngineConfig": {},
39053
+ * // "sessionConfig": {},
38161
39054
  * // "solutionType": "my_solutionType",
38162
39055
  * // "updateTime": "my_updateTime"
38163
39056
  * // }
@@ -38488,6 +39381,7 @@ export namespace discoveryengine_v1 {
38488
39381
  * // "observabilityConfig": {},
38489
39382
  * // "procurementContactEmails": [],
38490
39383
  * // "searchEngineConfig": {},
39384
+ * // "sessionConfig": {},
38491
39385
  * // "solutionType": "my_solutionType",
38492
39386
  * // "updateTime": "my_updateTime"
38493
39387
  * // }
@@ -38979,6 +39873,7 @@ export namespace discoveryengine_v1 {
38979
39873
  * // "observabilityConfig": {},
38980
39874
  * // "procurementContactEmails": [],
38981
39875
  * // "searchEngineConfig": {},
39876
+ * // "sessionConfig": {},
38982
39877
  * // "solutionType": "my_solutionType",
38983
39878
  * // "updateTime": "my_updateTime"
38984
39879
  * // }
@@ -39011,6 +39906,7 @@ export namespace discoveryengine_v1 {
39011
39906
  * // "observabilityConfig": {},
39012
39907
  * // "procurementContactEmails": [],
39013
39908
  * // "searchEngineConfig": {},
39909
+ * // "sessionConfig": {},
39014
39910
  * // "solutionType": "my_solutionType",
39015
39911
  * // "updateTime": "my_updateTime"
39016
39912
  * // }
@@ -40252,6 +41148,7 @@ export namespace discoveryengine_v1 {
40252
41148
  * requestBody: {
40253
41149
  * // request body parameters
40254
41150
  * // {
41151
+ * // "agentsSpec": {},
40255
41152
  * // "generationSpec": {},
40256
41153
  * // "query": {},
40257
41154
  * // "session": "my_session",
@@ -46385,6 +47282,7 @@ export namespace discoveryengine_v1 {
46385
47282
  * // "relevanceScoreSpec": {},
46386
47283
  * // "relevanceThreshold": "my_relevanceThreshold",
46387
47284
  * // "safeSearch": false,
47285
+ * // "searchAddonSpec": {},
46388
47286
  * // "searchAsYouTypeSpec": {},
46389
47287
  * // "session": "my_session",
46390
47288
  * // "sessionSpec": {},
@@ -46600,6 +47498,7 @@ export namespace discoveryengine_v1 {
46600
47498
  * // "relevanceScoreSpec": {},
46601
47499
  * // "relevanceThreshold": "my_relevanceThreshold",
46602
47500
  * // "safeSearch": false,
47501
+ * // "searchAddonSpec": {},
46603
47502
  * // "searchAsYouTypeSpec": {},
46604
47503
  * // "session": "my_session",
46605
47504
  * // "sessionSpec": {},
@@ -48180,7 +49079,7 @@ export namespace discoveryengine_v1 {
48180
49079
  * 'placeholder-value',
48181
49080
  * // 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).
48182
49081
  * languageCode: 'placeholder-value',
48183
- * // 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`).
49082
+ * // 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.
48184
49083
  * modelInfoView: 'placeholder-value',
48185
49084
  * // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
48186
49085
  * name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/widgetConfigs/my-widgetConfig',
@@ -48588,7 +49487,7 @@ export namespace discoveryengine_v1 {
48588
49487
  */
48589
49488
  languageCode?: string;
48590
49489
  /**
48591
- * 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`).
49490
+ * 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.
48592
49491
  */
48593
49492
  modelInfoView?: string;
48594
49493
  /**
@@ -49249,6 +50148,7 @@ export namespace discoveryengine_v1 {
49249
50148
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
49250
50149
  * // "contentConfig": "my_contentConfig",
49251
50150
  * // "createTime": "my_createTime",
50151
+ * // "dataProtectionPolicy": {},
49252
50152
  * // "defaultSchemaId": "my_defaultSchemaId",
49253
50153
  * // "displayName": "my_displayName",
49254
50154
  * // "documentProcessingConfig": {},
@@ -49574,6 +50474,7 @@ export namespace discoveryengine_v1 {
49574
50474
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
49575
50475
  * // "contentConfig": "my_contentConfig",
49576
50476
  * // "createTime": "my_createTime",
50477
+ * // "dataProtectionPolicy": {},
49577
50478
  * // "defaultSchemaId": "my_defaultSchemaId",
49578
50479
  * // "displayName": "my_displayName",
49579
50480
  * // "documentProcessingConfig": {},
@@ -49695,6 +50596,156 @@ export namespace discoveryengine_v1 {
49695
50596
  }
49696
50597
  }
49697
50598
 
50599
+ /**
50600
+ * 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.
50601
+ * @example
50602
+ * ```js
50603
+ * // Before running the sample:
50604
+ * // - Enable the API at:
50605
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
50606
+ * // - Login into gcloud by running:
50607
+ * // ```sh
50608
+ * // $ gcloud auth application-default login
50609
+ * // ```
50610
+ * // - Install the npm module by running:
50611
+ * // ```sh
50612
+ * // $ npm install googleapis
50613
+ * // ```
50614
+ *
50615
+ * const {google} = require('googleapis');
50616
+ * const discoveryengine = google.discoveryengine('v1');
50617
+ *
50618
+ * async function main() {
50619
+ * const auth = new google.auth.GoogleAuth({
50620
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
50621
+ * scopes: [
50622
+ * 'https://www.googleapis.com/auth/cloud-platform',
50623
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
50624
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
50625
+ * ],
50626
+ * });
50627
+ *
50628
+ * // Acquire an auth client, and bind it to all future calls
50629
+ * const authClient = await auth.getClient();
50630
+ * google.options({auth: authClient});
50631
+ *
50632
+ * // Do the magic
50633
+ * const res = await discoveryengine.projects.locations.dataStores.getIamPolicy({
50634
+ * // 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).
50635
+ * 'options.requestedPolicyVersion': 'placeholder-value',
50636
+ * // 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.
50637
+ * resource:
50638
+ * 'projects/my-project/locations/my-location/dataStores/my-dataStore',
50639
+ * });
50640
+ * console.log(res.data);
50641
+ *
50642
+ * // Example response
50643
+ * // {
50644
+ * // "bindings": [],
50645
+ * // "etag": "my_etag",
50646
+ * // "version": 0
50647
+ * // }
50648
+ * }
50649
+ *
50650
+ * main().catch(e => {
50651
+ * console.error(e);
50652
+ * throw e;
50653
+ * });
50654
+ *
50655
+ * ```
50656
+ *
50657
+ * @param params - Parameters for request
50658
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
50659
+ * @param callback - Optional callback that handles the response.
50660
+ * @returns A promise if used with async/await, or void if used with a callback.
50661
+ */
50662
+ getIamPolicy(
50663
+ params: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
50664
+ options: StreamMethodOptions
50665
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
50666
+ getIamPolicy(
50667
+ params?: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
50668
+ options?: MethodOptions
50669
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
50670
+ getIamPolicy(
50671
+ params: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
50672
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
50673
+ callback: BodyResponseCallback<Readable>
50674
+ ): void;
50675
+ getIamPolicy(
50676
+ params: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
50677
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
50678
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
50679
+ ): void;
50680
+ getIamPolicy(
50681
+ params: Params$Resource$Projects$Locations$Datastores$Getiampolicy,
50682
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
50683
+ ): void;
50684
+ getIamPolicy(
50685
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
50686
+ ): void;
50687
+ getIamPolicy(
50688
+ paramsOrCallback?:
50689
+ | Params$Resource$Projects$Locations$Datastores$Getiampolicy
50690
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
50691
+ | BodyResponseCallback<Readable>,
50692
+ optionsOrCallback?:
50693
+ | MethodOptions
50694
+ | StreamMethodOptions
50695
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
50696
+ | BodyResponseCallback<Readable>,
50697
+ callback?:
50698
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
50699
+ | BodyResponseCallback<Readable>
50700
+ ):
50701
+ | void
50702
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
50703
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
50704
+ let params = (paramsOrCallback ||
50705
+ {}) as Params$Resource$Projects$Locations$Datastores$Getiampolicy;
50706
+ let options = (optionsOrCallback || {}) as MethodOptions;
50707
+
50708
+ if (typeof paramsOrCallback === 'function') {
50709
+ callback = paramsOrCallback;
50710
+ params =
50711
+ {} as Params$Resource$Projects$Locations$Datastores$Getiampolicy;
50712
+ options = {};
50713
+ }
50714
+
50715
+ if (typeof optionsOrCallback === 'function') {
50716
+ callback = optionsOrCallback;
50717
+ options = {};
50718
+ }
50719
+
50720
+ const rootUrl =
50721
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
50722
+ const parameters = {
50723
+ options: Object.assign(
50724
+ {
50725
+ url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(
50726
+ /([^:]\/)\/+/g,
50727
+ '$1'
50728
+ ),
50729
+ method: 'GET',
50730
+ apiVersion: '',
50731
+ },
50732
+ options
50733
+ ),
50734
+ params,
50735
+ requiredParams: ['resource'],
50736
+ pathParams: ['resource'],
50737
+ context: this.context,
50738
+ };
50739
+ if (callback) {
50740
+ createAPIRequest<Schema$GoogleIamV1Policy>(
50741
+ parameters,
50742
+ callback as BodyResponseCallback<unknown>
50743
+ );
50744
+ } else {
50745
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
50746
+ }
50747
+ }
50748
+
49698
50749
  /**
49699
50750
  * Gets the SiteSearchEngine.
49700
50751
  * @example
@@ -50057,6 +51108,7 @@ export namespace discoveryengine_v1 {
50057
51108
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
50058
51109
  * // "contentConfig": "my_contentConfig",
50059
51110
  * // "createTime": "my_createTime",
51111
+ * // "dataProtectionPolicy": {},
50060
51112
  * // "defaultSchemaId": "my_defaultSchemaId",
50061
51113
  * // "displayName": "my_displayName",
50062
51114
  * // "documentProcessingConfig": {},
@@ -50087,6 +51139,7 @@ export namespace discoveryengine_v1 {
50087
51139
  * // "configurableBillingApproachUpdateTime": "my_configurableBillingApproachUpdateTime",
50088
51140
  * // "contentConfig": "my_contentConfig",
50089
51141
  * // "createTime": "my_createTime",
51142
+ * // "dataProtectionPolicy": {},
50090
51143
  * // "defaultSchemaId": "my_defaultSchemaId",
50091
51144
  * // "displayName": "my_displayName",
50092
51145
  * // "documentProcessingConfig": {},
@@ -50207,6 +51260,162 @@ export namespace discoveryengine_v1 {
50207
51260
  );
50208
51261
  }
50209
51262
  }
51263
+
51264
+ /**
51265
+ * 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.
51266
+ * @example
51267
+ * ```js
51268
+ * // Before running the sample:
51269
+ * // - Enable the API at:
51270
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
51271
+ * // - Login into gcloud by running:
51272
+ * // ```sh
51273
+ * // $ gcloud auth application-default login
51274
+ * // ```
51275
+ * // - Install the npm module by running:
51276
+ * // ```sh
51277
+ * // $ npm install googleapis
51278
+ * // ```
51279
+ *
51280
+ * const {google} = require('googleapis');
51281
+ * const discoveryengine = google.discoveryengine('v1');
51282
+ *
51283
+ * async function main() {
51284
+ * const auth = new google.auth.GoogleAuth({
51285
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
51286
+ * scopes: [
51287
+ * 'https://www.googleapis.com/auth/cloud-platform',
51288
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
51289
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
51290
+ * ],
51291
+ * });
51292
+ *
51293
+ * // Acquire an auth client, and bind it to all future calls
51294
+ * const authClient = await auth.getClient();
51295
+ * google.options({auth: authClient});
51296
+ *
51297
+ * // Do the magic
51298
+ * const res = await discoveryengine.projects.locations.dataStores.setIamPolicy({
51299
+ * // 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.
51300
+ * resource:
51301
+ * 'projects/my-project/locations/my-location/dataStores/my-dataStore',
51302
+ *
51303
+ * // Request body metadata
51304
+ * requestBody: {
51305
+ * // request body parameters
51306
+ * // {
51307
+ * // "policy": {}
51308
+ * // }
51309
+ * },
51310
+ * });
51311
+ * console.log(res.data);
51312
+ *
51313
+ * // Example response
51314
+ * // {
51315
+ * // "bindings": [],
51316
+ * // "etag": "my_etag",
51317
+ * // "version": 0
51318
+ * // }
51319
+ * }
51320
+ *
51321
+ * main().catch(e => {
51322
+ * console.error(e);
51323
+ * throw e;
51324
+ * });
51325
+ *
51326
+ * ```
51327
+ *
51328
+ * @param params - Parameters for request
51329
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
51330
+ * @param callback - Optional callback that handles the response.
51331
+ * @returns A promise if used with async/await, or void if used with a callback.
51332
+ */
51333
+ setIamPolicy(
51334
+ params: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
51335
+ options: StreamMethodOptions
51336
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
51337
+ setIamPolicy(
51338
+ params?: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
51339
+ options?: MethodOptions
51340
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
51341
+ setIamPolicy(
51342
+ params: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
51343
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
51344
+ callback: BodyResponseCallback<Readable>
51345
+ ): void;
51346
+ setIamPolicy(
51347
+ params: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
51348
+ options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>,
51349
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
51350
+ ): void;
51351
+ setIamPolicy(
51352
+ params: Params$Resource$Projects$Locations$Datastores$Setiampolicy,
51353
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
51354
+ ): void;
51355
+ setIamPolicy(
51356
+ callback: BodyResponseCallback<Schema$GoogleIamV1Policy>
51357
+ ): void;
51358
+ setIamPolicy(
51359
+ paramsOrCallback?:
51360
+ | Params$Resource$Projects$Locations$Datastores$Setiampolicy
51361
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
51362
+ | BodyResponseCallback<Readable>,
51363
+ optionsOrCallback?:
51364
+ | MethodOptions
51365
+ | StreamMethodOptions
51366
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
51367
+ | BodyResponseCallback<Readable>,
51368
+ callback?:
51369
+ | BodyResponseCallback<Schema$GoogleIamV1Policy>
51370
+ | BodyResponseCallback<Readable>
51371
+ ):
51372
+ | void
51373
+ | Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>
51374
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
51375
+ let params = (paramsOrCallback ||
51376
+ {}) as Params$Resource$Projects$Locations$Datastores$Setiampolicy;
51377
+ let options = (optionsOrCallback || {}) as MethodOptions;
51378
+
51379
+ if (typeof paramsOrCallback === 'function') {
51380
+ callback = paramsOrCallback;
51381
+ params =
51382
+ {} as Params$Resource$Projects$Locations$Datastores$Setiampolicy;
51383
+ options = {};
51384
+ }
51385
+
51386
+ if (typeof optionsOrCallback === 'function') {
51387
+ callback = optionsOrCallback;
51388
+ options = {};
51389
+ }
51390
+
51391
+ const rootUrl =
51392
+ options.rootUrl || 'https://discoveryengine.googleapis.com/';
51393
+ const parameters = {
51394
+ options: Object.assign(
51395
+ {
51396
+ url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(
51397
+ /([^:]\/)\/+/g,
51398
+ '$1'
51399
+ ),
51400
+ method: 'POST',
51401
+ apiVersion: '',
51402
+ },
51403
+ options
51404
+ ),
51405
+ params,
51406
+ requiredParams: ['resource'],
51407
+ pathParams: ['resource'],
51408
+ context: this.context,
51409
+ };
51410
+ if (callback) {
51411
+ createAPIRequest<Schema$GoogleIamV1Policy>(
51412
+ parameters,
51413
+ callback as BodyResponseCallback<unknown>
51414
+ );
51415
+ } else {
51416
+ return createAPIRequest<Schema$GoogleIamV1Policy>(parameters);
51417
+ }
51418
+ }
50210
51419
  }
50211
51420
 
50212
51421
  export interface Params$Resource$Projects$Locations$Datastores$Completequery extends StandardParameters {
@@ -50274,6 +51483,16 @@ export namespace discoveryengine_v1 {
50274
51483
  */
50275
51484
  name?: string;
50276
51485
  }
51486
+ export interface Params$Resource$Projects$Locations$Datastores$Getiampolicy extends StandardParameters {
51487
+ /**
51488
+ * 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).
51489
+ */
51490
+ 'options.requestedPolicyVersion'?: number;
51491
+ /**
51492
+ * 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.
51493
+ */
51494
+ resource?: string;
51495
+ }
50277
51496
  export interface Params$Resource$Projects$Locations$Datastores$Getsitesearchengine extends StandardParameters {
50278
51497
  /**
50279
51498
  * 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.
@@ -50313,6 +51532,17 @@ export namespace discoveryengine_v1 {
50313
51532
  */
50314
51533
  requestBody?: Schema$GoogleCloudDiscoveryengineV1DataStore;
50315
51534
  }
51535
+ export interface Params$Resource$Projects$Locations$Datastores$Setiampolicy extends StandardParameters {
51536
+ /**
51537
+ * 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.
51538
+ */
51539
+ resource?: string;
51540
+
51541
+ /**
51542
+ * Request body metadata
51543
+ */
51544
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
51545
+ }
50316
51546
 
50317
51547
  export class Resource$Projects$Locations$Datastores$Branches {
50318
51548
  context: APIRequestContext;
@@ -57643,6 +58873,7 @@ export namespace discoveryengine_v1 {
57643
58873
  * // "relevanceScoreSpec": {},
57644
58874
  * // "relevanceThreshold": "my_relevanceThreshold",
57645
58875
  * // "safeSearch": false,
58876
+ * // "searchAddonSpec": {},
57646
58877
  * // "searchAsYouTypeSpec": {},
57647
58878
  * // "session": "my_session",
57648
58879
  * // "sessionSpec": {},
@@ -57857,6 +59088,7 @@ export namespace discoveryengine_v1 {
57857
59088
  * // "relevanceScoreSpec": {},
57858
59089
  * // "relevanceThreshold": "my_relevanceThreshold",
57859
59090
  * // "safeSearch": false,
59091
+ * // "searchAddonSpec": {},
57860
59092
  * // "searchAsYouTypeSpec": {},
57861
59093
  * // "session": "my_session",
57862
59094
  * // "sessionSpec": {},
@@ -62617,7 +63849,7 @@ export namespace discoveryengine_v1 {
62617
63849
  * 'placeholder-value',
62618
63850
  * // 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).
62619
63851
  * languageCode: 'placeholder-value',
62620
- * // 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`).
63852
+ * // 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.
62621
63853
  * modelInfoView: 'placeholder-value',
62622
63854
  * // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
62623
63855
  * name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/widgetConfigs/my-widgetConfig',
@@ -63022,7 +64254,7 @@ export namespace discoveryengine_v1 {
63022
64254
  */
63023
64255
  languageCode?: string;
63024
64256
  /**
63025
- * 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`).
64257
+ * 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.
63026
64258
  */
63027
64259
  modelInfoView?: string;
63028
64260
  /**