Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
fix: update gapic-generator-java with mock service generation fixes (#…
Browse files Browse the repository at this point in the history
…922)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 457524730

Source-Link: googleapis/googleapis@917e7f2

Source-Link: googleapis/googleapis-gen@2497f9a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjQ5N2Y5YTA2OWQzZjZiMmQ2ODEwZDVhNGUyMzljZGExZTdlNWEzOSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Jun 28, 2022
1 parent 0b02a91 commit b1d854d
Show file tree
Hide file tree
Showing 38 changed files with 69 additions and 126 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.google.cloud.videointelligence.v1;

import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.httpjson.longrunning.OperationsClient;
import com.google.api.gax.longrunning.OperationFuture;
Expand Down Expand Up @@ -188,6 +189,7 @@ public final com.google.longrunning.OperationsClient getOperationsClient() {
* Returns the OperationsClient that can be used to query the status of a long-running operation
* returned by another API method call.
*/
@BetaApi
public final OperationsClient getHttpJsonOperationsClient() {
return httpJsonOperationsClient;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ public final com.google.longrunning.OperationsClient getOperationsClient() {
* Returns the OperationsClient that can be used to query the status of a long-running operation
* returned by another API method call.
*/
@BetaApi
public final OperationsClient getHttpJsonOperationsClient() {
return httpJsonOperationsClient;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ public final com.google.longrunning.OperationsClient getOperationsClient() {
* Returns the OperationsClient that can be used to query the status of a long-running operation
* returned by another API method call.
*/
@BetaApi
public final OperationsClient getHttpJsonOperationsClient() {
return httpJsonOperationsClient;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ public final com.google.longrunning.OperationsClient getOperationsClient() {
* Returns the OperationsClient that can be used to query the status of a long-running operation
* returned by another API method call.
*/
@BetaApi
public final OperationsClient getHttpJsonOperationsClient() {
return httpJsonOperationsClient;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ public final com.google.longrunning.OperationsClient getOperationsClient() {
* Returns the OperationsClient that can be used to query the status of a long-running operation
* returned by another API method call.
*/
@BetaApi
public final OperationsClient getHttpJsonOperationsClient() {
return httpJsonOperationsClient;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1.samples;

// [START
// videointelligence_v1_generated_videointelligenceserviceclient_annotatevideo_stringlistfeature_sync]
// [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;
Expand All @@ -42,5 +41,4 @@ public static void syncAnnotateVideoStringListfeature() throws Exception {
}
}
}
// [END
// videointelligence_v1_generated_videointelligenceserviceclient_annotatevideo_stringlistfeature_sync]
// [END videointelligence_v1_generated_videointelligenceserviceclient_annotatevideo_stringlistfeature_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1.samples;

// [START
// videointelligence_v1_generated_videointelligenceserviceclient_create_setcredentialsprovider_sync]
// [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;
Expand All @@ -40,5 +39,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
}
}
// [END
// videointelligence_v1_generated_videointelligenceserviceclient_create_setcredentialsprovider_sync]
// [END videointelligence_v1_generated_videointelligenceserviceclient_create_setcredentialsprovider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1.samples;

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

Expand All @@ -39,5 +38,4 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
}
}
// [END
// videointelligence_v1_generated_videointelligenceserviceclient_create_setcredentialsprovider1_sync]
// [END videointelligence_v1_generated_videointelligenceserviceclient_create_setcredentialsprovider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1beta2.stub.samples;

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1beta2.samples;

// [START
// videointelligence_v1beta2_generated_videointelligenceserviceclient_annotatevideo_lro_async]
// [START videointelligence_v1beta2_generated_videointelligenceserviceclient_annotatevideo_lro_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.videointelligence.v1beta2.AnnotateVideoProgress;
import com.google.cloud.videointelligence.v1beta2.AnnotateVideoRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1beta2.samples;

// [START
// videointelligence_v1beta2_generated_videointelligenceserviceclient_annotatevideo_stringlistfeature_sync]
// [START videointelligence_v1beta2_generated_videointelligenceserviceclient_annotatevideo_stringlistfeature_sync]
import com.google.cloud.videointelligence.v1beta2.AnnotateVideoResponse;
import com.google.cloud.videointelligence.v1beta2.Feature;
import com.google.cloud.videointelligence.v1beta2.VideoIntelligenceServiceClient;
Expand All @@ -42,5 +41,4 @@ public static void syncAnnotateVideoStringListfeature() throws Exception {
}
}
}
// [END
// videointelligence_v1beta2_generated_videointelligenceserviceclient_annotatevideo_stringlistfeature_sync]
// [END videointelligence_v1beta2_generated_videointelligenceserviceclient_annotatevideo_stringlistfeature_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1beta2.samples;

// [START
// videointelligence_v1beta2_generated_videointelligenceserviceclient_create_setcredentialsprovider_sync]
// [START videointelligence_v1beta2_generated_videointelligenceserviceclient_create_setcredentialsprovider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.videointelligence.v1beta2.VideoIntelligenceServiceClient;
import com.google.cloud.videointelligence.v1beta2.VideoIntelligenceServiceSettings;
Expand All @@ -40,5 +39,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
}
}
// [END
// videointelligence_v1beta2_generated_videointelligenceserviceclient_create_setcredentialsprovider_sync]
// [END videointelligence_v1beta2_generated_videointelligenceserviceclient_create_setcredentialsprovider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1beta2.samples;

// [START
// videointelligence_v1beta2_generated_videointelligenceserviceclient_create_setcredentialsprovider1_sync]
// [START videointelligence_v1beta2_generated_videointelligenceserviceclient_create_setcredentialsprovider1_sync]
import com.google.cloud.videointelligence.v1beta2.VideoIntelligenceServiceClient;
import com.google.cloud.videointelligence.v1beta2.VideoIntelligenceServiceSettings;

Expand All @@ -39,5 +38,4 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
}
}
// [END
// videointelligence_v1beta2_generated_videointelligenceserviceclient_create_setcredentialsprovider1_sync]
// [END videointelligence_v1beta2_generated_videointelligenceserviceclient_create_setcredentialsprovider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1beta2.samples;

// [START
// videointelligence_v1beta2_generated_videointelligenceserviceclient_create_setendpoint_sync]
// [START videointelligence_v1beta2_generated_videointelligenceserviceclient_create_setendpoint_sync]
import com.google.cloud.videointelligence.v1beta2.VideoIntelligenceServiceClient;
import com.google.cloud.videointelligence.v1beta2.VideoIntelligenceServiceSettings;
import com.google.cloud.videointelligence.v1beta2.myEndpoint;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1p1beta1.stub.samples;

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

Expand Down Expand Up @@ -45,5 +44,4 @@ public static void syncAnnotateVideo() throws Exception {
videoIntelligenceServiceSettingsBuilder.build();
}
}
// [END
// videointelligence_v1p1beta1_generated_videointelligenceservicestubsettings_annotatevideo_sync]
// [END videointelligence_v1p1beta1_generated_videointelligenceservicestubsettings_annotatevideo_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1p1beta1.samples;

// [START
// videointelligence_v1p1beta1_generated_videointelligenceserviceclient_annotatevideo_lro_async]
// [START videointelligence_v1p1beta1_generated_videointelligenceserviceclient_annotatevideo_lro_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.videointelligence.v1p1beta1.AnnotateVideoProgress;
import com.google.cloud.videointelligence.v1p1beta1.AnnotateVideoRequest;
Expand Down Expand Up @@ -55,5 +54,4 @@ public static void asyncAnnotateVideoLRO() throws Exception {
}
}
}
// [END
// videointelligence_v1p1beta1_generated_videointelligenceserviceclient_annotatevideo_lro_async]
// [END videointelligence_v1p1beta1_generated_videointelligenceserviceclient_annotatevideo_lro_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1p1beta1.samples;

// [START
// videointelligence_v1p1beta1_generated_videointelligenceserviceclient_annotatevideo_stringlistfeature_sync]
// [START videointelligence_v1p1beta1_generated_videointelligenceserviceclient_annotatevideo_stringlistfeature_sync]
import com.google.cloud.videointelligence.v1p1beta1.AnnotateVideoResponse;
import com.google.cloud.videointelligence.v1p1beta1.Feature;
import com.google.cloud.videointelligence.v1p1beta1.VideoIntelligenceServiceClient;
Expand All @@ -42,5 +41,4 @@ public static void syncAnnotateVideoStringListfeature() throws Exception {
}
}
}
// [END
// videointelligence_v1p1beta1_generated_videointelligenceserviceclient_annotatevideo_stringlistfeature_sync]
// [END videointelligence_v1p1beta1_generated_videointelligenceserviceclient_annotatevideo_stringlistfeature_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1p1beta1.samples;

// [START
// videointelligence_v1p1beta1_generated_videointelligenceserviceclient_create_setcredentialsprovider_sync]
// [START videointelligence_v1p1beta1_generated_videointelligenceserviceclient_create_setcredentialsprovider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.videointelligence.v1p1beta1.VideoIntelligenceServiceClient;
import com.google.cloud.videointelligence.v1p1beta1.VideoIntelligenceServiceSettings;
Expand All @@ -40,5 +39,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
}
}
// [END
// videointelligence_v1p1beta1_generated_videointelligenceserviceclient_create_setcredentialsprovider_sync]
// [END videointelligence_v1p1beta1_generated_videointelligenceserviceclient_create_setcredentialsprovider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1p1beta1.samples;

// [START
// videointelligence_v1p1beta1_generated_videointelligenceserviceclient_create_setcredentialsprovider1_sync]
// [START videointelligence_v1p1beta1_generated_videointelligenceserviceclient_create_setcredentialsprovider1_sync]
import com.google.cloud.videointelligence.v1p1beta1.VideoIntelligenceServiceClient;
import com.google.cloud.videointelligence.v1p1beta1.VideoIntelligenceServiceSettings;

Expand All @@ -39,5 +38,4 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
}
}
// [END
// videointelligence_v1p1beta1_generated_videointelligenceserviceclient_create_setcredentialsprovider1_sync]
// [END videointelligence_v1p1beta1_generated_videointelligenceserviceclient_create_setcredentialsprovider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1p1beta1.samples;

// [START
// videointelligence_v1p1beta1_generated_videointelligenceserviceclient_create_setendpoint_sync]
// [START videointelligence_v1p1beta1_generated_videointelligenceserviceclient_create_setendpoint_sync]
import com.google.cloud.videointelligence.v1p1beta1.VideoIntelligenceServiceClient;
import com.google.cloud.videointelligence.v1p1beta1.VideoIntelligenceServiceSettings;
import com.google.cloud.videointelligence.v1p1beta1.myEndpoint;
Expand All @@ -37,5 +36,4 @@ public static void syncCreateSetEndpoint() throws Exception {
VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
}
}
// [END
// videointelligence_v1p1beta1_generated_videointelligenceserviceclient_create_setendpoint_sync]
// [END videointelligence_v1p1beta1_generated_videointelligenceserviceclient_create_setendpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1p2beta1.stub.samples;

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

Expand Down Expand Up @@ -45,5 +44,4 @@ public static void syncAnnotateVideo() throws Exception {
videoIntelligenceServiceSettingsBuilder.build();
}
}
// [END
// videointelligence_v1p2beta1_generated_videointelligenceservicestubsettings_annotatevideo_sync]
// [END videointelligence_v1p2beta1_generated_videointelligenceservicestubsettings_annotatevideo_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1p2beta1.samples;

// [START
// videointelligence_v1p2beta1_generated_videointelligenceserviceclient_annotatevideo_lro_async]
// [START videointelligence_v1p2beta1_generated_videointelligenceserviceclient_annotatevideo_lro_async]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress;
import com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest;
Expand Down Expand Up @@ -55,5 +54,4 @@ public static void asyncAnnotateVideoLRO() throws Exception {
}
}
}
// [END
// videointelligence_v1p2beta1_generated_videointelligenceserviceclient_annotatevideo_lro_async]
// [END videointelligence_v1p2beta1_generated_videointelligenceserviceclient_annotatevideo_lro_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1p2beta1.samples;

// [START
// videointelligence_v1p2beta1_generated_videointelligenceserviceclient_annotatevideo_stringlistfeature_sync]
// [START videointelligence_v1p2beta1_generated_videointelligenceserviceclient_annotatevideo_stringlistfeature_sync]
import com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoResponse;
import com.google.cloud.videointelligence.v1p2beta1.Feature;
import com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceClient;
Expand All @@ -42,5 +41,4 @@ public static void syncAnnotateVideoStringListfeature() throws Exception {
}
}
}
// [END
// videointelligence_v1p2beta1_generated_videointelligenceserviceclient_annotatevideo_stringlistfeature_sync]
// [END videointelligence_v1p2beta1_generated_videointelligenceserviceclient_annotatevideo_stringlistfeature_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1p2beta1.samples;

// [START
// videointelligence_v1p2beta1_generated_videointelligenceserviceclient_create_setcredentialsprovider_sync]
// [START videointelligence_v1p2beta1_generated_videointelligenceserviceclient_create_setcredentialsprovider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceClient;
import com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceSettings;
Expand All @@ -40,5 +39,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
}
}
// [END
// videointelligence_v1p2beta1_generated_videointelligenceserviceclient_create_setcredentialsprovider_sync]
// [END videointelligence_v1p2beta1_generated_videointelligenceserviceclient_create_setcredentialsprovider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1p2beta1.samples;

// [START
// videointelligence_v1p2beta1_generated_videointelligenceserviceclient_create_setcredentialsprovider1_sync]
// [START videointelligence_v1p2beta1_generated_videointelligenceserviceclient_create_setcredentialsprovider1_sync]
import com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceClient;
import com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceSettings;

Expand All @@ -39,5 +38,4 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
}
}
// [END
// videointelligence_v1p2beta1_generated_videointelligenceserviceclient_create_setcredentialsprovider1_sync]
// [END videointelligence_v1p2beta1_generated_videointelligenceserviceclient_create_setcredentialsprovider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

package com.google.cloud.videointelligence.v1p2beta1.samples;

// [START
// videointelligence_v1p2beta1_generated_videointelligenceserviceclient_create_setendpoint_sync]
// [START videointelligence_v1p2beta1_generated_videointelligenceserviceclient_create_setendpoint_sync]
import com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceClient;
import com.google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceSettings;
import com.google.cloud.videointelligence.v1p2beta1.myEndpoint;
Expand All @@ -37,5 +36,4 @@ public static void syncCreateSetEndpoint() throws Exception {
VideoIntelligenceServiceClient.create(videoIntelligenceServiceSettings);
}
}
// [END
// videointelligence_v1p2beta1_generated_videointelligenceserviceclient_create_setendpoint_sync]
// [END videointelligence_v1p2beta1_generated_videointelligenceserviceclient_create_setendpoint_sync]
Loading

0 comments on commit b1d854d

Please sign in to comment.