Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
fix(samples): updating both json files. (#540)
Browse files Browse the repository at this point in the history
* fix(samples): updating both json files.

* pr fix: fixed test.

* 馃 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
dfirova and gcf-owl-bot[bot] committed Sep 19, 2022
1 parent c77ba36 commit 22386d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -27,13 +27,13 @@ If you are using Maven, add this to your pom.xml file:
If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-retail:2.4.0'
implementation 'com.google.cloud:google-cloud-retail:2.5.0'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.4.0"
libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.5.0"
```

## Authentication
Expand Down
Expand Up @@ -29,10 +29,10 @@
public class UpdateUserEventsJson {

public static void main(String[] args) throws IOException {
// TODO(developer): Replace these variables before running the sample.
String filePath = "src/main/resources/user_events.json";

String invalidFilePath = "src/main/resources/user_events_some_invalid.json";
updateEventsTimestamp(filePath);
updateEventsTimestamp(invalidFilePath);
}

public static void updateEventsTimestamp(String jsonFile) throws IOException {
Expand Down

0 comments on commit 22386d5

Please sign in to comment.