@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20241123 → 0.0.20241205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +394 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://discoveryengine.googleapis.com/$discovery/rest?version=v1beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20241205
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -182,6 +182,10 @@ declare namespace gapi.client {
|
|
|
182
182
|
completeTime?: string;
|
|
183
183
|
/** Output only. Answer creation timestamp. */
|
|
184
184
|
createTime?: string;
|
|
185
|
+
/** A score in the range of [0, 1] describing how grounded the answer is by the reference chunks. */
|
|
186
|
+
groundingScore?: number;
|
|
187
|
+
/** Optional. Grounding supports. */
|
|
188
|
+
groundingSupports?: GoogleCloudDiscoveryengineV1alphaAnswerGroundingSupport[];
|
|
185
189
|
/** Immutable. Fully qualified name `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*` */
|
|
186
190
|
name?: string;
|
|
187
191
|
/** Query understanding information. */
|
|
@@ -207,6 +211,18 @@ declare namespace gapi.client {
|
|
|
207
211
|
/** ID of the citation source. */
|
|
208
212
|
referenceId?: string;
|
|
209
213
|
}
|
|
214
|
+
interface GoogleCloudDiscoveryengineV1alphaAnswerGroundingSupport {
|
|
215
|
+
/** Required. End of the claim, exclusive. */
|
|
216
|
+
endIndex?: string;
|
|
217
|
+
/** Indicates that this claim required grounding check. When the system decided this claim didn't require attribution/grounding check, this field is set to false. In that case, no grounding check was done for the claim and therefore `grounding_score`, `sources` is not returned. */
|
|
218
|
+
groundingCheckRequired?: boolean;
|
|
219
|
+
/** A score in the range of [0, 1] describing how grounded is a specific claim by the references. Higher value means that the claim is better supported by the reference chunks. */
|
|
220
|
+
groundingScore?: number;
|
|
221
|
+
/** Optional. Citation sources for the claim. */
|
|
222
|
+
sources?: GoogleCloudDiscoveryengineV1alphaAnswerCitationSource[];
|
|
223
|
+
/** Required. Index indicates the start of the claim, measured in bytes (UTF-8 unicode). */
|
|
224
|
+
startIndex?: string;
|
|
225
|
+
}
|
|
210
226
|
interface GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo {
|
|
211
227
|
/** Query classification information. */
|
|
212
228
|
queryClassificationInfo?: GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo[];
|
|
@@ -560,6 +576,10 @@ declare namespace gapi.client {
|
|
|
560
576
|
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
561
577
|
updateTime?: string;
|
|
562
578
|
}
|
|
579
|
+
interface GoogleCloudDiscoveryengineV1alphaDeleteSessionRequest {
|
|
580
|
+
/** Required. The resource name of the Session to delete. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` */
|
|
581
|
+
name?: string;
|
|
582
|
+
}
|
|
563
583
|
interface GoogleCloudDiscoveryengineV1alphaDeleteSitemapMetadata {
|
|
564
584
|
/** Operation create time. */
|
|
565
585
|
createTime?: string;
|
|
@@ -785,6 +805,12 @@ declare namespace gapi.client {
|
|
|
785
805
|
/** If searchable_option is SEARCHABLE_ENABLED, field values are searchable by text queries in SearchService.Search. If SEARCHABLE_ENABLED but field type is numerical, field values will not be searchable by text queries in SearchService.Search, as there are no text values associated to numerical fields. If searchable_option is unset, the server behavior defaults to SEARCHABLE_DISABLED for fields that support setting searchable options. Only `string` fields that have no key property mapping support setting searchable_option. For those fields that do not support setting searchable options, the server will skip searchable option setting, and setting searchable_option for those fields will throw `INVALID_ARGUMENT` error. */
|
|
786
806
|
searchableOption?: string;
|
|
787
807
|
}
|
|
808
|
+
interface GoogleCloudDiscoveryengineV1alphaGetSessionRequest {
|
|
809
|
+
/** Optional. If set to true, the full session including all answer details will be returned. */
|
|
810
|
+
includeAnswerDetails?: boolean;
|
|
811
|
+
/** Required. The resource name of the Session to get. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` */
|
|
812
|
+
name?: string;
|
|
813
|
+
}
|
|
788
814
|
interface GoogleCloudDiscoveryengineV1alphaGetUriPatternDocumentDataResponse {
|
|
789
815
|
/** Document data keyed by URI pattern. For example: document_data_map = { "www.url1.com/*": { "Categories": ["category1", "category2"] }, "www.url2.com/*": { "Categories": ["category3"] } } */
|
|
790
816
|
documentDataMap?: {[P in string]: {[P in string]: any}};
|
|
@@ -913,6 +939,24 @@ declare namespace gapi.client {
|
|
|
913
939
|
/** List of custom tuning models. */
|
|
914
940
|
models?: GoogleCloudDiscoveryengineV1alphaCustomTuningModel[];
|
|
915
941
|
}
|
|
942
|
+
interface GoogleCloudDiscoveryengineV1alphaListSessionsRequest {
|
|
943
|
+
/** A filter to apply on the list results. The supported features are: user_pseudo_id, state. Example: "user_pseudo_id = some_id" */
|
|
944
|
+
filter?: string;
|
|
945
|
+
/** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `update_time` * `create_time` * `session_name` Example: "update_time desc" "create_time" */
|
|
946
|
+
orderBy?: string;
|
|
947
|
+
/** Maximum number of results to return. If unspecified, defaults to 50. Max allowed value is 1000. */
|
|
948
|
+
pageSize?: number;
|
|
949
|
+
/** A page token, received from a previous `ListSessions` call. Provide this to retrieve the subsequent page. */
|
|
950
|
+
pageToken?: string;
|
|
951
|
+
/** Required. The data store resource name. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` */
|
|
952
|
+
parent?: string;
|
|
953
|
+
}
|
|
954
|
+
interface GoogleCloudDiscoveryengineV1alphaListSessionsResponse {
|
|
955
|
+
/** Pagination token, if not returned indicates the last page. */
|
|
956
|
+
nextPageToken?: string;
|
|
957
|
+
/** All the Sessions for a given data store. */
|
|
958
|
+
sessions?: GoogleCloudDiscoveryengineV1alphaSession[];
|
|
959
|
+
}
|
|
916
960
|
interface GoogleCloudDiscoveryengineV1alphaNaturalLanguageQueryUnderstandingConfig {
|
|
917
961
|
/** Mode of Natural Language Query Understanding. If this field is unset, the behavior defaults to NaturalLanguageQueryUnderstandingConfig.Mode.DISABLED. */
|
|
918
962
|
mode?: string;
|
|
@@ -1269,6 +1313,8 @@ declare namespace gapi.client {
|
|
|
1269
1313
|
version?: string;
|
|
1270
1314
|
}
|
|
1271
1315
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec {
|
|
1316
|
+
/** Optional. Boost specification to boost certain documents. For more information on boosting, see [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) */
|
|
1317
|
+
boostSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec;
|
|
1272
1318
|
/** Required. Full resource name of DataStore, such as `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. */
|
|
1273
1319
|
dataStore?: string;
|
|
1274
1320
|
/** Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) */
|
|
@@ -1345,8 +1391,12 @@ declare namespace gapi.client {
|
|
|
1345
1391
|
mode?: string;
|
|
1346
1392
|
}
|
|
1347
1393
|
interface GoogleCloudDiscoveryengineV1alphaSession {
|
|
1394
|
+
/** Optional. The display name of the session. This field is used to identify the session in the UI. By default, the display name is the first turn query text in the session. */
|
|
1395
|
+
displayName?: string;
|
|
1348
1396
|
/** Output only. The time the session finished. */
|
|
1349
1397
|
endTime?: string;
|
|
1398
|
+
/** Optional. Whether the session is pinned, pinned session will be displayed on the top of the session list. */
|
|
1399
|
+
isPinned?: boolean;
|
|
1350
1400
|
/** Immutable. Fully qualified name `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*` */
|
|
1351
1401
|
name?: string;
|
|
1352
1402
|
/** Output only. The time the session started. */
|
|
@@ -1452,6 +1502,12 @@ declare namespace gapi.client {
|
|
|
1452
1502
|
/** Operation last update time. If the operation is done, this is also the finish time. */
|
|
1453
1503
|
updateTime?: string;
|
|
1454
1504
|
}
|
|
1505
|
+
interface GoogleCloudDiscoveryengineV1alphaUpdateSessionRequest {
|
|
1506
|
+
/** Required. The Session to update. */
|
|
1507
|
+
session?: GoogleCloudDiscoveryengineV1alphaSession;
|
|
1508
|
+
/** Indicates which fields in the provided Session to update. The following are NOT supported: * Session.name If not set or empty, all supported fields are updated. */
|
|
1509
|
+
updateMask?: string;
|
|
1510
|
+
}
|
|
1455
1511
|
interface GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata {
|
|
1456
1512
|
/** Operation create time. */
|
|
1457
1513
|
createTime?: string;
|
|
@@ -1582,6 +1638,10 @@ declare namespace gapi.client {
|
|
|
1582
1638
|
completeTime?: string;
|
|
1583
1639
|
/** Output only. Answer creation timestamp. */
|
|
1584
1640
|
createTime?: string;
|
|
1641
|
+
/** A score in the range of [0, 1] describing how grounded the answer is by the reference chunks. */
|
|
1642
|
+
groundingScore?: number;
|
|
1643
|
+
/** Optional. Grounding supports. */
|
|
1644
|
+
groundingSupports?: GoogleCloudDiscoveryengineV1betaAnswerGroundingSupport[];
|
|
1585
1645
|
/** Immutable. Fully qualified name `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*` */
|
|
1586
1646
|
name?: string;
|
|
1587
1647
|
/** Query understanding information. */
|
|
@@ -1607,6 +1667,18 @@ declare namespace gapi.client {
|
|
|
1607
1667
|
/** ID of the citation source. */
|
|
1608
1668
|
referenceId?: string;
|
|
1609
1669
|
}
|
|
1670
|
+
interface GoogleCloudDiscoveryengineV1betaAnswerGroundingSupport {
|
|
1671
|
+
/** Required. End of the claim, exclusive. */
|
|
1672
|
+
endIndex?: string;
|
|
1673
|
+
/** Indicates that this claim required grounding check. When the system decided this claim didn't require attribution/grounding check, this field is set to false. In that case, no grounding check was done for the claim and therefore `grounding_score`, `sources` is not returned. */
|
|
1674
|
+
groundingCheckRequired?: boolean;
|
|
1675
|
+
/** A score in the range of [0, 1] describing how grounded is a specific claim by the references. Higher value means that the claim is better supported by the reference chunks. */
|
|
1676
|
+
groundingScore?: number;
|
|
1677
|
+
/** Optional. Citation sources for the claim. */
|
|
1678
|
+
sources?: GoogleCloudDiscoveryengineV1betaAnswerCitationSource[];
|
|
1679
|
+
/** Required. Index indicates the start of the claim, measured in bytes (UTF-8 unicode). */
|
|
1680
|
+
startIndex?: string;
|
|
1681
|
+
}
|
|
1610
1682
|
interface GoogleCloudDiscoveryengineV1betaAnswerQueryRequest {
|
|
1611
1683
|
/** Answer generation specification. */
|
|
1612
1684
|
answerGenerationSpec?: GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec;
|
|
@@ -1678,6 +1750,12 @@ declare namespace gapi.client {
|
|
|
1678
1750
|
disable?: boolean;
|
|
1679
1751
|
/** Max rephrase steps. The max number is 5 steps. If not set or set to < 1, it will be set to 1 by default. */
|
|
1680
1752
|
maxRephraseSteps?: number;
|
|
1753
|
+
/** Optional. Query Rephraser Model specification. */
|
|
1754
|
+
modelSpec?: GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpecModelSpec;
|
|
1755
|
+
}
|
|
1756
|
+
interface GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpecModelSpec {
|
|
1757
|
+
/** Optional. Enabled query rephraser model type. If not set, it will use LARGE by default. */
|
|
1758
|
+
modelType?: string;
|
|
1681
1759
|
}
|
|
1682
1760
|
interface GoogleCloudDiscoveryengineV1betaAnswerQueryRequestRelatedQuestionsSpec {
|
|
1683
1761
|
/** Enable related questions feature if true. */
|
|
@@ -2622,6 +2700,8 @@ declare namespace gapi.client {
|
|
|
2622
2700
|
gcsStagingDir?: string;
|
|
2623
2701
|
/** The FHIR resource types to import. The resource types should be a subset of all [supported FHIR resource types](https://cloud.google.com/generative-ai-app-builder/docs/fhir-schema-reference#resource-level-specification). Default to all supported FHIR resource types if empty. */
|
|
2624
2702
|
resourceTypes?: string[];
|
|
2703
|
+
/** Optional. Whether to update the DataStore schema to the latest predefined schema. If true, the DataStore schema will be updated to include any FHIR fields or resource types that have been added since the last import and corresponding FHIR resources will be imported from the FHIR store. Note this field cannot be used in conjunction with `resource_types`. It should be used after initial import. */
|
|
2704
|
+
updateFromLatestPredefinedSchema?: boolean;
|
|
2625
2705
|
}
|
|
2626
2706
|
interface GoogleCloudDiscoveryengineV1betaFirestoreSource {
|
|
2627
2707
|
/** Required. The Firestore collection (or entity) to copy the data from with a length limit of 1,500 characters. */
|
|
@@ -3389,6 +3469,8 @@ declare namespace gapi.client {
|
|
|
3389
3469
|
version?: string;
|
|
3390
3470
|
}
|
|
3391
3471
|
interface GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec {
|
|
3472
|
+
/** Optional. Boost specification to boost certain documents. For more information on boosting, see [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) */
|
|
3473
|
+
boostSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec;
|
|
3392
3474
|
/** Required. Full resource name of DataStore, such as `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. */
|
|
3393
3475
|
dataStore?: string;
|
|
3394
3476
|
/** Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) */
|
|
@@ -3738,8 +3820,12 @@ declare namespace gapi.client {
|
|
|
3738
3820
|
demotionEventType?: string;
|
|
3739
3821
|
}
|
|
3740
3822
|
interface GoogleCloudDiscoveryengineV1betaSession {
|
|
3823
|
+
/** Optional. The display name of the session. This field is used to identify the session in the UI. By default, the display name is the first turn query text in the session. */
|
|
3824
|
+
displayName?: string;
|
|
3741
3825
|
/** Output only. The time the session finished. */
|
|
3742
3826
|
endTime?: string;
|
|
3827
|
+
/** Optional. Whether the session is pinned, pinned session will be displayed on the top of the session list. */
|
|
3828
|
+
isPinned?: boolean;
|
|
3743
3829
|
/** Immutable. Fully qualified name `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*` */
|
|
3744
3830
|
name?: string;
|
|
3745
3831
|
/** Output only. The time the session started. */
|
|
@@ -4416,6 +4502,130 @@ declare namespace gapi.client {
|
|
|
4416
4502
|
/** Required. The URL for the page the user wants to promote. */
|
|
4417
4503
|
uri?: string;
|
|
4418
4504
|
}
|
|
4505
|
+
interface GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec {
|
|
4506
|
+
/** Specifies the chunk spec to be returned from the search response. Only available if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS */
|
|
4507
|
+
chunkSpec?: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecChunkSpec;
|
|
4508
|
+
/** If there is no extractive_content_spec provided, there will be no extractive answer in the search response. */
|
|
4509
|
+
extractiveContentSpec?: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec;
|
|
4510
|
+
/** Specifies the search result mode. If unspecified, the search result mode defaults to `DOCUMENTS`. */
|
|
4511
|
+
searchResultMode?: string;
|
|
4512
|
+
/** If `snippetSpec` is not specified, snippets are not included in the search response. */
|
|
4513
|
+
snippetSpec?: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec;
|
|
4514
|
+
/** If `summarySpec` is not specified, summaries are not included in the search response. */
|
|
4515
|
+
summarySpec?: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec;
|
|
4516
|
+
}
|
|
4517
|
+
interface GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecChunkSpec {
|
|
4518
|
+
/** The number of next chunks to be returned of the current chunk. The maximum allowed value is 3. If not specified, no next chunks will be returned. */
|
|
4519
|
+
numNextChunks?: number;
|
|
4520
|
+
/** The number of previous chunks to be returned of the current chunk. The maximum allowed value is 3. If not specified, no previous chunks will be returned. */
|
|
4521
|
+
numPreviousChunks?: number;
|
|
4522
|
+
}
|
|
4523
|
+
interface GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec {
|
|
4524
|
+
/** The maximum number of extractive answers returned in each search result. An extractive answer is a verbatim answer extracted from the original document, which provides a precise and contextually relevant answer to the search query. If the number of matching answers is less than the `max_extractive_answer_count`, return all of the answers. Otherwise, return the `max_extractive_answer_count`. At most five answers are returned for each SearchResult. */
|
|
4525
|
+
maxExtractiveAnswerCount?: number;
|
|
4526
|
+
/** The max number of extractive segments returned in each search result. Only applied if the DataStore is set to DataStore.ContentConfig.CONTENT_REQUIRED or DataStore.solution_types is SOLUTION_TYPE_CHAT. An extractive segment is a text segment extracted from the original document that is relevant to the search query, and, in general, more verbose than an extractive answer. The segment could then be used as input for LLMs to generate summaries and answers. If the number of matching segments is less than `max_extractive_segment_count`, return all of the segments. Otherwise, return the `max_extractive_segment_count`. */
|
|
4527
|
+
maxExtractiveSegmentCount?: number;
|
|
4528
|
+
/** Return at most `num_next_segments` segments after each selected segments. */
|
|
4529
|
+
numNextSegments?: number;
|
|
4530
|
+
/** Specifies whether to also include the adjacent from each selected segments. Return at most `num_previous_segments` segments before each selected segments. */
|
|
4531
|
+
numPreviousSegments?: number;
|
|
4532
|
+
/** Specifies whether to return the confidence score from the extractive segments in each search result. This feature is available only for new or allowlisted data stores. To allowlist your data store, contact your Customer Engineer. The default value is `false`. */
|
|
4533
|
+
returnExtractiveSegmentScore?: boolean;
|
|
4534
|
+
}
|
|
4535
|
+
interface GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec {
|
|
4536
|
+
/** [DEPRECATED] This field is deprecated. To control snippet return, use `return_snippet` field. For backwards compatibility, we will return snippet if max_snippet_count > 0. */
|
|
4537
|
+
maxSnippetCount?: number;
|
|
4538
|
+
/** [DEPRECATED] This field is deprecated and will have no affect on the snippet. */
|
|
4539
|
+
referenceOnly?: boolean;
|
|
4540
|
+
/** If `true`, then return snippet. If no snippet can be generated, we return "No snippet is available for this page." A `snippet_status` with `SUCCESS` or `NO_SNIPPET_AVAILABLE` will also be returned. */
|
|
4541
|
+
returnSnippet?: boolean;
|
|
4542
|
+
}
|
|
4543
|
+
interface GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec {
|
|
4544
|
+
/** Specifies whether to filter out adversarial queries. The default value is `false`. Google employs search-query classification to detect adversarial queries. No summary is returned if the search query is classified as an adversarial query. For example, a user might ask a question regarding negative comments about the company or submit a query designed to generate unsafe, policy-violating output. If this field is set to `true`, we skip generating summaries for adversarial queries and return fallback messages instead. */
|
|
4545
|
+
ignoreAdversarialQuery?: boolean;
|
|
4546
|
+
/** Optional. Specifies whether to filter out jail-breaking queries. The default value is `false`. Google employs search-query classification to detect jail-breaking queries. No summary is returned if the search query is classified as a jail-breaking query. A user might add instructions to the query to change the tone, style, language, content of the answer, or ask the model to act as a different entity, e.g. "Reply in the tone of a competing company's CEO". If this field is set to `true`, we skip generating summaries for jail-breaking queries and return fallback messages instead. */
|
|
4547
|
+
ignoreJailBreakingQuery?: boolean;
|
|
4548
|
+
/** Specifies whether to filter out queries that have low relevance. The default value is `false`. If this field is set to `false`, all search results are used regardless of relevance to generate answers. If set to `true`, only queries with high relevance search results will generate answers. */
|
|
4549
|
+
ignoreLowRelevantContent?: boolean;
|
|
4550
|
+
/** Specifies whether to filter out queries that are not summary-seeking. The default value is `false`. Google employs search-query classification to detect summary-seeking queries. No summary is returned if the search query is classified as a non-summary seeking query. For example, `why is the sky blue` and `Who is the best soccer player in the world?` are summary-seeking queries, but `SFO airport` and `world cup 2026` are not. They are most likely navigational queries. If this field is set to `true`, we skip generating summaries for non-summary seeking queries and return fallback messages instead. */
|
|
4551
|
+
ignoreNonSummarySeekingQuery?: boolean;
|
|
4552
|
+
/** Specifies whether to include citations in the summary. The default value is `false`. When this field is set to `true`, summaries include in-line citation numbers. Example summary including citations: BigQuery is Google Cloud's fully managed and completely serverless enterprise data warehouse [1]. BigQuery supports all data types, works across clouds, and has built-in machine learning and business intelligence, all within a unified platform [2, 3]. The citation numbers refer to the returned search results and are 1-indexed. For example, [1] means that the sentence is attributed to the first search result. [2, 3] means that the sentence is attributed to both the second and third search results. */
|
|
4553
|
+
includeCitations?: boolean;
|
|
4554
|
+
/** Language code for Summary. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an experimental feature. */
|
|
4555
|
+
languageCode?: string;
|
|
4556
|
+
/** If specified, the spec will be used to modify the prompt provided to the LLM. */
|
|
4557
|
+
modelPromptSpec?: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelPromptSpec;
|
|
4558
|
+
/** If specified, the spec will be used to modify the model specification provided to the LLM. */
|
|
4559
|
+
modelSpec?: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelSpec;
|
|
4560
|
+
/** The number of top results to generate the summary from. If the number of results returned is less than `summaryResultCount`, the summary is generated from all of the results. At most 10 results for documents mode, or 50 for chunks mode, can be used to generate a summary. The chunks mode is used when SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS. */
|
|
4561
|
+
summaryResultCount?: number;
|
|
4562
|
+
/** If true, answer will be generated from most relevant chunks from top search results. This feature will improve summary quality. Note that with this feature enabled, not all top search results will be referenced and included in the reference list, so the citation source index only points to the search results listed in the reference list. */
|
|
4563
|
+
useSemanticChunks?: boolean;
|
|
4564
|
+
}
|
|
4565
|
+
interface GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelPromptSpec {
|
|
4566
|
+
/** Text at the beginning of the prompt that instructs the assistant. Examples are available in the user guide. */
|
|
4567
|
+
preamble?: string;
|
|
4568
|
+
}
|
|
4569
|
+
interface GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelSpec {
|
|
4570
|
+
/** The model version used to generate the summary. Supported values are: * `stable`: string. Default value when no value is specified. Uses a generally available, fine-tuned model. For more information, see [Answer generation model versions and lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). * `preview`: string. (Public preview) Uses a preview model. For more information, see [Answer generation model versions and lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). */
|
|
4571
|
+
version?: string;
|
|
4572
|
+
}
|
|
4573
|
+
interface GoogleCloudDiscoveryengineV1ServingConfig {
|
|
4574
|
+
/** Boost controls to use in serving path. All triggered boost controls will be applied. Boost controls must be in the same data store as the serving config. Maximum of 20 boost controls. */
|
|
4575
|
+
boostControlIds?: string[];
|
|
4576
|
+
/** Output only. ServingConfig created timestamp. */
|
|
4577
|
+
createTime?: string;
|
|
4578
|
+
/** Required. The human readable serving config display name. Used in Discovery UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned. */
|
|
4579
|
+
displayName?: string;
|
|
4580
|
+
/** Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. Order does not matter. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH. */
|
|
4581
|
+
dissociateControlIds?: string[];
|
|
4582
|
+
/** How much diversity to use in recommendation model results e.g. `medium-diversity` or `high-diversity`. Currently supported values: * `no-diversity` * `low-diversity` * `medium-diversity` * `high-diversity` * `auto-diversity` If not specified, we choose default based on recommendation model type. Default value: `no-diversity`. Can only be set if SolutionType is SOLUTION_TYPE_RECOMMENDATION. */
|
|
4583
|
+
diversityLevel?: string;
|
|
4584
|
+
/** Filter controls to use in serving path. All triggered filter controls will be applied. Filter controls must be in the same data store as the serving config. Maximum of 20 filter controls. */
|
|
4585
|
+
filterControlIds?: string[];
|
|
4586
|
+
/** The GenericConfig of the serving configuration. */
|
|
4587
|
+
genericConfig?: GoogleCloudDiscoveryengineV1ServingConfigGenericConfig;
|
|
4588
|
+
/** Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. Order does not matter. Maximum number of specifications is 100. */
|
|
4589
|
+
ignoreControlIds?: string[];
|
|
4590
|
+
/** The MediaConfig of the serving configuration. */
|
|
4591
|
+
mediaConfig?: GoogleCloudDiscoveryengineV1ServingConfigMediaConfig;
|
|
4592
|
+
/** The id of the model to use at serving time. Currently only RecommendationModels are supported. Can be changed but only to a compatible model (e.g. others-you-may-like CTR to others-you-may-like CVR). Required when SolutionType is SOLUTION_TYPE_RECOMMENDATION. */
|
|
4593
|
+
modelId?: string;
|
|
4594
|
+
/** Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}` */
|
|
4595
|
+
name?: string;
|
|
4596
|
+
/** Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH. */
|
|
4597
|
+
onewaySynonymsControlIds?: string[];
|
|
4598
|
+
/** Condition promote specifications. Maximum number of specifications is 100. */
|
|
4599
|
+
promoteControlIds?: string[];
|
|
4600
|
+
/** The ranking expression controls the customized ranking on retrieval documents. To leverage this, document embedding is required. The ranking expression setting in ServingConfig applies to all search requests served by the serving config. However, if SearchRequest.ranking_expression is specified, it overrides the ServingConfig ranking expression. The ranking expression is a single function or multiple functions that are joined by "+". * ranking_expression = function, { " + ", function }; Supported functions: * double * relevance_score * double * dotProduct(embedding_field_path) Function variables: * `relevance_score`: pre-defined keywords, used for measure relevance between query and document. * `embedding_field_path`: the document embedding field used with query embedding vector. * `dotProduct`: embedding function between embedding_field_path and query embedding vector. Example ranking expression: If document has an embedding field doc_embedding, the ranking expression could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. */
|
|
4601
|
+
rankingExpression?: string;
|
|
4602
|
+
/** IDs of the redirect controls. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH. */
|
|
4603
|
+
redirectControlIds?: string[];
|
|
4604
|
+
/** Condition replacement specifications. Applied according to the order in the list. A previously replaced term can not be re-replaced. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH. */
|
|
4605
|
+
replacementControlIds?: string[];
|
|
4606
|
+
/** Required. Immutable. Specifies the solution type that a serving config can be associated with. */
|
|
4607
|
+
solutionType?: string;
|
|
4608
|
+
/** Condition synonyms specifications. If multiple synonyms conditions match, all matching synonyms controls in the list will execute. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH. */
|
|
4609
|
+
synonymsControlIds?: string[];
|
|
4610
|
+
/** Output only. ServingConfig updated timestamp. */
|
|
4611
|
+
updateTime?: string;
|
|
4612
|
+
}
|
|
4613
|
+
interface GoogleCloudDiscoveryengineV1ServingConfigGenericConfig {
|
|
4614
|
+
/** Specifies the expected behavior of content search. Only valid for content-search enabled data store. */
|
|
4615
|
+
contentSearchSpec?: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec;
|
|
4616
|
+
}
|
|
4617
|
+
interface GoogleCloudDiscoveryengineV1ServingConfigMediaConfig {
|
|
4618
|
+
/** Specifies the content freshness used for recommendation result. Contents will be demoted if contents were published for more than content freshness cutoff days. */
|
|
4619
|
+
contentFreshnessCutoffDays?: number;
|
|
4620
|
+
/** Specifies the content watched percentage threshold for demotion. Threshold value must be between [0, 1.0] inclusive. */
|
|
4621
|
+
contentWatchedPercentageThreshold?: number;
|
|
4622
|
+
/** Specifies the content watched minutes threshold for demotion. */
|
|
4623
|
+
contentWatchedSecondsThreshold?: number;
|
|
4624
|
+
/** Optional. Specifies the number of days to look back for demoting watched content. If set to zero or unset, defaults to the maximum of 365 days. */
|
|
4625
|
+
demoteContentWatchedPastDays?: number;
|
|
4626
|
+
/** Specifies the event type used for demoting recommendation result. Currently supported values: * `view-item`: Item viewed. * `media-play`: Start/resume watching a video, playing a song, etc. * `media-complete`: Finished or stopped midway through a video, song, etc. If unset, watch history demotion will not be applied. Content freshness demotion will still be applied. */
|
|
4627
|
+
demotionEventType?: string;
|
|
4628
|
+
}
|
|
4419
4629
|
interface GoogleCloudDiscoveryengineV1SiteVerificationInfo {
|
|
4420
4630
|
/** Site verification state indicating the ownership and validity. */
|
|
4421
4631
|
siteVerificationState?: string;
|
|
@@ -6570,6 +6780,64 @@ declare namespace gapi.client {
|
|
|
6570
6780
|
},
|
|
6571
6781
|
body: GoogleCloudDiscoveryengineV1betaSearchRequest
|
|
6572
6782
|
): Request<GoogleCloudDiscoveryengineV1betaSearchResponse>;
|
|
6783
|
+
/** Answer query method (streaming). It takes one AnswerQueryRequest and returns multiple AnswerQueryResponse messages in a stream. */
|
|
6784
|
+
streamAnswer(request: {
|
|
6785
|
+
/** V1 error format. */
|
|
6786
|
+
'$.xgafv'?: string;
|
|
6787
|
+
/** OAuth access token. */
|
|
6788
|
+
access_token?: string;
|
|
6789
|
+
/** Data format for response. */
|
|
6790
|
+
alt?: string;
|
|
6791
|
+
/** JSONP */
|
|
6792
|
+
callback?: string;
|
|
6793
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
6794
|
+
fields?: string;
|
|
6795
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
6796
|
+
key?: string;
|
|
6797
|
+
/** OAuth 2.0 token for the current user. */
|
|
6798
|
+
oauth_token?: string;
|
|
6799
|
+
/** Returns response with indentations and line breaks. */
|
|
6800
|
+
prettyPrint?: boolean;
|
|
6801
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
6802
|
+
quotaUser?: string;
|
|
6803
|
+
/** Required. The resource name of the Search serving config, such as `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, or `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search. */
|
|
6804
|
+
servingConfig: string;
|
|
6805
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
6806
|
+
upload_protocol?: string;
|
|
6807
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
6808
|
+
uploadType?: string;
|
|
6809
|
+
/** Request body */
|
|
6810
|
+
resource: GoogleCloudDiscoveryengineV1betaAnswerQueryRequest;
|
|
6811
|
+
}): Request<GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>;
|
|
6812
|
+
streamAnswer(
|
|
6813
|
+
request: {
|
|
6814
|
+
/** V1 error format. */
|
|
6815
|
+
'$.xgafv'?: string;
|
|
6816
|
+
/** OAuth access token. */
|
|
6817
|
+
access_token?: string;
|
|
6818
|
+
/** Data format for response. */
|
|
6819
|
+
alt?: string;
|
|
6820
|
+
/** JSONP */
|
|
6821
|
+
callback?: string;
|
|
6822
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
6823
|
+
fields?: string;
|
|
6824
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
6825
|
+
key?: string;
|
|
6826
|
+
/** OAuth 2.0 token for the current user. */
|
|
6827
|
+
oauth_token?: string;
|
|
6828
|
+
/** Returns response with indentations and line breaks. */
|
|
6829
|
+
prettyPrint?: boolean;
|
|
6830
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
6831
|
+
quotaUser?: string;
|
|
6832
|
+
/** Required. The resource name of the Search serving config, such as `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, or `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search. */
|
|
6833
|
+
servingConfig: string;
|
|
6834
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
6835
|
+
upload_protocol?: string;
|
|
6836
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
6837
|
+
uploadType?: string;
|
|
6838
|
+
},
|
|
6839
|
+
body: GoogleCloudDiscoveryengineV1betaAnswerQueryRequest
|
|
6840
|
+
): Request<GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>;
|
|
6573
6841
|
}
|
|
6574
6842
|
interface AnswersResource {
|
|
6575
6843
|
/** Gets a Answer. */
|
|
@@ -6698,6 +6966,8 @@ declare namespace gapi.client {
|
|
|
6698
6966
|
callback?: string;
|
|
6699
6967
|
/** Selector specifying which fields to include in a partial response. */
|
|
6700
6968
|
fields?: string;
|
|
6969
|
+
/** Optional. If set to true, the full session including all answer details will be returned. */
|
|
6970
|
+
includeAnswerDetails?: boolean;
|
|
6701
6971
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
6702
6972
|
key?: string;
|
|
6703
6973
|
/** Required. The resource name of the Session to get. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` */
|
|
@@ -7690,7 +7960,7 @@ declare namespace gapi.client {
|
|
|
7690
7960
|
key?: string;
|
|
7691
7961
|
/** OAuth 2.0 token for the current user. */
|
|
7692
7962
|
oauth_token?: string;
|
|
7693
|
-
/** Required. The parent
|
|
7963
|
+
/** Required. The parent resource name. If the collect user event action is applied in DataStore level, the format is: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. If the collect user event action is applied in Location level, for example, the event with Document across multiple DataStore, the format is: `projects/{project}/locations/{location}`. */
|
|
7694
7964
|
parent: string;
|
|
7695
7965
|
/** Returns response with indentations and line breaks. */
|
|
7696
7966
|
prettyPrint?: boolean;
|
|
@@ -9204,6 +9474,64 @@ declare namespace gapi.client {
|
|
|
9204
9474
|
},
|
|
9205
9475
|
body: GoogleCloudDiscoveryengineV1betaSearchRequest
|
|
9206
9476
|
): Request<GoogleCloudDiscoveryengineV1betaSearchResponse>;
|
|
9477
|
+
/** Answer query method (streaming). It takes one AnswerQueryRequest and returns multiple AnswerQueryResponse messages in a stream. */
|
|
9478
|
+
streamAnswer(request: {
|
|
9479
|
+
/** V1 error format. */
|
|
9480
|
+
'$.xgafv'?: string;
|
|
9481
|
+
/** OAuth access token. */
|
|
9482
|
+
access_token?: string;
|
|
9483
|
+
/** Data format for response. */
|
|
9484
|
+
alt?: string;
|
|
9485
|
+
/** JSONP */
|
|
9486
|
+
callback?: string;
|
|
9487
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
9488
|
+
fields?: string;
|
|
9489
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
9490
|
+
key?: string;
|
|
9491
|
+
/** OAuth 2.0 token for the current user. */
|
|
9492
|
+
oauth_token?: string;
|
|
9493
|
+
/** Returns response with indentations and line breaks. */
|
|
9494
|
+
prettyPrint?: boolean;
|
|
9495
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
9496
|
+
quotaUser?: string;
|
|
9497
|
+
/** Required. The resource name of the Search serving config, such as `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, or `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search. */
|
|
9498
|
+
servingConfig: string;
|
|
9499
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
9500
|
+
upload_protocol?: string;
|
|
9501
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
9502
|
+
uploadType?: string;
|
|
9503
|
+
/** Request body */
|
|
9504
|
+
resource: GoogleCloudDiscoveryengineV1betaAnswerQueryRequest;
|
|
9505
|
+
}): Request<GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>;
|
|
9506
|
+
streamAnswer(
|
|
9507
|
+
request: {
|
|
9508
|
+
/** V1 error format. */
|
|
9509
|
+
'$.xgafv'?: string;
|
|
9510
|
+
/** OAuth access token. */
|
|
9511
|
+
access_token?: string;
|
|
9512
|
+
/** Data format for response. */
|
|
9513
|
+
alt?: string;
|
|
9514
|
+
/** JSONP */
|
|
9515
|
+
callback?: string;
|
|
9516
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
9517
|
+
fields?: string;
|
|
9518
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
9519
|
+
key?: string;
|
|
9520
|
+
/** OAuth 2.0 token for the current user. */
|
|
9521
|
+
oauth_token?: string;
|
|
9522
|
+
/** Returns response with indentations and line breaks. */
|
|
9523
|
+
prettyPrint?: boolean;
|
|
9524
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
9525
|
+
quotaUser?: string;
|
|
9526
|
+
/** Required. The resource name of the Search serving config, such as `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, or `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search. */
|
|
9527
|
+
servingConfig: string;
|
|
9528
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
9529
|
+
upload_protocol?: string;
|
|
9530
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
9531
|
+
uploadType?: string;
|
|
9532
|
+
},
|
|
9533
|
+
body: GoogleCloudDiscoveryengineV1betaAnswerQueryRequest
|
|
9534
|
+
): Request<GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>;
|
|
9207
9535
|
}
|
|
9208
9536
|
interface AnswersResource {
|
|
9209
9537
|
/** Gets a Answer. */
|
|
@@ -9332,6 +9660,8 @@ declare namespace gapi.client {
|
|
|
9332
9660
|
callback?: string;
|
|
9333
9661
|
/** Selector specifying which fields to include in a partial response. */
|
|
9334
9662
|
fields?: string;
|
|
9663
|
+
/** Optional. If set to true, the full session including all answer details will be returned. */
|
|
9664
|
+
includeAnswerDetails?: boolean;
|
|
9335
9665
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
9336
9666
|
key?: string;
|
|
9337
9667
|
/** Required. The resource name of the Session to get. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` */
|
|
@@ -11744,6 +12074,64 @@ declare namespace gapi.client {
|
|
|
11744
12074
|
},
|
|
11745
12075
|
body: GoogleCloudDiscoveryengineV1betaSearchRequest
|
|
11746
12076
|
): Request<GoogleCloudDiscoveryengineV1betaSearchResponse>;
|
|
12077
|
+
/** Answer query method (streaming). It takes one AnswerQueryRequest and returns multiple AnswerQueryResponse messages in a stream. */
|
|
12078
|
+
streamAnswer(request: {
|
|
12079
|
+
/** V1 error format. */
|
|
12080
|
+
'$.xgafv'?: string;
|
|
12081
|
+
/** OAuth access token. */
|
|
12082
|
+
access_token?: string;
|
|
12083
|
+
/** Data format for response. */
|
|
12084
|
+
alt?: string;
|
|
12085
|
+
/** JSONP */
|
|
12086
|
+
callback?: string;
|
|
12087
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
12088
|
+
fields?: string;
|
|
12089
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
12090
|
+
key?: string;
|
|
12091
|
+
/** OAuth 2.0 token for the current user. */
|
|
12092
|
+
oauth_token?: string;
|
|
12093
|
+
/** Returns response with indentations and line breaks. */
|
|
12094
|
+
prettyPrint?: boolean;
|
|
12095
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
12096
|
+
quotaUser?: string;
|
|
12097
|
+
/** Required. The resource name of the Search serving config, such as `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, or `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search. */
|
|
12098
|
+
servingConfig: string;
|
|
12099
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
12100
|
+
upload_protocol?: string;
|
|
12101
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
12102
|
+
uploadType?: string;
|
|
12103
|
+
/** Request body */
|
|
12104
|
+
resource: GoogleCloudDiscoveryengineV1betaAnswerQueryRequest;
|
|
12105
|
+
}): Request<GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>;
|
|
12106
|
+
streamAnswer(
|
|
12107
|
+
request: {
|
|
12108
|
+
/** V1 error format. */
|
|
12109
|
+
'$.xgafv'?: string;
|
|
12110
|
+
/** OAuth access token. */
|
|
12111
|
+
access_token?: string;
|
|
12112
|
+
/** Data format for response. */
|
|
12113
|
+
alt?: string;
|
|
12114
|
+
/** JSONP */
|
|
12115
|
+
callback?: string;
|
|
12116
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
12117
|
+
fields?: string;
|
|
12118
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
12119
|
+
key?: string;
|
|
12120
|
+
/** OAuth 2.0 token for the current user. */
|
|
12121
|
+
oauth_token?: string;
|
|
12122
|
+
/** Returns response with indentations and line breaks. */
|
|
12123
|
+
prettyPrint?: boolean;
|
|
12124
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
12125
|
+
quotaUser?: string;
|
|
12126
|
+
/** Required. The resource name of the Search serving config, such as `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, or `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. This field is used to identify the serving configuration name, set of models used to make the search. */
|
|
12127
|
+
servingConfig: string;
|
|
12128
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
12129
|
+
upload_protocol?: string;
|
|
12130
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
12131
|
+
uploadType?: string;
|
|
12132
|
+
},
|
|
12133
|
+
body: GoogleCloudDiscoveryengineV1betaAnswerQueryRequest
|
|
12134
|
+
): Request<GoogleCloudDiscoveryengineV1betaAnswerQueryResponse>;
|
|
11747
12135
|
}
|
|
11748
12136
|
interface AnswersResource {
|
|
11749
12137
|
/** Gets a Answer. */
|
|
@@ -11872,6 +12260,8 @@ declare namespace gapi.client {
|
|
|
11872
12260
|
callback?: string;
|
|
11873
12261
|
/** Selector specifying which fields to include in a partial response. */
|
|
11874
12262
|
fields?: string;
|
|
12263
|
+
/** Optional. If set to true, the full session including all answer details will be returned. */
|
|
12264
|
+
includeAnswerDetails?: boolean;
|
|
11875
12265
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
11876
12266
|
key?: string;
|
|
11877
12267
|
/** Required. The resource name of the Session to get. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` */
|
|
@@ -12678,7 +13068,7 @@ declare namespace gapi.client {
|
|
|
12678
13068
|
key?: string;
|
|
12679
13069
|
/** OAuth 2.0 token for the current user. */
|
|
12680
13070
|
oauth_token?: string;
|
|
12681
|
-
/** Required. The parent
|
|
13071
|
+
/** Required. The parent resource name. If the collect user event action is applied in DataStore level, the format is: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. If the collect user event action is applied in Location level, for example, the event with Document across multiple DataStore, the format is: `projects/{project}/locations/{location}`. */
|
|
12682
13072
|
parent: string;
|
|
12683
13073
|
/** Returns response with indentations and line breaks. */
|
|
12684
13074
|
prettyPrint?: boolean;
|
|
@@ -14132,7 +14522,7 @@ declare namespace gapi.client {
|
|
|
14132
14522
|
key?: string;
|
|
14133
14523
|
/** OAuth 2.0 token for the current user. */
|
|
14134
14524
|
oauth_token?: string;
|
|
14135
|
-
/** Required. The parent
|
|
14525
|
+
/** Required. The parent resource name. If the collect user event action is applied in DataStore level, the format is: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. If the collect user event action is applied in Location level, for example, the event with Document across multiple DataStore, the format is: `projects/{project}/locations/{location}`. */
|
|
14136
14526
|
parent: string;
|
|
14137
14527
|
/** Returns response with indentations and line breaks. */
|
|
14138
14528
|
prettyPrint?: boolean;
|