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

migrate code from googleapis/java-video-intelligence #7422

Closed
wants to merge 195 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
195 commits
Select commit Hold shift + click to select a range
64500bc
samples: scaffold pom.xml files (#100)
yoshi-automation Mar 17, 2020
efa4c49
chore(deps): update dependency com.google.cloud:libraries-bom to v4.3…
renovate-bot Mar 23, 2020
897f84f
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Mar 26, 2020
55b2fc3
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Mar 30, 2020
d46667a
chore(deps): update dependency com.google.cloud:libraries-bom to v4.4…
renovate-bot Apr 1, 2020
97ccbf0
chore(deps): update dependency com.google.cloud:libraries-bom to v4.4…
renovate-bot Apr 6, 2020
791053e
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Apr 6, 2020
801a8cc
chore(deps): update dependency com.google.cloud:libraries-bom to v5 (…
renovate-bot Apr 14, 2020
bb03f21
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Apr 16, 2020
665ca98
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Apr 17, 2020
5f454cd
chore(deps): update dependency com.google.cloud:libraries-bom to v5.2…
renovate-bot Apr 23, 2020
b85e6c1
chore(deps): update dependency com.google.cloud:libraries-bom to v5.3…
renovate-bot Apr 28, 2020
1bd89d6
chore(deps): update dependency com.google.cloud:libraries-bom to v5.4…
renovate-bot May 19, 2020
53b0058
chore(deps): update dependency com.google.cloud:libraries-bom to v5.6…
renovate-bot Jun 9, 2020
346991a
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Jun 10, 2020
a53782b
chore(deps): update dependency com.google.cloud:libraries-bom to v5.7…
renovate-bot Jun 10, 2020
c4025e9
chore(deps): update dependency com.google.cloud:libraries-bom to v6 (…
renovate-bot Jun 16, 2020
f5cb21f
chore(deps): update dependency com.google.cloud:libraries-bom to v7 (…
renovate-bot Jun 17, 2020
ac19128
chore(deps): update dependency com.google.cloud:libraries-bom to v7.0…
renovate-bot Jun 22, 2020
f9ff6e8
chore(deps): update dependency com.google.cloud:libraries-bom to v8 (…
renovate-bot Jun 26, 2020
254882f
chore(deps): update dependency com.google.cloud:libraries-bom to v8.1…
renovate-bot Jul 16, 2020
e073e9b
samples: Add video v1p1beta samples for face detection and video tran…
nnegrey Mar 27, 2018
eef6e52
samples: Update samples due to changes (#1083)
nnegrey Apr 6, 2018
c8ee654
samples: Add automatic punctuation to video speech transcription (#1165)
nnegrey Jul 30, 2018
774053f
samples: Video Intelligence region tag update (#1183)
alixhami Aug 16, 2018
93ee3c7
samples: Added beta samples for video object tracking/text detection …
anguillanneuf Oct 24, 2018
32a08ee
samples: Add beta samples for Video Streaming (#1353)
nnegrey Mar 22, 2019
b3debb4
samples: Flaky test fix (#1490)
nnegrey Jun 25, 2019
7c861ce
samples: Add new beta samples for Video Intelligence Streaming with a…
nnegrey Aug 28, 2019
79738ef
samples: feat: face and person detection samples (#2066)
munkhuushmgl Feb 13, 2020
40b41c3
samples: video: move samples out of branch (#2300)
nnegrey Mar 3, 2020
d442bfd
samples: video: fix flaky tests (#2376)
nnegrey Mar 11, 2020
4e4b0ab
samples: update shared config (#2443)
averikitsch Mar 27, 2020
81eae9d
samples: video: update .mp4 file used in test (#2550)
nnegrey Apr 1, 2020
c7c22d7
samples: samples: fix test (#2872)
stephaniewang526 May 12, 2020
3b260a0
samples: samples: fix flaky video stream and text Detection tests (#3…
munkhuushmgl Jul 31, 2020
268a3e0
chore(deps): update dependency com.google.cloud:libraries-bom to v9 (…
renovate-bot Aug 24, 2020
3375798
chore(deps): update dependency com.google.cloud:libraries-bom to v10
renovate-bot Sep 10, 2020
89a61d2
chore(deps): update dependency com.google.cloud:libraries-bom to v11 …
renovate-bot Sep 24, 2020
6f59a0a
chore(deps): update dependency com.google.cloud:libraries-bom to v11.…
renovate-bot Oct 1, 2020
76279de
chore(deps): update dependency com.google.cloud:libraries-bom to v12 …
renovate-bot Oct 6, 2020
1833b31
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Oct 9, 2020
94fae5e
test(deps): update dependency junit:junit to v4.13.1
renovate-bot Oct 12, 2020
4e8d3b9
chore(deps): update dependency com.google.cloud:libraries-bom to v12.…
renovate-bot Oct 15, 2020
6e9d03f
chore(deps): update dependency com.google.cloud:libraries-bom to v13 …
renovate-bot Oct 20, 2020
7dc8566
chore(deps): update dependency com.google.cloud:libraries-bom to v13.…
renovate-bot Oct 21, 2020
dbe2bdc
samples: moving beta samples from java-docs and refactored GA samples…
munkhuushmgl Oct 21, 2020
edc5313
test(deps): update dependency com.google.truth:truth to v1.1 (#292)
renovate-bot Oct 22, 2020
58cafe0
chore(deps): update dependency com.google.cloud:libraries-bom to v13.…
renovate-bot Oct 23, 2020
e694b5c
chore(deps): update dependency com.google.cloud:libraries-bom to v13.…
renovate-bot Oct 27, 2020
9b2044f
chore(deps): update dependency com.google.cloud:libraries-bom to v13.…
renovate-bot Oct 30, 2020
06c8deb
chore(deps): update dependency com.google.cloud:libraries-bom to v15 …
renovate-bot Nov 5, 2020
888166d
chore(deps): update dependency com.google.cloud:libraries-bom to v16 …
renovate-bot Nov 19, 2020
9ae9a96
samples: update person detection to GA (#344)
telpirion Dec 8, 2020
9d9c5d7
fix: incorrect and misleading attribute description for person detect…
morgandu Dec 10, 2020
1a73332
chore(deps): update dependency com.google.cloud:libraries-bom to v16.…
renovate-bot Dec 15, 2020
a4eb81e
chore(deps): update dependency com.google.cloud:libraries-bom to v16.…
renovate-bot Jan 7, 2021
655ffb7
test(deps): update dependency com.google.truth:truth to v1.1.2 (#380)
renovate-bot Jan 25, 2021
c6ab32a
chore(deps): update dependency com.google.cloud:libraries-bom to v16.…
renovate-bot Feb 10, 2021
eb80dab
docs: generate sample code in the Java microgenerator (#395)
yoshi-automation Feb 16, 2021
88e60b0
test(deps): update dependency junit:junit to v4.13.2 (#398)
renovate-bot Feb 16, 2021
e72259f
chore(deps): update dependency com.google.cloud:libraries-bom to v17 …
renovate-bot Feb 24, 2021
80bae8b
chore: removed wrong comment and updated according to python samples …
munkhuushmgl Feb 24, 2021
63ac027
samples: Initial commit of sample
gguuss May 15, 2017
149cb7c
samples: Update to published version of client library.
gguuss May 18, 2017
4ffb905
samples: Adds quickstart and test for Video
gguuss May 25, 2017
f3c73d9
samples: updating to latest google-cloud-* dependencies (#723)
jabubake Jun 19, 2017
7a71c6d
samples: Upgrades client to 0.20.1 and addresses changes to long runn…
gguuss Jul 12, 2017
de14f66
samples: updating video intelligence sample to 0.21.1-alpha (#812)
jabubake Aug 18, 2017
552cd56
samples: Video Intelligence samples (#849)
jabubake Sep 20, 2017
8aa0ef3
samples: Change request type on certain inspection type (#857)
gguuss Sep 20, 2017
f4e357d
samples: Auto-update dependencies. (#912)
dpebot Nov 15, 2017
4ecbe57
samples: Update samples to v1 (#935)
nnegrey Nov 30, 2017
75e79b2
samples: Updates for storage, translate, unittests, and video. (#994)
kurtisvg Jan 18, 2018
08ac2fb
samples: Add video v1p1beta samples for face detection and video tran…
nnegrey Mar 27, 2018
9a5d861
samples: Correct video detect region tags. (#1107)
kurtisvg May 21, 2018
ab7d443
samples: Video Intelligence region tag update (#1183)
alixhami Aug 16, 2018
fd74bbe
samples: Fix broken sample and add test for sample (#1216)
nnegrey Sep 20, 2018
43eb235
samples: feat: video speech transcription (#1264)
anguillanneuf Nov 17, 2018
a806f80
samples: Video Intelligence : Object tracking and Text detection (OCR…
nirupa-kumar Mar 5, 2019
1c0951b
samples: Flaky test fix (#1490)
nnegrey Jun 25, 2019
af85752
samples: Adding GA samples for Logo detection (#2393)
munkhuushmgl Mar 24, 2020
ecf36e2
samples: update shared config (#2443)
averikitsch Mar 27, 2020
36587af
samples: video: update .mp4 file used in test (#2550)
nnegrey Apr 1, 2020
90bf56a
samples: Change video test to not depend on specific inference
gguuss May 26, 2020
644d436
chore(deps): update dependency com.google.cloud:libraries-bom to v18 …
renovate-bot Feb 25, 2021
88e3996
chore(deps): update dependency com.google.cloud:libraries-bom to v18.…
renovate-bot Mar 3, 2021
5975b29
chore(deps): update dependency com.google.cloud:libraries-bom to v19 …
renovate-bot Mar 4, 2021
d779f64
chore(deps): update dependency com.google.cloud:libraries-bom to v19.…
renovate-bot Mar 17, 2021
bd8b41d
chore(deps): update dependency com.google.cloud:libraries-bom to v19.…
renovate-bot Mar 29, 2021
cadbf52
samples: updates face and people to v1 (#449)
telpirion Apr 5, 2021
35e4ee5
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Apr 6, 2021
ed73474
chore(deps): update dependency com.google.cloud:libraries-bom to v20 …
renovate-bot Apr 12, 2021
491e5e7
chore: removed try/catch & added exceptions at method signature (#456)
munkhuushmgl Apr 12, 2021
490a3c6
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Apr 19, 2021
bb52e8a
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Apr 29, 2021
bc1427e
chore: removed all catch clauses which were causing error stack trace…
munkhuushmgl Apr 29, 2021
524a742
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot May 13, 2021
7f98e64
deps: update dependency com.google.cloud:google-cloud-core to v1.94.8…
renovate-bot May 13, 2021
156c071
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot May 17, 2021
83112bd
chore: increase timeouts for tracking objects samples (#531)
munkhuushmgl May 20, 2021
a38833b
samples: add streaming_automl_object_tracking sample (#502)
morgandu May 24, 2021
0c35b91
test(deps): update dependency com.google.truth:truth to v1.1.3 (#537)
renovate-bot May 26, 2021
0b367f9
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot May 31, 2021
9d0055f
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Jun 7, 2021
1ce6201
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Jun 7, 2021
715bdbb
deps: update dependency com.google.cloud:google-cloud-core to v1.95.1…
renovate-bot Jun 9, 2021
abe91b9
deps: update dependency com.google.cloud:google-cloud-core to v1.95.2…
renovate-bot Jun 15, 2021
14ef9c0
chore: added error message for capturing error (#561)
munkhuushmgl Jun 16, 2021
1119af8
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Jun 23, 2021
07035aa
deps: update dependency com.google.cloud:google-cloud-core to v1.95.4…
renovate-bot Jul 2, 2021
caa2363
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Jul 9, 2021
6f93c00
chore(deps): update dependency com.google.cloud:libraries-bom to v20.…
renovate-bot Jul 26, 2021
9d9a89c
deps: update dependency com.google.cloud:google-cloud-core to v2 (#606)
renovate-bot Aug 10, 2021
3844188
deps: update dependency com.google.cloud:google-cloud-core to v2.0.3 …
renovate-bot Aug 11, 2021
0c8de4e
deps: update dependency com.google.cloud:google-cloud-core to v2.0.5 …
renovate-bot Aug 12, 2021
472751d
chore(deps): update dependency com.google.cloud:libraries-bom to v21 …
renovate-bot Aug 17, 2021
a627c05
deps: update dependency com.google.cloud:google-cloud-core to v2.1.0 …
renovate-bot Aug 24, 2021
d0aa78f
chore(deps): update dependency com.google.cloud:libraries-bom to v22 …
renovate-bot Aug 27, 2021
e85c705
deps: update dependency com.google.cloud:google-cloud-core to v2.1.2 …
renovate-bot Aug 31, 2021
229be24
chore: migrate to owlbot (#664)
Neenu1995 Sep 9, 2021
c197b28
chore(deps): update dependency com.google.cloud:libraries-bom to v23 …
renovate-bot Sep 13, 2021
d778c08
Feat: Add code sample for video streaming action recognition. (#667)
bingatgoogle Sep 14, 2021
191993d
deps: update dependency com.google.cloud:google-cloud-core to v2.1.3 …
renovate-bot Sep 14, 2021
cf47b9c
deps: update dependency com.google.cloud:google-cloud-core to v2.1.4 …
renovate-bot Sep 16, 2021
d64834e
deps: update dependency com.google.cloud:google-cloud-core to v2.1.6 …
renovate-bot Sep 23, 2021
5cdb87e
deps: update dependency com.google.cloud:google-cloud-core to v2.1.7 …
renovate-bot Sep 24, 2021
e4c49f5
chore(deps): update dependency com.google.cloud:libraries-bom to v23.…
renovate-bot Oct 1, 2021
ad5c69c
deps: update dependency com.google.cloud:google-cloud-core to v2.1.8 …
renovate-bot Oct 18, 2021
32848ea
deps: update dependency com.google.cloud:google-cloud-core to v2.2.0 …
renovate-bot Oct 19, 2021
67d3c52
chore(deps): update dependency com.google.cloud:libraries-bom to v24 …
renovate-bot Oct 27, 2021
5218932
test: Added retries to DetectLogoGcsTest (#730)
kweinmeister Nov 3, 2021
ccd8f08
deps: update dependency com.google.cloud:google-cloud-core to v2.3.0 …
renovate-bot Nov 15, 2021
b9cb340
deps: update dependency com.google.cloud:google-cloud-core to v2.3.1 …
renovate-bot Nov 17, 2021
6785f23
deps: update dependency com.google.cloud:google-cloud-core to v2.3.2 …
renovate-bot Dec 3, 2021
1d89e33
deps: update dependency com.google.cloud:google-cloud-core to v2.3.3 …
renovate-bot Dec 5, 2021
db2929e
chore(deps): update dependency com.google.cloud.samples:shared-config…
renovate-bot Dec 6, 2021
1333add
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Dec 8, 2021
bb9f505
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Dec 28, 2021
a008760
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Jan 7, 2022
61cfe26
deps: update dependency com.google.cloud:google-cloud-core to v2.3.4 …
renovate-bot Jan 7, 2022
de46f20
deps: update dependency com.google.cloud:google-cloud-core to v2.3.5 …
renovate-bot Jan 7, 2022
3881962
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Jan 18, 2022
b638c8c
docs: Added retry to DetectIT sample test (#785)
kweinmeister Jan 25, 2022
d3ed19f
deps: update dependency com.google.cloud:google-cloud-core to v2.4.0 …
renovate-bot Feb 2, 2022
4e4a2d2
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Feb 8, 2022
32b1798
deps: update dependency com.google.cloud:google-cloud-core to v2.5.0 …
renovate-bot Feb 9, 2022
b9a7136
test: Add retries to streaming shot change detection test (#809)
kweinmeister Feb 9, 2022
a7871e3
deps: update dependency com.google.cloud:google-cloud-core to v2.5.1 …
renovate-bot Feb 10, 2022
512b7cb
deps: update dependency com.google.cloud:google-cloud-core to v2.5.3 …
renovate-bot Feb 11, 2022
f47b3d5
deps: update dependency com.google.cloud:google-cloud-core to v2.5.4 …
renovate-bot Feb 15, 2022
2019943
deps: update dependency com.google.cloud:google-cloud-core to v2.5.5 …
renovate-bot Mar 1, 2022
d25002c
chore(deps): update dependency com.google.cloud:libraries-bom to v24.…
renovate-bot Mar 3, 2022
744106d
deps: update dependency com.google.cloud:google-cloud-core to v2.5.6 …
renovate-bot Mar 3, 2022
253ffb0
deps: update dependency com.google.cloud:google-cloud-core to v2.5.8 …
renovate-bot Mar 9, 2022
2037956
deps: update dependency com.google.cloud:google-cloud-core to v2.5.9 …
renovate-bot Mar 10, 2022
e17a806
chore(deps): update dependency com.google.cloud:libraries-bom to v25 …
renovate-bot Mar 14, 2022
ad88b3b
deps: update dependency com.google.cloud:google-cloud-core to v2.5.10…
renovate-bot Mar 14, 2022
7569c98
deps: update dependency com.google.cloud:google-cloud-core to v2.5.11…
renovate-bot Mar 30, 2022
137a755
chore(deps): update dependency com.google.cloud:libraries-bom to v25.…
renovate-bot Apr 1, 2022
cf8ca49
deps: update dependency com.google.cloud:google-cloud-core to v2.6.1 …
renovate-bot Apr 15, 2022
c47cfde
chore(deps): update dependency com.google.cloud:libraries-bom to v25.…
renovate-bot Apr 27, 2022
5b77573
chore(deps): update dependency com.google.cloud:libraries-bom to v25.…
renovate-bot May 16, 2022
de06617
deps: update dependency com.google.cloud:google-cloud-core to v2.7.1 …
renovate-bot May 19, 2022
540bf03
chore(deps): update dependency com.google.cloud:libraries-bom to v25.…
renovate-bot Jun 6, 2022
c9ba84d
deps: update dependency com.google.cloud:google-cloud-core to v2.8.0 …
renovate-bot Jun 22, 2022
912d332
feat: Enable REST transport for most of Java and Go clients (#920)
gcf-owl-bot[bot] Jun 23, 2022
cf60a58
fix: update gapic-generator-java with mock service generation fixes (…
gcf-owl-bot[bot] Jun 28, 2022
b39552e
deps: update dependency com.google.cloud:google-cloud-core to v2.8.1 …
renovate-bot Jul 1, 2022
ebc5e0a
chore(deps): update dependency com.google.cloud:libraries-bom to v26 …
renovate-bot Jul 11, 2022
2f8e80b
deps: update dependency com.google.cloud:google-cloud-core to v2.8.3 …
renovate-bot Jul 27, 2022
c7a244e
deps: update dependency com.google.cloud:google-cloud-core to v2.8.4 …
renovate-bot Jul 29, 2022
f0809d3
deps: update dependency com.google.cloud:google-cloud-core to v2.8.5 …
renovate-bot Jul 30, 2022
34cfc71
deps: update dependency com.google.cloud:google-cloud-core to v2.8.6 …
renovate-bot Aug 2, 2022
a396cba
deps: update dependency com.google.cloud:google-cloud-core to v2.8.7 …
renovate-bot Aug 3, 2022
fd1d4f5
deps: update dependency com.google.cloud:google-cloud-core to v2.8.8 …
renovate-bot Aug 4, 2022
bdca8aa
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
renovate-bot Aug 16, 2022
3c252ae
deps: update dependency com.google.cloud:google-cloud-core to v2.8.9 …
renovate-bot Aug 17, 2022
8774747
deps: update dependency com.google.cloud:google-cloud-core to v2.8.10…
renovate-bot Aug 25, 2022
d7c357b
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
renovate-bot Aug 31, 2022
760ba1f
deps: update dependency com.google.cloud:google-cloud-core to v2.8.11…
renovate-bot Sep 9, 2022
d88f80e
chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, gener…
gcf-owl-bot[bot] Sep 9, 2022
5cbfc7c
deps: update dependency com.google.cloud:google-cloud-core to v2.8.12…
renovate-bot Sep 20, 2022
db1fbbd
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
renovate-bot Sep 20, 2022
75b2472
deps: update dependency com.google.cloud:google-cloud-core to v2.8.13…
renovate-bot Sep 21, 2022
ee24c3d
deps: update dependency com.google.cloud:google-cloud-core to v2.8.14…
renovate-bot Sep 22, 2022
76c73ff
deps: update dependency com.google.cloud:google-cloud-core to v2.8.15…
renovate-bot Sep 26, 2022
7d2da70
deps: update dependency com.google.cloud:google-cloud-core to v2.8.16…
renovate-bot Sep 27, 2022
c2d8003
deps: update dependency com.google.cloud:google-cloud-core to v2.8.17…
renovate-bot Sep 29, 2022
3c692bd
deps: update dependency com.google.cloud:google-cloud-core to v2.8.18…
renovate-bot Sep 30, 2022
221b2b6
deps: update dependency com.google.cloud:google-cloud-core to v2.8.19…
renovate-bot Oct 2, 2022
3770888
deps: update dependency com.google.cloud:google-cloud-core to v2.8.20…
renovate-bot Oct 6, 2022
c1ad1b1
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
renovate-bot Oct 7, 2022
d0f1c74
deps: update dependency com.google.cloud:google-cloud-core to v2.8.22…
renovate-bot Nov 8, 2022
5b08693
Merge remote-tracking branch 'migration/main' into java-video-intelli…
anguillanneuf Nov 15, 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
@@ -0,0 +1,50 @@
/*
* Copyright 2022 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
*
* https://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.google.cloud.videointelligence.v1.stub.samples;

// [START videointelligence_v1_generated_videointelligenceservicestubsettings_annotatevideo_sync]
import com.google.cloud.videointelligence.v1.stub.VideoIntelligenceServiceStubSettings;
import java.time.Duration;

public class SyncAnnotateVideo {

public static void main(String[] args) throws Exception {
syncAnnotateVideo();
}

public static void syncAnnotateVideo() throws Exception {
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
VideoIntelligenceServiceStubSettings.Builder videoIntelligenceServiceSettingsBuilder =
VideoIntelligenceServiceStubSettings.newBuilder();
videoIntelligenceServiceSettingsBuilder
.annotateVideoSettings()
.setRetrySettings(
videoIntelligenceServiceSettingsBuilder
.annotateVideoSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
VideoIntelligenceServiceStubSettings videoIntelligenceServiceSettings =
videoIntelligenceServiceSettingsBuilder.build();
}
}
// [END videointelligence_v1_generated_videointelligenceservicestubsettings_annotatevideo_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* Copyright 2022 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
*
* https://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.google.cloud.videointelligence.v1.samples;

// [START videointelligence_v1_generated_videointelligenceserviceclient_annotatevideo_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.videointelligence.v1.AnnotateVideoRequest;
import com.google.cloud.videointelligence.v1.Feature;
import com.google.cloud.videointelligence.v1.VideoContext;
import com.google.cloud.videointelligence.v1.VideoIntelligenceServiceClient;
import com.google.longrunning.Operation;
import com.google.protobuf.ByteString;
import java.util.ArrayList;

public class AsyncAnnotateVideo {

public static void main(String[] args) throws Exception {
asyncAnnotateVideo();
}

public static void asyncAnnotateVideo() throws Exception {
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
VideoIntelligenceServiceClient.create()) {
AnnotateVideoRequest request =
AnnotateVideoRequest.newBuilder()
.setInputUri("inputUri470706498")
.setInputContent(ByteString.EMPTY)
.addAllFeatures(new ArrayList<Feature>())
.setVideoContext(VideoContext.newBuilder().build())
.setOutputUri("outputUri-2119300949")
.setLocationId("locationId1541836720")
.build();
ApiFuture<Operation> future =
videoIntelligenceServiceClient.annotateVideoCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
}
}
// [END videointelligence_v1_generated_videointelligenceserviceclient_annotatevideo_async]
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
* Copyright 2022 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
*
* https://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.google.cloud.videointelligence.v1.samples;

// [START videointelligence_v1_generated_videointelligenceserviceclient_annotatevideo_lro_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.videointelligence.v1.AnnotateVideoProgress;
import com.google.cloud.videointelligence.v1.AnnotateVideoRequest;
import com.google.cloud.videointelligence.v1.AnnotateVideoResponse;
import com.google.cloud.videointelligence.v1.Feature;
import com.google.cloud.videointelligence.v1.VideoContext;
import com.google.cloud.videointelligence.v1.VideoIntelligenceServiceClient;
import com.google.protobuf.ByteString;
import java.util.ArrayList;

public class AsyncAnnotateVideoLRO {

public static void main(String[] args) throws Exception {
asyncAnnotateVideoLRO();
}

public static void asyncAnnotateVideoLRO() throws Exception {
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
VideoIntelligenceServiceClient.create()) {
AnnotateVideoRequest request =
AnnotateVideoRequest.newBuilder()
.setInputUri("inputUri470706498")
.setInputContent(ByteString.EMPTY)
.addAllFeatures(new ArrayList<Feature>())
.setVideoContext(VideoContext.newBuilder().build())
.setOutputUri("outputUri-2119300949")
.setLocationId("locationId1541836720")
.build();
OperationFuture<AnnotateVideoResponse, AnnotateVideoProgress> future =
videoIntelligenceServiceClient.annotateVideoOperationCallable().futureCall(request);
// Do something.
AnnotateVideoResponse response = future.get();
}
}
}
// [END videointelligence_v1_generated_videointelligenceserviceclient_annotatevideo_lro_async]
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* Copyright 2022 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
*
* https://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.google.cloud.videointelligence.v1.samples;

// [START videointelligence_v1_generated_videointelligenceserviceclient_annotatevideo_sync]
import com.google.cloud.videointelligence.v1.AnnotateVideoRequest;
import com.google.cloud.videointelligence.v1.AnnotateVideoResponse;
import com.google.cloud.videointelligence.v1.Feature;
import com.google.cloud.videointelligence.v1.VideoContext;
import com.google.cloud.videointelligence.v1.VideoIntelligenceServiceClient;
import com.google.protobuf.ByteString;
import java.util.ArrayList;

public class SyncAnnotateVideo {

public static void main(String[] args) throws Exception {
syncAnnotateVideo();
}

public static void syncAnnotateVideo() throws Exception {
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
VideoIntelligenceServiceClient.create()) {
AnnotateVideoRequest request =
AnnotateVideoRequest.newBuilder()
.setInputUri("inputUri470706498")
.setInputContent(ByteString.EMPTY)
.addAllFeatures(new ArrayList<Feature>())
.setVideoContext(VideoContext.newBuilder().build())
.setOutputUri("outputUri-2119300949")
.setLocationId("locationId1541836720")
.build();
AnnotateVideoResponse response =
videoIntelligenceServiceClient.annotateVideoAsync(request).get();
}
}
}
// [END videointelligence_v1_generated_videointelligenceserviceclient_annotatevideo_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* Copyright 2022 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
*
* https://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.google.cloud.videointelligence.v1.samples;

// [START videointelligence_v1_generated_videointelligenceserviceclient_annotatevideo_stringlistfeature_sync]
import com.google.cloud.videointelligence.v1.AnnotateVideoResponse;
import com.google.cloud.videointelligence.v1.Feature;
import com.google.cloud.videointelligence.v1.VideoIntelligenceServiceClient;
import java.util.ArrayList;
import java.util.List;

public class SyncAnnotateVideoStringListfeature {

public static void main(String[] args) throws Exception {
syncAnnotateVideoStringListfeature();
}

public static void syncAnnotateVideoStringListfeature() throws Exception {
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
VideoIntelligenceServiceClient.create()) {
String inputUri = "inputUri470706498";
List<Feature> features = new ArrayList<>();
AnnotateVideoResponse response =
videoIntelligenceServiceClient.annotateVideoAsync(inputUri, features).get();
}
}
}
// [END videointelligence_v1_generated_videointelligenceserviceclient_annotatevideo_stringlistfeature_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* Copyright 2022 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
*
* https://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.google.cloud.videointelligence.v1.samples;

// [START videointelligence_v1_generated_videointelligenceserviceclient_create_setcredentialsprovider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.videointelligence.v1.VideoIntelligenceServiceClient;
import com.google.cloud.videointelligence.v1.VideoIntelligenceServiceSettings;
import com.google.cloud.videointelligence.v1.myCredentials;

public class SyncCreateSetCredentialsProvider {

public static void main(String[] args) throws Exception {
syncCreateSetCredentialsProvider();
}

public static void syncCreateSetCredentialsProvider() throws Exception {
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
VideoIntelligenceServiceSettings videoIntelligenceServiceSettings =
VideoIntelligenceServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
VideoIntelligenceServiceClient videoIntelligenceServiceClient =
VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
}
}
// [END videointelligence_v1_generated_videointelligenceserviceclient_create_setcredentialsprovider_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* Copyright 2022 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
*
* https://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.google.cloud.videointelligence.v1.samples;

// [START videointelligence_v1_generated_videointelligenceserviceclient_create_setcredentialsprovider1_sync]
import com.google.cloud.videointelligence.v1.VideoIntelligenceServiceClient;
import com.google.cloud.videointelligence.v1.VideoIntelligenceServiceSettings;

public class SyncCreateSetCredentialsProvider1 {

public static void main(String[] args) throws Exception {
syncCreateSetCredentialsProvider1();
}

public static void syncCreateSetCredentialsProvider1() throws Exception {
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
VideoIntelligenceServiceSettings videoIntelligenceServiceSettings =
VideoIntelligenceServiceSettings.newBuilder()
.setTransportChannelProvider(
VideoIntelligenceServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
VideoIntelligenceServiceClient videoIntelligenceServiceClient =
VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
}
}
// [END videointelligence_v1_generated_videointelligenceserviceclient_create_setcredentialsprovider1_sync]
Loading