Skip to content

Commit

Permalink
fix(samples): removed region tags (#531)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
dfirova authored Sep 12, 2022
1 parent 29807c8 commit b12a8fe
Show file tree
Hide file tree
Showing 24 changed files with 0 additions and 102 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -112,5 +110,3 @@ public static void importUserEventsFromBigQuery(
}
}
}

// [END retail_import_user_events_from_big_query]
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -122,5 +120,3 @@ public static void importUserEventsFromGcs(String gcsEventsObject, String defaul
}
}
}

// [END retail_import_user_events_from_gcs]
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -125,5 +123,3 @@ public static void importUserEventsFromInlineSource(String defaultCatalog)
}
}
}

// [END retail_import_user_events_from_inline_source]
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -72,5 +70,3 @@ public static void callPurgeUserEvents(String defaultCatalog, String visitorId)
}
}
}

// [END retail_purge_user_event]
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -74,5 +72,3 @@ public static void callRejoinUserEvents(String defaultCatalog, String visitorId)
purgeUserEvent(visitorId);
}
}

// [END retail_rejoin_user_event]
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -79,5 +77,3 @@ public static void writeUserEvent(String defaultCatalog, String visitorId)
purgeUserEvent(visitorId);
}
}

// [END retail_write_user_event]
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
* limitations under the License.
*/

/*
* [START retail_add_fulfillment_places]
*/

package product;

import static setup.SetupCleanup.createProduct;
Expand Down Expand Up @@ -82,5 +78,3 @@ public static void addFulfillmentPlaces(String productName, String placeId)
}
}
}

// [END retail_add_fulfillment_places]
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

// [START retail_create_product]

/*
* Create product in a catalog using Retail API
*/
Expand Down Expand Up @@ -88,5 +86,3 @@ public static Product createProduct(String productId, String branchName) throws
}
}
}

// [END retail_create_product]
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

// [START retail_crud_product]

/*
* Create product in a catalog using Retail API
*/
Expand Down Expand Up @@ -175,5 +173,3 @@ public static void deleteProduct(String productName) throws IOException {
}
}
}

// [END retail_crud_product]
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

// [START retail_delete_product]

/*
* Delete product from a catalog using Retail API
*/
Expand Down Expand Up @@ -54,5 +52,3 @@ public static void deleteProduct(String productName) throws IOException {
}
}
}

// [END retail_delete_product]
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

// [START retail_get_product]

/*
* Get product from a catalog using Retail API
*/
Expand Down Expand Up @@ -63,5 +61,3 @@ public static Product getProduct(String productName) throws IOException {
}
}
}

// [END retail_get_product]
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -116,5 +114,3 @@ public static void waitForOperationCompletion(ImportProductsRequest importReques
}
}
}

// [END retail_import_products_from_big_query]
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

// [START retail_import_products_from_gcs]

/*
* Import products into a catalog from gcs using Retail API
*/
Expand Down Expand Up @@ -119,5 +117,3 @@ public static void waitForOperationCompletion(ImportProductsRequest importReques
}
}
}

// [END retail_import_products_from_gcs]
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -207,5 +205,3 @@ public static void waitForOperationCompletion(ImportProductsRequest importReques
}
}
}

// [END retail_import_products_from_inline_source]
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
* limitations under the License.
*/

/*
* [START retail_remove_fulfillment_places]
*/

package product;

import static setup.SetupCleanup.createProduct;
Expand Down Expand Up @@ -82,5 +78,3 @@ public static void removeFulfillmentPlaces(String productName, String storeId)
}
}
}

// [END retail_remove_fulfillment_places]
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
* limitations under the License.
*/

/*
* [START retail_set_inventory]
*/

package product;

import static setup.SetupCleanup.createProduct;
Expand Down Expand Up @@ -121,5 +117,3 @@ public static void setInventory(String productName) throws IOException, Interrup
TimeUnit.SECONDS.sleep(30);
}
}

// [END retail_set_inventory]
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

// [START retail_update_product]

/*
* Update product in a catalog using Retail API
*/
Expand Down Expand Up @@ -93,5 +91,3 @@ public static void updateProduct(Product originalProduct, String defaultBranchNa
}
}
}

// [END retail_update_product]
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -66,5 +64,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx
}
}
}

// [END retail_search_for_products_with_query_parameter]
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -77,5 +75,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx
}
}
}

// [END retail_search_product_with_boost_spec]
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

// [START retail_search_product_with_facet_spec]

package search;

import com.google.cloud.ServiceOptions;
Expand Down Expand Up @@ -68,5 +66,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx
}
}
}

// [END retail_search_product_with_facet_spec]
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -69,5 +67,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx
}
}
}

// [END retail_search_for_products_with_filter]
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -68,5 +66,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx
}
}
}

// [END retail_search_for_products_with_ordering]
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -75,5 +73,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx
}
}
}

// [END retail_search_for_products_with_page_size]
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -74,5 +72,3 @@ public static void searchResponse(String defaultSearchPlacementName) throws IOEx
}
}
}

// [END retail_search_for_products_with_query_expansion_specification]

0 comments on commit b12a8fe

Please sign in to comment.