From b12a8fee611e50feda85e9b41ae89abd0bce6611 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/java-retail/samples/interactive-tutorials/src/main/java/events/ImportUserEventsBigQuery.java b/java-retail/samples/interactive-tutorials/src/main/java/events/ImportUserEventsBigQuery.java index 40d24e9f88e..08389cf33c5 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/events/ImportUserEventsBigQuery.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/events/ImportUserEventsGcs.java b/java-retail/samples/interactive-tutorials/src/main/java/events/ImportUserEventsGcs.java index 5e64eb1de9a..aae1a455521 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/events/ImportUserEventsGcs.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/events/ImportUserEventsInline.java b/java-retail/samples/interactive-tutorials/src/main/java/events/ImportUserEventsInline.java index 2a5124ab2d9..693a6718f0e 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/events/ImportUserEventsInline.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/events/PurgeUserEvent.java b/java-retail/samples/interactive-tutorials/src/main/java/events/PurgeUserEvent.java index e55c4a66f1a..4f5f902108a 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/events/PurgeUserEvent.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/events/RejoinUserEvent.java b/java-retail/samples/interactive-tutorials/src/main/java/events/RejoinUserEvent.java index 90284f6e7c6..9577db5177f 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/events/RejoinUserEvent.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/events/WriteUserEvent.java b/java-retail/samples/interactive-tutorials/src/main/java/events/WriteUserEvent.java index 0f78fcf5a4f..a3455e1f09e 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/events/WriteUserEvent.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/product/AddFulfillmentPlaces.java b/java-retail/samples/interactive-tutorials/src/main/java/product/AddFulfillmentPlaces.java index 31d9427364a..df1080f6caa 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/product/AddFulfillmentPlaces.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/product/CreateProduct.java b/java-retail/samples/interactive-tutorials/src/main/java/product/CreateProduct.java index 811d9fddfeb..9060a987965 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/product/CreateProduct.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/product/CrudProduct.java b/java-retail/samples/interactive-tutorials/src/main/java/product/CrudProduct.java index 429f8788c3b..cadd649d3ea 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/product/CrudProduct.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/product/DeleteProduct.java b/java-retail/samples/interactive-tutorials/src/main/java/product/DeleteProduct.java index 2797db265f3..04055af1978 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/product/DeleteProduct.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/product/GetProduct.java b/java-retail/samples/interactive-tutorials/src/main/java/product/GetProduct.java index d5daf4cd73f..25a88c718d2 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/product/GetProduct.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/product/ImportProductsBigQueryTable.java b/java-retail/samples/interactive-tutorials/src/main/java/product/ImportProductsBigQueryTable.java index 291720c1000..2f6b9e3af42 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/product/ImportProductsBigQueryTable.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/product/ImportProductsGcs.java b/java-retail/samples/interactive-tutorials/src/main/java/product/ImportProductsGcs.java index 16322466619..15291a0cfac 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/product/ImportProductsGcs.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/product/ImportProductsInlineSource.java b/java-retail/samples/interactive-tutorials/src/main/java/product/ImportProductsInlineSource.java index 3f8b263966c..278721f4575 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/product/ImportProductsInlineSource.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/product/RemoveFulfillmentPlaces.java b/java-retail/samples/interactive-tutorials/src/main/java/product/RemoveFulfillmentPlaces.java index 14f64dee412..a5eac37d89e 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/product/RemoveFulfillmentPlaces.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/product/SetInventory.java b/java-retail/samples/interactive-tutorials/src/main/java/product/SetInventory.java index fbf260db8aa..379dc31c5dc 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/product/SetInventory.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/product/UpdateProduct.java b/java-retail/samples/interactive-tutorials/src/main/java/product/UpdateProduct.java index e278dc8c24c..4d37ad2220a 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/product/UpdateProduct.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/search/SearchSimpleQuery.java b/java-retail/samples/interactive-tutorials/src/main/java/search/SearchSimpleQuery.java index 935eb493851..545018e8aeb 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/search/SearchSimpleQuery.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithBoostSpec.java b/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithBoostSpec.java index 137774067c5..8cead0d856e 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithBoostSpec.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithFacetSpec.java b/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithFacetSpec.java index d7131586c3e..37029c6273f 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithFacetSpec.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithFiltering.java b/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithFiltering.java index 4435487248d..69b2653eda9 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithFiltering.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithOrdering.java b/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithOrdering.java index e3ca6270534..c2623b604f8 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithOrdering.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithPagination.java b/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithPagination.java index 0dae50164bd..b288397b430 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithPagination.java +++ b/java-retail/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/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithQueryExpansionSpec.java b/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithQueryExpansionSpec.java index e98b5516ec0..c08552e978a 100644 --- a/java-retail/samples/interactive-tutorials/src/main/java/search/SearchWithQueryExpansionSpec.java +++ b/java-retail/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]