Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a352332

Browse filesBrowse files
fix: [recommendationengine] Fix recommendationengine resource name configuration (#8381)
* fix: Fix recommendationengine resource name configuration PiperOrigin-RevId: 473779245 Source-Link: googleapis/googleapis@ee05df9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d151c136b7de66b7b524817360c639d011ef003d Copy-Tag: eyJwIjoiamF2YS1yZWNvbW1lbmRhdGlvbnMtYWkvLk93bEJvdC55YW1sIiwiaCI6ImQxNTFjMTM2YjdkZTY2YjdiNTI0ODE3MzYwYzYzOWQwMTFlZjAwM2QifQ== * 🦉 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 01ce720 commit a352332
Copy full SHA for a352332

File tree

108 files changed

+953
-448
lines changed
Filter options

Some content is hidden

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

108 files changed

+953
-448
lines changed

‎java-recommendations-ai/README.md

Copy file name to clipboardExpand all lines: java-recommendations-ai/README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ If you are using Maven, add this to your pom.xml file:
3131
If you are using Gradle without BOM, add this to your dependencies:
3232

3333
```Groovy
34-
implementation 'com.google.cloud:google-cloud-recommendations-ai:0.10.2'
34+
implementation 'com.google.cloud:google-cloud-recommendations-ai:0.10.3'
3535
```
3636

3737
If you are using SBT, add this to your dependencies:
3838

3939
```Scala
40-
libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.10.2"
40+
libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.10.3"
4141
```
4242

4343
## Authentication

‎java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java

Copy file name to clipboardExpand all lines: java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceClient.java
+150-60Lines changed: 150 additions & 60 deletions
Large diffs are not rendered by default.

‎java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java

Copy file name to clipboardExpand all lines: java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/CatalogServiceSettings.java
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,17 @@
5757
* <p>For example, to set the total timeout of createCatalogItem to 30 seconds:
5858
*
5959
* <pre>{@code
60-
* // This snippet has been automatically generated for illustrative purposes only.
61-
* // It may require modifications to work in your environment.
60+
* // This snippet has been automatically generated and should be regarded as a code template only.
61+
* // It will require modifications to work:
62+
* // - It may require correct/in-range values for request initialization.
63+
* // - It may require specifying regional endpoints when creating the service client as shown in
64+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6265
* CatalogServiceSettings.Builder catalogServiceSettingsBuilder =
6366
* CatalogServiceSettings.newBuilder();
6467
* catalogServiceSettingsBuilder
6568
* .createCatalogItemSettings()
6669
* .setRetrySettings(
67-
* catalogServiceSettingsBuilder
68-
* .createCatalogItemSettings()
69-
* .getRetrySettings()
70-
* .toBuilder()
70+
* catalogServiceSettingsBuilder.createCatalogItemSettings().getRetrySettings().toBuilder()
7171
* .setTotalTimeout(Duration.ofSeconds(30))
7272
* .build());
7373
* CatalogServiceSettings catalogServiceSettings = catalogServiceSettingsBuilder.build();

‎java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java

Copy file name to clipboardExpand all lines: java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistryClient.java
+85-34Lines changed: 85 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,11 @@
4545
* calls that map to API methods. Sample code to get started:
4646
*
4747
* <pre>{@code
48-
* // This snippet has been automatically generated for illustrative purposes only.
49-
* // It may require modifications to work in your environment.
48+
* // This snippet has been automatically generated and should be regarded as a code template only.
49+
* // It will require modifications to work:
50+
* // - It may require correct/in-range values for request initialization.
51+
* // - It may require specifying regional endpoints when creating the service client as shown in
52+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5053
* try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
5154
* PredictionApiKeyRegistryClient.create()) {
5255
* EventStoreName parent =
@@ -89,8 +92,11 @@
8992
* <p>To customize credentials:
9093
*
9194
* <pre>{@code
92-
* // This snippet has been automatically generated for illustrative purposes only.
93-
* // It may require modifications to work in your environment.
95+
* // This snippet has been automatically generated and should be regarded as a code template only.
96+
* // It will require modifications to work:
97+
* // - It may require correct/in-range values for request initialization.
98+
* // - It may require specifying regional endpoints when creating the service client as shown in
99+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
94100
* PredictionApiKeyRegistrySettings predictionApiKeyRegistrySettings =
95101
* PredictionApiKeyRegistrySettings.newBuilder()
96102
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -102,8 +108,11 @@
102108
* <p>To customize the endpoint:
103109
*
104110
* <pre>{@code
105-
* // This snippet has been automatically generated for illustrative purposes only.
106-
* // It may require modifications to work in your environment.
111+
* // This snippet has been automatically generated and should be regarded as a code template only.
112+
* // It will require modifications to work:
113+
* // - It may require correct/in-range values for request initialization.
114+
* // - It may require specifying regional endpoints when creating the service client as shown in
115+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
107116
* PredictionApiKeyRegistrySettings predictionApiKeyRegistrySettings =
108117
* PredictionApiKeyRegistrySettings.newBuilder().setEndpoint(myEndpoint).build();
109118
* PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
@@ -114,8 +123,11 @@
114123
* the wire:
115124
*
116125
* <pre>{@code
117-
* // This snippet has been automatically generated for illustrative purposes only.
118-
* // It may require modifications to work in your environment.
126+
* // This snippet has been automatically generated and should be regarded as a code template only.
127+
* // It will require modifications to work:
128+
* // - It may require correct/in-range values for request initialization.
129+
* // - It may require specifying regional endpoints when creating the service client as shown in
130+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
119131
* PredictionApiKeyRegistrySettings predictionApiKeyRegistrySettings =
120132
* PredictionApiKeyRegistrySettings.newBuilder()
121133
* .setTransportChannelProvider(
@@ -187,8 +199,11 @@ public PredictionApiKeyRegistryStub getStub() {
187199
* <p>Sample code:
188200
*
189201
* <pre>{@code
190-
* // This snippet has been automatically generated for illustrative purposes only.
191-
* // It may require modifications to work in your environment.
202+
* // This snippet has been automatically generated and should be regarded as a code template only.
203+
* // It will require modifications to work:
204+
* // - It may require correct/in-range values for request initialization.
205+
* // - It may require specifying regional endpoints when creating the service client as shown in
206+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
192207
* try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
193208
* PredictionApiKeyRegistryClient.create()) {
194209
* EventStoreName parent =
@@ -223,8 +238,11 @@ public final PredictionApiKeyRegistration createPredictionApiKeyRegistration(
223238
* <p>Sample code:
224239
*
225240
* <pre>{@code
226-
* // This snippet has been automatically generated for illustrative purposes only.
227-
* // It may require modifications to work in your environment.
241+
* // This snippet has been automatically generated and should be regarded as a code template only.
242+
* // It will require modifications to work:
243+
* // - It may require correct/in-range values for request initialization.
244+
* // - It may require specifying regional endpoints when creating the service client as shown in
245+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
228246
* try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
229247
* PredictionApiKeyRegistryClient.create()) {
230248
* String parent =
@@ -259,8 +277,11 @@ public final PredictionApiKeyRegistration createPredictionApiKeyRegistration(
259277
* <p>Sample code:
260278
*
261279
* <pre>{@code
262-
* // This snippet has been automatically generated for illustrative purposes only.
263-
* // It may require modifications to work in your environment.
280+
* // This snippet has been automatically generated and should be regarded as a code template only.
281+
* // It will require modifications to work:
282+
* // - It may require correct/in-range values for request initialization.
283+
* // - It may require specifying regional endpoints when creating the service client as shown in
284+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
264285
* try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
265286
* PredictionApiKeyRegistryClient.create()) {
266287
* CreatePredictionApiKeyRegistrationRequest request =
@@ -290,8 +311,11 @@ public final PredictionApiKeyRegistration createPredictionApiKeyRegistration(
290311
* <p>Sample code:
291312
*
292313
* <pre>{@code
293-
* // This snippet has been automatically generated for illustrative purposes only.
294-
* // It may require modifications to work in your environment.
314+
* // This snippet has been automatically generated and should be regarded as a code template only.
315+
* // It will require modifications to work:
316+
* // - It may require correct/in-range values for request initialization.
317+
* // - It may require specifying regional endpoints when creating the service client as shown in
318+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
295319
* try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
296320
* PredictionApiKeyRegistryClient.create()) {
297321
* CreatePredictionApiKeyRegistrationRequest request =
@@ -323,8 +347,11 @@ public final PredictionApiKeyRegistration createPredictionApiKeyRegistration(
323347
* <p>Sample code:
324348
*
325349
* <pre>{@code
326-
* // This snippet has been automatically generated for illustrative purposes only.
327-
* // It may require modifications to work in your environment.
350+
* // This snippet has been automatically generated and should be regarded as a code template only.
351+
* // It will require modifications to work:
352+
* // - It may require correct/in-range values for request initialization.
353+
* // - It may require specifying regional endpoints when creating the service client as shown in
354+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
328355
* try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
329356
* PredictionApiKeyRegistryClient.create()) {
330357
* EventStoreName parent =
@@ -356,8 +383,11 @@ public final ListPredictionApiKeyRegistrationsPagedResponse listPredictionApiKey
356383
* <p>Sample code:
357384
*
358385
* <pre>{@code
359-
* // This snippet has been automatically generated for illustrative purposes only.
360-
* // It may require modifications to work in your environment.
386+
* // This snippet has been automatically generated and should be regarded as a code template only.
387+
* // It will require modifications to work:
388+
* // - It may require correct/in-range values for request initialization.
389+
* // - It may require specifying regional endpoints when creating the service client as shown in
390+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
361391
* try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
362392
* PredictionApiKeyRegistryClient.create()) {
363393
* String parent =
@@ -387,8 +417,11 @@ public final ListPredictionApiKeyRegistrationsPagedResponse listPredictionApiKey
387417
* <p>Sample code:
388418
*
389419
* <pre>{@code
390-
* // This snippet has been automatically generated for illustrative purposes only.
391-
* // It may require modifications to work in your environment.
420+
* // This snippet has been automatically generated and should be regarded as a code template only.
421+
* // It will require modifications to work:
422+
* // - It may require correct/in-range values for request initialization.
423+
* // - It may require specifying regional endpoints when creating the service client as shown in
424+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
392425
* try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
393426
* PredictionApiKeyRegistryClient.create()) {
394427
* ListPredictionApiKeyRegistrationsRequest request =
@@ -421,8 +454,11 @@ public final ListPredictionApiKeyRegistrationsPagedResponse listPredictionApiKey
421454
* <p>Sample code:
422455
*
423456
* <pre>{@code
424-
* // This snippet has been automatically generated for illustrative purposes only.
425-
* // It may require modifications to work in your environment.
457+
* // This snippet has been automatically generated and should be regarded as a code template only.
458+
* // It will require modifications to work:
459+
* // - It may require correct/in-range values for request initialization.
460+
* // - It may require specifying regional endpoints when creating the service client as shown in
461+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
426462
* try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
427463
* PredictionApiKeyRegistryClient.create()) {
428464
* ListPredictionApiKeyRegistrationsRequest request =
@@ -457,8 +493,11 @@ public final ListPredictionApiKeyRegistrationsPagedResponse listPredictionApiKey
457493
* <p>Sample code:
458494
*
459495
* <pre>{@code
460-
* // This snippet has been automatically generated for illustrative purposes only.
461-
* // It may require modifications to work in your environment.
496+
* // This snippet has been automatically generated and should be regarded as a code template only.
497+
* // It will require modifications to work:
498+
* // - It may require correct/in-range values for request initialization.
499+
* // - It may require specifying regional endpoints when creating the service client as shown in
500+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
462501
* try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
463502
* PredictionApiKeyRegistryClient.create()) {
464503
* ListPredictionApiKeyRegistrationsRequest request =
@@ -501,8 +540,11 @@ public final ListPredictionApiKeyRegistrationsPagedResponse listPredictionApiKey
501540
* <p>Sample code:
502541
*
503542
* <pre>{@code
504-
* // This snippet has been automatically generated for illustrative purposes only.
505-
* // It may require modifications to work in your environment.
543+
* // This snippet has been automatically generated and should be regarded as a code template only.
544+
* // It will require modifications to work:
545+
* // - It may require correct/in-range values for request initialization.
546+
* // - It may require specifying regional endpoints when creating the service client as shown in
547+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
506548
* try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
507549
* PredictionApiKeyRegistryClient.create()) {
508550
* PredictionApiKeyRegistrationName name =
@@ -535,8 +577,11 @@ public final void deletePredictionApiKeyRegistration(PredictionApiKeyRegistratio
535577
* <p>Sample code:
536578
*
537579
* <pre>{@code
538-
* // This snippet has been automatically generated for illustrative purposes only.
539-
* // It may require modifications to work in your environment.
580+
* // This snippet has been automatically generated and should be regarded as a code template only.
581+
* // It will require modifications to work:
582+
* // - It may require correct/in-range values for request initialization.
583+
* // - It may require specifying regional endpoints when creating the service client as shown in
584+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
540585
* try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
541586
* PredictionApiKeyRegistryClient.create()) {
542587
* String name =
@@ -568,8 +613,11 @@ public final void deletePredictionApiKeyRegistration(String name) {
568613
* <p>Sample code:
569614
*
570615
* <pre>{@code
571-
* // This snippet has been automatically generated for illustrative purposes only.
572-
* // It may require modifications to work in your environment.
616+
* // This snippet has been automatically generated and should be regarded as a code template only.
617+
* // It will require modifications to work:
618+
* // - It may require correct/in-range values for request initialization.
619+
* // - It may require specifying regional endpoints when creating the service client as shown in
620+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
573621
* try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
574622
* PredictionApiKeyRegistryClient.create()) {
575623
* DeletePredictionApiKeyRegistrationRequest request =
@@ -602,8 +650,11 @@ public final void deletePredictionApiKeyRegistration(
602650
* <p>Sample code:
603651
*
604652
* <pre>{@code
605-
* // This snippet has been automatically generated for illustrative purposes only.
606-
* // It may require modifications to work in your environment.
653+
* // This snippet has been automatically generated and should be regarded as a code template only.
654+
* // It will require modifications to work:
655+
* // - It may require correct/in-range values for request initialization.
656+
* // - It may require specifying regional endpoints when creating the service client as shown in
657+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
607658
* try (PredictionApiKeyRegistryClient predictionApiKeyRegistryClient =
608659
* PredictionApiKeyRegistryClient.create()) {
609660
* DeletePredictionApiKeyRegistrationRequest request =

‎java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java

Copy file name to clipboardExpand all lines: java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/PredictionApiKeyRegistrySettings.java
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,11 @@
5555
* <p>For example, to set the total timeout of createPredictionApiKeyRegistration to 30 seconds:
5656
*
5757
* <pre>{@code
58-
* // This snippet has been automatically generated for illustrative purposes only.
59-
* // It may require modifications to work in your environment.
58+
* // This snippet has been automatically generated and should be regarded as a code template only.
59+
* // It will require modifications to work:
60+
* // - It may require correct/in-range values for request initialization.
61+
* // - It may require specifying regional endpoints when creating the service client as shown in
62+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6063
* PredictionApiKeyRegistrySettings.Builder predictionApiKeyRegistrySettingsBuilder =
6164
* PredictionApiKeyRegistrySettings.newBuilder();
6265
* predictionApiKeyRegistrySettingsBuilder

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.