Skip to content

Commit 4cd355b

Browse files
matthew29tangcopybara-github
authored andcommitted
refactor!: Rename getVideoOperation to getVideosOperation for Java SDK
PiperOrigin-RevId: 755497916
1 parent 0450428 commit 4cd355b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

examples/src/main/java/com/google/genai/examples/GenerateVideos.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.");

examples/src/main/java/com/google/genai/examples/GenerateVideosAsync.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/main/java/com/google/genai/AsyncOperations.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/main/java/com/google/genai/Operations.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()) {

0 commit comments

Comments
 (0)