Skip to content

Commit aaf47a2

Browse files
dfirovaShabirmean
authored andcommitted
fix(samples): removed region tags (#531)
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 #<issue_number_goes_here> ☕️ If you write sample code, please follow the [samples format]( https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md).
1 parent 6f0697b commit aaf47a2

24 files changed

+0
-102
lines changed

retail/interactive-tutorials/src/main/java/events/ImportUserEventsBigQuery.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_import_user_events_from_big_query]
18-
1917
/*
2018
* Import user events into a catalog from GCS using Retail API
2119
*/
@@ -112,5 +110,3 @@ public static void importUserEventsFromBigQuery(
112110
}
113111
}
114112
}
115-
116-
// [END retail_import_user_events_from_big_query]

retail/interactive-tutorials/src/main/java/events/ImportUserEventsGcs.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_import_user_events_from_gcs]
18-
1917
/*
2018
* Import user events into a catalog from GCS using Retail API
2119
*/
@@ -122,5 +120,3 @@ public static void importUserEventsFromGcs(String gcsEventsObject, String defaul
122120
}
123121
}
124122
}
125-
126-
// [END retail_import_user_events_from_gcs]

retail/interactive-tutorials/src/main/java/events/ImportUserEventsInline.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_import_user_events_from_inline_source]
18-
1917
/*
2018
* Import user events into a catalog from inline source using Retail API
2119
*/
@@ -125,5 +123,3 @@ public static void importUserEventsFromInlineSource(String defaultCatalog)
125123
}
126124
}
127125
}
128-
129-
// [END retail_import_user_events_from_inline_source]

retail/interactive-tutorials/src/main/java/events/PurgeUserEvent.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_purge_user_event]
18-
1917
/*
2018
* Purge user events into a catalog from inline source using Retail API
2119
*/
@@ -72,5 +70,3 @@ public static void callPurgeUserEvents(String defaultCatalog, String visitorId)
7270
}
7371
}
7472
}
75-
76-
// [END retail_purge_user_event]

retail/interactive-tutorials/src/main/java/events/RejoinUserEvent.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_rejoin_user_event]
18-
1917
/*
2018
* Rejoin user events into a catalog from inline source using Retail API
2119
*/
@@ -74,5 +72,3 @@ public static void callRejoinUserEvents(String defaultCatalog, String visitorId)
7472
purgeUserEvent(visitorId);
7573
}
7674
}
77-
78-
// [END retail_rejoin_user_event]

retail/interactive-tutorials/src/main/java/events/WriteUserEvent.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_write_user_event]
18-
1917
/*
2018
* Write user events into a catalog from inline source using Retail API
2119
*/
@@ -79,5 +77,3 @@ public static void writeUserEvent(String defaultCatalog, String visitorId)
7977
purgeUserEvent(visitorId);
8078
}
8179
}
82-
83-
// [END retail_write_user_event]

retail/interactive-tutorials/src/main/java/product/AddFulfillmentPlaces.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
/*
18-
* [START retail_add_fulfillment_places]
19-
*/
20-
2117
package product;
2218

2319
import static setup.SetupCleanup.createProduct;
@@ -82,5 +78,3 @@ public static void addFulfillmentPlaces(String productName, String placeId)
8278
}
8379
}
8480
}
85-
86-
// [END retail_add_fulfillment_places]

retail/interactive-tutorials/src/main/java/product/CreateProduct.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_create_product]
18-
1917
/*
2018
* Create product in a catalog using Retail API
2119
*/
@@ -88,5 +86,3 @@ public static Product createProduct(String productId, String branchName) throws
8886
}
8987
}
9088
}
91-
92-
// [END retail_create_product]

retail/interactive-tutorials/src/main/java/product/CrudProduct.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_crud_product]
18-
1917
/*
2018
* Create product in a catalog using Retail API
2119
*/
@@ -175,5 +173,3 @@ public static void deleteProduct(String productName) throws IOException {
175173
}
176174
}
177175
}
178-
179-
// [END retail_crud_product]

retail/interactive-tutorials/src/main/java/product/DeleteProduct.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_delete_product]
18-
1917
/*
2018
* Delete product from a catalog using Retail API
2119
*/
@@ -54,5 +52,3 @@ public static void deleteProduct(String productName) throws IOException {
5452
}
5553
}
5654
}
57-
58-
// [END retail_delete_product]

retail/interactive-tutorials/src/main/java/product/GetProduct.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_get_product]
18-
1917
/*
2018
* Get product from a catalog using Retail API
2119
*/
@@ -63,5 +61,3 @@ public static Product getProduct(String productName) throws IOException {
6361
}
6462
}
6563
}
66-
67-
// [END retail_get_product]

retail/interactive-tutorials/src/main/java/product/ImportProductsBigQueryTable.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_import_products_from_big_query]
18-
1917
/*
2018
* Import products into a catalog from big query table using Retail API
2119
*/
@@ -116,5 +114,3 @@ public static void waitForOperationCompletion(ImportProductsRequest importReques
116114
}
117115
}
118116
}
119-
120-
// [END retail_import_products_from_big_query]

retail/interactive-tutorials/src/main/java/product/ImportProductsGcs.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_import_products_from_gcs]
18-
1917
/*
2018
* Import products into a catalog from gcs using Retail API
2119
*/
@@ -119,5 +117,3 @@ public static void waitForOperationCompletion(ImportProductsRequest importReques
119117
}
120118
}
121119
}
122-
123-
// [END retail_import_products_from_gcs]

retail/interactive-tutorials/src/main/java/product/ImportProductsInlineSource.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_import_products_from_inline_source]
18-
1917
/*
2018
* Import products into a catalog from inline source using Retail API
2119
*/
@@ -207,5 +205,3 @@ public static void waitForOperationCompletion(ImportProductsRequest importReques
207205
}
208206
}
209207
}
210-
211-
// [END retail_import_products_from_inline_source]

retail/interactive-tutorials/src/main/java/product/RemoveFulfillmentPlaces.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
/*
18-
* [START retail_remove_fulfillment_places]
19-
*/
20-
2117
package product;
2218

2319
import static setup.SetupCleanup.createProduct;
@@ -82,5 +78,3 @@ public static void removeFulfillmentPlaces(String productName, String storeId)
8278
}
8379
}
8480
}
85-
86-
// [END retail_remove_fulfillment_places]

retail/interactive-tutorials/src/main/java/product/SetInventory.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
/*
18-
* [START retail_set_inventory]
19-
*/
20-
2117
package product;
2218

2319
import static setup.SetupCleanup.createProduct;
@@ -121,5 +117,3 @@ public static void setInventory(String productName) throws IOException, Interrup
121117
TimeUnit.SECONDS.sleep(30);
122118
}
123119
}
124-
125-
// [END retail_set_inventory]

retail/interactive-tutorials/src/main/java/product/UpdateProduct.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_update_product]
18-
1917
/*
2018
* Update product in a catalog using Retail API
2119
*/
@@ -93,5 +91,3 @@ public static void updateProduct(Product originalProduct, String defaultBranchNa
9391
}
9492
}
9593
}
96-
97-
// [END retail_update_product]

retail/interactive-tutorials/src/main/java/search/SearchSimpleQuery.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_search_for_products_with_query_parameter]
18-
1917
/*
2018
* Call Retail API to search for a products in a catalog
2119
* using only search query.
@@ -66,5 +64,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx
6664
}
6765
}
6866
}
69-
70-
// [END retail_search_for_products_with_query_parameter]

retail/interactive-tutorials/src/main/java/search/SearchWithBoostSpec.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_search_product_with_boost_spec]
18-
1917
/*
2018
* Call Retail API to search for a products in a catalog, rerank the
2119
* results boosting or burying the products that match defined condition.
@@ -77,5 +75,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx
7775
}
7876
}
7977
}
80-
81-
// [END retail_search_product_with_boost_spec]

retail/interactive-tutorials/src/main/java/search/SearchWithFacetSpec.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_search_product_with_facet_spec]
18-
1917
package search;
2018

2119
import com.google.cloud.ServiceOptions;
@@ -68,5 +66,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx
6866
}
6967
}
7068
}
71-
72-
// [END retail_search_product_with_facet_spec]

retail/interactive-tutorials/src/main/java/search/SearchWithFiltering.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_search_for_products_with_filter]
18-
1917
/*
2018
* Call Retail API to search for a products in a catalog,
2119
* filter the results by different product fields.
@@ -69,5 +67,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx
6967
}
7068
}
7169
}
72-
73-
// [END retail_search_for_products_with_filter]

retail/interactive-tutorials/src/main/java/search/SearchWithOrdering.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_search_for_products_with_ordering]
18-
1917
/*
2018
* Call Retail API to search for a products in a catalog,
2119
* order the results by different product fields.
@@ -68,5 +66,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx
6866
}
6967
}
7068
}
71-
72-
// [END retail_search_for_products_with_ordering]

retail/interactive-tutorials/src/main/java/search/SearchWithPagination.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_search_for_products_with_page_size]
18-
1917
/*
2018
* Call Retail API to search for a products in a catalog,
2119
* 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
7573
}
7674
}
7775
}
78-
79-
// [END retail_search_for_products_with_page_size]

retail/interactive-tutorials/src/main/java/search/SearchWithQueryExpansionSpec.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
// [START retail_search_for_products_with_query_expansion_specification]
18-
1917
/*
2018
* Call Retail API to search for a products in a catalog,
2119
* enabling the query expansion feature to let the Google Retail Search
@@ -74,5 +72,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx
7472
}
7573
}
7674
}
77-
78-
// [END retail_search_for_products_with_query_expansion_specification]

0 commit comments

Comments
 (0)