From 2d0dd5c50f9373ea0eac42d857b2409eb84b0028 Mon Sep 17 00:00:00 2001 From: dfirova <93149631+dfirova@users.noreply.github.com> Date: Mon, 12 Sep 2022 20:06:13 +0300 Subject: [PATCH] fix(samples): removed region tags (#531) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-retail/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes # ☕️ If you write sample code, please follow the [samples format]( https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md). --- .../src/main/java/events/ImportUserEventsBigQuery.java | 4 ---- .../src/main/java/events/ImportUserEventsGcs.java | 4 ---- .../src/main/java/events/ImportUserEventsInline.java | 4 ---- .../src/main/java/events/PurgeUserEvent.java | 4 ---- .../src/main/java/events/RejoinUserEvent.java | 4 ---- .../src/main/java/events/WriteUserEvent.java | 4 ---- .../src/main/java/product/AddFulfillmentPlaces.java | 6 ------ .../src/main/java/product/CreateProduct.java | 4 ---- .../src/main/java/product/CrudProduct.java | 4 ---- .../src/main/java/product/DeleteProduct.java | 4 ---- .../src/main/java/product/GetProduct.java | 4 ---- .../src/main/java/product/ImportProductsBigQueryTable.java | 4 ---- .../src/main/java/product/ImportProductsGcs.java | 4 ---- .../src/main/java/product/ImportProductsInlineSource.java | 4 ---- .../src/main/java/product/RemoveFulfillmentPlaces.java | 6 ------ .../src/main/java/product/SetInventory.java | 6 ------ .../src/main/java/product/UpdateProduct.java | 4 ---- .../src/main/java/search/SearchSimpleQuery.java | 4 ---- .../src/main/java/search/SearchWithBoostSpec.java | 4 ---- .../src/main/java/search/SearchWithFacetSpec.java | 4 ---- .../src/main/java/search/SearchWithFiltering.java | 4 ---- .../src/main/java/search/SearchWithOrdering.java | 4 ---- .../src/main/java/search/SearchWithPagination.java | 4 ---- .../src/main/java/search/SearchWithQueryExpansionSpec.java | 4 ---- 24 files changed, 102 deletions(-) diff --git a/samples/interactive-tutorials/src/main/java/events/ImportUserEventsBigQuery.java b/samples/interactive-tutorials/src/main/java/events/ImportUserEventsBigQuery.java index 40d24e9f..08389cf3 100644 --- a/samples/interactive-tutorials/src/main/java/events/ImportUserEventsBigQuery.java +++ b/samples/interactive-tutorials/src/main/java/events/ImportUserEventsBigQuery.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_import_user_events_from_big_query] - /* * Import user events into a catalog from GCS using Retail API */ @@ -112,5 +110,3 @@ public static void importUserEventsFromBigQuery( } } } - -// [END retail_import_user_events_from_big_query] diff --git a/samples/interactive-tutorials/src/main/java/events/ImportUserEventsGcs.java b/samples/interactive-tutorials/src/main/java/events/ImportUserEventsGcs.java index 5e64eb1d..aae1a455 100644 --- a/samples/interactive-tutorials/src/main/java/events/ImportUserEventsGcs.java +++ b/samples/interactive-tutorials/src/main/java/events/ImportUserEventsGcs.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_import_user_events_from_gcs] - /* * Import user events into a catalog from GCS using Retail API */ @@ -122,5 +120,3 @@ public static void importUserEventsFromGcs(String gcsEventsObject, String defaul } } } - -// [END retail_import_user_events_from_gcs] diff --git a/samples/interactive-tutorials/src/main/java/events/ImportUserEventsInline.java b/samples/interactive-tutorials/src/main/java/events/ImportUserEventsInline.java index 2a5124ab..693a6718 100644 --- a/samples/interactive-tutorials/src/main/java/events/ImportUserEventsInline.java +++ b/samples/interactive-tutorials/src/main/java/events/ImportUserEventsInline.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_import_user_events_from_inline_source] - /* * Import user events into a catalog from inline source using Retail API */ @@ -125,5 +123,3 @@ public static void importUserEventsFromInlineSource(String defaultCatalog) } } } - -// [END retail_import_user_events_from_inline_source] diff --git a/samples/interactive-tutorials/src/main/java/events/PurgeUserEvent.java b/samples/interactive-tutorials/src/main/java/events/PurgeUserEvent.java index e55c4a66..4f5f9021 100644 --- a/samples/interactive-tutorials/src/main/java/events/PurgeUserEvent.java +++ b/samples/interactive-tutorials/src/main/java/events/PurgeUserEvent.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_purge_user_event] - /* * Purge user events into a catalog from inline source using Retail API */ @@ -72,5 +70,3 @@ public static void callPurgeUserEvents(String defaultCatalog, String visitorId) } } } - -// [END retail_purge_user_event] diff --git a/samples/interactive-tutorials/src/main/java/events/RejoinUserEvent.java b/samples/interactive-tutorials/src/main/java/events/RejoinUserEvent.java index 90284f6e..9577db51 100644 --- a/samples/interactive-tutorials/src/main/java/events/RejoinUserEvent.java +++ b/samples/interactive-tutorials/src/main/java/events/RejoinUserEvent.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_rejoin_user_event] - /* * Rejoin user events into a catalog from inline source using Retail API */ @@ -74,5 +72,3 @@ public static void callRejoinUserEvents(String defaultCatalog, String visitorId) purgeUserEvent(visitorId); } } - -// [END retail_rejoin_user_event] diff --git a/samples/interactive-tutorials/src/main/java/events/WriteUserEvent.java b/samples/interactive-tutorials/src/main/java/events/WriteUserEvent.java index 0f78fcf5..a3455e1f 100644 --- a/samples/interactive-tutorials/src/main/java/events/WriteUserEvent.java +++ b/samples/interactive-tutorials/src/main/java/events/WriteUserEvent.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_write_user_event] - /* * Write user events into a catalog from inline source using Retail API */ @@ -79,5 +77,3 @@ public static void writeUserEvent(String defaultCatalog, String visitorId) purgeUserEvent(visitorId); } } - -// [END retail_write_user_event] diff --git a/samples/interactive-tutorials/src/main/java/product/AddFulfillmentPlaces.java b/samples/interactive-tutorials/src/main/java/product/AddFulfillmentPlaces.java index 31d94273..df1080f6 100644 --- a/samples/interactive-tutorials/src/main/java/product/AddFulfillmentPlaces.java +++ b/samples/interactive-tutorials/src/main/java/product/AddFulfillmentPlaces.java @@ -14,10 +14,6 @@ * limitations under the License. */ -/* - * [START retail_add_fulfillment_places] - */ - package product; import static setup.SetupCleanup.createProduct; @@ -82,5 +78,3 @@ public static void addFulfillmentPlaces(String productName, String placeId) } } } - -// [END retail_add_fulfillment_places] diff --git a/samples/interactive-tutorials/src/main/java/product/CreateProduct.java b/samples/interactive-tutorials/src/main/java/product/CreateProduct.java index 811d9fdd..9060a987 100644 --- a/samples/interactive-tutorials/src/main/java/product/CreateProduct.java +++ b/samples/interactive-tutorials/src/main/java/product/CreateProduct.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_create_product] - /* * Create product in a catalog using Retail API */ @@ -88,5 +86,3 @@ public static Product createProduct(String productId, String branchName) throws } } } - -// [END retail_create_product] diff --git a/samples/interactive-tutorials/src/main/java/product/CrudProduct.java b/samples/interactive-tutorials/src/main/java/product/CrudProduct.java index 429f8788..cadd649d 100644 --- a/samples/interactive-tutorials/src/main/java/product/CrudProduct.java +++ b/samples/interactive-tutorials/src/main/java/product/CrudProduct.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_crud_product] - /* * Create product in a catalog using Retail API */ @@ -175,5 +173,3 @@ public static void deleteProduct(String productName) throws IOException { } } } - -// [END retail_crud_product] diff --git a/samples/interactive-tutorials/src/main/java/product/DeleteProduct.java b/samples/interactive-tutorials/src/main/java/product/DeleteProduct.java index 2797db26..04055af1 100644 --- a/samples/interactive-tutorials/src/main/java/product/DeleteProduct.java +++ b/samples/interactive-tutorials/src/main/java/product/DeleteProduct.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_delete_product] - /* * Delete product from a catalog using Retail API */ @@ -54,5 +52,3 @@ public static void deleteProduct(String productName) throws IOException { } } } - -// [END retail_delete_product] diff --git a/samples/interactive-tutorials/src/main/java/product/GetProduct.java b/samples/interactive-tutorials/src/main/java/product/GetProduct.java index d5daf4cd..25a88c71 100644 --- a/samples/interactive-tutorials/src/main/java/product/GetProduct.java +++ b/samples/interactive-tutorials/src/main/java/product/GetProduct.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_get_product] - /* * Get product from a catalog using Retail API */ @@ -63,5 +61,3 @@ public static Product getProduct(String productName) throws IOException { } } } - -// [END retail_get_product] diff --git a/samples/interactive-tutorials/src/main/java/product/ImportProductsBigQueryTable.java b/samples/interactive-tutorials/src/main/java/product/ImportProductsBigQueryTable.java index 291720c1..2f6b9e3a 100644 --- a/samples/interactive-tutorials/src/main/java/product/ImportProductsBigQueryTable.java +++ b/samples/interactive-tutorials/src/main/java/product/ImportProductsBigQueryTable.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_import_products_from_big_query] - /* * Import products into a catalog from big query table using Retail API */ @@ -116,5 +114,3 @@ public static void waitForOperationCompletion(ImportProductsRequest importReques } } } - -// [END retail_import_products_from_big_query] diff --git a/samples/interactive-tutorials/src/main/java/product/ImportProductsGcs.java b/samples/interactive-tutorials/src/main/java/product/ImportProductsGcs.java index 16322466..15291a0c 100644 --- a/samples/interactive-tutorials/src/main/java/product/ImportProductsGcs.java +++ b/samples/interactive-tutorials/src/main/java/product/ImportProductsGcs.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_import_products_from_gcs] - /* * Import products into a catalog from gcs using Retail API */ @@ -119,5 +117,3 @@ public static void waitForOperationCompletion(ImportProductsRequest importReques } } } - -// [END retail_import_products_from_gcs] diff --git a/samples/interactive-tutorials/src/main/java/product/ImportProductsInlineSource.java b/samples/interactive-tutorials/src/main/java/product/ImportProductsInlineSource.java index 3f8b2639..278721f4 100644 --- a/samples/interactive-tutorials/src/main/java/product/ImportProductsInlineSource.java +++ b/samples/interactive-tutorials/src/main/java/product/ImportProductsInlineSource.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_import_products_from_inline_source] - /* * Import products into a catalog from inline source using Retail API */ @@ -207,5 +205,3 @@ public static void waitForOperationCompletion(ImportProductsRequest importReques } } } - -// [END retail_import_products_from_inline_source] diff --git a/samples/interactive-tutorials/src/main/java/product/RemoveFulfillmentPlaces.java b/samples/interactive-tutorials/src/main/java/product/RemoveFulfillmentPlaces.java index 14f64dee..a5eac37d 100644 --- a/samples/interactive-tutorials/src/main/java/product/RemoveFulfillmentPlaces.java +++ b/samples/interactive-tutorials/src/main/java/product/RemoveFulfillmentPlaces.java @@ -14,10 +14,6 @@ * limitations under the License. */ -/* - * [START retail_remove_fulfillment_places] - */ - package product; import static setup.SetupCleanup.createProduct; @@ -82,5 +78,3 @@ public static void removeFulfillmentPlaces(String productName, String storeId) } } } - -// [END retail_remove_fulfillment_places] diff --git a/samples/interactive-tutorials/src/main/java/product/SetInventory.java b/samples/interactive-tutorials/src/main/java/product/SetInventory.java index fbf260db..379dc31c 100644 --- a/samples/interactive-tutorials/src/main/java/product/SetInventory.java +++ b/samples/interactive-tutorials/src/main/java/product/SetInventory.java @@ -14,10 +14,6 @@ * limitations under the License. */ -/* - * [START retail_set_inventory] - */ - package product; import static setup.SetupCleanup.createProduct; @@ -121,5 +117,3 @@ public static void setInventory(String productName) throws IOException, Interrup TimeUnit.SECONDS.sleep(30); } } - -// [END retail_set_inventory] diff --git a/samples/interactive-tutorials/src/main/java/product/UpdateProduct.java b/samples/interactive-tutorials/src/main/java/product/UpdateProduct.java index e278dc8c..4d37ad22 100644 --- a/samples/interactive-tutorials/src/main/java/product/UpdateProduct.java +++ b/samples/interactive-tutorials/src/main/java/product/UpdateProduct.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_update_product] - /* * Update product in a catalog using Retail API */ @@ -93,5 +91,3 @@ public static void updateProduct(Product originalProduct, String defaultBranchNa } } } - -// [END retail_update_product] diff --git a/samples/interactive-tutorials/src/main/java/search/SearchSimpleQuery.java b/samples/interactive-tutorials/src/main/java/search/SearchSimpleQuery.java index 935eb493..545018e8 100644 --- a/samples/interactive-tutorials/src/main/java/search/SearchSimpleQuery.java +++ b/samples/interactive-tutorials/src/main/java/search/SearchSimpleQuery.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_search_for_products_with_query_parameter] - /* * Call Retail API to search for a products in a catalog * using only search query. @@ -66,5 +64,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx } } } - -// [END retail_search_for_products_with_query_parameter] diff --git a/samples/interactive-tutorials/src/main/java/search/SearchWithBoostSpec.java b/samples/interactive-tutorials/src/main/java/search/SearchWithBoostSpec.java index 13777406..8cead0d8 100644 --- a/samples/interactive-tutorials/src/main/java/search/SearchWithBoostSpec.java +++ b/samples/interactive-tutorials/src/main/java/search/SearchWithBoostSpec.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_search_product_with_boost_spec] - /* * Call Retail API to search for a products in a catalog, rerank the * results boosting or burying the products that match defined condition. @@ -77,5 +75,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx } } } - -// [END retail_search_product_with_boost_spec] diff --git a/samples/interactive-tutorials/src/main/java/search/SearchWithFacetSpec.java b/samples/interactive-tutorials/src/main/java/search/SearchWithFacetSpec.java index d7131586..37029c62 100644 --- a/samples/interactive-tutorials/src/main/java/search/SearchWithFacetSpec.java +++ b/samples/interactive-tutorials/src/main/java/search/SearchWithFacetSpec.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_search_product_with_facet_spec] - package search; import com.google.cloud.ServiceOptions; @@ -68,5 +66,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx } } } - -// [END retail_search_product_with_facet_spec] diff --git a/samples/interactive-tutorials/src/main/java/search/SearchWithFiltering.java b/samples/interactive-tutorials/src/main/java/search/SearchWithFiltering.java index 44354872..69b2653e 100644 --- a/samples/interactive-tutorials/src/main/java/search/SearchWithFiltering.java +++ b/samples/interactive-tutorials/src/main/java/search/SearchWithFiltering.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_search_for_products_with_filter] - /* * Call Retail API to search for a products in a catalog, * filter the results by different product fields. @@ -69,5 +67,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx } } } - -// [END retail_search_for_products_with_filter] diff --git a/samples/interactive-tutorials/src/main/java/search/SearchWithOrdering.java b/samples/interactive-tutorials/src/main/java/search/SearchWithOrdering.java index e3ca6270..c2623b60 100644 --- a/samples/interactive-tutorials/src/main/java/search/SearchWithOrdering.java +++ b/samples/interactive-tutorials/src/main/java/search/SearchWithOrdering.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_search_for_products_with_ordering] - /* * Call Retail API to search for a products in a catalog, * order the results by different product fields. @@ -68,5 +66,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx } } } - -// [END retail_search_for_products_with_ordering] diff --git a/samples/interactive-tutorials/src/main/java/search/SearchWithPagination.java b/samples/interactive-tutorials/src/main/java/search/SearchWithPagination.java index 0dae5016..b288397b 100644 --- a/samples/interactive-tutorials/src/main/java/search/SearchWithPagination.java +++ b/samples/interactive-tutorials/src/main/java/search/SearchWithPagination.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_search_for_products_with_page_size] - /* * Call Retail API to search for a products in a catalog, * limit the number of the products per page and go to the next page @@ -75,5 +73,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx } } } - -// [END retail_search_for_products_with_page_size] diff --git a/samples/interactive-tutorials/src/main/java/search/SearchWithQueryExpansionSpec.java b/samples/interactive-tutorials/src/main/java/search/SearchWithQueryExpansionSpec.java index e98b5516..c08552e9 100644 --- a/samples/interactive-tutorials/src/main/java/search/SearchWithQueryExpansionSpec.java +++ b/samples/interactive-tutorials/src/main/java/search/SearchWithQueryExpansionSpec.java @@ -14,8 +14,6 @@ * limitations under the License. */ -// [START retail_search_for_products_with_query_expansion_specification] - /* * Call Retail API to search for a products in a catalog, * enabling the query expansion feature to let the Google Retail Search @@ -74,5 +72,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx } } } - -// [END retail_search_for_products_with_query_expansion_specification]