Skip to content

Commit 16b003e

Browse files
feat: [google-cloud-discoveryengine] support import data from Cloud Spanner, BigTable, SQL and Firestore (#12550)
BEGIN_COMMIT_OVERRIDE feat: support import data from Cloud Spanner, BigTable, SQL and Firestore feat: support standalone ranking API feat: support layout detection and more chunking features feat: support advanced search boosting docs: keep the API doc up-to-date with recent changes END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. feat: support standalone ranking API feat: support layout detection and more chunking features feat: support advanced search boosting docs: keep the API doc up-to-date with recent changes PiperOrigin-RevId: 621906335 Source-Link: googleapis/googleapis@624b052 Source-Link: googleapis/googleapis-gen@3c68efb Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpc2NvdmVyeWVuZ2luZS8uT3dsQm90LnlhbWwiLCJoIjoiM2M2OGVmYjIzZjcwNjJmZWU2MjA5MmNhMDdlOWE5YjQ5NzJkNjM4MCJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 58dbb33 commit 16b003e

63 files changed

Lines changed: 8499 additions & 80 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
RankService
2+
-----------------------------
3+
4+
.. automodule:: google.cloud.discoveryengine_v1alpha.services.rank_service
5+
:members:
6+
:inherited-members:

packages/google-cloud-discoveryengine/docs/discoveryengine_v1alpha/services_.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Services for Google Cloud Discoveryengine v1alpha API
1111
document_service
1212
engine_service
1313
estimate_billing_service
14+
rank_service
1415
recommendation_service
1516
schema_service
1617
search_service

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1alpha/__init__.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
EstimateBillingServiceAsyncClient,
4242
EstimateBillingServiceClient,
4343
)
44+
from .services.rank_service import RankServiceAsyncClient, RankServiceClient
4445
from .services.recommendation_service import (
4546
RecommendationServiceAsyncClient,
4647
RecommendationServiceClient,
@@ -114,12 +115,13 @@
114115
UpdateDataStoreRequest,
115116
UpdateDocumentProcessingConfigRequest,
116117
)
117-
from .types.document import Document
118+
from .types.document import Document, ProcessedDocument
118119
from .types.document_processing_config import DocumentProcessingConfig
119120
from .types.document_service import (
120121
CreateDocumentRequest,
121122
DeleteDocumentRequest,
122123
GetDocumentRequest,
124+
GetProcessedDocumentRequest,
123125
ListDocumentsRequest,
124126
ListDocumentsResponse,
125127
UpdateDocumentRequest,
@@ -147,7 +149,14 @@
147149
)
148150
from .types.import_config import (
149151
BigQuerySource,
152+
BigtableOptions,
153+
BigtableSource,
154+
CloudSqlSource,
155+
FhirStoreSource,
156+
FirestoreSource,
150157
GcsSource,
158+
ImportCompletionSuggestionsMetadata,
159+
ImportCompletionSuggestionsResponse,
151160
ImportDocumentsMetadata,
152161
ImportDocumentsRequest,
153162
ImportDocumentsResponse,
@@ -158,6 +167,7 @@
158167
ImportUserEventsMetadata,
159168
ImportUserEventsRequest,
160169
ImportUserEventsResponse,
170+
SpannerSource,
161171
)
162172
from .types.purge_config import (
163173
PurgeDocumentsMetadata,
@@ -171,6 +181,7 @@
171181
PurgeUserEventsRequest,
172182
PurgeUserEventsResponse,
173183
)
184+
from .types.rank_service import RankingRecord, RankRequest, RankResponse
174185
from .types.recommendation_service import RecommendRequest, RecommendResponse
175186
from .types.schema import FieldConfig, Schema
176187
from .types.schema_service import (
@@ -248,6 +259,7 @@
248259
"DocumentServiceAsyncClient",
249260
"EngineServiceAsyncClient",
250261
"EstimateBillingServiceAsyncClient",
262+
"RankServiceAsyncClient",
251263
"RecommendationServiceAsyncClient",
252264
"SchemaServiceAsyncClient",
253265
"SearchServiceAsyncClient",
@@ -264,8 +276,11 @@
264276
"BatchVerifyTargetSitesRequest",
265277
"BatchVerifyTargetSitesResponse",
266278
"BigQuerySource",
279+
"BigtableOptions",
280+
"BigtableSource",
267281
"Chunk",
268282
"ChunkServiceClient",
283+
"CloudSqlSource",
269284
"CollectUserEventRequest",
270285
"CompleteQueryRequest",
271286
"CompleteQueryResponse",
@@ -321,7 +336,9 @@
321336
"EstimateDataSizeResponse",
322337
"FetchDomainVerificationStatusRequest",
323338
"FetchDomainVerificationStatusResponse",
339+
"FhirStoreSource",
324340
"FieldConfig",
341+
"FirestoreSource",
325342
"GcsSource",
326343
"GetAclConfigRequest",
327344
"GetChunkRequest",
@@ -330,12 +347,15 @@
330347
"GetDocumentProcessingConfigRequest",
331348
"GetDocumentRequest",
332349
"GetEngineRequest",
350+
"GetProcessedDocumentRequest",
333351
"GetSchemaRequest",
334352
"GetServingConfigRequest",
335353
"GetSiteSearchEngineRequest",
336354
"GetTargetSiteRequest",
337355
"GuidedSearchSpec",
338356
"IdpConfig",
357+
"ImportCompletionSuggestionsMetadata",
358+
"ImportCompletionSuggestionsResponse",
339359
"ImportDocumentsMetadata",
340360
"ImportDocumentsRequest",
341361
"ImportDocumentsResponse",
@@ -369,6 +389,7 @@
369389
"PanelInfo",
370390
"PauseEngineRequest",
371391
"Principal",
392+
"ProcessedDocument",
372393
"PurgeDocumentsMetadata",
373394
"PurgeDocumentsRequest",
374395
"PurgeDocumentsResponse",
@@ -379,6 +400,10 @@
379400
"PurgeUserEventsMetadata",
380401
"PurgeUserEventsRequest",
381402
"PurgeUserEventsResponse",
403+
"RankRequest",
404+
"RankResponse",
405+
"RankServiceClient",
406+
"RankingRecord",
382407
"RecommendRequest",
383408
"RecommendResponse",
384409
"RecommendationServiceClient",
@@ -402,6 +427,7 @@
402427
"SiteSearchEngineServiceClient",
403428
"SiteVerificationInfo",
404429
"SolutionType",
430+
"SpannerSource",
405431
"SuggestionDenyListEntry",
406432
"TargetSite",
407433
"TextInput",

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1alpha/gapic_metadata.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,11 @@
420420
"get_document"
421421
]
422422
},
423+
"GetProcessedDocument": {
424+
"methods": [
425+
"get_processed_document"
426+
]
427+
},
423428
"ImportDocuments": {
424429
"methods": [
425430
"import_documents"
@@ -460,6 +465,11 @@
460465
"get_document"
461466
]
462467
},
468+
"GetProcessedDocument": {
469+
"methods": [
470+
"get_processed_document"
471+
]
472+
},
463473
"ImportDocuments": {
464474
"methods": [
465475
"import_documents"
@@ -500,6 +510,11 @@
500510
"get_document"
501511
]
502512
},
513+
"GetProcessedDocument": {
514+
"methods": [
515+
"get_processed_document"
516+
]
517+
},
503518
"ImportDocuments": {
504519
"methods": [
505520
"import_documents"
@@ -697,6 +712,40 @@
697712
}
698713
}
699714
},
715+
"RankService": {
716+
"clients": {
717+
"grpc": {
718+
"libraryClient": "RankServiceClient",
719+
"rpcs": {
720+
"Rank": {
721+
"methods": [
722+
"rank"
723+
]
724+
}
725+
}
726+
},
727+
"grpc-async": {
728+
"libraryClient": "RankServiceAsyncClient",
729+
"rpcs": {
730+
"Rank": {
731+
"methods": [
732+
"rank"
733+
]
734+
}
735+
}
736+
},
737+
"rest": {
738+
"libraryClient": "RankServiceClient",
739+
"rpcs": {
740+
"Rank": {
741+
"methods": [
742+
"rank"
743+
]
744+
}
745+
}
746+
}
747+
}
748+
},
700749
"RecommendationService": {
701750
"clients": {
702751
"grpc": {

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1alpha/services/acl_config_service/transports/rest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,10 @@ def __call__(
551551
"method": "get",
552552
"uri": "/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}",
553553
},
554+
{
555+
"method": "get",
556+
"uri": "/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}",
557+
},
554558
{
555559
"method": "get",
556560
"uri": "/v1alpha/{name=projects/*/locations/*/operations/*}",

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1alpha/services/chunk_service/transports/rest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,10 @@ def __call__(
556556
"method": "get",
557557
"uri": "/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}",
558558
},
559+
{
560+
"method": "get",
561+
"uri": "/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}",
562+
},
559563
{
560564
"method": "get",
561565
"uri": "/v1alpha/{name=projects/*/locations/*/operations/*}",

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1alpha/services/completion_service/transports/rest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,10 @@ def operations_client(self) -> operations_v1.AbstractOperationsClient:
382382
"method": "get",
383383
"uri": "/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}",
384384
},
385+
{
386+
"method": "get",
387+
"uri": "/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}",
388+
},
385389
{
386390
"method": "get",
387391
"uri": "/v1alpha/{name=projects/*/locations/*/operations/*}",
@@ -885,6 +889,10 @@ def __call__(
885889
"method": "get",
886890
"uri": "/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}",
887891
},
892+
{
893+
"method": "get",
894+
"uri": "/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}",
895+
},
888896
{
889897
"method": "get",
890898
"uri": "/v1alpha/{name=projects/*/locations/*/operations/*}",

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1alpha/services/conversational_search_service/transports/rest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,10 @@ def __call__(
11631163
"method": "get",
11641164
"uri": "/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}",
11651165
},
1166+
{
1167+
"method": "get",
1168+
"uri": "/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}",
1169+
},
11661170
{
11671171
"method": "get",
11681172
"uri": "/v1alpha/{name=projects/*/locations/*/operations/*}",

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1alpha/services/data_store_service/transports/rest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,10 @@ def operations_client(self) -> operations_v1.AbstractOperationsClient:
511511
"method": "get",
512512
"uri": "/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}",
513513
},
514+
{
515+
"method": "get",
516+
"uri": "/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}",
517+
},
514518
{
515519
"method": "get",
516520
"uri": "/v1alpha/{name=projects/*/locations/*/operations/*}",
@@ -1450,6 +1454,10 @@ def __call__(
14501454
"method": "get",
14511455
"uri": "/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}",
14521456
},
1457+
{
1458+
"method": "get",
1459+
"uri": "/v1alpha/{name=projects/*/locations/*/evaluations/*/operations/*}",
1460+
},
14531461
{
14541462
"method": "get",
14551463
"uri": "/v1alpha/{name=projects/*/locations/*/operations/*}",

0 commit comments

Comments
 (0)