@googleapis/discoveryengine 7.0.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/build/v1alpha.d.ts +465 -109
- package/build/v1alpha.js +208 -0
- package/build/v1alpha.js.map +1 -1
- package/build/v1beta.d.ts +219 -109
- package/build/v1beta.js +32 -0
- package/build/v1beta.js.map +1 -1
- package/package.json +1 -1
- package/v1alpha.ts +1092 -216
- package/v1beta.ts +299 -105
package/v1alpha.ts
CHANGED
|
@@ -327,6 +327,44 @@ export namespace discoveryengine_v1alpha {
|
|
|
327
327
|
*/
|
|
328
328
|
tableId?: string | null;
|
|
329
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* Chunk captures all raw metadata information of items to be recommended or searched in the chunk mode.
|
|
332
|
+
*/
|
|
333
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaChunk {
|
|
334
|
+
/**
|
|
335
|
+
* Content is a string from a document (parsed content).
|
|
336
|
+
*/
|
|
337
|
+
content?: string | null;
|
|
338
|
+
/**
|
|
339
|
+
* Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
|
|
340
|
+
*/
|
|
341
|
+
derivedStructData?: {[key: string]: any} | null;
|
|
342
|
+
/**
|
|
343
|
+
* Metadata of the document from the current chunk.
|
|
344
|
+
*/
|
|
345
|
+
documentMetadata?: Schema$GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata;
|
|
346
|
+
/**
|
|
347
|
+
* Unique chunk id of the current chunk.
|
|
348
|
+
*/
|
|
349
|
+
id?: string | null;
|
|
350
|
+
/**
|
|
351
|
+
* The full resource name of the chunk. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/branches/{branch\}/documents/{document_id\}/chunks/{chunk_id\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
|
|
352
|
+
*/
|
|
353
|
+
name?: string | null;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Document metadata contains the information of the document of the current chunk.
|
|
357
|
+
*/
|
|
358
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata {
|
|
359
|
+
/**
|
|
360
|
+
* Title of the document.
|
|
361
|
+
*/
|
|
362
|
+
title?: string | null;
|
|
363
|
+
/**
|
|
364
|
+
* Uri of the document.
|
|
365
|
+
*/
|
|
366
|
+
uri?: string | null;
|
|
367
|
+
}
|
|
330
368
|
/**
|
|
331
369
|
* Request message for CompletionService.CompleteQuery method.
|
|
332
370
|
*/
|
|
@@ -700,10 +738,6 @@ export namespace discoveryengine_v1alpha {
|
|
|
700
738
|
*/
|
|
701
739
|
updateTime?: string | null;
|
|
702
740
|
}
|
|
703
|
-
/**
|
|
704
|
-
* The digital parsing configurations for documents.
|
|
705
|
-
*/
|
|
706
|
-
export interface Schema$GoogleCloudDiscoveryengineV1alphaDigitalParsingConfig {}
|
|
707
741
|
/**
|
|
708
742
|
* Metadata related to the progress of the SiteSearchEngineService.DisableAdvancedSiteSearch operation. This will be returned by the google.longrunning.Operation.metadata field.
|
|
709
743
|
*/
|
|
@@ -774,6 +808,9 @@ export namespace discoveryengine_v1alpha {
|
|
|
774
808
|
* ACL Information of the Document.
|
|
775
809
|
*/
|
|
776
810
|
export interface Schema$GoogleCloudDiscoveryengineV1alphaDocumentAclInfo {
|
|
811
|
+
/**
|
|
812
|
+
* Readers of the document.
|
|
813
|
+
*/
|
|
777
814
|
readers?: Schema$GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction[];
|
|
778
815
|
}
|
|
779
816
|
/**
|
|
@@ -831,6 +868,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
831
868
|
* A singleton resource of DataStore. It's empty when DataStore is created, which defaults to digital parser. The first call to DataStoreService.UpdateDocumentProcessingConfig method will initialize the config.
|
|
832
869
|
*/
|
|
833
870
|
export interface Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig {
|
|
871
|
+
/**
|
|
872
|
+
* Whether chunking mode is enabled.
|
|
873
|
+
*/
|
|
874
|
+
chunkingConfig?: Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig;
|
|
834
875
|
/**
|
|
835
876
|
* Configurations for default Document parser. If not specified, we will configure it as default DigitalParsingConfig, and the default parsing config will be applied to all file types for Document parsing.
|
|
836
877
|
*/
|
|
@@ -839,10 +880,6 @@ export namespace discoveryengine_v1alpha {
|
|
|
839
880
|
* The full resource name of the Document Processing Config. Format: `projects/x/locations/x/collections/x/dataStores/x/documentProcessingConfig`.
|
|
840
881
|
*/
|
|
841
882
|
name?: string | null;
|
|
842
|
-
/**
|
|
843
|
-
* [DEPRECATED] This field is deprecated. To specify OCR parsing config, please specify `ocr_parsing_config` in `default_parsing_config` field The OCR config. Currently it only applies to PDFs.
|
|
844
|
-
*/
|
|
845
|
-
ocrConfig?: Schema$GoogleCloudDiscoveryengineV1alphaOcrConfig;
|
|
846
883
|
/**
|
|
847
884
|
* Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and or layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported.
|
|
848
885
|
*/
|
|
@@ -852,6 +889,28 @@ export namespace discoveryengine_v1alpha {
|
|
|
852
889
|
]: Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig;
|
|
853
890
|
} | null;
|
|
854
891
|
}
|
|
892
|
+
/**
|
|
893
|
+
* Configuration for chunking config.
|
|
894
|
+
*/
|
|
895
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig {
|
|
896
|
+
/**
|
|
897
|
+
* Configuration for the layout based chunking.
|
|
898
|
+
*/
|
|
899
|
+
layoutBasedChunkingConfig?: Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig;
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* Configuration for the layout based chunking.
|
|
903
|
+
*/
|
|
904
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig {
|
|
905
|
+
/**
|
|
906
|
+
* The token size limit for each chunk. Supported values: 100-500 (inclusive). Default value: 500.
|
|
907
|
+
*/
|
|
908
|
+
chunkSize?: number | null;
|
|
909
|
+
/**
|
|
910
|
+
* Whether to include appending different levels of headings to chunks from the middle of the document to prevent context loss. Default value: False.
|
|
911
|
+
*/
|
|
912
|
+
includeAncestorHeadings?: boolean | null;
|
|
913
|
+
}
|
|
855
914
|
/**
|
|
856
915
|
* Related configurations applied to a specific type of document parser.
|
|
857
916
|
*/
|
|
@@ -859,15 +918,36 @@ export namespace discoveryengine_v1alpha {
|
|
|
859
918
|
/**
|
|
860
919
|
* Configurations applied to digital parser.
|
|
861
920
|
*/
|
|
862
|
-
digitalParsingConfig?: Schema$
|
|
921
|
+
digitalParsingConfig?: Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig;
|
|
863
922
|
/**
|
|
864
923
|
* Configurations applied to layout parser.
|
|
865
924
|
*/
|
|
866
|
-
layoutParsingConfig?: Schema$
|
|
925
|
+
layoutParsingConfig?: Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig;
|
|
867
926
|
/**
|
|
868
927
|
* Configurations applied to OCR parser. Currently it only applies to PDFs.
|
|
869
928
|
*/
|
|
870
|
-
ocrParsingConfig?: Schema$
|
|
929
|
+
ocrParsingConfig?: Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig;
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* The digital parsing configurations for documents.
|
|
933
|
+
*/
|
|
934
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig {}
|
|
935
|
+
/**
|
|
936
|
+
* The layout parsing configurations for documents.
|
|
937
|
+
*/
|
|
938
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig {}
|
|
939
|
+
/**
|
|
940
|
+
* The OCR parsing configurations for documents.
|
|
941
|
+
*/
|
|
942
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig {
|
|
943
|
+
/**
|
|
944
|
+
* Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model.
|
|
945
|
+
*/
|
|
946
|
+
enhancedDocumentElements?: string[] | null;
|
|
947
|
+
/**
|
|
948
|
+
* If true, will use native text instead of OCR text on pages containing native text.
|
|
949
|
+
*/
|
|
950
|
+
useNativeText?: boolean | null;
|
|
871
951
|
}
|
|
872
952
|
/**
|
|
873
953
|
* Double list.
|
|
@@ -912,10 +992,6 @@ export namespace discoveryengine_v1alpha {
|
|
|
912
992
|
* Metadata that describes the training and serving parameters of an Engine.
|
|
913
993
|
*/
|
|
914
994
|
export interface Schema$GoogleCloudDiscoveryengineV1alphaEngine {
|
|
915
|
-
/**
|
|
916
|
-
* Whether the search engine can associate with multiple data stores. If true, the generic search engine can associate with one or more data stores. This is an input-only field.
|
|
917
|
-
*/
|
|
918
|
-
allowMultipleDataStoresSearchEngine?: boolean | null;
|
|
919
995
|
/**
|
|
920
996
|
* Configurations for the Chat Engine. Only applicable if solution_type is SOLUTION_TYPE_CHAT.
|
|
921
997
|
*/
|
|
@@ -1512,9 +1588,18 @@ export namespace discoveryengine_v1alpha {
|
|
|
1512
1588
|
minimum?: number | null;
|
|
1513
1589
|
}
|
|
1514
1590
|
/**
|
|
1515
|
-
*
|
|
1591
|
+
* Response message for ChunkService.ListChunks method.
|
|
1516
1592
|
*/
|
|
1517
|
-
export interface Schema$
|
|
1593
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse {
|
|
1594
|
+
/**
|
|
1595
|
+
* The Chunks.
|
|
1596
|
+
*/
|
|
1597
|
+
chunks?: Schema$GoogleCloudDiscoveryengineV1alphaChunk[];
|
|
1598
|
+
/**
|
|
1599
|
+
* A token that can be sent as ListChunksRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
|
|
1600
|
+
*/
|
|
1601
|
+
nextPageToken?: string | null;
|
|
1602
|
+
}
|
|
1518
1603
|
/**
|
|
1519
1604
|
* Response for ListConversations method.
|
|
1520
1605
|
*/
|
|
@@ -1641,36 +1726,6 @@ export namespace discoveryengine_v1alpha {
|
|
|
1641
1726
|
*/
|
|
1642
1727
|
mediaProgressPercentage?: number | null;
|
|
1643
1728
|
}
|
|
1644
|
-
/**
|
|
1645
|
-
* The OCR options for parsing documents.
|
|
1646
|
-
*/
|
|
1647
|
-
export interface Schema$GoogleCloudDiscoveryengineV1alphaOcrConfig {
|
|
1648
|
-
/**
|
|
1649
|
-
* Required. If OCR is enabled or not. OCR must be enabled for other OcrConfig options to apply. We will only perform OCR on the first 80 pages of the PDF files.
|
|
1650
|
-
*/
|
|
1651
|
-
enabled?: boolean | null;
|
|
1652
|
-
/**
|
|
1653
|
-
* Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model.
|
|
1654
|
-
*/
|
|
1655
|
-
enhancedDocumentElements?: string[] | null;
|
|
1656
|
-
/**
|
|
1657
|
-
* If true, will use native text instead of OCR text on pages containing native text.
|
|
1658
|
-
*/
|
|
1659
|
-
useNativeText?: boolean | null;
|
|
1660
|
-
}
|
|
1661
|
-
/**
|
|
1662
|
-
* The OCR parsing configurations for documents.
|
|
1663
|
-
*/
|
|
1664
|
-
export interface Schema$GoogleCloudDiscoveryengineV1alphaOcrParsingConfig {
|
|
1665
|
-
/**
|
|
1666
|
-
* Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model.
|
|
1667
|
-
*/
|
|
1668
|
-
enhancedDocumentElements?: string[] | null;
|
|
1669
|
-
/**
|
|
1670
|
-
* If true, will use native text instead of OCR text on pages containing native text.
|
|
1671
|
-
*/
|
|
1672
|
-
useNativeText?: boolean | null;
|
|
1673
|
-
}
|
|
1674
1729
|
/**
|
|
1675
1730
|
* Detailed page information.
|
|
1676
1731
|
*/
|
|
@@ -1730,6 +1785,19 @@ export namespace discoveryengine_v1alpha {
|
|
|
1730
1785
|
*/
|
|
1731
1786
|
userId?: string | null;
|
|
1732
1787
|
}
|
|
1788
|
+
/**
|
|
1789
|
+
* Document captures all raw metadata information of items to be recommended or searched.
|
|
1790
|
+
*/
|
|
1791
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument {
|
|
1792
|
+
/**
|
|
1793
|
+
* Required. Full resource name of the referenced document, in the format `projects/x/locations/x/collections/x/dataStores/x/branches/x/documents/x`.
|
|
1794
|
+
*/
|
|
1795
|
+
document?: string | null;
|
|
1796
|
+
/**
|
|
1797
|
+
* The JSON string representation of the processed document.
|
|
1798
|
+
*/
|
|
1799
|
+
jsonData?: string | null;
|
|
1800
|
+
}
|
|
1733
1801
|
/**
|
|
1734
1802
|
* Metadata related to the progress of the PurgeDocuments operation. This will be returned by the google.longrunning.Operation.metadata field.
|
|
1735
1803
|
*/
|
|
@@ -2123,6 +2191,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
2123
2191
|
* Custom fine tuning configs.
|
|
2124
2192
|
*/
|
|
2125
2193
|
customFineTuningSpec?: Schema$GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec;
|
|
2194
|
+
/**
|
|
2195
|
+
* A list of data store specs to apply on a search call.
|
|
2196
|
+
*/
|
|
2197
|
+
dataStoreSpecs?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec[];
|
|
2126
2198
|
/**
|
|
2127
2199
|
* Uses the provided embedding to do additional semantic document retrieval. The retrieval is based on the dot product of SearchRequest.EmbeddingSpec.EmbeddingVector.vector and the document embedding that is provided in SearchRequest.EmbeddingSpec.EmbeddingVector.field_path. If SearchRequest.EmbeddingSpec.EmbeddingVector.field_path is not provided, it will use ServingConfig.EmbeddingConfig.field_path.
|
|
2128
2200
|
*/
|
|
@@ -2210,11 +2282,11 @@ export namespace discoveryengine_v1alpha {
|
|
|
2210
2282
|
*/
|
|
2211
2283
|
export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec {
|
|
2212
2284
|
/**
|
|
2213
|
-
* Strength of the condition boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0. Setting to 1.0 gives the document a big promotion. However, it does not necessarily mean that the boosted document will be the top result at all times, nor that other documents will be excluded. Results could still be shown even when none of them matches the condition. And results that are significantly more relevant to the search query can still trump your heavily favored but irrelevant documents. Setting to -1.0 gives the document a big demotion. However, results that are deeply relevant might still be shown. The document will have an upstream battle to get a fairly high ranking, but it is not blocked out completely. Setting to 0.0 means no boost applied. The boosting condition is ignored.
|
|
2285
|
+
* Strength of the condition boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0. Setting to 1.0 gives the document a big promotion. However, it does not necessarily mean that the boosted document will be the top result at all times, nor that other documents will be excluded. Results could still be shown even when none of them matches the condition. And results that are significantly more relevant to the search query can still trump your heavily favored but irrelevant documents. Setting to -1.0 gives the document a big demotion. However, results that are deeply relevant might still be shown. The document will have an upstream battle to get a fairly high ranking, but it is not blocked out completely. Setting to 0.0 means no boost applied. The boosting condition is ignored. Only one of the (condition, boost) combination or the boost_control_spec below are set. If both are set then the global boost is ignored and the more fine-grained boost_control_spec is applied.
|
|
2214
2286
|
*/
|
|
2215
2287
|
boost?: number | null;
|
|
2216
2288
|
/**
|
|
2217
|
-
* An expression which specifies a boost condition. The syntax and supported fields are the same as a filter expression. See SearchRequest.filter for detail syntax and limitations. Examples: * To boost documents with document ID "doc_1" or "doc_2", and color "Red" or "Blue":
|
|
2289
|
+
* An expression which specifies a boost condition. The syntax and supported fields are the same as a filter expression. See SearchRequest.filter for detail syntax and limitations. Examples: * To boost documents with document ID "doc_1" or "doc_2", and color "Red" or "Blue": `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))`
|
|
2218
2290
|
*/
|
|
2219
2291
|
condition?: string | null;
|
|
2220
2292
|
}
|
|
@@ -2226,6 +2298,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
2226
2298
|
* If there is no extractive_content_spec provided, there will be no extractive answer in the search response.
|
|
2227
2299
|
*/
|
|
2228
2300
|
extractiveContentSpec?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec;
|
|
2301
|
+
/**
|
|
2302
|
+
* Specifies the search result mode. If unspecified, the search result mode is based on DataStore.DocumentProcessingConfig.chunking_config: * If DataStore.DocumentProcessingConfig.chunking_config is specified, it defaults to `CHUNKS`. * Otherwise, it defaults to `DOCUMENTS`.
|
|
2303
|
+
*/
|
|
2304
|
+
searchResultMode?: string | null;
|
|
2229
2305
|
/**
|
|
2230
2306
|
* If `snippetSpec` is not specified, snippets are not included in the search response.
|
|
2231
2307
|
*/
|
|
@@ -2255,6 +2331,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
2255
2331
|
* Specifies whether to also include the adjacent from each selected segments. Return at most `num_previous_segments` segments before each selected segments.
|
|
2256
2332
|
*/
|
|
2257
2333
|
numPreviousSegments?: number | null;
|
|
2334
|
+
/**
|
|
2335
|
+
* 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, please contact your Customer Engineer. The default value is `false`.
|
|
2336
|
+
*/
|
|
2337
|
+
returnExtractiveSegmentScore?: boolean | null;
|
|
2258
2338
|
}
|
|
2259
2339
|
/**
|
|
2260
2340
|
* A specification for configuring snippets in a search response.
|
|
@@ -2302,9 +2382,13 @@ export namespace discoveryengine_v1alpha {
|
|
|
2302
2382
|
*/
|
|
2303
2383
|
modelSpec?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec;
|
|
2304
2384
|
/**
|
|
2305
|
-
* 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
|
|
2385
|
+
* 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 can be used to generate a summary.
|
|
2306
2386
|
*/
|
|
2307
2387
|
summaryResultCount?: number | null;
|
|
2388
|
+
/**
|
|
2389
|
+
* If true, answer will be generated from most relevant chunks from top search results. This feature will improve summary quality. Please 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.
|
|
2390
|
+
*/
|
|
2391
|
+
useSemanticChunks?: boolean | null;
|
|
2308
2392
|
}
|
|
2309
2393
|
/**
|
|
2310
2394
|
* Specification of the prompt to use with the model.
|
|
@@ -2320,10 +2404,19 @@ export namespace discoveryengine_v1alpha {
|
|
|
2320
2404
|
*/
|
|
2321
2405
|
export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec {
|
|
2322
2406
|
/**
|
|
2323
|
-
* 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
|
|
2407
|
+
* 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).
|
|
2324
2408
|
*/
|
|
2325
2409
|
version?: string | null;
|
|
2326
2410
|
}
|
|
2411
|
+
/**
|
|
2412
|
+
* A struct to define data stores to filter on in a search call.
|
|
2413
|
+
*/
|
|
2414
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec {
|
|
2415
|
+
/**
|
|
2416
|
+
* Required. Full resource name of DataStore, such as `projects/{project\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}`.
|
|
2417
|
+
*/
|
|
2418
|
+
dataStore?: string | null;
|
|
2419
|
+
}
|
|
2327
2420
|
/**
|
|
2328
2421
|
* The specification that uses customized query embedding vector to do semantic document retrieval.
|
|
2329
2422
|
*/
|
|
@@ -2571,6 +2664,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
2571
2664
|
* Represents the search results.
|
|
2572
2665
|
*/
|
|
2573
2666
|
export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult {
|
|
2667
|
+
/**
|
|
2668
|
+
* The chunk data in the search response if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS.
|
|
2669
|
+
*/
|
|
2670
|
+
chunk?: Schema$GoogleCloudDiscoveryengineV1alphaChunk;
|
|
2574
2671
|
/**
|
|
2575
2672
|
* The document data snippet in the search response. Only fields that are marked as retrievable are populated.
|
|
2576
2673
|
*/
|
|
@@ -2746,7 +2843,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
2746
2843
|
*/
|
|
2747
2844
|
modelId?: string | null;
|
|
2748
2845
|
/**
|
|
2749
|
-
* Immutable. Fully qualified name `projects/{project\}/locations/{location\}/collections/{collection_id\}/
|
|
2846
|
+
* Immutable. Fully qualified name `projects/{project\}/locations/{location\}/collections/{collection_id\}/engines/{engine_id\}/servingConfigs/{serving_config_id\}`
|
|
2750
2847
|
*/
|
|
2751
2848
|
name?: string | null;
|
|
2752
2849
|
/**
|
|
@@ -2795,10 +2892,6 @@ export namespace discoveryengine_v1alpha {
|
|
|
2795
2892
|
* Specifies the content freshness used for recommendation result. Contents will be demoted if contents were published for more than content freshness cutoff days.
|
|
2796
2893
|
*/
|
|
2797
2894
|
contentFreshnessCutoffDays?: number | null;
|
|
2798
|
-
/**
|
|
2799
|
-
* Specifies the content watched minutes threshold for demotion.
|
|
2800
|
-
*/
|
|
2801
|
-
contentWatchedMinutesThreshold?: number | null;
|
|
2802
2895
|
/**
|
|
2803
2896
|
* Specifies the content watched percentage threshold for demotion. Threshold value must be between [0, 1.0] inclusive.
|
|
2804
2897
|
*/
|
|
@@ -2954,11 +3047,11 @@ export namespace discoveryengine_v1alpha {
|
|
|
2954
3047
|
*/
|
|
2955
3048
|
export interface Schema$GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput {
|
|
2956
3049
|
/**
|
|
2957
|
-
* The Cloud Storage corpus data which could be associated in train data. The data path format is gs
|
|
3050
|
+
* The Cloud Storage corpus data which could be associated in train data. The data path format is `gs:///`. A newline delimited jsonl/ndjson file. For search-tuning model, each line should have the _id, title and text. Example: `{"_id": "doc1", title: "relevant doc", "text": "relevant text"\}`
|
|
2958
3051
|
*/
|
|
2959
3052
|
corpusDataPath?: string | null;
|
|
2960
3053
|
/**
|
|
2961
|
-
* The gcs query data which could be associated in train data. The data path format is gs
|
|
3054
|
+
* The gcs query data which could be associated in train data. The data path format is `gs:///`. A newline delimited jsonl/ndjson file. For search-tuning model, each line should have the _id and text. Example: {"_id": "query1", "text": "example query"\}
|
|
2962
3055
|
*/
|
|
2963
3056
|
queryDataPath?: string | null;
|
|
2964
3057
|
/**
|
|
@@ -2966,7 +3059,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
2966
3059
|
*/
|
|
2967
3060
|
testDataPath?: string | null;
|
|
2968
3061
|
/**
|
|
2969
|
-
* Cloud Storage training data path whose format should be gs
|
|
3062
|
+
* Cloud Storage training data path whose format should be `gs:///`. The file should be in tsv format. Each line should have the doc_id and query_id and score (number). For search-tuning model, it should have the query-id corpus-id score as tsv file header. The score should be a number in `[0, inf+)`. The larger the number is, the more relevant the pair is. Example: * `query-id\tcorpus-id\tscore` * `query1\tdoc1\t1`
|
|
2970
3063
|
*/
|
|
2971
3064
|
trainDataPath?: string | null;
|
|
2972
3065
|
}
|
|
@@ -3202,6 +3295,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
3202
3295
|
* Whether allow no-auth integration with widget. If set true, public access to search or other solutions from widget is allowed without authenication token provided by customer hosted backend server.
|
|
3203
3296
|
*/
|
|
3204
3297
|
allowPublicAccess?: boolean | null;
|
|
3298
|
+
/**
|
|
3299
|
+
* Output only. Collection components that lists all collections and child data stores associated with the widget config, those data sources can be used for filtering in widget service APIs, users can return results that from selected data sources.
|
|
3300
|
+
*/
|
|
3301
|
+
collectionComponents?: Schema$GoogleCloudDiscoveryengineV1alphaWidgetConfigCollectionComponent[];
|
|
3205
3302
|
/**
|
|
3206
3303
|
* Output only. Unique obfuscated identifier of a WidgetConfig.
|
|
3207
3304
|
*/
|
|
@@ -3218,6 +3315,10 @@ export namespace discoveryengine_v1alpha {
|
|
|
3218
3315
|
* Output only. The type of the parent data store.
|
|
3219
3316
|
*/
|
|
3220
3317
|
dataStoreType?: string | null;
|
|
3318
|
+
/**
|
|
3319
|
+
* Configurable UI configurations per data store.
|
|
3320
|
+
*/
|
|
3321
|
+
dataStoreUiConfigs?: Schema$GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig[];
|
|
3221
3322
|
/**
|
|
3222
3323
|
* Required. The human readable widget 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.
|
|
3223
3324
|
*/
|
|
@@ -3295,6 +3396,69 @@ export namespace discoveryengine_v1alpha {
|
|
|
3295
3396
|
*/
|
|
3296
3397
|
updateTime?: string | null;
|
|
3297
3398
|
}
|
|
3399
|
+
/**
|
|
3400
|
+
* Read-only collection component that contains data store collections fields that may be used for filtering
|
|
3401
|
+
*/
|
|
3402
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaWidgetConfigCollectionComponent {
|
|
3403
|
+
/**
|
|
3404
|
+
* For the data store collection, list of the children data stores.
|
|
3405
|
+
*/
|
|
3406
|
+
dataStoreComponents?: Schema$GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreComponent[];
|
|
3407
|
+
/**
|
|
3408
|
+
* The display name of the collection.
|
|
3409
|
+
*/
|
|
3410
|
+
displayName?: string | null;
|
|
3411
|
+
/**
|
|
3412
|
+
* Output only. the identifier of the collection, used for widget service. For now it refers to collection_id, in the future we will migrate the field to encrypted collection name UUID.
|
|
3413
|
+
*/
|
|
3414
|
+
id?: string | null;
|
|
3415
|
+
/**
|
|
3416
|
+
* The name of the collection. It should be collection resource name. Format: `projects/{project_number\}/locations/{location\}/collections/{collection_id\}`. For widget service usage, such look up widget config, returned name should be skipped.
|
|
3417
|
+
*/
|
|
3418
|
+
name?: string | null;
|
|
3419
|
+
}
|
|
3420
|
+
/**
|
|
3421
|
+
* Read-only data store component that contains data stores fields that may be used for filtering, it's the child of `CollectionComponent`.
|
|
3422
|
+
*/
|
|
3423
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreComponent {
|
|
3424
|
+
/**
|
|
3425
|
+
* The display name of the data store.
|
|
3426
|
+
*/
|
|
3427
|
+
displayName?: string | null;
|
|
3428
|
+
/**
|
|
3429
|
+
* Output only. the identifier of the data store, used for widget service. For now it refers to data_store_id, in the future we will migrate the field to encrypted data store name UUID.
|
|
3430
|
+
*/
|
|
3431
|
+
id?: string | null;
|
|
3432
|
+
/**
|
|
3433
|
+
* The name of the data store. It should be data store resource name Format: `projects/{project_number\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}`. For widget service usage, such look up widget config, returned name should be skipped.
|
|
3434
|
+
*/
|
|
3435
|
+
name?: string | null;
|
|
3436
|
+
}
|
|
3437
|
+
/**
|
|
3438
|
+
* UI component configuration for data store.
|
|
3439
|
+
*/
|
|
3440
|
+
export interface Schema$GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig {
|
|
3441
|
+
/**
|
|
3442
|
+
* Facet fields that store the mapping of fields to end user widget appearance.
|
|
3443
|
+
*/
|
|
3444
|
+
facetField?: Schema$GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField[];
|
|
3445
|
+
/**
|
|
3446
|
+
* The key is the UI component. Mock. Currently supported `title`, `thumbnail`, `url`, `custom1`, `custom2`, `custom3`. The value is the name of the field along with its device visibility. The 3 custom fields are optional and can be added or removed. `title`, `thumbnail`, `url` are required UI components that cannot be removed.
|
|
3447
|
+
*/
|
|
3448
|
+
fieldsUiComponentsMap?: {
|
|
3449
|
+
[
|
|
3450
|
+
key: string
|
|
3451
|
+
]: Schema$GoogleCloudDiscoveryengineV1alphaWidgetConfigUIComponentField;
|
|
3452
|
+
} | null;
|
|
3453
|
+
/**
|
|
3454
|
+
* Output only. the identifier of the data store, used for widget service. For now it refers to data_store_id, in the future we will migrate the field to encrypted data store name UUID.
|
|
3455
|
+
*/
|
|
3456
|
+
id?: string | null;
|
|
3457
|
+
/**
|
|
3458
|
+
* The name of the data store. It should be data store resource name Format: `projects/{project_number\}/locations/{location\}/collections/{collection_id\}/dataStores/{data_store_id\}`. For widget service usage, such look up widget config, returned name should be skipped.
|
|
3459
|
+
*/
|
|
3460
|
+
name?: string | null;
|
|
3461
|
+
}
|
|
3298
3462
|
/**
|
|
3299
3463
|
* Facet fields that store the mapping of fields to end user widget appearance.
|
|
3300
3464
|
*/
|
|
@@ -3582,10 +3746,6 @@ export namespace discoveryengine_v1alpha {
|
|
|
3582
3746
|
*/
|
|
3583
3747
|
updateTime?: string | null;
|
|
3584
3748
|
}
|
|
3585
|
-
/**
|
|
3586
|
-
* The digital parsing configurations for documents.
|
|
3587
|
-
*/
|
|
3588
|
-
export interface Schema$GoogleCloudDiscoveryengineV1betaDigitalParsingConfig {}
|
|
3589
3749
|
/**
|
|
3590
3750
|
* Metadata related to the progress of the SiteSearchEngineService.DisableAdvancedSiteSearch operation. This will be returned by the google.longrunning.Operation.metadata field.
|
|
3591
3751
|
*/
|
|
@@ -3631,11 +3791,28 @@ export namespace discoveryengine_v1alpha {
|
|
|
3631
3791
|
/**
|
|
3632
3792
|
* Configurations applied to digital parser.
|
|
3633
3793
|
*/
|
|
3634
|
-
digitalParsingConfig?: Schema$
|
|
3794
|
+
digitalParsingConfig?: Schema$GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig;
|
|
3635
3795
|
/**
|
|
3636
3796
|
* Configurations applied to OCR parser. Currently it only applies to PDFs.
|
|
3637
3797
|
*/
|
|
3638
|
-
ocrParsingConfig?: Schema$
|
|
3798
|
+
ocrParsingConfig?: Schema$GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig;
|
|
3799
|
+
}
|
|
3800
|
+
/**
|
|
3801
|
+
* The digital parsing configurations for documents.
|
|
3802
|
+
*/
|
|
3803
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig {}
|
|
3804
|
+
/**
|
|
3805
|
+
* The OCR parsing configurations for documents.
|
|
3806
|
+
*/
|
|
3807
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig {
|
|
3808
|
+
/**
|
|
3809
|
+
* Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model.
|
|
3810
|
+
*/
|
|
3811
|
+
enhancedDocumentElements?: string[] | null;
|
|
3812
|
+
/**
|
|
3813
|
+
* If true, will use native text instead of OCR text on pages containing native text.
|
|
3814
|
+
*/
|
|
3815
|
+
useNativeText?: boolean | null;
|
|
3639
3816
|
}
|
|
3640
3817
|
/**
|
|
3641
3818
|
* Metadata related to the progress of the SiteSearchEngineService.EnableAdvancedSiteSearch operation. This will be returned by the google.longrunning.Operation.metadata field.
|
|
@@ -3883,19 +4060,6 @@ export namespace discoveryengine_v1alpha {
|
|
|
3883
4060
|
*/
|
|
3884
4061
|
unjoinedEventsCount?: string | null;
|
|
3885
4062
|
}
|
|
3886
|
-
/**
|
|
3887
|
-
* The OCR parsing configurations for documents.
|
|
3888
|
-
*/
|
|
3889
|
-
export interface Schema$GoogleCloudDiscoveryengineV1betaOcrParsingConfig {
|
|
3890
|
-
/**
|
|
3891
|
-
* Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model.
|
|
3892
|
-
*/
|
|
3893
|
-
enhancedDocumentElements?: string[] | null;
|
|
3894
|
-
/**
|
|
3895
|
-
* If true, will use native text instead of OCR text on pages containing native text.
|
|
3896
|
-
*/
|
|
3897
|
-
useNativeText?: boolean | null;
|
|
3898
|
-
}
|
|
3899
4063
|
/**
|
|
3900
4064
|
* Metadata related to the progress of the PurgeDocuments operation. This will be returned by the google.longrunning.Operation.metadata field.
|
|
3901
4065
|
*/
|
|
@@ -4049,6 +4213,36 @@ export namespace discoveryengine_v1alpha {
|
|
|
4049
4213
|
*/
|
|
4050
4214
|
totalRequiredQuota?: string | null;
|
|
4051
4215
|
}
|
|
4216
|
+
/**
|
|
4217
|
+
* Metadata related to the progress of the TrainCustomModel operation. This is returned by the google.longrunning.Operation.metadata field.
|
|
4218
|
+
*/
|
|
4219
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata {
|
|
4220
|
+
/**
|
|
4221
|
+
* Operation create time.
|
|
4222
|
+
*/
|
|
4223
|
+
createTime?: string | null;
|
|
4224
|
+
/**
|
|
4225
|
+
* Operation last update time. If the operation is done, this is also the finish time.
|
|
4226
|
+
*/
|
|
4227
|
+
updateTime?: string | null;
|
|
4228
|
+
}
|
|
4229
|
+
/**
|
|
4230
|
+
* Response of the TrainCustomModelRequest. This message is returned by the google.longrunning.Operations.response field.
|
|
4231
|
+
*/
|
|
4232
|
+
export interface Schema$GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse {
|
|
4233
|
+
/**
|
|
4234
|
+
* Echoes the destination for the complete errors in the request if set.
|
|
4235
|
+
*/
|
|
4236
|
+
errorConfig?: Schema$GoogleCloudDiscoveryengineV1betaImportErrorConfig;
|
|
4237
|
+
/**
|
|
4238
|
+
* A sample of errors encountered while processing the data.
|
|
4239
|
+
*/
|
|
4240
|
+
errorSamples?: Schema$GoogleRpcStatus[];
|
|
4241
|
+
/**
|
|
4242
|
+
* The trained model status. Possible values are: * **bad-data**: The training data quality is bad. * **no-improvement**: Tuning didn't improve performance. Won't deploy. * **in-progress**: Model training is in progress. * **ready**: The model is ready for serving.
|
|
4243
|
+
*/
|
|
4244
|
+
modelStatus?: string | null;
|
|
4245
|
+
}
|
|
4052
4246
|
/**
|
|
4053
4247
|
* Metadata for UpdateSchema LRO.
|
|
4054
4248
|
*/
|
|
@@ -4220,10 +4414,6 @@ export namespace discoveryengine_v1alpha {
|
|
|
4220
4414
|
*/
|
|
4221
4415
|
updateTime?: string | null;
|
|
4222
4416
|
}
|
|
4223
|
-
/**
|
|
4224
|
-
* The digital parsing configurations for documents.
|
|
4225
|
-
*/
|
|
4226
|
-
export interface Schema$GoogleCloudDiscoveryengineV1DigitalParsingConfig {}
|
|
4227
4417
|
/**
|
|
4228
4418
|
* Metadata related to the progress of the SiteSearchEngineService.DisableAdvancedSiteSearch operation. This will be returned by the google.longrunning.Operation.metadata field.
|
|
4229
4419
|
*/
|
|
@@ -4269,11 +4459,28 @@ export namespace discoveryengine_v1alpha {
|
|
|
4269
4459
|
/**
|
|
4270
4460
|
* Configurations applied to digital parser.
|
|
4271
4461
|
*/
|
|
4272
|
-
digitalParsingConfig?: Schema$
|
|
4462
|
+
digitalParsingConfig?: Schema$GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig;
|
|
4273
4463
|
/**
|
|
4274
4464
|
* Configurations applied to OCR parser. Currently it only applies to PDFs.
|
|
4275
4465
|
*/
|
|
4276
|
-
ocrParsingConfig?: Schema$
|
|
4466
|
+
ocrParsingConfig?: Schema$GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig;
|
|
4467
|
+
}
|
|
4468
|
+
/**
|
|
4469
|
+
* The digital parsing configurations for documents.
|
|
4470
|
+
*/
|
|
4471
|
+
export interface Schema$GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig {}
|
|
4472
|
+
/**
|
|
4473
|
+
* The OCR parsing configurations for documents.
|
|
4474
|
+
*/
|
|
4475
|
+
export interface Schema$GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig {
|
|
4476
|
+
/**
|
|
4477
|
+
* Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model.
|
|
4478
|
+
*/
|
|
4479
|
+
enhancedDocumentElements?: string[] | null;
|
|
4480
|
+
/**
|
|
4481
|
+
* If true, will use native text instead of OCR text on pages containing native text.
|
|
4482
|
+
*/
|
|
4483
|
+
useNativeText?: boolean | null;
|
|
4277
4484
|
}
|
|
4278
4485
|
/**
|
|
4279
4486
|
* Metadata related to the progress of the SiteSearchEngineService.EnableAdvancedSiteSearch operation. This will be returned by the google.longrunning.Operation.metadata field.
|
|
@@ -4521,19 +4728,6 @@ export namespace discoveryengine_v1alpha {
|
|
|
4521
4728
|
*/
|
|
4522
4729
|
unjoinedEventsCount?: string | null;
|
|
4523
4730
|
}
|
|
4524
|
-
/**
|
|
4525
|
-
* The OCR parsing configurations for documents.
|
|
4526
|
-
*/
|
|
4527
|
-
export interface Schema$GoogleCloudDiscoveryengineV1OcrParsingConfig {
|
|
4528
|
-
/**
|
|
4529
|
-
* Apply additional enhanced OCR processing to a list of document elements. Supported values: * `table`: advanced table parsing model.
|
|
4530
|
-
*/
|
|
4531
|
-
enhancedDocumentElements?: string[] | null;
|
|
4532
|
-
/**
|
|
4533
|
-
* If true, will use native text instead of OCR text on pages containing native text.
|
|
4534
|
-
*/
|
|
4535
|
-
useNativeText?: boolean | null;
|
|
4536
|
-
}
|
|
4537
4731
|
/**
|
|
4538
4732
|
* Metadata related to the progress of the PurgeDocuments operation. This will be returned by the google.longrunning.Operation.metadata field.
|
|
4539
4733
|
*/
|
|
@@ -6999,8 +7193,13 @@ export namespace discoveryengine_v1alpha {
|
|
|
6999
7193
|
|
|
7000
7194
|
export class Resource$Projects$Locations$Collections$Datastores$Branches$Documents {
|
|
7001
7195
|
context: APIRequestContext;
|
|
7196
|
+
chunks: Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks;
|
|
7002
7197
|
constructor(context: APIRequestContext) {
|
|
7003
7198
|
this.context = context;
|
|
7199
|
+
this.chunks =
|
|
7200
|
+
new Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks(
|
|
7201
|
+
this.context
|
|
7202
|
+
);
|
|
7004
7203
|
}
|
|
7005
7204
|
|
|
7006
7205
|
/**
|
|
@@ -7285,6 +7484,104 @@ export namespace discoveryengine_v1alpha {
|
|
|
7285
7484
|
}
|
|
7286
7485
|
}
|
|
7287
7486
|
|
|
7487
|
+
/**
|
|
7488
|
+
* Gets the parsed layout information for a Document.
|
|
7489
|
+
*
|
|
7490
|
+
* @param params - Parameters for request
|
|
7491
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
7492
|
+
* @param callback - Optional callback that handles the response.
|
|
7493
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
7494
|
+
*/
|
|
7495
|
+
getProcessedDocument(
|
|
7496
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Getprocesseddocument,
|
|
7497
|
+
options: StreamMethodOptions
|
|
7498
|
+
): GaxiosPromise<Readable>;
|
|
7499
|
+
getProcessedDocument(
|
|
7500
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Getprocesseddocument,
|
|
7501
|
+
options?: MethodOptions
|
|
7502
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>;
|
|
7503
|
+
getProcessedDocument(
|
|
7504
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Getprocesseddocument,
|
|
7505
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
7506
|
+
callback: BodyResponseCallback<Readable>
|
|
7507
|
+
): void;
|
|
7508
|
+
getProcessedDocument(
|
|
7509
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Getprocesseddocument,
|
|
7510
|
+
options:
|
|
7511
|
+
| MethodOptions
|
|
7512
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>,
|
|
7513
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>
|
|
7514
|
+
): void;
|
|
7515
|
+
getProcessedDocument(
|
|
7516
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Getprocesseddocument,
|
|
7517
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>
|
|
7518
|
+
): void;
|
|
7519
|
+
getProcessedDocument(
|
|
7520
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>
|
|
7521
|
+
): void;
|
|
7522
|
+
getProcessedDocument(
|
|
7523
|
+
paramsOrCallback?:
|
|
7524
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Getprocesseddocument
|
|
7525
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>
|
|
7526
|
+
| BodyResponseCallback<Readable>,
|
|
7527
|
+
optionsOrCallback?:
|
|
7528
|
+
| MethodOptions
|
|
7529
|
+
| StreamMethodOptions
|
|
7530
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>
|
|
7531
|
+
| BodyResponseCallback<Readable>,
|
|
7532
|
+
callback?:
|
|
7533
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>
|
|
7534
|
+
| BodyResponseCallback<Readable>
|
|
7535
|
+
):
|
|
7536
|
+
| void
|
|
7537
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>
|
|
7538
|
+
| GaxiosPromise<Readable> {
|
|
7539
|
+
let params = (paramsOrCallback ||
|
|
7540
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Getprocesseddocument;
|
|
7541
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
7542
|
+
|
|
7543
|
+
if (typeof paramsOrCallback === 'function') {
|
|
7544
|
+
callback = paramsOrCallback;
|
|
7545
|
+
params =
|
|
7546
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Getprocesseddocument;
|
|
7547
|
+
options = {};
|
|
7548
|
+
}
|
|
7549
|
+
|
|
7550
|
+
if (typeof optionsOrCallback === 'function') {
|
|
7551
|
+
callback = optionsOrCallback;
|
|
7552
|
+
options = {};
|
|
7553
|
+
}
|
|
7554
|
+
|
|
7555
|
+
const rootUrl =
|
|
7556
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
7557
|
+
const parameters = {
|
|
7558
|
+
options: Object.assign(
|
|
7559
|
+
{
|
|
7560
|
+
url: (rootUrl + '/v1alpha/{+name}:getProcessedDocument').replace(
|
|
7561
|
+
/([^:]\/)\/+/g,
|
|
7562
|
+
'$1'
|
|
7563
|
+
),
|
|
7564
|
+
method: 'GET',
|
|
7565
|
+
},
|
|
7566
|
+
options
|
|
7567
|
+
),
|
|
7568
|
+
params,
|
|
7569
|
+
requiredParams: ['name'],
|
|
7570
|
+
pathParams: ['name'],
|
|
7571
|
+
context: this.context,
|
|
7572
|
+
};
|
|
7573
|
+
if (callback) {
|
|
7574
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>(
|
|
7575
|
+
parameters,
|
|
7576
|
+
callback as BodyResponseCallback<unknown>
|
|
7577
|
+
);
|
|
7578
|
+
} else {
|
|
7579
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>(
|
|
7580
|
+
parameters
|
|
7581
|
+
);
|
|
7582
|
+
}
|
|
7583
|
+
}
|
|
7584
|
+
|
|
7288
7585
|
/**
|
|
7289
7586
|
* Bulk import of multiple Documents. Request processing may be synchronous. Non-existing items will be created. Note: It is possible for a subset of the Documents to be successfully updated.
|
|
7290
7587
|
*
|
|
@@ -7701,6 +7998,21 @@ export namespace discoveryengine_v1alpha {
|
|
|
7701
7998
|
*/
|
|
7702
7999
|
name?: string;
|
|
7703
8000
|
}
|
|
8001
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Getprocesseddocument
|
|
8002
|
+
extends StandardParameters {
|
|
8003
|
+
/**
|
|
8004
|
+
* Required. Full resource name of Document, such as `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/branches/{branch\}/documents/{document\}`. If the caller does not have permission to access the Document, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the requested Document does not exist, a `NOT_FOUND` error is returned.
|
|
8005
|
+
*/
|
|
8006
|
+
name?: string;
|
|
8007
|
+
/**
|
|
8008
|
+
* What format output should be. If unspecified, defaults to JSON.
|
|
8009
|
+
*/
|
|
8010
|
+
processedDocumentFormat?: string;
|
|
8011
|
+
/**
|
|
8012
|
+
* Required. What type of processing to return.
|
|
8013
|
+
*/
|
|
8014
|
+
processedDocumentType?: string;
|
|
8015
|
+
}
|
|
7704
8016
|
export interface Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Import
|
|
7705
8017
|
extends StandardParameters {
|
|
7706
8018
|
/**
|
|
@@ -7761,14 +8073,14 @@ export namespace discoveryengine_v1alpha {
|
|
|
7761
8073
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest;
|
|
7762
8074
|
}
|
|
7763
8075
|
|
|
7764
|
-
export class Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
8076
|
+
export class Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks {
|
|
7765
8077
|
context: APIRequestContext;
|
|
7766
8078
|
constructor(context: APIRequestContext) {
|
|
7767
8079
|
this.context = context;
|
|
7768
8080
|
}
|
|
7769
8081
|
|
|
7770
8082
|
/**
|
|
7771
|
-
* Gets
|
|
8083
|
+
* Gets a Document.
|
|
7772
8084
|
*
|
|
7773
8085
|
* @param params - Parameters for request
|
|
7774
8086
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -7776,57 +8088,57 @@ export namespace discoveryengine_v1alpha {
|
|
|
7776
8088
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
7777
8089
|
*/
|
|
7778
8090
|
get(
|
|
7779
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
8091
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$Get,
|
|
7780
8092
|
options: StreamMethodOptions
|
|
7781
8093
|
): GaxiosPromise<Readable>;
|
|
7782
8094
|
get(
|
|
7783
|
-
params?: Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
8095
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$Get,
|
|
7784
8096
|
options?: MethodOptions
|
|
7785
|
-
): GaxiosPromise<Schema$
|
|
8097
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1alphaChunk>;
|
|
7786
8098
|
get(
|
|
7787
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
8099
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$Get,
|
|
7788
8100
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
7789
8101
|
callback: BodyResponseCallback<Readable>
|
|
7790
8102
|
): void;
|
|
7791
8103
|
get(
|
|
7792
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
8104
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$Get,
|
|
7793
8105
|
options:
|
|
7794
8106
|
| MethodOptions
|
|
7795
|
-
| BodyResponseCallback<Schema$
|
|
7796
|
-
callback: BodyResponseCallback<Schema$
|
|
8107
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaChunk>,
|
|
8108
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaChunk>
|
|
7797
8109
|
): void;
|
|
7798
8110
|
get(
|
|
7799
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
7800
|
-
callback: BodyResponseCallback<Schema$
|
|
8111
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$Get,
|
|
8112
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaChunk>
|
|
7801
8113
|
): void;
|
|
7802
8114
|
get(
|
|
7803
|
-
callback: BodyResponseCallback<Schema$
|
|
8115
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaChunk>
|
|
7804
8116
|
): void;
|
|
7805
8117
|
get(
|
|
7806
8118
|
paramsOrCallback?:
|
|
7807
|
-
| Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
7808
|
-
| BodyResponseCallback<Schema$
|
|
8119
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$Get
|
|
8120
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaChunk>
|
|
7809
8121
|
| BodyResponseCallback<Readable>,
|
|
7810
8122
|
optionsOrCallback?:
|
|
7811
8123
|
| MethodOptions
|
|
7812
8124
|
| StreamMethodOptions
|
|
7813
|
-
| BodyResponseCallback<Schema$
|
|
8125
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaChunk>
|
|
7814
8126
|
| BodyResponseCallback<Readable>,
|
|
7815
8127
|
callback?:
|
|
7816
|
-
| BodyResponseCallback<Schema$
|
|
8128
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaChunk>
|
|
7817
8129
|
| BodyResponseCallback<Readable>
|
|
7818
8130
|
):
|
|
7819
8131
|
| void
|
|
7820
|
-
| GaxiosPromise<Schema$
|
|
8132
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1alphaChunk>
|
|
7821
8133
|
| GaxiosPromise<Readable> {
|
|
7822
8134
|
let params = (paramsOrCallback ||
|
|
7823
|
-
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
8135
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$Get;
|
|
7824
8136
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
7825
8137
|
|
|
7826
8138
|
if (typeof paramsOrCallback === 'function') {
|
|
7827
8139
|
callback = paramsOrCallback;
|
|
7828
8140
|
params =
|
|
7829
|
-
{} as Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
8141
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$Get;
|
|
7830
8142
|
options = {};
|
|
7831
8143
|
}
|
|
7832
8144
|
|
|
@@ -7851,17 +8163,19 @@ export namespace discoveryengine_v1alpha {
|
|
|
7851
8163
|
context: this.context,
|
|
7852
8164
|
};
|
|
7853
8165
|
if (callback) {
|
|
7854
|
-
createAPIRequest<Schema$
|
|
8166
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaChunk>(
|
|
7855
8167
|
parameters,
|
|
7856
8168
|
callback as BodyResponseCallback<unknown>
|
|
7857
8169
|
);
|
|
7858
8170
|
} else {
|
|
7859
|
-
return createAPIRequest<Schema$
|
|
8171
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaChunk>(
|
|
8172
|
+
parameters
|
|
8173
|
+
);
|
|
7860
8174
|
}
|
|
7861
8175
|
}
|
|
7862
8176
|
|
|
7863
8177
|
/**
|
|
7864
|
-
*
|
|
8178
|
+
* Gets a list of Chunks.
|
|
7865
8179
|
*
|
|
7866
8180
|
* @param params - Parameters for request
|
|
7867
8181
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -7869,57 +8183,57 @@ export namespace discoveryengine_v1alpha {
|
|
|
7869
8183
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
7870
8184
|
*/
|
|
7871
8185
|
list(
|
|
7872
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
8186
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$List,
|
|
7873
8187
|
options: StreamMethodOptions
|
|
7874
8188
|
): GaxiosPromise<Readable>;
|
|
7875
8189
|
list(
|
|
7876
|
-
params?: Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
8190
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$List,
|
|
7877
8191
|
options?: MethodOptions
|
|
7878
|
-
): GaxiosPromise<Schema$
|
|
8192
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>;
|
|
7879
8193
|
list(
|
|
7880
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
8194
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$List,
|
|
7881
8195
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
7882
8196
|
callback: BodyResponseCallback<Readable>
|
|
7883
8197
|
): void;
|
|
7884
8198
|
list(
|
|
7885
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
8199
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$List,
|
|
7886
8200
|
options:
|
|
7887
8201
|
| MethodOptions
|
|
7888
|
-
| BodyResponseCallback<Schema$
|
|
7889
|
-
callback: BodyResponseCallback<Schema$
|
|
8202
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>,
|
|
8203
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>
|
|
7890
8204
|
): void;
|
|
7891
8205
|
list(
|
|
7892
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
7893
|
-
callback: BodyResponseCallback<Schema$
|
|
8206
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$List,
|
|
8207
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>
|
|
7894
8208
|
): void;
|
|
7895
8209
|
list(
|
|
7896
|
-
callback: BodyResponseCallback<Schema$
|
|
8210
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>
|
|
7897
8211
|
): void;
|
|
7898
8212
|
list(
|
|
7899
8213
|
paramsOrCallback?:
|
|
7900
|
-
| Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
7901
|
-
| BodyResponseCallback<Schema$
|
|
8214
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$List
|
|
8215
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>
|
|
7902
8216
|
| BodyResponseCallback<Readable>,
|
|
7903
8217
|
optionsOrCallback?:
|
|
7904
8218
|
| MethodOptions
|
|
7905
8219
|
| StreamMethodOptions
|
|
7906
|
-
| BodyResponseCallback<Schema$
|
|
8220
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>
|
|
7907
8221
|
| BodyResponseCallback<Readable>,
|
|
7908
8222
|
callback?:
|
|
7909
|
-
| BodyResponseCallback<Schema$
|
|
8223
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>
|
|
7910
8224
|
| BodyResponseCallback<Readable>
|
|
7911
8225
|
):
|
|
7912
8226
|
| void
|
|
7913
|
-
| GaxiosPromise<Schema$
|
|
8227
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>
|
|
7914
8228
|
| GaxiosPromise<Readable> {
|
|
7915
8229
|
let params = (paramsOrCallback ||
|
|
7916
|
-
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
8230
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$List;
|
|
7917
8231
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
7918
8232
|
|
|
7919
8233
|
if (typeof paramsOrCallback === 'function') {
|
|
7920
8234
|
callback = paramsOrCallback;
|
|
7921
8235
|
params =
|
|
7922
|
-
{} as Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
8236
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$List;
|
|
7923
8237
|
options = {};
|
|
7924
8238
|
}
|
|
7925
8239
|
|
|
@@ -7933,7 +8247,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
7933
8247
|
const parameters = {
|
|
7934
8248
|
options: Object.assign(
|
|
7935
8249
|
{
|
|
7936
|
-
url: (rootUrl + '/v1alpha/{+
|
|
8250
|
+
url: (rootUrl + '/v1alpha/{+parent}/chunks').replace(
|
|
7937
8251
|
/([^:]\/)\/+/g,
|
|
7938
8252
|
'$1'
|
|
7939
8253
|
),
|
|
@@ -7942,116 +8256,112 @@ export namespace discoveryengine_v1alpha {
|
|
|
7942
8256
|
options
|
|
7943
8257
|
),
|
|
7944
8258
|
params,
|
|
7945
|
-
requiredParams: ['
|
|
7946
|
-
pathParams: ['
|
|
8259
|
+
requiredParams: ['parent'],
|
|
8260
|
+
pathParams: ['parent'],
|
|
7947
8261
|
context: this.context,
|
|
7948
8262
|
};
|
|
7949
8263
|
if (callback) {
|
|
7950
|
-
createAPIRequest<Schema$
|
|
8264
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>(
|
|
7951
8265
|
parameters,
|
|
7952
8266
|
callback as BodyResponseCallback<unknown>
|
|
7953
8267
|
);
|
|
7954
8268
|
} else {
|
|
7955
|
-
return createAPIRequest<Schema$
|
|
8269
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>(
|
|
7956
8270
|
parameters
|
|
7957
8271
|
);
|
|
7958
8272
|
}
|
|
7959
8273
|
}
|
|
7960
8274
|
}
|
|
7961
8275
|
|
|
7962
|
-
export interface Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
8276
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$Get
|
|
7963
8277
|
extends StandardParameters {
|
|
7964
8278
|
/**
|
|
7965
|
-
*
|
|
8279
|
+
* Required. Full resource name of Chunk, such as `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/branches/{branch\}/documents/{document\}/chunks/{chunk\}`. If the caller does not have permission to access the Chunk, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the requested Chunk does not exist, a `NOT_FOUND` error is returned.
|
|
7966
8280
|
*/
|
|
7967
8281
|
name?: string;
|
|
7968
8282
|
}
|
|
7969
|
-
export interface Params$Resource$Projects$Locations$Collections$Datastores$Branches$
|
|
8283
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Branches$Documents$Chunks$List
|
|
7970
8284
|
extends StandardParameters {
|
|
7971
8285
|
/**
|
|
7972
|
-
* The
|
|
7973
|
-
*/
|
|
7974
|
-
filter?: string;
|
|
7975
|
-
/**
|
|
7976
|
-
* The name of the operation's parent resource.
|
|
7977
|
-
*/
|
|
7978
|
-
name?: string;
|
|
7979
|
-
/**
|
|
7980
|
-
* The standard list page size.
|
|
8286
|
+
* Maximum number of Chunks to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an `INVALID_ARGUMENT` error is returned.
|
|
7981
8287
|
*/
|
|
7982
8288
|
pageSize?: number;
|
|
7983
8289
|
/**
|
|
7984
|
-
*
|
|
8290
|
+
* A page token ListChunksResponse.next_page_token, received from a previous ChunkService.ListChunks call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ChunkService.ListChunks must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
|
7985
8291
|
*/
|
|
7986
8292
|
pageToken?: string;
|
|
8293
|
+
/**
|
|
8294
|
+
* Required. The parent document resource name, such as `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/branches/{branch\}/documents/{document\}`. If the caller does not have permission to list Chunks under this document, regardless of whether or not this document exists, a `PERMISSION_DENIED` error is returned.
|
|
8295
|
+
*/
|
|
8296
|
+
parent?: string;
|
|
7987
8297
|
}
|
|
7988
8298
|
|
|
7989
|
-
export class Resource$Projects$Locations$Collections$Datastores$
|
|
8299
|
+
export class Resource$Projects$Locations$Collections$Datastores$Branches$Operations {
|
|
7990
8300
|
context: APIRequestContext;
|
|
7991
8301
|
constructor(context: APIRequestContext) {
|
|
7992
8302
|
this.context = context;
|
|
7993
8303
|
}
|
|
7994
8304
|
|
|
7995
8305
|
/**
|
|
7996
|
-
*
|
|
8306
|
+
* Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
|
|
7997
8307
|
*
|
|
7998
8308
|
* @param params - Parameters for request
|
|
7999
8309
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
8000
8310
|
* @param callback - Optional callback that handles the response.
|
|
8001
8311
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8002
8312
|
*/
|
|
8003
|
-
|
|
8004
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8313
|
+
get(
|
|
8314
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$Get,
|
|
8005
8315
|
options: StreamMethodOptions
|
|
8006
8316
|
): GaxiosPromise<Readable>;
|
|
8007
|
-
|
|
8008
|
-
params?: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8317
|
+
get(
|
|
8318
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$Get,
|
|
8009
8319
|
options?: MethodOptions
|
|
8010
|
-
): GaxiosPromise<Schema$
|
|
8011
|
-
|
|
8012
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8320
|
+
): GaxiosPromise<Schema$GoogleLongrunningOperation>;
|
|
8321
|
+
get(
|
|
8322
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$Get,
|
|
8013
8323
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
8014
8324
|
callback: BodyResponseCallback<Readable>
|
|
8015
8325
|
): void;
|
|
8016
|
-
|
|
8017
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8326
|
+
get(
|
|
8327
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$Get,
|
|
8018
8328
|
options:
|
|
8019
8329
|
| MethodOptions
|
|
8020
|
-
| BodyResponseCallback<Schema$
|
|
8021
|
-
callback: BodyResponseCallback<Schema$
|
|
8330
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>,
|
|
8331
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
8022
8332
|
): void;
|
|
8023
|
-
|
|
8024
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8025
|
-
callback: BodyResponseCallback<Schema$
|
|
8333
|
+
get(
|
|
8334
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$Get,
|
|
8335
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
8026
8336
|
): void;
|
|
8027
|
-
|
|
8028
|
-
callback: BodyResponseCallback<Schema$
|
|
8337
|
+
get(
|
|
8338
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
8029
8339
|
): void;
|
|
8030
|
-
|
|
8340
|
+
get(
|
|
8031
8341
|
paramsOrCallback?:
|
|
8032
|
-
| Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8033
|
-
| BodyResponseCallback<Schema$
|
|
8342
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$Get
|
|
8343
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
8034
8344
|
| BodyResponseCallback<Readable>,
|
|
8035
8345
|
optionsOrCallback?:
|
|
8036
8346
|
| MethodOptions
|
|
8037
8347
|
| StreamMethodOptions
|
|
8038
|
-
| BodyResponseCallback<Schema$
|
|
8348
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
8039
8349
|
| BodyResponseCallback<Readable>,
|
|
8040
8350
|
callback?:
|
|
8041
|
-
| BodyResponseCallback<Schema$
|
|
8351
|
+
| BodyResponseCallback<Schema$GoogleLongrunningOperation>
|
|
8042
8352
|
| BodyResponseCallback<Readable>
|
|
8043
8353
|
):
|
|
8044
8354
|
| void
|
|
8045
|
-
| GaxiosPromise<Schema$
|
|
8355
|
+
| GaxiosPromise<Schema$GoogleLongrunningOperation>
|
|
8046
8356
|
| GaxiosPromise<Readable> {
|
|
8047
8357
|
let params = (paramsOrCallback ||
|
|
8048
|
-
{}) as Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8358
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$Get;
|
|
8049
8359
|
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
8050
8360
|
|
|
8051
8361
|
if (typeof paramsOrCallback === 'function') {
|
|
8052
8362
|
callback = paramsOrCallback;
|
|
8053
8363
|
params =
|
|
8054
|
-
{} as Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8364
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$Get;
|
|
8055
8365
|
options = {};
|
|
8056
8366
|
}
|
|
8057
8367
|
|
|
@@ -8065,11 +8375,8 @@ export namespace discoveryengine_v1alpha {
|
|
|
8065
8375
|
const parameters = {
|
|
8066
8376
|
options: Object.assign(
|
|
8067
8377
|
{
|
|
8068
|
-
url: (rootUrl + '/v1alpha/{+name}
|
|
8069
|
-
|
|
8070
|
-
'$1'
|
|
8071
|
-
),
|
|
8072
|
-
method: 'POST',
|
|
8378
|
+
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
8379
|
+
method: 'GET',
|
|
8073
8380
|
},
|
|
8074
8381
|
options
|
|
8075
8382
|
),
|
|
@@ -8079,51 +8386,279 @@ export namespace discoveryengine_v1alpha {
|
|
|
8079
8386
|
context: this.context,
|
|
8080
8387
|
};
|
|
8081
8388
|
if (callback) {
|
|
8082
|
-
createAPIRequest<Schema$
|
|
8389
|
+
createAPIRequest<Schema$GoogleLongrunningOperation>(
|
|
8083
8390
|
parameters,
|
|
8084
8391
|
callback as BodyResponseCallback<unknown>
|
|
8085
8392
|
);
|
|
8086
8393
|
} else {
|
|
8087
|
-
return createAPIRequest<Schema$
|
|
8088
|
-
parameters
|
|
8089
|
-
);
|
|
8394
|
+
return createAPIRequest<Schema$GoogleLongrunningOperation>(parameters);
|
|
8090
8395
|
}
|
|
8091
8396
|
}
|
|
8092
8397
|
|
|
8093
8398
|
/**
|
|
8094
|
-
*
|
|
8399
|
+
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
8095
8400
|
*
|
|
8096
8401
|
* @param params - Parameters for request
|
|
8097
8402
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
8098
8403
|
* @param callback - Optional callback that handles the response.
|
|
8099
8404
|
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8100
8405
|
*/
|
|
8101
|
-
|
|
8102
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8406
|
+
list(
|
|
8407
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$List,
|
|
8103
8408
|
options: StreamMethodOptions
|
|
8104
8409
|
): GaxiosPromise<Readable>;
|
|
8105
|
-
|
|
8106
|
-
params?: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8410
|
+
list(
|
|
8411
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$List,
|
|
8107
8412
|
options?: MethodOptions
|
|
8108
|
-
): GaxiosPromise<Schema$
|
|
8109
|
-
|
|
8110
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8413
|
+
): GaxiosPromise<Schema$GoogleLongrunningListOperationsResponse>;
|
|
8414
|
+
list(
|
|
8415
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$List,
|
|
8111
8416
|
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
8112
8417
|
callback: BodyResponseCallback<Readable>
|
|
8113
8418
|
): void;
|
|
8114
|
-
|
|
8115
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$
|
|
8419
|
+
list(
|
|
8420
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$List,
|
|
8116
8421
|
options:
|
|
8117
8422
|
| MethodOptions
|
|
8118
|
-
| BodyResponseCallback<Schema$
|
|
8119
|
-
callback: BodyResponseCallback<Schema$
|
|
8120
|
-
): void;
|
|
8121
|
-
create(
|
|
8122
|
-
params: Params$Resource$Projects$Locations$Collections$Datastores$Conversations$Create,
|
|
8123
|
-
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConversation>
|
|
8423
|
+
| BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>,
|
|
8424
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
|
|
8124
8425
|
): void;
|
|
8125
|
-
|
|
8126
|
-
|
|
8426
|
+
list(
|
|
8427
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$List,
|
|
8428
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
|
|
8429
|
+
): void;
|
|
8430
|
+
list(
|
|
8431
|
+
callback: BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
|
|
8432
|
+
): void;
|
|
8433
|
+
list(
|
|
8434
|
+
paramsOrCallback?:
|
|
8435
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$List
|
|
8436
|
+
| BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
|
|
8437
|
+
| BodyResponseCallback<Readable>,
|
|
8438
|
+
optionsOrCallback?:
|
|
8439
|
+
| MethodOptions
|
|
8440
|
+
| StreamMethodOptions
|
|
8441
|
+
| BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
|
|
8442
|
+
| BodyResponseCallback<Readable>,
|
|
8443
|
+
callback?:
|
|
8444
|
+
| BodyResponseCallback<Schema$GoogleLongrunningListOperationsResponse>
|
|
8445
|
+
| BodyResponseCallback<Readable>
|
|
8446
|
+
):
|
|
8447
|
+
| void
|
|
8448
|
+
| GaxiosPromise<Schema$GoogleLongrunningListOperationsResponse>
|
|
8449
|
+
| GaxiosPromise<Readable> {
|
|
8450
|
+
let params = (paramsOrCallback ||
|
|
8451
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$List;
|
|
8452
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
8453
|
+
|
|
8454
|
+
if (typeof paramsOrCallback === 'function') {
|
|
8455
|
+
callback = paramsOrCallback;
|
|
8456
|
+
params =
|
|
8457
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$List;
|
|
8458
|
+
options = {};
|
|
8459
|
+
}
|
|
8460
|
+
|
|
8461
|
+
if (typeof optionsOrCallback === 'function') {
|
|
8462
|
+
callback = optionsOrCallback;
|
|
8463
|
+
options = {};
|
|
8464
|
+
}
|
|
8465
|
+
|
|
8466
|
+
const rootUrl =
|
|
8467
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
8468
|
+
const parameters = {
|
|
8469
|
+
options: Object.assign(
|
|
8470
|
+
{
|
|
8471
|
+
url: (rootUrl + '/v1alpha/{+name}/operations').replace(
|
|
8472
|
+
/([^:]\/)\/+/g,
|
|
8473
|
+
'$1'
|
|
8474
|
+
),
|
|
8475
|
+
method: 'GET',
|
|
8476
|
+
},
|
|
8477
|
+
options
|
|
8478
|
+
),
|
|
8479
|
+
params,
|
|
8480
|
+
requiredParams: ['name'],
|
|
8481
|
+
pathParams: ['name'],
|
|
8482
|
+
context: this.context,
|
|
8483
|
+
};
|
|
8484
|
+
if (callback) {
|
|
8485
|
+
createAPIRequest<Schema$GoogleLongrunningListOperationsResponse>(
|
|
8486
|
+
parameters,
|
|
8487
|
+
callback as BodyResponseCallback<unknown>
|
|
8488
|
+
);
|
|
8489
|
+
} else {
|
|
8490
|
+
return createAPIRequest<Schema$GoogleLongrunningListOperationsResponse>(
|
|
8491
|
+
parameters
|
|
8492
|
+
);
|
|
8493
|
+
}
|
|
8494
|
+
}
|
|
8495
|
+
}
|
|
8496
|
+
|
|
8497
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$Get
|
|
8498
|
+
extends StandardParameters {
|
|
8499
|
+
/**
|
|
8500
|
+
* The name of the operation resource.
|
|
8501
|
+
*/
|
|
8502
|
+
name?: string;
|
|
8503
|
+
}
|
|
8504
|
+
export interface Params$Resource$Projects$Locations$Collections$Datastores$Branches$Operations$List
|
|
8505
|
+
extends StandardParameters {
|
|
8506
|
+
/**
|
|
8507
|
+
* The standard list filter.
|
|
8508
|
+
*/
|
|
8509
|
+
filter?: string;
|
|
8510
|
+
/**
|
|
8511
|
+
* The name of the operation's parent resource.
|
|
8512
|
+
*/
|
|
8513
|
+
name?: string;
|
|
8514
|
+
/**
|
|
8515
|
+
* The standard list page size.
|
|
8516
|
+
*/
|
|
8517
|
+
pageSize?: number;
|
|
8518
|
+
/**
|
|
8519
|
+
* The standard list page token.
|
|
8520
|
+
*/
|
|
8521
|
+
pageToken?: string;
|
|
8522
|
+
}
|
|
8523
|
+
|
|
8524
|
+
export class Resource$Projects$Locations$Collections$Datastores$Conversations {
|
|
8525
|
+
context: APIRequestContext;
|
|
8526
|
+
constructor(context: APIRequestContext) {
|
|
8527
|
+
this.context = context;
|
|
8528
|
+
}
|
|
8529
|
+
|
|
8530
|
+
/**
|
|
8531
|
+
* Converses a conversation.
|
|
8532
|
+
*
|
|
8533
|
+
* @param params - Parameters for request
|
|
8534
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
8535
|
+
* @param callback - Optional callback that handles the response.
|
|
8536
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8537
|
+
*/
|
|
8538
|
+
converse(
|
|
8539
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Conversations$Converse,
|
|
8540
|
+
options: StreamMethodOptions
|
|
8541
|
+
): GaxiosPromise<Readable>;
|
|
8542
|
+
converse(
|
|
8543
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Conversations$Converse,
|
|
8544
|
+
options?: MethodOptions
|
|
8545
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1alphaConverseConversationResponse>;
|
|
8546
|
+
converse(
|
|
8547
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Conversations$Converse,
|
|
8548
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
8549
|
+
callback: BodyResponseCallback<Readable>
|
|
8550
|
+
): void;
|
|
8551
|
+
converse(
|
|
8552
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Conversations$Converse,
|
|
8553
|
+
options:
|
|
8554
|
+
| MethodOptions
|
|
8555
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConverseConversationResponse>,
|
|
8556
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConverseConversationResponse>
|
|
8557
|
+
): void;
|
|
8558
|
+
converse(
|
|
8559
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Conversations$Converse,
|
|
8560
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConverseConversationResponse>
|
|
8561
|
+
): void;
|
|
8562
|
+
converse(
|
|
8563
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConverseConversationResponse>
|
|
8564
|
+
): void;
|
|
8565
|
+
converse(
|
|
8566
|
+
paramsOrCallback?:
|
|
8567
|
+
| Params$Resource$Projects$Locations$Collections$Datastores$Conversations$Converse
|
|
8568
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConverseConversationResponse>
|
|
8569
|
+
| BodyResponseCallback<Readable>,
|
|
8570
|
+
optionsOrCallback?:
|
|
8571
|
+
| MethodOptions
|
|
8572
|
+
| StreamMethodOptions
|
|
8573
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConverseConversationResponse>
|
|
8574
|
+
| BodyResponseCallback<Readable>,
|
|
8575
|
+
callback?:
|
|
8576
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConverseConversationResponse>
|
|
8577
|
+
| BodyResponseCallback<Readable>
|
|
8578
|
+
):
|
|
8579
|
+
| void
|
|
8580
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1alphaConverseConversationResponse>
|
|
8581
|
+
| GaxiosPromise<Readable> {
|
|
8582
|
+
let params = (paramsOrCallback ||
|
|
8583
|
+
{}) as Params$Resource$Projects$Locations$Collections$Datastores$Conversations$Converse;
|
|
8584
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
8585
|
+
|
|
8586
|
+
if (typeof paramsOrCallback === 'function') {
|
|
8587
|
+
callback = paramsOrCallback;
|
|
8588
|
+
params =
|
|
8589
|
+
{} as Params$Resource$Projects$Locations$Collections$Datastores$Conversations$Converse;
|
|
8590
|
+
options = {};
|
|
8591
|
+
}
|
|
8592
|
+
|
|
8593
|
+
if (typeof optionsOrCallback === 'function') {
|
|
8594
|
+
callback = optionsOrCallback;
|
|
8595
|
+
options = {};
|
|
8596
|
+
}
|
|
8597
|
+
|
|
8598
|
+
const rootUrl =
|
|
8599
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
8600
|
+
const parameters = {
|
|
8601
|
+
options: Object.assign(
|
|
8602
|
+
{
|
|
8603
|
+
url: (rootUrl + '/v1alpha/{+name}:converse').replace(
|
|
8604
|
+
/([^:]\/)\/+/g,
|
|
8605
|
+
'$1'
|
|
8606
|
+
),
|
|
8607
|
+
method: 'POST',
|
|
8608
|
+
},
|
|
8609
|
+
options
|
|
8610
|
+
),
|
|
8611
|
+
params,
|
|
8612
|
+
requiredParams: ['name'],
|
|
8613
|
+
pathParams: ['name'],
|
|
8614
|
+
context: this.context,
|
|
8615
|
+
};
|
|
8616
|
+
if (callback) {
|
|
8617
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaConverseConversationResponse>(
|
|
8618
|
+
parameters,
|
|
8619
|
+
callback as BodyResponseCallback<unknown>
|
|
8620
|
+
);
|
|
8621
|
+
} else {
|
|
8622
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaConverseConversationResponse>(
|
|
8623
|
+
parameters
|
|
8624
|
+
);
|
|
8625
|
+
}
|
|
8626
|
+
}
|
|
8627
|
+
|
|
8628
|
+
/**
|
|
8629
|
+
* Creates a Conversation. If the Conversation to create already exists, an ALREADY_EXISTS error is returned.
|
|
8630
|
+
*
|
|
8631
|
+
* @param params - Parameters for request
|
|
8632
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
8633
|
+
* @param callback - Optional callback that handles the response.
|
|
8634
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8635
|
+
*/
|
|
8636
|
+
create(
|
|
8637
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Conversations$Create,
|
|
8638
|
+
options: StreamMethodOptions
|
|
8639
|
+
): GaxiosPromise<Readable>;
|
|
8640
|
+
create(
|
|
8641
|
+
params?: Params$Resource$Projects$Locations$Collections$Datastores$Conversations$Create,
|
|
8642
|
+
options?: MethodOptions
|
|
8643
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1alphaConversation>;
|
|
8644
|
+
create(
|
|
8645
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Conversations$Create,
|
|
8646
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
8647
|
+
callback: BodyResponseCallback<Readable>
|
|
8648
|
+
): void;
|
|
8649
|
+
create(
|
|
8650
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Conversations$Create,
|
|
8651
|
+
options:
|
|
8652
|
+
| MethodOptions
|
|
8653
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConversation>,
|
|
8654
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConversation>
|
|
8655
|
+
): void;
|
|
8656
|
+
create(
|
|
8657
|
+
params: Params$Resource$Projects$Locations$Collections$Datastores$Conversations$Create,
|
|
8658
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConversation>
|
|
8659
|
+
): void;
|
|
8660
|
+
create(
|
|
8661
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaConversation>
|
|
8127
8662
|
): void;
|
|
8128
8663
|
create(
|
|
8129
8664
|
paramsOrCallback?:
|
|
@@ -10374,7 +10909,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
10374
10909
|
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Get
|
|
10375
10910
|
extends StandardParameters {
|
|
10376
10911
|
/**
|
|
10377
|
-
* Required. The resource name of the ServingConfig to get. Format: `projects/{project_number\}/locations/{location\}/collections/{collection\}/
|
|
10912
|
+
* Required. The resource name of the ServingConfig to get. Format: `projects/{project_number\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
10378
10913
|
*/
|
|
10379
10914
|
name?: string;
|
|
10380
10915
|
}
|
|
@@ -10389,14 +10924,14 @@ export namespace discoveryengine_v1alpha {
|
|
|
10389
10924
|
*/
|
|
10390
10925
|
pageToken?: string;
|
|
10391
10926
|
/**
|
|
10392
|
-
* Required.
|
|
10927
|
+
* Required. Full resource name of the parent resource. Format: `projects/{project_number\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
10393
10928
|
*/
|
|
10394
10929
|
parent?: string;
|
|
10395
10930
|
}
|
|
10396
10931
|
export interface Params$Resource$Projects$Locations$Collections$Datastores$Servingconfigs$Patch
|
|
10397
10932
|
extends StandardParameters {
|
|
10398
10933
|
/**
|
|
10399
|
-
* Immutable. Fully qualified name `projects/{project\}/locations/{location\}/collections/{collection_id\}/
|
|
10934
|
+
* Immutable. Fully qualified name `projects/{project\}/locations/{location\}/collections/{collection_id\}/engines/{engine_id\}/servingConfigs/{serving_config_id\}`
|
|
10400
10935
|
*/
|
|
10401
10936
|
name?: string;
|
|
10402
10937
|
/**
|
|
@@ -15029,7 +15564,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
15029
15564
|
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Get
|
|
15030
15565
|
extends StandardParameters {
|
|
15031
15566
|
/**
|
|
15032
|
-
* Required. The resource name of the ServingConfig to get. Format: `projects/{project_number\}/locations/{location\}/collections/{collection\}/
|
|
15567
|
+
* Required. The resource name of the ServingConfig to get. Format: `projects/{project_number\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
15033
15568
|
*/
|
|
15034
15569
|
name?: string;
|
|
15035
15570
|
}
|
|
@@ -15044,14 +15579,14 @@ export namespace discoveryengine_v1alpha {
|
|
|
15044
15579
|
*/
|
|
15045
15580
|
pageToken?: string;
|
|
15046
15581
|
/**
|
|
15047
|
-
* Required.
|
|
15582
|
+
* Required. Full resource name of the parent resource. Format: `projects/{project_number\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
15048
15583
|
*/
|
|
15049
15584
|
parent?: string;
|
|
15050
15585
|
}
|
|
15051
15586
|
export interface Params$Resource$Projects$Locations$Collections$Engines$Servingconfigs$Patch
|
|
15052
15587
|
extends StandardParameters {
|
|
15053
15588
|
/**
|
|
15054
|
-
* Immutable. Fully qualified name `projects/{project\}/locations/{location\}/collections/{collection_id\}/
|
|
15589
|
+
* Immutable. Fully qualified name `projects/{project\}/locations/{location\}/collections/{collection_id\}/engines/{engine_id\}/servingConfigs/{serving_config_id\}`
|
|
15055
15590
|
*/
|
|
15056
15591
|
name?: string;
|
|
15057
15592
|
/**
|
|
@@ -16354,8 +16889,13 @@ export namespace discoveryengine_v1alpha {
|
|
|
16354
16889
|
|
|
16355
16890
|
export class Resource$Projects$Locations$Datastores$Branches$Documents {
|
|
16356
16891
|
context: APIRequestContext;
|
|
16892
|
+
chunks: Resource$Projects$Locations$Datastores$Branches$Documents$Chunks;
|
|
16357
16893
|
constructor(context: APIRequestContext) {
|
|
16358
16894
|
this.context = context;
|
|
16895
|
+
this.chunks =
|
|
16896
|
+
new Resource$Projects$Locations$Datastores$Branches$Documents$Chunks(
|
|
16897
|
+
this.context
|
|
16898
|
+
);
|
|
16359
16899
|
}
|
|
16360
16900
|
|
|
16361
16901
|
/**
|
|
@@ -16640,6 +17180,104 @@ export namespace discoveryengine_v1alpha {
|
|
|
16640
17180
|
}
|
|
16641
17181
|
}
|
|
16642
17182
|
|
|
17183
|
+
/**
|
|
17184
|
+
* Gets the parsed layout information for a Document.
|
|
17185
|
+
*
|
|
17186
|
+
* @param params - Parameters for request
|
|
17187
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
17188
|
+
* @param callback - Optional callback that handles the response.
|
|
17189
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
17190
|
+
*/
|
|
17191
|
+
getProcessedDocument(
|
|
17192
|
+
params: Params$Resource$Projects$Locations$Datastores$Branches$Documents$Getprocesseddocument,
|
|
17193
|
+
options: StreamMethodOptions
|
|
17194
|
+
): GaxiosPromise<Readable>;
|
|
17195
|
+
getProcessedDocument(
|
|
17196
|
+
params?: Params$Resource$Projects$Locations$Datastores$Branches$Documents$Getprocesseddocument,
|
|
17197
|
+
options?: MethodOptions
|
|
17198
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>;
|
|
17199
|
+
getProcessedDocument(
|
|
17200
|
+
params: Params$Resource$Projects$Locations$Datastores$Branches$Documents$Getprocesseddocument,
|
|
17201
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
17202
|
+
callback: BodyResponseCallback<Readable>
|
|
17203
|
+
): void;
|
|
17204
|
+
getProcessedDocument(
|
|
17205
|
+
params: Params$Resource$Projects$Locations$Datastores$Branches$Documents$Getprocesseddocument,
|
|
17206
|
+
options:
|
|
17207
|
+
| MethodOptions
|
|
17208
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>,
|
|
17209
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>
|
|
17210
|
+
): void;
|
|
17211
|
+
getProcessedDocument(
|
|
17212
|
+
params: Params$Resource$Projects$Locations$Datastores$Branches$Documents$Getprocesseddocument,
|
|
17213
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>
|
|
17214
|
+
): void;
|
|
17215
|
+
getProcessedDocument(
|
|
17216
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>
|
|
17217
|
+
): void;
|
|
17218
|
+
getProcessedDocument(
|
|
17219
|
+
paramsOrCallback?:
|
|
17220
|
+
| Params$Resource$Projects$Locations$Datastores$Branches$Documents$Getprocesseddocument
|
|
17221
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>
|
|
17222
|
+
| BodyResponseCallback<Readable>,
|
|
17223
|
+
optionsOrCallback?:
|
|
17224
|
+
| MethodOptions
|
|
17225
|
+
| StreamMethodOptions
|
|
17226
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>
|
|
17227
|
+
| BodyResponseCallback<Readable>,
|
|
17228
|
+
callback?:
|
|
17229
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>
|
|
17230
|
+
| BodyResponseCallback<Readable>
|
|
17231
|
+
):
|
|
17232
|
+
| void
|
|
17233
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>
|
|
17234
|
+
| GaxiosPromise<Readable> {
|
|
17235
|
+
let params = (paramsOrCallback ||
|
|
17236
|
+
{}) as Params$Resource$Projects$Locations$Datastores$Branches$Documents$Getprocesseddocument;
|
|
17237
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
17238
|
+
|
|
17239
|
+
if (typeof paramsOrCallback === 'function') {
|
|
17240
|
+
callback = paramsOrCallback;
|
|
17241
|
+
params =
|
|
17242
|
+
{} as Params$Resource$Projects$Locations$Datastores$Branches$Documents$Getprocesseddocument;
|
|
17243
|
+
options = {};
|
|
17244
|
+
}
|
|
17245
|
+
|
|
17246
|
+
if (typeof optionsOrCallback === 'function') {
|
|
17247
|
+
callback = optionsOrCallback;
|
|
17248
|
+
options = {};
|
|
17249
|
+
}
|
|
17250
|
+
|
|
17251
|
+
const rootUrl =
|
|
17252
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
17253
|
+
const parameters = {
|
|
17254
|
+
options: Object.assign(
|
|
17255
|
+
{
|
|
17256
|
+
url: (rootUrl + '/v1alpha/{+name}:getProcessedDocument').replace(
|
|
17257
|
+
/([^:]\/)\/+/g,
|
|
17258
|
+
'$1'
|
|
17259
|
+
),
|
|
17260
|
+
method: 'GET',
|
|
17261
|
+
},
|
|
17262
|
+
options
|
|
17263
|
+
),
|
|
17264
|
+
params,
|
|
17265
|
+
requiredParams: ['name'],
|
|
17266
|
+
pathParams: ['name'],
|
|
17267
|
+
context: this.context,
|
|
17268
|
+
};
|
|
17269
|
+
if (callback) {
|
|
17270
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>(
|
|
17271
|
+
parameters,
|
|
17272
|
+
callback as BodyResponseCallback<unknown>
|
|
17273
|
+
);
|
|
17274
|
+
} else {
|
|
17275
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaProcessedDocument>(
|
|
17276
|
+
parameters
|
|
17277
|
+
);
|
|
17278
|
+
}
|
|
17279
|
+
}
|
|
17280
|
+
|
|
16643
17281
|
/**
|
|
16644
17282
|
* Bulk import of multiple Documents. Request processing may be synchronous. Non-existing items will be created. Note: It is possible for a subset of the Documents to be successfully updated.
|
|
16645
17283
|
*
|
|
@@ -17056,6 +17694,21 @@ export namespace discoveryengine_v1alpha {
|
|
|
17056
17694
|
*/
|
|
17057
17695
|
name?: string;
|
|
17058
17696
|
}
|
|
17697
|
+
export interface Params$Resource$Projects$Locations$Datastores$Branches$Documents$Getprocesseddocument
|
|
17698
|
+
extends StandardParameters {
|
|
17699
|
+
/**
|
|
17700
|
+
* Required. Full resource name of Document, such as `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/branches/{branch\}/documents/{document\}`. If the caller does not have permission to access the Document, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the requested Document does not exist, a `NOT_FOUND` error is returned.
|
|
17701
|
+
*/
|
|
17702
|
+
name?: string;
|
|
17703
|
+
/**
|
|
17704
|
+
* What format output should be. If unspecified, defaults to JSON.
|
|
17705
|
+
*/
|
|
17706
|
+
processedDocumentFormat?: string;
|
|
17707
|
+
/**
|
|
17708
|
+
* Required. What type of processing to return.
|
|
17709
|
+
*/
|
|
17710
|
+
processedDocumentType?: string;
|
|
17711
|
+
}
|
|
17059
17712
|
export interface Params$Resource$Projects$Locations$Datastores$Branches$Documents$Import
|
|
17060
17713
|
extends StandardParameters {
|
|
17061
17714
|
/**
|
|
@@ -17116,6 +17769,229 @@ export namespace discoveryengine_v1alpha {
|
|
|
17116
17769
|
requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest;
|
|
17117
17770
|
}
|
|
17118
17771
|
|
|
17772
|
+
export class Resource$Projects$Locations$Datastores$Branches$Documents$Chunks {
|
|
17773
|
+
context: APIRequestContext;
|
|
17774
|
+
constructor(context: APIRequestContext) {
|
|
17775
|
+
this.context = context;
|
|
17776
|
+
}
|
|
17777
|
+
|
|
17778
|
+
/**
|
|
17779
|
+
* Gets a Document.
|
|
17780
|
+
*
|
|
17781
|
+
* @param params - Parameters for request
|
|
17782
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
17783
|
+
* @param callback - Optional callback that handles the response.
|
|
17784
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
17785
|
+
*/
|
|
17786
|
+
get(
|
|
17787
|
+
params: Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$Get,
|
|
17788
|
+
options: StreamMethodOptions
|
|
17789
|
+
): GaxiosPromise<Readable>;
|
|
17790
|
+
get(
|
|
17791
|
+
params?: Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$Get,
|
|
17792
|
+
options?: MethodOptions
|
|
17793
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1alphaChunk>;
|
|
17794
|
+
get(
|
|
17795
|
+
params: Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$Get,
|
|
17796
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
17797
|
+
callback: BodyResponseCallback<Readable>
|
|
17798
|
+
): void;
|
|
17799
|
+
get(
|
|
17800
|
+
params: Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$Get,
|
|
17801
|
+
options:
|
|
17802
|
+
| MethodOptions
|
|
17803
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaChunk>,
|
|
17804
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaChunk>
|
|
17805
|
+
): void;
|
|
17806
|
+
get(
|
|
17807
|
+
params: Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$Get,
|
|
17808
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaChunk>
|
|
17809
|
+
): void;
|
|
17810
|
+
get(
|
|
17811
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaChunk>
|
|
17812
|
+
): void;
|
|
17813
|
+
get(
|
|
17814
|
+
paramsOrCallback?:
|
|
17815
|
+
| Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$Get
|
|
17816
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaChunk>
|
|
17817
|
+
| BodyResponseCallback<Readable>,
|
|
17818
|
+
optionsOrCallback?:
|
|
17819
|
+
| MethodOptions
|
|
17820
|
+
| StreamMethodOptions
|
|
17821
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaChunk>
|
|
17822
|
+
| BodyResponseCallback<Readable>,
|
|
17823
|
+
callback?:
|
|
17824
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaChunk>
|
|
17825
|
+
| BodyResponseCallback<Readable>
|
|
17826
|
+
):
|
|
17827
|
+
| void
|
|
17828
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1alphaChunk>
|
|
17829
|
+
| GaxiosPromise<Readable> {
|
|
17830
|
+
let params = (paramsOrCallback ||
|
|
17831
|
+
{}) as Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$Get;
|
|
17832
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
17833
|
+
|
|
17834
|
+
if (typeof paramsOrCallback === 'function') {
|
|
17835
|
+
callback = paramsOrCallback;
|
|
17836
|
+
params =
|
|
17837
|
+
{} as Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$Get;
|
|
17838
|
+
options = {};
|
|
17839
|
+
}
|
|
17840
|
+
|
|
17841
|
+
if (typeof optionsOrCallback === 'function') {
|
|
17842
|
+
callback = optionsOrCallback;
|
|
17843
|
+
options = {};
|
|
17844
|
+
}
|
|
17845
|
+
|
|
17846
|
+
const rootUrl =
|
|
17847
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
17848
|
+
const parameters = {
|
|
17849
|
+
options: Object.assign(
|
|
17850
|
+
{
|
|
17851
|
+
url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'),
|
|
17852
|
+
method: 'GET',
|
|
17853
|
+
},
|
|
17854
|
+
options
|
|
17855
|
+
),
|
|
17856
|
+
params,
|
|
17857
|
+
requiredParams: ['name'],
|
|
17858
|
+
pathParams: ['name'],
|
|
17859
|
+
context: this.context,
|
|
17860
|
+
};
|
|
17861
|
+
if (callback) {
|
|
17862
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaChunk>(
|
|
17863
|
+
parameters,
|
|
17864
|
+
callback as BodyResponseCallback<unknown>
|
|
17865
|
+
);
|
|
17866
|
+
} else {
|
|
17867
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaChunk>(
|
|
17868
|
+
parameters
|
|
17869
|
+
);
|
|
17870
|
+
}
|
|
17871
|
+
}
|
|
17872
|
+
|
|
17873
|
+
/**
|
|
17874
|
+
* Gets a list of Chunks.
|
|
17875
|
+
*
|
|
17876
|
+
* @param params - Parameters for request
|
|
17877
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
17878
|
+
* @param callback - Optional callback that handles the response.
|
|
17879
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
17880
|
+
*/
|
|
17881
|
+
list(
|
|
17882
|
+
params: Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$List,
|
|
17883
|
+
options: StreamMethodOptions
|
|
17884
|
+
): GaxiosPromise<Readable>;
|
|
17885
|
+
list(
|
|
17886
|
+
params?: Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$List,
|
|
17887
|
+
options?: MethodOptions
|
|
17888
|
+
): GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>;
|
|
17889
|
+
list(
|
|
17890
|
+
params: Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$List,
|
|
17891
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
17892
|
+
callback: BodyResponseCallback<Readable>
|
|
17893
|
+
): void;
|
|
17894
|
+
list(
|
|
17895
|
+
params: Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$List,
|
|
17896
|
+
options:
|
|
17897
|
+
| MethodOptions
|
|
17898
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>,
|
|
17899
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>
|
|
17900
|
+
): void;
|
|
17901
|
+
list(
|
|
17902
|
+
params: Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$List,
|
|
17903
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>
|
|
17904
|
+
): void;
|
|
17905
|
+
list(
|
|
17906
|
+
callback: BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>
|
|
17907
|
+
): void;
|
|
17908
|
+
list(
|
|
17909
|
+
paramsOrCallback?:
|
|
17910
|
+
| Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$List
|
|
17911
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>
|
|
17912
|
+
| BodyResponseCallback<Readable>,
|
|
17913
|
+
optionsOrCallback?:
|
|
17914
|
+
| MethodOptions
|
|
17915
|
+
| StreamMethodOptions
|
|
17916
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>
|
|
17917
|
+
| BodyResponseCallback<Readable>,
|
|
17918
|
+
callback?:
|
|
17919
|
+
| BodyResponseCallback<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>
|
|
17920
|
+
| BodyResponseCallback<Readable>
|
|
17921
|
+
):
|
|
17922
|
+
| void
|
|
17923
|
+
| GaxiosPromise<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>
|
|
17924
|
+
| GaxiosPromise<Readable> {
|
|
17925
|
+
let params = (paramsOrCallback ||
|
|
17926
|
+
{}) as Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$List;
|
|
17927
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
17928
|
+
|
|
17929
|
+
if (typeof paramsOrCallback === 'function') {
|
|
17930
|
+
callback = paramsOrCallback;
|
|
17931
|
+
params =
|
|
17932
|
+
{} as Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$List;
|
|
17933
|
+
options = {};
|
|
17934
|
+
}
|
|
17935
|
+
|
|
17936
|
+
if (typeof optionsOrCallback === 'function') {
|
|
17937
|
+
callback = optionsOrCallback;
|
|
17938
|
+
options = {};
|
|
17939
|
+
}
|
|
17940
|
+
|
|
17941
|
+
const rootUrl =
|
|
17942
|
+
options.rootUrl || 'https://discoveryengine.googleapis.com/';
|
|
17943
|
+
const parameters = {
|
|
17944
|
+
options: Object.assign(
|
|
17945
|
+
{
|
|
17946
|
+
url: (rootUrl + '/v1alpha/{+parent}/chunks').replace(
|
|
17947
|
+
/([^:]\/)\/+/g,
|
|
17948
|
+
'$1'
|
|
17949
|
+
),
|
|
17950
|
+
method: 'GET',
|
|
17951
|
+
},
|
|
17952
|
+
options
|
|
17953
|
+
),
|
|
17954
|
+
params,
|
|
17955
|
+
requiredParams: ['parent'],
|
|
17956
|
+
pathParams: ['parent'],
|
|
17957
|
+
context: this.context,
|
|
17958
|
+
};
|
|
17959
|
+
if (callback) {
|
|
17960
|
+
createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>(
|
|
17961
|
+
parameters,
|
|
17962
|
+
callback as BodyResponseCallback<unknown>
|
|
17963
|
+
);
|
|
17964
|
+
} else {
|
|
17965
|
+
return createAPIRequest<Schema$GoogleCloudDiscoveryengineV1alphaListChunksResponse>(
|
|
17966
|
+
parameters
|
|
17967
|
+
);
|
|
17968
|
+
}
|
|
17969
|
+
}
|
|
17970
|
+
}
|
|
17971
|
+
|
|
17972
|
+
export interface Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$Get
|
|
17973
|
+
extends StandardParameters {
|
|
17974
|
+
/**
|
|
17975
|
+
* Required. Full resource name of Chunk, such as `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/branches/{branch\}/documents/{document\}/chunks/{chunk\}`. If the caller does not have permission to access the Chunk, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the requested Chunk does not exist, a `NOT_FOUND` error is returned.
|
|
17976
|
+
*/
|
|
17977
|
+
name?: string;
|
|
17978
|
+
}
|
|
17979
|
+
export interface Params$Resource$Projects$Locations$Datastores$Branches$Documents$Chunks$List
|
|
17980
|
+
extends StandardParameters {
|
|
17981
|
+
/**
|
|
17982
|
+
* Maximum number of Chunks to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an `INVALID_ARGUMENT` error is returned.
|
|
17983
|
+
*/
|
|
17984
|
+
pageSize?: number;
|
|
17985
|
+
/**
|
|
17986
|
+
* A page token ListChunksResponse.next_page_token, received from a previous ChunkService.ListChunks call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ChunkService.ListChunks must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned.
|
|
17987
|
+
*/
|
|
17988
|
+
pageToken?: string;
|
|
17989
|
+
/**
|
|
17990
|
+
* Required. The parent document resource name, such as `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/branches/{branch\}/documents/{document\}`. If the caller does not have permission to list Chunks under this document, regardless of whether or not this document exists, a `PERMISSION_DENIED` error is returned.
|
|
17991
|
+
*/
|
|
17992
|
+
parent?: string;
|
|
17993
|
+
}
|
|
17994
|
+
|
|
17119
17995
|
export class Resource$Projects$Locations$Datastores$Branches$Operations {
|
|
17120
17996
|
context: APIRequestContext;
|
|
17121
17997
|
constructor(context: APIRequestContext) {
|
|
@@ -19499,7 +20375,7 @@ export namespace discoveryengine_v1alpha {
|
|
|
19499
20375
|
export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Get
|
|
19500
20376
|
extends StandardParameters {
|
|
19501
20377
|
/**
|
|
19502
|
-
* Required. The resource name of the ServingConfig to get. Format: `projects/{project_number\}/locations/{location\}/collections/{collection\}/
|
|
20378
|
+
* Required. The resource name of the ServingConfig to get. Format: `projects/{project_number\}/locations/{location\}/collections/{collection\}/engines/{engine\}/servingConfigs/{serving_config_id\}`
|
|
19503
20379
|
*/
|
|
19504
20380
|
name?: string;
|
|
19505
20381
|
}
|
|
@@ -19514,14 +20390,14 @@ export namespace discoveryengine_v1alpha {
|
|
|
19514
20390
|
*/
|
|
19515
20391
|
pageToken?: string;
|
|
19516
20392
|
/**
|
|
19517
|
-
* Required.
|
|
20393
|
+
* Required. Full resource name of the parent resource. Format: `projects/{project_number\}/locations/{location\}/collections/{collection\}/engines/{engine\}`
|
|
19518
20394
|
*/
|
|
19519
20395
|
parent?: string;
|
|
19520
20396
|
}
|
|
19521
20397
|
export interface Params$Resource$Projects$Locations$Datastores$Servingconfigs$Patch
|
|
19522
20398
|
extends StandardParameters {
|
|
19523
20399
|
/**
|
|
19524
|
-
* Immutable. Fully qualified name `projects/{project\}/locations/{location\}/collections/{collection_id\}/
|
|
20400
|
+
* Immutable. Fully qualified name `projects/{project\}/locations/{location\}/collections/{collection_id\}/engines/{engine_id\}/servingConfigs/{serving_config_id\}`
|
|
19525
20401
|
*/
|
|
19526
20402
|
name?: string;
|
|
19527
20403
|
/**
|