Skip to content

Navigation Menu

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 5f742f9

Browse filesBrowse files
feat: [retail] release Model Services to v2beta version (#8284)
- [ ] Regenerate this pull request now. feat: release BatchRemoveCatalogAttributes API to v2beta version feat: release ExactSearchableOption for attribute config to v2beta version feat: release diversity_type for ServingConfig in v2beta version feat: add local inventories info to the Product resource feat: deprecate unused page_token field of PredictionRequest in v2beta version feat: deprecate unused facet_spec field of Control in v2beta version docs: improve documentation of SearchRequest for Search Personalization docs: improve documentation for Fullfillment and Inventory API in ProductService docs: minor documentation fixes and improvements PiperOrigin-RevId: 471846764 Source-Link: googleapis/googleapis@1513294 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c371ea8df2e34940875d51200cd57e300a2bc0a8 Copy-Tag: eyJwIjoiamF2YS1yZXRhaWwvLk93bEJvdC55YW1sIiwiaCI6ImMzNzFlYThkZjJlMzQ5NDA4NzVkNTEyMDBjZDU3ZTMwMGEyYmMwYTgifQ==
1 parent 2832653 commit 5f742f9
Copy full SHA for 5f742f9

File tree

189 files changed

+32713
-1635
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

189 files changed

+32713
-1635
lines changed

‎java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceClient.java

Copy file name to clipboardExpand all lines: java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceClient.java
+62-2
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ public final GetDefaultBranchResponse getDefaultBranch(GetDefaultBranchRequest r
756756
* }</pre>
757757
*
758758
* @param name Required. Full CompletionConfig resource name. Format:
759-
* projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/completionConfig
759+
* `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/completionConfig`
760760
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
761761
*/
762762
public final CompletionConfig getCompletionConfig(CompletionConfigName name) {
@@ -783,7 +783,7 @@ public final CompletionConfig getCompletionConfig(CompletionConfigName name) {
783783
* }</pre>
784784
*
785785
* @param name Required. Full CompletionConfig resource name. Format:
786-
* projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/completionConfig
786+
* `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/completionConfig`
787787
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
788788
*/
789789
public final CompletionConfig getCompletionConfig(String name) {
@@ -1280,6 +1280,66 @@ public final AttributesConfig removeCatalogAttribute(RemoveCatalogAttributeReque
12801280
return stub.removeCatalogAttributeCallable();
12811281
}
12821282

1283+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1284+
/**
1285+
* Removes all specified [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]s from the
1286+
* [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig].
1287+
*
1288+
* <p>Sample code:
1289+
*
1290+
* <pre>{@code
1291+
* // This snippet has been automatically generated for illustrative purposes only.
1292+
* // It may require modifications to work in your environment.
1293+
* try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
1294+
* BatchRemoveCatalogAttributesRequest request =
1295+
* BatchRemoveCatalogAttributesRequest.newBuilder()
1296+
* .setAttributesConfig(
1297+
* AttributesConfigName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString())
1298+
* .addAllAttributeKeys(new ArrayList<String>())
1299+
* .build();
1300+
* BatchRemoveCatalogAttributesResponse response =
1301+
* catalogServiceClient.batchRemoveCatalogAttributes(request);
1302+
* }
1303+
* }</pre>
1304+
*
1305+
* @param request The request object containing all of the parameters for the API call.
1306+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
1307+
*/
1308+
public final BatchRemoveCatalogAttributesResponse batchRemoveCatalogAttributes(
1309+
BatchRemoveCatalogAttributesRequest request) {
1310+
return batchRemoveCatalogAttributesCallable().call(request);
1311+
}
1312+
1313+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
1314+
/**
1315+
* Removes all specified [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]s from the
1316+
* [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig].
1317+
*
1318+
* <p>Sample code:
1319+
*
1320+
* <pre>{@code
1321+
* // This snippet has been automatically generated for illustrative purposes only.
1322+
* // It may require modifications to work in your environment.
1323+
* try (CatalogServiceClient catalogServiceClient = CatalogServiceClient.create()) {
1324+
* BatchRemoveCatalogAttributesRequest request =
1325+
* BatchRemoveCatalogAttributesRequest.newBuilder()
1326+
* .setAttributesConfig(
1327+
* AttributesConfigName.of("[PROJECT]", "[LOCATION]", "[CATALOG]").toString())
1328+
* .addAllAttributeKeys(new ArrayList<String>())
1329+
* .build();
1330+
* ApiFuture<BatchRemoveCatalogAttributesResponse> future =
1331+
* catalogServiceClient.batchRemoveCatalogAttributesCallable().futureCall(request);
1332+
* // Do something.
1333+
* BatchRemoveCatalogAttributesResponse response = future.get();
1334+
* }
1335+
* }</pre>
1336+
*/
1337+
public final UnaryCallable<
1338+
BatchRemoveCatalogAttributesRequest, BatchRemoveCatalogAttributesResponse>
1339+
batchRemoveCatalogAttributesCallable() {
1340+
return stub.batchRemoveCatalogAttributesCallable();
1341+
}
1342+
12831343
// AUTO-GENERATED DOCUMENTATION AND METHOD.
12841344
/**
12851345
* Replaces the specified [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] in the

‎java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceSettings.java

Copy file name to clipboardExpand all lines: java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CatalogServiceSettings.java
+14
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,13 @@ public UnaryCallSettings<SetDefaultBranchRequest, Empty> setDefaultBranchSetting
132132
return ((CatalogServiceStubSettings) getStubSettings()).removeCatalogAttributeSettings();
133133
}
134134

135+
/** Returns the object with the settings used for calls to batchRemoveCatalogAttributes. */
136+
public UnaryCallSettings<
137+
BatchRemoveCatalogAttributesRequest, BatchRemoveCatalogAttributesResponse>
138+
batchRemoveCatalogAttributesSettings() {
139+
return ((CatalogServiceStubSettings) getStubSettings()).batchRemoveCatalogAttributesSettings();
140+
}
141+
135142
/** Returns the object with the settings used for calls to replaceCatalogAttribute. */
136143
public UnaryCallSettings<ReplaceCatalogAttributeRequest, AttributesConfig>
137144
replaceCatalogAttributeSettings() {
@@ -312,6 +319,13 @@ public UnaryCallSettings.Builder<SetDefaultBranchRequest, Empty> setDefaultBranc
312319
return getStubSettingsBuilder().removeCatalogAttributeSettings();
313320
}
314321

322+
/** Returns the builder for the settings used for calls to batchRemoveCatalogAttributes. */
323+
public UnaryCallSettings.Builder<
324+
BatchRemoveCatalogAttributesRequest, BatchRemoveCatalogAttributesResponse>
325+
batchRemoveCatalogAttributesSettings() {
326+
return getStubSettingsBuilder().batchRemoveCatalogAttributesSettings();
327+
}
328+
315329
/** Returns the builder for the settings used for calls to replaceCatalogAttribute. */
316330
public UnaryCallSettings.Builder<ReplaceCatalogAttributeRequest, AttributesConfig>
317331
replaceCatalogAttributeSettings() {

‎java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceClient.java

Copy file name to clipboardExpand all lines: java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/CompletionServiceClient.java
+12-12
Original file line numberDiff line numberDiff line change
@@ -33,8 +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 enable Retail
37-
* Search on Cloud Console before using this feature.
36+
* <p>This feature is only available for users who have Retail Search enabled. Enable Retail Search
37+
* on Cloud Console before using this feature.
3838
*
3939
* <p>This class provides the ability to make remote calls to the backing service through method
4040
* calls that map to API methods. Sample code to get started:
@@ -205,8 +205,8 @@ public final OperationsClient getHttpJsonOperationsClient() {
205205
/**
206206
* Completes the specified prefix with keyword suggestions.
207207
*
208-
* <p>This feature is only available for users who have Retail Search enabled. Please enable
209-
* Retail Search on Cloud Console before using this feature.
208+
* <p>This feature is only available for users who have Retail Search enabled. Enable Retail
209+
* Search on Cloud Console before using this feature.
210210
*
211211
* <p>Sample code:
212212
*
@@ -239,8 +239,8 @@ public final CompleteQueryResponse completeQuery(CompleteQueryRequest request) {
239239
/**
240240
* Completes the specified prefix with keyword suggestions.
241241
*
242-
* <p>This feature is only available for users who have Retail Search enabled. Please enable
243-
* Retail Search on Cloud Console before using this feature.
242+
* <p>This feature is only available for users who have Retail Search enabled. Enable Retail
243+
* Search on Cloud Console before using this feature.
244244
*
245245
* <p>Sample code:
246246
*
@@ -278,8 +278,8 @@ public final UnaryCallable<CompleteQueryRequest, CompleteQueryResponse> complete
278278
* <p>The operation is successfully finished only after the imported suggestions are indexed
279279
* successfully and ready for serving. The process takes hours.
280280
*
281-
* <p>This feature is only available for users who have Retail Search enabled. Please enable
282-
* Retail Search on Cloud Console before using this feature.
281+
* <p>This feature is only available for users who have Retail Search enabled. Enable Retail
282+
* Search on Cloud Console before using this feature.
283283
*
284284
* <p>Sample code:
285285
*
@@ -315,8 +315,8 @@ public final UnaryCallable<CompleteQueryRequest, CompleteQueryResponse> complete
315315
* <p>The operation is successfully finished only after the imported suggestions are indexed
316316
* successfully and ready for serving. The process takes hours.
317317
*
318-
* <p>This feature is only available for users who have Retail Search enabled. Please enable
319-
* Retail Search on Cloud Console before using this feature.
318+
* <p>This feature is only available for users who have Retail Search enabled. Enable Retail
319+
* Search on Cloud Console before using this feature.
320320
*
321321
* <p>Sample code:
322322
*
@@ -352,8 +352,8 @@ public final UnaryCallable<CompleteQueryRequest, CompleteQueryResponse> complete
352352
* <p>The operation is successfully finished only after the imported suggestions are indexed
353353
* successfully and ready for serving. The process takes hours.
354354
*
355-
* <p>This feature is only available for users who have Retail Search enabled. Please enable
356-
* Retail Search on Cloud Console before using this feature.
355+
* <p>This feature is only available for users who have Retail Search enabled. Enable Retail
356+
* Search on Cloud Console before using this feature.
357357
*
358358
* <p>Sample code:
359359
*

‎java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ControlServiceClient.java

Copy file name to clipboardExpand all lines: java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/ControlServiceClient.java
+10-10
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ public final UnaryCallable<DeleteControlRequest, Empty> deleteControlCallable()
421421
*
422422
* <p>[Control][google.cloud.retail.v2beta.Control] cannot be set to a different oneof field, if
423423
* so an INVALID_ARGUMENT is returned. If the [Control][google.cloud.retail.v2beta.Control] to
424-
* delete does not exist, a NOT_FOUND error is returned.
424+
* update does not exist, a NOT_FOUND error is returned.
425425
*
426426
* <p>Sample code:
427427
*
@@ -456,7 +456,7 @@ public final Control updateControl(Control control, FieldMask updateMask) {
456456
*
457457
* <p>[Control][google.cloud.retail.v2beta.Control] cannot be set to a different oneof field, if
458458
* so an INVALID_ARGUMENT is returned. If the [Control][google.cloud.retail.v2beta.Control] to
459-
* delete does not exist, a NOT_FOUND error is returned.
459+
* update does not exist, a NOT_FOUND error is returned.
460460
*
461461
* <p>Sample code:
462462
*
@@ -486,7 +486,7 @@ public final Control updateControl(UpdateControlRequest request) {
486486
*
487487
* <p>[Control][google.cloud.retail.v2beta.Control] cannot be set to a different oneof field, if
488488
* so an INVALID_ARGUMENT is returned. If the [Control][google.cloud.retail.v2beta.Control] to
489-
* delete does not exist, a NOT_FOUND error is returned.
489+
* update does not exist, a NOT_FOUND error is returned.
490490
*
491491
* <p>Sample code:
492492
*
@@ -524,7 +524,7 @@ public final UnaryCallable<UpdateControlRequest, Control> updateControlCallable(
524524
* }
525525
* }</pre>
526526
*
527-
* @param name Required. The resource name of the Control to delete. Format:
527+
* @param name Required. The resource name of the Control to get. Format:
528528
* `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}`
529529
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
530530
*/
@@ -549,7 +549,7 @@ public final Control getControl(ControlName name) {
549549
* }
550550
* }</pre>
551551
*
552-
* @param name Required. The resource name of the Control to delete. Format:
552+
* @param name Required. The resource name of the Control to get. Format:
553553
* `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/controls/{control_id}`
554554
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
555555
*/
@@ -611,7 +611,7 @@ public final UnaryCallable<GetControlRequest, Control> getControlCallable() {
611611

612612
// AUTO-GENERATED DOCUMENTATION AND METHOD.
613613
/**
614-
* Lists all Controls linked to this catalog.
614+
* Lists all Controls by their parent [Catalog][google.cloud.retail.v2beta.Catalog].
615615
*
616616
* <p>Sample code:
617617
*
@@ -640,7 +640,7 @@ public final ListControlsPagedResponse listControls(CatalogName parent) {
640640

641641
// AUTO-GENERATED DOCUMENTATION AND METHOD.
642642
/**
643-
* Lists all Controls linked to this catalog.
643+
* Lists all Controls by their parent [Catalog][google.cloud.retail.v2beta.Catalog].
644644
*
645645
* <p>Sample code:
646646
*
@@ -666,7 +666,7 @@ public final ListControlsPagedResponse listControls(String parent) {
666666

667667
// AUTO-GENERATED DOCUMENTATION AND METHOD.
668668
/**
669-
* Lists all Controls linked to this catalog.
669+
* Lists all Controls by their parent [Catalog][google.cloud.retail.v2beta.Catalog].
670670
*
671671
* <p>Sample code:
672672
*
@@ -696,7 +696,7 @@ public final ListControlsPagedResponse listControls(ListControlsRequest request)
696696

697697
// AUTO-GENERATED DOCUMENTATION AND METHOD.
698698
/**
699-
* Lists all Controls linked to this catalog.
699+
* Lists all Controls by their parent [Catalog][google.cloud.retail.v2beta.Catalog].
700700
*
701701
* <p>Sample code:
702702
*
@@ -727,7 +727,7 @@ public final ListControlsPagedResponse listControls(ListControlsRequest request)
727727

728728
// AUTO-GENERATED DOCUMENTATION AND METHOD.
729729
/**
730-
* Lists all Controls linked to this catalog.
730+
* Lists all Controls by their parent [Catalog][google.cloud.retail.v2beta.Catalog].
731731
*
732732
* <p>Sample code:
733733
*

0 commit comments

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