@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.
@@ -1303,6 +1303,10 @@ export declare namespace discoveryengine_v1alpha {
1303
1303
  * Required. Model name (e.g. `gemini-2.5-flash`, `gemini-3.1-pro-preview`). See `model_mixture` for the list of allowed models.
1304
1304
  */
1305
1305
  name?: string | null;
1306
+ /**
1307
+ * Optional. Sent as Vertex `ThinkingConfig.thinking_level`.
1308
+ */
1309
+ thinkingLevel?: string | null;
1306
1310
  /**
1307
1311
  * 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.
1308
1312
  */
@@ -2498,6 +2502,10 @@ export declare namespace discoveryengine_v1alpha {
2498
2502
  * Optional. Configuration for the generation of the assistant response.
2499
2503
  */
2500
2504
  generationConfig?: Schema$GoogleCloudDiscoveryengineV1alphaAssistantGenerationConfig;
2505
+ /**
2506
+ * Optional. Indicates whether Knowledge Catalog is enabled for this specific assistant. When enabled, it powers discovery context using organizational data.
2507
+ */
2508
+ knowledgeCatalogEnabled?: boolean | null;
2501
2509
  /**
2502
2510
  * Immutable. Resource name of the assistant. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/assistants/{assistant\}` It must be a UTF-8 encoded string with a length limit of 1024 characters.
2503
2511
  */
@@ -2711,6 +2719,12 @@ export declare namespace discoveryengine_v1alpha {
2711
2719
  * Referenced content and related document metadata.
2712
2720
  */
2713
2721
  export interface Schema$GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReference {
2722
+ /**
2723
+ * Output only. Generic structured chunk metadata from upstream data source connectors.
2724
+ */
2725
+ chunkMetadata?: {
2726
+ [key: string]: any;
2727
+ } | null;
2714
2728
  /**
2715
2729
  * Chunk of code snippet from the referenced document.
2716
2730
  */
@@ -3845,7 +3859,7 @@ export declare namespace discoveryengine_v1alpha {
3845
3859
  */
3846
3860
  numUniqueUsersThreshold?: number | null;
3847
3861
  /**
3848
- * This field is only meaningful for suggestions generated from user events or search history. If a query shows up less than this threshold, it may indicate that the query is rarely searched and thus will not be generated as a suggestion. This is field can be helpful for preventing PII queries becoming suggestions, as those queries are usually uniquely searched. If not set, the default value is 3 used in the generation pipeline.
3862
+ * This field is only meaningful for suggestions generated from user events or search history. If a query shows up less than this threshold, it may indicate that the query is rarely searched and thus will not be generated as a suggestion. This is field can be helpful for preventing PII queries becoming suggestions, as those queries are usually uniquely searched. If not set, the default value is 8 used in the generation pipeline.
3849
3863
  */
3850
3864
  queryFrequencyThreshold?: number | null;
3851
3865
  /**
@@ -5745,7 +5759,7 @@ export declare namespace discoveryengine_v1alpha {
5745
5759
  */
5746
5760
  displayName?: string | null;
5747
5761
  /**
5748
- * 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`
5762
+ * 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`
5749
5763
  */
5750
5764
  features?: {
5751
5765
  [key: string]: string;
@@ -5792,6 +5806,10 @@ export declare namespace discoveryengine_v1alpha {
5792
5806
  * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
5793
5807
  */
5794
5808
  searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig;
5809
+ /**
5810
+ * Optional. Non-empty default. Session config for the engine.
5811
+ */
5812
+ sessionConfig?: Schema$GoogleCloudDiscoveryengineV1alphaSessionConfig;
5795
5813
  /**
5796
5814
  * Additional config specs for a `similar-items` engine.
5797
5815
  */
@@ -7259,6 +7277,42 @@ export declare namespace discoveryengine_v1alpha {
7259
7277
  */
7260
7278
  minimum?: number | null;
7261
7279
  }
7280
+ /**
7281
+ * Request message for making a call to an MCP connector. It carries the connector name, the method to invoke, and optional parameters.
7282
+ */
7283
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpRequest {
7284
+ /**
7285
+ * Optional. The engine resource name (e.g. "projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}"). Used as the search engine id when invoking tool registry tools that issue Discovery Search Service requests.
7286
+ */
7287
+ engine?: string | null;
7288
+ /**
7289
+ * Required. The method to invoke (e.g. "tools/list", "tools/call", "resources/read", "prompts/get", etc.).
7290
+ */
7291
+ method?: string | null;
7292
+ /**
7293
+ * Optional. Arbitrary structured parameters for the method. Using google.protobuf.Struct keeps the payload schema-flexible, matching JSON-RPC's free-form `params` field.
7294
+ */
7295
+ params?: {
7296
+ [key: string]: any;
7297
+ } | null;
7298
+ /**
7299
+ * Optional. The tool spec version to resolve the connector's tool surface against. This corresponds to the connector's BAP tool spec file name (e.g. "v2", "v5.2"). When unset, the server uses its default (latest) tool spec for the connector. Applies to all methods (e.g. "tools/list" and "tools/call").
7300
+ */
7301
+ toolSpecVersion?: string | null;
7302
+ }
7303
+ /**
7304
+ * Response message returning the result of an MCP connector invocation. It contains either a successful result payload or error details.
7305
+ */
7306
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse {
7307
+ /**
7308
+ * Error details when the call fails.
7309
+ */
7310
+ error?: Schema$GoogleCloudDiscoveryengineV1alphaMcpError;
7311
+ /**
7312
+ * Successful result — arbitrary structured data.
7313
+ */
7314
+ result?: any | null;
7315
+ }
7262
7316
  /**
7263
7317
  * Language info for DataStore.
7264
7318
  */
@@ -7801,6 +7855,23 @@ export declare namespace discoveryengine_v1alpha {
7801
7855
  */
7802
7856
  export interface Schema$GoogleCloudDiscoveryengineV1alphaManagedAgentDefinition {
7803
7857
  }
7858
+ /**
7859
+ * McpError represents error details when an MCP call fails. This structure follows the JSON-RPC 2.0 error object shape.
7860
+ */
7861
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaMcpError {
7862
+ /**
7863
+ * Numeric error code.
7864
+ */
7865
+ code?: number | null;
7866
+ /**
7867
+ * Optional structured data with additional error context.
7868
+ */
7869
+ data?: any | null;
7870
+ /**
7871
+ * Short, human-readable description of the error.
7872
+ */
7873
+ message?: string | null;
7874
+ }
7804
7875
  /**
7805
7876
  * Media-specific user event information.
7806
7877
  */
@@ -10798,6 +10869,28 @@ export declare namespace discoveryengine_v1alpha {
10798
10869
  */
10799
10870
  userPseudoId?: string | null;
10800
10871
  }
10872
+ /**
10873
+ * Configuration for the session.
10874
+ */
10875
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSessionConfig {
10876
+ /**
10877
+ * Optional. Session management policy that defines who will manage the session.
10878
+ */
10879
+ sessionManagementPolicy?: string | null;
10880
+ /**
10881
+ * Optional. The TTL for the session. If unset, the default value is 60 days.
10882
+ */
10883
+ sessionTtl?: Schema$GoogleCloudDiscoveryengineV1alphaSessionConfigSessionTtl;
10884
+ }
10885
+ /**
10886
+ * Defines the TTL for sessions.
10887
+ */
10888
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSessionConfigSessionTtl {
10889
+ /**
10890
+ * Defines the number of days for session TTL.
10891
+ */
10892
+ days?: number | null;
10893
+ }
10801
10894
  /**
10802
10895
  * Represents a turn, including a query from the user and a answer from service.
10803
10896
  */
@@ -11067,6 +11160,10 @@ export declare namespace discoveryengine_v1alpha {
11067
11160
  * Optional. Specification of actions for the request.
11068
11161
  */
11069
11162
  actionSpec?: Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistRequestActionSpec;
11163
+ /**
11164
+ * Optional. Specification of agents that are used to serve the request.
11165
+ */
11166
+ agentsSpec?: Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistRequestAgentsSpec;
11070
11167
  /**
11071
11168
  * Optional. Specification of the generation configuration for the request.
11072
11169
  */
@@ -11097,6 +11194,24 @@ export declare namespace discoveryengine_v1alpha {
11097
11194
  */
11098
11195
  actionDisabled?: boolean | null;
11099
11196
  }
11197
+ /**
11198
+ * Specification of agents that are used to serve the request.
11199
+ */
11200
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistRequestAgentsSpec {
11201
+ /**
11202
+ * Optional. Specification of agents that are used to serve the request.
11203
+ */
11204
+ agentSpecs?: Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistRequestAgentsSpecAgentSpec[];
11205
+ }
11206
+ /**
11207
+ * Specification of an agent.
11208
+ */
11209
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistRequestAgentsSpecAgentSpec {
11210
+ /**
11211
+ * 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.
11212
+ */
11213
+ agentId?: string | null;
11214
+ }
11100
11215
  /**
11101
11216
  * Assistant generation specification for the request. This allows to override the default generation configuration at the engine level.
11102
11217
  */
@@ -12029,7 +12144,7 @@ export declare namespace discoveryengine_v1alpha {
12029
12144
  */
12030
12145
  id?: string | null;
12031
12146
  /**
12032
- * 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`.
12147
+ * 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.
12033
12148
  */
12034
12149
  isFirstParty?: boolean | null;
12035
12150
  /**
@@ -12062,6 +12177,10 @@ export declare namespace discoveryengine_v1alpha {
12062
12177
  * Customer provided configurations.
12063
12178
  */
12064
12179
  export interface Schema$GoogleCloudDiscoveryengineV1alphaWidgetConfigCustomerProvidedConfig {
12180
+ /**
12181
+ * 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.
12182
+ */
12183
+ complianceLevel?: string | null;
12065
12184
  /**
12066
12185
  * Customer type.
12067
12186
  */
@@ -12275,7 +12394,7 @@ export declare namespace discoveryengine_v1alpha {
12275
12394
  */
12276
12395
  enableVisualContentSummary?: boolean | null;
12277
12396
  /**
12278
- * 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`
12397
+ * 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`
12279
12398
  */
12280
12399
  features?: {
12281
12400
  [key: string]: string;
@@ -12397,6 +12516,10 @@ export declare namespace discoveryengine_v1alpha {
12397
12516
  * Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, `graph_5`).
12398
12517
  */
12399
12518
  icon?: string | null;
12519
+ /**
12520
+ * 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.
12521
+ */
12522
+ iconUrl?: string | null;
12400
12523
  /**
12401
12524
  * Output only. Whether the model is currently in preview. Clients should surface this via a "Preview" badge in the selector UI.
12402
12525
  */
@@ -12409,6 +12532,10 @@ export declare namespace discoveryengine_v1alpha {
12409
12532
  * 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.
12410
12533
  */
12411
12534
  modelId?: string | null;
12535
+ /**
12536
+ * Output only. Whether this model should be promoted in the GE chat homepage banner.
12537
+ */
12538
+ promoted?: boolean | null;
12412
12539
  }
12413
12540
  /**
12414
12541
  * 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.
@@ -12579,6 +12706,10 @@ export declare namespace discoveryengine_v1alpha {
12579
12706
  * Optional. List of banned phrases.
12580
12707
  */
12581
12708
  bannedPhrases?: Schema$GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase[];
12709
+ /**
12710
+ * Optional. Data protection policy to be used for sanitizing file uploads.
12711
+ */
12712
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
12582
12713
  /**
12583
12714
  * Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses.
12584
12715
  */
@@ -13169,6 +13300,24 @@ export declare namespace discoveryengine_v1alpha {
13169
13300
  */
13170
13301
  updateTime?: string | null;
13171
13302
  }
13303
+ /**
13304
+ * Contains the data protection policy config for a DataStore or a connector.
13305
+ */
13306
+ export interface Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicy {
13307
+ /**
13308
+ * Optional. Specifies the sensitive data protection policy for the connector source.
13309
+ */
13310
+ sensitiveDataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicySensitiveDataProtectionPolicy;
13311
+ }
13312
+ /**
13313
+ * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview) policy.
13314
+ */
13315
+ export interface Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicySensitiveDataProtectionPolicy {
13316
+ /**
13317
+ * Optional. Specifies the resource name of the Sensitive Data Protection content policy.
13318
+ */
13319
+ policy?: string | null;
13320
+ }
13172
13321
  /**
13173
13322
  * DataStore captures global settings and configs at the DataStore level.
13174
13323
  */
@@ -13205,6 +13354,10 @@ export declare namespace discoveryengine_v1alpha {
13205
13354
  * Output only. Timestamp the DataStore was created at.
13206
13355
  */
13207
13356
  createTime?: string | null;
13357
+ /**
13358
+ * Optional. Specifies the data protection policy for the data store.
13359
+ */
13360
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1betaDataProtectionPolicy;
13208
13361
  /**
13209
13362
  * Output only. The id of the default Schema associated to this data store.
13210
13363
  */
@@ -13713,7 +13866,7 @@ export declare namespace discoveryengine_v1alpha {
13713
13866
  */
13714
13867
  displayName?: string | null;
13715
13868
  /**
13716
- * 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`
13869
+ * 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`
13717
13870
  */
13718
13871
  features?: {
13719
13872
  [key: string]: string;
@@ -13756,6 +13909,10 @@ export declare namespace discoveryengine_v1alpha {
13756
13909
  * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
13757
13910
  */
13758
13911
  searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig;
13912
+ /**
13913
+ * Optional. Non-empty default. Session config for the engine.
13914
+ */
13915
+ sessionConfig?: Schema$GoogleCloudDiscoveryengineV1betaSessionConfig;
13759
13916
  /**
13760
13917
  * Required. The solutions of the engine.
13761
13918
  */
@@ -15459,6 +15616,28 @@ export declare namespace discoveryengine_v1alpha {
15459
15616
  */
15460
15617
  mode?: string | null;
15461
15618
  }
15619
+ /**
15620
+ * Configuration for the session.
15621
+ */
15622
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSessionConfig {
15623
+ /**
15624
+ * Optional. Session management policy that defines who will manage the session.
15625
+ */
15626
+ sessionManagementPolicy?: string | null;
15627
+ /**
15628
+ * Optional. The TTL for the session. If unset, the default value is 60 days.
15629
+ */
15630
+ sessionTtl?: Schema$GoogleCloudDiscoveryengineV1betaSessionConfigSessionTtl;
15631
+ }
15632
+ /**
15633
+ * Defines the TTL for sessions.
15634
+ */
15635
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSessionConfigSessionTtl {
15636
+ /**
15637
+ * Defines the number of days for session TTL.
15638
+ */
15639
+ days?: number | null;
15640
+ }
15462
15641
  /**
15463
15642
  * Metadata related to the progress of the CrawlRateManagementService.SetDedicatedCrawlRate operation. This will be returned by the google.longrunning.Operation.metadata field.
15464
15643
  */
@@ -16159,6 +16338,10 @@ export declare namespace discoveryengine_v1alpha {
16159
16338
  * Output only. Timestamp the DataConnector was created at.
16160
16339
  */
16161
16340
  createTime?: string | null;
16341
+ /**
16342
+ * Optional. Specifies the data protection policy for the connector.
16343
+ */
16344
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
16162
16345
  /**
16163
16346
  * 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).
16164
16347
  */
@@ -16436,6 +16619,24 @@ export declare namespace discoveryengine_v1alpha {
16436
16619
  */
16437
16620
  startingSchema?: Schema$GoogleCloudDiscoveryengineV1Schema;
16438
16621
  }
16622
+ /**
16623
+ * Contains the data protection policy config for a DataStore or a connector.
16624
+ */
16625
+ export interface Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy {
16626
+ /**
16627
+ * Optional. Specifies the sensitive data protection policy for the connector source.
16628
+ */
16629
+ sensitiveDataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicySensitiveDataProtectionPolicy;
16630
+ }
16631
+ /**
16632
+ * Specifies a Sensitive Data Protection (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview) policy.
16633
+ */
16634
+ export interface Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicySensitiveDataProtectionPolicy {
16635
+ /**
16636
+ * Optional. Specifies the resource name of the Sensitive Data Protection content policy.
16637
+ */
16638
+ policy?: string | null;
16639
+ }
16439
16640
  /**
16440
16641
  * DataStore captures global settings and configs at the DataStore level.
16441
16642
  */
@@ -16472,6 +16673,10 @@ export declare namespace discoveryengine_v1alpha {
16472
16673
  * Output only. Timestamp the DataStore was created at.
16473
16674
  */
16474
16675
  createTime?: string | null;
16676
+ /**
16677
+ * Optional. Specifies the data protection policy for the data store.
16678
+ */
16679
+ dataProtectionPolicy?: Schema$GoogleCloudDiscoveryengineV1DataProtectionPolicy;
16475
16680
  /**
16476
16681
  * Output only. The id of the default Schema associated to this data store.
16477
16682
  */
@@ -17038,7 +17243,7 @@ export declare namespace discoveryengine_v1alpha {
17038
17243
  */
17039
17244
  displayName?: string | null;
17040
17245
  /**
17041
- * 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`
17246
+ * 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`
17042
17247
  */
17043
17248
  features?: {
17044
17249
  [key: string]: string;
@@ -17081,6 +17286,10 @@ export declare namespace discoveryengine_v1alpha {
17081
17286
  * Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH.
17082
17287
  */
17083
17288
  searchEngineConfig?: Schema$GoogleCloudDiscoveryengineV1EngineSearchEngineConfig;
17289
+ /**
17290
+ * Optional. Non-empty default. Session config for the engine.
17291
+ */
17292
+ sessionConfig?: Schema$GoogleCloudDiscoveryengineV1SessionConfig;
17084
17293
  /**
17085
17294
  * Required. The solutions of the engine.
17086
17295
  */
@@ -18176,6 +18385,28 @@ export declare namespace discoveryengine_v1alpha {
18176
18385
  */
18177
18386
  demotionEventType?: string | null;
18178
18387
  }
18388
+ /**
18389
+ * Configuration for the session.
18390
+ */
18391
+ export interface Schema$GoogleCloudDiscoveryengineV1SessionConfig {
18392
+ /**
18393
+ * Optional. Session management policy that defines who will manage the session.
18394
+ */
18395
+ sessionManagementPolicy?: string | null;
18396
+ /**
18397
+ * Optional. The TTL for the session. If unset, the default value is 60 days.
18398
+ */
18399
+ sessionTtl?: Schema$GoogleCloudDiscoveryengineV1SessionConfigSessionTtl;
18400
+ }
18401
+ /**
18402
+ * Defines the TTL for sessions.
18403
+ */
18404
+ export interface Schema$GoogleCloudDiscoveryengineV1SessionConfigSessionTtl {
18405
+ /**
18406
+ * Defines the number of days for session TTL.
18407
+ */
18408
+ days?: number | null;
18409
+ }
18179
18410
  /**
18180
18411
  * Metadata for DataConnectorService.SetUpDataConnector method.
18181
18412
  */
@@ -18458,32 +18689,6 @@ export declare namespace discoveryengine_v1alpha {
18458
18689
  */
18459
18690
  type?: string | null;
18460
18691
  }
18461
- /**
18462
- * Account and role information.
18463
- */
18464
- export interface Schema$GoogleCloudNotebooklmV1alphaAccountAndRole {
18465
- /**
18466
- * Required. The email address associated with the account.
18467
- */
18468
- email?: string | null;
18469
- /**
18470
- * Required. The role in the notebook.
18471
- */
18472
- role?: string | null;
18473
- }
18474
- /**
18475
- * Metadata about an agentspace source.
18476
- */
18477
- export interface Schema$GoogleCloudNotebooklmV1alphaAgentspaceMetadata {
18478
- /**
18479
- * Output only. The full document name in Agentspace.
18480
- */
18481
- documentName?: string | null;
18482
- /**
18483
- * Output only. The title of the document.
18484
- */
18485
- documentTitle?: string | null;
18486
- }
18487
18692
  /**
18488
18693
  * An audio overview of a notebook. This is a summary of the notebook in audio format.
18489
18694
  */
@@ -18530,51 +18735,6 @@ export declare namespace discoveryengine_v1alpha {
18530
18735
  */
18531
18736
  sourceIds?: Schema$GoogleCloudNotebooklmV1alphaSourceId[];
18532
18737
  }
18533
- /**
18534
- * Request for SourceService.BatchCreateSources method.
18535
- */
18536
- export interface Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest {
18537
- /**
18538
- * Required. The UserContents to be uploaded.
18539
- */
18540
- userContents?: Schema$GoogleCloudNotebooklmV1alphaUserContent[];
18541
- }
18542
- /**
18543
- * Response for SourceService.BatchCreateSources method.
18544
- */
18545
- export interface Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse {
18546
- /**
18547
- * The Sources.
18548
- */
18549
- sources?: Schema$GoogleCloudNotebooklmV1alphaSource[];
18550
- }
18551
- /**
18552
- * Request for NotebookService.BatchDeleteNotebooks method.
18553
- */
18554
- export interface Schema$GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest {
18555
- /**
18556
- * Required. Full resource names of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
18557
- */
18558
- names?: string[] | null;
18559
- }
18560
- /**
18561
- * Request for BatchDeleteSourcesRequest method.
18562
- */
18563
- export interface Schema$GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest {
18564
- /**
18565
- * Required. Names of sources to be deleted. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source\}
18566
- */
18567
- names?: string[] | null;
18568
- }
18569
- /**
18570
- * Customer-managed encryption configuration for Notebooks.
18571
- */
18572
- export interface Schema$GoogleCloudNotebooklmV1alphaCmekConfig {
18573
- /**
18574
- * Required. KMS key resource name which will be used to encrypt resources `projects/{project\}/locations/{location\}/keyRings/{keyRing\}/cryptoKeys/{keyId\}`.
18575
- */
18576
- kmsKey?: string | null;
18577
- }
18578
18738
  /**
18579
18739
  * Request for AudioOverviewService.CreateAudioOverview method.
18580
18740
  */
@@ -18593,308 +18753,6 @@ export declare namespace discoveryengine_v1alpha {
18593
18753
  */
18594
18754
  audioOverview?: Schema$GoogleCloudNotebooklmV1alphaAudioOverview;
18595
18755
  }
18596
- /**
18597
- * Failure reason containing details about why a source failed to ingest.
18598
- */
18599
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReason {
18600
- /**
18601
- * An audio file transcription specific error.
18602
- */
18603
- audioTranscriptionError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError;
18604
- /**
18605
- * Error if the user tries to add a source from a blocked domain.
18606
- */
18607
- domainBlocked?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked;
18608
- /**
18609
- * A google drive specific error.
18610
- */
18611
- googleDriveError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError;
18612
- /**
18613
- * Indicates an error occurred while ingesting the source.
18614
- */
18615
- ingestionError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonIngestionError;
18616
- /**
18617
- * Indicates that the source MIME type is blocked.
18618
- */
18619
- mimeTypeBlocked?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked;
18620
- /**
18621
- * Indicates that the source is paywalled and cannot be ingested.
18622
- */
18623
- paywallError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonPaywallError;
18624
- /**
18625
- * Indicates that the policy check failed.
18626
- */
18627
- policyCheckFailed?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed;
18628
- /**
18629
- * Indicates that the source is empty.
18630
- */
18631
- sourceEmpty?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty;
18632
- /**
18633
- * Error if the user tries to update beyond their limits.
18634
- */
18635
- sourceLimitExceeded?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded;
18636
- /**
18637
- * Indicates source word count exceeded the user's limit.
18638
- */
18639
- sourceTooLong?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong;
18640
- /**
18641
- * Indicates that the source is unreachable.
18642
- */
18643
- sourceUnreachable?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable;
18644
- /**
18645
- * Indicates an unknown error occurred.
18646
- */
18647
- unknown?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonUnknown;
18648
- /**
18649
- * Indicates an error occurred while uploading the source.
18650
- */
18651
- uploadError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonUploadError;
18652
- /**
18653
- * A youtube specific error.
18654
- */
18655
- youtubeError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError;
18656
- }
18657
- /**
18658
- * An audio file transcription specific error.
18659
- */
18660
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError {
18661
- /**
18662
- * Could not detect language of the file (it may not be speech).
18663
- */
18664
- languageDetectionFailed?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed;
18665
- /**
18666
- * No audio was detected in the input file (it may have been a video).
18667
- */
18668
- noAudioDetected?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected;
18669
- }
18670
- /**
18671
- * Could not detect language of the file (it may not be speech).
18672
- */
18673
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed {
18674
- }
18675
- /**
18676
- * No audio was detected in the input file.
18677
- */
18678
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected {
18679
- }
18680
- /**
18681
- * Error to indicate that the source was removed because the domain was blocked.
18682
- */
18683
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked {
18684
- }
18685
- /**
18686
- * A google drive specific error.
18687
- */
18688
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError {
18689
- /**
18690
- * The user was prevented from downloading the file.
18691
- */
18692
- downloadPrevented?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented;
18693
- }
18694
- /**
18695
- * The user was prevented from downloading the file.
18696
- */
18697
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented {
18698
- }
18699
- /**
18700
- * Indicates an error occurred while ingesting the source.
18701
- */
18702
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonIngestionError {
18703
- }
18704
- /**
18705
- * Indicates that the source MIME type is blocked.
18706
- */
18707
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked {
18708
- }
18709
- /**
18710
- * Indicates that the source is paywalled and cannot be ingested.
18711
- */
18712
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonPaywallError {
18713
- }
18714
- /**
18715
- * Indicates that the policy check failed.
18716
- */
18717
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed {
18718
- }
18719
- /**
18720
- * Indicates that the source is empty.
18721
- */
18722
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty {
18723
- }
18724
- /**
18725
- * Indicates that the user does not have space for this source.
18726
- */
18727
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded {
18728
- }
18729
- /**
18730
- * Indicates source word count exceeded the user's limit.
18731
- */
18732
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong {
18733
- /**
18734
- * The number of words in the source.
18735
- */
18736
- wordCount?: number | null;
18737
- /**
18738
- * The word count limit for the current user at the time of the upload.
18739
- */
18740
- wordLimit?: number | null;
18741
- }
18742
- /**
18743
- * Indicates that the source is unreachable. This is primarily used for sources that are added via URL.
18744
- */
18745
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable {
18746
- /**
18747
- * Describes why the source is unreachable.
18748
- */
18749
- errorDetails?: string | null;
18750
- }
18751
- /**
18752
- * Indicates an unknown error occurred.
18753
- */
18754
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonUnknown {
18755
- }
18756
- /**
18757
- * Indicates an error occurred while uploading the source.
18758
- */
18759
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonUploadError {
18760
- }
18761
- /**
18762
- * A youtube specific error.
18763
- */
18764
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError {
18765
- /**
18766
- * Error to indicate that the source was removed because the video was deleted.
18767
- */
18768
- videoDeleted?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted;
18769
- }
18770
- /**
18771
- * Error to indicate that the source was removed because the video was deleted.
18772
- */
18773
- export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted {
18774
- }
18775
- /**
18776
- * Metadata about a google doc source.
18777
- */
18778
- export interface Schema$GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata {
18779
- /**
18780
- * Output only. The document id of the google doc.
18781
- */
18782
- documentId?: string | null;
18783
- /**
18784
- * Output only. Revision id for the doc.
18785
- */
18786
- revisionId?: string | null;
18787
- }
18788
- /**
18789
- * Response for NotebookService.ListRecentlyViewedNotebooks method.
18790
- */
18791
- export interface Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse {
18792
- /**
18793
- * The page token, provide this to retrieve the subsequent page.
18794
- */
18795
- nextPageToken?: string | null;
18796
- /**
18797
- * The list of recently viewed notebooks.
18798
- */
18799
- notebooks?: Schema$GoogleCloudNotebooklmV1alphaNotebook[];
18800
- }
18801
- /**
18802
- * Notebook is a resource where users can store their content (as sources) and interacts with the content.
18803
- */
18804
- export interface Schema$GoogleCloudNotebooklmV1alphaNotebook {
18805
- /**
18806
- * Output only. CMEK-related information for the Notebook.
18807
- */
18808
- cmekConfig?: Schema$GoogleCloudNotebooklmV1alphaCmekConfig;
18809
- /**
18810
- * Output only. The emoji of the notebook.
18811
- */
18812
- emoji?: string | null;
18813
- /**
18814
- * Output only. The metadata of the notebook.
18815
- */
18816
- metadata?: Schema$GoogleCloudNotebooklmV1alphaNotebookMetadata;
18817
- /**
18818
- * Identifier. The identifier of the notebook. Format: `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`. This field must be a UTF-8 encoded string.
18819
- */
18820
- name?: string | null;
18821
- /**
18822
- * Output only. Notebook id, which is the last segment of the notebook's resource name.
18823
- */
18824
- notebookId?: string | null;
18825
- /**
18826
- * Output only. List of sources in the notebook. This is an output only field.
18827
- */
18828
- sources?: Schema$GoogleCloudNotebooklmV1alphaSource[];
18829
- /**
18830
- * Optional. The title of the notebook.
18831
- */
18832
- title?: string | null;
18833
- }
18834
- /**
18835
- * Metadata for a notebook.
18836
- */
18837
- export interface Schema$GoogleCloudNotebooklmV1alphaNotebookMetadata {
18838
- /**
18839
- * The time at which this project was created.
18840
- */
18841
- createTime?: string | null;
18842
- /**
18843
- * True if the project is shareable.
18844
- */
18845
- isShareable?: boolean | null;
18846
- /**
18847
- * True if this project is currently shared with other people, false otherwise.
18848
- */
18849
- isShared?: boolean | null;
18850
- /**
18851
- * A timestamp indicating the time that the current in session user has last viewed the project.
18852
- */
18853
- lastViewed?: string | null;
18854
- }
18855
- /**
18856
- * Request for NotebookService.ShareNotebook method.
18857
- */
18858
- export interface Schema$GoogleCloudNotebooklmV1alphaShareNotebookRequest {
18859
- /**
18860
- * Required. The list of accounts and roles to share the notebook with.
18861
- */
18862
- accountAndRoles?: Schema$GoogleCloudNotebooklmV1alphaAccountAndRole[];
18863
- /**
18864
- * Required. Whether to notify the shared users via email.
18865
- */
18866
- notifyViaEmail?: boolean | null;
18867
- }
18868
- /**
18869
- * Response for NotebookService.ShareNotebook method.
18870
- */
18871
- export interface Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse {
18872
- }
18873
- /**
18874
- * Source represents a single source of content.
18875
- */
18876
- export interface Schema$GoogleCloudNotebooklmV1alphaSource {
18877
- /**
18878
- * Output only. Metadata about the source.
18879
- */
18880
- metadata?: Schema$GoogleCloudNotebooklmV1alphaSourceMetadata;
18881
- /**
18882
- * Identifier. The full resource name of the source. Format: `projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source_id\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
18883
- */
18884
- name?: string | null;
18885
- /**
18886
- * Output only. Status of the source, and any failure reasons.
18887
- */
18888
- settings?: Schema$GoogleCloudNotebooklmV1alphaSourceSettings;
18889
- /**
18890
- * Optional. Output only. Source id, which is the last segment of the source's resource name.
18891
- */
18892
- sourceId?: Schema$GoogleCloudNotebooklmV1alphaSourceId;
18893
- /**
18894
- * Optional. Title of the source.
18895
- */
18896
- title?: string | null;
18897
- }
18898
18756
  /**
18899
18757
  * SourceId is the last segment of the source's resource name.
18900
18758
  */
@@ -18904,155 +18762,6 @@ export declare namespace discoveryengine_v1alpha {
18904
18762
  */
18905
18763
  id?: string | null;
18906
18764
  }
18907
- /**
18908
- * Represents the metadata of a source and some additional information.
18909
- */
18910
- export interface Schema$GoogleCloudNotebooklmV1alphaSourceMetadata {
18911
- /**
18912
- * Metadata for an agentspace source.
18913
- */
18914
- agentspaceMetadata?: Schema$GoogleCloudNotebooklmV1alphaAgentspaceMetadata;
18915
- /**
18916
- * Metadata for a google doc source.
18917
- */
18918
- googleDocsMetadata?: Schema$GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata;
18919
- /**
18920
- * The timestamp the source was added.
18921
- */
18922
- sourceAddedTimestamp?: string | null;
18923
- /**
18924
- * The number of tokens in the source.
18925
- */
18926
- tokenCount?: number | null;
18927
- /**
18928
- * The word count of the source.
18929
- */
18930
- wordCount?: number | null;
18931
- /**
18932
- * Metadata for a youtube video source.
18933
- */
18934
- youtubeMetadata?: Schema$GoogleCloudNotebooklmV1alphaYoutubeMetadata;
18935
- }
18936
- /**
18937
- * Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request).
18938
- */
18939
- export interface Schema$GoogleCloudNotebooklmV1alphaSourceSettings {
18940
- /**
18941
- * Failure reason containing details about why a source failed to ingest.
18942
- */
18943
- failureReason?: Schema$GoogleCloudNotebooklmV1alphaFailureReason;
18944
- /**
18945
- * Status of the source.
18946
- */
18947
- status?: string | null;
18948
- }
18949
- /**
18950
- * The "Content" messages refer to data the user wants to upload.
18951
- */
18952
- export interface Schema$GoogleCloudNotebooklmV1alphaUserContent {
18953
- /**
18954
- * Agentspace content uploaded as source.
18955
- */
18956
- agentspaceContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent;
18957
- /**
18958
- * The content from Google Drive.
18959
- */
18960
- googleDriveContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent;
18961
- /**
18962
- * The text content uploaded as source.
18963
- */
18964
- textContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentTextContent;
18965
- /**
18966
- * The video content uploaded as source.
18967
- */
18968
- videoContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentVideoContent;
18969
- /**
18970
- * The web content uploaded as source.
18971
- */
18972
- webContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentWebContent;
18973
- }
18974
- /**
18975
- * Agentspace content uploaded as source.
18976
- */
18977
- export interface Schema$GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent {
18978
- /**
18979
- * Optional. The full resource name of the Agentspace document. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/branches/{branch\}/documents/{document_id\}`.
18980
- */
18981
- documentName?: string | null;
18982
- /**
18983
- * Optional. Engine to verify the permission of the document. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`.
18984
- */
18985
- engineName?: string | null;
18986
- /**
18987
- * Optional. Resource name of the idea forge instance. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/sessions/{session\}/ideaForgeInstances/{instance\}`
18988
- */
18989
- ideaforgeIdeaName?: string | null;
18990
- }
18991
- /**
18992
- * The content from Google Drive.
18993
- */
18994
- export interface Schema$GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent {
18995
- /**
18996
- * The document id of the selected document.
18997
- */
18998
- documentId?: string | null;
18999
- /**
19000
- * The mime type of the selected document. This can be used to differentiate type of content selected in the drive picker. Use application/vnd.google-apps.document for Google Docs or application/vnd.google-apps.presentation for Google Slides.
19001
- */
19002
- mimeType?: string | null;
19003
- /**
19004
- * The name to be displayed for the source.
19005
- */
19006
- sourceName?: string | null;
19007
- }
19008
- /**
19009
- * The text content uploaded as source.
19010
- */
19011
- export interface Schema$GoogleCloudNotebooklmV1alphaUserContentTextContent {
19012
- /**
19013
- * The name to be displayed for the source.
19014
- */
19015
- content?: string | null;
19016
- /**
19017
- * The display name of the text source.
19018
- */
19019
- sourceName?: string | null;
19020
- }
19021
- /**
19022
- * Video content uploaded as source.
19023
- */
19024
- export interface Schema$GoogleCloudNotebooklmV1alphaUserContentVideoContent {
19025
- /**
19026
- * The youtube url of the video content.
19027
- */
19028
- youtubeUrl?: string | null;
19029
- }
19030
- /**
19031
- * The web content uploaded as source.
19032
- */
19033
- export interface Schema$GoogleCloudNotebooklmV1alphaUserContentWebContent {
19034
- /**
19035
- * The name to be displayed for the source.
19036
- */
19037
- sourceName?: string | null;
19038
- /**
19039
- * If URL is supplied, will fetch the webpage in the backend.
19040
- */
19041
- url?: string | null;
19042
- }
19043
- /**
19044
- * Metadata about a youtube video source.
19045
- */
19046
- export interface Schema$GoogleCloudNotebooklmV1alphaYoutubeMetadata {
19047
- /**
19048
- * Output only. The channel name of the youtube video.
19049
- */
19050
- channelName?: string | null;
19051
- /**
19052
- * Output only. The id of the youtube video.
19053
- */
19054
- videoId?: string | null;
19055
- }
19056
18765
  /**
19057
18766
  * Associates `members`, or principals, with a `role`.
19058
18767
  */
@@ -22305,6 +22014,77 @@ export declare namespace discoveryengine_v1alpha {
22305
22014
  getDataConnector(params: Params$Resource$Projects$Locations$Collections$Getdataconnector, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDataConnector>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDataConnector>): void;
22306
22015
  getDataConnector(params: Params$Resource$Projects$Locations$Collections$Getdataconnector, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDataConnector>): void;
22307
22016
  getDataConnector(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDataConnector>): void;
22017
+ /**
22018
+ * 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.
22019
+ * @example
22020
+ * ```js
22021
+ * // Before running the sample:
22022
+ * // - Enable the API at:
22023
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
22024
+ * // - Login into gcloud by running:
22025
+ * // ```sh
22026
+ * // $ gcloud auth application-default login
22027
+ * // ```
22028
+ * // - Install the npm module by running:
22029
+ * // ```sh
22030
+ * // $ npm install googleapis
22031
+ * // ```
22032
+ *
22033
+ * const {google} = require('googleapis');
22034
+ * const discoveryengine = google.discoveryengine('v1alpha');
22035
+ *
22036
+ * async function main() {
22037
+ * const auth = new google.auth.GoogleAuth({
22038
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
22039
+ * scopes: [
22040
+ * 'https://www.googleapis.com/auth/cloud-platform',
22041
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
22042
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
22043
+ * ],
22044
+ * });
22045
+ *
22046
+ * // Acquire an auth client, and bind it to all future calls
22047
+ * const authClient = await auth.getClient();
22048
+ * google.options({auth: authClient});
22049
+ *
22050
+ * // Do the magic
22051
+ * const res = await discoveryengine.projects.locations.collections.getIamPolicy(
22052
+ * {
22053
+ * // 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).
22054
+ * 'options.requestedPolicyVersion': 'placeholder-value',
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
+ * resource:
22057
+ * 'projects/my-project/locations/my-location/collections/my-collection',
22058
+ * },
22059
+ * );
22060
+ * console.log(res.data);
22061
+ *
22062
+ * // Example response
22063
+ * // {
22064
+ * // "bindings": [],
22065
+ * // "etag": "my_etag",
22066
+ * // "version": 0
22067
+ * // }
22068
+ * }
22069
+ *
22070
+ * main().catch(e => {
22071
+ * console.error(e);
22072
+ * throw e;
22073
+ * });
22074
+ *
22075
+ * ```
22076
+ *
22077
+ * @param params - Parameters for request
22078
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
22079
+ * @param callback - Optional callback that handles the response.
22080
+ * @returns A promise if used with async/await, or void if used with a callback.
22081
+ */
22082
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Getiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
22083
+ getIamPolicy(params?: Params$Resource$Projects$Locations$Collections$Getiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
22084
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
22085
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
22086
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Getiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
22087
+ getIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
22308
22088
  /**
22309
22089
  * Gets a list of Collections.
22310
22090
  * @example
@@ -22457,6 +22237,83 @@ export declare namespace discoveryengine_v1alpha {
22457
22237
  patch(params: Params$Resource$Projects$Locations$Collections$Patch, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
22458
22238
  patch(params: Params$Resource$Projects$Locations$Collections$Patch, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
22459
22239
  patch(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
22240
+ /**
22241
+ * 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.
22242
+ * @example
22243
+ * ```js
22244
+ * // Before running the sample:
22245
+ * // - Enable the API at:
22246
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
22247
+ * // - Login into gcloud by running:
22248
+ * // ```sh
22249
+ * // $ gcloud auth application-default login
22250
+ * // ```
22251
+ * // - Install the npm module by running:
22252
+ * // ```sh
22253
+ * // $ npm install googleapis
22254
+ * // ```
22255
+ *
22256
+ * const {google} = require('googleapis');
22257
+ * const discoveryengine = google.discoveryengine('v1alpha');
22258
+ *
22259
+ * async function main() {
22260
+ * const auth = new google.auth.GoogleAuth({
22261
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
22262
+ * scopes: [
22263
+ * 'https://www.googleapis.com/auth/cloud-platform',
22264
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
22265
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
22266
+ * ],
22267
+ * });
22268
+ *
22269
+ * // Acquire an auth client, and bind it to all future calls
22270
+ * const authClient = await auth.getClient();
22271
+ * google.options({auth: authClient});
22272
+ *
22273
+ * // Do the magic
22274
+ * const res = await discoveryengine.projects.locations.collections.setIamPolicy(
22275
+ * {
22276
+ * // 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.
22277
+ * resource:
22278
+ * 'projects/my-project/locations/my-location/collections/my-collection',
22279
+ *
22280
+ * // Request body metadata
22281
+ * requestBody: {
22282
+ * // request body parameters
22283
+ * // {
22284
+ * // "policy": {}
22285
+ * // }
22286
+ * },
22287
+ * },
22288
+ * );
22289
+ * console.log(res.data);
22290
+ *
22291
+ * // Example response
22292
+ * // {
22293
+ * // "bindings": [],
22294
+ * // "etag": "my_etag",
22295
+ * // "version": 0
22296
+ * // }
22297
+ * }
22298
+ *
22299
+ * main().catch(e => {
22300
+ * console.error(e);
22301
+ * throw e;
22302
+ * });
22303
+ *
22304
+ * ```
22305
+ *
22306
+ * @param params - Parameters for request
22307
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
22308
+ * @param callback - Optional callback that handles the response.
22309
+ * @returns A promise if used with async/await, or void if used with a callback.
22310
+ */
22311
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Setiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
22312
+ setIamPolicy(params?: Params$Resource$Projects$Locations$Collections$Setiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
22313
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
22314
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
22315
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Setiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
22316
+ setIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
22460
22317
  /**
22461
22318
  * Updates a DataConnector.
22462
22319
  * @example
@@ -22646,6 +22503,16 @@ export declare namespace discoveryengine_v1alpha {
22646
22503
  */
22647
22504
  name?: string;
22648
22505
  }
22506
+ export interface Params$Resource$Projects$Locations$Collections$Getiampolicy extends StandardParameters {
22507
+ /**
22508
+ * 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).
22509
+ */
22510
+ 'options.requestedPolicyVersion'?: number;
22511
+ /**
22512
+ * 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.
22513
+ */
22514
+ resource?: string;
22515
+ }
22649
22516
  export interface Params$Resource$Projects$Locations$Collections$List extends StandardParameters {
22650
22517
  /**
22651
22518
  * Filter returned collections by associated data connector data sources. For example: `filter = 'data_source:jira confluence'`. If the filter is empty, we return all collections under a project and location.
@@ -22678,6 +22545,16 @@ export declare namespace discoveryengine_v1alpha {
22678
22545
  */
22679
22546
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaCollection;
22680
22547
  }
22548
+ export interface Params$Resource$Projects$Locations$Collections$Setiampolicy extends StandardParameters {
22549
+ /**
22550
+ * 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.
22551
+ */
22552
+ resource?: string;
22553
+ /**
22554
+ * Request body metadata
22555
+ */
22556
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
22557
+ }
22681
22558
  export interface Params$Resource$Projects$Locations$Collections$Updatedataconnector extends StandardParameters {
22682
22559
  /**
22683
22560
  * Identifier. The full resource name of the Data Connector. Format: `projects/x/locations/x/collections/x/dataConnector`.
@@ -22916,6 +22793,86 @@ export declare namespace discoveryengine_v1alpha {
22916
22793
  getConnectorSecret(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Getconnectorsecret, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaGetConnectorSecretResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaGetConnectorSecretResponse>): void;
22917
22794
  getConnectorSecret(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Getconnectorsecret, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaGetConnectorSecretResponse>): void;
22918
22795
  getConnectorSecret(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaGetConnectorSecretResponse>): void;
22796
+ /**
22797
+ * Makes a call to an MCP connector.
22798
+ * @example
22799
+ * ```js
22800
+ * // Before running the sample:
22801
+ * // - Enable the API at:
22802
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
22803
+ * // - Login into gcloud by running:
22804
+ * // ```sh
22805
+ * // $ gcloud auth application-default login
22806
+ * // ```
22807
+ * // - Install the npm module by running:
22808
+ * // ```sh
22809
+ * // $ npm install googleapis
22810
+ * // ```
22811
+ *
22812
+ * const {google} = require('googleapis');
22813
+ * const discoveryengine = google.discoveryengine('v1alpha');
22814
+ *
22815
+ * async function main() {
22816
+ * const auth = new google.auth.GoogleAuth({
22817
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
22818
+ * scopes: [
22819
+ * 'https://www.googleapis.com/auth/cloud-platform',
22820
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
22821
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
22822
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
22823
+ * ],
22824
+ * });
22825
+ *
22826
+ * // Acquire an auth client, and bind it to all future calls
22827
+ * const authClient = await auth.getClient();
22828
+ * google.options({auth: authClient});
22829
+ *
22830
+ * // Do the magic
22831
+ * const res =
22832
+ * await discoveryengine.projects.locations.collections.dataConnector.invokeConnectorMcp(
22833
+ * {
22834
+ * // Required. DataConnector resource. The data connector used for making the MCP call.
22835
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/dataConnector',
22836
+ *
22837
+ * // Request body metadata
22838
+ * requestBody: {
22839
+ * // request body parameters
22840
+ * // {
22841
+ * // "engine": "my_engine",
22842
+ * // "method": "my_method",
22843
+ * // "params": {},
22844
+ * // "toolSpecVersion": "my_toolSpecVersion"
22845
+ * // }
22846
+ * },
22847
+ * },
22848
+ * );
22849
+ * console.log(res.data);
22850
+ *
22851
+ * // Example response
22852
+ * // {
22853
+ * // "error": {},
22854
+ * // "result": {}
22855
+ * // }
22856
+ * }
22857
+ *
22858
+ * main().catch(e => {
22859
+ * console.error(e);
22860
+ * throw e;
22861
+ * });
22862
+ *
22863
+ * ```
22864
+ *
22865
+ * @param params - Parameters for request
22866
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
22867
+ * @param callback - Optional callback that handles the response.
22868
+ * @returns A promise if used with async/await, or void if used with a callback.
22869
+ */
22870
+ invokeConnectorMcp(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
22871
+ invokeConnectorMcp(params?: Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>>;
22872
+ invokeConnectorMcp(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
22873
+ invokeConnectorMcp(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>): void;
22874
+ invokeConnectorMcp(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>): void;
22875
+ invokeConnectorMcp(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>): void;
22919
22876
  /**
22920
22877
  * ServeMcpDeleteRequest serves a MCP DELETE request.
22921
22878
  * @example
@@ -23104,6 +23061,16 @@ export declare namespace discoveryengine_v1alpha {
23104
23061
  */
23105
23062
  name?: string;
23106
23063
  }
23064
+ export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp extends StandardParameters {
23065
+ /**
23066
+ * Required. DataConnector resource. The data connector used for making the MCP call.
23067
+ */
23068
+ name?: string;
23069
+ /**
23070
+ * Request body metadata
23071
+ */
23072
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpRequest;
23073
+ }
23107
23074
  export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp extends StandardParameters {
23108
23075
  /**
23109
23076
  *
@@ -24097,7 +24064,7 @@ export declare namespace discoveryengine_v1alpha {
24097
24064
  getDocumentProcessingConfig(params: Params$Resource$Projects$Locations$Collections$Datastores$Getdocumentprocessingconfig, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>): void;
24098
24065
  getDocumentProcessingConfig(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>): void;
24099
24066
  /**
24100
- * Gets the SiteSearchEngine.
24067
+ * 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.
24101
24068
  * @example
24102
24069
  * ```js
24103
24070
  * // Before running the sample:
@@ -24131,17 +24098,22 @@ export declare namespace discoveryengine_v1alpha {
24131
24098
  *
24132
24099
  * // Do the magic
24133
24100
  * const res =
24134
- * await discoveryengine.projects.locations.collections.dataStores.getSiteSearchEngine(
24101
+ * await discoveryengine.projects.locations.collections.dataStores.getIamPolicy(
24135
24102
  * {
24136
- * // 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.
24137
- * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/siteSearchEngine',
24103
+ * // 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).
24104
+ * 'options.requestedPolicyVersion': 'placeholder-value',
24105
+ * // 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.
24106
+ * resource:
24107
+ * 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
24138
24108
  * },
24139
24109
  * );
24140
24110
  * console.log(res.data);
24141
24111
  *
24142
24112
  * // Example response
24143
24113
  * // {
24144
- * // "name": "my_name"
24114
+ * // "bindings": [],
24115
+ * // "etag": "my_etag",
24116
+ * // "version": 0
24145
24117
  * // }
24146
24118
  * }
24147
24119
  *
@@ -24157,14 +24129,14 @@ export declare namespace discoveryengine_v1alpha {
24157
24129
  * @param callback - Optional callback that handles the response.
24158
24130
  * @returns A promise if used with async/await, or void if used with a callback.
24159
24131
  */
24160
- getSiteSearchEngine(params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
24161
- getSiteSearchEngine(params?: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>>;
24162
- getSiteSearchEngine(params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
24163
- getSiteSearchEngine(params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>): void;
24164
- getSiteSearchEngine(params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>): void;
24165
- getSiteSearchEngine(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>): void;
24132
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
24133
+ getIamPolicy(params?: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
24134
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
24135
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
24136
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
24137
+ getIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
24166
24138
  /**
24167
- * Lists all the DataStores associated with the project.
24139
+ * Gets the SiteSearchEngine.
24168
24140
  * @example
24169
24141
  * ```js
24170
24142
  * // Before running the sample:
@@ -24198,25 +24170,17 @@ export declare namespace discoveryengine_v1alpha {
24198
24170
  *
24199
24171
  * // Do the magic
24200
24172
  * const res =
24201
- * await discoveryengine.projects.locations.collections.dataStores.list({
24202
- * // Filter by solution type . For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'`
24203
- * filter: 'placeholder-value',
24204
- * // Maximum number of DataStores to return. If unspecified, defaults to 10. The maximum allowed value is 50. Values above 50 will be coerced to 50. If this field is negative, an INVALID_ARGUMENT is returned.
24205
- * pageSize: 'placeholder-value',
24206
- * // A page token ListDataStoresResponse.next_page_token, received from a previous DataStoreService.ListDataStores call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to DataStoreService.ListDataStores must match the call that provided the page token. Otherwise, an INVALID_ARGUMENT error is returned.
24207
- * pageToken: 'placeholder-value',
24208
- * // Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}/collections/{collection_id\}`. If the caller does not have permission to list DataStores under this location, regardless of whether or not this data store exists, a PERMISSION_DENIED error is returned.
24209
- * parent:
24210
- * 'projects/my-project/locations/my-location/collections/my-collection',
24211
- * // Optional. The view to apply to the returned DataStores. Defaults to DataStoreView.DATA_STORE_VIEW_BASIC if unspecified. DataStoreView.DATA_STORE_VIEW_FULL additionally populates DataStore.icon_uri for connector-backed data stores. Resolving connector icons requires extra lookups, so request it only when the caller renders the icons.
24212
- * view: 'placeholder-value',
24213
- * });
24173
+ * await discoveryengine.projects.locations.collections.dataStores.getSiteSearchEngine(
24174
+ * {
24175
+ * // 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.
24176
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/siteSearchEngine',
24177
+ * },
24178
+ * );
24214
24179
  * console.log(res.data);
24215
24180
  *
24216
24181
  * // Example response
24217
24182
  * // {
24218
- * // "dataStores": [],
24219
- * // "nextPageToken": "my_nextPageToken"
24183
+ * // "name": "my_name"
24220
24184
  * // }
24221
24185
  * }
24222
24186
  *
@@ -24232,14 +24196,89 @@ export declare namespace discoveryengine_v1alpha {
24232
24196
  * @param callback - Optional callback that handles the response.
24233
24197
  * @returns A promise if used with async/await, or void if used with a callback.
24234
24198
  */
24235
- list(params: Params$Resource$Projects$Locations$Collections$Datastores$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
24236
- list(params?: Params$Resource$Projects$Locations$Collections$Datastores$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaListDataStoresResponse>>;
24237
- list(params: Params$Resource$Projects$Locations$Collections$Datastores$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
24238
- list(params: Params$Resource$Projects$Locations$Collections$Datastores$List, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListDataStoresResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListDataStoresResponse>): void;
24239
- list(params: Params$Resource$Projects$Locations$Collections$Datastores$List, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListDataStoresResponse>): void;
24240
- list(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListDataStoresResponse>): void;
24199
+ getSiteSearchEngine(params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
24200
+ getSiteSearchEngine(params?: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>>;
24201
+ getSiteSearchEngine(params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
24202
+ getSiteSearchEngine(params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>): void;
24203
+ getSiteSearchEngine(params: Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>): void;
24204
+ getSiteSearchEngine(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaSiteSearchEngine>): void;
24241
24205
  /**
24242
- * Updates a DataStore
24206
+ * Lists all the DataStores associated with the project.
24207
+ * @example
24208
+ * ```js
24209
+ * // Before running the sample:
24210
+ * // - Enable the API at:
24211
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
24212
+ * // - Login into gcloud by running:
24213
+ * // ```sh
24214
+ * // $ gcloud auth application-default login
24215
+ * // ```
24216
+ * // - Install the npm module by running:
24217
+ * // ```sh
24218
+ * // $ npm install googleapis
24219
+ * // ```
24220
+ *
24221
+ * const {google} = require('googleapis');
24222
+ * const discoveryengine = google.discoveryengine('v1alpha');
24223
+ *
24224
+ * async function main() {
24225
+ * const auth = new google.auth.GoogleAuth({
24226
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
24227
+ * scopes: [
24228
+ * 'https://www.googleapis.com/auth/cloud-platform',
24229
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
24230
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
24231
+ * ],
24232
+ * });
24233
+ *
24234
+ * // Acquire an auth client, and bind it to all future calls
24235
+ * const authClient = await auth.getClient();
24236
+ * google.options({auth: authClient});
24237
+ *
24238
+ * // Do the magic
24239
+ * const res =
24240
+ * await discoveryengine.projects.locations.collections.dataStores.list({
24241
+ * // Filter by solution type . For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'`
24242
+ * filter: 'placeholder-value',
24243
+ * // Maximum number of DataStores to return. If unspecified, defaults to 10. The maximum allowed value is 50. Values above 50 will be coerced to 50. If this field is negative, an INVALID_ARGUMENT is returned.
24244
+ * pageSize: 'placeholder-value',
24245
+ * // A page token ListDataStoresResponse.next_page_token, received from a previous DataStoreService.ListDataStores call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to DataStoreService.ListDataStores must match the call that provided the page token. Otherwise, an INVALID_ARGUMENT error is returned.
24246
+ * pageToken: 'placeholder-value',
24247
+ * // Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}/collections/{collection_id\}`. If the caller does not have permission to list DataStores under this location, regardless of whether or not this data store exists, a PERMISSION_DENIED error is returned.
24248
+ * parent:
24249
+ * 'projects/my-project/locations/my-location/collections/my-collection',
24250
+ * // Optional. The view to apply to the returned DataStores. Defaults to DataStoreView.DATA_STORE_VIEW_BASIC if unspecified. DataStoreView.DATA_STORE_VIEW_FULL additionally populates DataStore.icon_uri for connector-backed data stores. Resolving connector icons requires extra lookups, so request it only when the caller renders the icons.
24251
+ * view: 'placeholder-value',
24252
+ * });
24253
+ * console.log(res.data);
24254
+ *
24255
+ * // Example response
24256
+ * // {
24257
+ * // "dataStores": [],
24258
+ * // "nextPageToken": "my_nextPageToken"
24259
+ * // }
24260
+ * }
24261
+ *
24262
+ * main().catch(e => {
24263
+ * console.error(e);
24264
+ * throw e;
24265
+ * });
24266
+ *
24267
+ * ```
24268
+ *
24269
+ * @param params - Parameters for request
24270
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
24271
+ * @param callback - Optional callback that handles the response.
24272
+ * @returns A promise if used with async/await, or void if used with a callback.
24273
+ */
24274
+ list(params: Params$Resource$Projects$Locations$Collections$Datastores$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
24275
+ list(params?: Params$Resource$Projects$Locations$Collections$Datastores$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaListDataStoresResponse>>;
24276
+ list(params: Params$Resource$Projects$Locations$Collections$Datastores$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
24277
+ list(params: Params$Resource$Projects$Locations$Collections$Datastores$List, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListDataStoresResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListDataStoresResponse>): void;
24278
+ list(params: Params$Resource$Projects$Locations$Collections$Datastores$List, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListDataStoresResponse>): void;
24279
+ list(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListDataStoresResponse>): void;
24280
+ /**
24281
+ * Updates a DataStore
24243
24282
  * @example
24244
24283
  * ```js
24245
24284
  * // Before running the sample:
@@ -24527,6 +24566,84 @@ export declare namespace discoveryengine_v1alpha {
24527
24566
  replacePatientFilter(params: Params$Resource$Projects$Locations$Collections$Datastores$Replacepatientfilter, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
24528
24567
  replacePatientFilter(params: Params$Resource$Projects$Locations$Collections$Datastores$Replacepatientfilter, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
24529
24568
  replacePatientFilter(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
24569
+ /**
24570
+ * 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.
24571
+ * @example
24572
+ * ```js
24573
+ * // Before running the sample:
24574
+ * // - Enable the API at:
24575
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
24576
+ * // - Login into gcloud by running:
24577
+ * // ```sh
24578
+ * // $ gcloud auth application-default login
24579
+ * // ```
24580
+ * // - Install the npm module by running:
24581
+ * // ```sh
24582
+ * // $ npm install googleapis
24583
+ * // ```
24584
+ *
24585
+ * const {google} = require('googleapis');
24586
+ * const discoveryengine = google.discoveryengine('v1alpha');
24587
+ *
24588
+ * async function main() {
24589
+ * const auth = new google.auth.GoogleAuth({
24590
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
24591
+ * scopes: [
24592
+ * 'https://www.googleapis.com/auth/cloud-platform',
24593
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
24594
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
24595
+ * ],
24596
+ * });
24597
+ *
24598
+ * // Acquire an auth client, and bind it to all future calls
24599
+ * const authClient = await auth.getClient();
24600
+ * google.options({auth: authClient});
24601
+ *
24602
+ * // Do the magic
24603
+ * const res =
24604
+ * await discoveryengine.projects.locations.collections.dataStores.setIamPolicy(
24605
+ * {
24606
+ * // 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.
24607
+ * resource:
24608
+ * 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
24609
+ *
24610
+ * // Request body metadata
24611
+ * requestBody: {
24612
+ * // request body parameters
24613
+ * // {
24614
+ * // "policy": {}
24615
+ * // }
24616
+ * },
24617
+ * },
24618
+ * );
24619
+ * console.log(res.data);
24620
+ *
24621
+ * // Example response
24622
+ * // {
24623
+ * // "bindings": [],
24624
+ * // "etag": "my_etag",
24625
+ * // "version": 0
24626
+ * // }
24627
+ * }
24628
+ *
24629
+ * main().catch(e => {
24630
+ * console.error(e);
24631
+ * throw e;
24632
+ * });
24633
+ *
24634
+ * ```
24635
+ *
24636
+ * @param params - Parameters for request
24637
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
24638
+ * @param callback - Optional callback that handles the response.
24639
+ * @returns A promise if used with async/await, or void if used with a callback.
24640
+ */
24641
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
24642
+ setIamPolicy(params?: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
24643
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
24644
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
24645
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
24646
+ setIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
24530
24647
  /**
24531
24648
  * Trains a custom model.
24532
24649
  * @example
@@ -24889,6 +25006,16 @@ export declare namespace discoveryengine_v1alpha {
24889
25006
  */
24890
25007
  name?: string;
24891
25008
  }
25009
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy extends StandardParameters {
25010
+ /**
25011
+ * 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).
25012
+ */
25013
+ 'options.requestedPolicyVersion'?: number;
25014
+ /**
25015
+ * 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.
25016
+ */
25017
+ resource?: string;
25018
+ }
24892
25019
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine extends StandardParameters {
24893
25020
  /**
24894
25021
  * 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.
@@ -24951,6 +25078,16 @@ export declare namespace discoveryengine_v1alpha {
24951
25078
  */
24952
25079
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaReplacePatientFilterRequest;
24953
25080
  }
25081
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy extends StandardParameters {
25082
+ /**
25083
+ * 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.
25084
+ */
25085
+ resource?: string;
25086
+ /**
25087
+ * Request body metadata
25088
+ */
25089
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
25090
+ }
24954
25091
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Traincustommodel extends StandardParameters {
24955
25092
  /**
24956
25093
  * 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.
@@ -32942,7 +33079,7 @@ export declare namespace discoveryengine_v1alpha {
32942
33079
  * 'placeholder-value',
32943
33080
  * // 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).
32944
33081
  * languageCode: 'placeholder-value',
32945
- * // 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`).
33082
+ * // 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.
32946
33083
  * modelInfoView: 'placeholder-value',
32947
33084
  * // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
32948
33085
  * name: 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore/widgetConfigs/my-widgetConfig',
@@ -33178,7 +33315,7 @@ export declare namespace discoveryengine_v1alpha {
33178
33315
  */
33179
33316
  languageCode?: string;
33180
33317
  /**
33181
- * 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`).
33318
+ * 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.
33182
33319
  */
33183
33320
  modelInfoView?: string;
33184
33321
  /**
@@ -33282,6 +33419,7 @@ export declare namespace discoveryengine_v1alpha {
33282
33419
  * // "procurementContactEmails": [],
33283
33420
  * // "recommendationMetadata": {},
33284
33421
  * // "searchEngineConfig": {},
33422
+ * // "sessionConfig": {},
33285
33423
  * // "similarDocumentsConfig": {},
33286
33424
  * // "solutionType": "my_solutionType",
33287
33425
  * // "updateTime": "my_updateTime"
@@ -33453,6 +33591,7 @@ export declare namespace discoveryengine_v1alpha {
33453
33591
  * // "procurementContactEmails": [],
33454
33592
  * // "recommendationMetadata": {},
33455
33593
  * // "searchEngineConfig": {},
33594
+ * // "sessionConfig": {},
33456
33595
  * // "similarDocumentsConfig": {},
33457
33596
  * // "solutionType": "my_solutionType",
33458
33597
  * // "updateTime": "my_updateTime"
@@ -33834,6 +33973,7 @@ export declare namespace discoveryengine_v1alpha {
33834
33973
  * // "procurementContactEmails": [],
33835
33974
  * // "recommendationMetadata": {},
33836
33975
  * // "searchEngineConfig": {},
33976
+ * // "sessionConfig": {},
33837
33977
  * // "similarDocumentsConfig": {},
33838
33978
  * // "solutionType": "my_solutionType",
33839
33979
  * // "updateTime": "my_updateTime"
@@ -33868,6 +34008,7 @@ export declare namespace discoveryengine_v1alpha {
33868
34008
  * // "procurementContactEmails": [],
33869
34009
  * // "recommendationMetadata": {},
33870
34010
  * // "searchEngineConfig": {},
34011
+ * // "sessionConfig": {},
33871
34012
  * // "similarDocumentsConfig": {},
33872
34013
  * // "solutionType": "my_solutionType",
33873
34014
  * // "updateTime": "my_updateTime"
@@ -33965,6 +34106,7 @@ export declare namespace discoveryengine_v1alpha {
33965
34106
  * // "procurementContactEmails": [],
33966
34107
  * // "recommendationMetadata": {},
33967
34108
  * // "searchEngineConfig": {},
34109
+ * // "sessionConfig": {},
33968
34110
  * // "similarDocumentsConfig": {},
33969
34111
  * // "solutionType": "my_solutionType",
33970
34112
  * // "updateTime": "my_updateTime"
@@ -34062,6 +34204,7 @@ export declare namespace discoveryengine_v1alpha {
34062
34204
  * // "procurementContactEmails": [],
34063
34205
  * // "recommendationMetadata": {},
34064
34206
  * // "searchEngineConfig": {},
34207
+ * // "sessionConfig": {},
34065
34208
  * // "similarDocumentsConfig": {},
34066
34209
  * // "solutionType": "my_solutionType",
34067
34210
  * // "updateTime": "my_updateTime"
@@ -34790,6 +34933,7 @@ export declare namespace discoveryengine_v1alpha {
34790
34933
  * // "displayName": "my_displayName",
34791
34934
  * // "enabledTools": {},
34792
34935
  * // "generationConfig": {},
34936
+ * // "knowledgeCatalogEnabled": false,
34793
34937
  * // "name": "my_name",
34794
34938
  * // "updateTime": "my_updateTime",
34795
34939
  * // "webGroundingType": "my_webGroundingType"
@@ -34809,6 +34953,7 @@ export declare namespace discoveryengine_v1alpha {
34809
34953
  * // "displayName": "my_displayName",
34810
34954
  * // "enabledTools": {},
34811
34955
  * // "generationConfig": {},
34956
+ * // "knowledgeCatalogEnabled": false,
34812
34957
  * // "name": "my_name",
34813
34958
  * // "updateTime": "my_updateTime",
34814
34959
  * // "webGroundingType": "my_webGroundingType"
@@ -34953,6 +35098,7 @@ export declare namespace discoveryengine_v1alpha {
34953
35098
  * // "displayName": "my_displayName",
34954
35099
  * // "enabledTools": {},
34955
35100
  * // "generationConfig": {},
35101
+ * // "knowledgeCatalogEnabled": false,
34956
35102
  * // "name": "my_name",
34957
35103
  * // "updateTime": "my_updateTime",
34958
35104
  * // "webGroundingType": "my_webGroundingType"
@@ -35106,6 +35252,7 @@ export declare namespace discoveryengine_v1alpha {
35106
35252
  * // "displayName": "my_displayName",
35107
35253
  * // "enabledTools": {},
35108
35254
  * // "generationConfig": {},
35255
+ * // "knowledgeCatalogEnabled": false,
35109
35256
  * // "name": "my_name",
35110
35257
  * // "updateTime": "my_updateTime",
35111
35258
  * // "webGroundingType": "my_webGroundingType"
@@ -35125,6 +35272,7 @@ export declare namespace discoveryengine_v1alpha {
35125
35272
  * // "displayName": "my_displayName",
35126
35273
  * // "enabledTools": {},
35127
35274
  * // "generationConfig": {},
35275
+ * // "knowledgeCatalogEnabled": false,
35128
35276
  * // "name": "my_name",
35129
35277
  * // "updateTime": "my_updateTime",
35130
35278
  * // "webGroundingType": "my_webGroundingType"
@@ -35195,6 +35343,7 @@ export declare namespace discoveryengine_v1alpha {
35195
35343
  * // request body parameters
35196
35344
  * // {
35197
35345
  * // "actionSpec": {},
35346
+ * // "agentsSpec": {},
35198
35347
  * // "generationSpec": {},
35199
35348
  * // "query": {},
35200
35349
  * // "session": "my_session",
@@ -40832,7 +40981,7 @@ export declare namespace discoveryengine_v1alpha {
40832
40981
  * 'placeholder-value',
40833
40982
  * // 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).
40834
40983
  * languageCode: 'placeholder-value',
40835
- * // 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`).
40984
+ * // 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.
40836
40985
  * modelInfoView: 'placeholder-value',
40837
40986
  * // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
40838
40987
  * name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/widgetConfigs/my-widgetConfig',
@@ -41068,7 +41217,7 @@ export declare namespace discoveryengine_v1alpha {
41068
41217
  */
41069
41218
  languageCode?: string;
41070
41219
  /**
41071
- * 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`).
41220
+ * 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.
41072
41221
  */
41073
41222
  modelInfoView?: string;
41074
41223
  /**
@@ -41936,6 +42085,75 @@ export declare namespace discoveryengine_v1alpha {
41936
42085
  getDocumentProcessingConfig(params: Params$Resource$Projects$Locations$Datastores$Getdocumentprocessingconfig, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>): void;
41937
42086
  getDocumentProcessingConfig(params: Params$Resource$Projects$Locations$Datastores$Getdocumentprocessingconfig, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>): void;
41938
42087
  getDocumentProcessingConfig(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>): void;
42088
+ /**
42089
+ * 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.
42090
+ * @example
42091
+ * ```js
42092
+ * // Before running the sample:
42093
+ * // - Enable the API at:
42094
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
42095
+ * // - Login into gcloud by running:
42096
+ * // ```sh
42097
+ * // $ gcloud auth application-default login
42098
+ * // ```
42099
+ * // - Install the npm module by running:
42100
+ * // ```sh
42101
+ * // $ npm install googleapis
42102
+ * // ```
42103
+ *
42104
+ * const {google} = require('googleapis');
42105
+ * const discoveryengine = google.discoveryengine('v1alpha');
42106
+ *
42107
+ * async function main() {
42108
+ * const auth = new google.auth.GoogleAuth({
42109
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
42110
+ * scopes: [
42111
+ * 'https://www.googleapis.com/auth/cloud-platform',
42112
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
42113
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
42114
+ * ],
42115
+ * });
42116
+ *
42117
+ * // Acquire an auth client, and bind it to all future calls
42118
+ * const authClient = await auth.getClient();
42119
+ * google.options({auth: authClient});
42120
+ *
42121
+ * // Do the magic
42122
+ * const res = await discoveryengine.projects.locations.dataStores.getIamPolicy({
42123
+ * // 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).
42124
+ * 'options.requestedPolicyVersion': 'placeholder-value',
42125
+ * // 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.
42126
+ * resource:
42127
+ * 'projects/my-project/locations/my-location/dataStores/my-dataStore',
42128
+ * });
42129
+ * console.log(res.data);
42130
+ *
42131
+ * // Example response
42132
+ * // {
42133
+ * // "bindings": [],
42134
+ * // "etag": "my_etag",
42135
+ * // "version": 0
42136
+ * // }
42137
+ * }
42138
+ *
42139
+ * main().catch(e => {
42140
+ * console.error(e);
42141
+ * throw e;
42142
+ * });
42143
+ *
42144
+ * ```
42145
+ *
42146
+ * @param params - Parameters for request
42147
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
42148
+ * @param callback - Optional callback that handles the response.
42149
+ * @returns A promise if used with async/await, or void if used with a callback.
42150
+ */
42151
+ getIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Getiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
42152
+ getIamPolicy(params?: Params$Resource$Projects$Locations$Datastores$Getiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
42153
+ getIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
42154
+ getIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
42155
+ getIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Getiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
42156
+ getIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
41939
42157
  /**
41940
42158
  * Gets the SiteSearchEngine.
41941
42159
  * @example
@@ -42359,7 +42577,7 @@ export declare namespace discoveryengine_v1alpha {
42359
42577
  replacePatientFilter(params: Params$Resource$Projects$Locations$Datastores$Replacepatientfilter, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
42360
42578
  replacePatientFilter(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
42361
42579
  /**
42362
- * Updates the CompletionConfigs.
42580
+ * 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.
42363
42581
  * @example
42364
42582
  * ```js
42365
42583
  * // Before running the sample:
@@ -42392,44 +42610,26 @@ export declare namespace discoveryengine_v1alpha {
42392
42610
  * google.options({auth: authClient});
42393
42611
  *
42394
42612
  * // Do the magic
42395
- * const res =
42396
- * await discoveryengine.projects.locations.dataStores.updateCompletionConfig({
42397
- * // Required. Immutable. Fully qualified name `projects/x/locations/x/dataStores/x/completionConfig` `projects/x/locations/x/collections/x/dataStores/x/completionConfig` `projects/x/locations/x/collections/x/engines/x/completionConfig`
42398
- * name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/completionConfig',
42399
- * // Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.query_model * CompletionConfig.enable_mode * CompletionConfig.query_frequency_threshold * CompletionConfig.num_unique_users_threshold * CompletionConfig.should_serve_content_suggestions * CompletionConfig.filter_pii_suggestions_using_dlp If not set, all supported fields are updated.
42400
- * updateMask: 'placeholder-value',
42613
+ * const res = await discoveryengine.projects.locations.dataStores.setIamPolicy({
42614
+ * // 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.
42615
+ * resource:
42616
+ * 'projects/my-project/locations/my-location/dataStores/my-dataStore',
42401
42617
  *
42402
- * // Request body metadata
42403
- * requestBody: {
42404
- * // request body parameters
42405
- * // {
42406
- * // "enableMode": "my_enableMode",
42407
- * // "filterPiiSuggestionsUsingDlp": false,
42408
- * // "matchingOrder": "my_matchingOrder",
42409
- * // "maxSuggestions": 0,
42410
- * // "minPrefixLength": 0,
42411
- * // "name": "my_name",
42412
- * // "numUniqueUsersThreshold": 0,
42413
- * // "queryFrequencyThreshold": 0,
42414
- * // "queryModel": "my_queryModel",
42415
- * // "shouldServeContentSuggestions": false
42416
- * // }
42417
- * },
42418
- * });
42618
+ * // Request body metadata
42619
+ * requestBody: {
42620
+ * // request body parameters
42621
+ * // {
42622
+ * // "policy": {}
42623
+ * // }
42624
+ * },
42625
+ * });
42419
42626
  * console.log(res.data);
42420
42627
  *
42421
42628
  * // Example response
42422
42629
  * // {
42423
- * // "enableMode": "my_enableMode",
42424
- * // "filterPiiSuggestionsUsingDlp": false,
42425
- * // "matchingOrder": "my_matchingOrder",
42426
- * // "maxSuggestions": 0,
42427
- * // "minPrefixLength": 0,
42428
- * // "name": "my_name",
42429
- * // "numUniqueUsersThreshold": 0,
42430
- * // "queryFrequencyThreshold": 0,
42431
- * // "queryModel": "my_queryModel",
42432
- * // "shouldServeContentSuggestions": false
42630
+ * // "bindings": [],
42631
+ * // "etag": "my_etag",
42632
+ * // "version": 0
42433
42633
  * // }
42434
42634
  * }
42435
42635
  *
@@ -42445,14 +42645,107 @@ export declare namespace discoveryengine_v1alpha {
42445
42645
  * @param callback - Optional callback that handles the response.
42446
42646
  * @returns A promise if used with async/await, or void if used with a callback.
42447
42647
  */
42448
- updateCompletionConfig(params: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
42449
- updateCompletionConfig(params?: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>>;
42450
- updateCompletionConfig(params: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
42451
- updateCompletionConfig(params: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>): void;
42452
- updateCompletionConfig(params: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>): void;
42453
- updateCompletionConfig(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>): void;
42648
+ setIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Setiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
42649
+ setIamPolicy(params?: Params$Resource$Projects$Locations$Datastores$Setiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
42650
+ setIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
42651
+ setIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
42652
+ setIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Setiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
42653
+ setIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
42454
42654
  /**
42455
- * Updates the DocumentProcessingConfig. DocumentProcessingConfig is a singleton resource of DataStore. It's empty when DataStore is created. The first call to this method will set up DocumentProcessingConfig. The `update_mask` query parameter is not supported; if it is set the request returns an error. To update mutable fields, omit `update_mask` and send the full DocumentProcessingConfig as the request body. The entire resource is overwritten, so include all values you want to retain. For example, to update the layout parser, set DocumentProcessingConfig.default_parsing_config (or DocumentProcessingConfig.parsing_config_overrides) and omit `update_mask`. Some fields, such as DocumentProcessingConfig.chunking_config, are immutable and return an error if changed.
42655
+ * Updates the CompletionConfigs.
42656
+ * @example
42657
+ * ```js
42658
+ * // Before running the sample:
42659
+ * // - Enable the API at:
42660
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
42661
+ * // - Login into gcloud by running:
42662
+ * // ```sh
42663
+ * // $ gcloud auth application-default login
42664
+ * // ```
42665
+ * // - Install the npm module by running:
42666
+ * // ```sh
42667
+ * // $ npm install googleapis
42668
+ * // ```
42669
+ *
42670
+ * const {google} = require('googleapis');
42671
+ * const discoveryengine = google.discoveryengine('v1alpha');
42672
+ *
42673
+ * async function main() {
42674
+ * const auth = new google.auth.GoogleAuth({
42675
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
42676
+ * scopes: [
42677
+ * 'https://www.googleapis.com/auth/cloud-platform',
42678
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
42679
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
42680
+ * ],
42681
+ * });
42682
+ *
42683
+ * // Acquire an auth client, and bind it to all future calls
42684
+ * const authClient = await auth.getClient();
42685
+ * google.options({auth: authClient});
42686
+ *
42687
+ * // Do the magic
42688
+ * const res =
42689
+ * await discoveryengine.projects.locations.dataStores.updateCompletionConfig({
42690
+ * // Required. Immutable. Fully qualified name `projects/x/locations/x/dataStores/x/completionConfig` `projects/x/locations/x/collections/x/dataStores/x/completionConfig` `projects/x/locations/x/collections/x/engines/x/completionConfig`
42691
+ * name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/completionConfig',
42692
+ * // Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.query_model * CompletionConfig.enable_mode * CompletionConfig.query_frequency_threshold * CompletionConfig.num_unique_users_threshold * CompletionConfig.should_serve_content_suggestions * CompletionConfig.filter_pii_suggestions_using_dlp If not set, all supported fields are updated.
42693
+ * updateMask: 'placeholder-value',
42694
+ *
42695
+ * // Request body metadata
42696
+ * requestBody: {
42697
+ * // request body parameters
42698
+ * // {
42699
+ * // "enableMode": "my_enableMode",
42700
+ * // "filterPiiSuggestionsUsingDlp": false,
42701
+ * // "matchingOrder": "my_matchingOrder",
42702
+ * // "maxSuggestions": 0,
42703
+ * // "minPrefixLength": 0,
42704
+ * // "name": "my_name",
42705
+ * // "numUniqueUsersThreshold": 0,
42706
+ * // "queryFrequencyThreshold": 0,
42707
+ * // "queryModel": "my_queryModel",
42708
+ * // "shouldServeContentSuggestions": false
42709
+ * // }
42710
+ * },
42711
+ * });
42712
+ * console.log(res.data);
42713
+ *
42714
+ * // Example response
42715
+ * // {
42716
+ * // "enableMode": "my_enableMode",
42717
+ * // "filterPiiSuggestionsUsingDlp": false,
42718
+ * // "matchingOrder": "my_matchingOrder",
42719
+ * // "maxSuggestions": 0,
42720
+ * // "minPrefixLength": 0,
42721
+ * // "name": "my_name",
42722
+ * // "numUniqueUsersThreshold": 0,
42723
+ * // "queryFrequencyThreshold": 0,
42724
+ * // "queryModel": "my_queryModel",
42725
+ * // "shouldServeContentSuggestions": false
42726
+ * // }
42727
+ * }
42728
+ *
42729
+ * main().catch(e => {
42730
+ * console.error(e);
42731
+ * throw e;
42732
+ * });
42733
+ *
42734
+ * ```
42735
+ *
42736
+ * @param params - Parameters for request
42737
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
42738
+ * @param callback - Optional callback that handles the response.
42739
+ * @returns A promise if used with async/await, or void if used with a callback.
42740
+ */
42741
+ updateCompletionConfig(params: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
42742
+ updateCompletionConfig(params?: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>>;
42743
+ updateCompletionConfig(params: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
42744
+ updateCompletionConfig(params: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>): void;
42745
+ updateCompletionConfig(params: Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>): void;
42746
+ updateCompletionConfig(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaCompletionConfig>): void;
42747
+ /**
42748
+ * Updates the DocumentProcessingConfig. DocumentProcessingConfig is a singleton resource of DataStore. It's empty when DataStore is created. The first call to this method will set up DocumentProcessingConfig. The `update_mask` query parameter is not supported; if it is set the request returns an error. To update mutable fields, omit `update_mask` and send the full DocumentProcessingConfig as the request body. The entire resource is overwritten, so include all values you want to retain. For example, to update the layout parser, set DocumentProcessingConfig.default_parsing_config (or DocumentProcessingConfig.parsing_config_overrides) and omit `update_mask`. Some fields, such as DocumentProcessingConfig.chunking_config, are immutable and return an error if changed.
42456
42749
  * @example
42457
42750
  * ```js
42458
42751
  * // Before running the sample:
@@ -42635,6 +42928,16 @@ export declare namespace discoveryengine_v1alpha {
42635
42928
  */
42636
42929
  name?: string;
42637
42930
  }
42931
+ export interface Params$Resource$Projects$Locations$Datastores$Getiampolicy extends StandardParameters {
42932
+ /**
42933
+ * 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).
42934
+ */
42935
+ 'options.requestedPolicyVersion'?: number;
42936
+ /**
42937
+ * 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.
42938
+ */
42939
+ resource?: string;
42940
+ }
42638
42941
  export interface Params$Resource$Projects$Locations$Datastores$Getsitesearchengine extends StandardParameters {
42639
42942
  /**
42640
42943
  * 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.
@@ -42697,6 +43000,16 @@ export declare namespace discoveryengine_v1alpha {
42697
43000
  */
42698
43001
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaReplacePatientFilterRequest;
42699
43002
  }
43003
+ export interface Params$Resource$Projects$Locations$Datastores$Setiampolicy extends StandardParameters {
43004
+ /**
43005
+ * 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.
43006
+ */
43007
+ resource?: string;
43008
+ /**
43009
+ * Request body metadata
43010
+ */
43011
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
43012
+ }
42700
43013
  export interface Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig extends StandardParameters {
42701
43014
  /**
42702
43015
  * Required. Immutable. Fully qualified name `projects/x/locations/x/dataStores/x/completionConfig` `projects/x/locations/x/collections/x/dataStores/x/completionConfig` `projects/x/locations/x/collections/x/engines/x/completionConfig`
@@ -49631,7 +49944,7 @@ export declare namespace discoveryengine_v1alpha {
49631
49944
  * 'placeholder-value',
49632
49945
  * // 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).
49633
49946
  * languageCode: 'placeholder-value',
49634
- * // 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`).
49947
+ * // 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.
49635
49948
  * modelInfoView: 'placeholder-value',
49636
49949
  * // Required. Full WidgetConfig resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}/widgetConfigs/{widget_config_id\}`
49637
49950
  * name: 'projects/my-project/locations/my-location/dataStores/my-dataStore/widgetConfigs/my-widgetConfig',
@@ -49864,7 +50177,7 @@ export declare namespace discoveryengine_v1alpha {
49864
50177
  */
49865
50178
  languageCode?: string;
49866
50179
  /**
49867
- * 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`).
50180
+ * 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.
49868
50181
  */
49869
50182
  modelInfoView?: string;
49870
50183
  /**
@@ -51602,234 +51915,13 @@ export declare namespace discoveryengine_v1alpha {
51602
51915
  export class Resource$Projects$Locations$Notebooks {
51603
51916
  context: APIRequestContext;
51604
51917
  audioOverviews: Resource$Projects$Locations$Notebooks$Audiooverviews;
51605
- sources: Resource$Projects$Locations$Notebooks$Sources;
51918
+ constructor(context: APIRequestContext);
51919
+ }
51920
+ export class Resource$Projects$Locations$Notebooks$Audiooverviews {
51921
+ context: APIRequestContext;
51606
51922
  constructor(context: APIRequestContext);
51607
51923
  /**
51608
- * Batch deletes Notebooks.
51609
- * @example
51610
- * ```js
51611
- * // Before running the sample:
51612
- * // - Enable the API at:
51613
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
51614
- * // - Login into gcloud by running:
51615
- * // ```sh
51616
- * // $ gcloud auth application-default login
51617
- * // ```
51618
- * // - Install the npm module by running:
51619
- * // ```sh
51620
- * // $ npm install googleapis
51621
- * // ```
51622
- *
51623
- * const {google} = require('googleapis');
51624
- * const discoveryengine = google.discoveryengine('v1alpha');
51625
- *
51626
- * async function main() {
51627
- * const auth = new google.auth.GoogleAuth({
51628
- * // Scopes can be specified either as an array or as a single, space-delimited string.
51629
- * scopes: [
51630
- * 'https://www.googleapis.com/auth/cloud-platform',
51631
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
51632
- * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
51633
- * ],
51634
- * });
51635
- *
51636
- * // Acquire an auth client, and bind it to all future calls
51637
- * const authClient = await auth.getClient();
51638
- * google.options({auth: authClient});
51639
- *
51640
- * // Do the magic
51641
- * const res = await discoveryengine.projects.locations.notebooks.batchDelete({
51642
- * // Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`.
51643
- * parent: 'projects/my-project/locations/my-location',
51644
- *
51645
- * // Request body metadata
51646
- * requestBody: {
51647
- * // request body parameters
51648
- * // {
51649
- * // "names": []
51650
- * // }
51651
- * },
51652
- * });
51653
- * console.log(res.data);
51654
- *
51655
- * // Example response
51656
- * // {}
51657
- * }
51658
- *
51659
- * main().catch(e => {
51660
- * console.error(e);
51661
- * throw e;
51662
- * });
51663
- *
51664
- * ```
51665
- *
51666
- * @param params - Parameters for request
51667
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
51668
- * @param callback - Optional callback that handles the response.
51669
- * @returns A promise if used with async/await, or void if used with a callback.
51670
- */
51671
- batchDelete(params: Params$Resource$Projects$Locations$Notebooks$Batchdelete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
51672
- batchDelete(params?: Params$Resource$Projects$Locations$Notebooks$Batchdelete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
51673
- batchDelete(params: Params$Resource$Projects$Locations$Notebooks$Batchdelete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
51674
- batchDelete(params: Params$Resource$Projects$Locations$Notebooks$Batchdelete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
51675
- batchDelete(params: Params$Resource$Projects$Locations$Notebooks$Batchdelete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
51676
- batchDelete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
51677
- /**
51678
- * Creates a notebook.
51679
- * @example
51680
- * ```js
51681
- * // Before running the sample:
51682
- * // - Enable the API at:
51683
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
51684
- * // - Login into gcloud by running:
51685
- * // ```sh
51686
- * // $ gcloud auth application-default login
51687
- * // ```
51688
- * // - Install the npm module by running:
51689
- * // ```sh
51690
- * // $ npm install googleapis
51691
- * // ```
51692
- *
51693
- * const {google} = require('googleapis');
51694
- * const discoveryengine = google.discoveryengine('v1alpha');
51695
- *
51696
- * async function main() {
51697
- * const auth = new google.auth.GoogleAuth({
51698
- * // Scopes can be specified either as an array or as a single, space-delimited string.
51699
- * scopes: [
51700
- * 'https://www.googleapis.com/auth/cloud-platform',
51701
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
51702
- * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
51703
- * ],
51704
- * });
51705
- *
51706
- * // Acquire an auth client, and bind it to all future calls
51707
- * const authClient = await auth.getClient();
51708
- * google.options({auth: authClient});
51709
- *
51710
- * // Do the magic
51711
- * const res = await discoveryengine.projects.locations.notebooks.create({
51712
- * // Required. The parent resource name, such as `projects/{project\}/locations/{location\}`.
51713
- * parent: 'projects/my-project/locations/my-location',
51714
- *
51715
- * // Request body metadata
51716
- * requestBody: {
51717
- * // request body parameters
51718
- * // {
51719
- * // "cmekConfig": {},
51720
- * // "emoji": "my_emoji",
51721
- * // "metadata": {},
51722
- * // "name": "my_name",
51723
- * // "notebookId": "my_notebookId",
51724
- * // "sources": [],
51725
- * // "title": "my_title"
51726
- * // }
51727
- * },
51728
- * });
51729
- * console.log(res.data);
51730
- *
51731
- * // Example response
51732
- * // {
51733
- * // "cmekConfig": {},
51734
- * // "emoji": "my_emoji",
51735
- * // "metadata": {},
51736
- * // "name": "my_name",
51737
- * // "notebookId": "my_notebookId",
51738
- * // "sources": [],
51739
- * // "title": "my_title"
51740
- * // }
51741
- * }
51742
- *
51743
- * main().catch(e => {
51744
- * console.error(e);
51745
- * throw e;
51746
- * });
51747
- *
51748
- * ```
51749
- *
51750
- * @param params - Parameters for request
51751
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
51752
- * @param callback - Optional callback that handles the response.
51753
- * @returns A promise if used with async/await, or void if used with a callback.
51754
- */
51755
- create(params: Params$Resource$Projects$Locations$Notebooks$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
51756
- create(params?: Params$Resource$Projects$Locations$Notebooks$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaNotebook>>;
51757
- create(params: Params$Resource$Projects$Locations$Notebooks$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
51758
- create(params: Params$Resource$Projects$Locations$Notebooks$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>): void;
51759
- create(params: Params$Resource$Projects$Locations$Notebooks$Create, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>): void;
51760
- create(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>): void;
51761
- /**
51762
- * Gets a notebook.
51763
- * @example
51764
- * ```js
51765
- * // Before running the sample:
51766
- * // - Enable the API at:
51767
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
51768
- * // - Login into gcloud by running:
51769
- * // ```sh
51770
- * // $ gcloud auth application-default login
51771
- * // ```
51772
- * // - Install the npm module by running:
51773
- * // ```sh
51774
- * // $ npm install googleapis
51775
- * // ```
51776
- *
51777
- * const {google} = require('googleapis');
51778
- * const discoveryengine = google.discoveryengine('v1alpha');
51779
- *
51780
- * async function main() {
51781
- * const auth = new google.auth.GoogleAuth({
51782
- * // Scopes can be specified either as an array or as a single, space-delimited string.
51783
- * scopes: [
51784
- * 'https://www.googleapis.com/auth/cloud-platform',
51785
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
51786
- * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
51787
- * ],
51788
- * });
51789
- *
51790
- * // Acquire an auth client, and bind it to all future calls
51791
- * const authClient = await auth.getClient();
51792
- * google.options({auth: authClient});
51793
- *
51794
- * // Do the magic
51795
- * const res = await discoveryengine.projects.locations.notebooks.get({
51796
- * // Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
51797
- * name: 'projects/my-project/locations/my-location/notebooks/my-notebook',
51798
- * });
51799
- * console.log(res.data);
51800
- *
51801
- * // Example response
51802
- * // {
51803
- * // "cmekConfig": {},
51804
- * // "emoji": "my_emoji",
51805
- * // "metadata": {},
51806
- * // "name": "my_name",
51807
- * // "notebookId": "my_notebookId",
51808
- * // "sources": [],
51809
- * // "title": "my_title"
51810
- * // }
51811
- * }
51812
- *
51813
- * main().catch(e => {
51814
- * console.error(e);
51815
- * throw e;
51816
- * });
51817
- *
51818
- * ```
51819
- *
51820
- * @param params - Parameters for request
51821
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
51822
- * @param callback - Optional callback that handles the response.
51823
- * @returns A promise if used with async/await, or void if used with a callback.
51824
- */
51825
- get(params: Params$Resource$Projects$Locations$Notebooks$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
51826
- get(params?: Params$Resource$Projects$Locations$Notebooks$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaNotebook>>;
51827
- get(params: Params$Resource$Projects$Locations$Notebooks$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
51828
- get(params: Params$Resource$Projects$Locations$Notebooks$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>): void;
51829
- get(params: Params$Resource$Projects$Locations$Notebooks$Get, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>): void;
51830
- get(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>): void;
51831
- /**
51832
- * Lists the notebooks ordered by last view time.
51924
+ * Generates a new audio overview.
51833
51925
  * @example
51834
51926
  * ```js
51835
51927
  * // Before running the sample:
@@ -51863,20 +51955,23 @@ export declare namespace discoveryengine_v1alpha {
51863
51955
  *
51864
51956
  * // Do the magic
51865
51957
  * const res =
51866
- * await discoveryengine.projects.locations.notebooks.listRecentlyViewed({
51867
- * // Optional. Maximum number of Notebooks to return. If unspecified, defaults to "500". The maximum allowed value is "500". If this field is negative, will use the default value.
51868
- * pageSize: 'placeholder-value',
51869
- * // Optional. The page token, provide this to retrieve the subsequent page.
51870
- * pageToken: 'placeholder-value',
51871
- * // Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`.
51872
- * parent: 'projects/my-project/locations/my-location',
51958
+ * await discoveryengine.projects.locations.notebooks.audioOverviews.create({
51959
+ * // Required. The parent resource where this notebook will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
51960
+ * parent: 'projects/my-project/locations/my-location/notebooks/my-notebook',
51961
+ *
51962
+ * // Request body metadata
51963
+ * requestBody: {
51964
+ * // request body parameters
51965
+ * // {
51966
+ * // "generationOptions": {}
51967
+ * // }
51968
+ * },
51873
51969
  * });
51874
51970
  * console.log(res.data);
51875
51971
  *
51876
51972
  * // Example response
51877
51973
  * // {
51878
- * // "nextPageToken": "my_nextPageToken",
51879
- * // "notebooks": []
51974
+ * // "audioOverview": {}
51880
51975
  * // }
51881
51976
  * }
51882
51977
  *
@@ -51892,212 +51987,14 @@ export declare namespace discoveryengine_v1alpha {
51892
51987
  * @param callback - Optional callback that handles the response.
51893
51988
  * @returns A promise if used with async/await, or void if used with a callback.
51894
51989
  */
51895
- listRecentlyViewed(params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
51896
- listRecentlyViewed(params?: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>>;
51897
- listRecentlyViewed(params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
51898
- listRecentlyViewed(params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>): void;
51899
- listRecentlyViewed(params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>): void;
51900
- listRecentlyViewed(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>): void;
51990
+ create(params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
51991
+ create(params?: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>>;
51992
+ create(params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
51993
+ create(params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>): void;
51994
+ create(params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>): void;
51995
+ create(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>): void;
51901
51996
  /**
51902
- * Shares a notebook to other accounts.
51903
- * @example
51904
- * ```js
51905
- * // Before running the sample:
51906
- * // - Enable the API at:
51907
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
51908
- * // - Login into gcloud by running:
51909
- * // ```sh
51910
- * // $ gcloud auth application-default login
51911
- * // ```
51912
- * // - Install the npm module by running:
51913
- * // ```sh
51914
- * // $ npm install googleapis
51915
- * // ```
51916
- *
51917
- * const {google} = require('googleapis');
51918
- * const discoveryengine = google.discoveryengine('v1alpha');
51919
- *
51920
- * async function main() {
51921
- * const auth = new google.auth.GoogleAuth({
51922
- * // Scopes can be specified either as an array or as a single, space-delimited string.
51923
- * scopes: [
51924
- * 'https://www.googleapis.com/auth/cloud-platform',
51925
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
51926
- * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
51927
- * ],
51928
- * });
51929
- *
51930
- * // Acquire an auth client, and bind it to all future calls
51931
- * const authClient = await auth.getClient();
51932
- * google.options({auth: authClient});
51933
- *
51934
- * // Do the magic
51935
- * const res = await discoveryengine.projects.locations.notebooks.share({
51936
- * // Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
51937
- * name: 'projects/my-project/locations/my-location/notebooks/my-notebook',
51938
- *
51939
- * // Request body metadata
51940
- * requestBody: {
51941
- * // request body parameters
51942
- * // {
51943
- * // "accountAndRoles": [],
51944
- * // "notifyViaEmail": false
51945
- * // }
51946
- * },
51947
- * });
51948
- * console.log(res.data);
51949
- *
51950
- * // Example response
51951
- * // {}
51952
- * }
51953
- *
51954
- * main().catch(e => {
51955
- * console.error(e);
51956
- * throw e;
51957
- * });
51958
- *
51959
- * ```
51960
- *
51961
- * @param params - Parameters for request
51962
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
51963
- * @param callback - Optional callback that handles the response.
51964
- * @returns A promise if used with async/await, or void if used with a callback.
51965
- */
51966
- share(params: Params$Resource$Projects$Locations$Notebooks$Share, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
51967
- share(params?: Params$Resource$Projects$Locations$Notebooks$Share, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>>;
51968
- share(params: Params$Resource$Projects$Locations$Notebooks$Share, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
51969
- share(params: Params$Resource$Projects$Locations$Notebooks$Share, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>): void;
51970
- share(params: Params$Resource$Projects$Locations$Notebooks$Share, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>): void;
51971
- share(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>): void;
51972
- }
51973
- export interface Params$Resource$Projects$Locations$Notebooks$Batchdelete extends StandardParameters {
51974
- /**
51975
- * Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`.
51976
- */
51977
- parent?: string;
51978
- /**
51979
- * Request body metadata
51980
- */
51981
- requestBody?: Schema$GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest;
51982
- }
51983
- export interface Params$Resource$Projects$Locations$Notebooks$Create extends StandardParameters {
51984
- /**
51985
- * Required. The parent resource name, such as `projects/{project\}/locations/{location\}`.
51986
- */
51987
- parent?: string;
51988
- /**
51989
- * Request body metadata
51990
- */
51991
- requestBody?: Schema$GoogleCloudNotebooklmV1alphaNotebook;
51992
- }
51993
- export interface Params$Resource$Projects$Locations$Notebooks$Get extends StandardParameters {
51994
- /**
51995
- * Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
51996
- */
51997
- name?: string;
51998
- }
51999
- export interface Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed extends StandardParameters {
52000
- /**
52001
- * Optional. Maximum number of Notebooks to return. If unspecified, defaults to "500". The maximum allowed value is "500". If this field is negative, will use the default value.
52002
- */
52003
- pageSize?: number;
52004
- /**
52005
- * Optional. The page token, provide this to retrieve the subsequent page.
52006
- */
52007
- pageToken?: string;
52008
- /**
52009
- * Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`.
52010
- */
52011
- parent?: string;
52012
- }
52013
- export interface Params$Resource$Projects$Locations$Notebooks$Share extends StandardParameters {
52014
- /**
52015
- * Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
52016
- */
52017
- name?: string;
52018
- /**
52019
- * Request body metadata
52020
- */
52021
- requestBody?: Schema$GoogleCloudNotebooklmV1alphaShareNotebookRequest;
52022
- }
52023
- export class Resource$Projects$Locations$Notebooks$Audiooverviews {
52024
- context: APIRequestContext;
52025
- constructor(context: APIRequestContext);
52026
- /**
52027
- * Generates a new audio overview.
52028
- * @example
52029
- * ```js
52030
- * // Before running the sample:
52031
- * // - Enable the API at:
52032
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
52033
- * // - Login into gcloud by running:
52034
- * // ```sh
52035
- * // $ gcloud auth application-default login
52036
- * // ```
52037
- * // - Install the npm module by running:
52038
- * // ```sh
52039
- * // $ npm install googleapis
52040
- * // ```
52041
- *
52042
- * const {google} = require('googleapis');
52043
- * const discoveryengine = google.discoveryengine('v1alpha');
52044
- *
52045
- * async function main() {
52046
- * const auth = new google.auth.GoogleAuth({
52047
- * // Scopes can be specified either as an array or as a single, space-delimited string.
52048
- * scopes: [
52049
- * 'https://www.googleapis.com/auth/cloud-platform',
52050
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
52051
- * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
52052
- * ],
52053
- * });
52054
- *
52055
- * // Acquire an auth client, and bind it to all future calls
52056
- * const authClient = await auth.getClient();
52057
- * google.options({auth: authClient});
52058
- *
52059
- * // Do the magic
52060
- * const res =
52061
- * await discoveryengine.projects.locations.notebooks.audioOverviews.create({
52062
- * // Required. The parent resource where this notebook will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
52063
- * parent: 'projects/my-project/locations/my-location/notebooks/my-notebook',
52064
- *
52065
- * // Request body metadata
52066
- * requestBody: {
52067
- * // request body parameters
52068
- * // {
52069
- * // "generationOptions": {}
52070
- * // }
52071
- * },
52072
- * });
52073
- * console.log(res.data);
52074
- *
52075
- * // Example response
52076
- * // {
52077
- * // "audioOverview": {}
52078
- * // }
52079
- * }
52080
- *
52081
- * main().catch(e => {
52082
- * console.error(e);
52083
- * throw e;
52084
- * });
52085
- *
52086
- * ```
52087
- *
52088
- * @param params - Parameters for request
52089
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
52090
- * @param callback - Optional callback that handles the response.
52091
- * @returns A promise if used with async/await, or void if used with a callback.
52092
- */
52093
- create(params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
52094
- create(params?: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>>;
52095
- create(params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
52096
- create(params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>): void;
52097
- create(params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>): void;
52098
- create(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>): void;
52099
- /**
52100
- * Deletes an audio overview.
51997
+ * Deletes an audio overview.
52101
51998
  * @example
52102
51999
  * ```js
52103
52000
  * // Before running the sample:
@@ -52176,249 +52073,6 @@ export declare namespace discoveryengine_v1alpha {
52176
52073
  */
52177
52074
  name?: string;
52178
52075
  }
52179
- export class Resource$Projects$Locations$Notebooks$Sources {
52180
- context: APIRequestContext;
52181
- constructor(context: APIRequestContext);
52182
- /**
52183
- * Creates a list of Sources.
52184
- * @example
52185
- * ```js
52186
- * // Before running the sample:
52187
- * // - Enable the API at:
52188
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
52189
- * // - Login into gcloud by running:
52190
- * // ```sh
52191
- * // $ gcloud auth application-default login
52192
- * // ```
52193
- * // - Install the npm module by running:
52194
- * // ```sh
52195
- * // $ npm install googleapis
52196
- * // ```
52197
- *
52198
- * const {google} = require('googleapis');
52199
- * const discoveryengine = google.discoveryengine('v1alpha');
52200
- *
52201
- * async function main() {
52202
- * const auth = new google.auth.GoogleAuth({
52203
- * // Scopes can be specified either as an array or as a single, space-delimited string.
52204
- * scopes: [
52205
- * 'https://www.googleapis.com/auth/cloud-platform',
52206
- * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
52207
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
52208
- * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
52209
- * ],
52210
- * });
52211
- *
52212
- * // Acquire an auth client, and bind it to all future calls
52213
- * const authClient = await auth.getClient();
52214
- * google.options({auth: authClient});
52215
- *
52216
- * // Do the magic
52217
- * const res =
52218
- * await discoveryengine.projects.locations.notebooks.sources.batchCreate({
52219
- * // Required. The parent resource where the sources will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
52220
- * parent: 'projects/my-project/locations/my-location/notebooks/my-notebook',
52221
- *
52222
- * // Request body metadata
52223
- * requestBody: {
52224
- * // request body parameters
52225
- * // {
52226
- * // "userContents": []
52227
- * // }
52228
- * },
52229
- * });
52230
- * console.log(res.data);
52231
- *
52232
- * // Example response
52233
- * // {
52234
- * // "sources": []
52235
- * // }
52236
- * }
52237
- *
52238
- * main().catch(e => {
52239
- * console.error(e);
52240
- * throw e;
52241
- * });
52242
- *
52243
- * ```
52244
- *
52245
- * @param params - Parameters for request
52246
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
52247
- * @param callback - Optional callback that handles the response.
52248
- * @returns A promise if used with async/await, or void if used with a callback.
52249
- */
52250
- batchCreate(params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
52251
- batchCreate(params?: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>>;
52252
- batchCreate(params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
52253
- batchCreate(params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>): void;
52254
- batchCreate(params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>): void;
52255
- batchCreate(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>): void;
52256
- /**
52257
- * Deletes multiple sources
52258
- * @example
52259
- * ```js
52260
- * // Before running the sample:
52261
- * // - Enable the API at:
52262
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
52263
- * // - Login into gcloud by running:
52264
- * // ```sh
52265
- * // $ gcloud auth application-default login
52266
- * // ```
52267
- * // - Install the npm module by running:
52268
- * // ```sh
52269
- * // $ npm install googleapis
52270
- * // ```
52271
- *
52272
- * const {google} = require('googleapis');
52273
- * const discoveryengine = google.discoveryengine('v1alpha');
52274
- *
52275
- * async function main() {
52276
- * const auth = new google.auth.GoogleAuth({
52277
- * // Scopes can be specified either as an array or as a single, space-delimited string.
52278
- * scopes: [
52279
- * 'https://www.googleapis.com/auth/cloud-platform',
52280
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
52281
- * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
52282
- * ],
52283
- * });
52284
- *
52285
- * // Acquire an auth client, and bind it to all future calls
52286
- * const authClient = await auth.getClient();
52287
- * google.options({auth: authClient});
52288
- *
52289
- * // Do the magic
52290
- * const res =
52291
- * await discoveryengine.projects.locations.notebooks.sources.batchDelete({
52292
- * // Required. The parent resource where the sources will be deleted. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
52293
- * parent: 'projects/my-project/locations/my-location/notebooks/my-notebook',
52294
- *
52295
- * // Request body metadata
52296
- * requestBody: {
52297
- * // request body parameters
52298
- * // {
52299
- * // "names": []
52300
- * // }
52301
- * },
52302
- * });
52303
- * console.log(res.data);
52304
- *
52305
- * // Example response
52306
- * // {}
52307
- * }
52308
- *
52309
- * main().catch(e => {
52310
- * console.error(e);
52311
- * throw e;
52312
- * });
52313
- *
52314
- * ```
52315
- *
52316
- * @param params - Parameters for request
52317
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
52318
- * @param callback - Optional callback that handles the response.
52319
- * @returns A promise if used with async/await, or void if used with a callback.
52320
- */
52321
- batchDelete(params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
52322
- batchDelete(params?: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
52323
- batchDelete(params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
52324
- batchDelete(params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
52325
- batchDelete(params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
52326
- batchDelete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
52327
- /**
52328
- * Gets a Source.
52329
- * @example
52330
- * ```js
52331
- * // Before running the sample:
52332
- * // - Enable the API at:
52333
- * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
52334
- * // - Login into gcloud by running:
52335
- * // ```sh
52336
- * // $ gcloud auth application-default login
52337
- * // ```
52338
- * // - Install the npm module by running:
52339
- * // ```sh
52340
- * // $ npm install googleapis
52341
- * // ```
52342
- *
52343
- * const {google} = require('googleapis');
52344
- * const discoveryengine = google.discoveryengine('v1alpha');
52345
- *
52346
- * async function main() {
52347
- * const auth = new google.auth.GoogleAuth({
52348
- * // Scopes can be specified either as an array or as a single, space-delimited string.
52349
- * scopes: [
52350
- * 'https://www.googleapis.com/auth/cloud-platform',
52351
- * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
52352
- * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
52353
- * ],
52354
- * });
52355
- *
52356
- * // Acquire an auth client, and bind it to all future calls
52357
- * const authClient = await auth.getClient();
52358
- * google.options({auth: authClient});
52359
- *
52360
- * // Do the magic
52361
- * const res = await discoveryengine.projects.locations.notebooks.sources.get({
52362
- * // Required. The resource name for source Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source\}
52363
- * name: 'projects/my-project/locations/my-location/notebooks/my-notebook/sources/my-source',
52364
- * });
52365
- * console.log(res.data);
52366
- *
52367
- * // Example response
52368
- * // {
52369
- * // "metadata": {},
52370
- * // "name": "my_name",
52371
- * // "settings": {},
52372
- * // "sourceId": {},
52373
- * // "title": "my_title"
52374
- * // }
52375
- * }
52376
- *
52377
- * main().catch(e => {
52378
- * console.error(e);
52379
- * throw e;
52380
- * });
52381
- *
52382
- * ```
52383
- *
52384
- * @param params - Parameters for request
52385
- * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
52386
- * @param callback - Optional callback that handles the response.
52387
- * @returns A promise if used with async/await, or void if used with a callback.
52388
- */
52389
- get(params: Params$Resource$Projects$Locations$Notebooks$Sources$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
52390
- get(params?: Params$Resource$Projects$Locations$Notebooks$Sources$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaSource>>;
52391
- get(params: Params$Resource$Projects$Locations$Notebooks$Sources$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
52392
- get(params: Params$Resource$Projects$Locations$Notebooks$Sources$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>): void;
52393
- get(params: Params$Resource$Projects$Locations$Notebooks$Sources$Get, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>): void;
52394
- get(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>): void;
52395
- }
52396
- export interface Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate extends StandardParameters {
52397
- /**
52398
- * Required. The parent resource where the sources will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
52399
- */
52400
- parent?: string;
52401
- /**
52402
- * Request body metadata
52403
- */
52404
- requestBody?: Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest;
52405
- }
52406
- export interface Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete extends StandardParameters {
52407
- /**
52408
- * Required. The parent resource where the sources will be deleted. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
52409
- */
52410
- parent?: string;
52411
- /**
52412
- * Request body metadata
52413
- */
52414
- requestBody?: Schema$GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest;
52415
- }
52416
- export interface Params$Resource$Projects$Locations$Notebooks$Sources$Get extends StandardParameters {
52417
- /**
52418
- * Required. The resource name for source Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source\}
52419
- */
52420
- name?: string;
52421
- }
52422
52076
  export class Resource$Projects$Locations$Operations {
52423
52077
  context: APIRequestContext;
52424
52078
  constructor(context: APIRequestContext);