GeezerVison is showing github.com — Minimizes cloud maven dependencies and fixes lint warnings · krgeppert/java-docs-samples@d4d0c25
File tree
Expand file treeCollapse file tree
Open diff view settings
main/java/com/example/speech test/java/com/example/speech
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: speech/cloud-client/pom.xml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
37 | 37 | <!-- [START dependencies] --> |
38 | 38 | <dependency> |
39 | 39 | <groupId>com.google.cloud</groupId> |
40 | | - <artifactId>google-cloud</artifactId> |
| 40 | + <artifactId>google-cloud-speech</artifactId> |
41 | 41 | <version>0.21.1-alpha</version> |
42 | 42 | </dependency> |
43 | 43 | <!-- [END dependencies] --> |
|
Collapse file
Copy file name to clipboardExpand all lines: speech/cloud-client/src/main/java/com/example/speech/Recognize.java +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
15 | 15 | */ |
16 | 16 |
|
17 | 17 | package com.example.speech; |
| 18 | + |
18 | 19 | import com.google.api.gax.rpc.ApiStreamObserver; |
19 | 20 | import com.google.api.gax.rpc.OperationFuture; |
20 | 21 | import com.google.api.gax.rpc.StreamingCallable; |
|
Collapse file
Copy file name to clipboardExpand all lines: speech/cloud-client/src/test/java/com/example/speech/QuickstartSampleIT.java +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
18 | 18 |
|
19 | 19 | import static com.google.common.truth.Truth.assertThat; |
20 | 20 |
|
| 21 | +import java.io.ByteArrayOutputStream; |
| 22 | +import java.io.PrintStream; |
| 23 | + |
21 | 24 | import org.junit.After; |
22 | 25 | import org.junit.Before; |
23 | 26 | import org.junit.Test; |
24 | 27 | import org.junit.runner.RunWith; |
25 | 28 | import org.junit.runners.JUnit4; |
26 | 29 |
|
27 | | -import java.io.ByteArrayOutputStream; |
28 | | -import java.io.PrintStream; |
29 | | - |
30 | 30 | /** |
31 | 31 | * Tests for quickstart sample. |
32 | 32 | */ |
|
Collapse file
Copy file name to clipboardExpand all lines: speech/cloud-client/src/test/java/com/example/speech/RecognizeIT.java +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
18 | 18 |
|
19 | 19 | import static com.google.common.truth.Truth.assertThat; |
20 | 20 |
|
| 21 | +import java.io.ByteArrayOutputStream; |
| 22 | +import java.io.PrintStream; |
| 23 | + |
21 | 24 | import org.junit.After; |
22 | 25 | import org.junit.Before; |
23 | 26 | import org.junit.Test; |
24 | 27 | import org.junit.runner.RunWith; |
25 | 28 | import org.junit.runners.JUnit4; |
26 | 29 |
|
27 | | -import java.io.ByteArrayOutputStream; |
28 | | -import java.io.PrintStream; |
29 | | - |
30 | 30 | /** |
31 | 31 | * Tests for speech recognize sample. |
32 | 32 | */ |
|