File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
examples/src/main/java/com/google/genai/examples
src/main/java/com/google/genai Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public static void main(String[] args) {
7777 try {
7878 Thread .sleep (10000 ); // Sleep for 10 seconds.
7979 generateVideosOperation =
80- client .operations .getVideoOperation (generateVideosOperation , null );
80+ client .operations .getVideosOperation (generateVideosOperation , null );
8181 System .out .println ("Waiting for operation to complete..." );
8282 } catch (InterruptedException e ) {
8383 System .out .println ("Thread was interrupted while sleeping." );
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public static void main(String[] args) {
8383 try {
8484 Thread .sleep (10000 ); // Sleep for 10 seconds.
8585 try {
86- operation = client .async .operations .getVideoOperation (operation , null ).get ();
86+ operation = client .async .operations .getVideosOperation (operation , null ).get ();
8787 } catch (ExecutionException e ) {
8888 throw new RuntimeException (e );
8989 }
Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ public AsyncOperations(ApiClient apiClient) {
3737 * @param config The configuration for getting the operation.
3838 * @return A GenerateVideosOperation with the updated status of the operation.
3939 */
40- public CompletableFuture <GenerateVideosOperation > getVideoOperation (
40+ public CompletableFuture <GenerateVideosOperation > getVideosOperation (
4141 GenerateVideosOperation operation , GetOperationConfig config ) {
42- return CompletableFuture .supplyAsync (() -> operations .getVideoOperation (operation , config ));
42+ return CompletableFuture .supplyAsync (() -> operations .getVideosOperation (operation , config ));
4343 }
4444}
Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ private GenerateVideosOperation privateFetchPredictVideosOperation(
481481 * @param config The configuration for getting the operation.
482482 * @return A GenerateVideosOperation with the updated status of the operation.
483483 */
484- public GenerateVideosOperation getVideoOperation (
484+ public GenerateVideosOperation getVideosOperation (
485485 GenerateVideosOperation operation , GetOperationConfig config ) {
486486
487487 if (!operation .name ().isPresent ()) {
You can’t perform that action at this time.
0 commit comments