Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samples: migrate code from googleapis/java-translate #7443

Closed
wants to merge 358 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
358 commits
Select commit Hold shift + click to select a range
fb084ce
fix: extend timeout on batch translation requests (#775)
telpirion Sep 8, 2021
776e955
chore(deps): update dependency com.google.cloud:libraries-bom to v23 …
renovate-bot Sep 13, 2021
e79a349
deps: update dependency com.google.cloud:google-cloud-core to v2.1.3 …
renovate-bot Sep 13, 2021
0191b5a
deps: update dependency com.google.cloud:google-cloud-core to v2.1.4 …
renovate-bot Sep 16, 2021
806d055
deps: update dependency com.google.cloud:google-cloud-core to v2.1.5 …
renovate-bot Sep 21, 2021
d2f66f5
deps: update dependency com.google.cloud:google-cloud-core to v2.1.6 …
renovate-bot Sep 22, 2021
8f2ab6b
deps: update dependency com.google.cloud:google-cloud-core to v2.1.7 …
renovate-bot Sep 28, 2021
7288fea
chore(deps): update dependency com.google.cloud:libraries-bom to v23.…
renovate-bot Oct 1, 2021
eff5d54
samples: added new translate document samples (#608)
munkhuushmgl Oct 15, 2021
0d656c0
deps: update dependency com.google.cloud:google-cloud-core to v2.1.8 …
renovate-bot Oct 18, 2021
489c00b
deps: update dependency com.google.cloud:google-cloud-core to v2.2.0 …
renovate-bot Oct 19, 2021
fb90add
samples: Add Cloud Code tags for API Explorer pilot (#840)
abbycar Oct 26, 2021
cc5065d
chore(deps): update dependency com.google.cloud:libraries-bom to v24 …
renovate-bot Oct 27, 2021
b1210c9
test: Update batch translate tests to minimize flakiness (#846)
kweinmeister Oct 27, 2021
c896f07
deps: update dependency com.google.cloud:google-cloud-core to v2.3.0 …
renovate-bot Nov 15, 2021
06bdcd9
deps: update dependency com.google.cloud:google-cloud-core to v2.3.1 …
renovate-bot Nov 17, 2021
5408179
deps: update dependency com.google.cloud:google-cloud-core to v2.3.2 …
renovate-bot Dec 3, 2021
8ba02e9
deps: update dependency com.google.cloud:google-cloud-core to v2.3.3 …
renovate-bot Dec 5, 2021
f2da01e
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Dec 6, 2021
4d2eaf6
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Dec 8, 2021
557496f
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Dec 28, 2021
86dd67c
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Jan 7, 2022
beb21ee
deps: update dependency com.google.cloud:google-cloud-core to v2.3.4 …
renovate-bot Jan 7, 2022
6af137a
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Jan 12, 2022
05b4501
deps: update dependency com.google.cloud:google-cloud-core to v2.3.5 …
renovate-bot Jan 12, 2022
72510fc
test: add retries to create glossary test (#923)
kweinmeister Feb 2, 2022
e716f98
deps: update dependency com.google.cloud:google-cloud-core to v2.4.0 …
renovate-bot Feb 2, 2022
fdda7e4
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Feb 8, 2022
5587066
deps: update dependency com.google.cloud:google-cloud-core to v2.5.0 …
renovate-bot Feb 9, 2022
93b5df8
deps: update dependency com.google.cloud:google-cloud-core to v2.5.1 …
renovate-bot Feb 10, 2022
1f6ca02
deps: update dependency com.google.cloud:google-cloud-core to v2.5.3 …
renovate-bot Feb 11, 2022
1738478
deps: update dependency com.google.cloud:google-cloud-core to v2.5.4 …
renovate-bot Feb 15, 2022
62761dc
deps: update dependency com.google.cloud:google-cloud-core to v2.5.5 …
renovate-bot Mar 1, 2022
3a6377c
deps: update dependency com.google.cloud:google-cloud-core to v2.5.6 …
renovate-bot Mar 2, 2022
20b8690
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Mar 2, 2022
e99b20b
deps: update dependency com.google.cloud:google-cloud-core to v2.5.8 …
renovate-bot Mar 9, 2022
9acabcf
deps: update dependency com.google.cloud:google-cloud-core to v2.5.9 …
renovate-bot Mar 10, 2022
22c5491
deps: update dependency com.google.cloud:google-cloud-core to v2.5.10…
renovate-bot Mar 14, 2022
19e8a99
chore(deps): update dependency com.google.cloud:libraries-bom to v25 …
renovate-bot Mar 14, 2022
fc4f904
deps: update dependency com.google.cloud:google-cloud-core to v2.5.11…
renovate-bot Mar 30, 2022
62c14c7
chore(deps): update dependency com.google.cloud:libraries-bom to v25.…
renovate-bot Apr 1, 2022
49bad90
deps: update dependency com.google.cloud:google-cloud-core to v2.6.1 …
renovate-bot Apr 15, 2022
0610407
chore(deps): update dependency com.google.cloud:libraries-bom to v25.…
renovate-bot Apr 27, 2022
29eb12c
chore(deps): update dependency com.google.cloud:libraries-bom to v25.…
renovate-bot May 16, 2022
cd3f692
deps: update dependency com.google.cloud:google-cloud-core to v2.7.1 …
renovate-bot May 26, 2022
a5ff4c0
chore(deps): update dependency com.google.cloud:libraries-bom to v25.…
renovate-bot Jun 6, 2022
23af248
deps: update dependency com.google.cloud:google-cloud-core to v2.8.0 …
renovate-bot Jun 22, 2022
429129c
deps: update dependency com.google.cloud:google-cloud-core to v2.8.1 …
renovate-bot Jun 29, 2022
5c92cb7
chore: update api_shortname in pom.xml (#1026)
alicejli Jul 7, 2022
3d3fdf6
chore(deps): update dependency com.google.cloud:libraries-bom to v26 …
renovate-bot Jul 11, 2022
986a27d
deps: update dependency com.google.cloud:google-cloud-core to v2.8.3 …
renovate-bot Jul 27, 2022
c051002
deps: update dependency com.google.cloud:google-cloud-core to v2.8.5 …
renovate-bot Jul 29, 2022
245f861
deps: update dependency com.google.cloud:google-cloud-core to v2.8.6 …
renovate-bot Aug 2, 2022
e7ec245
deps: update dependency com.google.cloud:google-cloud-core to v2.8.7 …
renovate-bot Aug 3, 2022
13f7535
deps: update dependency com.google.cloud:google-cloud-core to v2.8.8 …
renovate-bot Aug 4, 2022
986bc74
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
renovate-bot Aug 16, 2022
578d94a
deps: update dependency com.google.cloud:google-cloud-core to v2.8.9 …
renovate-bot Aug 18, 2022
fb1886d
deps: update dependency com.google.cloud:google-cloud-core to v2.8.10…
renovate-bot Aug 25, 2022
e1b1267
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
renovate-bot Aug 31, 2022
0d2fc7e
deps: update dependency com.google.cloud:google-cloud-core to v2.8.11…
renovate-bot Sep 9, 2022
26e64e8
deps: update dependency com.google.cloud:google-cloud-core to v2.8.12…
renovate-bot Sep 20, 2022
1423221
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
renovate-bot Sep 20, 2022
3c988e8
deps: update dependency com.google.cloud:google-cloud-core to v2.8.13…
renovate-bot Sep 20, 2022
bc6aa50
deps: update dependency com.google.cloud:google-cloud-core to v2.8.14…
renovate-bot Sep 21, 2022
09bf093
deps: update dependency com.google.cloud:google-cloud-core to v2.8.15…
renovate-bot Sep 26, 2022
22e9bab
deps: update dependency com.google.cloud:google-cloud-core to v2.8.18…
renovate-bot Sep 30, 2022
d6bf4df
deps: update dependency com.google.cloud:google-cloud-core to v2.8.19…
renovate-bot Oct 2, 2022
b200960
deps: update dependency com.google.cloud:google-cloud-core to v2.8.20…
renovate-bot Oct 6, 2022
84ffc49
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
renovate-bot Oct 7, 2022
6908ae7
Merge remote-tracking branch 'migration/main' into java-translate-mig…
Shabirmean Nov 17, 2022
8f39f24
chore(jobs): add normalized region tags with product prefix (#7442)
meredithslota Nov 17, 2022
d599ac1
samples: scaffold pom.xml files (#112)
yoshi-automation Mar 17, 2020
9e5917c
chore(deps): update dependency com.google.cloud:libraries-bom to v4.3…
renovate-bot Mar 23, 2020
aeb621e
deps: update dependency com.google.cloud.samples:shared-configuration…
renovate-bot Mar 26, 2020
bce34f1
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Mar 30, 2020
8abf025
chore(deps): update dependency com.google.cloud:libraries-bom to v4.4…
renovate-bot Apr 1, 2020
876165c
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Apr 6, 2020
72b655d
chore(deps): update dependency com.google.cloud:libraries-bom to v4.4…
renovate-bot Apr 6, 2020
d67ea1a
chore(deps): update dependency com.google.cloud:libraries-bom to v5 (…
renovate-bot Apr 14, 2020
81a34d0
chore(deps): update dependency com.google.cloud:libraries-bom to v5.1…
renovate-bot Apr 14, 2020
563889e
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Apr 16, 2020
d0081ea
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Apr 17, 2020
f96c76e
chore(deps): update dependency com.google.cloud:libraries-bom to v5.2…
renovate-bot Apr 23, 2020
9936ceb
chore(deps): update dependency com.google.cloud:libraries-bom to v5.3…
renovate-bot Apr 28, 2020
e548849
chore(deps): update dependency com.google.cloud:libraries-bom to v5.4…
renovate-bot May 21, 2020
c78c694
chore(deps): update dependency com.google.cloud:libraries-bom to v5.5…
renovate-bot May 29, 2020
e81446a
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Jun 10, 2020
6d2d56f
chore(deps): update dependency com.google.cloud:libraries-bom to v5.7…
renovate-bot Jun 10, 2020
206f07c
chore(deps): update dependency com.google.cloud:libraries-bom to v6 (…
renovate-bot Jun 16, 2020
7d8ad5c
chore(deps): update dependency com.google.cloud:libraries-bom to v7 (…
renovate-bot Jun 17, 2020
5ffb581
chore(deps): update dependency com.google.cloud:libraries-bom to v7.0…
renovate-bot Jun 22, 2020
9681465
chore(deps): update dependency com.google.cloud:libraries-bom to v8 (…
renovate-bot Jun 26, 2020
ee70116
chore(deps): update dependency com.google.cloud:libraries-bom to v8.1…
renovate-bot Jul 16, 2020
c77446c
chore(deps): update dependency com.google.cloud:libraries-bom to v9 (…
renovate-bot Aug 14, 2020
ecc5904
samples: Add Translate API quickstart sample.
jmdobry Oct 6, 2016
d312bee
samples: Add Storage quickstart sample.
jmdobry Oct 7, 2016
aa0066a
samples: Add quickstarts to root module.
tswast Oct 25, 2016
fbc23d4
samples: Add system tests to Translate sample.
tswast Oct 26, 2016
407d850
samples: Translate API no longer requires an API key. (#425)
jmdobry Nov 30, 2016
3df6b4a
samples: deprecated methods -> undeprecated versions. (#428)
jerjou Nov 30, 2016
749cba3
samples: Add NL quickstart sample. Fix some other quickstarts. (#438)
jmdobry Dec 8, 2016
a4b66d5
samples: Updates for storage, translate, unittests, and video. (#994)
kurtisvg Jan 18, 2018
8cfdc9b
samples: translate: add v3 language samples (#1937)
nnegrey Jan 14, 2020
848ded7
samples: translate: add v3 glossary samples (#1936)
nnegrey Jan 14, 2020
1095c31
samples: translate: add v3 translate text samples with glossary and m…
nnegrey Jan 14, 2020
940eca8
samples: translate: add translate text with glossary samples (#1940)
nnegrey Jan 14, 2020
53e9cfd
samples: translate: add v3 samples for translate text with model (#1939)
nnegrey Jan 14, 2020
89d4fcf
samples: translate: bump batch request timeouts (#1951)
nnegrey Jan 15, 2020
5257b2b
samples: translate: add basic translation samples (#1938)
nnegrey Jan 21, 2020
521309c
samples: translate: use unique gcs folders for batch translate tests …
nnegrey Feb 5, 2020
33a28e2
samples: docs: update tests that are failing or not cleaning up resou…
nnegrey Mar 26, 2020
34c8cb2
samples: update shared config (#2443)
averikitsch Mar 27, 2020
64e4335
samples: fix test dependencies
chingor13 Aug 14, 2020
1830a59
chore(deps): update dependency com.google.cloud:libraries-bom to v9.1.0
renovate-bot Aug 17, 2020
63f9a8a
fix: increase batch translate timeout to 300 (#274)
munkhuushmgl Aug 26, 2020
01b1ea4
samples: increased timeout up to 450 secs since batch LRO reaches 5 m…
munkhuushmgl Sep 22, 2020
1172de4
chore(deps): update dependency com.google.cloud:libraries-bom to v10 …
renovate-bot Sep 22, 2020
35c3cea
samples: Translate flaky tests (#297)
munkhuushmgl Oct 9, 2020
e2717a5
chore(deps): update dependency com.google.cloud:libraries-bom to v12 …
renovate-bot Oct 15, 2020
4e54dfc
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Oct 16, 2020
0696e1b
chore(deps): update dependency com.google.cloud:libraries-bom to v12.…
renovate-bot Oct 19, 2020
73318c6
test(deps): update dependency junit:junit to v4.13.1 (#305)
renovate-bot Oct 19, 2020
7662405
chore(deps): update dependency com.google.cloud:libraries-bom to v13 …
renovate-bot Oct 21, 2020
3538d35
test(deps): update dependency com.google.truth:truth to v1.1 (#321)
renovate-bot Oct 22, 2020
311c0ee
chore(deps): update dependency com.google.cloud:libraries-bom to v13.…
renovate-bot Oct 26, 2020
d2406df
chore(deps): update dependency com.google.cloud:libraries-bom to v13.…
renovate-bot Oct 30, 2020
18a35f2
chore(deps): update dependency com.google.cloud:libraries-bom to v13.…
renovate-bot Oct 30, 2020
d58398b
chore(deps): update dependency com.google.cloud:libraries-bom to v16 …
renovate-bot Nov 19, 2020
a780f7a
chore(deps): update dependency com.google.cloud:libraries-bom to v16.…
renovate-bot Dec 15, 2020
6774945
test(deps): update dependency com.google.truth:truth to v1.1.2 (#393)
renovate-bot Jan 25, 2021
18528ed
chore(deps): update dependency com.google.cloud:libraries-bom to v16.…
renovate-bot Jan 25, 2021
58bc95a
chore: removed retry class and used com.google.cloud.testing.Multiple…
munkhuushmgl Jan 28, 2021
680fca5
deps: update dependency com.google.cloud:google-cloud-core to v1.94.1…
renovate-bot Feb 5, 2021
f69b4dc
chore(deps): update dependency com.google.cloud:libraries-bom to v16.…
renovate-bot Feb 9, 2021
a0686de
test(deps): update dependency junit:junit to v4.13.2 (#418)
renovate-bot Feb 16, 2021
30aafe7
chore(deps): update dependency com.google.cloud:libraries-bom to v17 …
renovate-bot Feb 24, 2021
9968f42
refactor(samples): restore stdout to original state after test (#379)
suraj-qlogic Feb 24, 2021
db055c3
chore(deps): update dependency com.google.cloud:libraries-bom to v18 …
renovate-bot Feb 25, 2021
092f4d6
deps: update dependency com.google.cloud:google-cloud-core to v1.94.2…
renovate-bot Mar 2, 2021
8ce7916
chore(deps): update dependency com.google.cloud:libraries-bom to v19 …
renovate-bot Mar 4, 2021
cf6f686
deps: update dependency com.google.cloud:google-cloud-core to v1.94.3…
renovate-bot Mar 4, 2021
f0cf1f5
chore: adding new output for each test so that the following issue wo…
munkhuushmgl Mar 8, 2021
b82f8d0
deps: update dependency com.google.cloud:google-cloud-core to v1.94.4…
renovate-bot Mar 15, 2021
48bac16
chore(deps): update dependency com.google.cloud:libraries-bom to v19.…
renovate-bot Mar 17, 2021
5a6ac0d
chore(deps): update dependency com.google.cloud:libraries-bom to v19.…
renovate-bot Mar 19, 2021
4cd77a0
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Apr 6, 2021
1370731
deps: update dependency com.google.cloud:google-cloud-core to v1.94.7…
renovate-bot Apr 12, 2021
464656c
chore(deps): update dependency com.google.cloud:libraries-bom to v20 …
renovate-bot Apr 12, 2021
290c08f
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Apr 19, 2021
69f7ee4
deps: update dependency com.google.cloud:google-cloud-core to v1.94.8…
renovate-bot Apr 23, 2021
ab1f7d9
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Apr 29, 2021
a64d99e
chore: removed glossary from setup and teardown, Replaced with predef…
munkhuushmgl May 12, 2021
905654a
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot May 13, 2021
329d6fb
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot May 17, 2021
5589af6
chore: migrate to owlbot (#540)
Neenu1995 May 19, 2021
4b5abb4
test(deps): update dependency com.google.truth:truth to v1.1.3 (#548)
renovate-bot May 26, 2021
d76ecde
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot May 26, 2021
0c79097
samples: changed AutoML model ID (#553)
telpirion Jun 3, 2021
da29e1b
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Jun 7, 2021
a728e13
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Jun 7, 2021
379188b
deps: update dependency com.google.cloud:google-cloud-core to v1.95.1…
renovate-bot Jun 9, 2021
752e1ae
deps: update dependency com.google.cloud:google-cloud-core to v1.95.2…
renovate-bot Jun 15, 2021
d76d1e2
chore: fix batch test (#585)
munkhuushmgl Jun 18, 2021
c9fd14e
chore: Fix batch tests (#593)
munkhuushmgl Jun 21, 2021
29693c9
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Jun 23, 2021
df0b9dc
deps: update dependency com.google.cloud:google-cloud-core to v1.95.3…
renovate-bot Jun 25, 2021
ef86108
chore: refactered batch tests (#599)
munkhuushmgl Jun 28, 2021
e6c54d7
deps: update dependency com.google.cloud:google-cloud-core to v1.95.4…
renovate-bot Jul 2, 2021
3cfc9e1
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Jul 9, 2021
44acf68
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Jul 28, 2021
c1a2931
deps: update dependency com.google.cloud:google-cloud-core to v2 (#718)
renovate-bot Aug 10, 2021
6be1f12
deps: update dependency com.google.cloud:google-cloud-core to v2.0.3 …
renovate-bot Aug 11, 2021
eb1ea39
deps: update dependency com.google.cloud:google-cloud-core to v2.0.4 …
renovate-bot Aug 12, 2021
949aa7a
deps: update dependency com.google.cloud:google-cloud-core to v2.0.5 …
renovate-bot Aug 12, 2021
2283d10
chore(deps): update dependency com.google.cloud:libraries-bom to v21 …
renovate-bot Aug 19, 2021
65055aa
deps: update dependency com.google.cloud:google-cloud-core to v2.1.0 …
renovate-bot Aug 24, 2021
df82435
deps: update dependency com.google.cloud:google-cloud-core to v2.1.1 …
renovate-bot Aug 24, 2021
1d95c7d
chore(deps): update dependency com.google.cloud:libraries-bom to v22 …
renovate-bot Aug 27, 2021
16c90a8
deps: update dependency com.google.cloud:google-cloud-core to v2.1.2 …
renovate-bot Aug 31, 2021
3d1de82
fix: extend timeout on batch translation requests (#775)
telpirion Sep 8, 2021
fb1b47c
chore(deps): update dependency com.google.cloud:libraries-bom to v23 …
renovate-bot Sep 13, 2021
05fc933
deps: update dependency com.google.cloud:google-cloud-core to v2.1.3 …
renovate-bot Sep 13, 2021
c8d67ee
deps: update dependency com.google.cloud:google-cloud-core to v2.1.4 …
renovate-bot Sep 16, 2021
29164e4
deps: update dependency com.google.cloud:google-cloud-core to v2.1.5 …
renovate-bot Sep 21, 2021
6acf729
deps: update dependency com.google.cloud:google-cloud-core to v2.1.6 …
renovate-bot Sep 22, 2021
8377c10
deps: update dependency com.google.cloud:google-cloud-core to v2.1.7 …
renovate-bot Sep 28, 2021
d167198
chore(deps): update dependency com.google.cloud:libraries-bom to v23.…
renovate-bot Oct 1, 2021
fd2097d
samples: added new translate document samples (#608)
munkhuushmgl Oct 15, 2021
7827a57
deps: update dependency com.google.cloud:google-cloud-core to v2.1.8 …
renovate-bot Oct 18, 2021
ef19780
deps: update dependency com.google.cloud:google-cloud-core to v2.2.0 …
renovate-bot Oct 19, 2021
06d9e10
samples: Add Cloud Code tags for API Explorer pilot (#840)
abbycar Oct 26, 2021
9496eac
chore(deps): update dependency com.google.cloud:libraries-bom to v24 …
renovate-bot Oct 27, 2021
65c30ce
test: Update batch translate tests to minimize flakiness (#846)
kweinmeister Oct 27, 2021
953e835
deps: update dependency com.google.cloud:google-cloud-core to v2.3.0 …
renovate-bot Nov 15, 2021
f7c0486
deps: update dependency com.google.cloud:google-cloud-core to v2.3.1 …
renovate-bot Nov 17, 2021
1355f40
deps: update dependency com.google.cloud:google-cloud-core to v2.3.2 …
renovate-bot Dec 3, 2021
6fcb931
deps: update dependency com.google.cloud:google-cloud-core to v2.3.3 …
renovate-bot Dec 5, 2021
406b2d4
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Dec 6, 2021
41ee96d
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Dec 8, 2021
aa1c3bf
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Dec 28, 2021
176eec0
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Jan 7, 2022
2f7cf7e
deps: update dependency com.google.cloud:google-cloud-core to v2.3.4 …
renovate-bot Jan 7, 2022
86abd76
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Jan 12, 2022
a6ba6b5
deps: update dependency com.google.cloud:google-cloud-core to v2.3.5 …
renovate-bot Jan 12, 2022
5e73955
test: add retries to create glossary test (#923)
kweinmeister Feb 2, 2022
4134aba
deps: update dependency com.google.cloud:google-cloud-core to v2.4.0 …
renovate-bot Feb 2, 2022
2f53fdb
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Feb 8, 2022
31250a0
deps: update dependency com.google.cloud:google-cloud-core to v2.5.0 …
renovate-bot Feb 9, 2022
f4bba77
deps: update dependency com.google.cloud:google-cloud-core to v2.5.1 …
renovate-bot Feb 10, 2022
ae1a2d9
deps: update dependency com.google.cloud:google-cloud-core to v2.5.3 …
renovate-bot Feb 11, 2022
a90b490
deps: update dependency com.google.cloud:google-cloud-core to v2.5.4 …
renovate-bot Feb 15, 2022
ccad9ac
deps: update dependency com.google.cloud:google-cloud-core to v2.5.5 …
renovate-bot Mar 1, 2022
52d33e0
deps: update dependency com.google.cloud:google-cloud-core to v2.5.6 …
renovate-bot Mar 2, 2022
034a109
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Mar 2, 2022
32a5632
deps: update dependency com.google.cloud:google-cloud-core to v2.5.8 …
renovate-bot Mar 9, 2022
628002e
deps: update dependency com.google.cloud:google-cloud-core to v2.5.9 …
renovate-bot Mar 10, 2022
fa09f89
deps: update dependency com.google.cloud:google-cloud-core to v2.5.10…
renovate-bot Mar 14, 2022
bc2fcc5
chore(deps): update dependency com.google.cloud:libraries-bom to v25 …
renovate-bot Mar 14, 2022
22ea511
deps: update dependency com.google.cloud:google-cloud-core to v2.5.11…
renovate-bot Mar 30, 2022
da05815
chore(deps): update dependency com.google.cloud:libraries-bom to v25.…
renovate-bot Apr 1, 2022
a73af2f
deps: update dependency com.google.cloud:google-cloud-core to v2.6.1 …
renovate-bot Apr 15, 2022
185b118
chore(deps): update dependency com.google.cloud:libraries-bom to v25.…
renovate-bot Apr 27, 2022
461717f
chore(deps): update dependency com.google.cloud:libraries-bom to v25.…
renovate-bot May 16, 2022
192ecb6
deps: update dependency com.google.cloud:google-cloud-core to v2.7.1 …
renovate-bot May 26, 2022
9d01c24
chore(deps): update dependency com.google.cloud:libraries-bom to v25.…
renovate-bot Jun 6, 2022
c4b7d18
deps: update dependency com.google.cloud:google-cloud-core to v2.8.0 …
renovate-bot Jun 22, 2022
ab66e13
deps: update dependency com.google.cloud:google-cloud-core to v2.8.1 …
renovate-bot Jun 29, 2022
f539080
chore: update api_shortname in pom.xml (#1026)
alicejli Jul 7, 2022
8489378
chore(deps): update dependency com.google.cloud:libraries-bom to v26 …
renovate-bot Jul 11, 2022
bf8acc3
deps: update dependency com.google.cloud:google-cloud-core to v2.8.3 …
renovate-bot Jul 27, 2022
40e793d
deps: update dependency com.google.cloud:google-cloud-core to v2.8.5 …
renovate-bot Jul 29, 2022
08c6971
deps: update dependency com.google.cloud:google-cloud-core to v2.8.6 …
renovate-bot Aug 2, 2022
4b517a9
deps: update dependency com.google.cloud:google-cloud-core to v2.8.7 …
renovate-bot Aug 3, 2022
97e0436
deps: update dependency com.google.cloud:google-cloud-core to v2.8.8 …
renovate-bot Aug 4, 2022
cecf16c
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
renovate-bot Aug 16, 2022
872a337
deps: update dependency com.google.cloud:google-cloud-core to v2.8.9 …
renovate-bot Aug 18, 2022
6bf5362
deps: update dependency com.google.cloud:google-cloud-core to v2.8.10…
renovate-bot Aug 25, 2022
cd138ab
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
renovate-bot Aug 31, 2022
ecdb960
deps: update dependency com.google.cloud:google-cloud-core to v2.8.11…
renovate-bot Sep 9, 2022
56aeb61
deps: update dependency com.google.cloud:google-cloud-core to v2.8.12…
renovate-bot Sep 20, 2022
4be7371
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
renovate-bot Sep 20, 2022
3bc2a8c
deps: update dependency com.google.cloud:google-cloud-core to v2.8.13…
renovate-bot Sep 20, 2022
09aa621
deps: update dependency com.google.cloud:google-cloud-core to v2.8.14…
renovate-bot Sep 21, 2022
05ac1c1
deps: update dependency com.google.cloud:google-cloud-core to v2.8.15…
renovate-bot Sep 26, 2022
4e6e220
deps: update dependency com.google.cloud:google-cloud-core to v2.8.18…
renovate-bot Sep 30, 2022
66ccbca
deps: update dependency com.google.cloud:google-cloud-core to v2.8.19…
renovate-bot Oct 2, 2022
fe75d76
deps: update dependency com.google.cloud:google-cloud-core to v2.8.20…
renovate-bot Oct 6, 2022
0296eaa
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
renovate-bot Oct 7, 2022
822fb4b
chore: post migration updates - groupId, artifact url, repo references
Shabirmean Nov 18, 2022
dde4080
Merge branch 'java-translate-migration' of github.com:GoogleCloudPlat…
Shabirmean Nov 18, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public final class GeneralSearchSample {
private static CloudTalentSolution talentSolutionClient =
JobServiceQuickstart.getTalentSolutionClient();

// [START job_discovery_basic_keyword_search]
// [START basic_keyword_search]

/** Simple search jobs with keyword. */
Expand Down Expand Up @@ -95,7 +96,9 @@ public static void basicSearcJobs(String companyName, String query)
System.out.printf("Simple search jobs results: %s\n", searchJobsResponse);
}
// [END basic_keyword_search]

// [END job_discovery_basic_keyword_search]

// [START job_discovery_category_filter_search]
// [START category_filter]

/** Search on category filter. */
Expand Down Expand Up @@ -133,7 +136,9 @@ public static void categoryFilterSearch(String companyName, List<String> categor
System.out.printf("Category search jobs results: %s\n", searchJobsResponse);
}
// [END category_filter]
// [END job_discovery_category_filter_search]

// [START job_discovery_employment_types_filter_search]
// [START employment_types_filter]

/** Search on employment types. */
Expand Down Expand Up @@ -171,7 +176,9 @@ public static void employmentTypesSearch(String companyName, List<String> employ
System.out.printf("Employee type search jobs results: %s\n", searchJobsResponse);
}
// [END employment_types_filter]
// [END job_discovery_employment_types_filter_search]

// [START job_discovery_date_range_filter_search]
// [START date_range_filter]

/**
Expand Down Expand Up @@ -218,7 +225,9 @@ public static void dateRangeSearch(String companyName, String startTime, String
System.out.printf("Search results on jobs with a date range: %s\n", searchJobsResponse);
}
// [END date_range_filter]
// [END job_discovery_date_range_filter_search]

// [START job_discovery_language_code_filter_search]
// [START language_code_filter]

/** Search on language codes. */
Expand Down Expand Up @@ -256,7 +265,9 @@ public static void languageCodeSearch(String companyName, List<String> languageC
System.out.printf("Search results on jobs with a language code: %s\n", searchJobsResponse);
}
// [END language_code_filter]
// [END job_discovery_language_code_filter_search]

// [START job_discovery_company_display_name_search]
// [START company_display_name_filter]

/** Search on company display name. */
Expand Down Expand Up @@ -294,7 +305,9 @@ public static void companyDisplayNameSearch(String companyName, List<String> com
System.out.printf("Search results by display name of company: %s\n", searchJobsResponse);
}
// [END company_display_name_filter]

// [END job_discovery_company_display_name_search]

// [START job_discovery_compensation_search]
// [START compensation_filter]

/** Search on compensation. */
Expand Down Expand Up @@ -346,6 +359,7 @@ public static void compensationSearch(String companyName)
System.out.printf("Search results by compensation: %s\n", searchJobsResponse);
}
// [END compensation_filter]
// [END job_discovery_compensation_search]

public static void main(String... args) throws Exception {
Company companyToBeCreated = BasicCompanySample.generateCompany().setDisplayName("Google");
Expand Down
3 changes: 0 additions & 3 deletions translate/README.md

This file was deleted.

72 changes: 72 additions & 0 deletions translate/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?xml version='1.0' encoding='UTF-8'?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.translate</groupId>
<artifactId>translate-snippets</artifactId>
<packaging>jar</packaging>
<name>Google Cloud Translate Snippets</name>
<url>https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/translate</url>

<!--
The parent pom defines common style checks and testing strategies for our samples.
Removing or replacing it should not affect the execution of the samples in any way.
-->
<parent>
<groupId>com.google.cloud.samples</groupId>
<artifactId>shared-configuration</artifactId>
<version>1.2.0</version>
</parent>

<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>


<!-- [START translate_install_with_bom] -->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.1.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-translate</artifactId>
</dependency>
<!-- [START_EXCLUDE] -->
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.truth</groupId>
<artifactId>truth</artifactId>
<version>1.1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-core</artifactId>
<version>2.8.20</version>
<scope>test</scope>
<classifier>tests</classifier>
</dependency>
<!-- [END_EXCLUDE] -->
</dependencies>
<!-- [END translate_install_with_bom] -->
</project>
Binary file added translate/resources/fake_invoice.pdf
Binary file not shown.
72 changes: 72 additions & 0 deletions translate/snippets/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?xml version='1.0' encoding='UTF-8'?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.cloud</groupId>
<artifactId>translate-snippets</artifactId>
<packaging>jar</packaging>
<name>Google Cloud Translate Snippets</name>
<url>https://github.com/googleapis/java-translate</url>

<!--
The parent pom defines common style checks and testing strategies for our samples.
Removing or replacing it should not affect the execution of the samples in any way.
-->
<parent>
<groupId>com.google.cloud.samples</groupId>
<artifactId>shared-configuration</artifactId>
<version>1.2.0</version>
</parent>

<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>


<!-- [START translate_install_with_bom] -->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.1.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-translate</artifactId>
</dependency>
<!-- [START_EXCLUDE] -->
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.truth</groupId>
<artifactId>truth</artifactId>
<version>1.1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-core</artifactId>
<version>2.8.20</version>
<scope>test</scope>
<classifier>tests</classifier>
</dependency>
<!-- [END_EXCLUDE] -->
</dependencies>
<!-- [END translate_install_with_bom] -->
</project>
Binary file added translate/snippets/resources/fake_invoice.pdf
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.example.translate;

// [START translate_v3_batch_translate_text]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.translate.v3.BatchTranslateMetadata;
import com.google.cloud.translate.v3.BatchTranslateResponse;
import com.google.cloud.translate.v3.BatchTranslateTextRequest;
import com.google.cloud.translate.v3.GcsDestination;
import com.google.cloud.translate.v3.GcsSource;
import com.google.cloud.translate.v3.InputConfig;
import com.google.cloud.translate.v3.LocationName;
import com.google.cloud.translate.v3.OutputConfig;
import com.google.cloud.translate.v3.TranslationServiceClient;
import java.io.IOException;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ThreadLocalRandom;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;

public class BatchTranslateText {

public static void batchTranslateText()
throws InterruptedException, ExecutionException, IOException, TimeoutException {
// TODO(developer): Replace these variables before running the sample.
String projectId = "YOUR-PROJECT-ID";
// Supported Languages: https://cloud.google.com/translate/docs/languages
String sourceLanguage = "your-source-language";
String targetLanguage = "your-target-language";
String inputUri = "gs://your-gcs-bucket/path/to/input/file.txt";
String outputUri = "gs://your-gcs-bucket/path/to/results/";
batchTranslateText(projectId, sourceLanguage, targetLanguage, inputUri, outputUri);
}

// Batch translate text
public static void batchTranslateText(
String projectId,
String sourceLanguage,
String targetLanguage,
String inputUri,
String outputUri)
throws IOException, ExecutionException, InterruptedException, TimeoutException {

// Initialize client that will be used to send requests. This client only needs to be created
// once, and can be reused for multiple requests. After completing all of your requests, call
// the "close" method on the client to safely clean up any remaining background resources.
try (TranslationServiceClient client = TranslationServiceClient.create()) {
// Supported Locations: `us-central1`
LocationName parent = LocationName.of(projectId, "us-central1");

GcsSource gcsSource = GcsSource.newBuilder().setInputUri(inputUri).build();
// Supported Mime Types: https://cloud.google.com/translate/docs/supported-formats
InputConfig inputConfig =
InputConfig.newBuilder().setGcsSource(gcsSource).setMimeType("text/plain").build();

GcsDestination gcsDestination =
GcsDestination.newBuilder().setOutputUriPrefix(outputUri).build();
OutputConfig outputConfig =
OutputConfig.newBuilder().setGcsDestination(gcsDestination).build();

BatchTranslateTextRequest request =
BatchTranslateTextRequest.newBuilder()
.setParent(parent.toString())
.setSourceLanguageCode(sourceLanguage)
.addTargetLanguageCodes(targetLanguage)
.addInputConfigs(inputConfig)
.setOutputConfig(outputConfig)
.build();

OperationFuture<BatchTranslateResponse, BatchTranslateMetadata> future =
client.batchTranslateTextAsync(request);

System.out.println("Waiting for operation to complete...");

// random number between 300 - 450 (maximum allowed seconds)
long randomNumber = ThreadLocalRandom.current().nextInt(450, 600);
BatchTranslateResponse response = future.get(randomNumber, TimeUnit.SECONDS);

System.out.printf("Total Characters: %s\n", response.getTotalCharacters());
System.out.printf("Translated Characters: %s\n", response.getTranslatedCharacters());
}
}
}
// [END translate_v3_batch_translate_text]
Loading