Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 783cb9e

Browse files
docs: users can self enroll retail search feature on cloud console (#377)
* docs: users can self enroll retail search feature on cloud console docs: suggest search users not to send IP and use hashed user id docs: deprecate request_id in ImportProductsRequest docs: deprecate search dynamic_facet_spec and suggest to config on cloud console docs: keep the API doc up-to-date with recent changes feat: add new AddLocalInventories and RemoveLocalInventories APIs feat: users cannot switch to empty default branch unless force override feat: allow search users to skip validation for invalid boost specs feat: support search personalization feat: search returns applied control ids in the response PiperOrigin-RevId: 437355889 Source-Link: googleapis/googleapis@4d00815 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b2b798247d46c932737cf689744a827fae7e5313 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjJiNzk4MjQ3ZDQ2YzkzMjczN2NmNjg5NzQ0YTgyN2ZhZTdlNTMxMyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 3b0a800 commit 783cb9e

File tree

92 files changed

+15882
-2318
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+15882
-2318
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ If you are using Maven, add this to your pom.xml file:
2727
If you are using Gradle without BOM, add this to your dependencies
2828

2929
```Groovy
30-
implementation 'com.google.cloud:google-cloud-retail:2.0.15'
30+
implementation 'com.google.cloud:google-cloud-retail:2.0.16'
3131
```
3232

3333
If you are using SBT, add this to your dependencies
3434

3535
```Scala
36-
libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.0.15"
36+
libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.0.16"
3737
```
3838

3939
## Authentication

google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CatalogServiceClient.java

+2-32
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,6 @@ public final UnaryCallable<UpdateCatalogRequest, Catalog> updateCatalogCallable(
403403
* <li>UserEventService will only join events with products from branch {newBranch}.
404404
* </ul>
405405
*
406-
* <p>This feature is only available for users who have Retail Search enabled. Please submit a
407-
* form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in
408-
* using Retail Search.
409-
*
410406
* <p>Sample code:
411407
*
412408
* <pre>{@code
@@ -461,10 +457,6 @@ public final void setDefaultBranch(CatalogName catalog) {
461457
* <li>UserEventService will only join events with products from branch {newBranch}.
462458
* </ul>
463459
*
464-
* <p>This feature is only available for users who have Retail Search enabled. Please submit a
465-
* form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in
466-
* using Retail Search.
467-
*
468460
* <p>Sample code:
469461
*
470462
* <pre>{@code
@@ -517,10 +509,6 @@ public final void setDefaultBranch(String catalog) {
517509
* <li>UserEventService will only join events with products from branch {newBranch}.
518510
* </ul>
519511
*
520-
* <p>This feature is only available for users who have Retail Search enabled. Please submit a
521-
* form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in
522-
* using Retail Search.
523-
*
524512
* <p>Sample code:
525513
*
526514
* <pre>{@code
@@ -531,6 +519,7 @@ public final void setDefaultBranch(String catalog) {
531519
* .setBranchId(
532520
* BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
533521
* .setNote("note3387378")
522+
* .setForce(true)
534523
* .build();
535524
* catalogServiceClient.setDefaultBranch(request);
536525
* }
@@ -576,10 +565,6 @@ public final void setDefaultBranch(SetDefaultBranchRequest request) {
576565
* <li>UserEventService will only join events with products from branch {newBranch}.
577566
* </ul>
578567
*
579-
* <p>This feature is only available for users who have Retail Search enabled. Please submit a
580-
* form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in
581-
* using Retail Search.
582-
*
583568
* <p>Sample code:
584569
*
585570
* <pre>{@code
@@ -590,6 +575,7 @@ public final void setDefaultBranch(SetDefaultBranchRequest request) {
590575
* .setBranchId(
591576
* BranchName.of("[PROJECT]", "[LOCATION]", "[CATALOG]", "[BRANCH]").toString())
592577
* .setNote("note3387378")
578+
* .setForce(true)
593579
* .build();
594580
* ApiFuture<Empty> future = catalogServiceClient.setDefaultBranchCallable().futureCall(request);
595581
* // Do something.
@@ -607,10 +593,6 @@ public final UnaryCallable<SetDefaultBranchRequest, Empty> setDefaultBranchCalla
607593
* [CatalogService.SetDefaultBranch][google.cloud.retail.v2.CatalogService.SetDefaultBranch]
608594
* method under a specified parent catalog.
609595
*
610-
* <p>This feature is only available for users who have Retail Search enabled. Please submit a
611-
* form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in
612-
* using Retail Search.
613-
*
614596
* <p>Sample code:
615597
*
616598
* <pre>{@code
@@ -638,10 +620,6 @@ public final GetDefaultBranchResponse getDefaultBranch(CatalogName catalog) {
638620
* [CatalogService.SetDefaultBranch][google.cloud.retail.v2.CatalogService.SetDefaultBranch]
639621
* method under a specified parent catalog.
640622
*
641-
* <p>This feature is only available for users who have Retail Search enabled. Please submit a
642-
* form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in
643-
* using Retail Search.
644-
*
645623
* <p>Sample code:
646624
*
647625
* <pre>{@code
@@ -667,10 +645,6 @@ public final GetDefaultBranchResponse getDefaultBranch(String catalog) {
667645
* [CatalogService.SetDefaultBranch][google.cloud.retail.v2.CatalogService.SetDefaultBranch]
668646
* method under a specified parent catalog.
669647
*
670-
* <p>This feature is only available for users who have Retail Search enabled. Please submit a
671-
* form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in
672-
* using Retail Search.
673-
*
674648
* <p>Sample code:
675649
*
676650
* <pre>{@code
@@ -696,10 +670,6 @@ public final GetDefaultBranchResponse getDefaultBranch(GetDefaultBranchRequest r
696670
* [CatalogService.SetDefaultBranch][google.cloud.retail.v2.CatalogService.SetDefaultBranch]
697671
* method under a specified parent catalog.
698672
*
699-
* <p>This feature is only available for users who have Retail Search enabled. Please submit a
700-
* form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in
701-
* using Retail Search.
702-
*
703673
* <p>Sample code:
704674
*
705675
* <pre>{@code

google-cloud-retail/src/main/java/com/google/cloud/retail/v2/CompletionServiceClient.java

+24-21
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@
3333
/**
3434
* Service Description: Auto-completion service for retail.
3535
*
36-
* <p>This feature is only available for users who have Retail Search enabled. Please submit a form
37-
* [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in using
38-
* Retail Search.
36+
* <p>This feature is only available for users who have Retail Search enabled. Please enable Retail
37+
* Search on Cloud Console before using this feature.
3938
*
4039
* <p>This class provides the ability to make remote calls to the backing service through method
4140
* calls that map to API methods. Sample code to get started:
@@ -173,9 +172,8 @@ public final OperationsClient getOperationsClient() {
173172
/**
174173
* Completes the specified prefix with keyword suggestions.
175174
*
176-
* <p>This feature is only available for users who have Retail Search enabled. Please submit a
177-
* form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in
178-
* using Retail Search.
175+
* <p>This feature is only available for users who have Retail Search enabled. Please enable
176+
* Retail Search on Cloud Console before using this feature.
179177
*
180178
* <p>Sample code:
181179
*
@@ -206,9 +204,8 @@ public final CompleteQueryResponse completeQuery(CompleteQueryRequest request) {
206204
/**
207205
* Completes the specified prefix with keyword suggestions.
208206
*
209-
* <p>This feature is only available for users who have Retail Search enabled. Please submit a
210-
* form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in
211-
* using Retail Search.
207+
* <p>This feature is only available for users who have Retail Search enabled. Please enable
208+
* Retail Search on Cloud Console before using this feature.
212209
*
213210
* <p>Sample code:
214211
*
@@ -239,11 +236,13 @@ public final UnaryCallable<CompleteQueryRequest, CompleteQueryResponse> complete
239236
/**
240237
* Bulk import of processed completion dataset.
241238
*
242-
* <p>Request processing may be synchronous. Partial updating is not supported.
239+
* <p>Request processing is asynchronous. Partial updating is not supported.
243240
*
244-
* <p>This feature is only available for users who have Retail Search enabled. Please submit a
245-
* form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in
246-
* using Retail Search.
241+
* <p>The operation is successfully finished only after the imported suggestions are indexed
242+
* successfully and ready for serving. The process takes hours.
243+
*
244+
* <p>This feature is only available for users who have Retail Search enabled. Please enable
245+
* Retail Search on Cloud Console before using this feature.
247246
*
248247
* <p>Sample code:
249248
*
@@ -272,11 +271,13 @@ public final UnaryCallable<CompleteQueryRequest, CompleteQueryResponse> complete
272271
/**
273272
* Bulk import of processed completion dataset.
274273
*
275-
* <p>Request processing may be synchronous. Partial updating is not supported.
274+
* <p>Request processing is asynchronous. Partial updating is not supported.
275+
*
276+
* <p>The operation is successfully finished only after the imported suggestions are indexed
277+
* successfully and ready for serving. The process takes hours.
276278
*
277-
* <p>This feature is only available for users who have Retail Search enabled. Please submit a
278-
* form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in
279-
* using Retail Search.
279+
* <p>This feature is only available for users who have Retail Search enabled. Please enable
280+
* Retail Search on Cloud Console before using this feature.
280281
*
281282
* <p>Sample code:
282283
*
@@ -305,11 +306,13 @@ public final UnaryCallable<CompleteQueryRequest, CompleteQueryResponse> complete
305306
/**
306307
* Bulk import of processed completion dataset.
307308
*
308-
* <p>Request processing may be synchronous. Partial updating is not supported.
309+
* <p>Request processing is asynchronous. Partial updating is not supported.
310+
*
311+
* <p>The operation is successfully finished only after the imported suggestions are indexed
312+
* successfully and ready for serving. The process takes hours.
309313
*
310-
* <p>This feature is only available for users who have Retail Search enabled. Please submit a
311-
* form [here](https://cloud.google.com/contact) to contact cloud sales if you are interested in
312-
* using Retail Search.
314+
* <p>This feature is only available for users who have Retail Search enabled. Please enable
315+
* Retail Search on Cloud Console before using this feature.
313316
*
314317
* <p>Sample code:
315318
*

0 commit comments

Comments
 (0)