@googleapis/discoveryengine 32.1.0 → 33.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.
@@ -2711,6 +2711,12 @@ export declare namespace discoveryengine_v1alpha {
2711
2711
  * Referenced content and related document metadata.
2712
2712
  */
2713
2713
  export interface Schema$GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReference {
2714
+ /**
2715
+ * Output only. Generic structured chunk metadata from upstream data source connectors.
2716
+ */
2717
+ chunkMetadata?: {
2718
+ [key: string]: any;
2719
+ } | null;
2714
2720
  /**
2715
2721
  * Chunk of code snippet from the referenced document.
2716
2722
  */
@@ -3845,7 +3851,7 @@ export declare namespace discoveryengine_v1alpha {
3845
3851
  */
3846
3852
  numUniqueUsersThreshold?: number | null;
3847
3853
  /**
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.
3854
+ * 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
3855
  */
3850
3856
  queryFrequencyThreshold?: number | null;
3851
3857
  /**
@@ -7259,6 +7265,42 @@ export declare namespace discoveryengine_v1alpha {
7259
7265
  */
7260
7266
  minimum?: number | null;
7261
7267
  }
7268
+ /**
7269
+ * Request message for making a call to an MCP connector. It carries the connector name, the method to invoke, and optional parameters.
7270
+ */
7271
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpRequest {
7272
+ /**
7273
+ * 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.
7274
+ */
7275
+ engine?: string | null;
7276
+ /**
7277
+ * Required. The method to invoke (e.g. "tools/list", "tools/call", "resources/read", "prompts/get", etc.).
7278
+ */
7279
+ method?: string | null;
7280
+ /**
7281
+ * Optional. Arbitrary structured parameters for the method. Using google.protobuf.Struct keeps the payload schema-flexible, matching JSON-RPC's free-form `params` field.
7282
+ */
7283
+ params?: {
7284
+ [key: string]: any;
7285
+ } | null;
7286
+ /**
7287
+ * 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").
7288
+ */
7289
+ toolSpecVersion?: string | null;
7290
+ }
7291
+ /**
7292
+ * Response message returning the result of an MCP connector invocation. It contains either a successful result payload or error details.
7293
+ */
7294
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse {
7295
+ /**
7296
+ * Error details when the call fails.
7297
+ */
7298
+ error?: Schema$GoogleCloudDiscoveryengineV1alphaMcpError;
7299
+ /**
7300
+ * Successful result — arbitrary structured data.
7301
+ */
7302
+ result?: any | null;
7303
+ }
7262
7304
  /**
7263
7305
  * Language info for DataStore.
7264
7306
  */
@@ -7801,6 +7843,23 @@ export declare namespace discoveryengine_v1alpha {
7801
7843
  */
7802
7844
  export interface Schema$GoogleCloudDiscoveryengineV1alphaManagedAgentDefinition {
7803
7845
  }
7846
+ /**
7847
+ * McpError represents error details when an MCP call fails. This structure follows the JSON-RPC 2.0 error object shape.
7848
+ */
7849
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaMcpError {
7850
+ /**
7851
+ * Numeric error code.
7852
+ */
7853
+ code?: number | null;
7854
+ /**
7855
+ * Optional structured data with additional error context.
7856
+ */
7857
+ data?: any | null;
7858
+ /**
7859
+ * Short, human-readable description of the error.
7860
+ */
7861
+ message?: string | null;
7862
+ }
7804
7863
  /**
7805
7864
  * Media-specific user event information.
7806
7865
  */
@@ -11067,6 +11126,10 @@ export declare namespace discoveryengine_v1alpha {
11067
11126
  * Optional. Specification of actions for the request.
11068
11127
  */
11069
11128
  actionSpec?: Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistRequestActionSpec;
11129
+ /**
11130
+ * Optional. Specification of agents that are used to serve the request.
11131
+ */
11132
+ agentsSpec?: Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistRequestAgentsSpec;
11070
11133
  /**
11071
11134
  * Optional. Specification of the generation configuration for the request.
11072
11135
  */
@@ -11097,6 +11160,24 @@ export declare namespace discoveryengine_v1alpha {
11097
11160
  */
11098
11161
  actionDisabled?: boolean | null;
11099
11162
  }
11163
+ /**
11164
+ * Specification of agents that are used to serve the request.
11165
+ */
11166
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistRequestAgentsSpec {
11167
+ /**
11168
+ * Optional. Specification of agents that are used to serve the request.
11169
+ */
11170
+ agentSpecs?: Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistRequestAgentsSpecAgentSpec[];
11171
+ }
11172
+ /**
11173
+ * Specification of an agent.
11174
+ */
11175
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaStreamAssistRequestAgentsSpecAgentSpec {
11176
+ /**
11177
+ * 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.
11178
+ */
11179
+ agentId?: string | null;
11180
+ }
11100
11181
  /**
11101
11182
  * Assistant generation specification for the request. This allows to override the default generation configuration at the engine level.
11102
11183
  */
@@ -12029,7 +12110,7 @@ export declare namespace discoveryengine_v1alpha {
12029
12110
  */
12030
12111
  id?: string | null;
12031
12112
  /**
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`.
12113
+ * 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
12114
  */
12034
12115
  isFirstParty?: boolean | null;
12035
12116
  /**
@@ -12409,6 +12490,10 @@ export declare namespace discoveryengine_v1alpha {
12409
12490
  * 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
12491
  */
12411
12492
  modelId?: string | null;
12493
+ /**
12494
+ * Output only. Whether this model should be promoted in the GE chat homepage banner.
12495
+ */
12496
+ promoted?: boolean | null;
12412
12497
  }
12413
12498
  /**
12414
12499
  * 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.
@@ -22305,6 +22390,77 @@ export declare namespace discoveryengine_v1alpha {
22305
22390
  getDataConnector(params: Params$Resource$Projects$Locations$Collections$Getdataconnector, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDataConnector>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDataConnector>): void;
22306
22391
  getDataConnector(params: Params$Resource$Projects$Locations$Collections$Getdataconnector, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDataConnector>): void;
22307
22392
  getDataConnector(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDataConnector>): void;
22393
+ /**
22394
+ * 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.
22395
+ * @example
22396
+ * ```js
22397
+ * // Before running the sample:
22398
+ * // - Enable the API at:
22399
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
22400
+ * // - Login into gcloud by running:
22401
+ * // ```sh
22402
+ * // $ gcloud auth application-default login
22403
+ * // ```
22404
+ * // - Install the npm module by running:
22405
+ * // ```sh
22406
+ * // $ npm install googleapis
22407
+ * // ```
22408
+ *
22409
+ * const {google} = require('googleapis');
22410
+ * const discoveryengine = google.discoveryengine('v1alpha');
22411
+ *
22412
+ * async function main() {
22413
+ * const auth = new google.auth.GoogleAuth({
22414
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
22415
+ * scopes: [
22416
+ * 'https://www.googleapis.com/auth/cloud-platform',
22417
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
22418
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
22419
+ * ],
22420
+ * });
22421
+ *
22422
+ * // Acquire an auth client, and bind it to all future calls
22423
+ * const authClient = await auth.getClient();
22424
+ * google.options({auth: authClient});
22425
+ *
22426
+ * // Do the magic
22427
+ * const res = await discoveryengine.projects.locations.collections.getIamPolicy(
22428
+ * {
22429
+ * // 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).
22430
+ * 'options.requestedPolicyVersion': 'placeholder-value',
22431
+ * // 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.
22432
+ * resource:
22433
+ * 'projects/my-project/locations/my-location/collections/my-collection',
22434
+ * },
22435
+ * );
22436
+ * console.log(res.data);
22437
+ *
22438
+ * // Example response
22439
+ * // {
22440
+ * // "bindings": [],
22441
+ * // "etag": "my_etag",
22442
+ * // "version": 0
22443
+ * // }
22444
+ * }
22445
+ *
22446
+ * main().catch(e => {
22447
+ * console.error(e);
22448
+ * throw e;
22449
+ * });
22450
+ *
22451
+ * ```
22452
+ *
22453
+ * @param params - Parameters for request
22454
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
22455
+ * @param callback - Optional callback that handles the response.
22456
+ * @returns A promise if used with async/await, or void if used with a callback.
22457
+ */
22458
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Getiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
22459
+ getIamPolicy(params?: Params$Resource$Projects$Locations$Collections$Getiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
22460
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
22461
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
22462
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Getiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
22463
+ getIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
22308
22464
  /**
22309
22465
  * Gets a list of Collections.
22310
22466
  * @example
@@ -22457,6 +22613,83 @@ export declare namespace discoveryengine_v1alpha {
22457
22613
  patch(params: Params$Resource$Projects$Locations$Collections$Patch, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
22458
22614
  patch(params: Params$Resource$Projects$Locations$Collections$Patch, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
22459
22615
  patch(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
22616
+ /**
22617
+ * 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.
22618
+ * @example
22619
+ * ```js
22620
+ * // Before running the sample:
22621
+ * // - Enable the API at:
22622
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
22623
+ * // - Login into gcloud by running:
22624
+ * // ```sh
22625
+ * // $ gcloud auth application-default login
22626
+ * // ```
22627
+ * // - Install the npm module by running:
22628
+ * // ```sh
22629
+ * // $ npm install googleapis
22630
+ * // ```
22631
+ *
22632
+ * const {google} = require('googleapis');
22633
+ * const discoveryengine = google.discoveryengine('v1alpha');
22634
+ *
22635
+ * async function main() {
22636
+ * const auth = new google.auth.GoogleAuth({
22637
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
22638
+ * scopes: [
22639
+ * 'https://www.googleapis.com/auth/cloud-platform',
22640
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
22641
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
22642
+ * ],
22643
+ * });
22644
+ *
22645
+ * // Acquire an auth client, and bind it to all future calls
22646
+ * const authClient = await auth.getClient();
22647
+ * google.options({auth: authClient});
22648
+ *
22649
+ * // Do the magic
22650
+ * const res = await discoveryengine.projects.locations.collections.setIamPolicy(
22651
+ * {
22652
+ * // 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.
22653
+ * resource:
22654
+ * 'projects/my-project/locations/my-location/collections/my-collection',
22655
+ *
22656
+ * // Request body metadata
22657
+ * requestBody: {
22658
+ * // request body parameters
22659
+ * // {
22660
+ * // "policy": {}
22661
+ * // }
22662
+ * },
22663
+ * },
22664
+ * );
22665
+ * console.log(res.data);
22666
+ *
22667
+ * // Example response
22668
+ * // {
22669
+ * // "bindings": [],
22670
+ * // "etag": "my_etag",
22671
+ * // "version": 0
22672
+ * // }
22673
+ * }
22674
+ *
22675
+ * main().catch(e => {
22676
+ * console.error(e);
22677
+ * throw e;
22678
+ * });
22679
+ *
22680
+ * ```
22681
+ *
22682
+ * @param params - Parameters for request
22683
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
22684
+ * @param callback - Optional callback that handles the response.
22685
+ * @returns A promise if used with async/await, or void if used with a callback.
22686
+ */
22687
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Setiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
22688
+ setIamPolicy(params?: Params$Resource$Projects$Locations$Collections$Setiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
22689
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
22690
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
22691
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Setiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
22692
+ setIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
22460
22693
  /**
22461
22694
  * Updates a DataConnector.
22462
22695
  * @example
@@ -22646,6 +22879,16 @@ export declare namespace discoveryengine_v1alpha {
22646
22879
  */
22647
22880
  name?: string;
22648
22881
  }
22882
+ export interface Params$Resource$Projects$Locations$Collections$Getiampolicy extends StandardParameters {
22883
+ /**
22884
+ * 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).
22885
+ */
22886
+ 'options.requestedPolicyVersion'?: number;
22887
+ /**
22888
+ * 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.
22889
+ */
22890
+ resource?: string;
22891
+ }
22649
22892
  export interface Params$Resource$Projects$Locations$Collections$List extends StandardParameters {
22650
22893
  /**
22651
22894
  * 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 +22921,16 @@ export declare namespace discoveryengine_v1alpha {
22678
22921
  */
22679
22922
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaCollection;
22680
22923
  }
22924
+ export interface Params$Resource$Projects$Locations$Collections$Setiampolicy extends StandardParameters {
22925
+ /**
22926
+ * 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.
22927
+ */
22928
+ resource?: string;
22929
+ /**
22930
+ * Request body metadata
22931
+ */
22932
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
22933
+ }
22681
22934
  export interface Params$Resource$Projects$Locations$Collections$Updatedataconnector extends StandardParameters {
22682
22935
  /**
22683
22936
  * Identifier. The full resource name of the Data Connector. Format: `projects/x/locations/x/collections/x/dataConnector`.
@@ -22916,6 +23169,86 @@ export declare namespace discoveryengine_v1alpha {
22916
23169
  getConnectorSecret(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Getconnectorsecret, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaGetConnectorSecretResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaGetConnectorSecretResponse>): void;
22917
23170
  getConnectorSecret(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Getconnectorsecret, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaGetConnectorSecretResponse>): void;
22918
23171
  getConnectorSecret(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaGetConnectorSecretResponse>): void;
23172
+ /**
23173
+ * Makes a call to an MCP connector.
23174
+ * @example
23175
+ * ```js
23176
+ * // Before running the sample:
23177
+ * // - Enable the API at:
23178
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
23179
+ * // - Login into gcloud by running:
23180
+ * // ```sh
23181
+ * // $ gcloud auth application-default login
23182
+ * // ```
23183
+ * // - Install the npm module by running:
23184
+ * // ```sh
23185
+ * // $ npm install googleapis
23186
+ * // ```
23187
+ *
23188
+ * const {google} = require('googleapis');
23189
+ * const discoveryengine = google.discoveryengine('v1alpha');
23190
+ *
23191
+ * async function main() {
23192
+ * const auth = new google.auth.GoogleAuth({
23193
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
23194
+ * scopes: [
23195
+ * 'https://www.googleapis.com/auth/cloud-platform',
23196
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
23197
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
23198
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
23199
+ * ],
23200
+ * });
23201
+ *
23202
+ * // Acquire an auth client, and bind it to all future calls
23203
+ * const authClient = await auth.getClient();
23204
+ * google.options({auth: authClient});
23205
+ *
23206
+ * // Do the magic
23207
+ * const res =
23208
+ * await discoveryengine.projects.locations.collections.dataConnector.invokeConnectorMcp(
23209
+ * {
23210
+ * // Required. DataConnector resource. The data connector used for making the MCP call.
23211
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/dataConnector',
23212
+ *
23213
+ * // Request body metadata
23214
+ * requestBody: {
23215
+ * // request body parameters
23216
+ * // {
23217
+ * // "engine": "my_engine",
23218
+ * // "method": "my_method",
23219
+ * // "params": {},
23220
+ * // "toolSpecVersion": "my_toolSpecVersion"
23221
+ * // }
23222
+ * },
23223
+ * },
23224
+ * );
23225
+ * console.log(res.data);
23226
+ *
23227
+ * // Example response
23228
+ * // {
23229
+ * // "error": {},
23230
+ * // "result": {}
23231
+ * // }
23232
+ * }
23233
+ *
23234
+ * main().catch(e => {
23235
+ * console.error(e);
23236
+ * throw e;
23237
+ * });
23238
+ *
23239
+ * ```
23240
+ *
23241
+ * @param params - Parameters for request
23242
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
23243
+ * @param callback - Optional callback that handles the response.
23244
+ * @returns A promise if used with async/await, or void if used with a callback.
23245
+ */
23246
+ invokeConnectorMcp(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
23247
+ invokeConnectorMcp(params?: Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>>;
23248
+ invokeConnectorMcp(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
23249
+ invokeConnectorMcp(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>): void;
23250
+ invokeConnectorMcp(params: Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>): void;
23251
+ invokeConnectorMcp(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpResponse>): void;
22919
23252
  /**
22920
23253
  * ServeMcpDeleteRequest serves a MCP DELETE request.
22921
23254
  * @example
@@ -23104,6 +23437,16 @@ export declare namespace discoveryengine_v1alpha {
23104
23437
  */
23105
23438
  name?: string;
23106
23439
  }
23440
+ export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Invokeconnectormcp extends StandardParameters {
23441
+ /**
23442
+ * Required. DataConnector resource. The data connector used for making the MCP call.
23443
+ */
23444
+ name?: string;
23445
+ /**
23446
+ * Request body metadata
23447
+ */
23448
+ requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaInvokeConnectorMcpRequest;
23449
+ }
23107
23450
  export interface Params$Resource$Projects$Locations$Collections$Dataconnector$Mcp extends StandardParameters {
23108
23451
  /**
23109
23452
  *
@@ -24096,6 +24439,78 @@ export declare namespace discoveryengine_v1alpha {
24096
24439
  getDocumentProcessingConfig(params: Params$Resource$Projects$Locations$Collections$Datastores$Getdocumentprocessingconfig, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>): void;
24097
24440
  getDocumentProcessingConfig(params: Params$Resource$Projects$Locations$Collections$Datastores$Getdocumentprocessingconfig, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>): void;
24098
24441
  getDocumentProcessingConfig(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>): void;
24442
+ /**
24443
+ * 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.
24444
+ * @example
24445
+ * ```js
24446
+ * // Before running the sample:
24447
+ * // - Enable the API at:
24448
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
24449
+ * // - Login into gcloud by running:
24450
+ * // ```sh
24451
+ * // $ gcloud auth application-default login
24452
+ * // ```
24453
+ * // - Install the npm module by running:
24454
+ * // ```sh
24455
+ * // $ npm install googleapis
24456
+ * // ```
24457
+ *
24458
+ * const {google} = require('googleapis');
24459
+ * const discoveryengine = google.discoveryengine('v1alpha');
24460
+ *
24461
+ * async function main() {
24462
+ * const auth = new google.auth.GoogleAuth({
24463
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
24464
+ * scopes: [
24465
+ * 'https://www.googleapis.com/auth/cloud-platform',
24466
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
24467
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
24468
+ * ],
24469
+ * });
24470
+ *
24471
+ * // Acquire an auth client, and bind it to all future calls
24472
+ * const authClient = await auth.getClient();
24473
+ * google.options({auth: authClient});
24474
+ *
24475
+ * // Do the magic
24476
+ * const res =
24477
+ * await discoveryengine.projects.locations.collections.dataStores.getIamPolicy(
24478
+ * {
24479
+ * // 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).
24480
+ * 'options.requestedPolicyVersion': 'placeholder-value',
24481
+ * // 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.
24482
+ * resource:
24483
+ * 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
24484
+ * },
24485
+ * );
24486
+ * console.log(res.data);
24487
+ *
24488
+ * // Example response
24489
+ * // {
24490
+ * // "bindings": [],
24491
+ * // "etag": "my_etag",
24492
+ * // "version": 0
24493
+ * // }
24494
+ * }
24495
+ *
24496
+ * main().catch(e => {
24497
+ * console.error(e);
24498
+ * throw e;
24499
+ * });
24500
+ *
24501
+ * ```
24502
+ *
24503
+ * @param params - Parameters for request
24504
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
24505
+ * @param callback - Optional callback that handles the response.
24506
+ * @returns A promise if used with async/await, or void if used with a callback.
24507
+ */
24508
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
24509
+ getIamPolicy(params?: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
24510
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
24511
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
24512
+ getIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
24513
+ getIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
24099
24514
  /**
24100
24515
  * Gets the SiteSearchEngine.
24101
24516
  * @example
@@ -24527,6 +24942,84 @@ export declare namespace discoveryengine_v1alpha {
24527
24942
  replacePatientFilter(params: Params$Resource$Projects$Locations$Collections$Datastores$Replacepatientfilter, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
24528
24943
  replacePatientFilter(params: Params$Resource$Projects$Locations$Collections$Datastores$Replacepatientfilter, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
24529
24944
  replacePatientFilter(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
24945
+ /**
24946
+ * 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.
24947
+ * @example
24948
+ * ```js
24949
+ * // Before running the sample:
24950
+ * // - Enable the API at:
24951
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
24952
+ * // - Login into gcloud by running:
24953
+ * // ```sh
24954
+ * // $ gcloud auth application-default login
24955
+ * // ```
24956
+ * // - Install the npm module by running:
24957
+ * // ```sh
24958
+ * // $ npm install googleapis
24959
+ * // ```
24960
+ *
24961
+ * const {google} = require('googleapis');
24962
+ * const discoveryengine = google.discoveryengine('v1alpha');
24963
+ *
24964
+ * async function main() {
24965
+ * const auth = new google.auth.GoogleAuth({
24966
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
24967
+ * scopes: [
24968
+ * 'https://www.googleapis.com/auth/cloud-platform',
24969
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
24970
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
24971
+ * ],
24972
+ * });
24973
+ *
24974
+ * // Acquire an auth client, and bind it to all future calls
24975
+ * const authClient = await auth.getClient();
24976
+ * google.options({auth: authClient});
24977
+ *
24978
+ * // Do the magic
24979
+ * const res =
24980
+ * await discoveryengine.projects.locations.collections.dataStores.setIamPolicy(
24981
+ * {
24982
+ * // 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.
24983
+ * resource:
24984
+ * 'projects/my-project/locations/my-location/collections/my-collection/dataStores/my-dataStore',
24985
+ *
24986
+ * // Request body metadata
24987
+ * requestBody: {
24988
+ * // request body parameters
24989
+ * // {
24990
+ * // "policy": {}
24991
+ * // }
24992
+ * },
24993
+ * },
24994
+ * );
24995
+ * console.log(res.data);
24996
+ *
24997
+ * // Example response
24998
+ * // {
24999
+ * // "bindings": [],
25000
+ * // "etag": "my_etag",
25001
+ * // "version": 0
25002
+ * // }
25003
+ * }
25004
+ *
25005
+ * main().catch(e => {
25006
+ * console.error(e);
25007
+ * throw e;
25008
+ * });
25009
+ *
25010
+ * ```
25011
+ *
25012
+ * @param params - Parameters for request
25013
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
25014
+ * @param callback - Optional callback that handles the response.
25015
+ * @returns A promise if used with async/await, or void if used with a callback.
25016
+ */
25017
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
25018
+ setIamPolicy(params?: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
25019
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
25020
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
25021
+ setIamPolicy(params: Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
25022
+ setIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
24530
25023
  /**
24531
25024
  * Trains a custom model.
24532
25025
  * @example
@@ -24889,6 +25382,16 @@ export declare namespace discoveryengine_v1alpha {
24889
25382
  */
24890
25383
  name?: string;
24891
25384
  }
25385
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Getiampolicy extends StandardParameters {
25386
+ /**
25387
+ * 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).
25388
+ */
25389
+ 'options.requestedPolicyVersion'?: number;
25390
+ /**
25391
+ * 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.
25392
+ */
25393
+ resource?: string;
25394
+ }
24892
25395
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Getsitesearchengine extends StandardParameters {
24893
25396
  /**
24894
25397
  * 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 +25454,16 @@ export declare namespace discoveryengine_v1alpha {
24951
25454
  */
24952
25455
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaReplacePatientFilterRequest;
24953
25456
  }
25457
+ export interface Params$Resource$Projects$Locations$Collections$Datastores$Setiampolicy extends StandardParameters {
25458
+ /**
25459
+ * 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.
25460
+ */
25461
+ resource?: string;
25462
+ /**
25463
+ * Request body metadata
25464
+ */
25465
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
25466
+ }
24954
25467
  export interface Params$Resource$Projects$Locations$Collections$Datastores$Traincustommodel extends StandardParameters {
24955
25468
  /**
24956
25469
  * 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.
@@ -35195,6 +35708,7 @@ export declare namespace discoveryengine_v1alpha {
35195
35708
  * // request body parameters
35196
35709
  * // {
35197
35710
  * // "actionSpec": {},
35711
+ * // "agentsSpec": {},
35198
35712
  * // "generationSpec": {},
35199
35713
  * // "query": {},
35200
35714
  * // "session": "my_session",
@@ -41936,6 +42450,75 @@ export declare namespace discoveryengine_v1alpha {
41936
42450
  getDocumentProcessingConfig(params: Params$Resource$Projects$Locations$Datastores$Getdocumentprocessingconfig, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>): void;
41937
42451
  getDocumentProcessingConfig(params: Params$Resource$Projects$Locations$Datastores$Getdocumentprocessingconfig, callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>): void;
41938
42452
  getDocumentProcessingConfig(callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig>): void;
42453
+ /**
42454
+ * 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.
42455
+ * @example
42456
+ * ```js
42457
+ * // Before running the sample:
42458
+ * // - Enable the API at:
42459
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
42460
+ * // - Login into gcloud by running:
42461
+ * // ```sh
42462
+ * // $ gcloud auth application-default login
42463
+ * // ```
42464
+ * // - Install the npm module by running:
42465
+ * // ```sh
42466
+ * // $ npm install googleapis
42467
+ * // ```
42468
+ *
42469
+ * const {google} = require('googleapis');
42470
+ * const discoveryengine = google.discoveryengine('v1alpha');
42471
+ *
42472
+ * async function main() {
42473
+ * const auth = new google.auth.GoogleAuth({
42474
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
42475
+ * scopes: [
42476
+ * 'https://www.googleapis.com/auth/cloud-platform',
42477
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
42478
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
42479
+ * ],
42480
+ * });
42481
+ *
42482
+ * // Acquire an auth client, and bind it to all future calls
42483
+ * const authClient = await auth.getClient();
42484
+ * google.options({auth: authClient});
42485
+ *
42486
+ * // Do the magic
42487
+ * const res = await discoveryengine.projects.locations.dataStores.getIamPolicy({
42488
+ * // 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).
42489
+ * 'options.requestedPolicyVersion': 'placeholder-value',
42490
+ * // 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.
42491
+ * resource:
42492
+ * 'projects/my-project/locations/my-location/dataStores/my-dataStore',
42493
+ * });
42494
+ * console.log(res.data);
42495
+ *
42496
+ * // Example response
42497
+ * // {
42498
+ * // "bindings": [],
42499
+ * // "etag": "my_etag",
42500
+ * // "version": 0
42501
+ * // }
42502
+ * }
42503
+ *
42504
+ * main().catch(e => {
42505
+ * console.error(e);
42506
+ * throw e;
42507
+ * });
42508
+ *
42509
+ * ```
42510
+ *
42511
+ * @param params - Parameters for request
42512
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
42513
+ * @param callback - Optional callback that handles the response.
42514
+ * @returns A promise if used with async/await, or void if used with a callback.
42515
+ */
42516
+ getIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Getiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
42517
+ getIamPolicy(params?: Params$Resource$Projects$Locations$Datastores$Getiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
42518
+ getIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Getiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
42519
+ getIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Getiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
42520
+ getIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Getiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
42521
+ getIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
41939
42522
  /**
41940
42523
  * Gets the SiteSearchEngine.
41941
42524
  * @example
@@ -42358,6 +42941,81 @@ export declare namespace discoveryengine_v1alpha {
42358
42941
  replacePatientFilter(params: Params$Resource$Projects$Locations$Datastores$Replacepatientfilter, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
42359
42942
  replacePatientFilter(params: Params$Resource$Projects$Locations$Datastores$Replacepatientfilter, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
42360
42943
  replacePatientFilter(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
42944
+ /**
42945
+ * 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.
42946
+ * @example
42947
+ * ```js
42948
+ * // Before running the sample:
42949
+ * // - Enable the API at:
42950
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
42951
+ * // - Login into gcloud by running:
42952
+ * // ```sh
42953
+ * // $ gcloud auth application-default login
42954
+ * // ```
42955
+ * // - Install the npm module by running:
42956
+ * // ```sh
42957
+ * // $ npm install googleapis
42958
+ * // ```
42959
+ *
42960
+ * const {google} = require('googleapis');
42961
+ * const discoveryengine = google.discoveryengine('v1alpha');
42962
+ *
42963
+ * async function main() {
42964
+ * const auth = new google.auth.GoogleAuth({
42965
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
42966
+ * scopes: [
42967
+ * 'https://www.googleapis.com/auth/cloud-platform',
42968
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
42969
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
42970
+ * ],
42971
+ * });
42972
+ *
42973
+ * // Acquire an auth client, and bind it to all future calls
42974
+ * const authClient = await auth.getClient();
42975
+ * google.options({auth: authClient});
42976
+ *
42977
+ * // Do the magic
42978
+ * const res = await discoveryengine.projects.locations.dataStores.setIamPolicy({
42979
+ * // 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.
42980
+ * resource:
42981
+ * 'projects/my-project/locations/my-location/dataStores/my-dataStore',
42982
+ *
42983
+ * // Request body metadata
42984
+ * requestBody: {
42985
+ * // request body parameters
42986
+ * // {
42987
+ * // "policy": {}
42988
+ * // }
42989
+ * },
42990
+ * });
42991
+ * console.log(res.data);
42992
+ *
42993
+ * // Example response
42994
+ * // {
42995
+ * // "bindings": [],
42996
+ * // "etag": "my_etag",
42997
+ * // "version": 0
42998
+ * // }
42999
+ * }
43000
+ *
43001
+ * main().catch(e => {
43002
+ * console.error(e);
43003
+ * throw e;
43004
+ * });
43005
+ *
43006
+ * ```
43007
+ *
43008
+ * @param params - Parameters for request
43009
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
43010
+ * @param callback - Optional callback that handles the response.
43011
+ * @returns A promise if used with async/await, or void if used with a callback.
43012
+ */
43013
+ setIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Setiampolicy, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
43014
+ setIamPolicy(params?: Params$Resource$Projects$Locations$Datastores$Setiampolicy, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleIamV1Policy>>;
43015
+ setIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Setiampolicy, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
43016
+ setIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Setiampolicy, options: MethodOptions | BodyResponseCallback<Schema$GoogleIamV1Policy>, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
43017
+ setIamPolicy(params: Params$Resource$Projects$Locations$Datastores$Setiampolicy, callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
43018
+ setIamPolicy(callback: BodyResponseCallback<Schema$GoogleIamV1Policy>): void;
42361
43019
  /**
42362
43020
  * Updates the CompletionConfigs.
42363
43021
  * @example
@@ -42635,6 +43293,16 @@ export declare namespace discoveryengine_v1alpha {
42635
43293
  */
42636
43294
  name?: string;
42637
43295
  }
43296
+ export interface Params$Resource$Projects$Locations$Datastores$Getiampolicy extends StandardParameters {
43297
+ /**
43298
+ * 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).
43299
+ */
43300
+ 'options.requestedPolicyVersion'?: number;
43301
+ /**
43302
+ * 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.
43303
+ */
43304
+ resource?: string;
43305
+ }
42638
43306
  export interface Params$Resource$Projects$Locations$Datastores$Getsitesearchengine extends StandardParameters {
42639
43307
  /**
42640
43308
  * 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 +43365,16 @@ export declare namespace discoveryengine_v1alpha {
42697
43365
  */
42698
43366
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaReplacePatientFilterRequest;
42699
43367
  }
43368
+ export interface Params$Resource$Projects$Locations$Datastores$Setiampolicy extends StandardParameters {
43369
+ /**
43370
+ * 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.
43371
+ */
43372
+ resource?: string;
43373
+ /**
43374
+ * Request body metadata
43375
+ */
43376
+ requestBody?: Schema$GoogleIamV1SetIamPolicyRequest;
43377
+ }
42700
43378
  export interface Params$Resource$Projects$Locations$Datastores$Updatecompletionconfig extends StandardParameters {
42701
43379
  /**
42702
43380
  * 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`